All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.stripe.model.PaymentMethodConfiguration Maven / Gradle / Ivy

There is a newer version: 28.1.0-beta.3
Show newest version
// File generated from our OpenAPI spec
package com.stripe.model;

import com.google.gson.annotations.SerializedName;
import com.stripe.exception.StripeException;
import com.stripe.net.ApiMode;
import com.stripe.net.ApiRequest;
import com.stripe.net.ApiRequestParams;
import com.stripe.net.ApiResource;
import com.stripe.net.BaseAddress;
import com.stripe.net.RequestOptions;
import com.stripe.net.StripeResponseGetter;
import com.stripe.param.PaymentMethodConfigurationCreateParams;
import com.stripe.param.PaymentMethodConfigurationListParams;
import com.stripe.param.PaymentMethodConfigurationRetrieveParams;
import com.stripe.param.PaymentMethodConfigurationUpdateParams;
import java.util.Map;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * PaymentMethodConfigurations control which payment methods are displayed to your customers when
 * you don't explicitly specify payment method types. You can have multiple configurations with
 * different sets of payment methods for different scenarios.
 *
 * 

There are two types of PaymentMethodConfigurations. Which is used depends on the charge type: * *

Direct configurations apply to payments created on your account, including * Connect destination charges, Connect separate charges and transfers, and payments not involving * Connect. * *

Child configurations apply to payments created on your connected accounts * using direct charges, and charges with the on_behalf_of parameter. * *

Child configurations have a {@code parent} that sets default values and controls which * settings connected accounts may override. You can specify a parent ID at payment time, and Stripe * will automatically resolve the connected account’s associated child configuration. Parent * configurations are managed in the * dashboard and are not available in this API. * *

