getOrderBillingPreferences function

Future<ApiResponse<OrderBillingPreferences>> getOrderBillingPreferences(
  1. ExsitedClient client,
  2. Object orderId, {
  3. Map<String, Object?>? queryParams,
  4. bool? raiseOnError,
  5. String? responseFormat,
})

GET /api/{api_version}/orders/{order_id}/billing_preferences

Implementation

Future<ApiResponse<OrderBillingPreferences>> getOrderBillingPreferences(
  ExsitedClient client,
  Object orderId, {
  Map<String, Object?>? queryParams,
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(OrdersUrls.orderBillingPreferences,
        pathParams: {'order_id': orderId},
        queryParams: queryParams,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: OrderBillingPreferences.fromMap);