Skip to content

Latest commit

 

History

History
executable file
·
121 lines (77 loc) · 5.77 KB

File metadata and controls

executable file
·
121 lines (77 loc) · 5.77 KB

BulkPayableBatchItem

(bulk_payable_batch_item)

Available Operations

  • create - Create a bulk payable batch item
  • get - Get a bulk payable batch item
  • update - Update a bulk payable batch item

create

Create a bulk payable batch item

Example Usage

import wingspan
from wingspan.models import operations, shared

s = wingspan.Wingspan()


res = s.bulk_payable_batch_item.create(batch_id='online', bulk_payable_item_create=shared.BulkPayableItemCreate(
    amount=6384.24,
    bulk_payable_batch_id='Extended',
    due_date='South',
    labels={
        "shred": 'abnormally',
    },
    line_item_description='deposit',
    payable_status=shared.PayableStatusBulkPayableItemCreate.OPEN,
))

if res.bulk_payable_item is not None:
    # handle response
    pass

Parameters

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

Response

operations.CreateBulkPayableBatchItemResponse

get

Get a bulk payable batch item

Example Usage

import wingspan
from wingspan.models import operations

s = wingspan.Wingspan()


res = s.bulk_payable_batch_item.get(batch_id='female', batch_item_id='program')

if res.bulk_payable_item is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
batch_id str ✔️ Unique identifier for a batch
batch_item_id str ✔️ Unique identifier for an item in a batch

Response

operations.GetBulkPayableBatchItemResponse

update

Update a bulk payable batch item

Example Usage

import wingspan
from wingspan.models import operations, shared

s = wingspan.Wingspan()


res = s.bulk_payable_batch_item.update(batch_id='Van', batch_item_id='East', bulk_payable_item_update=shared.BulkPayableItemUpdate(
    labels={
        "male": 'Metal',
    },
))

if res.bulk_payable_item is not None:
    # handle response
    pass

Parameters

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_payable_item_update Optional[shared.BulkPayableItemUpdate] N/A

Response

operations.UpdateBulkPayableBatchItemResponse