ISplitOrderPaymentModuleService Reference
This section of the documentation provides a reference to theISplitOrderPaymentModuleService interface’s methods. This is the interface developers use to use the functionalities provided by the Split Order Payment Module.
The main service interface for the Split Order Payment Module.
Methods
- createSplitOrderPayments
- updateSplitOrderPayments
- deleteSplitOrderPayments
- retrieveSplitOrderPayment
- listSplitOrderPayments
- listAndCountSplitOrderPayments
- softDeleteSplitOrderPayments
- restoreSplitOrderPayments
createSplitOrderPayments
This section provides a reference to thecreateSplitOrderPayments method. This belongs to the Split Order Payment Module.
createSplitOrderPayments(data, sharedContext?): Promise<SplitOrderPaymentDTO[]>
This method creates split order payments.Example
Parameters
The split order payments to be created.
A context used to share resources, such as transaction manager, between the application and the module.
Returns
The created split order payments.
createSplitOrderPayments(data, sharedContext?): Promise<SplitOrderPaymentDTO>
This method creates a split order payment.Example
Parameters
The split order payment to be created.
A context used to share resources, such as transaction manager, between the application and the module.
Returns
The created split order payment.
updateSplitOrderPayments
This section provides a reference to theupdateSplitOrderPayments method. This belongs to the Split Order Payment Module.
updateSplitOrderPayments(id, data, sharedContext?): Promise<SplitOrderPaymentDTO>
This method updates an existing split order payment.Example
Parameters
The ID of the split order payment.
The attributes to update in the split order payment.
A context used to share resources, such as transaction manager, between the application and the module.
Returns
The updated split order payment.
deleteSplitOrderPayments
This section provides a reference to thedeleteSplitOrderPayments method. This belongs to the Split Order Payment Module.
deleteSplitOrderPayments(ids, sharedContext?): Promise<void>
This method deletes split order payments by their IDs.Example
Parameters
The IDs of the split order payments.
A context used to share resources, such as transaction manager, between the application and the module.
Returns
Resolves when the split order payments are deleted successfully.
deleteSplitOrderPayments(id, sharedContext?): Promise<void>
This method deletes a split order payment by its ID.Example
Parameters
The ID of the split order payment.
A context used to share resources, such as transaction manager, between the application and the module.
Returns
Resolves when the split order payment is deleted successfully.
retrieveSplitOrderPayment
This section provides a reference to theretrieveSplitOrderPayment method. This belongs to the Split Order Payment Module.
This method retrieves a split order payment by its ID.
Example
Parameters
The ID of the split order payment.
The configurations determining how the split order payment is retrieved.
A context used to share resources, such as transaction manager, between the application and the module.
Returns
The retrieved split order payment.
listSplitOrderPayments
This section provides a reference to thelistSplitOrderPayments method. This belongs to the Split Order Payment Module.
This method retrieves a paginated list of split order payments based on optional filters and configuration.
Example
To retrieve split order payments for a specific payment collection:15 records are retrieved. You can control pagination:
Parameters
The filters to apply on the retrieved split order payments.
The configurations determining how the split order payment is retrieved.
A context used to share resources, such as transaction manager, between the application and the module.
Returns
The list of split order payments.
listAndCountSplitOrderPayments
This section provides a reference to thelistAndCountSplitOrderPayments method. This belongs to the Split Order Payment Module.
This method retrieves a paginated list of split order payments along with the total count of available split order payments satisfying the provided filters.
Example
To retrieve a list of split order payments with count:15 records are retrieved. You can control pagination:
Parameters
The filters to apply on the retrieved split order payments.
The configurations determining how the split order payment is retrieved.
A context used to share resources, such as transaction manager, between the application and the module.
Returns
The list of split order payments along with their total count.
softDeleteSplitOrderPayments
This section provides a reference to thesoftDeleteSplitOrderPayments method. This belongs to the Split Order Payment Module.
This method soft deletes split order payments by their IDs.
Example
Parameters
The IDs of the split order payments.
An object that is used to specify an entity’s related entities that should be soft-deleted when the main entity is soft-deleted.
A context used to share resources, such as transaction manager, between the application and the module.
Returns
An object that includes the IDs of related records that were also soft deleted. If there are no related records, the promise resolves to
void.restoreSplitOrderPayments
This section provides a reference to therestoreSplitOrderPayments method. This belongs to the Split Order Payment Module.
This method restores soft deleted split order payments by their IDs.
Example
Parameters
The IDs of the split order payments.
Configurations determining which relations to restore along with each of the split order payment.
A context used to share resources, such as transaction manager, between the application and the module.
Returns
An object that includes the IDs of related records that were restored. If there are no related records restored, the promise resolves to
void.