Package com.stripe.param
Class PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.Builder
java.lang.Object
com.stripe.param.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.Builder
- Enclosing class:
- PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher
public static class PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.Builder
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finalize and obtain parameter instance from this builder.putAllExtraParam(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map.setAffiliateName(String affiliateName) Name of associated or partner company for this voucher.The voucher validity end time.setStartsAt(Long startsAt) The voucher validity start time.setVoucherCompany(String voucherCompany) The issuer or provider of this voucher.setVoucherName(String voucherName) The name or reference to identify the voucher.setVoucherType(PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType voucherType)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
public PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher build()Finalize and obtain parameter instance from this builder. -
setAffiliateName
public PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.Builder setAffiliateName(String affiliateName) Name of associated or partner company for this voucher. -
setEndsAt
public PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.Builder setEndsAt(Long endsAt) The voucher validity end time. -
putExtraParam
public PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.Builder putExtraParam(String key, Object value) 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. SeePaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.extraParamsfor the field documentation. -
putAllExtraParam
public PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.Builder putAllExtraParam(Map<String, Object> map) 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. SeePaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.extraParamsfor the field documentation. -
setStartsAt
public PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.Builder setStartsAt(Long startsAt) The voucher validity start time. -
setVoucherCompany
public PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.Builder setVoucherCompany(String voucherCompany) The issuer or provider of this voucher. -
setVoucherName
public PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.Builder setVoucherName(String voucherName) The name or reference to identify the voucher. -
setVoucherType
-