Package com.stripe.param.issuing
Class TransactionCreateForceCaptureParams.PurchaseDetails.Fuel.Builder
java.lang.Object
com.stripe.param.issuing.TransactionCreateForceCaptureParams.PurchaseDetails.Fuel.Builder
- Enclosing class:
- TransactionCreateForceCaptureParams.PurchaseDetails.Fuel
-
Constructor Summary
-
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.setIndustryProductCode
(String industryProductCode) Conexxus Payment System Product Code identifying the primary fuel product purchased.setQuantityDecimal
(BigDecimal quantityDecimal) The quantity ofunit
s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.The type of fuel that was purchased.The units forquantity_decimal
.setUnitCostDecimal
(BigDecimal unitCostDecimal) The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
putExtraParam
public TransactionCreateForceCaptureParams.PurchaseDetails.Fuel.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. SeeTransactionCreateForceCaptureParams.PurchaseDetails.Fuel.extraParams
for the field documentation. -
putAllExtraParam
public TransactionCreateForceCaptureParams.PurchaseDetails.Fuel.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. SeeTransactionCreateForceCaptureParams.PurchaseDetails.Fuel.extraParams
for the field documentation. -
setIndustryProductCode
public TransactionCreateForceCaptureParams.PurchaseDetails.Fuel.Builder setIndustryProductCode(String industryProductCode) Conexxus Payment System Product Code identifying the primary fuel product purchased. -
setQuantityDecimal
public TransactionCreateForceCaptureParams.PurchaseDetails.Fuel.Builder setQuantityDecimal(BigDecimal quantityDecimal) The quantity ofunit
s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places. -
setType
public TransactionCreateForceCaptureParams.PurchaseDetails.Fuel.Builder setType(TransactionCreateForceCaptureParams.PurchaseDetails.Fuel.Type type) The type of fuel that was purchased. One ofdiesel
,unleaded_plus
,unleaded_regular
,unleaded_super
, orother
. -
setUnit
public TransactionCreateForceCaptureParams.PurchaseDetails.Fuel.Builder setUnit(TransactionCreateForceCaptureParams.PurchaseDetails.Fuel.Unit unit) The units forquantity_decimal
. One ofcharging_minute
,imperial_gallon
,kilogram
,kilowatt_hour
,liter
,pound
,us_gallon
, orother
. -
setUnitCostDecimal
public TransactionCreateForceCaptureParams.PurchaseDetails.Fuel.Builder setUnitCostDecimal(BigDecimal unitCostDecimal) The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
-