Stripe::CreditNote
Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object
Issue a credit note to adjust an invoice's amount after the invoice is finalized. Related guide: Credit notes
Constants
Constructors
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance methods
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Type of this credit note, one of pre_payment or post_payment. A pre_payment credit note means it was issued when the invoice was open. A post_payment credit note means it was issued when the invoice was paid.
Custom attribute writer method checking allowed values (enum). @param [Object] _type Object to be assigned
The integer amount in cents (or local equivalent) representing the total amount of the credit note, including tax.
Custom attribute writer method checking allowed values (enum). @param [Object] amount Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] amount_shipping Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] created Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] currency Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] customer Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] customer_balance_transaction Object to be assigned
The integer amount in cents (or local equivalent) representing the total amount of discount that was credited.
Custom attribute writer method checking allowed values (enum). @param [Object] discount_amount Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] discount_amounts Object to be assigned
The date when this credit note is in effect. Same as created unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF.
Custom attribute writer method checking allowed values (enum). @param [Object] effective_at Object to be assigned
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] id Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] invoice Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] lines Object to be assigned
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Has the value true if the object exists in live mode or the value false if the object exists in test mode.
Custom attribute writer method checking allowed values (enum). @param [Object] livemode Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] memo Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] metadata Object to be assigned
A unique number that identifies this particular credit note and appears on the PDF of the credit note and its associated invoice.
Custom attribute writer method checking allowed values (enum). @param [Object] number Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] object Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] out_of_band_amount Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] pdf Object to be assigned
Reason for issuing this credit note, one of duplicate, fraudulent, order_change, or product_unsatisfactory
Custom attribute writer method checking allowed values (enum). @param [Object] reason Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] refund Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] shipping_cost Object to be assigned
Status of this credit note, one of issued or void. Learn more about voiding credit notes.
Custom attribute writer method checking allowed values (enum). @param [Object] status Object to be assigned
The integer amount in cents (or local equivalent) representing the amount of the credit note, excluding exclusive tax and invoice level discounts.
Custom attribute writer method checking allowed values (enum). @param [Object] subtotal Object to be assigned
The integer amount in cents (or local equivalent) representing the amount of the credit note, excluding all tax and invoice level discounts.
Custom attribute writer method checking allowed values (enum). @param [Object] subtotal_excluding_tax Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] tax_amounts Object to be assigned
The integer amount in cents (or local equivalent) representing the total amount of the credit note, including tax and all discount.
Custom attribute writer method checking allowed values (enum). @param [Object] total Object to be assigned
The integer amount in cents (or local equivalent) representing the total amount of the credit note, excluding tax, but including discounts.
Custom attribute writer method checking allowed values (enum). @param [Object] total_excluding_tax Object to be assigned
Check to see if the all the properties in the model are valid @return true if the model is valid