RestApiUtil
Helper methos for the REST API.
Description Description
Class ApiUtil
Source Source
File: src/Internal/RestApiUtil.php
Methods Methods
- adjust_create_refund_request_parameters — Converts a create refund request from the public API format:
- adjust_line_items_for_create_refund_request — Convert the line items of a refund request to internal format (see adjust_create_refund_request_parameters).
- adjust_taxes_for_create_refund_request_line_item — Adjust the taxes array from a line item in a refund request, see adjust_create_refund_parameters.
- calculate_refund_amount_from_line_items — Calculate the "amount" parameter for the request based on the amounts found in line items.
- is_associative — Is an array sequential or associative?