Delete customer money
To delete customer money, you have to perform the following:
- Get an instance of the manager.
Get an instance of the OrdersManager object.
- Get the specified customer money.
Get an instance of the customer money.
- Mark the customer money for deletion.
To mark the customer money to be deleted, call the DeleteCustomerMoney method of the manager and pass the instance of the customer money as an argument.
- Save the changes.
To delete the customer money, save the changes to the manager.
NOTE: To delete multiple customer money instances, execute the code below for each one of them.
Use the following code sample: