From f829e25b8537bcce5fadf9cebe63fdbf0da343f4 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 7 Aug 2023 17:18:22 +0000 Subject: [PATCH 1/2] Update generated code for v451 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/credit_note_line_item.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index a966855eb..b54aeebde 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v447 +v451 \ No newline at end of file diff --git a/lib/stripe/resources/credit_note_line_item.rb b/lib/stripe/resources/credit_note_line_item.rb index f86f8dc7b..be9208595 100644 --- a/lib/stripe/resources/credit_note_line_item.rb +++ b/lib/stripe/resources/credit_note_line_item.rb @@ -2,6 +2,7 @@ # frozen_string_literal: true module Stripe + # The credit note line item object class CreditNoteLineItem < StripeObject OBJECT_NAME = "credit_note_line_item" end From 462427885f4234e03f82db793827fe6d371aa3c5 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 10 Aug 2023 17:03:13 +0000 Subject: [PATCH 2/2] Update generated code for v457 --- OPENAPI_VERSION | 2 +- lib/stripe/object_types.rb | 3 +++ lib/stripe/resources.rb | 3 +++ lib/stripe/resources/tax/calculation_line_item.rb | 10 ++++++++++ lib/stripe/resources/tax/transaction_line_item.rb | 10 ++++++++++ .../resources/treasury/financial_account_features.rb | 12 ++++++++++++ 6 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 lib/stripe/resources/tax/calculation_line_item.rb create mode 100644 lib/stripe/resources/tax/transaction_line_item.rb create mode 100644 lib/stripe/resources/treasury/financial_account_features.rb diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b54aeebde..bb32051fd 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v451 \ No newline at end of file +v457 \ No newline at end of file diff --git a/lib/stripe/object_types.rb b/lib/stripe/object_types.rb index f244fdc07..dd41b01af 100644 --- a/lib/stripe/object_types.rb +++ b/lib/stripe/object_types.rb @@ -90,8 +90,10 @@ def self.object_names_to_classes SubscriptionItem::OBJECT_NAME => SubscriptionItem, SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule, Tax::Calculation::OBJECT_NAME => Tax::Calculation, + Tax::CalculationLineItem::OBJECT_NAME => Tax::CalculationLineItem, Tax::Settings::OBJECT_NAME => Tax::Settings, Tax::Transaction::OBJECT_NAME => Tax::Transaction, + Tax::TransactionLineItem::OBJECT_NAME => Tax::TransactionLineItem, TaxCode::OBJECT_NAME => TaxCode, TaxId::OBJECT_NAME => TaxId, TaxRate::OBJECT_NAME => TaxRate, @@ -106,6 +108,7 @@ def self.object_names_to_classes Treasury::CreditReversal::OBJECT_NAME => Treasury::CreditReversal, Treasury::DebitReversal::OBJECT_NAME => Treasury::DebitReversal, Treasury::FinancialAccount::OBJECT_NAME => Treasury::FinancialAccount, + Treasury::FinancialAccountFeatures::OBJECT_NAME => Treasury::FinancialAccountFeatures, Treasury::InboundTransfer::OBJECT_NAME => Treasury::InboundTransfer, Treasury::OutboundPayment::OBJECT_NAME => Treasury::OutboundPayment, Treasury::OutboundTransfer::OBJECT_NAME => Treasury::OutboundTransfer, diff --git a/lib/stripe/resources.rb b/lib/stripe/resources.rb index 58f3e4503..ced4d85eb 100644 --- a/lib/stripe/resources.rb +++ b/lib/stripe/resources.rb @@ -77,8 +77,10 @@ require "stripe/resources/subscription_item" require "stripe/resources/subscription_schedule" require "stripe/resources/tax/calculation" +require "stripe/resources/tax/calculation_line_item" require "stripe/resources/tax/settings" require "stripe/resources/tax/transaction" +require "stripe/resources/tax/transaction_line_item" require "stripe/resources/tax_code" require "stripe/resources/tax_id" require "stripe/resources/tax_rate" @@ -93,6 +95,7 @@ require "stripe/resources/treasury/credit_reversal" require "stripe/resources/treasury/debit_reversal" require "stripe/resources/treasury/financial_account" +require "stripe/resources/treasury/financial_account_features" require "stripe/resources/treasury/inbound_transfer" require "stripe/resources/treasury/outbound_payment" require "stripe/resources/treasury/outbound_transfer" diff --git a/lib/stripe/resources/tax/calculation_line_item.rb b/lib/stripe/resources/tax/calculation_line_item.rb new file mode 100644 index 000000000..9491e2d42 --- /dev/null +++ b/lib/stripe/resources/tax/calculation_line_item.rb @@ -0,0 +1,10 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module Tax + class CalculationLineItem < APIResource + OBJECT_NAME = "tax.calculation_line_item" + end + end +end diff --git a/lib/stripe/resources/tax/transaction_line_item.rb b/lib/stripe/resources/tax/transaction_line_item.rb new file mode 100644 index 000000000..691cca8c3 --- /dev/null +++ b/lib/stripe/resources/tax/transaction_line_item.rb @@ -0,0 +1,10 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module Tax + class TransactionLineItem < APIResource + OBJECT_NAME = "tax.transaction_line_item" + end + end +end diff --git a/lib/stripe/resources/treasury/financial_account_features.rb b/lib/stripe/resources/treasury/financial_account_features.rb new file mode 100644 index 000000000..c48282f1b --- /dev/null +++ b/lib/stripe/resources/treasury/financial_account_features.rb @@ -0,0 +1,12 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module Treasury + # Encodes whether a FinancialAccount has access to a particular Feature, with a `status` enum and associated `status_details`. + # Stripe or the platform can control Features via the requested field. + class FinancialAccountFeatures < APIResource + OBJECT_NAME = "treasury.financial_account_features" + end + end +end