Stripe::InvoiceItemPreviewParams
Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object
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
Custom attribute writer method checking allowed values (enum). @param [Object] amount Object to be assigned
Three-letter ISO currency code, in lowercase. Must be a supported currency. Only applicable to new invoice items.
Custom attribute writer method checking allowed values (enum). @param [Object] currency Object to be assigned
An arbitrary string which you can attach to the invoice item. The description is displayed in the invoice for easy tracking.
Custom attribute writer method checking allowed values (enum). @param [Object] description Object to be assigned
Explicitly controls whether discounts apply to this invoice item. Defaults to true, except for negative invoice items.
Custom attribute writer method checking allowed values (enum). @param [Object] discountable Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] discounts 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
The ID of the invoice item to update in preview. If not specified, a new invoice item will be added to the preview of the upcoming invoice.
Custom attribute writer method checking allowed values (enum). @param [Object] invoiceitem Object to be assigned
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Custom attribute writer method checking allowed values (enum). @param [Object] metadata Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] period Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] price Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] price_data Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] quantity Object to be assigned
Only required if a default tax behavior was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of inclusive, exclusive, or unspecified. Once specified as either inclusive or exclusive, it cannot be changed.
Custom attribute writer method checking allowed values (enum). @param [Object] tax_behavior Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] tax_code Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] tax_rates Object to be assigned
The integer unit amount in cents (or local equivalent) of the charge to be applied to the upcoming invoice. This unit_amount will be multiplied by the quantity to get the full amount. If you want to apply a credit to the customer's account, pass a negative unit_amount.
Custom attribute writer method checking allowed values (enum). @param [Object] unit_amount Object to be assigned
Same as unit_amount, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of unit_amount and unit_amount_decimal can be set.
Custom attribute writer method checking allowed values (enum). @param [Object] unit_amount_decimal Object to be assigned
Check to see if the all the properties in the model are valid @return true if the model is valid