Function validate_order_info

Source
pub async fn validate_order_info(
    input_invoice: InputInvoice,
    order_info: Option<OrderInfo>,
    allow_save: bool,
    client_id: i32,
) -> Result<ValidatedOrderInfo, Error>
Expand description

Validates the order information provided by a user and returns the available shipping options for a flexible invoice

ยงArguments

  • input_invoice - The invoice
  • order_info - The order information, provided by the user; pass null if empty
  • allow_save - Pass true to save the order information
  • client_id - The client id to send the request to