amazon_spapi/models/transfers_2024_06_01/get_payment_methods_response.rs
1/*
2 * The Selling Partner API for Transfers.
3 *
4 * The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE.
5 *
6 * The version of the OpenAPI document: 2024-06-01
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// GetPaymentMethodsResponse : The response schema for the `getPaymentMethods` operation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GetPaymentMethodsResponse {
17 /// The list of payment methods with payment method details.
18 #[serde(rename = "paymentMethods", skip_serializing_if = "Option::is_none")]
19 pub payment_methods: Option<Vec<models::transfers_2024_06_01::PaymentMethodDetails>>,
20}
21
22impl GetPaymentMethodsResponse {
23 /// The response schema for the `getPaymentMethods` operation.
24 pub fn new() -> GetPaymentMethodsResponse {
25 GetPaymentMethodsResponse {
26 payment_methods: None,
27 }
28 }
29}
30