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.The type of fuel that was purchased.The units forvolume_decimal
.setUnitCostDecimal
(BigDecimal unitCostDecimal) The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.setVolumeDecimal
(BigDecimal volumeDecimal) The volume of the fuel that was pumped, 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. -
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 forvolume_decimal
. One ofus_gallon
orliter
. -
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. -
setVolumeDecimal
public TransactionCreateForceCaptureParams.PurchaseDetails.Fuel.Builder setVolumeDecimal(BigDecimal volumeDecimal) The volume of the fuel that was pumped, represented as a decimal string with at most 12 decimal places.
-