updateBookingLineBillingPreferences function

Future<ApiResponse<BookingById>> updateBookingLineBillingPreferences(
  1. ExsitedClient client,
  2. Object bookingId,
  3. Object lineUuid,
  4. Object payload, {
  5. bool? raiseOnError,
  6. String? responseFormat,
})

PATCH /api/{api_version}/booking/{booking_id}/lines/{line_uuid}/billing_preferences

Update a line's billing preferences, body order.line.item_properties, not billing_preferences.

Implementation

Future<ApiResponse<BookingById>> updateBookingLineBillingPreferences(
  ExsitedClient client,
  Object bookingId,
  Object lineUuid,
  Object payload, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendPatchRequest(BookingsUrls.bookingLineBillingPreferences,
        pathParams: {'booking_id': bookingId, 'line_uuid': lineUuid},
        jsonBody: payload,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: BookingById.fromMap);