amazon_spapi/models/orders_v0/payment_execution_detail_item.rs
1/*
2 * Selling Partner API for Orders
3 *
4 * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools. _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don't show up in the response).
5 *
6 * The version of the OpenAPI document: v0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// PaymentExecutionDetailItem : Information about a sub-payment method used to pay for a COD order.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PaymentExecutionDetailItem {
17 #[serde(rename = "Payment")]
18 pub payment: Box<models::orders_v0::Money>,
19 /// A sub-payment method for a COD order. **Possible values**: * `COD`: Cash on delivery * `GC`: Gift card * `PointsAccount`: Amazon Points * `Invoice`: Invoice
20 #[serde(rename = "PaymentMethod")]
21 pub payment_method: String,
22}
23
24impl PaymentExecutionDetailItem {
25 /// Information about a sub-payment method used to pay for a COD order.
26 pub fn new(payment: models::orders_v0::Money, payment_method: String) -> PaymentExecutionDetailItem {
27 PaymentExecutionDetailItem {
28 payment: Box::new(payment),
29 payment_method,
30 }
31 }
32}
33