upsertPaymentCollections - Payment Module Reference
This documentation provides a reference to the upsertPaymentCollections
method. This belongs to the Payment Module.
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
The created or updated payment collections.
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
The created or updated payment collection.
Was this section helpful?