flightData;
@@ -4014,6 +4018,82 @@ public static class Recipient extends StripeObject {
}
}
+ /**
+ * For more details about FleetDatum, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class FleetDatum extends StripeObject {
+ @SerializedName("primary_fuel_fields")
+ PrimaryFuelFields primaryFuelFields;
+
+ @SerializedName("station")
+ Station station;
+
+ @SerializedName("vat")
+ Vat vat;
+
+ /**
+ * For more details about PrimaryFuelFields, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class PrimaryFuelFields extends StripeObject {
+ /** The fuel brand. */
+ @SerializedName("brand")
+ String brand;
+ }
+
+ /**
+ * For more details about Station, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Station extends StripeObject {
+ /** Additional contact information for the station. */
+ @SerializedName("additional_contact_info")
+ String additionalContactInfo;
+
+ /** The customer service phone number of the station. */
+ @SerializedName("customer_service_phone_number")
+ String customerServicePhoneNumber;
+
+ /** The partner ID code of the station. */
+ @SerializedName("partner_id_code")
+ String partnerIdCode;
+
+ /** The phone number of the station. */
+ @SerializedName("phone_number")
+ String phoneNumber;
+
+ @SerializedName("service_location")
+ com.stripe.model.Address serviceLocation;
+
+ /** The URL of the station. */
+ @SerializedName("url")
+ String url;
+ }
+
+ /**
+ * For more details about Vat, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Vat extends StripeObject {
+ /** Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing. */
+ @SerializedName("iob_indicator")
+ String iobIndicator;
+ }
+ }
+
/**
* For more details about FlightDatum, please refer to the API Reference.
diff --git a/src/main/java/com/stripe/model/PaymentIntentAmountDetailsLineItem.java b/src/main/java/com/stripe/model/PaymentIntentAmountDetailsLineItem.java
index 28aac26eba8..ad67f2f45e2 100644
--- a/src/main/java/com/stripe/model/PaymentIntentAmountDetailsLineItem.java
+++ b/src/main/java/com/stripe/model/PaymentIntentAmountDetailsLineItem.java
@@ -66,6 +66,13 @@ public class PaymentIntentAmountDetailsLineItem extends ApiResource implements H
@SerializedName("quantity")
Long quantity;
+ /**
+ * The number of decimal places implied in the quantity. For example, if quantity is 10000 and
+ * quantity_precision is 2, the actual quantity is 100.00. Defaults to 0 if not provided.
+ */
+ @SerializedName("quantity_precision")
+ Long quantityPrecision;
+
/** Contains information about the tax on the item. */
@SerializedName("tax")
Tax tax;
@@ -158,6 +165,26 @@ public static class PaymentMethodOptions extends StripeObject {
public static class Card extends StripeObject {
@SerializedName("commodity_code")
String commodityCode;
+
+ @SerializedName("fleet_data")
+ FleetData fleetData;
+
+ /**
+ * For more details about FleetData, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class FleetData extends StripeObject {
+ /** The type of product being purchased at this line item. */
+ @SerializedName("product_type")
+ String productType;
+
+ /** The type of service received at the acceptor location. */
+ @SerializedName("service_type")
+ String serviceType;
+ }
}
/**
diff --git a/src/main/java/com/stripe/model/PaymentMethod.java b/src/main/java/com/stripe/model/PaymentMethod.java
index 5f29c70747b..81a47966329 100644
--- a/src/main/java/com/stripe/model/PaymentMethod.java
+++ b/src/main/java/com/stripe/model/PaymentMethod.java
@@ -262,6 +262,10 @@ public class PaymentMethod extends ApiResource implements HasId, MetadataStoreAPI
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Bizum extends StripeObject {}
+
/**
* For more details about Card, please refer to the API
* Reference.
diff --git a/src/main/java/com/stripe/model/Subscription.java b/src/main/java/com/stripe/model/Subscription.java
index 9c0703f2864..1c3dab37ee0 100644
--- a/src/main/java/com/stripe/model/Subscription.java
+++ b/src/main/java/com/stripe/model/Subscription.java
@@ -1980,6 +1980,13 @@ public static class PaymentMethodOptions extends StripeObject {
@SerializedName("bancontact")
Bancontact bancontact;
+ /**
+ * This sub-hash contains details about the Bizum payment method options to pass to invoices
+ * created by the subscription.
+ */
+ @SerializedName("bizum")
+ Bizum bizum;
+
/**
* This sub-hash contains details about the Card payment method options to pass to invoices
* created by the subscription.
@@ -2105,6 +2112,39 @@ public static class Bancontact extends StripeObject {
String preferredLanguage;
}
+ /**
+ * For more details about Bizum, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Bizum extends StripeObject {
+ @SerializedName("mandate_options")
+ MandateOptions mandateOptions;
+
+ /**
+ * For more details about MandateOptions, please refer to the API Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MandateOptions extends StripeObject {
+ /** Amount to be charged for future payments. Required when {@code amount_type=fixed}. */
+ @SerializedName("amount")
+ Long amount;
+
+ /**
+ * Indicates the mandate amount type.
+ *
+ *
Equal to {@code fixed}.
+ */
+ @SerializedName("amount_type")
+ String amountType;
+ }
+ }
+
/**
* For more details about Card, please refer to the API
* Reference.
diff --git a/src/main/java/com/stripe/model/delegatedcheckout/RequestedSession.java b/src/main/java/com/stripe/model/delegatedcheckout/RequestedSession.java
index 6a8705b9cd6..8170f04f2e7 100644
--- a/src/main/java/com/stripe/model/delegatedcheckout/RequestedSession.java
+++ b/src/main/java/com/stripe/model/delegatedcheckout/RequestedSession.java
@@ -144,7 +144,7 @@ public class RequestedSession extends ApiResource
/**
* The status of the requested session.
*
- *
One of {@code completed}, {@code expired}, or {@code open}.
+ *
One of {@code completed}, {@code expired}, {@code open}, or {@code requires_action}.
*/
@SerializedName("status")
String status;
diff --git a/src/main/java/com/stripe/model/radar/CustomerEvaluation.java b/src/main/java/com/stripe/model/radar/CustomerEvaluation.java
index 27c22cadc9a..c36eb80648c 100644
--- a/src/main/java/com/stripe/model/radar/CustomerEvaluation.java
+++ b/src/main/java/com/stripe/model/radar/CustomerEvaluation.java
@@ -29,11 +29,15 @@ public class CustomerEvaluation extends ApiResource implements HasId {
@SerializedName("created_at")
Long createdAt;
- /** The ID of the Stripe customer the customer evaluation is associated with. */
+ /** The ID of the Customer to associate with this CustomerEvaluation. */
@SerializedName("customer")
String customer;
- /** The type of evaluation event. */
+ /**
+ * The type of evaluation event.
+ *
+ *
One of {@code login}, or {@code registration}.
+ */
@SerializedName("event_type")
String eventType;
@@ -61,7 +65,7 @@ public class CustomerEvaluation extends ApiResource implements HasId {
@SerializedName("object")
String object;
- /** A hash of signal objects providing Radar's evaluation for the lifecycle event. */
+ /** A hash of signal objects providing Radar's evaluation of the customer. */
@SerializedName("signals")
Signals signals;
@@ -203,11 +207,16 @@ public static class AccountSharing extends StripeObject {
@SerializedName("evaluated_at")
Long evaluatedAt;
- /** The risk level for this signal. */
+ /**
+ * The risk level for this signal.
+ *
+ *
One of {@code elevated}, {@code highest}, {@code low}, {@code normal}, {@code
+ * not_assessed}, or {@code unknown}.
+ */
@SerializedName("risk_level")
String riskLevel;
- /** Score for this signal (float between 0.0-100.0). */
+ /** Score for this signal (between 0.0 and 100.0). */
@SerializedName("score")
BigDecimal score;
}
@@ -224,11 +233,16 @@ public static class MultiAccounting extends StripeObject {
@SerializedName("evaluated_at")
Long evaluatedAt;
- /** The risk level for this signal. */
+ /**
+ * The risk level for this signal.
+ *
+ *
One of {@code elevated}, {@code highest}, {@code low}, {@code normal}, {@code
+ * not_assessed}, or {@code unknown}.
+ */
@SerializedName("risk_level")
String riskLevel;
- /** Score for this signal (float between 0.0-100.0). */
+ /** Score for this signal (between 0.0 and 100.0). */
@SerializedName("score")
BigDecimal score;
}
diff --git a/src/main/java/com/stripe/model/radar/PaymentEvaluation.java b/src/main/java/com/stripe/model/radar/PaymentEvaluation.java
index bc881239003..fa67e199d3e 100644
--- a/src/main/java/com/stripe/model/radar/PaymentEvaluation.java
+++ b/src/main/java/com/stripe/model/radar/PaymentEvaluation.java
@@ -151,6 +151,13 @@ public static PaymentEvaluation create(
@Setter
@EqualsAndHashCode(callSuper = false)
public static class ClientDeviceMetadataDetails extends StripeObject {
+ /**
+ * Direct client device attributes such as IP address and user agent. Use this as an alternative
+ * to radar_session when a Radar Session isn't available.
+ */
+ @SerializedName("data")
+ Data data;
+
/**
* ID for the Radar Session associated with the payment evaluation. A Radar Session is a snapshot of the
@@ -159,6 +166,35 @@ public static class ClientDeviceMetadataDetails extends StripeObject {
*/
@SerializedName("radar_session")
String radarSession;
+
+ /**
+ * Direct client device attributes such as IP address and user agent. Use this as an alternative
+ * to radar_session when a Radar Session isn't available.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Data extends StripeObject {
+ /** The IP address of the client device. */
+ @SerializedName("ip")
+ String ip;
+
+ /** Pasted fields from the checkout flow. */
+ @SerializedName("pasted_fields")
+ List pastedFields;
+
+ /** The referrer of the client device. */
+ @SerializedName("referrer")
+ String referrer;
+
+ /** The time on page in milliseconds. */
+ @SerializedName("time_on_page_ms")
+ Long timeOnPageMs;
+
+ /** The user agent of the client device. */
+ @SerializedName("user_agent")
+ String userAgent;
+ }
}
/** Customer details attached to this payment evaluation. */
diff --git a/src/main/java/com/stripe/model/sharedpayment/GrantedToken.java b/src/main/java/com/stripe/model/sharedpayment/GrantedToken.java
index 88613c91d3d..b74828b38dd 100644
--- a/src/main/java/com/stripe/model/sharedpayment/GrantedToken.java
+++ b/src/main/java/com/stripe/model/sharedpayment/GrantedToken.java
@@ -328,6 +328,9 @@ public static class PaymentMethodDetails extends StripeObject {
@SerializedName("stripe_balance")
StripeBalance stripeBalance;
+ @SerializedName("sunbit")
+ Sunbit sunbit;
+
@SerializedName("swish")
Swish swish;
@@ -350,8 +353,8 @@ public static class PaymentMethodDetails extends StripeObject {
* pay_by_bank}, {@code payco}, {@code paynow}, {@code paypal}, {@code paypay}, {@code payto},
* {@code pix}, {@code promptpay}, {@code qris}, {@code rechnung}, {@code revolut_pay}, {@code
* samsung_pay}, {@code satispay}, {@code sepa_debit}, {@code shopeepay}, {@code sofort}, {@code
- * stripe_balance}, {@code swish}, {@code twint}, {@code upi}, {@code us_bank_account}, {@code
- * wechat_pay}, or {@code zip}.
+ * stripe_balance}, {@code sunbit}, {@code swish}, {@code twint}, {@code upi}, {@code
+ * us_bank_account}, {@code wechat_pay}, or {@code zip}.
*/
@SerializedName("type")
String type;
@@ -1881,6 +1884,15 @@ public static class StripeBalance extends StripeObject {
String account;
}
+ /**
+ * For more details about Sunbit, please refer to the API
+ * Reference.
+ */
+ @Getter
+ @Setter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Sunbit extends StripeObject {}
+
/**
* For more details about Swish, please refer to the API
* Reference.
diff --git a/src/main/java/com/stripe/model/v2/core/Account.java b/src/main/java/com/stripe/model/v2/core/Account.java
index 0f5c3dd7de1..22e69eed313 100644
--- a/src/main/java/com/stripe/model/v2/core/Account.java
+++ b/src/main/java/com/stripe/model/v2/core/Account.java
@@ -8874,30 +8874,25 @@ public static class IdNumber extends StripeObject {
* One of {@code ae_crn}, {@code ae_vat}, {@code ao_nif}, {@code ar_cuit}, {@code at_fn},
* {@code at_stn}, {@code at_vat}, {@code au_abn}, {@code au_acn}, {@code au_in}, {@code
* az_tin}, {@code bd_etin}, {@code be_cbe}, {@code be_vat}, {@code bg_uic}, {@code bg_vat},
- * {@code bm_crn}, {@code bo_tin}, {@code br_cnpj}, {@code bt_tpn}, {@code ca_cn}, {@code
- * ca_crarr}, {@code ca_gst_hst}, {@code ca_neq}, {@code ca_rid}, {@code ch_chid}, {@code
- * ch_uid}, {@code co_nit}, {@code cr_cpj}, {@code cr_nite}, {@code cy_he}, {@code cy_tic},
- * {@code cy_vat}, {@code cz_ico}, {@code cz_vat}, {@code de_hrn}, {@code de_stn}, {@code
- * de_vat}, {@code dk_cvr}, {@code dk_vat}, {@code do_rcn}, {@code ec_ruc}, {@code ee_rk},
- * {@code ee_vat}, {@code eg_tin}, {@code es_cif}, {@code es_vat}, {@code fi_vat}, {@code
- * fi_yt}, {@code fr_rna}, {@code fr_siren}, {@code fr_vat}, {@code gb_crn}, {@code gb_vat},
- * {@code gh_tin}, {@code gi_crn}, {@code gr_afm}, {@code gr_gemi}, {@code gr_vat}, {@code
- * gt_nit}, {@code gy_tin}, {@code hk_br}, {@code hk_cr}, {@code hn_rtn}, {@code hr_mbs},
- * {@code hr_oib}, {@code hr_vat}, {@code hu_cjs}, {@code hu_tin}, {@code hu_vat}, {@code
- * ie_crn}, {@code ie_trn}, {@code ie_vat}, {@code it_rea}, {@code it_vat}, {@code jm_trn},
- * {@code jo_crn}, {@code jp_cn}, {@code ke_pin}, {@code ky_crn}, {@code kz_bin}, {@code
- * li_uid}, {@code lk_tin}, {@code lt_ccrn}, {@code lt_vat}, {@code lu_nif}, {@code lu_rcs},
- * {@code lu_vat}, {@code lv_urn}, {@code lv_vat}, {@code mo_tin}, {@code mt_crn}, {@code
- * mt_tin}, {@code mt_vat}, {@code mv_tin}, {@code mx_rfc}, {@code my_brn}, {@code my_coid},
- * {@code my_itn}, {@code my_sst}, {@code mz_nuit}, {@code ng_tin}, {@code nl_kvk}, {@code
+ * {@code br_cnpj}, {@code ca_cn}, {@code ca_crarr}, {@code ca_gst_hst}, {@code ca_neq},
+ * {@code ca_rid}, {@code ch_chid}, {@code ch_uid}, {@code cr_cpj}, {@code cr_nite}, {@code
+ * cy_he}, {@code cy_tic}, {@code cy_vat}, {@code cz_ico}, {@code cz_vat}, {@code de_hrn},
+ * {@code de_stn}, {@code de_vat}, {@code dk_cvr}, {@code dk_vat}, {@code do_rcn}, {@code
+ * ee_rk}, {@code ee_vat}, {@code es_cif}, {@code es_vat}, {@code fi_vat}, {@code fi_yt},
+ * {@code fr_rna}, {@code fr_siren}, {@code fr_vat}, {@code gb_crn}, {@code gb_vat}, {@code
+ * gi_crn}, {@code gr_afm}, {@code gr_gemi}, {@code gr_vat}, {@code gt_nit}, {@code hk_br},
+ * {@code hk_cr}, {@code hr_mbs}, {@code hr_oib}, {@code hr_vat}, {@code hu_cjs}, {@code
+ * hu_tin}, {@code hu_vat}, {@code ie_crn}, {@code ie_trn}, {@code ie_vat}, {@code it_rea},
+ * {@code it_vat}, {@code jp_cn}, {@code kz_bin}, {@code li_uid}, {@code lt_ccrn}, {@code
+ * lt_vat}, {@code lu_nif}, {@code lu_rcs}, {@code lu_vat}, {@code lv_urn}, {@code lv_vat},
+ * {@code mt_crn}, {@code mt_tin}, {@code mt_vat}, {@code mx_rfc}, {@code my_brn}, {@code
+ * my_coid}, {@code my_itn}, {@code my_sst}, {@code mz_nuit}, {@code nl_kvk}, {@code
* nl_rsin}, {@code nl_vat}, {@code no_orgnr}, {@code nz_bn}, {@code nz_ird}, {@code
- * pa_ruc}, {@code pe_ruc}, {@code ph_tin}, {@code pk_ntn}, {@code pl_nip}, {@code
- * pl_regon}, {@code pl_vat}, {@code pt_vat}, {@code py_ruc}, {@code ro_cui}, {@code
- * ro_orc}, {@code ro_vat}, {@code sa_crn}, {@code sa_tin}, {@code se_orgnr}, {@code
- * se_vat}, {@code sg_uen}, {@code si_msp}, {@code si_tin}, {@code si_vat}, {@code sk_dic},
- * {@code sk_ico}, {@code sk_vat}, {@code sl_tin}, {@code sv_nit}, {@code th_crn}, {@code
- * th_prn}, {@code th_tin}, {@code us_ein}, {@code uy_ruc}, {@code vg_cn}, or {@code
- * za_tin}.
+ * pe_ruc}, {@code pk_ntn}, {@code pl_nip}, {@code pl_regon}, {@code pl_vat}, {@code
+ * pt_vat}, {@code ro_cui}, {@code ro_orc}, {@code ro_vat}, {@code sa_crn}, {@code sa_tin},
+ * {@code se_orgnr}, {@code se_vat}, {@code sg_uen}, {@code si_msp}, {@code si_tin}, {@code
+ * si_vat}, {@code sk_dic}, {@code sk_ico}, {@code sk_vat}, {@code th_crn}, {@code th_prn},
+ * {@code th_tin}, or {@code us_ein}.
*/
@SerializedName("type")
String type;
@@ -9581,23 +9576,19 @@ public static class IdNumber extends StripeObject {
*
*
One of {@code ae_eid}, {@code ao_nif}, {@code ar_cuil}, {@code ar_dni}, {@code
* at_stn}, {@code az_tin}, {@code bd_brc}, {@code bd_etin}, {@code bd_nid}, {@code be_nrn},
- * {@code bg_ucn}, {@code bm_pp}, {@code bn_nric}, {@code bo_ci}, {@code br_cpf}, {@code
- * bt_cid}, {@code ca_sin}, {@code ch_oasi}, {@code cl_rut}, {@code cn_pp}, {@code co_nuip},
- * {@code cr_ci}, {@code cr_cpf}, {@code cr_dimex}, {@code cr_nite}, {@code cy_tic}, {@code
- * cz_rc}, {@code de_stn}, {@code dk_cpr}, {@code do_cie}, {@code do_rcn}, {@code ec_ci},
- * {@code ee_ik}, {@code eg_tin}, {@code es_nif}, {@code fi_hetu}, {@code fr_nir}, {@code
- * gb_nino}, {@code gh_pin}, {@code gr_afm}, {@code gt_nit}, {@code gy_tin}, {@code hk_id},
- * {@code hn_rtn}, {@code hr_oib}, {@code hu_ad}, {@code id_nik}, {@code ie_ppsn}, {@code
- * is_kt}, {@code it_cf}, {@code jm_trn}, {@code jo_pin}, {@code jp_inc}, {@code ke_pin},
- * {@code ky_pp}, {@code kz_iin}, {@code li_peid}, {@code lk_nic}, {@code lt_ak}, {@code
- * lu_nif}, {@code lv_pk}, {@code mo_bir}, {@code mt_nic}, {@code mv_tin}, {@code mx_rfc},
- * {@code my_nric}, {@code mz_nuit}, {@code ng_nin}, {@code nl_bsn}, {@code no_nin}, {@code
- * nz_ird}, {@code pa_ruc}, {@code pe_dni}, {@code ph_tin}, {@code pk_cnic}, {@code
- * pk_snic}, {@code pl_pesel}, {@code pt_nif}, {@code py_ruc}, {@code ro_cnp}, {@code
- * sa_tin}, {@code se_pin}, {@code sg_fin}, {@code sg_nric}, {@code si_pin}, {@code sk_dic},
- * {@code sv_nit}, {@code th_lc}, {@code th_pin}, {@code tr_tin}, {@code us_itin}, {@code
- * us_itin_last_4}, {@code us_ssn}, {@code us_ssn_last_4}, {@code uy_dni}, {@code vg_pp}, or
- * {@code za_id}.
+ * {@code bg_ucn}, {@code bn_nric}, {@code br_cpf}, {@code ca_sin}, {@code ch_oasi}, {@code
+ * cl_rut}, {@code cn_pp}, {@code co_nuip}, {@code cr_ci}, {@code cr_cpf}, {@code cr_dimex},
+ * {@code cr_nite}, {@code cy_tic}, {@code cz_rc}, {@code de_stn}, {@code dk_cpr}, {@code
+ * do_cie}, {@code do_rcn}, {@code ec_ci}, {@code ee_ik}, {@code es_nif}, {@code fi_hetu},
+ * {@code fr_nir}, {@code gb_nino}, {@code gr_afm}, {@code gt_nit}, {@code hk_id}, {@code
+ * hr_oib}, {@code hu_ad}, {@code id_nik}, {@code ie_ppsn}, {@code is_kt}, {@code it_cf},
+ * {@code jp_inc}, {@code ke_pin}, {@code kz_iin}, {@code li_peid}, {@code lt_ak}, {@code
+ * lu_nif}, {@code lv_pk}, {@code mx_rfc}, {@code my_nric}, {@code mz_nuit}, {@code ng_nin},
+ * {@code nl_bsn}, {@code no_nin}, {@code nz_ird}, {@code pe_dni}, {@code pk_cnic}, {@code
+ * pk_snic}, {@code pl_pesel}, {@code pt_nif}, {@code ro_cnp}, {@code sa_tin}, {@code
+ * se_pin}, {@code sg_fin}, {@code sg_nric}, {@code sk_dic}, {@code th_lc}, {@code th_pin},
+ * {@code tr_tin}, {@code us_itin}, {@code us_itin_last_4}, {@code us_ssn}, {@code
+ * us_ssn_last_4}, {@code uy_dni}, or {@code za_id}.
*/
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/model/v2/core/AccountPerson.java b/src/main/java/com/stripe/model/v2/core/AccountPerson.java
index 71fc2a61202..25eed6ceaab 100644
--- a/src/main/java/com/stripe/model/v2/core/AccountPerson.java
+++ b/src/main/java/com/stripe/model/v2/core/AccountPerson.java
@@ -533,22 +533,19 @@ public static class IdNumber extends StripeObject {
*
*
One of {@code ae_eid}, {@code ao_nif}, {@code ar_cuil}, {@code ar_dni}, {@code at_stn},
* {@code az_tin}, {@code bd_brc}, {@code bd_etin}, {@code bd_nid}, {@code be_nrn}, {@code
- * bg_ucn}, {@code bm_pp}, {@code bn_nric}, {@code bo_ci}, {@code br_cpf}, {@code bt_cid},
- * {@code ca_sin}, {@code ch_oasi}, {@code cl_rut}, {@code cn_pp}, {@code co_nuip}, {@code
- * cr_ci}, {@code cr_cpf}, {@code cr_dimex}, {@code cr_nite}, {@code cy_tic}, {@code cz_rc},
- * {@code de_stn}, {@code dk_cpr}, {@code do_cie}, {@code do_rcn}, {@code ec_ci}, {@code ee_ik},
- * {@code eg_tin}, {@code es_nif}, {@code fi_hetu}, {@code fr_nir}, {@code gb_nino}, {@code
- * gh_pin}, {@code gr_afm}, {@code gt_nit}, {@code gy_tin}, {@code hk_id}, {@code hn_rtn},
- * {@code hr_oib}, {@code hu_ad}, {@code id_nik}, {@code ie_ppsn}, {@code is_kt}, {@code it_cf},
- * {@code jm_trn}, {@code jo_pin}, {@code jp_inc}, {@code ke_pin}, {@code ky_pp}, {@code
- * kz_iin}, {@code li_peid}, {@code lk_nic}, {@code lt_ak}, {@code lu_nif}, {@code lv_pk},
- * {@code mo_bir}, {@code mt_nic}, {@code mv_tin}, {@code mx_rfc}, {@code my_nric}, {@code
- * mz_nuit}, {@code ng_nin}, {@code nl_bsn}, {@code no_nin}, {@code nz_ird}, {@code pa_ruc},
- * {@code pe_dni}, {@code ph_tin}, {@code pk_cnic}, {@code pk_snic}, {@code pl_pesel}, {@code
- * pt_nif}, {@code py_ruc}, {@code ro_cnp}, {@code sa_tin}, {@code se_pin}, {@code sg_fin},
- * {@code sg_nric}, {@code si_pin}, {@code sk_dic}, {@code sv_nit}, {@code th_lc}, {@code
- * th_pin}, {@code tr_tin}, {@code us_itin}, {@code us_itin_last_4}, {@code us_ssn}, {@code
- * us_ssn_last_4}, {@code uy_dni}, {@code vg_pp}, or {@code za_id}.
+ * bg_ucn}, {@code bn_nric}, {@code br_cpf}, {@code ca_sin}, {@code ch_oasi}, {@code cl_rut},
+ * {@code cn_pp}, {@code co_nuip}, {@code cr_ci}, {@code cr_cpf}, {@code cr_dimex}, {@code
+ * cr_nite}, {@code cy_tic}, {@code cz_rc}, {@code de_stn}, {@code dk_cpr}, {@code do_cie},
+ * {@code do_rcn}, {@code ec_ci}, {@code ee_ik}, {@code es_nif}, {@code fi_hetu}, {@code
+ * fr_nir}, {@code gb_nino}, {@code gr_afm}, {@code gt_nit}, {@code hk_id}, {@code hr_oib},
+ * {@code hu_ad}, {@code id_nik}, {@code ie_ppsn}, {@code is_kt}, {@code it_cf}, {@code jp_inc},
+ * {@code ke_pin}, {@code kz_iin}, {@code li_peid}, {@code lt_ak}, {@code lu_nif}, {@code
+ * lv_pk}, {@code mx_rfc}, {@code my_nric}, {@code mz_nuit}, {@code ng_nin}, {@code nl_bsn},
+ * {@code no_nin}, {@code nz_ird}, {@code pe_dni}, {@code pk_cnic}, {@code pk_snic}, {@code
+ * pl_pesel}, {@code pt_nif}, {@code ro_cnp}, {@code sa_tin}, {@code se_pin}, {@code sg_fin},
+ * {@code sg_nric}, {@code sk_dic}, {@code th_lc}, {@code th_pin}, {@code tr_tin}, {@code
+ * us_itin}, {@code us_itin_last_4}, {@code us_ssn}, {@code us_ssn_last_4}, {@code uy_dni}, or
+ * {@code za_id}.
*/
@SerializedName("type")
String type;
diff --git a/src/main/java/com/stripe/param/ChargeCaptureParams.java b/src/main/java/com/stripe/param/ChargeCaptureParams.java
index 4a495e62578..4889ded2821 100644
--- a/src/main/java/com/stripe/param/ChargeCaptureParams.java
+++ b/src/main/java/com/stripe/param/ChargeCaptureParams.java
@@ -332,6 +332,10 @@ public static class PaymentDetails {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
+ /** Fleet data for this PaymentIntent. */
+ @SerializedName("fleet_data")
+ Object fleetData;
+
/** Flight reservation details for this PaymentIntent. */
@SerializedName("flight")
Flight flight;
@@ -373,6 +377,7 @@ private PaymentDetails(
Object customerReference,
EventDetails eventDetails,
Map extraParams,
+ Object fleetData,
Flight flight,
Object flightData,
Lodging lodging,
@@ -385,6 +390,7 @@ private PaymentDetails(
this.customerReference = customerReference;
this.eventDetails = eventDetails;
this.extraParams = extraParams;
+ this.fleetData = fleetData;
this.flight = flight;
this.flightData = flightData;
this.lodging = lodging;
@@ -409,6 +415,8 @@ public static class Builder {
private Map extraParams;
+ private Object fleetData;
+
private Flight flight;
private Object flightData;
@@ -431,6 +439,7 @@ public ChargeCaptureParams.PaymentDetails build() {
this.customerReference,
this.eventDetails,
this.extraParams,
+ this.fleetData,
this.flight,
this.flightData,
this.lodging,
@@ -543,6 +552,46 @@ public Builder putAllExtraParam(Map map) {
return this;
}
+ /**
+ * Add an element to `fleetData` list. A list is initialized for the first `add/addAll` call,
+ * and subsequent calls adds additional elements to the original list. See {@link
+ * ChargeCaptureParams.PaymentDetails#fleetData} for the field documentation.
+ */
+ @SuppressWarnings("unchecked")
+ public Builder addFleetData(ChargeCaptureParams.PaymentDetails.FleetData element) {
+ if (this.fleetData == null || this.fleetData instanceof EmptyParam) {
+ this.fleetData = new ArrayList();
+ }
+ ((List) this.fleetData).add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `fleetData` list. A list is initialized for the first `add/addAll`
+ * call, and subsequent calls adds additional elements to the original list. See {@link
+ * ChargeCaptureParams.PaymentDetails#fleetData} for the field documentation.
+ */
+ @SuppressWarnings("unchecked")
+ public Builder addAllFleetData(List elements) {
+ if (this.fleetData == null || this.fleetData instanceof EmptyParam) {
+ this.fleetData = new ArrayList();
+ }
+ ((List) this.fleetData).addAll(elements);
+ return this;
+ }
+
+ /** Fleet data for this PaymentIntent. */
+ public Builder setFleetData(EmptyParam fleetData) {
+ this.fleetData = fleetData;
+ return this;
+ }
+
+ /** Fleet data for this PaymentIntent. */
+ public Builder setFleetData(List fleetData) {
+ this.fleetData = fleetData;
+ return this;
+ }
+
/** Flight reservation details for this PaymentIntent. */
public Builder setFlight(ChargeCaptureParams.PaymentDetails.Flight flight) {
this.flight = flight;
@@ -5049,29 +5098,7 @@ public enum Mode implements ApiRequestParams.EnumParam {
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Flight {
- /** Affiliate details for this purchase. */
- @SerializedName("affiliate")
- Affiliate affiliate;
-
- /**
- * The agency number (i.e. International Air Transport Association (IATA) agency number) of
- * the travel agency that made the booking.
- */
- @SerializedName("agency_number")
- String agencyNumber;
-
- /**
- * The International Air Transport Association (IATA) carrier code of the carrier that issued
- * the ticket.
- */
- @SerializedName("carrier")
- String carrier;
-
- /** Delivery details for this purchase. */
- @SerializedName("delivery")
- Delivery delivery;
-
+ public static class FleetData {
/**
* Map of extra parameters for custom features not available in this client library. The
* content in this map is not serialized under this field's {@code @SerializedName} value.
@@ -5081,41 +5108,27 @@ public static class Flight {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** The name of the person or entity on the reservation. */
- @SerializedName("passenger_name")
- String passengerName;
-
- /** The details of the passengers in the travel reservation. */
- @SerializedName("passengers")
- List passengers;
+ /** Primary fuel fields for the transaction. */
+ @SerializedName("primary_fuel_fields")
+ PrimaryFuelFields primaryFuelFields;
- /** Required. The individual flight segments associated with the trip. */
- @SerializedName("segments")
- List segments;
+ /** Station and acceptor location details. */
+ @SerializedName("station")
+ Station station;
- /** The ticket number associated with the travel reservation. */
- @SerializedName("ticket_number")
- String ticketNumber;
+ /** VAT and Invoice on Behalf (IOB) details. */
+ @SerializedName("vat")
+ Vat vat;
- private Flight(
- Affiliate affiliate,
- String agencyNumber,
- String carrier,
- Delivery delivery,
+ private FleetData(
Map extraParams,
- String passengerName,
- List passengers,
- List segments,
- String ticketNumber) {
- this.affiliate = affiliate;
- this.agencyNumber = agencyNumber;
- this.carrier = carrier;
- this.delivery = delivery;
+ PrimaryFuelFields primaryFuelFields,
+ Station station,
+ Vat vat) {
this.extraParams = extraParams;
- this.passengerName = passengerName;
- this.passengers = passengers;
- this.segments = segments;
- this.ticketNumber = ticketNumber;
+ this.primaryFuelFields = primaryFuelFields;
+ this.station = station;
+ this.vat = vat;
}
public static Builder builder() {
@@ -5123,72 +5136,24 @@ public static Builder builder() {
}
public static class Builder {
- private Affiliate affiliate;
-
- private String agencyNumber;
-
- private String carrier;
-
- private Delivery delivery;
-
private Map extraParams;
- private String passengerName;
-
- private List passengers;
+ private PrimaryFuelFields primaryFuelFields;
- private List segments;
+ private Station station;
- private String ticketNumber;
+ private Vat vat;
/** Finalize and obtain parameter instance from this builder. */
- public ChargeCaptureParams.PaymentDetails.Flight build() {
- return new ChargeCaptureParams.PaymentDetails.Flight(
- this.affiliate,
- this.agencyNumber,
- this.carrier,
- this.delivery,
- this.extraParams,
- this.passengerName,
- this.passengers,
- this.segments,
- this.ticketNumber);
- }
-
- /** Affiliate details for this purchase. */
- public Builder setAffiliate(ChargeCaptureParams.PaymentDetails.Flight.Affiliate affiliate) {
- this.affiliate = affiliate;
- return this;
- }
-
- /**
- * The agency number (i.e. International Air Transport Association (IATA) agency number) of
- * the travel agency that made the booking.
- */
- public Builder setAgencyNumber(String agencyNumber) {
- this.agencyNumber = agencyNumber;
- return this;
- }
-
- /**
- * The International Air Transport Association (IATA) carrier code of the carrier that
- * issued the ticket.
- */
- public Builder setCarrier(String carrier) {
- this.carrier = carrier;
- return this;
- }
-
- /** Delivery details for this purchase. */
- public Builder setDelivery(ChargeCaptureParams.PaymentDetails.Flight.Delivery delivery) {
- this.delivery = delivery;
- return this;
+ public ChargeCaptureParams.PaymentDetails.FleetData build() {
+ return new ChargeCaptureParams.PaymentDetails.FleetData(
+ this.extraParams, this.primaryFuelFields, this.station, this.vat);
}
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.Flight#extraParams} for the field
+ * map. See {@link ChargeCaptureParams.PaymentDetails.FleetData#extraParams} for the field
* documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -5202,7 +5167,7 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.Flight#extraParams} for the field
+ * map. See {@link ChargeCaptureParams.PaymentDetails.FleetData#extraParams} for the field
* documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -5213,76 +5178,33 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** The name of the person or entity on the reservation. */
- public Builder setPassengerName(String passengerName) {
- this.passengerName = passengerName;
- return this;
- }
-
- /**
- * Add an element to `passengers` list. A list is initialized for the first `add/addAll`
- * call, and subsequent calls adds additional elements to the original list. See {@link
- * ChargeCaptureParams.PaymentDetails.Flight#passengers} for the field documentation.
- */
- public Builder addPassenger(ChargeCaptureParams.PaymentDetails.Flight.Passenger element) {
- if (this.passengers == null) {
- this.passengers = new ArrayList<>();
- }
- this.passengers.add(element);
- return this;
- }
-
- /**
- * Add all elements to `passengers` list. A list is initialized for the first `add/addAll`
- * call, and subsequent calls adds additional elements to the original list. See {@link
- * ChargeCaptureParams.PaymentDetails.Flight#passengers} for the field documentation.
- */
- public Builder addAllPassenger(
- List elements) {
- if (this.passengers == null) {
- this.passengers = new ArrayList<>();
- }
- this.passengers.addAll(elements);
- return this;
- }
-
- /**
- * Add an element to `segments` list. A list is initialized for the first `add/addAll` call,
- * and subsequent calls adds additional elements to the original list. See {@link
- * ChargeCaptureParams.PaymentDetails.Flight#segments} for the field documentation.
- */
- public Builder addSegment(ChargeCaptureParams.PaymentDetails.Flight.Segment element) {
- if (this.segments == null) {
- this.segments = new ArrayList<>();
- }
- this.segments.add(element);
+ /** Primary fuel fields for the transaction. */
+ public Builder setPrimaryFuelFields(
+ ChargeCaptureParams.PaymentDetails.FleetData.PrimaryFuelFields primaryFuelFields) {
+ this.primaryFuelFields = primaryFuelFields;
return this;
}
- /**
- * Add all elements to `segments` list. A list is initialized for the first `add/addAll`
- * call, and subsequent calls adds additional elements to the original list. See {@link
- * ChargeCaptureParams.PaymentDetails.Flight#segments} for the field documentation.
- */
- public Builder addAllSegment(
- List elements) {
- if (this.segments == null) {
- this.segments = new ArrayList<>();
- }
- this.segments.addAll(elements);
+ /** Station and acceptor location details. */
+ public Builder setStation(ChargeCaptureParams.PaymentDetails.FleetData.Station station) {
+ this.station = station;
return this;
}
- /** The ticket number associated with the travel reservation. */
- public Builder setTicketNumber(String ticketNumber) {
- this.ticketNumber = ticketNumber;
+ /** VAT and Invoice on Behalf (IOB) details. */
+ public Builder setVat(ChargeCaptureParams.PaymentDetails.FleetData.Vat vat) {
+ this.vat = vat;
return this;
}
}
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Affiliate {
+ public static class PrimaryFuelFields {
+ /** The fuel brand. */
+ @SerializedName("brand")
+ Brand brand;
+
/**
* Map of extra parameters for custom features not available in this client library. The
* content in this map is not serialized under this field's {@code @SerializedName} value.
@@ -5293,13 +5215,9 @@ public static class Affiliate {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Required. The name of the affiliate that originated the purchase. */
- @SerializedName("name")
- String name;
-
- private Affiliate(Map extraParams, String name) {
+ private PrimaryFuelFields(Brand brand, Map extraParams) {
+ this.brand = brand;
this.extraParams = extraParams;
- this.name = name;
}
public static Builder builder() {
@@ -5307,21 +5225,29 @@ public static Builder builder() {
}
public static class Builder {
- private Map extraParams;
+ private Brand brand;
- private String name;
+ private Map extraParams;
/** Finalize and obtain parameter instance from this builder. */
- public ChargeCaptureParams.PaymentDetails.Flight.Affiliate build() {
- return new ChargeCaptureParams.PaymentDetails.Flight.Affiliate(
- this.extraParams, this.name);
+ public ChargeCaptureParams.PaymentDetails.FleetData.PrimaryFuelFields build() {
+ return new ChargeCaptureParams.PaymentDetails.FleetData.PrimaryFuelFields(
+ this.brand, this.extraParams);
+ }
+
+ /** The fuel brand. */
+ public Builder setBrand(
+ ChargeCaptureParams.PaymentDetails.FleetData.PrimaryFuelFields.Brand brand) {
+ this.brand = brand;
+ return this;
}
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.Flight.Affiliate#extraParams} for
- * the field documentation.
+ * map. See {@link
+ * ChargeCaptureParams.PaymentDetails.FleetData.PrimaryFuelFields#extraParams} for the
+ * field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -5334,8 +5260,9 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.Flight.Affiliate#extraParams} for
- * the field documentation.
+ * map. See {@link
+ * ChargeCaptureParams.PaymentDetails.FleetData.PrimaryFuelFields#extraParams} for the
+ * field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
@@ -5344,64 +5271,516 @@ public Builder putAllExtraParam(Map map) {
this.extraParams.putAll(map);
return this;
}
-
- /** Required. The name of the affiliate that originated the purchase. */
- public Builder setName(String name) {
- this.name = name;
- return this;
- }
}
- }
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Delivery {
- /**
- * Map of extra parameters for custom features not available in this client library. The
- * content in this map is not serialized under this field's {@code @SerializedName} value.
- * Instead, each key/value pair is serialized as if the key is a root-level field
- * (serialized) name in this param object. Effectively, this map is flattened to its parent
- * instance.
- */
- @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
- Map extraParams;
+ public enum Brand implements ApiRequestParams.EnumParam {
+ @SerializedName("aafes")
+ AAFES("aafes"),
- /** The delivery method for the payment. */
- @SerializedName("mode")
- Mode mode;
+ @SerializedName("amerada_hess")
+ AMERADA_HESS("amerada_hess"),
- /** Details of the recipient. */
- @SerializedName("recipient")
- Recipient recipient;
+ @SerializedName("amoco_canada")
+ AMOCO_CANADA("amoco_canada"),
- private Delivery(Map extraParams, Mode mode, Recipient recipient) {
- this.extraParams = extraParams;
- this.mode = mode;
- this.recipient = recipient;
- }
+ @SerializedName("amoco_petroleum_products")
+ AMOCO_PETROLEUM_PRODUCTS("amoco_petroleum_products"),
- public static Builder builder() {
- return new Builder();
- }
+ @SerializedName("arco_products")
+ ARCO_PRODUCTS("arco_products"),
- public static class Builder {
- private Map extraParams;
+ @SerializedName("asda")
+ ASDA("asda"),
- private Mode mode;
+ @SerializedName("ashland_oil")
+ ASHLAND_OIL("ashland_oil"),
- private Recipient recipient;
+ @SerializedName("bfl")
+ BFL("bfl"),
- /** Finalize and obtain parameter instance from this builder. */
- public ChargeCaptureParams.PaymentDetails.Flight.Delivery build() {
- return new ChargeCaptureParams.PaymentDetails.Flight.Delivery(
- this.extraParams, this.mode, this.recipient);
+ @SerializedName("bp_mobil")
+ BP_MOBIL("bp_mobil"),
+
+ @SerializedName("bp_oil")
+ BP_OIL("bp_oil"),
+
+ @SerializedName("burrnah_major")
+ BURRNAH_MAJOR("burrnah_major"),
+
+ @SerializedName("butler_arndale")
+ BUTLER_ARNDALE("butler_arndale"),
+
+ @SerializedName("canadian_tire")
+ CANADIAN_TIRE("canadian_tire"),
+
+ @SerializedName("canadian_turbo")
+ CANADIAN_TURBO("canadian_turbo"),
+
+ @SerializedName("caseys_general_store")
+ CASEYS_GENERAL_STORE("caseys_general_store"),
+
+ @SerializedName("cenex")
+ CENEX("cenex"),
+
+ @SerializedName("chevron_canada")
+ CHEVRON_CANADA("chevron_canada"),
+
+ @SerializedName("chevron_usa")
+ CHEVRON_USA("chevron_usa"),
+
+ @SerializedName("circle_k_stores")
+ CIRCLE_K_STORES("circle_k_stores"),
+
+ @SerializedName("citgo_petroleum")
+ CITGO_PETROLEUM("citgo_petroleum"),
+
+ @SerializedName("clark_brands")
+ CLARK_BRANDS("clark_brands"),
+
+ @SerializedName("conoco_canada")
+ CONOCO_CANADA("conoco_canada"),
+
+ @SerializedName("conoco_inc")
+ CONOCO_INC("conoco_inc"),
+
+ @SerializedName("crown_central_petroleum")
+ CROWN_CENTRAL_PETROLEUM("crown_central_petroleum"),
+
+ @SerializedName("diamond_shamrock_inc")
+ DIAMOND_SHAMROCK_INC("diamond_shamrock_inc"),
+
+ @SerializedName("discount_tire")
+ DISCOUNT_TIRE("discount_tire"),
+
+ @SerializedName("domo_gas")
+ DOMO_GAS("domo_gas"),
+
+ @SerializedName("elf")
+ ELF("elf"),
+
+ @SerializedName("erickson_oil")
+ ERICKSON_OIL("erickson_oil"),
+
+ @SerializedName("esso")
+ ESSO("esso"),
+
+ @SerializedName("esso_canada")
+ ESSO_CANADA("esso_canada"),
+
+ @SerializedName("exxon")
+ EXXON("exxon"),
+
+ @SerializedName("exxonmobil")
+ EXXONMOBIL("exxonmobil"),
+
+ @SerializedName("family_express")
+ FAMILY_EXPRESS("family_express"),
+
+ @SerializedName("fas_gas_oil")
+ FAS_GAS_OIL("fas_gas_oil"),
+
+ @SerializedName("federated_coop_sonic")
+ FEDERATED_COOP_SONIC("federated_coop_sonic"),
+
+ @SerializedName("fina")
+ FINA("fina"),
+
+ @SerializedName("fina_inc")
+ FINA_INC("fina_inc"),
+
+ @SerializedName("fkg_oil")
+ FKG_OIL("fkg_oil"),
+
+ @SerializedName("flare")
+ FLARE("flare"),
+
+ @SerializedName("flying_j_inc")
+ FLYING_J_INC("flying_j_inc"),
+
+ @SerializedName("gas_america")
+ GAS_AMERICA("gas_america"),
+
+ @SerializedName("gate_petroleum")
+ GATE_PETROLEUM("gate_petroleum"),
+
+ @SerializedName("getty_petroleum")
+ GETTY_PETROLEUM("getty_petroleum"),
+
+ @SerializedName("giant_eagle")
+ GIANT_EAGLE("giant_eagle"),
+
+ @SerializedName("grow_mark_inc")
+ GROW_MARK_INC("grow_mark_inc"),
+
+ @SerializedName("gulf")
+ GULF("gulf"),
+
+ @SerializedName("gulf_canada")
+ GULF_CANADA("gulf_canada"),
+
+ @SerializedName("gulf_chevron")
+ GULF_CHEVRON("gulf_chevron"),
+
+ @SerializedName("handy_way_food")
+ HANDY_WAY_FOOD("handy_way_food"),
+
+ @SerializedName("heron")
+ HERON("heron"),
+
+ @SerializedName("holiday_stores")
+ HOLIDAY_STORES("holiday_stores"),
+
+ @SerializedName("home_depot")
+ HOME_DEPOT("home_depot"),
+
+ @SerializedName("husky")
+ HUSKY("husky"),
+
+ @SerializedName("hyvees")
+ HYVEES("hyvees"),
+
+ @SerializedName("irving")
+ IRVING("irving"),
+
+ @SerializedName("irving_oil")
+ IRVING_OIL("irving_oil"),
+
+ @SerializedName("j_sainsbury")
+ J_SAINSBURY("j_sainsbury"),
+
+ @SerializedName("jet_conoco")
+ JET_CONOCO("jet_conoco"),
+
+ @SerializedName("krogers")
+ KROGERS("krogers"),
+
+ @SerializedName("kuwait")
+ KUWAIT("kuwait"),
+
+ @SerializedName("kwik_trip_inc")
+ KWIK_TRIP_INC("kwik_trip_inc"),
+
+ @SerializedName("lassus")
+ LASSUS("lassus"),
+
+ @SerializedName("loves_country_stores")
+ LOVES_COUNTRY_STORES("loves_country_stores"),
+
+ @SerializedName("mapco_express_inc")
+ MAPCO_EXPRESS_INC("mapco_express_inc"),
+
+ @SerializedName("marathon_oil")
+ MARATHON_OIL("marathon_oil"),
+
+ @SerializedName("martin_bailey_inc_dba_hucks")
+ MARTIN_BAILEY_INC_DBA_HUCKS("martin_bailey_inc_dba_hucks"),
+
+ @SerializedName("maxol")
+ MAXOL("maxol"),
+
+ @SerializedName("meineke")
+ MEINEKE("meineke"),
+
+ @SerializedName("mfa")
+ MFA("mfa"),
+
+ @SerializedName("mohawk")
+ MOHAWK("mohawk"),
+
+ @SerializedName("mr_gas")
+ MR_GAS("mr_gas"),
+
+ @SerializedName("murco")
+ MURCO("murco"),
+
+ @SerializedName("murphy_oil_canada")
+ MURPHY_OIL_CANADA("murphy_oil_canada"),
+
+ @SerializedName("murphy_oil_usa_inc")
+ MURPHY_OIL_USA_INC("murphy_oil_usa_inc"),
+
+ @SerializedName("nexcom")
+ NEXCOM("nexcom"),
+
+ @SerializedName("nordstrom_oil")
+ NORDSTROM_OIL("nordstrom_oil"),
+
+ @SerializedName("olco")
+ OLCO("olco"),
+
+ @SerializedName("pdq_store")
+ PDQ_STORE("pdq_store"),
+
+ @SerializedName("pennzoil_products_inc")
+ PENNZOIL_PRODUCTS_INC("pennzoil_products_inc"),
+
+ @SerializedName("petro")
+ PETRO("petro"),
+
+ @SerializedName("petro_canada")
+ PETRO_CANADA("petro_canada"),
+
+ @SerializedName("petro_t")
+ PETRO_T("petro_t"),
+
+ @SerializedName("phillips")
+ PHILLIPS("phillips"),
+
+ @SerializedName("pilot")
+ PILOT("pilot"),
+
+ @SerializedName("pioneer")
+ PIONEER("pioneer"),
+
+ @SerializedName("pure_oil")
+ PURE_OIL("pure_oil"),
+
+ @SerializedName("quaker_state")
+ QUAKER_STATE("quaker_state"),
+
+ @SerializedName("quarles_oil")
+ QUARLES_OIL("quarles_oil"),
+
+ @SerializedName("quiktrip")
+ QUIKTRIP("quiktrip"),
+
+ @SerializedName("racetrac_petroleum_inc")
+ RACETRAC_PETROLEUM_INC("racetrac_petroleum_inc"),
+
+ @SerializedName("raceway_petroleum")
+ RACEWAY_PETROLEUM("raceway_petroleum"),
+
+ @SerializedName("repsol")
+ REPSOL("repsol"),
+
+ @SerializedName("rudy")
+ RUDY("rudy"),
+
+ @SerializedName("safeway")
+ SAFEWAY("safeway"),
+
+ @SerializedName("seven_eleven")
+ SEVEN_ELEVEN("seven_eleven"),
+
+ @SerializedName("sheetz")
+ SHEETZ("sheetz"),
+
+ @SerializedName("shell")
+ SHELL("shell"),
+
+ @SerializedName("shell_canada")
+ SHELL_CANADA("shell_canada"),
+
+ @SerializedName("shell_oil")
+ SHELL_OIL("shell_oil"),
+
+ @SerializedName("sinclair_oil")
+ SINCLAIR_OIL("sinclair_oil"),
+
+ @SerializedName("southland_oil")
+ SOUTHLAND_OIL("southland_oil"),
+
+ @SerializedName("spar")
+ SPAR("spar"),
+
+ @SerializedName("speedway")
+ SPEEDWAY("speedway"),
+
+ @SerializedName("sun_company_inc")
+ SUN_COMPANY_INC("sun_company_inc"),
+
+ @SerializedName("suncor_sunoco_canada")
+ SUNCOR_SUNOCO_CANADA("suncor_sunoco_canada"),
+
+ @SerializedName("tempo")
+ TEMPO("tempo"),
+
+ @SerializedName("tesco")
+ TESCO("tesco"),
+
+ @SerializedName("tesoro_alaska")
+ TESORO_ALASKA("tesoro_alaska"),
+
+ @SerializedName("texaco")
+ TEXACO("texaco"),
+
+ @SerializedName("the_pantry_inc")
+ THE_PANTRY_INC("the_pantry_inc"),
+
+ @SerializedName("thornton_oil")
+ THORNTON_OIL("thornton_oil"),
+
+ @SerializedName("tosco")
+ TOSCO("tosco"),
+
+ @SerializedName("total")
+ TOTAL("total"),
+
+ @SerializedName("travel_centers_of_america")
+ TRAVEL_CENTERS_OF_AMERICA("travel_centers_of_america"),
+
+ @SerializedName("uk")
+ UK("uk"),
+
+ @SerializedName("ultramar_canada")
+ ULTRAMAR_CANADA("ultramar_canada"),
+
+ @SerializedName("unbranded_or_unassigned")
+ UNBRANDED_OR_UNASSIGNED("unbranded_or_unassigned"),
+
+ @SerializedName("unbranded_unassigned")
+ UNBRANDED_UNASSIGNED("unbranded_unassigned"),
+
+ @SerializedName("union_76")
+ UNION_76("union_76"),
+
+ @SerializedName("united_dairy_farmer")
+ UNITED_DAIRY_FARMER("united_dairy_farmer"),
+
+ @SerializedName("united_refining_kwikfill")
+ UNITED_REFINING_KWIKFILL("united_refining_kwikfill"),
+
+ @SerializedName("us_oil")
+ US_OIL("us_oil"),
+
+ @SerializedName("usa_petroleum")
+ USA_PETROLEUM("usa_petroleum"),
+
+ @SerializedName("valvoline")
+ VALVOLINE("valvoline"),
+
+ @SerializedName("vg")
+ VG("vg"),
+
+ @SerializedName("w_morrison")
+ W_MORRISON("w_morrison"),
+
+ @SerializedName("warren_equities")
+ WARREN_EQUITIES("warren_equities"),
+
+ @SerializedName("wawa")
+ WAWA("wawa"),
+
+ @SerializedName("western_energetix")
+ WESTERN_ENERGETIX("western_energetix"),
+
+ @SerializedName("wilco")
+ WILCO("wilco"),
+
+ @SerializedName("zions")
+ ZIONS("zions");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Brand(String value) {
+ this.value = value;
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Station {
+ /** Additional contact information for the station. */
+ @SerializedName("additional_contact_info")
+ String additionalContactInfo;
+
+ /** The customer service phone number of the station. */
+ @SerializedName("customer_service_phone_number")
+ String customerServicePhoneNumber;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its parent
+ * instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** The partner ID code of the station. */
+ @SerializedName("partner_id_code")
+ String partnerIdCode;
+
+ /** The phone number of the station. */
+ @SerializedName("phone_number")
+ String phoneNumber;
+
+ /** The physical location of the station. */
+ @SerializedName("service_location")
+ ServiceLocation serviceLocation;
+
+ /** The URL of the station. */
+ @SerializedName("url")
+ String url;
+
+ private Station(
+ String additionalContactInfo,
+ String customerServicePhoneNumber,
+ Map extraParams,
+ String partnerIdCode,
+ String phoneNumber,
+ ServiceLocation serviceLocation,
+ String url) {
+ this.additionalContactInfo = additionalContactInfo;
+ this.customerServicePhoneNumber = customerServicePhoneNumber;
+ this.extraParams = extraParams;
+ this.partnerIdCode = partnerIdCode;
+ this.phoneNumber = phoneNumber;
+ this.serviceLocation = serviceLocation;
+ this.url = url;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private String additionalContactInfo;
+
+ private String customerServicePhoneNumber;
+
+ private Map extraParams;
+
+ private String partnerIdCode;
+
+ private String phoneNumber;
+
+ private ServiceLocation serviceLocation;
+
+ private String url;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public ChargeCaptureParams.PaymentDetails.FleetData.Station build() {
+ return new ChargeCaptureParams.PaymentDetails.FleetData.Station(
+ this.additionalContactInfo,
+ this.customerServicePhoneNumber,
+ this.extraParams,
+ this.partnerIdCode,
+ this.phoneNumber,
+ this.serviceLocation,
+ this.url);
+ }
+
+ /** Additional contact information for the station. */
+ public Builder setAdditionalContactInfo(String additionalContactInfo) {
+ this.additionalContactInfo = additionalContactInfo;
+ return this;
+ }
+
+ /** The customer service phone number of the station. */
+ public Builder setCustomerServicePhoneNumber(String customerServicePhoneNumber) {
+ this.customerServicePhoneNumber = customerServicePhoneNumber;
+ return this;
}
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.Flight.Delivery#extraParams} for the
- * field documentation.
+ * map. See {@link ChargeCaptureParams.PaymentDetails.FleetData.Station#extraParams} for
+ * the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -5414,8 +5793,8 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.Flight.Delivery#extraParams} for the
- * field documentation.
+ * map. See {@link ChargeCaptureParams.PaymentDetails.FleetData.Station#extraParams} for
+ * the field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
@@ -5425,26 +5804,46 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** The delivery method for the payment. */
- public Builder setMode(ChargeCaptureParams.PaymentDetails.Flight.Delivery.Mode mode) {
- this.mode = mode;
+ /** The partner ID code of the station. */
+ public Builder setPartnerIdCode(String partnerIdCode) {
+ this.partnerIdCode = partnerIdCode;
return this;
}
- /** Details of the recipient. */
- public Builder setRecipient(
- ChargeCaptureParams.PaymentDetails.Flight.Delivery.Recipient recipient) {
- this.recipient = recipient;
+ /** The phone number of the station. */
+ public Builder setPhoneNumber(String phoneNumber) {
+ this.phoneNumber = phoneNumber;
+ return this;
+ }
+
+ /** The physical location of the station. */
+ public Builder setServiceLocation(
+ ChargeCaptureParams.PaymentDetails.FleetData.Station.ServiceLocation
+ serviceLocation) {
+ this.serviceLocation = serviceLocation;
+ return this;
+ }
+
+ /** The URL of the station. */
+ public Builder setUrl(String url) {
+ this.url = url;
return this;
}
}
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Recipient {
- /** The email of the recipient the ticket is delivered to. */
- @SerializedName("email")
- String email;
+ public static class ServiceLocation {
+ /** City, district, suburb, town, or village. */
+ @SerializedName("city")
+ String city;
+
+ /**
+ * Two-letter country code (ISO
+ * 3166-1 alpha-2).
+ */
+ @SerializedName("country")
+ String country;
/**
* Map of extra parameters for custom features not available in this client library. The
@@ -5456,20 +5855,42 @@ public static class Recipient {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** The name of the recipient the ticket is delivered to. */
- @SerializedName("name")
- String name;
+ /**
+ * Required. Address line 1, such as the street, PO Box, or company name.
+ */
+ @SerializedName("line1")
+ String line1;
- /** The phone number of the recipient the ticket is delivered to. */
- @SerializedName("phone")
- String phone;
+ /** Address line 2, such as the apartment, suite, unit, or building. */
+ @SerializedName("line2")
+ String line2;
- private Recipient(
- String email, Map extraParams, String name, String phone) {
- this.email = email;
+ /** ZIP or postal code. */
+ @SerializedName("postal_code")
+ String postalCode;
+
+ /**
+ * State, county, province, or region (ISO 3166-2).
+ */
+ @SerializedName("state")
+ String state;
+
+ private ServiceLocation(
+ String city,
+ String country,
+ Map extraParams,
+ String line1,
+ String line2,
+ String postalCode,
+ String state) {
+ this.city = city;
+ this.country = country;
this.extraParams = extraParams;
- this.name = name;
- this.phone = phone;
+ this.line1 = line1;
+ this.line2 = line2;
+ this.postalCode = postalCode;
+ this.state = state;
}
public static Builder builder() {
@@ -5477,23 +5898,44 @@ public static Builder builder() {
}
public static class Builder {
- private String email;
+ private String city;
+
+ private String country;
private Map extraParams;
- private String name;
+ private String line1;
- private String phone;
+ private String line2;
+
+ private String postalCode;
+
+ private String state;
/** Finalize and obtain parameter instance from this builder. */
- public ChargeCaptureParams.PaymentDetails.Flight.Delivery.Recipient build() {
- return new ChargeCaptureParams.PaymentDetails.Flight.Delivery.Recipient(
- this.email, this.extraParams, this.name, this.phone);
+ public ChargeCaptureParams.PaymentDetails.FleetData.Station.ServiceLocation build() {
+ return new ChargeCaptureParams.PaymentDetails.FleetData.Station.ServiceLocation(
+ this.city,
+ this.country,
+ this.extraParams,
+ this.line1,
+ this.line2,
+ this.postalCode,
+ this.state);
}
- /** The email of the recipient the ticket is delivered to. */
- public Builder setEmail(String email) {
- this.email = email;
+ /** City, district, suburb, town, or village. */
+ public Builder setCity(String city) {
+ this.city = city;
+ return this;
+ }
+
+ /**
+ * Two-letter country code (ISO 3166-1 alpha-2).
+ */
+ public Builder setCountry(String country) {
+ this.country = country;
return this;
}
@@ -5501,8 +5943,8 @@ public Builder setEmail(String email) {
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * ChargeCaptureParams.PaymentDetails.Flight.Delivery.Recipient#extraParams} for the
- * field documentation.
+ * ChargeCaptureParams.PaymentDetails.FleetData.Station.ServiceLocation#extraParams} for
+ * the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -5516,8 +5958,8 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * ChargeCaptureParams.PaymentDetails.Flight.Delivery.Recipient#extraParams} for the
- * field documentation.
+ * ChargeCaptureParams.PaymentDetails.FleetData.Station.ServiceLocation#extraParams} for
+ * the field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
@@ -5527,45 +5969,42 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** The name of the recipient the ticket is delivered to. */
- public Builder setName(String name) {
- this.name = name;
+ /**
+ * Required. Address line 1, such as the street, PO Box, or company
+ * name.
+ */
+ public Builder setLine1(String line1) {
+ this.line1 = line1;
return this;
}
- /** The phone number of the recipient the ticket is delivered to. */
- public Builder setPhone(String phone) {
- this.phone = phone;
+ /** Address line 2, such as the apartment, suite, unit, or building. */
+ public Builder setLine2(String line2) {
+ this.line2 = line2;
return this;
}
- }
- }
-
- public enum Mode implements ApiRequestParams.EnumParam {
- @SerializedName("email")
- EMAIL("email"),
-
- @SerializedName("phone")
- PHONE("phone"),
-
- @SerializedName("pickup")
- PICKUP("pickup"),
- @SerializedName("post")
- POST("post");
-
- @Getter(onMethod_ = {@Override})
- private final String value;
+ /** ZIP or postal code. */
+ public Builder setPostalCode(String postalCode) {
+ this.postalCode = postalCode;
+ return this;
+ }
- Mode(String value) {
- this.value = value;
+ /**
+ * State, county, province, or region (ISO 3166-2).
+ */
+ public Builder setState(String state) {
+ this.state = state;
+ return this;
+ }
}
}
}
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Passenger {
+ public static class Vat {
/**
* Map of extra parameters for custom features not available in this client library. The
* content in this map is not serialized under this field's {@code @SerializedName} value.
@@ -5577,14 +6016,15 @@ public static class Passenger {
Map extraParams;
/**
- * Required. Full name of the person or entity on the flight reservation.
+ * Required. Indicates the merchant's agreement for Invoice on Behalf (IOB)
+ * VAT processing.
*/
- @SerializedName("name")
- String name;
+ @SerializedName("iob_indicator")
+ IobIndicator iobIndicator;
- private Passenger(Map extraParams, String name) {
+ private Vat(Map extraParams, IobIndicator iobIndicator) {
this.extraParams = extraParams;
- this.name = name;
+ this.iobIndicator = iobIndicator;
}
public static Builder builder() {
@@ -5594,19 +6034,19 @@ public static Builder builder() {
public static class Builder {
private Map extraParams;
- private String name;
+ private IobIndicator iobIndicator;
/** Finalize and obtain parameter instance from this builder. */
- public ChargeCaptureParams.PaymentDetails.Flight.Passenger build() {
- return new ChargeCaptureParams.PaymentDetails.Flight.Passenger(
- this.extraParams, this.name);
+ public ChargeCaptureParams.PaymentDetails.FleetData.Vat build() {
+ return new ChargeCaptureParams.PaymentDetails.FleetData.Vat(
+ this.extraParams, this.iobIndicator);
}
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.Flight.Passenger#extraParams} for
- * the field documentation.
+ * map. See {@link ChargeCaptureParams.PaymentDetails.FleetData.Vat#extraParams} for the
+ * field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -5619,8 +6059,8 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.Flight.Passenger#extraParams} for
- * the field documentation.
+ * map. See {@link ChargeCaptureParams.PaymentDetails.FleetData.Vat#extraParams} for the
+ * field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
@@ -5631,182 +6071,312 @@ public Builder putAllExtraParam(Map map) {
}
/**
- * Required. Full name of the person or entity on the flight reservation.
+ * Required. Indicates the merchant's agreement for Invoice on Behalf
+ * (IOB) VAT processing.
*/
- public Builder setName(String name) {
- this.name = name;
+ public Builder setIobIndicator(
+ ChargeCaptureParams.PaymentDetails.FleetData.Vat.IobIndicator iobIndicator) {
+ this.iobIndicator = iobIndicator;
return this;
}
}
- }
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Segment {
- /** The flight segment amount. */
- @SerializedName("amount")
- Long amount;
+ public enum IobIndicator implements ApiRequestParams.EnumParam {
+ @SerializedName("issuer_to_iob")
+ ISSUER_TO_IOB("issuer_to_iob"),
- /**
- * The International Air Transport Association (IATA) airport code for the arrival airport.
- */
- @SerializedName("arrival_airport")
- String arrivalAirport;
+ @SerializedName("issuer_to_iob_and_incremental_certification")
+ ISSUER_TO_IOB_AND_INCREMENTAL_CERTIFICATION(
+ "issuer_to_iob_and_incremental_certification"),
- /** The arrival time for the flight segment. Measured in seconds since the Unix epoch. */
- @SerializedName("arrives_at")
- Long arrivesAt;
+ @SerializedName("merchant_does_not_agree_to_iob")
+ MERCHANT_DOES_NOT_AGREE_TO_IOB("merchant_does_not_agree_to_iob");
- /**
- * The International Air Transport Association (IATA) carrier code of the carrier operating
- * the flight segment.
- */
- @SerializedName("carrier")
- String carrier;
+ @Getter(onMethod_ = {@Override})
+ private final String value;
- /**
- * Required. The departure time for the flight segment. Measured in seconds
- * since the Unix epoch.
- */
- @SerializedName("departs_at")
- Long departsAt;
+ IobIndicator(String value) {
+ this.value = value;
+ }
+ }
+ }
+ }
- /**
- * The International Air Transport Association (IATA) airport code for the departure
- * airport.
- */
- @SerializedName("departure_airport")
- String departureAirport;
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Flight {
+ /** Affiliate details for this purchase. */
+ @SerializedName("affiliate")
+ Affiliate affiliate;
- /**
- * Map of extra parameters for custom features not available in this client library. The
- * content in this map is not serialized under this field's {@code @SerializedName} value.
- * Instead, each key/value pair is serialized as if the key is a root-level field
- * (serialized) name in this param object. Effectively, this map is flattened to its parent
- * instance.
- */
- @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
- Map extraParams;
+ /**
+ * The agency number (i.e. International Air Transport Association (IATA) agency number) of
+ * the travel agency that made the booking.
+ */
+ @SerializedName("agency_number")
+ String agencyNumber;
- /** The flight number associated with the segment. */
- @SerializedName("flight_number")
- String flightNumber;
+ /**
+ * The International Air Transport Association (IATA) carrier code of the carrier that issued
+ * the ticket.
+ */
+ @SerializedName("carrier")
+ String carrier;
- /** The fare class for the segment. */
- @SerializedName("service_class")
- ServiceClass serviceClass;
+ /** Delivery details for this purchase. */
+ @SerializedName("delivery")
+ Delivery delivery;
- private Segment(
- Long amount,
- String arrivalAirport,
- Long arrivesAt,
- String carrier,
- Long departsAt,
- String departureAirport,
- Map extraParams,
- String flightNumber,
- ServiceClass serviceClass) {
- this.amount = amount;
- this.arrivalAirport = arrivalAirport;
- this.arrivesAt = arrivesAt;
- this.carrier = carrier;
- this.departsAt = departsAt;
- this.departureAirport = departureAirport;
- this.extraParams = extraParams;
- this.flightNumber = flightNumber;
- this.serviceClass = serviceClass;
- }
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
- public static Builder builder() {
- return new Builder();
- }
+ /** The name of the person or entity on the reservation. */
+ @SerializedName("passenger_name")
+ String passengerName;
- public static class Builder {
- private Long amount;
+ /** The details of the passengers in the travel reservation. */
+ @SerializedName("passengers")
+ List passengers;
- private String arrivalAirport;
+ /** Required. The individual flight segments associated with the trip. */
+ @SerializedName("segments")
+ List segments;
- private Long arrivesAt;
+ /** The ticket number associated with the travel reservation. */
+ @SerializedName("ticket_number")
+ String ticketNumber;
- private String carrier;
+ private Flight(
+ Affiliate affiliate,
+ String agencyNumber,
+ String carrier,
+ Delivery delivery,
+ Map extraParams,
+ String passengerName,
+ List passengers,
+ List segments,
+ String ticketNumber) {
+ this.affiliate = affiliate;
+ this.agencyNumber = agencyNumber;
+ this.carrier = carrier;
+ this.delivery = delivery;
+ this.extraParams = extraParams;
+ this.passengerName = passengerName;
+ this.passengers = passengers;
+ this.segments = segments;
+ this.ticketNumber = ticketNumber;
+ }
- private Long departsAt;
+ public static Builder builder() {
+ return new Builder();
+ }
- private String departureAirport;
+ public static class Builder {
+ private Affiliate affiliate;
- private Map extraParams;
+ private String agencyNumber;
- private String flightNumber;
+ private String carrier;
- private ServiceClass serviceClass;
+ private Delivery delivery;
- /** Finalize and obtain parameter instance from this builder. */
- public ChargeCaptureParams.PaymentDetails.Flight.Segment build() {
- return new ChargeCaptureParams.PaymentDetails.Flight.Segment(
- this.amount,
- this.arrivalAirport,
- this.arrivesAt,
- this.carrier,
- this.departsAt,
- this.departureAirport,
- this.extraParams,
- this.flightNumber,
- this.serviceClass);
+ private Map extraParams;
+
+ private String passengerName;
+
+ private List passengers;
+
+ private List segments;
+
+ private String ticketNumber;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public ChargeCaptureParams.PaymentDetails.Flight build() {
+ return new ChargeCaptureParams.PaymentDetails.Flight(
+ this.affiliate,
+ this.agencyNumber,
+ this.carrier,
+ this.delivery,
+ this.extraParams,
+ this.passengerName,
+ this.passengers,
+ this.segments,
+ this.ticketNumber);
+ }
+
+ /** Affiliate details for this purchase. */
+ public Builder setAffiliate(ChargeCaptureParams.PaymentDetails.Flight.Affiliate affiliate) {
+ this.affiliate = affiliate;
+ return this;
+ }
+
+ /**
+ * The agency number (i.e. International Air Transport Association (IATA) agency number) of
+ * the travel agency that made the booking.
+ */
+ public Builder setAgencyNumber(String agencyNumber) {
+ this.agencyNumber = agencyNumber;
+ return this;
+ }
+
+ /**
+ * The International Air Transport Association (IATA) carrier code of the carrier that
+ * issued the ticket.
+ */
+ public Builder setCarrier(String carrier) {
+ this.carrier = carrier;
+ return this;
+ }
+
+ /** Delivery details for this purchase. */
+ public Builder setDelivery(ChargeCaptureParams.PaymentDetails.Flight.Delivery delivery) {
+ this.delivery = delivery;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link ChargeCaptureParams.PaymentDetails.Flight#extraParams} for the field
+ * documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
}
+ this.extraParams.put(key, value);
+ return this;
+ }
- /** The flight segment amount. */
- public Builder setAmount(Long amount) {
- this.amount = amount;
- return this;
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link ChargeCaptureParams.PaymentDetails.Flight#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
}
+ this.extraParams.putAll(map);
+ return this;
+ }
- /**
- * The International Air Transport Association (IATA) airport code for the arrival
- * airport.
- */
- public Builder setArrivalAirport(String arrivalAirport) {
- this.arrivalAirport = arrivalAirport;
- return this;
+ /** The name of the person or entity on the reservation. */
+ public Builder setPassengerName(String passengerName) {
+ this.passengerName = passengerName;
+ return this;
+ }
+
+ /**
+ * Add an element to `passengers` list. A list is initialized for the first `add/addAll`
+ * call, and subsequent calls adds additional elements to the original list. See {@link
+ * ChargeCaptureParams.PaymentDetails.Flight#passengers} for the field documentation.
+ */
+ public Builder addPassenger(ChargeCaptureParams.PaymentDetails.Flight.Passenger element) {
+ if (this.passengers == null) {
+ this.passengers = new ArrayList<>();
}
+ this.passengers.add(element);
+ return this;
+ }
- /** The arrival time for the flight segment. Measured in seconds since the Unix epoch. */
- public Builder setArrivesAt(Long arrivesAt) {
- this.arrivesAt = arrivesAt;
- return this;
+ /**
+ * Add all elements to `passengers` list. A list is initialized for the first `add/addAll`
+ * call, and subsequent calls adds additional elements to the original list. See {@link
+ * ChargeCaptureParams.PaymentDetails.Flight#passengers} for the field documentation.
+ */
+ public Builder addAllPassenger(
+ List elements) {
+ if (this.passengers == null) {
+ this.passengers = new ArrayList<>();
}
+ this.passengers.addAll(elements);
+ return this;
+ }
- /**
- * The International Air Transport Association (IATA) carrier code of the carrier
- * operating the flight segment.
- */
- public Builder setCarrier(String carrier) {
- this.carrier = carrier;
- return this;
+ /**
+ * Add an element to `segments` list. A list is initialized for the first `add/addAll` call,
+ * and subsequent calls adds additional elements to the original list. See {@link
+ * ChargeCaptureParams.PaymentDetails.Flight#segments} for the field documentation.
+ */
+ public Builder addSegment(ChargeCaptureParams.PaymentDetails.Flight.Segment element) {
+ if (this.segments == null) {
+ this.segments = new ArrayList<>();
}
+ this.segments.add(element);
+ return this;
+ }
- /**
- * Required. The departure time for the flight segment. Measured in
- * seconds since the Unix epoch.
- */
- public Builder setDepartsAt(Long departsAt) {
- this.departsAt = departsAt;
- return this;
+ /**
+ * Add all elements to `segments` list. A list is initialized for the first `add/addAll`
+ * call, and subsequent calls adds additional elements to the original list. See {@link
+ * ChargeCaptureParams.PaymentDetails.Flight#segments} for the field documentation.
+ */
+ public Builder addAllSegment(
+ List elements) {
+ if (this.segments == null) {
+ this.segments = new ArrayList<>();
}
+ this.segments.addAll(elements);
+ return this;
+ }
- /**
- * The International Air Transport Association (IATA) airport code for the departure
- * airport.
- */
- public Builder setDepartureAirport(String departureAirport) {
- this.departureAirport = departureAirport;
- return this;
+ /** The ticket number associated with the travel reservation. */
+ public Builder setTicketNumber(String ticketNumber) {
+ this.ticketNumber = ticketNumber;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Affiliate {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its parent
+ * instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Required. The name of the affiliate that originated the purchase. */
+ @SerializedName("name")
+ String name;
+
+ private Affiliate(Map extraParams, String name) {
+ this.extraParams = extraParams;
+ this.name = name;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private String name;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public ChargeCaptureParams.PaymentDetails.Flight.Affiliate build() {
+ return new ChargeCaptureParams.PaymentDetails.Flight.Affiliate(
+ this.extraParams, this.name);
}
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.Flight.Segment#extraParams} for the
- * field documentation.
+ * map. See {@link ChargeCaptureParams.PaymentDetails.Flight.Affiliate#extraParams} for
+ * the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -5819,8 +6389,8 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.Flight.Segment#extraParams} for the
- * field documentation.
+ * map. See {@link ChargeCaptureParams.PaymentDetails.Flight.Affiliate#extraParams} for
+ * the field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
@@ -5830,31 +6400,516 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** The flight number associated with the segment. */
- public Builder setFlightNumber(String flightNumber) {
- this.flightNumber = flightNumber;
- return this;
- }
-
- /** The fare class for the segment. */
- public Builder setServiceClass(
- ChargeCaptureParams.PaymentDetails.Flight.Segment.ServiceClass serviceClass) {
- this.serviceClass = serviceClass;
+ /** Required. The name of the affiliate that originated the purchase. */
+ public Builder setName(String name) {
+ this.name = name;
return this;
}
}
+ }
- public enum ServiceClass implements ApiRequestParams.EnumParam {
- @SerializedName("business")
- BUSINESS("business"),
-
- @SerializedName("economy")
- ECONOMY("economy"),
-
- @SerializedName("first")
- FIRST("first"),
-
- @SerializedName("premium_economy")
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Delivery {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its parent
+ * instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** The delivery method for the payment. */
+ @SerializedName("mode")
+ Mode mode;
+
+ /** Details of the recipient. */
+ @SerializedName("recipient")
+ Recipient recipient;
+
+ private Delivery(Map extraParams, Mode mode, Recipient recipient) {
+ this.extraParams = extraParams;
+ this.mode = mode;
+ this.recipient = recipient;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Mode mode;
+
+ private Recipient recipient;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public ChargeCaptureParams.PaymentDetails.Flight.Delivery build() {
+ return new ChargeCaptureParams.PaymentDetails.Flight.Delivery(
+ this.extraParams, this.mode, this.recipient);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link ChargeCaptureParams.PaymentDetails.Flight.Delivery#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link ChargeCaptureParams.PaymentDetails.Flight.Delivery#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** The delivery method for the payment. */
+ public Builder setMode(ChargeCaptureParams.PaymentDetails.Flight.Delivery.Mode mode) {
+ this.mode = mode;
+ return this;
+ }
+
+ /** Details of the recipient. */
+ public Builder setRecipient(
+ ChargeCaptureParams.PaymentDetails.Flight.Delivery.Recipient recipient) {
+ this.recipient = recipient;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Recipient {
+ /** The email of the recipient the ticket is delivered to. */
+ @SerializedName("email")
+ String email;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its
+ * parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** The name of the recipient the ticket is delivered to. */
+ @SerializedName("name")
+ String name;
+
+ /** The phone number of the recipient the ticket is delivered to. */
+ @SerializedName("phone")
+ String phone;
+
+ private Recipient(
+ String email, Map extraParams, String name, String phone) {
+ this.email = email;
+ this.extraParams = extraParams;
+ this.name = name;
+ this.phone = phone;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private String email;
+
+ private Map extraParams;
+
+ private String name;
+
+ private String phone;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public ChargeCaptureParams.PaymentDetails.Flight.Delivery.Recipient build() {
+ return new ChargeCaptureParams.PaymentDetails.Flight.Delivery.Recipient(
+ this.email, this.extraParams, this.name, this.phone);
+ }
+
+ /** The email of the recipient the ticket is delivered to. */
+ public Builder setEmail(String email) {
+ this.email = email;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * ChargeCaptureParams.PaymentDetails.Flight.Delivery.Recipient#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * ChargeCaptureParams.PaymentDetails.Flight.Delivery.Recipient#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** The name of the recipient the ticket is delivered to. */
+ public Builder setName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /** The phone number of the recipient the ticket is delivered to. */
+ public Builder setPhone(String phone) {
+ this.phone = phone;
+ return this;
+ }
+ }
+ }
+
+ public enum Mode implements ApiRequestParams.EnumParam {
+ @SerializedName("email")
+ EMAIL("email"),
+
+ @SerializedName("phone")
+ PHONE("phone"),
+
+ @SerializedName("pickup")
+ PICKUP("pickup"),
+
+ @SerializedName("post")
+ POST("post");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Mode(String value) {
+ this.value = value;
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Passenger {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its parent
+ * instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /**
+ * Required. Full name of the person or entity on the flight reservation.
+ */
+ @SerializedName("name")
+ String name;
+
+ private Passenger(Map extraParams, String name) {
+ this.extraParams = extraParams;
+ this.name = name;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private String name;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public ChargeCaptureParams.PaymentDetails.Flight.Passenger build() {
+ return new ChargeCaptureParams.PaymentDetails.Flight.Passenger(
+ this.extraParams, this.name);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link ChargeCaptureParams.PaymentDetails.Flight.Passenger#extraParams} for
+ * the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link ChargeCaptureParams.PaymentDetails.Flight.Passenger#extraParams} for
+ * the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Required. Full name of the person or entity on the flight reservation.
+ */
+ public Builder setName(String name) {
+ this.name = name;
+ return this;
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Segment {
+ /** The flight segment amount. */
+ @SerializedName("amount")
+ Long amount;
+
+ /**
+ * The International Air Transport Association (IATA) airport code for the arrival airport.
+ */
+ @SerializedName("arrival_airport")
+ String arrivalAirport;
+
+ /** The arrival time for the flight segment. Measured in seconds since the Unix epoch. */
+ @SerializedName("arrives_at")
+ Long arrivesAt;
+
+ /**
+ * The International Air Transport Association (IATA) carrier code of the carrier operating
+ * the flight segment.
+ */
+ @SerializedName("carrier")
+ String carrier;
+
+ /**
+ * Required. The departure time for the flight segment. Measured in seconds
+ * since the Unix epoch.
+ */
+ @SerializedName("departs_at")
+ Long departsAt;
+
+ /**
+ * The International Air Transport Association (IATA) airport code for the departure
+ * airport.
+ */
+ @SerializedName("departure_airport")
+ String departureAirport;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its parent
+ * instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** The flight number associated with the segment. */
+ @SerializedName("flight_number")
+ String flightNumber;
+
+ /** The fare class for the segment. */
+ @SerializedName("service_class")
+ ServiceClass serviceClass;
+
+ private Segment(
+ Long amount,
+ String arrivalAirport,
+ Long arrivesAt,
+ String carrier,
+ Long departsAt,
+ String departureAirport,
+ Map extraParams,
+ String flightNumber,
+ ServiceClass serviceClass) {
+ this.amount = amount;
+ this.arrivalAirport = arrivalAirport;
+ this.arrivesAt = arrivesAt;
+ this.carrier = carrier;
+ this.departsAt = departsAt;
+ this.departureAirport = departureAirport;
+ this.extraParams = extraParams;
+ this.flightNumber = flightNumber;
+ this.serviceClass = serviceClass;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Long amount;
+
+ private String arrivalAirport;
+
+ private Long arrivesAt;
+
+ private String carrier;
+
+ private Long departsAt;
+
+ private String departureAirport;
+
+ private Map extraParams;
+
+ private String flightNumber;
+
+ private ServiceClass serviceClass;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public ChargeCaptureParams.PaymentDetails.Flight.Segment build() {
+ return new ChargeCaptureParams.PaymentDetails.Flight.Segment(
+ this.amount,
+ this.arrivalAirport,
+ this.arrivesAt,
+ this.carrier,
+ this.departsAt,
+ this.departureAirport,
+ this.extraParams,
+ this.flightNumber,
+ this.serviceClass);
+ }
+
+ /** The flight segment amount. */
+ public Builder setAmount(Long amount) {
+ this.amount = amount;
+ return this;
+ }
+
+ /**
+ * The International Air Transport Association (IATA) airport code for the arrival
+ * airport.
+ */
+ public Builder setArrivalAirport(String arrivalAirport) {
+ this.arrivalAirport = arrivalAirport;
+ return this;
+ }
+
+ /** The arrival time for the flight segment. Measured in seconds since the Unix epoch. */
+ public Builder setArrivesAt(Long arrivesAt) {
+ this.arrivesAt = arrivesAt;
+ return this;
+ }
+
+ /**
+ * The International Air Transport Association (IATA) carrier code of the carrier
+ * operating the flight segment.
+ */
+ public Builder setCarrier(String carrier) {
+ this.carrier = carrier;
+ return this;
+ }
+
+ /**
+ * Required. The departure time for the flight segment. Measured in
+ * seconds since the Unix epoch.
+ */
+ public Builder setDepartsAt(Long departsAt) {
+ this.departsAt = departsAt;
+ return this;
+ }
+
+ /**
+ * The International Air Transport Association (IATA) airport code for the departure
+ * airport.
+ */
+ public Builder setDepartureAirport(String departureAirport) {
+ this.departureAirport = departureAirport;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link ChargeCaptureParams.PaymentDetails.Flight.Segment#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link ChargeCaptureParams.PaymentDetails.Flight.Segment#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** The flight number associated with the segment. */
+ public Builder setFlightNumber(String flightNumber) {
+ this.flightNumber = flightNumber;
+ return this;
+ }
+
+ /** The fare class for the segment. */
+ public Builder setServiceClass(
+ ChargeCaptureParams.PaymentDetails.Flight.Segment.ServiceClass serviceClass) {
+ this.serviceClass = serviceClass;
+ return this;
+ }
+ }
+
+ public enum ServiceClass implements ApiRequestParams.EnumParam {
+ @SerializedName("business")
+ BUSINESS("business"),
+
+ @SerializedName("economy")
+ ECONOMY("economy"),
+
+ @SerializedName("first")
+ FIRST("first"),
+
+ @SerializedName("premium_economy")
PREMIUM_ECONOMY("premium_economy");
@Getter(onMethod_ = {@Override})
@@ -8285,17 +9340,227 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Required. The name of the affiliate that originated the purchase. */
- public Builder setName(String name) {
- this.name = name;
- return this;
+ /** Required. The name of the affiliate that originated the purchase. */
+ public Builder setName(String name) {
+ this.name = name;
+ return this;
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Delivery {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its parent
+ * instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** The delivery method for the payment. */
+ @SerializedName("mode")
+ Mode mode;
+
+ /** Details of the recipient. */
+ @SerializedName("recipient")
+ Recipient recipient;
+
+ private Delivery(Map extraParams, Mode mode, Recipient recipient) {
+ this.extraParams = extraParams;
+ this.mode = mode;
+ this.recipient = recipient;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Map extraParams;
+
+ private Mode mode;
+
+ private Recipient recipient;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public ChargeCaptureParams.PaymentDetails.Lodging.Delivery build() {
+ return new ChargeCaptureParams.PaymentDetails.Lodging.Delivery(
+ this.extraParams, this.mode, this.recipient);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link ChargeCaptureParams.PaymentDetails.Lodging.Delivery#extraParams} for
+ * the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link ChargeCaptureParams.PaymentDetails.Lodging.Delivery#extraParams} for
+ * the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** The delivery method for the payment. */
+ public Builder setMode(ChargeCaptureParams.PaymentDetails.Lodging.Delivery.Mode mode) {
+ this.mode = mode;
+ return this;
+ }
+
+ /** Details of the recipient. */
+ public Builder setRecipient(
+ ChargeCaptureParams.PaymentDetails.Lodging.Delivery.Recipient recipient) {
+ this.recipient = recipient;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Recipient {
+ /** The email of the recipient the ticket is delivered to. */
+ @SerializedName("email")
+ String email;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its
+ * parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** The name of the recipient the ticket is delivered to. */
+ @SerializedName("name")
+ String name;
+
+ /** The phone number of the recipient the ticket is delivered to. */
+ @SerializedName("phone")
+ String phone;
+
+ private Recipient(
+ String email, Map extraParams, String name, String phone) {
+ this.email = email;
+ this.extraParams = extraParams;
+ this.name = name;
+ this.phone = phone;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private String email;
+
+ private Map extraParams;
+
+ private String name;
+
+ private String phone;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public ChargeCaptureParams.PaymentDetails.Lodging.Delivery.Recipient build() {
+ return new ChargeCaptureParams.PaymentDetails.Lodging.Delivery.Recipient(
+ this.email, this.extraParams, this.name, this.phone);
+ }
+
+ /** The email of the recipient the ticket is delivered to. */
+ public Builder setEmail(String email) {
+ this.email = email;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * ChargeCaptureParams.PaymentDetails.Lodging.Delivery.Recipient#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * ChargeCaptureParams.PaymentDetails.Lodging.Delivery.Recipient#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** The name of the recipient the ticket is delivered to. */
+ public Builder setName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /** The phone number of the recipient the ticket is delivered to. */
+ public Builder setPhone(String phone) {
+ this.phone = phone;
+ return this;
+ }
+ }
+ }
+
+ public enum Mode implements ApiRequestParams.EnumParam {
+ @SerializedName("email")
+ EMAIL("email"),
+
+ @SerializedName("phone")
+ PHONE("phone"),
+
+ @SerializedName("pickup")
+ PICKUP("pickup"),
+
+ @SerializedName("post")
+ POST("post");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Mode(String value) {
+ this.value = value;
}
}
}
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Delivery {
+ public static class Passenger {
/**
* Map of extra parameters for custom features not available in this client library. The
* content in this map is not serialized under this field's {@code @SerializedName} value.
@@ -8306,18 +9571,15 @@ public static class Delivery {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** The delivery method for the payment. */
- @SerializedName("mode")
- Mode mode;
-
- /** Details of the recipient. */
- @SerializedName("recipient")
- Recipient recipient;
+ /**
+ * Required. Full name of the person or entity on the lodging reservation.
+ */
+ @SerializedName("name")
+ String name;
- private Delivery(Map extraParams, Mode mode, Recipient recipient) {
+ private Passenger(Map extraParams, String name) {
this.extraParams = extraParams;
- this.mode = mode;
- this.recipient = recipient;
+ this.name = name;
}
public static Builder builder() {
@@ -8327,20 +9589,18 @@ public static Builder builder() {
public static class Builder {
private Map extraParams;
- private Mode mode;
-
- private Recipient recipient;
+ private String name;
/** Finalize and obtain parameter instance from this builder. */
- public ChargeCaptureParams.PaymentDetails.Lodging.Delivery build() {
- return new ChargeCaptureParams.PaymentDetails.Lodging.Delivery(
- this.extraParams, this.mode, this.recipient);
+ public ChargeCaptureParams.PaymentDetails.Lodging.Passenger build() {
+ return new ChargeCaptureParams.PaymentDetails.Lodging.Passenger(
+ this.extraParams, this.name);
}
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.Lodging.Delivery#extraParams} for
+ * map. See {@link ChargeCaptureParams.PaymentDetails.Lodging.Passenger#extraParams} for
* the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -8354,7 +9614,7 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.Lodging.Delivery#extraParams} for
+ * map. See {@link ChargeCaptureParams.PaymentDetails.Lodging.Passenger#extraParams} for
* the field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -8365,594 +9625,747 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** The delivery method for the payment. */
- public Builder setMode(ChargeCaptureParams.PaymentDetails.Lodging.Delivery.Mode mode) {
- this.mode = mode;
+ /**
+ * Required. Full name of the person or entity on the lodging
+ * reservation.
+ */
+ public Builder setName(String name) {
+ this.name = name;
return this;
}
+ }
+ }
- /** Details of the recipient. */
- public Builder setRecipient(
- ChargeCaptureParams.PaymentDetails.Lodging.Delivery.Recipient recipient) {
- this.recipient = recipient;
- return this;
- }
+ public enum Category implements ApiRequestParams.EnumParam {
+ @SerializedName("hotel")
+ HOTEL("hotel"),
+
+ @SerializedName("vacation_rental")
+ VACATION_RENTAL("vacation_rental");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Category(String value) {
+ this.value = value;
}
+ }
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Recipient {
- /** The email of the recipient the ticket is delivered to. */
- @SerializedName("email")
- String email;
+ public enum ExtraCharge implements ApiRequestParams.EnumParam {
+ @SerializedName("gift_shop")
+ GIFT_SHOP("gift_shop"),
- /**
- * Map of extra parameters for custom features not available in this client library. The
- * content in this map is not serialized under this field's {@code @SerializedName} value.
- * Instead, each key/value pair is serialized as if the key is a root-level field
- * (serialized) name in this param object. Effectively, this map is flattened to its
- * parent instance.
- */
- @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
- Map extraParams;
+ @SerializedName("laundry")
+ LAUNDRY("laundry"),
- /** The name of the recipient the ticket is delivered to. */
- @SerializedName("name")
- String name;
+ @SerializedName("mini_bar")
+ MINI_BAR("mini_bar"),
- /** The phone number of the recipient the ticket is delivered to. */
- @SerializedName("phone")
- String phone;
+ @SerializedName("other")
+ OTHER("other"),
- private Recipient(
- String email, Map extraParams, String name, String phone) {
- this.email = email;
- this.extraParams = extraParams;
- this.name = name;
- this.phone = phone;
- }
+ @SerializedName("restaurant")
+ RESTAURANT("restaurant"),
- public static Builder builder() {
- return new Builder();
- }
+ @SerializedName("telephone")
+ TELEPHONE("telephone");
- public static class Builder {
- private String email;
+ @Getter(onMethod_ = {@Override})
+ private final String value;
- private Map extraParams;
+ ExtraCharge(String value) {
+ this.value = value;
+ }
+ }
+ }
- private String name;
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class LodgingData {
+ /** Accommodation details for the lodging. */
+ @SerializedName("accommodation")
+ Accommodation accommodation;
- private String phone;
+ /** Affiliate details if applicable. */
+ @SerializedName("affiliate")
+ Affiliate affiliate;
+
+ /** Booking confirmation number for the lodging. */
+ @SerializedName("booking_number")
+ String bookingNumber;
+
+ /** Required. Check-in date. */
+ @SerializedName("checkin_at")
+ Long checkinAt;
+
+ /** Required. Check-out date. */
+ @SerializedName("checkout_at")
+ Long checkoutAt;
+
+ /** Customer service phone number for the lodging company. */
+ @SerializedName("customer_service_phone_number")
+ String customerServicePhoneNumber;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Whether the lodging is compliant with any hotel fire safety regulations. */
+ @SerializedName("fire_safety_act_compliance_indicator")
+ Boolean fireSafetyActComplianceIndicator;
+
+ /** List of guests for the lodging. */
+ @SerializedName("guests")
+ List guests;
+
+ /** Host details for the lodging. */
+ @SerializedName("host")
+ Host host;
+
+ /** List of insurances for the lodging. */
+ @SerializedName("insurances")
+ List insurances;
+
+ /** Whether the renter is a no-show. */
+ @SerializedName("no_show_indicator")
+ Boolean noShowIndicator;
+
+ /** Renter ID number for the lodging. */
+ @SerializedName("renter_id_number")
+ String renterIdNumber;
+
+ /** Renter name for the lodging. */
+ @SerializedName("renter_name")
+ String renterName;
+
+ /** Required. Total details for the lodging. */
+ @SerializedName("total")
+ Total total;
+
+ private LodgingData(
+ Accommodation accommodation,
+ Affiliate affiliate,
+ String bookingNumber,
+ Long checkinAt,
+ Long checkoutAt,
+ String customerServicePhoneNumber,
+ Map extraParams,
+ Boolean fireSafetyActComplianceIndicator,
+ List guests,
+ Host host,
+ List insurances,
+ Boolean noShowIndicator,
+ String renterIdNumber,
+ String renterName,
+ Total total) {
+ this.accommodation = accommodation;
+ this.affiliate = affiliate;
+ this.bookingNumber = bookingNumber;
+ this.checkinAt = checkinAt;
+ this.checkoutAt = checkoutAt;
+ this.customerServicePhoneNumber = customerServicePhoneNumber;
+ this.extraParams = extraParams;
+ this.fireSafetyActComplianceIndicator = fireSafetyActComplianceIndicator;
+ this.guests = guests;
+ this.host = host;
+ this.insurances = insurances;
+ this.noShowIndicator = noShowIndicator;
+ this.renterIdNumber = renterIdNumber;
+ this.renterName = renterName;
+ this.total = total;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Accommodation accommodation;
+
+ private Affiliate affiliate;
+
+ private String bookingNumber;
+
+ private Long checkinAt;
+
+ private Long checkoutAt;
+
+ private String customerServicePhoneNumber;
+
+ private Map extraParams;
+
+ private Boolean fireSafetyActComplianceIndicator;
+
+ private List guests;
+
+ private Host host;
- /** Finalize and obtain parameter instance from this builder. */
- public ChargeCaptureParams.PaymentDetails.Lodging.Delivery.Recipient build() {
- return new ChargeCaptureParams.PaymentDetails.Lodging.Delivery.Recipient(
- this.email, this.extraParams, this.name, this.phone);
- }
+ private List insurances;
- /** The email of the recipient the ticket is delivered to. */
- public Builder setEmail(String email) {
- this.email = email;
- return this;
- }
+ private Boolean noShowIndicator;
- /**
- * Add a key/value pair to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the
- * original map. See {@link
- * ChargeCaptureParams.PaymentDetails.Lodging.Delivery.Recipient#extraParams} for the
- * field documentation.
- */
- public Builder putExtraParam(String key, Object value) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.put(key, value);
- return this;
- }
+ private String renterIdNumber;
- /**
- * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the
- * original map. See {@link
- * ChargeCaptureParams.PaymentDetails.Lodging.Delivery.Recipient#extraParams} for the
- * field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
+ private String renterName;
- /** The name of the recipient the ticket is delivered to. */
- public Builder setName(String name) {
- this.name = name;
- return this;
- }
+ private Total total;
- /** The phone number of the recipient the ticket is delivered to. */
- public Builder setPhone(String phone) {
- this.phone = phone;
- return this;
- }
- }
+ /** Finalize and obtain parameter instance from this builder. */
+ public ChargeCaptureParams.PaymentDetails.LodgingData build() {
+ return new ChargeCaptureParams.PaymentDetails.LodgingData(
+ this.accommodation,
+ this.affiliate,
+ this.bookingNumber,
+ this.checkinAt,
+ this.checkoutAt,
+ this.customerServicePhoneNumber,
+ this.extraParams,
+ this.fireSafetyActComplianceIndicator,
+ this.guests,
+ this.host,
+ this.insurances,
+ this.noShowIndicator,
+ this.renterIdNumber,
+ this.renterName,
+ this.total);
}
- public enum Mode implements ApiRequestParams.EnumParam {
- @SerializedName("email")
- EMAIL("email"),
+ /** Accommodation details for the lodging. */
+ public Builder setAccommodation(
+ ChargeCaptureParams.PaymentDetails.LodgingData.Accommodation accommodation) {
+ this.accommodation = accommodation;
+ return this;
+ }
- @SerializedName("phone")
- PHONE("phone"),
+ /** Affiliate details if applicable. */
+ public Builder setAffiliate(
+ ChargeCaptureParams.PaymentDetails.LodgingData.Affiliate affiliate) {
+ this.affiliate = affiliate;
+ return this;
+ }
- @SerializedName("pickup")
- PICKUP("pickup"),
+ /** Booking confirmation number for the lodging. */
+ public Builder setBookingNumber(String bookingNumber) {
+ this.bookingNumber = bookingNumber;
+ return this;
+ }
- @SerializedName("post")
- POST("post");
+ /** Required. Check-in date. */
+ public Builder setCheckinAt(Long checkinAt) {
+ this.checkinAt = checkinAt;
+ return this;
+ }
- @Getter(onMethod_ = {@Override})
- private final String value;
+ /** Required. Check-out date. */
+ public Builder setCheckoutAt(Long checkoutAt) {
+ this.checkoutAt = checkoutAt;
+ return this;
+ }
- Mode(String value) {
- this.value = value;
- }
+ /** Customer service phone number for the lodging company. */
+ public Builder setCustomerServicePhoneNumber(String customerServicePhoneNumber) {
+ this.customerServicePhoneNumber = customerServicePhoneNumber;
+ return this;
}
- }
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Passenger {
/**
- * Map of extra parameters for custom features not available in this client library. The
- * content in this map is not serialized under this field's {@code @SerializedName} value.
- * Instead, each key/value pair is serialized as if the key is a root-level field
- * (serialized) name in this param object. Effectively, this map is flattened to its parent
- * instance.
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData#extraParams} for the field
+ * documentation.
*/
- @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
- Map extraParams;
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
/**
- * Required. Full name of the person or entity on the lodging reservation.
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData#extraParams} for the field
+ * documentation.
*/
- @SerializedName("name")
- String name;
-
- private Passenger(Map extraParams, String name) {
- this.extraParams = extraParams;
- this.name = name;
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
}
- public static Builder builder() {
- return new Builder();
+ /** Whether the lodging is compliant with any hotel fire safety regulations. */
+ public Builder setFireSafetyActComplianceIndicator(
+ Boolean fireSafetyActComplianceIndicator) {
+ this.fireSafetyActComplianceIndicator = fireSafetyActComplianceIndicator;
+ return this;
}
- public static class Builder {
- private Map extraParams;
-
- private String name;
-
- /** Finalize and obtain parameter instance from this builder. */
- public ChargeCaptureParams.PaymentDetails.Lodging.Passenger build() {
- return new ChargeCaptureParams.PaymentDetails.Lodging.Passenger(
- this.extraParams, this.name);
+ /**
+ * Add an element to `guests` list. A list is initialized for the first `add/addAll` call,
+ * and subsequent calls adds additional elements to the original list. See {@link
+ * ChargeCaptureParams.PaymentDetails.LodgingData#guests} for the field documentation.
+ */
+ public Builder addGuest(ChargeCaptureParams.PaymentDetails.LodgingData.Guest element) {
+ if (this.guests == null) {
+ this.guests = new ArrayList<>();
}
+ this.guests.add(element);
+ return this;
+ }
- /**
- * Add a key/value pair to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.Lodging.Passenger#extraParams} for
- * the field documentation.
- */
- public Builder putExtraParam(String key, Object value) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.put(key, value);
- return this;
+ /**
+ * Add all elements to `guests` list. A list is initialized for the first `add/addAll` call,
+ * and subsequent calls adds additional elements to the original list. See {@link
+ * ChargeCaptureParams.PaymentDetails.LodgingData#guests} for the field documentation.
+ */
+ public Builder addAllGuest(
+ List elements) {
+ if (this.guests == null) {
+ this.guests = new ArrayList<>();
}
+ this.guests.addAll(elements);
+ return this;
+ }
- /**
- * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.Lodging.Passenger#extraParams} for
- * the field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
+ /** Host details for the lodging. */
+ public Builder setHost(ChargeCaptureParams.PaymentDetails.LodgingData.Host host) {
+ this.host = host;
+ return this;
+ }
+
+ /**
+ * Add an element to `insurances` list. A list is initialized for the first `add/addAll`
+ * call, and subsequent calls adds additional elements to the original list. See {@link
+ * ChargeCaptureParams.PaymentDetails.LodgingData#insurances} for the field documentation.
+ */
+ public Builder addInsurance(
+ ChargeCaptureParams.PaymentDetails.LodgingData.Insurance element) {
+ if (this.insurances == null) {
+ this.insurances = new ArrayList<>();
}
+ this.insurances.add(element);
+ return this;
+ }
- /**
- * Required. Full name of the person or entity on the lodging
- * reservation.
- */
- public Builder setName(String name) {
- this.name = name;
- return this;
+ /**
+ * Add all elements to `insurances` list. A list is initialized for the first `add/addAll`
+ * call, and subsequent calls adds additional elements to the original list. See {@link
+ * ChargeCaptureParams.PaymentDetails.LodgingData#insurances} for the field documentation.
+ */
+ public Builder addAllInsurance(
+ List elements) {
+ if (this.insurances == null) {
+ this.insurances = new ArrayList<>();
}
+ this.insurances.addAll(elements);
+ return this;
}
- }
- public enum Category implements ApiRequestParams.EnumParam {
- @SerializedName("hotel")
- HOTEL("hotel"),
+ /** Whether the renter is a no-show. */
+ public Builder setNoShowIndicator(Boolean noShowIndicator) {
+ this.noShowIndicator = noShowIndicator;
+ return this;
+ }
- @SerializedName("vacation_rental")
- VACATION_RENTAL("vacation_rental");
+ /** Renter ID number for the lodging. */
+ public Builder setRenterIdNumber(String renterIdNumber) {
+ this.renterIdNumber = renterIdNumber;
+ return this;
+ }
- @Getter(onMethod_ = {@Override})
- private final String value;
+ /** Renter name for the lodging. */
+ public Builder setRenterName(String renterName) {
+ this.renterName = renterName;
+ return this;
+ }
- Category(String value) {
- this.value = value;
+ /** Required. Total details for the lodging. */
+ public Builder setTotal(ChargeCaptureParams.PaymentDetails.LodgingData.Total total) {
+ this.total = total;
+ return this;
}
}
- public enum ExtraCharge implements ApiRequestParams.EnumParam {
- @SerializedName("gift_shop")
- GIFT_SHOP("gift_shop"),
-
- @SerializedName("laundry")
- LAUNDRY("laundry"),
-
- @SerializedName("mini_bar")
- MINI_BAR("mini_bar"),
-
- @SerializedName("other")
- OTHER("other"),
-
- @SerializedName("restaurant")
- RESTAURANT("restaurant"),
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Accommodation {
+ /** Type of accommodation. */
+ @SerializedName("accommodation_type")
+ AccommodationType accommodationType;
- @SerializedName("telephone")
- TELEPHONE("telephone");
+ /** Bed type. */
+ @SerializedName("bed_type")
+ String bedType;
- @Getter(onMethod_ = {@Override})
- private final String value;
+ /** Daily accommodation rate in cents. */
+ @SerializedName("daily_rate_amount")
+ Long dailyRateAmount;
- ExtraCharge(String value) {
- this.value = value;
- }
- }
- }
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its parent
+ * instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class LodgingData {
- /** Accommodation details for the lodging. */
- @SerializedName("accommodation")
- Accommodation accommodation;
+ /** Number of nights. */
+ @SerializedName("nights")
+ Long nights;
- /** Affiliate details if applicable. */
- @SerializedName("affiliate")
- Affiliate affiliate;
+ /** Number of rooms, cabanas, apartments, and so on. */
+ @SerializedName("number_of_rooms")
+ Long numberOfRooms;
- /** Booking confirmation number for the lodging. */
- @SerializedName("booking_number")
- String bookingNumber;
+ /** Rate type. */
+ @SerializedName("rate_type")
+ String rateType;
- /** Required. Check-in date. */
- @SerializedName("checkin_at")
- Long checkinAt;
+ /** Whether smoking is allowed. */
+ @SerializedName("smoking_indicator")
+ Boolean smokingIndicator;
- /** Required. Check-out date. */
- @SerializedName("checkout_at")
- Long checkoutAt;
+ private Accommodation(
+ AccommodationType accommodationType,
+ String bedType,
+ Long dailyRateAmount,
+ Map extraParams,
+ Long nights,
+ Long numberOfRooms,
+ String rateType,
+ Boolean smokingIndicator) {
+ this.accommodationType = accommodationType;
+ this.bedType = bedType;
+ this.dailyRateAmount = dailyRateAmount;
+ this.extraParams = extraParams;
+ this.nights = nights;
+ this.numberOfRooms = numberOfRooms;
+ this.rateType = rateType;
+ this.smokingIndicator = smokingIndicator;
+ }
- /** Customer service phone number for the lodging company. */
- @SerializedName("customer_service_phone_number")
- String customerServicePhoneNumber;
+ public static Builder builder() {
+ return new Builder();
+ }
- /**
- * Map of extra parameters for custom features not available in this client library. The
- * content in this map is not serialized under this field's {@code @SerializedName} value.
- * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
- * name in this param object. Effectively, this map is flattened to its parent instance.
- */
- @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
- Map extraParams;
+ public static class Builder {
+ private AccommodationType accommodationType;
- /** Whether the lodging is compliant with any hotel fire safety regulations. */
- @SerializedName("fire_safety_act_compliance_indicator")
- Boolean fireSafetyActComplianceIndicator;
+ private String bedType;
- /** List of guests for the lodging. */
- @SerializedName("guests")
- List guests;
+ private Long dailyRateAmount;
- /** Host details for the lodging. */
- @SerializedName("host")
- Host host;
+ private Map extraParams;
- /** List of insurances for the lodging. */
- @SerializedName("insurances")
- List insurances;
+ private Long nights;
- /** Whether the renter is a no-show. */
- @SerializedName("no_show_indicator")
- Boolean noShowIndicator;
+ private Long numberOfRooms;
- /** Renter ID number for the lodging. */
- @SerializedName("renter_id_number")
- String renterIdNumber;
+ private String rateType;
- /** Renter name for the lodging. */
- @SerializedName("renter_name")
- String renterName;
+ private Boolean smokingIndicator;
- /** Required. Total details for the lodging. */
- @SerializedName("total")
- Total total;
+ /** Finalize and obtain parameter instance from this builder. */
+ public ChargeCaptureParams.PaymentDetails.LodgingData.Accommodation build() {
+ return new ChargeCaptureParams.PaymentDetails.LodgingData.Accommodation(
+ this.accommodationType,
+ this.bedType,
+ this.dailyRateAmount,
+ this.extraParams,
+ this.nights,
+ this.numberOfRooms,
+ this.rateType,
+ this.smokingIndicator);
+ }
- private LodgingData(
- Accommodation accommodation,
- Affiliate affiliate,
- String bookingNumber,
- Long checkinAt,
- Long checkoutAt,
- String customerServicePhoneNumber,
- Map extraParams,
- Boolean fireSafetyActComplianceIndicator,
- List guests,
- Host host,
- List insurances,
- Boolean noShowIndicator,
- String renterIdNumber,
- String renterName,
- Total total) {
- this.accommodation = accommodation;
- this.affiliate = affiliate;
- this.bookingNumber = bookingNumber;
- this.checkinAt = checkinAt;
- this.checkoutAt = checkoutAt;
- this.customerServicePhoneNumber = customerServicePhoneNumber;
- this.extraParams = extraParams;
- this.fireSafetyActComplianceIndicator = fireSafetyActComplianceIndicator;
- this.guests = guests;
- this.host = host;
- this.insurances = insurances;
- this.noShowIndicator = noShowIndicator;
- this.renterIdNumber = renterIdNumber;
- this.renterName = renterName;
- this.total = total;
- }
+ /** Type of accommodation. */
+ public Builder setAccommodationType(
+ ChargeCaptureParams.PaymentDetails.LodgingData.Accommodation.AccommodationType
+ accommodationType) {
+ this.accommodationType = accommodationType;
+ return this;
+ }
- public static Builder builder() {
- return new Builder();
- }
+ /** Bed type. */
+ public Builder setBedType(String bedType) {
+ this.bedType = bedType;
+ return this;
+ }
- public static class Builder {
- private Accommodation accommodation;
+ /** Daily accommodation rate in cents. */
+ public Builder setDailyRateAmount(Long dailyRateAmount) {
+ this.dailyRateAmount = dailyRateAmount;
+ return this;
+ }
- private Affiliate affiliate;
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * ChargeCaptureParams.PaymentDetails.LodgingData.Accommodation#extraParams} for the field
+ * documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
- private String bookingNumber;
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link
+ * ChargeCaptureParams.PaymentDetails.LodgingData.Accommodation#extraParams} for the field
+ * documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
- private Long checkinAt;
+ /** Number of nights. */
+ public Builder setNights(Long nights) {
+ this.nights = nights;
+ return this;
+ }
- private Long checkoutAt;
+ /** Number of rooms, cabanas, apartments, and so on. */
+ public Builder setNumberOfRooms(Long numberOfRooms) {
+ this.numberOfRooms = numberOfRooms;
+ return this;
+ }
- private String customerServicePhoneNumber;
+ /** Rate type. */
+ public Builder setRateType(String rateType) {
+ this.rateType = rateType;
+ return this;
+ }
- private Map extraParams;
+ /** Whether smoking is allowed. */
+ public Builder setSmokingIndicator(Boolean smokingIndicator) {
+ this.smokingIndicator = smokingIndicator;
+ return this;
+ }
+ }
- private Boolean fireSafetyActComplianceIndicator;
+ public enum AccommodationType implements ApiRequestParams.EnumParam {
+ @SerializedName("apartment")
+ APARTMENT("apartment"),
- private List guests;
+ @SerializedName("cabana")
+ CABANA("cabana"),
- private Host host;
+ @SerializedName("house")
+ HOUSE("house"),
- private List insurances;
+ @SerializedName("penthouse")
+ PENTHOUSE("penthouse"),
- private Boolean noShowIndicator;
+ @SerializedName("room")
+ ROOM("room"),
- private String renterIdNumber;
+ @SerializedName("standard")
+ STANDARD("standard"),
- private String renterName;
+ @SerializedName("suite")
+ SUITE("suite"),
- private Total total;
+ @SerializedName("villa")
+ VILLA("villa");
- /** Finalize and obtain parameter instance from this builder. */
- public ChargeCaptureParams.PaymentDetails.LodgingData build() {
- return new ChargeCaptureParams.PaymentDetails.LodgingData(
- this.accommodation,
- this.affiliate,
- this.bookingNumber,
- this.checkinAt,
- this.checkoutAt,
- this.customerServicePhoneNumber,
- this.extraParams,
- this.fireSafetyActComplianceIndicator,
- this.guests,
- this.host,
- this.insurances,
- this.noShowIndicator,
- this.renterIdNumber,
- this.renterName,
- this.total);
- }
+ @Getter(onMethod_ = {@Override})
+ private final String value;
- /** Accommodation details for the lodging. */
- public Builder setAccommodation(
- ChargeCaptureParams.PaymentDetails.LodgingData.Accommodation accommodation) {
- this.accommodation = accommodation;
- return this;
+ AccommodationType(String value) {
+ this.value = value;
+ }
}
+ }
- /** Affiliate details if applicable. */
- public Builder setAffiliate(
- ChargeCaptureParams.PaymentDetails.LodgingData.Affiliate affiliate) {
- this.affiliate = affiliate;
- return this;
- }
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Affiliate {
+ /** Affiliate partner code. */
+ @SerializedName("code")
+ String code;
- /** Booking confirmation number for the lodging. */
- public Builder setBookingNumber(String bookingNumber) {
- this.bookingNumber = bookingNumber;
- return this;
- }
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its parent
+ * instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
- /** Required. Check-in date. */
- public Builder setCheckinAt(Long checkinAt) {
- this.checkinAt = checkinAt;
- return this;
- }
+ /** Affiliate partner name. */
+ @SerializedName("name")
+ String name;
- /** Required. Check-out date. */
- public Builder setCheckoutAt(Long checkoutAt) {
- this.checkoutAt = checkoutAt;
- return this;
+ private Affiliate(String code, Map extraParams, String name) {
+ this.code = code;
+ this.extraParams = extraParams;
+ this.name = name;
}
- /** Customer service phone number for the lodging company. */
- public Builder setCustomerServicePhoneNumber(String customerServicePhoneNumber) {
- this.customerServicePhoneNumber = customerServicePhoneNumber;
- return this;
+ public static Builder builder() {
+ return new Builder();
}
- /**
- * Add a key/value pair to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData#extraParams} for the field
- * documentation.
- */
- public Builder putExtraParam(String key, Object value) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.put(key, value);
- return this;
- }
+ public static class Builder {
+ private String code;
- /**
- * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData#extraParams} for the field
- * documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
+ private Map extraParams;
- /** Whether the lodging is compliant with any hotel fire safety regulations. */
- public Builder setFireSafetyActComplianceIndicator(
- Boolean fireSafetyActComplianceIndicator) {
- this.fireSafetyActComplianceIndicator = fireSafetyActComplianceIndicator;
- return this;
- }
+ private String name;
- /**
- * Add an element to `guests` list. A list is initialized for the first `add/addAll` call,
- * and subsequent calls adds additional elements to the original list. See {@link
- * ChargeCaptureParams.PaymentDetails.LodgingData#guests} for the field documentation.
- */
- public Builder addGuest(ChargeCaptureParams.PaymentDetails.LodgingData.Guest element) {
- if (this.guests == null) {
- this.guests = new ArrayList<>();
+ /** Finalize and obtain parameter instance from this builder. */
+ public ChargeCaptureParams.PaymentDetails.LodgingData.Affiliate build() {
+ return new ChargeCaptureParams.PaymentDetails.LodgingData.Affiliate(
+ this.code, this.extraParams, this.name);
}
- this.guests.add(element);
- return this;
- }
- /**
- * Add all elements to `guests` list. A list is initialized for the first `add/addAll` call,
- * and subsequent calls adds additional elements to the original list. See {@link
- * ChargeCaptureParams.PaymentDetails.LodgingData#guests} for the field documentation.
- */
- public Builder addAllGuest(
- List elements) {
- if (this.guests == null) {
- this.guests = new ArrayList<>();
+ /** Affiliate partner code. */
+ public Builder setCode(String code) {
+ this.code = code;
+ return this;
}
- this.guests.addAll(elements);
- return this;
- }
- /** Host details for the lodging. */
- public Builder setHost(ChargeCaptureParams.PaymentDetails.LodgingData.Host host) {
- this.host = host;
- return this;
- }
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData.Affiliate#extraParams}
+ * for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
- /**
- * Add an element to `insurances` list. A list is initialized for the first `add/addAll`
- * call, and subsequent calls adds additional elements to the original list. See {@link
- * ChargeCaptureParams.PaymentDetails.LodgingData#insurances} for the field documentation.
- */
- public Builder addInsurance(
- ChargeCaptureParams.PaymentDetails.LodgingData.Insurance element) {
- if (this.insurances == null) {
- this.insurances = new ArrayList<>();
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData.Affiliate#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
}
- this.insurances.add(element);
- return this;
- }
- /**
- * Add all elements to `insurances` list. A list is initialized for the first `add/addAll`
- * call, and subsequent calls adds additional elements to the original list. See {@link
- * ChargeCaptureParams.PaymentDetails.LodgingData#insurances} for the field documentation.
- */
- public Builder addAllInsurance(
- List elements) {
- if (this.insurances == null) {
- this.insurances = new ArrayList<>();
+ /** Affiliate partner name. */
+ public Builder setName(String name) {
+ this.name = name;
+ return this;
}
- this.insurances.addAll(elements);
- return this;
}
+ }
- /** Whether the renter is a no-show. */
- public Builder setNoShowIndicator(Boolean noShowIndicator) {
- this.noShowIndicator = noShowIndicator;
- return this;
- }
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Guest {
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its parent
+ * instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
- /** Renter ID number for the lodging. */
- public Builder setRenterIdNumber(String renterIdNumber) {
- this.renterIdNumber = renterIdNumber;
- return this;
+ /** Required. Guest's full name. */
+ @SerializedName("name")
+ String name;
+
+ private Guest(Map extraParams, String name) {
+ this.extraParams = extraParams;
+ this.name = name;
}
- /** Renter name for the lodging. */
- public Builder setRenterName(String renterName) {
- this.renterName = renterName;
- return this;
+ public static Builder builder() {
+ return new Builder();
}
- /** Required. Total details for the lodging. */
- public Builder setTotal(ChargeCaptureParams.PaymentDetails.LodgingData.Total total) {
- this.total = total;
- return this;
+ public static class Builder {
+ private Map extraParams;
+
+ private String name;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public ChargeCaptureParams.PaymentDetails.LodgingData.Guest build() {
+ return new ChargeCaptureParams.PaymentDetails.LodgingData.Guest(
+ this.extraParams, this.name);
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData.Guest#extraParams} for
+ * the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData.Guest#extraParams} for
+ * the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Required. Guest's full name. */
+ public Builder setName(String name) {
+ this.name = name;
+ return this;
+ }
}
}
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Accommodation {
- /** Type of accommodation. */
- @SerializedName("accommodation_type")
- AccommodationType accommodationType;
-
- /** Bed type. */
- @SerializedName("bed_type")
- String bedType;
+ public static class Host {
+ /** Address of the host. */
+ @SerializedName("address")
+ Address address;
- /** Daily accommodation rate in cents. */
- @SerializedName("daily_rate_amount")
- Long dailyRateAmount;
+ /** Host's country of domicile. */
+ @SerializedName("country_of_domicile")
+ String countryOfDomicile;
/**
* Map of extra parameters for custom features not available in this client library. The
@@ -8964,39 +10377,49 @@ public static class Accommodation {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Number of nights. */
- @SerializedName("nights")
- Long nights;
+ /** Reference number for the host. */
+ @SerializedName("host_reference")
+ String hostReference;
- /** Number of rooms, cabanas, apartments, and so on. */
- @SerializedName("number_of_rooms")
- Long numberOfRooms;
+ /** Type of host. */
+ @SerializedName("host_type")
+ HostType hostType;
- /** Rate type. */
- @SerializedName("rate_type")
- String rateType;
+ /** Name of the lodging property or host. */
+ @SerializedName("name")
+ String name;
- /** Whether smoking is allowed. */
- @SerializedName("smoking_indicator")
- Boolean smokingIndicator;
+ /** Total number of reservations for the host. */
+ @SerializedName("number_of_reservations")
+ Long numberOfReservations;
- private Accommodation(
- AccommodationType accommodationType,
- String bedType,
- Long dailyRateAmount,
+ /** Property phone number. */
+ @SerializedName("property_phone_number")
+ String propertyPhoneNumber;
+
+ /** Host's registration date. */
+ @SerializedName("registered_at")
+ Long registeredAt;
+
+ private Host(
+ Address address,
+ String countryOfDomicile,
Map extraParams,
- Long nights,
- Long numberOfRooms,
- String rateType,
- Boolean smokingIndicator) {
- this.accommodationType = accommodationType;
- this.bedType = bedType;
- this.dailyRateAmount = dailyRateAmount;
+ String hostReference,
+ HostType hostType,
+ String name,
+ Long numberOfReservations,
+ String propertyPhoneNumber,
+ Long registeredAt) {
+ this.address = address;
+ this.countryOfDomicile = countryOfDomicile;
this.extraParams = extraParams;
- this.nights = nights;
- this.numberOfRooms = numberOfRooms;
- this.rateType = rateType;
- this.smokingIndicator = smokingIndicator;
+ this.hostReference = hostReference;
+ this.hostType = hostType;
+ this.name = name;
+ this.numberOfReservations = numberOfReservations;
+ this.propertyPhoneNumber = propertyPhoneNumber;
+ this.registeredAt = registeredAt;
}
public static Builder builder() {
@@ -9004,61 +10427,56 @@ public static Builder builder() {
}
public static class Builder {
- private AccommodationType accommodationType;
-
- private String bedType;
+ private Address address;
- private Long dailyRateAmount;
+ private String countryOfDomicile;
private Map extraParams;
- private Long nights;
+ private String hostReference;
- private Long numberOfRooms;
+ private HostType hostType;
- private String rateType;
+ private String name;
- private Boolean smokingIndicator;
+ private Long numberOfReservations;
+
+ private String propertyPhoneNumber;
+
+ private Long registeredAt;
/** Finalize and obtain parameter instance from this builder. */
- public ChargeCaptureParams.PaymentDetails.LodgingData.Accommodation build() {
- return new ChargeCaptureParams.PaymentDetails.LodgingData.Accommodation(
- this.accommodationType,
- this.bedType,
- this.dailyRateAmount,
+ public ChargeCaptureParams.PaymentDetails.LodgingData.Host build() {
+ return new ChargeCaptureParams.PaymentDetails.LodgingData.Host(
+ this.address,
+ this.countryOfDomicile,
this.extraParams,
- this.nights,
- this.numberOfRooms,
- this.rateType,
- this.smokingIndicator);
- }
-
- /** Type of accommodation. */
- public Builder setAccommodationType(
- ChargeCaptureParams.PaymentDetails.LodgingData.Accommodation.AccommodationType
- accommodationType) {
- this.accommodationType = accommodationType;
- return this;
+ this.hostReference,
+ this.hostType,
+ this.name,
+ this.numberOfReservations,
+ this.propertyPhoneNumber,
+ this.registeredAt);
}
- /** Bed type. */
- public Builder setBedType(String bedType) {
- this.bedType = bedType;
+ /** Address of the host. */
+ public Builder setAddress(
+ ChargeCaptureParams.PaymentDetails.LodgingData.Host.Address address) {
+ this.address = address;
return this;
}
- /** Daily accommodation rate in cents. */
- public Builder setDailyRateAmount(Long dailyRateAmount) {
- this.dailyRateAmount = dailyRateAmount;
+ /** Host's country of domicile. */
+ public Builder setCountryOfDomicile(String countryOfDomicile) {
+ this.countryOfDomicile = countryOfDomicile;
return this;
}
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link
- * ChargeCaptureParams.PaymentDetails.LodgingData.Accommodation#extraParams} for the field
- * documentation.
+ * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData.Host#extraParams} for
+ * the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -9071,9 +10489,8 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link
- * ChargeCaptureParams.PaymentDetails.LodgingData.Accommodation#extraParams} for the field
- * documentation.
+ * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData.Host#extraParams} for
+ * the field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
@@ -9083,154 +10500,247 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Number of nights. */
- public Builder setNights(Long nights) {
- this.nights = nights;
+ /** Reference number for the host. */
+ public Builder setHostReference(String hostReference) {
+ this.hostReference = hostReference;
+ return this;
+ }
+
+ /** Type of host. */
+ public Builder setHostType(
+ ChargeCaptureParams.PaymentDetails.LodgingData.Host.HostType hostType) {
+ this.hostType = hostType;
+ return this;
+ }
+
+ /** Name of the lodging property or host. */
+ public Builder setName(String name) {
+ this.name = name;
return this;
}
- /** Number of rooms, cabanas, apartments, and so on. */
- public Builder setNumberOfRooms(Long numberOfRooms) {
- this.numberOfRooms = numberOfRooms;
+ /** Total number of reservations for the host. */
+ public Builder setNumberOfReservations(Long numberOfReservations) {
+ this.numberOfReservations = numberOfReservations;
return this;
}
- /** Rate type. */
- public Builder setRateType(String rateType) {
- this.rateType = rateType;
+ /** Property phone number. */
+ public Builder setPropertyPhoneNumber(String propertyPhoneNumber) {
+ this.propertyPhoneNumber = propertyPhoneNumber;
return this;
}
- /** Whether smoking is allowed. */
- public Builder setSmokingIndicator(Boolean smokingIndicator) {
- this.smokingIndicator = smokingIndicator;
+ /** Host's registration date. */
+ public Builder setRegisteredAt(Long registeredAt) {
+ this.registeredAt = registeredAt;
return this;
}
}
- public enum AccommodationType implements ApiRequestParams.EnumParam {
- @SerializedName("apartment")
- APARTMENT("apartment"),
-
- @SerializedName("cabana")
- CABANA("cabana"),
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Address {
+ /** Required. City, district, suburb, town, or village. */
+ @SerializedName("city")
+ String city;
- @SerializedName("house")
- HOUSE("house"),
+ /**
+ * Required. Two-letter country code (ISO 3166-1 alpha-2).
+ */
+ @SerializedName("country")
+ String country;
- @SerializedName("penthouse")
- PENTHOUSE("penthouse"),
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its
+ * parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
- @SerializedName("room")
- ROOM("room"),
+ /**
+ * Required. Address line 1, such as the street, PO Box, or company name.
+ */
+ @SerializedName("line1")
+ String line1;
- @SerializedName("standard")
- STANDARD("standard"),
+ /** Address line 2, such as the apartment, suite, unit, or building. */
+ @SerializedName("line2")
+ String line2;
- @SerializedName("suite")
- SUITE("suite"),
+ /** Required. ZIP or postal code. */
+ @SerializedName("postal_code")
+ String postalCode;
- @SerializedName("villa")
- VILLA("villa");
+ /**
+ * State, county, province, or region (ISO 3166-2).
+ */
+ @SerializedName("state")
+ String state;
- @Getter(onMethod_ = {@Override})
- private final String value;
+ private Address(
+ String city,
+ String country,
+ Map extraParams,
+ String line1,
+ String line2,
+ String postalCode,
+ String state) {
+ this.city = city;
+ this.country = country;
+ this.extraParams = extraParams;
+ this.line1 = line1;
+ this.line2 = line2;
+ this.postalCode = postalCode;
+ this.state = state;
+ }
- AccommodationType(String value) {
- this.value = value;
+ public static Builder builder() {
+ return new Builder();
}
- }
- }
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Affiliate {
- /** Affiliate partner code. */
- @SerializedName("code")
- String code;
+ public static class Builder {
+ private String city;
- /**
- * Map of extra parameters for custom features not available in this client library. The
- * content in this map is not serialized under this field's {@code @SerializedName} value.
- * Instead, each key/value pair is serialized as if the key is a root-level field
- * (serialized) name in this param object. Effectively, this map is flattened to its parent
- * instance.
- */
- @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
- Map extraParams;
+ private String country;
- /** Affiliate partner name. */
- @SerializedName("name")
- String name;
+ private Map extraParams;
- private Affiliate(String code, Map extraParams, String name) {
- this.code = code;
- this.extraParams = extraParams;
- this.name = name;
- }
+ private String line1;
- public static Builder builder() {
- return new Builder();
- }
+ private String line2;
- public static class Builder {
- private String code;
+ private String postalCode;
- private Map extraParams;
+ private String state;
- private String name;
+ /** Finalize and obtain parameter instance from this builder. */
+ public ChargeCaptureParams.PaymentDetails.LodgingData.Host.Address build() {
+ return new ChargeCaptureParams.PaymentDetails.LodgingData.Host.Address(
+ this.city,
+ this.country,
+ this.extraParams,
+ this.line1,
+ this.line2,
+ this.postalCode,
+ this.state);
+ }
- /** Finalize and obtain parameter instance from this builder. */
- public ChargeCaptureParams.PaymentDetails.LodgingData.Affiliate build() {
- return new ChargeCaptureParams.PaymentDetails.LodgingData.Affiliate(
- this.code, this.extraParams, this.name);
- }
+ /** Required. City, district, suburb, town, or village. */
+ public Builder setCity(String city) {
+ this.city = city;
+ return this;
+ }
- /** Affiliate partner code. */
- public Builder setCode(String code) {
- this.code = code;
- return this;
- }
+ /**
+ * Required. Two-letter country code (ISO 3166-1 alpha-2).
+ */
+ public Builder setCountry(String country) {
+ this.country = country;
+ return this;
+ }
- /**
- * Add a key/value pair to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData.Affiliate#extraParams}
- * for the field documentation.
- */
- public Builder putExtraParam(String key, Object value) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * ChargeCaptureParams.PaymentDetails.LodgingData.Host.Address#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
}
- this.extraParams.put(key, value);
- return this;
- }
- /**
- * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData.Affiliate#extraParams}
- * for the field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * ChargeCaptureParams.PaymentDetails.LodgingData.Host.Address#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /**
+ * Required. Address line 1, such as the street, PO Box, or company
+ * name.
+ */
+ public Builder setLine1(String line1) {
+ this.line1 = line1;
+ return this;
+ }
+
+ /** Address line 2, such as the apartment, suite, unit, or building. */
+ public Builder setLine2(String line2) {
+ this.line2 = line2;
+ return this;
+ }
+
+ /** Required. ZIP or postal code. */
+ public Builder setPostalCode(String postalCode) {
+ this.postalCode = postalCode;
+ return this;
+ }
+
+ /**
+ * State, county, province, or region (ISO 3166-2).
+ */
+ public Builder setState(String state) {
+ this.state = state;
+ return this;
}
- this.extraParams.putAll(map);
- return this;
}
+ }
+
+ public enum HostType implements ApiRequestParams.EnumParam {
+ @SerializedName("hostel")
+ HOSTEL("hostel"),
+
+ @SerializedName("hotel")
+ HOTEL("hotel"),
- /** Affiliate partner name. */
- public Builder setName(String name) {
- this.name = name;
- return this;
+ @SerializedName("owner")
+ OWNER("owner"),
+
+ @SerializedName("rental_agency")
+ RENTAL_AGENCY("rental_agency");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ HostType(String value) {
+ this.value = value;
}
}
}
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Guest {
+ public static class Insurance {
+ /** Required. Price of the insurance coverage in cents. */
+ @SerializedName("amount")
+ Long amount;
+
+ /** Currency of the insurance amount. */
+ @SerializedName("currency")
+ String currency;
+
/**
* Map of extra parameters for custom features not available in this client library. The
* content in this map is not serialized under this field's {@code @SerializedName} value.
@@ -9241,13 +10751,25 @@ public static class Guest {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Required. Guest's full name. */
- @SerializedName("name")
- String name;
+ /** Name of the insurance company. */
+ @SerializedName("insurance_company_name")
+ String insuranceCompanyName;
- private Guest(Map extraParams, String name) {
+ /** Required. Type of insurance coverage. */
+ @SerializedName("insurance_type")
+ InsuranceType insuranceType;
+
+ private Insurance(
+ Long amount,
+ String currency,
+ Map extraParams,
+ String insuranceCompanyName,
+ InsuranceType insuranceType) {
+ this.amount = amount;
+ this.currency = currency;
this.extraParams = extraParams;
- this.name = name;
+ this.insuranceCompanyName = insuranceCompanyName;
+ this.insuranceType = insuranceType;
}
public static Builder builder() {
@@ -9255,21 +10777,43 @@ public static Builder builder() {
}
public static class Builder {
+ private Long amount;
+
+ private String currency;
+
private Map extraParams;
- private String name;
+ private String insuranceCompanyName;
+
+ private InsuranceType insuranceType;
/** Finalize and obtain parameter instance from this builder. */
- public ChargeCaptureParams.PaymentDetails.LodgingData.Guest build() {
- return new ChargeCaptureParams.PaymentDetails.LodgingData.Guest(
- this.extraParams, this.name);
+ public ChargeCaptureParams.PaymentDetails.LodgingData.Insurance build() {
+ return new ChargeCaptureParams.PaymentDetails.LodgingData.Insurance(
+ this.amount,
+ this.currency,
+ this.extraParams,
+ this.insuranceCompanyName,
+ this.insuranceType);
+ }
+
+ /** Required. Price of the insurance coverage in cents. */
+ public Builder setAmount(Long amount) {
+ this.amount = amount;
+ return this;
+ }
+
+ /** Currency of the insurance amount. */
+ public Builder setCurrency(String currency) {
+ this.currency = currency;
+ return this;
}
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData.Guest#extraParams} for
- * the field documentation.
+ * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData.Insurance#extraParams}
+ * for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -9282,8 +10826,8 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData.Guest#extraParams} for
- * the field documentation.
+ * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData.Insurance#extraParams}
+ * for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
@@ -9293,24 +10837,65 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Required. Guest's full name. */
- public Builder setName(String name) {
- this.name = name;
+ /** Name of the insurance company. */
+ public Builder setInsuranceCompanyName(String insuranceCompanyName) {
+ this.insuranceCompanyName = insuranceCompanyName;
+ return this;
+ }
+
+ /** Required. Type of insurance coverage. */
+ public Builder setInsuranceType(
+ ChargeCaptureParams.PaymentDetails.LodgingData.Insurance.InsuranceType
+ insuranceType) {
+ this.insuranceType = insuranceType;
return this;
}
}
+
+ public enum InsuranceType implements ApiRequestParams.EnumParam {
+ @SerializedName("bankruptcy")
+ BANKRUPTCY("bankruptcy"),
+
+ @SerializedName("cancelation")
+ CANCELATION("cancelation"),
+
+ @SerializedName("emergency")
+ EMERGENCY("emergency"),
+
+ @SerializedName("medical")
+ MEDICAL("medical");
+
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ InsuranceType(String value) {
+ this.value = value;
+ }
+ }
}
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Host {
- /** Address of the host. */
- @SerializedName("address")
- Address address;
+ public static class Total {
+ /** Required. Total price of the lodging reservation in cents. */
+ @SerializedName("amount")
+ Long amount;
- /** Host's country of domicile. */
- @SerializedName("country_of_domicile")
- String countryOfDomicile;
+ /** Cash advances in cents. */
+ @SerializedName("cash_advances")
+ Long cashAdvances;
+
+ /** Currency of the total amount. */
+ @SerializedName("currency")
+ String currency;
+
+ /** Discount details for the lodging. */
+ @SerializedName("discounts")
+ Discounts discounts;
+
+ /** Additional charges for the lodging. */
+ @SerializedName("extra_charges")
+ List extraCharges;
/**
* Map of extra parameters for custom features not available in this client library. The
@@ -9322,49 +10907,31 @@ public static class Host {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Reference number for the host. */
- @SerializedName("host_reference")
- String hostReference;
-
- /** Type of host. */
- @SerializedName("host_type")
- HostType hostType;
-
- /** Name of the lodging property or host. */
- @SerializedName("name")
- String name;
-
- /** Total number of reservations for the host. */
- @SerializedName("number_of_reservations")
- Long numberOfReservations;
-
- /** Property phone number. */
- @SerializedName("property_phone_number")
- String propertyPhoneNumber;
+ /** Prepaid amount in cents. */
+ @SerializedName("prepaid_amount")
+ Long prepaidAmount;
- /** Host's registration date. */
- @SerializedName("registered_at")
- Long registeredAt;
+ /** Tax breakdown for the lodging reservation. */
+ @SerializedName("tax")
+ Tax tax;
- private Host(
- Address address,
- String countryOfDomicile,
+ private Total(
+ Long amount,
+ Long cashAdvances,
+ String currency,
+ Discounts discounts,
+ List extraCharges,
Map extraParams,
- String hostReference,
- HostType hostType,
- String name,
- Long numberOfReservations,
- String propertyPhoneNumber,
- Long registeredAt) {
- this.address = address;
- this.countryOfDomicile = countryOfDomicile;
+ Long prepaidAmount,
+ Tax tax) {
+ this.amount = amount;
+ this.cashAdvances = cashAdvances;
+ this.currency = currency;
+ this.discounts = discounts;
+ this.extraCharges = extraCharges;
this.extraParams = extraParams;
- this.hostReference = hostReference;
- this.hostType = hostType;
- this.name = name;
- this.numberOfReservations = numberOfReservations;
- this.propertyPhoneNumber = propertyPhoneNumber;
- this.registeredAt = registeredAt;
+ this.prepaidAmount = prepaidAmount;
+ this.tax = tax;
}
public static Builder builder() {
@@ -9372,55 +10939,95 @@ public static Builder builder() {
}
public static class Builder {
- private Address address;
-
- private String countryOfDomicile;
+ private Long amount;
- private Map extraParams;
+ private Long cashAdvances;
- private String hostReference;
+ private String currency;
- private HostType hostType;
+ private Discounts discounts;
- private String name;
+ private List
+ extraCharges;
- private Long numberOfReservations;
+ private Map extraParams;
- private String propertyPhoneNumber;
+ private Long prepaidAmount;
- private Long registeredAt;
+ private Tax tax;
/** Finalize and obtain parameter instance from this builder. */
- public ChargeCaptureParams.PaymentDetails.LodgingData.Host build() {
- return new ChargeCaptureParams.PaymentDetails.LodgingData.Host(
- this.address,
- this.countryOfDomicile,
+ public ChargeCaptureParams.PaymentDetails.LodgingData.Total build() {
+ return new ChargeCaptureParams.PaymentDetails.LodgingData.Total(
+ this.amount,
+ this.cashAdvances,
+ this.currency,
+ this.discounts,
+ this.extraCharges,
this.extraParams,
- this.hostReference,
- this.hostType,
- this.name,
- this.numberOfReservations,
- this.propertyPhoneNumber,
- this.registeredAt);
+ this.prepaidAmount,
+ this.tax);
+ }
+
+ /** Required. Total price of the lodging reservation in cents. */
+ public Builder setAmount(Long amount) {
+ this.amount = amount;
+ return this;
+ }
+
+ /** Cash advances in cents. */
+ public Builder setCashAdvances(Long cashAdvances) {
+ this.cashAdvances = cashAdvances;
+ return this;
}
- /** Address of the host. */
- public Builder setAddress(
- ChargeCaptureParams.PaymentDetails.LodgingData.Host.Address address) {
- this.address = address;
+ /** Currency of the total amount. */
+ public Builder setCurrency(String currency) {
+ this.currency = currency;
return this;
}
- /** Host's country of domicile. */
- public Builder setCountryOfDomicile(String countryOfDomicile) {
- this.countryOfDomicile = countryOfDomicile;
+ /** Discount details for the lodging. */
+ public Builder setDiscounts(
+ ChargeCaptureParams.PaymentDetails.LodgingData.Total.Discounts discounts) {
+ this.discounts = discounts;
+ return this;
+ }
+
+ /**
+ * Add an element to `extraCharges` list. A list is initialized for the first `add/addAll`
+ * call, and subsequent calls adds additional elements to the original list. See {@link
+ * ChargeCaptureParams.PaymentDetails.LodgingData.Total#extraCharges} for the field
+ * documentation.
+ */
+ public Builder addExtraCharge(
+ ChargeCaptureParams.PaymentDetails.LodgingData.Total.ExtraCharge element) {
+ if (this.extraCharges == null) {
+ this.extraCharges = new ArrayList<>();
+ }
+ this.extraCharges.add(element);
+ return this;
+ }
+
+ /**
+ * Add all elements to `extraCharges` list. A list is initialized for the first
+ * `add/addAll` call, and subsequent calls adds additional elements to the original list.
+ * See {@link ChargeCaptureParams.PaymentDetails.LodgingData.Total#extraCharges} for the
+ * field documentation.
+ */
+ public Builder addAllExtraCharge(
+ List elements) {
+ if (this.extraCharges == null) {
+ this.extraCharges = new ArrayList<>();
+ }
+ this.extraCharges.addAll(elements);
return this;
}
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData.Host#extraParams} for
+ * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData.Total#extraParams} for
* the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
@@ -9434,7 +11041,7 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData.Host#extraParams} for
+ * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData.Total#extraParams} for
* the field documentation.
*/
public Builder putAllExtraParam(Map map) {
@@ -9445,58 +11052,227 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Reference number for the host. */
- public Builder setHostReference(String hostReference) {
- this.hostReference = hostReference;
+ /** Prepaid amount in cents. */
+ public Builder setPrepaidAmount(Long prepaidAmount) {
+ this.prepaidAmount = prepaidAmount;
return this;
}
- /** Type of host. */
- public Builder setHostType(
- ChargeCaptureParams.PaymentDetails.LodgingData.Host.HostType hostType) {
- this.hostType = hostType;
+ /** Tax breakdown for the lodging reservation. */
+ public Builder setTax(ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax tax) {
+ this.tax = tax;
return this;
}
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Discounts {
+ /** Corporate client discount code. */
+ @SerializedName("corporate_client_code")
+ String corporateClientCode;
+
+ /** Coupon code. */
+ @SerializedName("coupon")
+ String coupon;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its
+ * parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ private Discounts(
+ String corporateClientCode, String coupon, Map extraParams) {
+ this.corporateClientCode = corporateClientCode;
+ this.coupon = coupon;
+ this.extraParams = extraParams;
+ }
- /** Name of the lodging property or host. */
- public Builder setName(String name) {
- this.name = name;
- return this;
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private String corporateClientCode;
+
+ private String coupon;
+
+ private Map extraParams;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public ChargeCaptureParams.PaymentDetails.LodgingData.Total.Discounts build() {
+ return new ChargeCaptureParams.PaymentDetails.LodgingData.Total.Discounts(
+ this.corporateClientCode, this.coupon, this.extraParams);
+ }
+
+ /** Corporate client discount code. */
+ public Builder setCorporateClientCode(String corporateClientCode) {
+ this.corporateClientCode = corporateClientCode;
+ return this;
+ }
+
+ /** Coupon code. */
+ public Builder setCoupon(String coupon) {
+ this.coupon = coupon;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * ChargeCaptureParams.PaymentDetails.LodgingData.Total.Discounts#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * ChargeCaptureParams.PaymentDetails.LodgingData.Total.Discounts#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class ExtraCharge {
+ /** Amount of the extra charge in cents. */
+ @SerializedName("amount")
+ Long amount;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its
+ * parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Type of extra charge. */
+ @SerializedName("type")
+ Type type;
+
+ private ExtraCharge(Long amount, Map extraParams, Type type) {
+ this.amount = amount;
+ this.extraParams = extraParams;
+ this.type = type;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private Long amount;
+
+ private Map extraParams;
+
+ private Type type;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public ChargeCaptureParams.PaymentDetails.LodgingData.Total.ExtraCharge build() {
+ return new ChargeCaptureParams.PaymentDetails.LodgingData.Total.ExtraCharge(
+ this.amount, this.extraParams, this.type);
+ }
+
+ /** Amount of the extra charge in cents. */
+ public Builder setAmount(Long amount) {
+ this.amount = amount;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * ChargeCaptureParams.PaymentDetails.LodgingData.Total.ExtraCharge#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * ChargeCaptureParams.PaymentDetails.LodgingData.Total.ExtraCharge#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Type of extra charge. */
+ public Builder setType(
+ ChargeCaptureParams.PaymentDetails.LodgingData.Total.ExtraCharge.Type type) {
+ this.type = type;
+ return this;
+ }
}
- /** Total number of reservations for the host. */
- public Builder setNumberOfReservations(Long numberOfReservations) {
- this.numberOfReservations = numberOfReservations;
- return this;
- }
+ public enum Type implements ApiRequestParams.EnumParam {
+ @SerializedName("gift_shop")
+ GIFT_SHOP("gift_shop"),
+
+ @SerializedName("laundry")
+ LAUNDRY("laundry"),
+
+ @SerializedName("mini_bar")
+ MINI_BAR("mini_bar"),
+
+ @SerializedName("other")
+ OTHER("other"),
+
+ @SerializedName("phone")
+ PHONE("phone"),
- /** Property phone number. */
- public Builder setPropertyPhoneNumber(String propertyPhoneNumber) {
- this.propertyPhoneNumber = propertyPhoneNumber;
- return this;
- }
+ @SerializedName("restaurant")
+ RESTAURANT("restaurant");
- /** Host's registration date. */
- public Builder setRegisteredAt(Long registeredAt) {
- this.registeredAt = registeredAt;
- return this;
+ @Getter(onMethod_ = {@Override})
+ private final String value;
+
+ Type(String value) {
+ this.value = value;
+ }
}
}
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Address {
- /** Required. City, district, suburb, town, or village. */
- @SerializedName("city")
- String city;
-
- /**
- * Required. Two-letter country code (ISO 3166-1 alpha-2).
- */
- @SerializedName("country")
- String country;
-
+ public static class Tax {
/**
* Map of extra parameters for custom features not available in this client library. The
* content in this map is not serialized under this field's {@code @SerializedName} value.
@@ -9507,42 +11283,21 @@ public static class Address {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /**
- * Required. Address line 1, such as the street, PO Box, or company name.
- */
- @SerializedName("line1")
- String line1;
-
- /** Address line 2, such as the apartment, suite, unit, or building. */
- @SerializedName("line2")
- String line2;
-
- /** Required. ZIP or postal code. */
- @SerializedName("postal_code")
- String postalCode;
+ /** Indicates whether the transaction is tax exempt. */
+ @SerializedName("tax_exempt_indicator")
+ Boolean taxExemptIndicator;
- /**
- * State, county, province, or region (ISO 3166-2).
- */
- @SerializedName("state")
- String state;
+ /** Tax details. */
+ @SerializedName("taxes")
+ List taxes;
- private Address(
- String city,
- String country,
+ private Tax(
Map extraParams,
- String line1,
- String line2,
- String postalCode,
- String state) {
- this.city = city;
- this.country = country;
+ Boolean taxExemptIndicator,
+ List taxes) {
this.extraParams = extraParams;
- this.line1 = line1;
- this.line2 = line2;
- this.postalCode = postalCode;
- this.state = state;
+ this.taxExemptIndicator = taxExemptIndicator;
+ this.taxes = taxes;
}
public static Builder builder() {
@@ -9550,53 +11305,24 @@ public static Builder builder() {
}
public static class Builder {
- private String city;
-
- private String country;
-
private Map extraParams;
- private String line1;
-
- private String line2;
-
- private String postalCode;
+ private Boolean taxExemptIndicator;
- private String state;
+ private List taxes;
/** Finalize and obtain parameter instance from this builder. */
- public ChargeCaptureParams.PaymentDetails.LodgingData.Host.Address build() {
- return new ChargeCaptureParams.PaymentDetails.LodgingData.Host.Address(
- this.city,
- this.country,
- this.extraParams,
- this.line1,
- this.line2,
- this.postalCode,
- this.state);
- }
-
- /** Required. City, district, suburb, town, or village. */
- public Builder setCity(String city) {
- this.city = city;
- return this;
- }
-
- /**
- * Required. Two-letter country code (ISO 3166-1 alpha-2).
- */
- public Builder setCountry(String country) {
- this.country = country;
- return this;
+ public ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax build() {
+ return new ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax(
+ this.extraParams, this.taxExemptIndicator, this.taxes);
}
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * ChargeCaptureParams.PaymentDetails.LodgingData.Host.Address#extraParams} for the
- * field documentation.
+ * ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax#extraParams} for the field
+ * documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -9610,8 +11336,8 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * ChargeCaptureParams.PaymentDetails.LodgingData.Host.Address#extraParams} for the
- * field documentation.
+ * ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax#extraParams} for the field
+ * documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
@@ -9621,226 +11347,258 @@ public Builder putAllExtraParam(Map map) {
return this;
}
+ /** Indicates whether the transaction is tax exempt. */
+ public Builder setTaxExemptIndicator(Boolean taxExemptIndicator) {
+ this.taxExemptIndicator = taxExemptIndicator;
+ return this;
+ }
+
/**
- * Required. Address line 1, such as the street, PO Box, or company
- * name.
+ * Add an element to `taxes` list. A list is initialized for the first `add/addAll`
+ * call, and subsequent calls adds additional elements to the original list. See {@link
+ * ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax#taxes} for the field
+ * documentation.
*/
- public Builder setLine1(String line1) {
- this.line1 = line1;
+ public Builder addTax(
+ ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax.InnerTax element) {
+ if (this.taxes == null) {
+ this.taxes = new ArrayList<>();
+ }
+ this.taxes.add(element);
return this;
}
- /** Address line 2, such as the apartment, suite, unit, or building. */
- public Builder setLine2(String line2) {
- this.line2 = line2;
+ /**
+ * Add all elements to `taxes` list. A list is initialized for the first `add/addAll`
+ * call, and subsequent calls adds additional elements to the original list. See {@link
+ * ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax#taxes} for the field
+ * documentation.
+ */
+ public Builder addAllTax(
+ List elements) {
+ if (this.taxes == null) {
+ this.taxes = new ArrayList<>();
+ }
+ this.taxes.addAll(elements);
return this;
}
+ }
- /** Required. ZIP or postal code. */
- public Builder setPostalCode(String postalCode) {
- this.postalCode = postalCode;
- return this;
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class InnerTax {
+ /** Tax amount in cents. */
+ @SerializedName("amount")
+ Long amount;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName}
+ * value. Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its
+ * parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Tax rate. */
+ @SerializedName("rate")
+ Long rate;
+
+ /** Type of tax applied. */
+ @SerializedName("type")
+ String type;
+
+ private InnerTax(Long amount, Map extraParams, Long rate, String type) {
+ this.amount = amount;
+ this.extraParams = extraParams;
+ this.rate = rate;
+ this.type = type;
+ }
+
+ public static Builder builder() {
+ return new Builder();
}
- /**
- * State, county, province, or region (ISO 3166-2).
- */
- public Builder setState(String state) {
- this.state = state;
- return this;
+ public static class Builder {
+ private Long amount;
+
+ private Map extraParams;
+
+ private Long rate;
+
+ private String type;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax.InnerTax build() {
+ return new ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax.InnerTax(
+ this.amount, this.extraParams, this.rate, this.type);
+ }
+
+ /** Tax amount in cents. */
+ public Builder setAmount(Long amount) {
+ this.amount = amount;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax.InnerTax#extraParams} for
+ * the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the
+ * first `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax.InnerTax#extraParams} for
+ * the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Tax rate. */
+ public Builder setRate(Long rate) {
+ this.rate = rate;
+ return this;
+ }
+
+ /** Type of tax applied. */
+ public Builder setType(String type) {
+ this.type = type;
+ return this;
+ }
}
}
}
+ }
+ }
- public enum HostType implements ApiRequestParams.EnumParam {
- @SerializedName("hostel")
- HOSTEL("hostel"),
-
- @SerializedName("hotel")
- HOTEL("hotel"),
-
- @SerializedName("owner")
- OWNER("owner"),
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class MoneyServices {
+ /** Account funding transaction details including sender and beneficiary information. */
+ @SerializedName("account_funding")
+ Object accountFunding;
- @SerializedName("rental_agency")
- RENTAL_AGENCY("rental_agency");
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName} value.
+ * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
+ * name in this param object. Effectively, this map is flattened to its parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
- @Getter(onMethod_ = {@Override})
- private final String value;
+ /** The type of money services transaction. */
+ @SerializedName("transaction_type")
+ ApiRequestParams.EnumParam transactionType;
- HostType(String value) {
- this.value = value;
- }
- }
+ private MoneyServices(
+ Object accountFunding,
+ Map extraParams,
+ ApiRequestParams.EnumParam transactionType) {
+ this.accountFunding = accountFunding;
+ this.extraParams = extraParams;
+ this.transactionType = transactionType;
}
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class Insurance {
- /** Required. Price of the insurance coverage in cents. */
- @SerializedName("amount")
- Long amount;
-
- /** Currency of the insurance amount. */
- @SerializedName("currency")
- String currency;
+ public static Builder builder() {
+ return new Builder();
+ }
- /**
- * Map of extra parameters for custom features not available in this client library. The
- * content in this map is not serialized under this field's {@code @SerializedName} value.
- * Instead, each key/value pair is serialized as if the key is a root-level field
- * (serialized) name in this param object. Effectively, this map is flattened to its parent
- * instance.
- */
- @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
- Map extraParams;
+ public static class Builder {
+ private Object accountFunding;
- /** Name of the insurance company. */
- @SerializedName("insurance_company_name")
- String insuranceCompanyName;
+ private Map extraParams;
- /** Required. Type of insurance coverage. */
- @SerializedName("insurance_type")
- InsuranceType insuranceType;
+ private ApiRequestParams.EnumParam transactionType;
- private Insurance(
- Long amount,
- String currency,
- Map extraParams,
- String insuranceCompanyName,
- InsuranceType insuranceType) {
- this.amount = amount;
- this.currency = currency;
- this.extraParams = extraParams;
- this.insuranceCompanyName = insuranceCompanyName;
- this.insuranceType = insuranceType;
+ /** Finalize and obtain parameter instance from this builder. */
+ public ChargeCaptureParams.PaymentDetails.MoneyServices build() {
+ return new ChargeCaptureParams.PaymentDetails.MoneyServices(
+ this.accountFunding, this.extraParams, this.transactionType);
}
- public static Builder builder() {
- return new Builder();
+ /** Account funding transaction details including sender and beneficiary information. */
+ public Builder setAccountFunding(
+ ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding accountFunding) {
+ this.accountFunding = accountFunding;
+ return this;
}
- public static class Builder {
- private Long amount;
-
- private String currency;
-
- private Map extraParams;
-
- private String insuranceCompanyName;
-
- private InsuranceType insuranceType;
-
- /** Finalize and obtain parameter instance from this builder. */
- public ChargeCaptureParams.PaymentDetails.LodgingData.Insurance build() {
- return new ChargeCaptureParams.PaymentDetails.LodgingData.Insurance(
- this.amount,
- this.currency,
- this.extraParams,
- this.insuranceCompanyName,
- this.insuranceType);
- }
-
- /** Required. Price of the insurance coverage in cents. */
- public Builder setAmount(Long amount) {
- this.amount = amount;
- return this;
- }
-
- /** Currency of the insurance amount. */
- public Builder setCurrency(String currency) {
- this.currency = currency;
- return this;
- }
-
- /**
- * Add a key/value pair to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData.Insurance#extraParams}
- * for the field documentation.
- */
- public Builder putExtraParam(String key, Object value) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.put(key, value);
- return this;
- }
-
- /**
- * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData.Insurance#extraParams}
- * for the field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
+ /** Account funding transaction details including sender and beneficiary information. */
+ public Builder setAccountFunding(EmptyParam accountFunding) {
+ this.accountFunding = accountFunding;
+ return this;
+ }
- /** Name of the insurance company. */
- public Builder setInsuranceCompanyName(String insuranceCompanyName) {
- this.insuranceCompanyName = insuranceCompanyName;
- return this;
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link ChargeCaptureParams.PaymentDetails.MoneyServices#extraParams} for the
+ * field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
}
+ this.extraParams.put(key, value);
+ return this;
+ }
- /** Required. Type of insurance coverage. */
- public Builder setInsuranceType(
- ChargeCaptureParams.PaymentDetails.LodgingData.Insurance.InsuranceType
- insuranceType) {
- this.insuranceType = insuranceType;
- return this;
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
+ * map. See {@link ChargeCaptureParams.PaymentDetails.MoneyServices#extraParams} for the
+ * field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
}
+ this.extraParams.putAll(map);
+ return this;
}
- public enum InsuranceType implements ApiRequestParams.EnumParam {
- @SerializedName("bankruptcy")
- BANKRUPTCY("bankruptcy"),
-
- @SerializedName("cancelation")
- CANCELATION("cancelation"),
-
- @SerializedName("emergency")
- EMERGENCY("emergency"),
-
- @SerializedName("medical")
- MEDICAL("medical");
-
- @Getter(onMethod_ = {@Override})
- private final String value;
+ /** The type of money services transaction. */
+ public Builder setTransactionType(
+ ChargeCaptureParams.PaymentDetails.MoneyServices.TransactionType transactionType) {
+ this.transactionType = transactionType;
+ return this;
+ }
- InsuranceType(String value) {
- this.value = value;
- }
+ /** The type of money services transaction. */
+ public Builder setTransactionType(EmptyParam transactionType) {
+ this.transactionType = transactionType;
+ return this;
}
}
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Total {
- /** Required. Total price of the lodging reservation in cents. */
- @SerializedName("amount")
- Long amount;
-
- /** Cash advances in cents. */
- @SerializedName("cash_advances")
- Long cashAdvances;
-
- /** Currency of the total amount. */
- @SerializedName("currency")
- String currency;
-
- /** Discount details for the lodging. */
- @SerializedName("discounts")
- Discounts discounts;
+ public static class AccountFunding {
+ /** ID of the Account representing the beneficiary in this account funding transaction. */
+ @SerializedName("beneficiary_account")
+ String beneficiaryAccount;
- /** Additional charges for the lodging. */
- @SerializedName("extra_charges")
- List extraCharges;
+ /** Inline identity details for the beneficiary of this account funding transaction. */
+ @SerializedName("beneficiary_details")
+ Object beneficiaryDetails;
/**
* Map of extra parameters for custom features not available in this client library. The
@@ -9852,31 +11610,25 @@ public static class Total {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Prepaid amount in cents. */
- @SerializedName("prepaid_amount")
- Long prepaidAmount;
-
- /** Tax breakdown for the lodging reservation. */
- @SerializedName("tax")
- Tax tax;
+ /** ID of the Account representing the sender in this account funding transaction. */
+ @SerializedName("sender_account")
+ String senderAccount;
- private Total(
- Long amount,
- Long cashAdvances,
- String currency,
- Discounts discounts,
- List extraCharges,
+ /** Inline identity details for the sender of this account funding transaction. */
+ @SerializedName("sender_details")
+ Object senderDetails;
+
+ private AccountFunding(
+ String beneficiaryAccount,
+ Object beneficiaryDetails,
Map extraParams,
- Long prepaidAmount,
- Tax tax) {
- this.amount = amount;
- this.cashAdvances = cashAdvances;
- this.currency = currency;
- this.discounts = discounts;
- this.extraCharges = extraCharges;
+ String senderAccount,
+ Object senderDetails) {
+ this.beneficiaryAccount = beneficiaryAccount;
+ this.beneficiaryDetails = beneficiaryDetails;
this.extraParams = extraParams;
- this.prepaidAmount = prepaidAmount;
- this.tax = tax;
+ this.senderAccount = senderAccount;
+ this.senderDetails = senderDetails;
}
public static Builder builder() {
@@ -9884,96 +11636,52 @@ public static Builder builder() {
}
public static class Builder {
- private Long amount;
-
- private Long cashAdvances;
-
- private String currency;
+ private String beneficiaryAccount;
- private Discounts discounts;
-
- private List
- extraCharges;
+ private Object beneficiaryDetails;
private Map extraParams;
- private Long prepaidAmount;
+ private String senderAccount;
- private Tax tax;
+ private Object senderDetails;
/** Finalize and obtain parameter instance from this builder. */
- public ChargeCaptureParams.PaymentDetails.LodgingData.Total build() {
- return new ChargeCaptureParams.PaymentDetails.LodgingData.Total(
- this.amount,
- this.cashAdvances,
- this.currency,
- this.discounts,
- this.extraCharges,
+ public ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding build() {
+ return new ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding(
+ this.beneficiaryAccount,
+ this.beneficiaryDetails,
this.extraParams,
- this.prepaidAmount,
- this.tax);
- }
-
- /** Required. Total price of the lodging reservation in cents. */
- public Builder setAmount(Long amount) {
- this.amount = amount;
- return this;
- }
-
- /** Cash advances in cents. */
- public Builder setCashAdvances(Long cashAdvances) {
- this.cashAdvances = cashAdvances;
- return this;
- }
-
- /** Currency of the total amount. */
- public Builder setCurrency(String currency) {
- this.currency = currency;
- return this;
+ this.senderAccount,
+ this.senderDetails);
}
- /** Discount details for the lodging. */
- public Builder setDiscounts(
- ChargeCaptureParams.PaymentDetails.LodgingData.Total.Discounts discounts) {
- this.discounts = discounts;
+ /** ID of the Account representing the beneficiary in this account funding transaction. */
+ public Builder setBeneficiaryAccount(String beneficiaryAccount) {
+ this.beneficiaryAccount = beneficiaryAccount;
return this;
}
- /**
- * Add an element to `extraCharges` list. A list is initialized for the first `add/addAll`
- * call, and subsequent calls adds additional elements to the original list. See {@link
- * ChargeCaptureParams.PaymentDetails.LodgingData.Total#extraCharges} for the field
- * documentation.
- */
- public Builder addExtraCharge(
- ChargeCaptureParams.PaymentDetails.LodgingData.Total.ExtraCharge element) {
- if (this.extraCharges == null) {
- this.extraCharges = new ArrayList<>();
- }
- this.extraCharges.add(element);
+ /** Inline identity details for the beneficiary of this account funding transaction. */
+ public Builder setBeneficiaryDetails(
+ ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails
+ beneficiaryDetails) {
+ this.beneficiaryDetails = beneficiaryDetails;
return this;
}
- /**
- * Add all elements to `extraCharges` list. A list is initialized for the first
- * `add/addAll` call, and subsequent calls adds additional elements to the original list.
- * See {@link ChargeCaptureParams.PaymentDetails.LodgingData.Total#extraCharges} for the
- * field documentation.
- */
- public Builder addAllExtraCharge(
- List elements) {
- if (this.extraCharges == null) {
- this.extraCharges = new ArrayList<>();
- }
- this.extraCharges.addAll(elements);
+ /** Inline identity details for the beneficiary of this account funding transaction. */
+ public Builder setBeneficiaryDetails(EmptyParam beneficiaryDetails) {
+ this.beneficiaryDetails = beneficiaryDetails;
return this;
}
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData.Total#extraParams} for
- * the field documentation.
+ * map. See {@link
+ * ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding#extraParams} for the
+ * field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -9986,8 +11694,9 @@ public Builder putExtraParam(String key, Object value) {
/**
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.LodgingData.Total#extraParams} for
- * the field documentation.
+ * map. See {@link
+ * ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding#extraParams} for the
+ * field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
@@ -9997,29 +11706,41 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Prepaid amount in cents. */
- public Builder setPrepaidAmount(Long prepaidAmount) {
- this.prepaidAmount = prepaidAmount;
+ /** ID of the Account representing the sender in this account funding transaction. */
+ public Builder setSenderAccount(String senderAccount) {
+ this.senderAccount = senderAccount;
return this;
}
- /** Tax breakdown for the lodging reservation. */
- public Builder setTax(ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax tax) {
- this.tax = tax;
+ /** Inline identity details for the sender of this account funding transaction. */
+ public Builder setSenderDetails(
+ ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails
+ senderDetails) {
+ this.senderDetails = senderDetails;
+ return this;
+ }
+
+ /** Inline identity details for the sender of this account funding transaction. */
+ public Builder setSenderDetails(EmptyParam senderDetails) {
+ this.senderDetails = senderDetails;
return this;
}
}
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Discounts {
- /** Corporate client discount code. */
- @SerializedName("corporate_client_code")
- String corporateClientCode;
+ public static class BeneficiaryDetails {
+ /** Address. */
+ @SerializedName("address")
+ Address address;
- /** Coupon code. */
- @SerializedName("coupon")
- String coupon;
+ /** Date of birth. */
+ @SerializedName("date_of_birth")
+ DateOfBirth dateOfBirth;
+
+ /** Email address. */
+ @SerializedName("email")
+ String email;
/**
* Map of extra parameters for custom features not available in this client library. The
@@ -10031,11 +11752,27 @@ public static class Discounts {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- private Discounts(
- String corporateClientCode, String coupon, Map extraParams) {
- this.corporateClientCode = corporateClientCode;
- this.coupon = coupon;
+ /** Full name. */
+ @SerializedName("name")
+ String name;
+
+ /** Phone number. */
+ @SerializedName("phone")
+ String phone;
+
+ private BeneficiaryDetails(
+ Address address,
+ DateOfBirth dateOfBirth,
+ String email,
+ Map extraParams,
+ String name,
+ String phone) {
+ this.address = address;
+ this.dateOfBirth = dateOfBirth;
+ this.email = email;
this.extraParams = extraParams;
+ this.name = name;
+ this.phone = phone;
}
public static Builder builder() {
@@ -10043,27 +11780,53 @@ public static Builder builder() {
}
public static class Builder {
- private String corporateClientCode;
+ private Address address;
- private String coupon;
+ private DateOfBirth dateOfBirth;
+
+ private String email;
private Map extraParams;
+ private String name;
+
+ private String phone;
+
/** Finalize and obtain parameter instance from this builder. */
- public ChargeCaptureParams.PaymentDetails.LodgingData.Total.Discounts build() {
- return new ChargeCaptureParams.PaymentDetails.LodgingData.Total.Discounts(
- this.corporateClientCode, this.coupon, this.extraParams);
+ public ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding
+ .BeneficiaryDetails
+ build() {
+ return new ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding
+ .BeneficiaryDetails(
+ this.address,
+ this.dateOfBirth,
+ this.email,
+ this.extraParams,
+ this.name,
+ this.phone);
}
- /** Corporate client discount code. */
- public Builder setCorporateClientCode(String corporateClientCode) {
- this.corporateClientCode = corporateClientCode;
+ /** Address. */
+ public Builder setAddress(
+ ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails
+ .Address
+ address) {
+ this.address = address;
return this;
}
- /** Coupon code. */
- public Builder setCoupon(String coupon) {
- this.coupon = coupon;
+ /** Date of birth. */
+ public Builder setDateOfBirth(
+ ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails
+ .DateOfBirth
+ dateOfBirth) {
+ this.dateOfBirth = dateOfBirth;
+ return this;
+ }
+
+ /** Email address. */
+ public Builder setEmail(String email) {
+ this.email = email;
return this;
}
@@ -10071,8 +11834,8 @@ public Builder setCoupon(String coupon) {
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * ChargeCaptureParams.PaymentDetails.LodgingData.Total.Discounts#extraParams} for the
- * field documentation.
+ * ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails#extraParams}
+ * for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -10086,138 +11849,318 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * ChargeCaptureParams.PaymentDetails.LodgingData.Total.Discounts#extraParams} for the
- * field documentation.
+ * ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails#extraParams}
+ * for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
this.extraParams = new HashMap<>();
}
- this.extraParams.putAll(map);
- return this;
- }
- }
- }
+ this.extraParams.putAll(map);
+ return this;
+ }
+
+ /** Full name. */
+ public Builder setName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /** Phone number. */
+ public Builder setPhone(String phone) {
+ this.phone = phone;
+ return this;
+ }
+ }
+
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Address {
+ /** City, district, suburb, town, or village. */
+ @SerializedName("city")
+ String city;
+
+ /**
+ * Two-letter country code (ISO 3166-1 alpha-2).
+ */
+ @SerializedName("country")
+ String country;
+
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName}
+ * value. Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its
+ * parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
+
+ /** Address line 1, such as the street, PO Box, or company name. */
+ @SerializedName("line1")
+ String line1;
+
+ /** Address line 2, such as the apartment, suite, unit, or building. */
+ @SerializedName("line2")
+ String line2;
+
+ /** ZIP or postal code. */
+ @SerializedName("postal_code")
+ String postalCode;
+
+ /**
+ * State, county, province, or region (ISO 3166-2).
+ */
+ @SerializedName("state")
+ String state;
+
+ private Address(
+ String city,
+ String country,
+ Map extraParams,
+ String line1,
+ String line2,
+ String postalCode,
+ String state) {
+ this.city = city;
+ this.country = country;
+ this.extraParams = extraParams;
+ this.line1 = line1;
+ this.line2 = line2;
+ this.postalCode = postalCode;
+ this.state = state;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public static class Builder {
+ private String city;
+
+ private String country;
+
+ private Map extraParams;
+
+ private String line1;
+
+ private String line2;
+
+ private String postalCode;
+
+ private String state;
+
+ /** Finalize and obtain parameter instance from this builder. */
+ public ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding
+ .BeneficiaryDetails.Address
+ build() {
+ return new ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding
+ .BeneficiaryDetails.Address(
+ this.city,
+ this.country,
+ this.extraParams,
+ this.line1,
+ this.line2,
+ this.postalCode,
+ this.state);
+ }
+
+ /** City, district, suburb, town, or village. */
+ public Builder setCity(String city) {
+ this.city = city;
+ return this;
+ }
+
+ /**
+ * Two-letter country code (ISO 3166-1 alpha-2).
+ */
+ public Builder setCountry(String country) {
+ this.country = country;
+ return this;
+ }
+
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails.Address#extraParams}
+ * for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
+
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the
+ * first `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails.Address#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class ExtraCharge {
- /** Amount of the extra charge in cents. */
- @SerializedName("amount")
- Long amount;
-
- /**
- * Map of extra parameters for custom features not available in this client library. The
- * content in this map is not serialized under this field's {@code @SerializedName} value.
- * Instead, each key/value pair is serialized as if the key is a root-level field
- * (serialized) name in this param object. Effectively, this map is flattened to its
- * parent instance.
- */
- @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
- Map extraParams;
+ /** Address line 1, such as the street, PO Box, or company name. */
+ public Builder setLine1(String line1) {
+ this.line1 = line1;
+ return this;
+ }
- /** Type of extra charge. */
- @SerializedName("type")
- Type type;
+ /** Address line 2, such as the apartment, suite, unit, or building. */
+ public Builder setLine2(String line2) {
+ this.line2 = line2;
+ return this;
+ }
- private ExtraCharge(Long amount, Map extraParams, Type type) {
- this.amount = amount;
- this.extraParams = extraParams;
- this.type = type;
- }
+ /** ZIP or postal code. */
+ public Builder setPostalCode(String postalCode) {
+ this.postalCode = postalCode;
+ return this;
+ }
- public static Builder builder() {
- return new Builder();
+ /**
+ * State, county, province, or region (ISO 3166-2).
+ */
+ public Builder setState(String state) {
+ this.state = state;
+ return this;
+ }
+ }
}
- public static class Builder {
- private Long amount;
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DateOfBirth {
+ /** Required. Day of birth, between 1 and 31. */
+ @SerializedName("day")
+ Long day;
- private Map extraParams;
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName}
+ * value. Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its
+ * parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
- private Type type;
+ /** Required. Month of birth, between 1 and 12. */
+ @SerializedName("month")
+ Long month;
- /** Finalize and obtain parameter instance from this builder. */
- public ChargeCaptureParams.PaymentDetails.LodgingData.Total.ExtraCharge build() {
- return new ChargeCaptureParams.PaymentDetails.LodgingData.Total.ExtraCharge(
- this.amount, this.extraParams, this.type);
- }
+ /** Required. Four-digit year of birth. */
+ @SerializedName("year")
+ Long year;
- /** Amount of the extra charge in cents. */
- public Builder setAmount(Long amount) {
- this.amount = amount;
- return this;
+ private DateOfBirth(Long day, Map extraParams, Long month, Long year) {
+ this.day = day;
+ this.extraParams = extraParams;
+ this.month = month;
+ this.year = year;
}
- /**
- * Add a key/value pair to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the
- * original map. See {@link
- * ChargeCaptureParams.PaymentDetails.LodgingData.Total.ExtraCharge#extraParams} for the
- * field documentation.
- */
- public Builder putExtraParam(String key, Object value) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.put(key, value);
- return this;
+ public static Builder builder() {
+ return new Builder();
}
- /**
- * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the
- * original map. See {@link
- * ChargeCaptureParams.PaymentDetails.LodgingData.Total.ExtraCharge#extraParams} for the
- * field documentation.
- */
- public Builder putAllExtraParam(Map map) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.putAll(map);
- return this;
- }
+ public static class Builder {
+ private Long day;
- /** Type of extra charge. */
- public Builder setType(
- ChargeCaptureParams.PaymentDetails.LodgingData.Total.ExtraCharge.Type type) {
- this.type = type;
- return this;
- }
- }
+ private Map extraParams;
- public enum Type implements ApiRequestParams.EnumParam {
- @SerializedName("gift_shop")
- GIFT_SHOP("gift_shop"),
+ private Long month;
- @SerializedName("laundry")
- LAUNDRY("laundry"),
+ private Long year;
- @SerializedName("mini_bar")
- MINI_BAR("mini_bar"),
+ /** Finalize and obtain parameter instance from this builder. */
+ public ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding
+ .BeneficiaryDetails.DateOfBirth
+ build() {
+ return new ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding
+ .BeneficiaryDetails.DateOfBirth(
+ this.day, this.extraParams, this.month, this.year);
+ }
- @SerializedName("other")
- OTHER("other"),
+ /** Required. Day of birth, between 1 and 31. */
+ public Builder setDay(Long day) {
+ this.day = day;
+ return this;
+ }
- @SerializedName("phone")
- PHONE("phone"),
+ /**
+ * Add a key/value pair to `extraParams` map. A map is initialized for the first
+ * `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails.DateOfBirth#extraParams}
+ * for the field documentation.
+ */
+ public Builder putExtraParam(String key, Object value) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.put(key, value);
+ return this;
+ }
- @SerializedName("restaurant")
- RESTAURANT("restaurant");
+ /**
+ * Add all map key/value pairs to `extraParams` map. A map is initialized for the
+ * first `put/putAll` call, and subsequent calls add additional key/value pairs to the
+ * original map. See {@link
+ * ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding.BeneficiaryDetails.DateOfBirth#extraParams}
+ * for the field documentation.
+ */
+ public Builder putAllExtraParam(Map map) {
+ if (this.extraParams == null) {
+ this.extraParams = new HashMap<>();
+ }
+ this.extraParams.putAll(map);
+ return this;
+ }
- @Getter(onMethod_ = {@Override})
- private final String value;
+ /** Required. Month of birth, between 1 and 12. */
+ public Builder setMonth(Long month) {
+ this.month = month;
+ return this;
+ }
- Type(String value) {
- this.value = value;
+ /** Required. Four-digit year of birth. */
+ public Builder setYear(Long year) {
+ this.year = year;
+ return this;
+ }
}
}
}
@Getter
@EqualsAndHashCode(callSuper = false)
- public static class Tax {
+ public static class SenderDetails {
+ /** Address. */
+ @SerializedName("address")
+ Address address;
+
+ /** Date of birth. */
+ @SerializedName("date_of_birth")
+ DateOfBirth dateOfBirth;
+
+ /** Email address. */
+ @SerializedName("email")
+ String email;
+
/**
* Map of extra parameters for custom features not available in this client library. The
* content in this map is not serialized under this field's {@code @SerializedName} value.
@@ -10228,21 +12171,27 @@ public static class Tax {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Indicates whether the transaction is tax exempt. */
- @SerializedName("tax_exempt_indicator")
- Boolean taxExemptIndicator;
+ /** Full name. */
+ @SerializedName("name")
+ String name;
- /** Tax details. */
- @SerializedName("taxes")
- List taxes;
+ /** Phone number. */
+ @SerializedName("phone")
+ String phone;
- private Tax(
+ private SenderDetails(
+ Address address,
+ DateOfBirth dateOfBirth,
+ String email,
Map extraParams,
- Boolean taxExemptIndicator,
- List taxes) {
+ String name,
+ String phone) {
+ this.address = address;
+ this.dateOfBirth = dateOfBirth;
+ this.email = email;
this.extraParams = extraParams;
- this.taxExemptIndicator = taxExemptIndicator;
- this.taxes = taxes;
+ this.name = name;
+ this.phone = phone;
}
public static Builder builder() {
@@ -10250,24 +12199,61 @@ public static Builder builder() {
}
public static class Builder {
+ private Address address;
+
+ private DateOfBirth dateOfBirth;
+
+ private String email;
+
private Map extraParams;
- private Boolean taxExemptIndicator;
+ private String name;
- private List taxes;
+ private String phone;
/** Finalize and obtain parameter instance from this builder. */
- public ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax build() {
- return new ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax(
- this.extraParams, this.taxExemptIndicator, this.taxes);
+ public ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails
+ build() {
+ return new ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding
+ .SenderDetails(
+ this.address,
+ this.dateOfBirth,
+ this.email,
+ this.extraParams,
+ this.name,
+ this.phone);
+ }
+
+ /** Address. */
+ public Builder setAddress(
+ ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails
+ .Address
+ address) {
+ this.address = address;
+ return this;
+ }
+
+ /** Date of birth. */
+ public Builder setDateOfBirth(
+ ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails
+ .DateOfBirth
+ dateOfBirth) {
+ this.dateOfBirth = dateOfBirth;
+ return this;
+ }
+
+ /** Email address. */
+ public Builder setEmail(String email) {
+ this.email = email;
+ return this;
}
/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax#extraParams} for the field
- * documentation.
+ * ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails#extraParams}
+ * for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -10281,8 +12267,8 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax#extraParams} for the field
- * documentation.
+ * ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails#extraParams}
+ * for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
@@ -10292,50 +12278,33 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Indicates whether the transaction is tax exempt. */
- public Builder setTaxExemptIndicator(Boolean taxExemptIndicator) {
- this.taxExemptIndicator = taxExemptIndicator;
- return this;
- }
-
- /**
- * Add an element to `taxes` list. A list is initialized for the first `add/addAll`
- * call, and subsequent calls adds additional elements to the original list. See {@link
- * ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax#taxes} for the field
- * documentation.
- */
- public Builder addTax(
- ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax.InnerTax element) {
- if (this.taxes == null) {
- this.taxes = new ArrayList<>();
- }
- this.taxes.add(element);
+ /** Full name. */
+ public Builder setName(String name) {
+ this.name = name;
return this;
}
- /**
- * Add all elements to `taxes` list. A list is initialized for the first `add/addAll`
- * call, and subsequent calls adds additional elements to the original list. See {@link
- * ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax#taxes} for the field
- * documentation.
- */
- public Builder addAllTax(
- List elements) {
- if (this.taxes == null) {
- this.taxes = new ArrayList<>();
- }
- this.taxes.addAll(elements);
+ /** Phone number. */
+ public Builder setPhone(String phone) {
+ this.phone = phone;
return this;
}
}
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class InnerTax {
- /** Tax amount in cents. */
- @SerializedName("amount")
- Long amount;
-
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class Address {
+ /** City, district, suburb, town, or village. */
+ @SerializedName("city")
+ String city;
+
+ /**
+ * Two-letter country code (ISO 3166-1 alpha-2).
+ */
+ @SerializedName("country")
+ String country;
+
/**
* Map of extra parameters for custom features not available in this client library. The
* content in this map is not serialized under this field's {@code @SerializedName}
@@ -10346,19 +12315,40 @@ public static class InnerTax {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map extraParams;
- /** Tax rate. */
- @SerializedName("rate")
- Long rate;
+ /** Address line 1, such as the street, PO Box, or company name. */
+ @SerializedName("line1")
+ String line1;
- /** Type of tax applied. */
- @SerializedName("type")
- String type;
+ /** Address line 2, such as the apartment, suite, unit, or building. */
+ @SerializedName("line2")
+ String line2;
- private InnerTax(Long amount, Map extraParams, Long rate, String type) {
- this.amount = amount;
+ /** ZIP or postal code. */
+ @SerializedName("postal_code")
+ String postalCode;
+
+ /**
+ * State, county, province, or region (ISO 3166-2).
+ */
+ @SerializedName("state")
+ String state;
+
+ private Address(
+ String city,
+ String country,
+ Map extraParams,
+ String line1,
+ String line2,
+ String postalCode,
+ String state) {
+ this.city = city;
+ this.country = country;
this.extraParams = extraParams;
- this.rate = rate;
- this.type = type;
+ this.line1 = line1;
+ this.line2 = line2;
+ this.postalCode = postalCode;
+ this.state = state;
}
public static Builder builder() {
@@ -10366,23 +12356,47 @@ public static Builder builder() {
}
public static class Builder {
- private Long amount;
+ private String city;
+
+ private String country;
private Map extraParams;
- private Long rate;
+ private String line1;
- private String type;
+ private String line2;
+
+ private String postalCode;
+
+ private String state;
/** Finalize and obtain parameter instance from this builder. */
- public ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax.InnerTax build() {
- return new ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax.InnerTax(
- this.amount, this.extraParams, this.rate, this.type);
+ public ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails
+ .Address
+ build() {
+ return new ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding
+ .SenderDetails.Address(
+ this.city,
+ this.country,
+ this.extraParams,
+ this.line1,
+ this.line2,
+ this.postalCode,
+ this.state);
}
- /** Tax amount in cents. */
- public Builder setAmount(Long amount) {
- this.amount = amount;
+ /** City, district, suburb, town, or village. */
+ public Builder setCity(String city) {
+ this.city = city;
+ return this;
+ }
+
+ /**
+ * Two-letter country code (ISO 3166-1 alpha-2).
+ */
+ public Builder setCountry(String country) {
+ this.country = country;
return this;
}
@@ -10390,8 +12404,8 @@ public Builder setAmount(Long amount) {
* Add a key/value pair to `extraParams` map. A map is initialized for the first
* `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax.InnerTax#extraParams} for
- * the field documentation.
+ * ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.Address#extraParams}
+ * for the field documentation.
*/
public Builder putExtraParam(String key, Object value) {
if (this.extraParams == null) {
@@ -10405,8 +12419,8 @@ public Builder putExtraParam(String key, Object value) {
* Add all map key/value pairs to `extraParams` map. A map is initialized for the
* first `put/putAll` call, and subsequent calls add additional key/value pairs to the
* original map. See {@link
- * ChargeCaptureParams.PaymentDetails.LodgingData.Total.Tax.InnerTax#extraParams} for
- * the field documentation.
+ * ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding.SenderDetails.Address#extraParams}
+ * for the field documentation.
*/
public Builder putAllExtraParam(Map map) {
if (this.extraParams == null) {
@@ -10416,174 +12430,136 @@ public Builder putAllExtraParam(Map map) {
return this;
}
- /** Tax rate. */
- public Builder setRate(Long rate) {
- this.rate = rate;
+ /** Address line 1, such as the street, PO Box, or company name. */
+ public Builder setLine1(String line1) {
+ this.line1 = line1;
return this;
}
- /** Type of tax applied. */
- public Builder setType(String type) {
- this.type = type;
+ /** Address line 2, such as the apartment, suite, unit, or building. */
+ public Builder setLine2(String line2) {
+ this.line2 = line2;
return this;
}
- }
- }
- }
- }
- }
-
- @Getter
- @EqualsAndHashCode(callSuper = false)
- public static class MoneyServices {
- /** Account funding transaction details including sender and beneficiary information. */
- @SerializedName("account_funding")
- Object accountFunding;
-
- /**
- * Map of extra parameters for custom features not available in this client library. The
- * content in this map is not serialized under this field's {@code @SerializedName} value.
- * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
- * name in this param object. Effectively, this map is flattened to its parent instance.
- */
- @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
- Map extraParams;
-
- /** The type of money services transaction. */
- @SerializedName("transaction_type")
- TransactionType transactionType;
- private MoneyServices(
- Object accountFunding, Map extraParams, TransactionType transactionType) {
- this.accountFunding = accountFunding;
- this.extraParams = extraParams;
- this.transactionType = transactionType;
- }
+ /** ZIP or postal code. */
+ public Builder setPostalCode(String postalCode) {
+ this.postalCode = postalCode;
+ return this;
+ }
- public static Builder builder() {
- return new Builder();
- }
+ /**
+ * State, county, province, or region (ISO 3166-2).
+ */
+ public Builder setState(String state) {
+ this.state = state;
+ return this;
+ }
+ }
+ }
- public static class Builder {
- private Object accountFunding;
+ @Getter
+ @EqualsAndHashCode(callSuper = false)
+ public static class DateOfBirth {
+ /** Required. Day of birth, between 1 and 31. */
+ @SerializedName("day")
+ Long day;
- private Map extraParams;
+ /**
+ * Map of extra parameters for custom features not available in this client library. The
+ * content in this map is not serialized under this field's {@code @SerializedName}
+ * value. Instead, each key/value pair is serialized as if the key is a root-level field
+ * (serialized) name in this param object. Effectively, this map is flattened to its
+ * parent instance.
+ */
+ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
+ Map extraParams;
- private TransactionType transactionType;
+ /** Required. Month of birth, between 1 and 12. */
+ @SerializedName("month")
+ Long month;
- /** Finalize and obtain parameter instance from this builder. */
- public ChargeCaptureParams.PaymentDetails.MoneyServices build() {
- return new ChargeCaptureParams.PaymentDetails.MoneyServices(
- this.accountFunding, this.extraParams, this.transactionType);
- }
+ /** Required. Four-digit year of birth. */
+ @SerializedName("year")
+ Long year;
- /** Account funding transaction details including sender and beneficiary information. */
- public Builder setAccountFunding(
- ChargeCaptureParams.PaymentDetails.MoneyServices.AccountFunding accountFunding) {
- this.accountFunding = accountFunding;
- return this;
- }
+ private DateOfBirth(Long day, Map extraParams, Long month, Long year) {
+ this.day = day;
+ this.extraParams = extraParams;
+ this.month = month;
+ this.year = year;
+ }
- /** Account funding transaction details including sender and beneficiary information. */
- public Builder setAccountFunding(EmptyParam accountFunding) {
- this.accountFunding = accountFunding;
- return this;
- }
+ public static Builder builder() {
+ return new Builder();
+ }
- /**
- * Add a key/value pair to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.MoneyServices#extraParams} for the
- * field documentation.
- */
- public Builder putExtraParam(String key, Object value) {
- if (this.extraParams == null) {
- this.extraParams = new HashMap<>();
- }
- this.extraParams.put(key, value);
- return this;
- }
+ public static class Builder {
+ private Long day;
- /**
- * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
- * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
- * map. See {@link ChargeCaptureParams.PaymentDetails.MoneyServices#extraParams} for the
- * field documentation.
- */
- public Builder putAllExtraParam(Map