- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
upsertPaymentCollections - Payment Module Reference
This documentation provides a reference to the upsertPaymentCollections
method. This belongs to the Payment Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
upsertPaymentCollections(data, sharedContext?): Promise<PaymentCollectionDTO[]>#
This method updates or creates payment collections if they don't exist.
Example#
Parameters#
The attributes in the payment collections to be created or updated. If
the object includes the id
field, then the payment collection is updated. Otherise, it's created.
id
field, then the payment collection is updated. Otherise, it's created.Returns#
Promise
Promise<PaymentCollectionDTO[]>The created or updated payment collections.
Promise
Promise<PaymentCollectionDTO[]>upsertPaymentCollections(data, sharedContext?): Promise<PaymentCollectionDTO>#
This method updates or creates a payment collection if it doesn't exist.
Example#
Parameters#
The attributes in the payment collection to be created or updated. If the id
field is included, the payment collection is updated. Otherwise, it's created.
id
field is included, the payment collection is updated. Otherwise, it's created.Returns#
Promise
Promise<PaymentCollectionDTO>The created or updated payment collection.
Promise
Promise<PaymentCollectionDTO>Was this page helpful?