(bulk_invoice_batch_item)
- create - Create a bulk invoice batch item
- get - Get a bulk invoice batch item
- update - Update a bulk invoice batch item
Create a bulk invoice batch item
import wingspan
from wingspan.models import operations, shared
s = wingspan.Wingspan()
res = s.bulk_invoice_batch_item.create(batch_id='online', bulk_invoice_item_create=shared.BulkInvoiceItemCreate(
accepted_payment_methods=[
shared.BulkInvoiceItemCreateAcceptedPaymentMethods.MANUAL,
],
amount=8592.13,
bulk_invoice_batch_id='Money',
credit_fee_handling=shared.FeeHandlingConfig(),
due_date='blue',
invoice_status=shared.InvoiceStatusBulkInvoiceItemCreate.CANCELLED,
labels={
"grey": 'technology',
},
line_item_description='East',
))
if res.bulk_invoice_item is not None:
# handle response
pass| Parameter | Type | Required | Description |
|---|---|---|---|
batch_id |
str | ✔️ | Unique identifier for a batch |
bulk_invoice_item_create |
Optional[shared.BulkInvoiceItemCreate] | ➖ | N/A |
operations.CreateBulkInvoiceBatchItemResponse
Get a bulk invoice batch item
import wingspan
from wingspan.models import operations
s = wingspan.Wingspan()
res = s.bulk_invoice_batch_item.get(batch_id='female', batch_item_id='program')
if res.bulk_invoice_item is not None:
# handle response
pass| Parameter | Type | Required | Description |
|---|---|---|---|
batch_id |
str | ✔️ | Unique identifier for a batch |
batch_item_id |
str | ✔️ | Unique identifier for an item in a batch |
operations.GetBulkInvoiceBatchItemResponse
Update a bulk invoice batch item
import wingspan
from wingspan.models import operations, shared
s = wingspan.Wingspan()
res = s.bulk_invoice_batch_item.update(batch_id='Van', batch_item_id='East', bulk_invoice_item_update=shared.BulkInvoiceItemUpdate(
accepted_payment_methods=[
shared.BulkInvoiceItemUpdateAcceptedPaymentMethods.MANUAL,
],
credit_fee_handling=shared.FeeHandlingConfig(),
labels={
"dock": 'Quality',
},
))
if res.bulk_invoice_item is not None:
# handle response
pass| Parameter | Type | Required | Description |
|---|---|---|---|
batch_id |
str | ✔️ | Unique identifier for a batch |
batch_item_id |
str | ✔️ | Unique identifier for an item in a batch |
bulk_invoice_item_update |
Optional[shared.BulkInvoiceItemUpdate] | ➖ | N/A |