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