Class Authorization.RequestHistory

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.issuing.Authorization.RequestHistory
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Authorization

public static class Authorization.RequestHistory extends StripeObject
The amount of cash requested by the cardholder.
  • Constructor Details

    • RequestHistory

      public RequestHistory()
  • Method Details

    • getAmount

      public Long getAmount()
      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.
    • getAmountDetails

      public Authorization.RequestHistory.AmountDetails getAmountDetails()
      Detailed breakdown of amount components. These amounts are denominated in currency and in the smallest currency unit.
    • getApproved

      public Boolean getApproved()
      Whether this request was approved.
    • getAuthorizationCode

      public String getAuthorizationCode()
      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.
    • getCreated

      public Long getCreated()
      Time at which the object was created. Measured in seconds since the Unix epoch.
    • getCurrency

      public String getCurrency()
      Three-letter ISO currency code, in lowercase. Must be a supported currency.
    • getMerchantAmount

      public Long getMerchantAmount()
      The pending_request.merchant_amount at the time of the request, presented in the merchant_currency and in the smallest currency unit.
    • getMerchantCurrency

      public String getMerchantCurrency()
      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.
    • getNetworkRiskScore

      public Long getNetworkRiskScore()
      The card network's estimate of the likelihood that an authorization is fraudulent. Takes on values between 1 and 99.
    • getReason

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

      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, or webhook_timeout.

    • getReasonMessage

      public String getReasonMessage()
      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.
    • getRequestedAt

      public Long getRequestedAt()
      Time when the card network received an authorization request from the acquirer in UTC. Referred to by networks as transmission time.
    • setAmount

      public void setAmount(Long 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.
    • setAmountDetails

      public void setAmountDetails(Authorization.RequestHistory.AmountDetails amountDetails)
      Detailed breakdown of amount components. These amounts are denominated in currency and in the smallest currency unit.
    • setApproved

      public void setApproved(Boolean approved)
      Whether this request was approved.
    • setAuthorizationCode

      public void setAuthorizationCode(String authorizationCode)
      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.
    • setCreated

      public void setCreated(Long created)
      Time at which the object was created. Measured in seconds since the Unix epoch.
    • setCurrency

      public void setCurrency(String currency)
      Three-letter ISO currency code, in lowercase. Must be a supported currency.
    • setMerchantAmount

      public void setMerchantAmount(Long merchantAmount)
      The pending_request.merchant_amount at the time of the request, presented in the merchant_currency and in the smallest currency unit.
    • setMerchantCurrency

      public void setMerchantCurrency(String merchantCurrency)
      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.
    • setNetworkRiskScore

      public void setNetworkRiskScore(Long networkRiskScore)
      The card network's estimate of the likelihood that an authorization is fraudulent. Takes on values between 1 and 99.
    • setReason

      public void setReason(String reason)
      When an authorization is approved or declined by you or by Stripe, this field provides additional detail on the reason for the outcome.

      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, or webhook_timeout.

    • setReasonMessage

      public void setReasonMessage(String reasonMessage)
      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.
    • setRequestedAt

      public void setRequestedAt(Long requestedAt)
      Time when the card network received an authorization request from the acquirer in UTC. Referred to by networks as transmission time.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object