Skip to content

Latest commit

 

History

History
executable file
·
115 lines (71 loc) · 4.45 KB

File metadata and controls

executable file
·
115 lines (71 loc) · 4.45 KB

BulkInvoiceBatch

(bulk_invoice_batch)

Available Operations

  • create - Create a bulk invoice batch
  • get - Get a bulk invoice batch
  • update - Update a bulk invoice batch

create

Create a bulk invoice batch

Example Usage

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

Parameters

Parameter Type Required Description
request shared.BulkInvoiceBatchCreate ✔️ The request object to use for the request.

Response

operations.CreateBulkInvoiceBatchResponse

get

Get a bulk invoice batch

Example Usage

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

Parameters

Parameter Type Required Description
batch_id str ✔️ Unique identifier for a batch

Response

operations.GetBulkInvoiceBatchResponse

update

Update a bulk invoice batch

Example Usage

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

Parameters

Parameter Type Required Description
batch_id str ✔️ Unique identifier for a batch
bulk_invoice_batch_update Optional[shared.BulkInvoiceBatchUpdate] N/A

Response

operations.UpdateBulkInvoiceBatchResponse