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