Class Transaction

    • Constructor Detail

      • Transaction

        public Transaction()
    • Method Detail

      • getAuthorization

        public java.lang.String getAuthorization()
        Get ID of expandable authorization object.
      • setAuthorization

        public void setAuthorization​(java.lang.String id)
      • getAuthorizationObject

        public Authorization getAuthorizationObject()
        Get expanded authorization.
      • setAuthorizationObject

        public void setAuthorizationObject​(Authorization expandableObject)
      • getBalanceTransaction

        public java.lang.String getBalanceTransaction()
        Get ID of expandable balanceTransaction object.
      • setBalanceTransaction

        public void setBalanceTransaction​(java.lang.String id)
      • getBalanceTransactionObject

        public BalanceTransaction getBalanceTransactionObject()
        Get expanded balanceTransaction.
      • setBalanceTransactionObject

        public void setBalanceTransactionObject​(BalanceTransaction expandableObject)
      • getCard

        public java.lang.String getCard()
        Get ID of expandable card object.
      • setCard

        public void setCard​(java.lang.String id)
      • getCardObject

        public Card getCardObject()
        Get expanded card.
      • setCardObject

        public void setCardObject​(Card expandableObject)
      • 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)
      • getDispute

        public java.lang.String getDispute()
        Get ID of expandable dispute object.
      • setDispute

        public void setDispute​(java.lang.String id)
      • getDisputeObject

        public Dispute getDisputeObject()
        Get expanded dispute.
      • setDisputeObject

        public void setDisputeObject​(Dispute expandableObject)
      • list

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

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

        public Transaction update​(java.util.Map<java.lang.String,​java.lang.Object> params)
                           throws StripeException
        Updates the specified Issuing Transaction object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
        Specified by:
        update in interface MetadataStore<Transaction>
        Throws:
        StripeException
      • getAmount

        public java.lang.Long getAmount()
        The transaction amount, which will be reflected in your balance. This amount is in your currency and in the smallest currency unit.
      • 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 amount that the merchant will receive, denominated in merchant_currency and in the smallest currency unit. It will be different from amount if the merchant is taking payment in a different currency.
      • getMerchantCurrency

        public java.lang.String getMerchantCurrency()
        The currency with which the merchant is taking payment.
      • getObject

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

        Equal to issuing.transaction.

      • getPurchaseDetails

        public Transaction.PurchaseDetails getPurchaseDetails()
        Additional purchase information that is optionally provided by the merchant.
      • getType

        public java.lang.String getType()
        The nature of the transaction.

        One of capture, or refund.

      • getWallet

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

        public void setAmount​(java.lang.Long amount)
        The transaction amount, which will be reflected in your balance. This amount is in your currency and in the smallest currency unit.
      • 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 amount that the merchant will receive, denominated in merchant_currency and in the smallest currency unit. It will be different from amount if the merchant is taking payment in a different currency.
      • setMerchantCurrency

        public void setMerchantCurrency​(java.lang.String merchantCurrency)
        The currency with which the merchant is taking payment.
      • 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.transaction.

      • setPurchaseDetails

        public void setPurchaseDetails​(Transaction.PurchaseDetails purchaseDetails)
        Additional purchase information that is optionally provided by the merchant.
      • setType

        public void setType​(java.lang.String type)
        The nature of the transaction.

        One of capture, or refund.

      • setWallet

        public void setWallet​(java.lang.String wallet)
        The digital wallet used for this transaction. 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<Transaction>