(bulk_invoice_batch)
- create - Create a bulk invoice batch
- get - Get a bulk invoice batch
- update - Update a bulk invoice batch
Create a bulk invoice batch
import wingspan
from wingspan.models import shared
s = wingspan.Wingspan()
req = shared.BulkInvoiceBatchCreate(
labels={
"online": 'Configuration',
},
processing_strategy=shared.BulkInvoiceBatchCreateProcessingStrategy.MERGE,
)
res = s.bulk_invoice_batch.create(req)
if res.bulk_invoice_batch is not None:
# handle response
pass
Parameter | Type | Required | Description |
---|---|---|---|
request |
shared.BulkInvoiceBatchCreate | ✔️ | The request object to use for the request. |
operations.CreateBulkInvoiceBatchResponse
Get a bulk invoice batch
import wingspan
from wingspan.models import operations
s = wingspan.Wingspan()
res = s.bulk_invoice_batch.get(batch_id='female')
if res.bulk_invoice_batch is not None:
# handle response
pass
Parameter | Type | Required | Description |
---|---|---|---|
batch_id |
str | ✔️ | Unique identifier for a batch |
operations.GetBulkInvoiceBatchResponse
Update a bulk invoice batch
import wingspan
from wingspan.models import operations, shared
s = wingspan.Wingspan()
res = s.bulk_invoice_batch.update(batch_id='Van', bulk_invoice_batch_update=shared.BulkInvoiceBatchUpdate(
labels={
"East": 'male',
},
))
if res.bulk_invoice_batch is not None:
# handle response
pass
Parameter | Type | Required | Description |
---|---|---|---|
batch_id |
str | ✔️ | Unique identifier for a batch |
bulk_invoice_batch_update |
Optional[shared.BulkInvoiceBatchUpdate] | ➖ | N/A |