Class PaymentCreateParams
-
- All Implemented Interfaces:
-
com.lithic.api.core.Params
public final class PaymentCreateParams implements Params
Initiates a payment between a financial account and an external bank account.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPaymentCreateParams.BuilderA builder for PaymentCreateParams.
public final classPaymentCreateParams.CreatePaymentRequestpublic final classPaymentCreateParams.Methodpublic final classPaymentCreateParams.PaymentMethodRequestAttributespublic final classPaymentCreateParams.Type
-
Method Summary
Modifier and Type Method Description final Longamount()final StringexternalBankAccountToken()final StringfinancialAccountToken()final PaymentCreateParams.Methodmethod()final PaymentCreateParams.PaymentMethodRequestAttributesmethodAttributes()final PaymentCreateParams.Typetype()final Optional<String>token()Customer-provided token that will serve as an idempotency token. final Optional<String>memo()final Optional<String>userDefinedId()final JsonField<Long>_amount()Returns the raw JSON value of amount. final JsonField<String>_externalBankAccountToken()Returns the raw JSON value of externalBankAccountToken. final JsonField<String>_financialAccountToken()Returns the raw JSON value of financialAccountToken. final JsonField<PaymentCreateParams.Method>_method()Returns the raw JSON value of method. final JsonField<PaymentCreateParams.PaymentMethodRequestAttributes>_methodAttributes()Returns the raw JSON value of methodAttributes. final JsonField<PaymentCreateParams.Type>_type()Returns the raw JSON value of type. final JsonField<String>_token()Returns the raw JSON value of token. final JsonField<String>_memo()Returns the raw JSON value of memo. final JsonField<String>_userDefinedId()Returns the raw JSON value of userDefinedId. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final PaymentCreateParams.BuildertoBuilder()final PaymentCreateParams.CreatePaymentRequest_body()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static PaymentCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of PaymentCreateParams. -
-
Method Detail
-
externalBankAccountToken
final String externalBankAccountToken()
-
financialAccountToken
final String financialAccountToken()
-
method
final PaymentCreateParams.Method method()
-
methodAttributes
final PaymentCreateParams.PaymentMethodRequestAttributes methodAttributes()
-
type
final PaymentCreateParams.Type type()
-
token
final Optional<String> token()
Customer-provided token that will serve as an idempotency token. This token will become the transaction token.
-
userDefinedId
final Optional<String> userDefinedId()
-
_amount
final JsonField<Long> _amount()
Returns the raw JSON value of amount.
Unlike amount, this method doesn't throw if the JSON field has an unexpected type.
-
_externalBankAccountToken
final JsonField<String> _externalBankAccountToken()
Returns the raw JSON value of externalBankAccountToken.
Unlike externalBankAccountToken, this method doesn't throw if the JSON field has an unexpected type.
-
_financialAccountToken
final JsonField<String> _financialAccountToken()
Returns the raw JSON value of financialAccountToken.
Unlike financialAccountToken, this method doesn't throw if the JSON field has an unexpected type.
-
_method
final JsonField<PaymentCreateParams.Method> _method()
Returns the raw JSON value of method.
Unlike method, this method doesn't throw if the JSON field has an unexpected type.
-
_methodAttributes
final JsonField<PaymentCreateParams.PaymentMethodRequestAttributes> _methodAttributes()
Returns the raw JSON value of methodAttributes.
Unlike methodAttributes, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<PaymentCreateParams.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_token
final JsonField<String> _token()
Returns the raw JSON value of token.
Unlike token, this method doesn't throw if the JSON field has an unexpected type.
-
_memo
final JsonField<String> _memo()
Returns the raw JSON value of memo.
Unlike memo, this method doesn't throw if the JSON field has an unexpected type.
-
_userDefinedId
final JsonField<String> _userDefinedId()
Returns the raw JSON value of userDefinedId.
Unlike userDefinedId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final PaymentCreateParams.Builder toBuilder()
-
_body
final PaymentCreateParams.CreatePaymentRequest _body()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static PaymentCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of PaymentCreateParams.
The following fields are required:
.amount() .externalBankAccountToken() .financialAccountToken() .method() .methodAttributes() .type()
-
-
-
-