Related guides: - Payment Method * Configurations API - Multiple configurations * on dynamic payment methods - Multiple * configurations for your Connect accounts */ @Getter @Setter @EqualsAndHashCode(callSuper = false) public class PaymentMethodConfiguration extends ApiResource implements HasId { @SerializedName("acss_debit") AcssDebit acssDebit; /** Whether the configuration can be used for new payments. */ @SerializedName("active") Boolean active; @SerializedName("affirm") Affirm affirm; @SerializedName("afterpay_clearpay") AfterpayClearpay afterpayClearpay; @SerializedName("alipay") Alipay alipay; @SerializedName("amazon_pay") AmazonPay amazonPay; @SerializedName("apple_pay") ApplePay applePay; /** For child configs, the Connect application associated with the configuration. */ @SerializedName("application") String application; @SerializedName("au_becs_debit") AuBecsDebit auBecsDebit; @SerializedName("bacs_debit") BacsDebit bacsDebit; @SerializedName("bancontact") Bancontact bancontact; @SerializedName("blik") Blik blik; @SerializedName("boleto") Boleto boleto; @SerializedName("card") Card card; @SerializedName("cartes_bancaires") CartesBancaires cartesBancaires; @SerializedName("cashapp") Cashapp cashapp; @SerializedName("customer_balance") CustomerBalance customerBalance; @SerializedName("eps") Eps eps; @SerializedName("fpx") Fpx fpx; @SerializedName("giropay") Giropay giropay; @SerializedName("google_pay") GooglePay googlePay; @SerializedName("grabpay") Grabpay grabpay; /** Unique identifier for the object. */ @Getter(onMethod_ = {@Override}) @SerializedName("id") String id; @SerializedName("ideal") Ideal ideal; /** The default configuration is used whenever a payment method configuration is not specified. */ @SerializedName("is_default") Boolean isDefault; @SerializedName("jcb") Jcb jcb; @SerializedName("klarna") Klarna klarna; @SerializedName("konbini") Konbini konbini; @SerializedName("link") Link link; /** * Has the value {@code true} if the object exists in live mode or the value {@code false} if the * object exists in test mode. */ @SerializedName("livemode") Boolean livemode; @SerializedName("mobilepay") Mobilepay mobilepay; @SerializedName("multibanco") Multibanco multibanco; /** The configuration's name. */ @SerializedName("name") String name; /** * String representing the object's type. Objects of the same type share the same value. * *

Equal to {@code payment_method_configuration}. */ @SerializedName("object") String object; @SerializedName("oxxo") Oxxo oxxo; @SerializedName("p24") P24 p24; /** For child configs, the configuration's parent configuration. */ @SerializedName("parent") String parent; @SerializedName("paynow") Paynow paynow; @SerializedName("paypal") Paypal paypal; @SerializedName("promptpay") Promptpay promptpay; @SerializedName("revolut_pay") RevolutPay revolutPay; @SerializedName("sepa_debit") SepaDebit sepaDebit; @SerializedName("sofort") Sofort sofort; @SerializedName("swish") Swish swish; @SerializedName("twint") Twint twint; @SerializedName("us_bank_account") UsBankAccount usBankAccount; @SerializedName("wechat_pay") WechatPay wechatPay; @SerializedName("zip") Zip zip; /** Creates a payment method configuration. */ public static PaymentMethodConfiguration create(Map params) throws StripeException { return create(params, (RequestOptions) null); } /** Creates a payment method configuration. */ public static PaymentMethodConfiguration create( Map params, RequestOptions options) throws StripeException { String path = "/v1/payment_method_configurations"; ApiRequest request = new ApiRequest( BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options, ApiMode.V1); return getGlobalResponseGetter().request(request, PaymentMethodConfiguration.class); } /** Creates a payment method configuration. */ public static PaymentMethodConfiguration create(PaymentMethodConfigurationCreateParams params) throws StripeException { return create(params, (RequestOptions) null); } /** Creates a payment method configuration. */ public static PaymentMethodConfiguration create( PaymentMethodConfigurationCreateParams params, RequestOptions options) throws StripeException { String path = "/v1/payment_method_configurations"; ApiResource.checkNullTypedParams(path, params); ApiRequest request = new ApiRequest( BaseAddress.API, ApiResource.RequestMethod.POST, path, ApiRequestParams.paramsToMap(params), options, ApiMode.V1); return getGlobalResponseGetter().request(request, PaymentMethodConfiguration.class); } /** List payment method configurations. */ public static PaymentMethodConfigurationCollection list(Map params) throws StripeException { return list(params, (RequestOptions) null); } /** List payment method configurations. */ public static PaymentMethodConfigurationCollection list( Map params, RequestOptions options) throws StripeException { String path = "/v1/payment_method_configurations"; ApiRequest request = new ApiRequest( BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options, ApiMode.V1); return getGlobalResponseGetter().request(request, PaymentMethodConfigurationCollection.class); } /** List payment method configurations. */ public static PaymentMethodConfigurationCollection list( PaymentMethodConfigurationListParams params) throws StripeException { return list(params, (RequestOptions) null); } /** List payment method configurations. */ public static PaymentMethodConfigurationCollection list( PaymentMethodConfigurationListParams params, RequestOptions options) throws StripeException { String path = "/v1/payment_method_configurations"; ApiResource.checkNullTypedParams(path, params); ApiRequest request = new ApiRequest( BaseAddress.API, ApiResource.RequestMethod.GET, path, ApiRequestParams.paramsToMap(params), options, ApiMode.V1); return getGlobalResponseGetter().request(request, PaymentMethodConfigurationCollection.class); } /** Retrieve payment method configuration. */ public static PaymentMethodConfiguration retrieve(String configuration) throws StripeException { return retrieve(configuration, (Map) null, (RequestOptions) null); } /** Retrieve payment method configuration. */ public static PaymentMethodConfiguration retrieve(String configuration, RequestOptions options) throws StripeException { return retrieve(configuration, (Map) null, options); } /** Retrieve payment method configuration. */ public static PaymentMethodConfiguration retrieve( String configuration, Map params, RequestOptions options) throws StripeException { String path = String.format( "/v1/payment_method_configurations/%s", ApiResource.urlEncodeId(configuration)); ApiRequest request = new ApiRequest( BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options, ApiMode.V1); return getGlobalResponseGetter().request(request, PaymentMethodConfiguration.class); } /** Retrieve payment method configuration. */ public static PaymentMethodConfiguration retrieve( String configuration, PaymentMethodConfigurationRetrieveParams params, RequestOptions options) throws StripeException { String path = String.format( "/v1/payment_method_configurations/%s", ApiResource.urlEncodeId(configuration)); ApiResource.checkNullTypedParams(path, params); ApiRequest request = new ApiRequest( BaseAddress.API, ApiResource.RequestMethod.GET, path, ApiRequestParams.paramsToMap(params), options, ApiMode.V1); return getGlobalResponseGetter().request(request, PaymentMethodConfiguration.class); } /** Update payment method configuration. */ public PaymentMethodConfiguration update(Map params) throws StripeException { return update(params, (RequestOptions) null); } /** Update payment method configuration. */ public PaymentMethodConfiguration update(Map params, RequestOptions options) throws StripeException { String path = String.format( "/v1/payment_method_configurations/%s", ApiResource.urlEncodeId(this.getId())); ApiRequest request = new ApiRequest( BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options, ApiMode.V1); return getResponseGetter().request(request, PaymentMethodConfiguration.class); } /** Update payment method configuration. */ public PaymentMethodConfiguration update(PaymentMethodConfigurationUpdateParams params) throws StripeException { return update(params, (RequestOptions) null); } /** Update payment method configuration. */ public PaymentMethodConfiguration update( PaymentMethodConfigurationUpdateParams params, RequestOptions options) throws StripeException { String path = String.format( "/v1/payment_method_configurations/%s", ApiResource.urlEncodeId(this.getId())); ApiResource.checkNullTypedParams(path, params); ApiRequest request = new ApiRequest( BaseAddress.API, ApiResource.RequestMethod.POST, path, ApiRequestParams.paramsToMap(params), options, ApiMode.V1); return getResponseGetter().request(request, PaymentMethodConfiguration.class); } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class AcssDebit extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Affirm extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class AfterpayClearpay extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Alipay extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class AmazonPay extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class ApplePay extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class AuBecsDebit extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class BacsDebit extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Bancontact extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Blik extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Boleto extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Card extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class CartesBancaires extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Cashapp extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class CustomerBalance extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Eps extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Fpx extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Giropay extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class GooglePay extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Grabpay extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Ideal extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Jcb extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Klarna extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Konbini extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Link extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Mobilepay extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Multibanco extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Oxxo extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class P24 extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Paynow extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Paypal extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Promptpay extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class RevolutPay extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class SepaDebit extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Sofort extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Swish extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Twint extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class UsBankAccount extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class WechatPay extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class Zip extends StripeObject { /** * Whether this payment method may be offered at checkout. True if {@code display_preference} is * {@code on} and the payment method's capability is active. */ @SerializedName("available") Boolean available; @SerializedName("display_preference") DisplayPreference displayPreference; @Getter @Setter @EqualsAndHashCode(callSuper = false) public static class DisplayPreference extends StripeObject { /** * For child configs, whether or not the account's preference will be observed. If {@code * false}, the parent configuration's default is used. */ @SerializedName("overridable") Boolean overridable; /** * The account's display preference. * *

One of {@code none}, {@code off}, or {@code on}. */ @SerializedName("preference") String preference; /** * The effective display preference value. * *

One of {@code off}, or {@code on}. */ @SerializedName("value") String value; } } @Override public void setResponseGetter(StripeResponseGetter responseGetter) { super.setResponseGetter(responseGetter); trySetResponseGetter(acssDebit, responseGetter); trySetResponseGetter(affirm, responseGetter); trySetResponseGetter(afterpayClearpay, responseGetter); trySetResponseGetter(alipay, responseGetter); trySetResponseGetter(amazonPay, responseGetter); trySetResponseGetter(applePay, responseGetter); trySetResponseGetter(auBecsDebit, responseGetter); trySetResponseGetter(bacsDebit, responseGetter); trySetResponseGetter(bancontact, responseGetter); trySetResponseGetter(blik, responseGetter); trySetResponseGetter(boleto, responseGetter); trySetResponseGetter(card, responseGetter); trySetResponseGetter(cartesBancaires, responseGetter); trySetResponseGetter(cashapp, responseGetter); trySetResponseGetter(customerBalance, responseGetter); trySetResponseGetter(eps, responseGetter); trySetResponseGetter(fpx, responseGetter); trySetResponseGetter(giropay, responseGetter); trySetResponseGetter(googlePay, responseGetter); trySetResponseGetter(grabpay, responseGetter); trySetResponseGetter(ideal, responseGetter); trySetResponseGetter(jcb, responseGetter); trySetResponseGetter(klarna, responseGetter); trySetResponseGetter(konbini, responseGetter); trySetResponseGetter(link, responseGetter); trySetResponseGetter(mobilepay, responseGetter); trySetResponseGetter(multibanco, responseGetter); trySetResponseGetter(oxxo, responseGetter); trySetResponseGetter(p24, responseGetter); trySetResponseGetter(paynow, responseGetter); trySetResponseGetter(paypal, responseGetter); trySetResponseGetter(promptpay, responseGetter); trySetResponseGetter(revolutPay, responseGetter); trySetResponseGetter(sepaDebit, responseGetter); trySetResponseGetter(sofort, responseGetter); trySetResponseGetter(swish, responseGetter); trySetResponseGetter(twint, responseGetter); trySetResponseGetter(usBankAccount, responseGetter); trySetResponseGetter(wechatPay, responseGetter); trySetResponseGetter(zip, responseGetter); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy