Package com.stripe.param.v2.billing
Class ActionServiceCreateParams.CreditGrant.Amount.Builder
java.lang.Object
com.stripe.param.v2.billing.ActionServiceCreateParams.CreditGrant.Amount.Builder
- Enclosing class:
- ActionServiceCreateParams.CreditGrant.Amount
-
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.setCustomPricingUnit
(ActionServiceCreateParams.CreditGrant.Amount.CustomPricingUnit customPricingUnit) The custom pricing unit amount of the credit grant.setMonetary
(Amount monetary) The monetary amount of the credit grant.Required. The type of the credit grant amount.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCustomPricingUnit
public ActionServiceCreateParams.CreditGrant.Amount.Builder setCustomPricingUnit(ActionServiceCreateParams.CreditGrant.Amount.CustomPricingUnit customPricingUnit) The custom pricing unit amount of the credit grant. Required iftype
iscustom_pricing_unit
. -
putExtraParam
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. SeeActionServiceCreateParams.CreditGrant.Amount.extraParams
for the field documentation. -
putAllExtraParam
public ActionServiceCreateParams.CreditGrant.Amount.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. SeeActionServiceCreateParams.CreditGrant.Amount.extraParams
for the field documentation. -
setMonetary
The monetary amount of the credit grant. Required iftype
ismonetary
. -
setType
public ActionServiceCreateParams.CreditGrant.Amount.Builder setType(ActionServiceCreateParams.CreditGrant.Amount.Type type) Required. The type of the credit grant amount. We currently supportmonetary
andcustom_pricing_unit
billing credits.
-