Class Authorization

    • Constructor Detail

      • Authorization

        public Authorization()
    • Method Detail

      • getCardholder

        public java.lang.String getCardholder()
        Get ID of expandable cardholder object.
      • setCardholder

        public void setCardholder​(java.lang.String id)
      • getCardholderObject

        public Cardholder getCardholderObject()
        Get expanded cardholder.
      • setCardholderObject

        public void setCardholderObject​(Cardholder expandableObject)
      • list

        public static AuthorizationCollection list​(java.util.Map<java.lang.String,​java.lang.Object> params)
                                            throws StripeException
        Returns a list of Issuing Authorization objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
        Throws:
        StripeException
      • list

        public static AuthorizationCollection list​(java.util.Map<java.lang.String,​java.lang.Object> params,
                                                   RequestOptions options)
                                            throws StripeException
        Returns a list of Issuing Authorization objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
        Throws:
        StripeException
      • getAmount

        public java.lang.Long getAmount()
        The total amount that was authorized or rejected. This amount is in the card's currency and in the smallest currency unit.
      • getApproved

        public java.lang.Boolean getApproved()
        Whether the authorization has been approved.
      • getAuthorizationMethod

        public java.lang.String getAuthorizationMethod()
        How the card details were provided.

        One of chip, contactless, keyed_in, online, or swipe.

      • getBalanceTransactions

        public java.util.List<BalanceTransaction> getBalanceTransactions()
        List of balance transactions associated with this authorization.
      • getCreated

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

        public java.lang.Boolean getLivemode()
        Has the value true if the object exists in live mode or the value false if the object exists in test mode.
      • getMerchantAmount

        public java.lang.Long getMerchantAmount()
        The total amount that was authorized or rejected. This amount is in the merchant_currency and in the smallest currency unit.
      • getMerchantCurrency

        public java.lang.String getMerchantCurrency()
        The currency that was presented to the cardholder for the authorization. Three-letter ISO currency code, in lowercase. Must be a supported currency.
      • getObject

        public java.lang.String getObject()
        String representing the object's type. Objects of the same type share the same value.

        Equal to issuing.authorization.

      • getPendingRequest

        public Authorization.PendingRequest getPendingRequest()
        The pending authorization request. This field will only be non-null during an issuing_authorization.request webhook.
      • getRequestHistory

        public java.util.List<Authorization.RequestHistory> getRequestHistory()
        History of every time pending_request was approved/denied, either by you directly or by Stripe (e.g. based on your spending_controls). If the merchant changes the authorization by performing an incremental authorization, you can look at this field to see the previous requests for the authorization.
      • getStatus

        public java.lang.String getStatus()
        The current status of the authorization in its lifecycle.

        One of closed, pending, or reversed.

      • getTransactions

        public java.util.List<Transaction> getTransactions()
        List of transactions associated with this authorization.
      • getWallet

        public java.lang.String getWallet()
        The digital wallet used for this authorization. One of apple_pay, google_pay, or samsung_pay.
      • setAmount

        public void setAmount​(java.lang.Long amount)
        The total amount that was authorized or rejected. This amount is in the card's currency and in the smallest currency unit.
      • setApproved

        public void setApproved​(java.lang.Boolean approved)
        Whether the authorization has been approved.
      • setAuthorizationMethod

        public void setAuthorizationMethod​(java.lang.String authorizationMethod)
        How the card details were provided.

        One of chip, contactless, keyed_in, online, or swipe.

      • setBalanceTransactions

        public void setBalanceTransactions​(java.util.List<BalanceTransaction> balanceTransactions)
        List of balance transactions associated with this authorization.
      • setCreated

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

        public void setId​(java.lang.String id)
        Unique identifier for the object.
      • setLivemode

        public void setLivemode​(java.lang.Boolean livemode)
        Has the value true if the object exists in live mode or the value false if the object exists in test mode.
      • setMerchantAmount

        public void setMerchantAmount​(java.lang.Long merchantAmount)
        The total amount that was authorized or rejected. This amount is in the merchant_currency and in the smallest currency unit.
      • setMerchantCurrency

        public void setMerchantCurrency​(java.lang.String merchantCurrency)
        The currency that was presented to the cardholder for the authorization. Three-letter ISO currency code, in lowercase. Must be a supported currency.
      • setMetadata

        public void setMetadata​(java.util.Map<java.lang.String,​java.lang.String> metadata)
        Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
      • setObject

        public void setObject​(java.lang.String object)
        String representing the object's type. Objects of the same type share the same value.

        Equal to issuing.authorization.

      • setPendingRequest

        public void setPendingRequest​(Authorization.PendingRequest pendingRequest)
        The pending authorization request. This field will only be non-null during an issuing_authorization.request webhook.
      • setRequestHistory

        public void setRequestHistory​(java.util.List<Authorization.RequestHistory> requestHistory)
        History of every time pending_request was approved/denied, either by you directly or by Stripe (e.g. based on your spending_controls). If the merchant changes the authorization by performing an incremental authorization, you can look at this field to see the previous requests for the authorization.
      • setStatus

        public void setStatus​(java.lang.String status)
        The current status of the authorization in its lifecycle.

        One of closed, pending, or reversed.

      • setTransactions

        public void setTransactions​(java.util.List<Transaction> transactions)
        List of transactions associated with this authorization.
      • setWallet

        public void setWallet​(java.lang.String wallet)
        The digital wallet used for this authorization. One of apple_pay, google_pay, or samsung_pay.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getId

        public java.lang.String getId()
        Unique identifier for the object.
        Specified by:
        getId in interface HasId
      • getMetadata

        public java.util.Map<java.lang.String,​java.lang.String> getMetadata()
        Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
        Specified by:
        getMetadata in interface MetadataStore<Authorization>