Class DistributionPayment.Builder
-
- All Implemented Interfaces:
public final class DistributionPayment.BuilderA builder for DistributionPayment.
-
-
Method Summary
-
-
Method Detail
-
id
final DistributionPayment.Builder id(String id)
UUID of the distribution payment
-
id
final DistributionPayment.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
amount
final DistributionPayment.Builder amount(Long amount)
Amount in the smallest currency unit
-
amount
final DistributionPayment.Builder amount(JsonField<Long> amount)
Sets Builder.amount to an arbitrary JSON value.
You should usually call Builder.amount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
contacts
final DistributionPayment.Builder contacts(List<DistributionPaymentContact> contacts)
Each contact is linked to the entity (created if provided inline) and, when
notifyis true, emailed when the payment is published.
-
contacts
final DistributionPayment.Builder contacts(JsonField<List<DistributionPaymentContact>> contacts)
Sets Builder.contacts to an arbitrary JSON value.
You should usually call Builder.contacts with a well-typed
List<DistributionPaymentContact>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addContact
final DistributionPayment.Builder addContact(DistributionPaymentContact contact)
Adds a single DistributionPaymentContact to contacts.
-
currency
final DistributionPayment.Builder currency(Currency currency)
ISO 4217 currency code (USD-only currently)
-
currency
final DistributionPayment.Builder currency(JsonField<Currency> currency)
Sets Builder.currency to an arbitrary JSON value.
You should usually call Builder.currency with a well-typed Currency value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
entity
final DistributionPayment.Builder entity(Entity entity)
-
entity
final DistributionPayment.Builder entity(JsonField<Entity> entity)
Sets Builder.entity to an arbitrary JSON value.
You should usually call Builder.entity with a well-typed Entity value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
recipientConfirmedAt
final DistributionPayment.Builder recipientConfirmedAt(OffsetDateTime recipientConfirmedAt)
-
recipientConfirmedAt
final DistributionPayment.Builder recipientConfirmedAt(Optional<OffsetDateTime> recipientConfirmedAt)
Alias for calling Builder.recipientConfirmedAt with
recipientConfirmedAt.orElse(null).
-
recipientConfirmedAt
final DistributionPayment.Builder recipientConfirmedAt(JsonField<OffsetDateTime> recipientConfirmedAt)
Sets Builder.recipientConfirmedAt to an arbitrary JSON value.
You should usually call Builder.recipientConfirmedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final DistributionPayment.Builder status(DistributionPaymentStatus status)
-
status
final DistributionPayment.Builder status(JsonField<DistributionPaymentStatus> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed DistributionPaymentStatus value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
verifiedAt
final DistributionPayment.Builder verifiedAt(OffsetDateTime verifiedAt)
-
verifiedAt
final DistributionPayment.Builder verifiedAt(Optional<OffsetDateTime> verifiedAt)
Alias for calling Builder.verifiedAt with
verifiedAt.orElse(null).
-
verifiedAt
final DistributionPayment.Builder verifiedAt(JsonField<OffsetDateTime> verifiedAt)
Sets Builder.verifiedAt to an arbitrary JSON value.
You should usually call Builder.verifiedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final DistributionPayment.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final DistributionPayment.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final DistributionPayment.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final DistributionPayment.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final DistributionPayment.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final DistributionPayment build()
Returns an immutable instance of DistributionPayment.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .amount() .contacts() .currency() .entity() .recipientConfirmedAt() .status() .verifiedAt()
-
-
-
-