lib/recurly/requests/invoice_refund.rb in recurly-3.0.0.beta.4 vs lib/recurly/requests/invoice_refund.rb in recurly-3.0.0.beta.5

- old
+ new

@@ -22,13 +22,13 @@ # @return [Array[LineItemRefund]] The line items to be refunded. This is required when `type=line_items`. define_attribute :line_items, Array, { :item_type => :LineItemRefund } # @!attribute refund_method # @return [String] Indicates how the invoice should be refunded when both a credit and transaction are present on the invoice: - `transaction_first` – Refunds the transaction first, then any amount is issued as credit back to the account. Default value when Credit Invoices feature is enabled. - `credit_first` – Issues credit back to the account first, then refunds any remaining amount back to the transaction. Default value when Credit Invoices feature is not enabled. - `all_credit` – Issues credit to the account for the entire amount of the refund. Only available when the Credit Invoices feature is enabled. - `all_transaction` – Refunds the entire amount back to transactions, using transactions from previous invoices if necessary. Only available when the Credit Invoices feature is enabled. - define_attribute :refund_method, String, { :enum => ["transaction_first", "credit_first", "all_credit", "all_transaction"] } + define_attribute :refund_method, String # @!attribute type # @return [String] The type of refund. Amount and line items cannot both be specified in the request. - define_attribute :type, String, { :enum => ["amount", "line_items"] } + define_attribute :type, String end end end