replaceOrderBillingPreferences function
Future<ApiResponse<OrderRead> >
replaceOrderBillingPreferences(
- ExsitedClient client,
- Object orderId,
- Object payload, {
- bool? raiseOnError,
- String? responseFormat,
PUT /api/{api_version}/orders/{order_id}/billing_preferences
Implementation
Future<ApiResponse<OrderRead>> replaceOrderBillingPreferences(
ExsitedClient client,
Object orderId,
Object payload, {
bool? raiseOnError,
String? responseFormat,
}) =>
client.sendPutRequest(OrdersUrls.orderBillingPreferences,
pathParams: {'order_id': orderId},
jsonBody: payload,
raiseOnError: raiseOnError,
responseFormat: responseFormat,
dtoDecoder: OrderRead.fromMap);