Class EnhancedData.CommonData.LineItem.Builder
-
- All Implemented Interfaces:
public final class EnhancedData.CommonData.LineItem.BuilderA builder for LineItem.
-
-
Method Summary
-
-
Method Detail
-
amount
final EnhancedData.CommonData.LineItem.Builder amount(Double amount)
The price of the item purchased in merchant currency.
-
amount
final EnhancedData.CommonData.LineItem.Builder amount(JsonField<Double> amount)
Sets Builder.amount to an arbitrary JSON value.
You should usually call Builder.amount with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final EnhancedData.CommonData.LineItem.Builder description(String description)
A human-readable description of the item.
-
description
final EnhancedData.CommonData.LineItem.Builder description(JsonField<String> description)
Sets Builder.description to an arbitrary JSON value.
You should usually call Builder.description with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
productCode
final EnhancedData.CommonData.LineItem.Builder productCode(String productCode)
An identifier for the item purchased.
-
productCode
final EnhancedData.CommonData.LineItem.Builder productCode(JsonField<String> productCode)
Sets Builder.productCode to an arbitrary JSON value.
You should usually call Builder.productCode with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
quantity
final EnhancedData.CommonData.LineItem.Builder quantity(Double quantity)
The quantity of the item purchased.
-
quantity
final EnhancedData.CommonData.LineItem.Builder quantity(JsonField<Double> quantity)
Sets Builder.quantity to an arbitrary JSON value.
You should usually call Builder.quantity with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final EnhancedData.CommonData.LineItem.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final EnhancedData.CommonData.LineItem.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final EnhancedData.CommonData.LineItem.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final EnhancedData.CommonData.LineItem.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final EnhancedData.CommonData.LineItem.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final EnhancedData.CommonData.LineItem build()
Returns an immutable instance of LineItem.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-