lib/recurly/requests/line_item_create.rb in recurly-3.0.0.beta.3 vs lib/recurly/requests/line_item_create.rb in recurly-3.0.0.beta.4

- old
+ new

@@ -1,12 +1,16 @@ +# This file is automatically created by Recurly's OpenAPI generation process +# and thus any edits you make by hand will be lost. If you wish to make a +# change to this file, please create a Github issue explaining the changes you +# need and we will usher them to the appropriate places. module Recurly module Requests class LineItemCreate < Request # @!attribute credit_reason_code # @return [String] The reason the credit was given when line item is `type=credit`. When the Credit Invoices feature is enabled, the value can be set and will default to `general`. When the Credit Invoices feature is not enabled, the value will always be `null`. - define_attribute :credit_reason_code, String, {:enum => ["general", "service", "promotional"]} + define_attribute :credit_reason_code, String, { :enum => ["general", "service", "promotional"] } # @!attribute currency # @return [String] 3-letter ISO 4217 currency code. define_attribute :currency, String @@ -34,10 +38,10 @@ # @return [Boolean] `true` exempts tax on charges, `false` applies tax on charges. If not defined, then defaults to the Plan and Site settings. This attribute does not work for credits (negative line items). Credits are always applied post-tax. Pre-tax discounts should use the Coupons feature. define_attribute :tax_exempt, :Boolean # @!attribute type # @return [String] Line item type. - define_attribute :type, String, {:enum => ["charge", "credit"]} + define_attribute :type, String, { :enum => ["charge", "credit"] } # @!attribute unit_amount # @return [Float] A positive or negative amount with `type=charge` will result in a positive `unit_amount`. A positive or negative amount with `type=credit` will result in a negative `unit_amount`. define_attribute :unit_amount, Float end