class Stripe::CustomerBalanceTransactionCreditNote
- Stripe::CustomerBalanceTransactionCreditNote
- Reference
- Object
Overview
The ID of the credit note (if any) related to the transaction.
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- OpenApi::Json
- OpenApi::Validatable
Defined in:
stripe/models/customer_balance_transaction_credit_note.crConstant Summary
-
ERROR_MESSAGE_FOR__TYPE =
"invalid value for \"_type\", must be one of [post_payment, pre_payment]."
-
ERROR_MESSAGE_FOR_OBJECT =
"invalid value for \"object\", must be one of [credit_note]."
-
ERROR_MESSAGE_FOR_REASON =
"invalid value for \"reason\", must be one of [duplicate, fraudulent, order_change, product_unsatisfactory]."
-
ERROR_MESSAGE_FOR_STATUS =
"invalid value for \"status\", must be one of [issued, void]."
-
MAX_LENGTH_FOR_ID =
5000
-
MAX_LENGTH_FOR_MEMO =
5000
-
MAX_LENGTH_FOR_NUMBER =
5000
-
MAX_LENGTH_FOR_PDF =
5000
-
VALID_VALUES_FOR__TYPE =
String.static_array("post_payment", "pre_payment")
-
VALID_VALUES_FOR_OBJECT =
String.static_array("credit_note")
-
VALID_VALUES_FOR_REASON =
String.static_array("duplicate", "fraudulent", "order_change", "product_unsatisfactory")
-
VALID_VALUES_FOR_STATUS =
String.static_array("issued", "void")
Constructors
- .new(pull : JSON::PullParser)
-
.new(*, amount : Int64 | Nil = nil, amount_shipping : Int64 | Nil = nil, created : Int64 | Nil = nil, currency : String | Nil = nil, customer : Stripe::CreditNoteCustomer | Nil = nil, customer_balance_transaction : Stripe::CreditNoteCustomerBalanceTransaction | Nil = nil, discount_amount : Int64 | Nil = nil, discount_amounts : Array(Stripe::DiscountsResourceDiscountAmount) | Nil = nil, effective_at : Int64 | Nil = nil, id : String | Nil = nil, invoice : Stripe::CreditNoteInvoice | Nil = nil, lines : Stripe::CreditNoteLinesList | Nil = nil, livemode : Bool | Nil = nil, memo : String | Nil = nil, metadata : Hash(String, String) | Nil = nil, number : String | Nil = nil, object : String | Nil = nil, out_of_band_amount : Int64 | Nil = nil, pdf : String | Nil = nil, reason : String | Nil = nil, refund : Stripe::CreditNoteRefund | Nil = nil, shipping_cost : Stripe::InvoicesResourceShippingCost | Nil = nil, status : String | Nil = nil, subtotal : Int64 | Nil = nil, subtotal_excluding_tax : Int64 | Nil = nil, tax_amounts : Array(Stripe::CreditNoteTaxAmount) | Nil = nil, total : Int64 | Nil = nil, total_excluding_tax : Int64 | Nil = nil, _type : String | Nil = nil, voided_at : Int64 | Nil = nil)
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Class Method Summary
-
.openapi_any_of
End of Required Properties List of class defined in anyOf (OpenAPI v3)
Instance Method Summary
-
#==(other : self)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
- #_type : String | Nil
- #_type=(_type : String | Nil)
- #amount : Int64 | Nil
- #amount=(amount : Int64 | Nil)
- #amount_shipping : Int64 | Nil
- #amount_shipping=(amount_shipping : Int64 | Nil)
- #created : Int64 | Nil
- #created=(created : Int64 | Nil)
- #currency : String | Nil
- #currency=(currency : String | Nil)
- #customer : Stripe::CreditNoteCustomer | Nil
- #customer=(customer : Stripe::CreditNoteCustomer | Nil)
- #customer_balance_transaction : Stripe::CreditNoteCustomerBalanceTransaction | Nil
- #customer_balance_transaction=(customer_balance_transaction : Stripe::CreditNoteCustomerBalanceTransaction | Nil)
- #discount_amount : Int64 | Nil
- #discount_amount=(discount_amount : Int64 | Nil)
- #discount_amounts : Array(Stripe::DiscountsResourceDiscountAmount) | Nil
- #discount_amounts=(discount_amounts : Array(Stripe::DiscountsResourceDiscountAmount) | Nil)
- #effective_at : Int64 | Nil
- #effective_at=(effective_at : Int64 | Nil)
-
#hash(hasher)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
- #id : String | Nil
- #id=(id : String | Nil)
- #invoice : Stripe::CreditNoteInvoice | Nil
- #invoice=(invoice : Stripe::CreditNoteInvoice | Nil)
- #lines : Stripe::CreditNoteLinesList | Nil
- #lines=(lines : Stripe::CreditNoteLinesList | Nil)
-
#list_invalid_properties : Array(String)
Show invalid properties with the reasons.
- #livemode : Bool | Nil
- #livemode=(livemode : Bool | Nil)
- #memo : String | Nil
- #memo=(memo : String | Nil)
- #metadata : Hash(String, String) | Nil
- #metadata=(metadata : Hash(String, String) | Nil)
- #number : String | Nil
- #number=(number : String | Nil)
- #object : String | Nil
- #object=(object : String | Nil)
- #out_of_band_amount : Int64 | Nil
- #out_of_band_amount=(out_of_band_amount : Int64 | Nil)
- #pdf : String | Nil
- #pdf=(pdf : String | Nil)
- #reason : String | Nil
- #reason=(reason : String | Nil)
- #refund : Stripe::CreditNoteRefund | Nil
- #refund=(refund : Stripe::CreditNoteRefund | Nil)
- #shipping_cost : Stripe::InvoicesResourceShippingCost | Nil
- #shipping_cost=(shipping_cost : Stripe::InvoicesResourceShippingCost | Nil)
- #status : String | Nil
- #status=(status : String | Nil)
- #subtotal : Int64 | Nil
- #subtotal=(subtotal : Int64 | Nil)
- #subtotal_excluding_tax : Int64 | Nil
- #subtotal_excluding_tax=(subtotal_excluding_tax : Int64 | Nil)
- #tax_amounts : Array(Stripe::CreditNoteTaxAmount) | Nil
- #tax_amounts=(tax_amounts : Array(Stripe::CreditNoteTaxAmount) | Nil)
- #total : Int64 | Nil
- #total=(total : Int64 | Nil)
- #total_excluding_tax : Int64 | Nil
- #total_excluding_tax=(total_excluding_tax : Int64 | Nil)
-
#valid? : Bool
Check to see if the all the properties in the model are valid @return true if the model is valid
- #voided_at : Int64 | Nil
- #voided_at=(voided_at : Int64 | Nil)
Instance methods inherited from module OpenApi::Json
after_initialize
after_initialize,
eql?(o : self)
eql?,
to_hash : Hash(String, JSON::Any)
to_hash,
to_json_any : JSON::Any
to_json_any
Class methods inherited from module OpenApi::Json
build_from_hash(hash : Hash)
build_from_hash,
build_from_json_any(json_any : JSON::Any)
build_from_json_any
Instance methods inherited from module OpenApi::Validatable
list_invalid_properties : Array(String)
list_invalid_properties,
list_invalid_properties_for(key : String) : Array(String)
list_invalid_properties_for,
valid? : Bool
valid?,
validate : Nil
validate
Constructor Detail
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Class Method Detail
Instance Method Detail
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Check to see if the all the properties in the model are valid @return true if the model is valid