class

Stripe::IssuingAuthorizationRequest

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Constants

ERROR_MESSAGE_FOR_REASON = "invalid value for \"reason\", must be one of [account_disabled, card_active, card_canceled, card_expired, card_inactive, cardholder_blocked, cardholder_inactive, cardholder_verification_required, insecure_authorization_method, insufficient_funds, not_allowed, pin_blocked, spending_controls, suspected_fraud, verification_failed, webhook_approved, webhook_declined, webhook_error, webhook_timeout]."
MAX_LENGTH_FOR_AUTHORIZATION_CODE = 5000
MAX_LENGTH_FOR_CURRENCY = 5000
MAX_LENGTH_FOR_MERCHANT_CURRENCY = 5000
MAX_LENGTH_FOR_REASON_MESSAGE = 5000
VALID_VALUES_FOR_REASON = String.static_array("account_disabled", "card_active", "card_canceled", "card_expired", "card_inactive", "cardholder_blocked", "cardholder_inactive", "cardholder_verification_required", "insecure_authorization_method", "insufficient_funds", "not_allowed", "pin_blocked", "spending_controls", "suspected_fraud", "verification_failed", "webhook_approved", "webhook_declined", "webhook_error", "webhook_timeout")

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, amount : Int64 | Nil = nil, amount_details : Stripe::IssuingAuthorizationAmountDetails1 | Nil = nil, approved : Bool | Nil = nil, authorization_code : String | Nil = nil, created : Int64 | Nil = nil, currency : String | Nil = nil, merchant_amount : Int64 | Nil = nil, merchant_currency : String | Nil = nil, network_risk_score : Int64 | Nil = nil, reason : String | Nil = nil, reason_message : String | Nil = nil, requested_at : Int64 | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

amount

The pending_request.amount at the time of the request, presented in your card's currency and in the smallest currency unit. Stripe held this amount from your account to fund the authorization if the request was approved.

Source
amount=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] amount Object to be assigned

Source
amount_details
Source
amount_details=(new_value : Stripe::IssuingAuthorizationAmountDetails1 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] amount_details Object to be assigned

Source
approved

Whether this request was approved.

Source
approved=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] approved Object to be assigned

Source
authorization_code

A code created by Stripe which is shared with the merchant to validate the authorization. This field will be populated if the authorization message was approved. The code typically starts with the letter "S", followed by a six-digit number. For example, "S498162". Please note that the code is not guaranteed to be unique across authorizations.

Source
authorization_code=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] authorization_code Object to be assigned

Source
created

Time at which the object was created. Measured in seconds since the Unix epoch.

Source
created=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] created Object to be assigned

Source
currency

Three-letter ISO currency code, in lowercase. Must be a supported currency.

Source
currency=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] currency Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
merchant_amount

The pending_request.merchant_amount at the time of the request, presented in the merchant_currency and in the smallest currency unit.

Source
merchant_amount=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] merchant_amount Object to be assigned

Source
merchant_currency

The currency that was collected by the merchant and presented to the cardholder for the authorization. Three-letter ISO currency code, in lowercase. Must be a supported currency.

Source
merchant_currency=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] merchant_currency Object to be assigned

Source
network_risk_score

The card network's estimate of the likelihood that an authorization is fraudulent. Takes on values between 1 and 99.

Source
network_risk_score=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] network_risk_score Object to be assigned

Source
reason

When an authorization is approved or declined by you or by Stripe, this field provides additional detail on the reason for the outcome.

Source
reason=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] reason Object to be assigned

Source
reason_message

If the request_history.reason is webhook_error because the direct webhook response is invalid (for example, parsing errors or missing parameters), we surface a more detailed error message via this field.

Source
reason_message=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] reason_message Object to be assigned

Source
requested_at

Time when the card network received an authorization request from the acquirer in UTC. Referred to by networks as transmission time.

Source
requested_at=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] requested_at Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source