Skip to content

Commit

Permalink
docs: update some builder method javadocs (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jan 9, 2025
1 parent 4c7cecf commit b13afd8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,16 +265,36 @@ private constructor(
*/
fun entity(entity: JsonField<Entity>) = apply { this.entity = entity }

/**
* An object with type as indicated by `entity_type`. This is the result object that is
* generated by performing the requested action on the provided input `request_params`.
*/
fun entity(paymentOrder: PaymentOrder) = entity(Entity.ofPaymentOrder(paymentOrder))

/**
* An object with type as indicated by `entity_type`. This is the result object that is
* generated by performing the requested action on the provided input `request_params`.
*/
fun entity(expectedPayment: ExpectedPayment) =
entity(Entity.ofExpectedPayment(expectedPayment))

/**
* An object with type as indicated by `entity_type`. This is the result object that is
* generated by performing the requested action on the provided input `request_params`.
*/
fun entity(ledgerTransaction: LedgerTransaction) =
entity(Entity.ofLedgerTransaction(ledgerTransaction))

/**
* An object with type as indicated by `entity_type`. This is the result object that is
* generated by performing the requested action on the provided input `request_params`.
*/
fun entity(transaction: Transaction) = entity(Entity.ofTransaction(transaction))

/**
* An object with type as indicated by `entity_type`. This is the result object that is
* generated by performing the requested action on the provided input `request_params`.
*/
fun entity(bulkError: Entity.BulkError) = entity(Entity.ofBulkError(bulkError))

/** Unique identifier for the result entity object. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1621,9 +1621,17 @@ private constructor(
ultimateOriginatingAccount: JsonField<UltimateOriginatingAccount>
) = apply { this.ultimateOriginatingAccount = ultimateOriginatingAccount }

/**
* The account to which the originating of this payment should be attributed to. Can be a
* `virtual_account` or `internal_account`.
*/
fun ultimateOriginatingAccount(virtualAccount: VirtualAccount) =
ultimateOriginatingAccount(UltimateOriginatingAccount.ofVirtualAccount(virtualAccount))

/**
* The account to which the originating of this payment should be attributed to. Can be a
* `virtual_account` or `internal_account`.
*/
fun ultimateOriginatingAccount(internalAccount: InternalAccount) =
ultimateOriginatingAccount(
UltimateOriginatingAccount.ofInternalAccount(internalAccount)
Expand Down

0 comments on commit b13afd8

Please sign in to comment.