Package com.stripe.param
Class OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.Builder
java.lang.Object
com.stripe.param.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.Builder
- Enclosing class:
- OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher
public static class OrderCreateParams.Payment.Settings.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(OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType voucherType) The type of this voucher.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher build()Finalize and obtain parameter instance from this builder. -
setAffiliateName
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.Builder setAffiliateName(String affiliateName) Name of associated or partner company for this voucher. -
setEndsAt
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.Builder setEndsAt(Long endsAt) The voucher validity end time. -
putExtraParam
public OrderCreateParams.Payment.Settings.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. SeeOrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.extraParamsfor the field documentation. -
putAllExtraParam
public OrderCreateParams.Payment.Settings.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. SeeOrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.extraParamsfor the field documentation. -
setStartsAt
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.Builder setStartsAt(Long startsAt) The voucher validity start time. -
setVoucherCompany
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.Builder setVoucherCompany(String voucherCompany) The issuer or provider of this voucher. -
setVoucherName
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.Builder setVoucherName(String voucherName) The name or reference to identify the voucher. -
setVoucherType
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.Builder setVoucherType(OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType voucherType) The type of this voucher.
-