Dev Resources

  • Home
  • Reference
  • BuddyX Theme
  • Functions
  • Hooks
  • Classes
Filter by type:
Search
Browse: Home / Reference / src/Internal/RestApiUtil.php

RestApiUtil

Class: Helper methos for the REST API.

Source: src/Internal/RestApiUtil.php:15

Used by 0 functions | Uses 0 functions

RestApiUtil::adjust_create_refund_request_parameters()

Method: Converts a create refund request from the public API format:

Source: src/Internal/RestApiUtil.php:60

Used by 1 function | Uses 2 functions

RestApiUtil::calculate_refund_amount_from_line_items()

Method: Calculate the “amount” parameter for the request based on the amounts found in line items.

Source: src/Internal/RestApiUtil.php:96

Used by 1 function | Uses 0 functions

RestApiUtil::adjust_line_items_for_create_refund_request()

Method: Convert the line items of a refund request to internal format (see adjust_create_refund_request_parameters).

Source: src/Internal/RestApiUtil.php:133

Used by 1 function | Uses 2 functions

RestApiUtil::adjust_taxes_for_create_refund_request_line_item()

Method: Adjust the taxes array from a line item in a refund request, see adjust_create_refund_parameters.

Source: src/Internal/RestApiUtil.php:168

Used by 1 function | Uses 1 function

RestApiUtil::is_associative()

Method: Is an array sequential or associative?

Source: src/Internal/RestApiUtil.php:193

Used by 2 functions | Uses 0 functions
Proudly powered by WordPress