Class CustomerBalanceTransaction

    • Constructor Detail

      • CustomerBalanceTransaction

        public CustomerBalanceTransaction()
    • Method Detail

      • getCreditNote

        public java.lang.String getCreditNote()
        Get ID of expandable creditNote object.
      • setCreditNote

        public void setCreditNote​(java.lang.String id)
      • getCreditNoteObject

        public CreditNote getCreditNoteObject()
        Get expanded creditNote.
      • setCreditNoteObject

        public void setCreditNoteObject​(CreditNote expandableObject)
      • getCustomer

        public java.lang.String getCustomer()
        Get ID of expandable customer object.
      • setCustomer

        public void setCustomer​(java.lang.String id)
      • getCustomerObject

        public Customer getCustomerObject()
        Get expanded customer.
      • setCustomerObject

        public void setCustomerObject​(Customer expandableObject)
      • getInvoice

        public java.lang.String getInvoice()
        Get ID of expandable invoice object.
      • setInvoice

        public void setInvoice​(java.lang.String id)
      • getInvoiceObject

        public Invoice getInvoiceObject()
        Get expanded invoice.
      • setInvoiceObject

        public void setInvoiceObject​(Invoice expandableObject)
      • getAmount

        public java.lang.Long getAmount()
        The amount of the transaction. A negative value is a credit for the customer's balance, and a positive value is a debit to the customer's balance.
      • getCreated

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

        public java.lang.String getDescription()
        An arbitrary string attached to the object. Often useful for displaying to users.
      • getEndingBalance

        public java.lang.Long getEndingBalance()
        The customer's balance after the transaction was applied. A negative value decreases the amount due on the customer's next invoice. A positive value increases the amount due on the customer's next invoice.
      • 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.
      • getObject

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

        Equal to customer_balance_transaction.

      • getType

        public java.lang.String getType()
        Transaction type: adjustment, applied_to_invoice, credit_note, initial, invoice_too_large, invoice_too_small, unspent_receiver_credit, or unapplied_from_invoice. See the Customer Balance page to learn more about transaction types.

        One of adjustment, applied_to_invoice, credit_note, initial, invoice_too_large, invoice_too_small, migration, unapplied_from_invoice, or unspent_receiver_credit.

      • setAmount

        public void setAmount​(java.lang.Long amount)
        The amount of the transaction. A negative value is a credit for the customer's balance, and a positive value is a debit to the customer's balance.
      • setCreated

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

        public void setDescription​(java.lang.String description)
        An arbitrary string attached to the object. Often useful for displaying to users.
      • setEndingBalance

        public void setEndingBalance​(java.lang.Long endingBalance)
        The customer's balance after the transaction was applied. A negative value decreases the amount due on the customer's next invoice. A positive value increases the amount due on the customer's next invoice.
      • 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.
      • 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 customer_balance_transaction.

      • setType

        public void setType​(java.lang.String type)
        Transaction type: adjustment, applied_to_invoice, credit_note, initial, invoice_too_large, invoice_too_small, unspent_receiver_credit, or unapplied_from_invoice. See the Customer Balance page to learn more about transaction types.

        One of adjustment, applied_to_invoice, credit_note, initial, invoice_too_large, invoice_too_small, migration, unapplied_from_invoice, or unspent_receiver_credit.

      • 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