Class EnhancedData.CommonData.Builder
-
- All Implemented Interfaces:
public final class EnhancedData.CommonData.BuilderA builder for CommonData.
-
-
Method Summary
-
-
Method Detail
-
lineItems
final EnhancedData.CommonData.Builder lineItems(List<EnhancedData.CommonData.LineItem> lineItems)
-
lineItems
final EnhancedData.CommonData.Builder lineItems(JsonField<List<EnhancedData.CommonData.LineItem>> lineItems)
Sets Builder.lineItems to an arbitrary JSON value.
You should usually call Builder.lineItems with a well-typed
List<LineItem>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addLineItem
final EnhancedData.CommonData.Builder addLineItem(EnhancedData.CommonData.LineItem lineItem)
-
tax
final EnhancedData.CommonData.Builder tax(EnhancedData.CommonData.TaxData tax)
-
tax
final EnhancedData.CommonData.Builder tax(JsonField<EnhancedData.CommonData.TaxData> tax)
Sets Builder.tax to an arbitrary JSON value.
You should usually call Builder.tax with a well-typed TaxData value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
customerReferenceNumber
final EnhancedData.CommonData.Builder customerReferenceNumber(String customerReferenceNumber)
A customer identifier.
-
customerReferenceNumber
final EnhancedData.CommonData.Builder customerReferenceNumber(JsonField<String> customerReferenceNumber)
Sets Builder.customerReferenceNumber to an arbitrary JSON value.
You should usually call Builder.customerReferenceNumber with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
merchantReferenceNumber
final EnhancedData.CommonData.Builder merchantReferenceNumber(String merchantReferenceNumber)
A merchant identifier.
-
merchantReferenceNumber
final EnhancedData.CommonData.Builder merchantReferenceNumber(JsonField<String> merchantReferenceNumber)
Sets Builder.merchantReferenceNumber to an arbitrary JSON value.
You should usually call Builder.merchantReferenceNumber with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
orderDate
final EnhancedData.CommonData.Builder orderDate(LocalDate orderDate)
The date of the order.
-
orderDate
final EnhancedData.CommonData.Builder orderDate(JsonField<LocalDate> orderDate)
Sets Builder.orderDate to an arbitrary JSON value.
You should usually call Builder.orderDate with a well-typed LocalDate value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final EnhancedData.CommonData.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final EnhancedData.CommonData.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final EnhancedData.CommonData.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final EnhancedData.CommonData.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final EnhancedData.CommonData.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final EnhancedData.CommonData build()
Returns an immutable instance of CommonData.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.lineItems() .tax()
-
-
-
-