diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 5e0920bd5..5ae95686a 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.87.0" + ".": "1.88.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 776d32426..afc57da05 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 214 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-beb9032c2ea0fb6fb46727701c252d27d8f2f77688472dc922fb10afb142dd1c.yml -openapi_spec_hash: dc5aa90744d4e0958a9a2d652adda0ba +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-4c440e14682c4e4c886da6d05b2f5ff539a3aadc6906bb4069a5df45e0d3cae9.yml +openapi_spec_hash: e400be1da67cec4ce706eda1868dd86b config_hash: 8dadd60eab7ab858cf06c6a8633ed9f3 diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b1e0d1a4..0b2cc5221 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.88.0 (2025-09-24) + +Full Changelog: [v1.87.0...v1.88.0](https://github.com/Increase/increase-ruby/compare/v1.87.0...v1.88.0) + +### Features + +* **api:** api update ([3f9bdb7](https://github.com/Increase/increase-ruby/commit/3f9bdb780f32cc60a80b2db10cf3eea3f7872330)) + ## 1.87.0 (2025-09-23) Full Changelog: [v1.86.0...v1.87.0](https://github.com/Increase/increase-ruby/compare/v1.86.0...v1.87.0) diff --git a/Gemfile.lock b/Gemfile.lock index 0f0cd1bfb..b41cd97ae 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.87.0) + increase (1.88.0) connection_pool GEM diff --git a/README.md b/README.md index 4f0eeb385..552d0b82d 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "increase", "~> 1.87.0" +gem "increase", "~> 1.88.0" ``` diff --git a/lib/increase/models/account_transfer.rb b/lib/increase/models/account_transfer.rb index 6cf181db0..2f4d14102 100644 --- a/lib/increase/models/account_transfer.rb +++ b/lib/increase/models/account_transfer.rb @@ -5,20 +5,20 @@ module Models # @see Increase::Resources::AccountTransfers#create class AccountTransfer < Increase::Internal::Type::BaseModel # @!attribute id - # The account transfer's identifier. + # The Account Transfer's identifier. # # @return [String] required :id, String # @!attribute account_id - # The Account to which the transfer belongs. + # The Account from which the transfer originated. # # @return [String] required :account_id, String # @!attribute amount - # The transfer amount in the minor unit of the destination account currency. For - # dollars, for example, this is cents. + # The transfer amount in cents. This will always be positive and indicates the + # amount of money leaving the originating account. # # @return [Integer] required :amount, Integer @@ -51,26 +51,28 @@ class AccountTransfer < Increase::Internal::Type::BaseModel required :created_by, -> { Increase::AccountTransfer::CreatedBy }, nil?: true # @!attribute currency - # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination - # account currency. + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's + # currency. # # @return [Symbol, Increase::Models::AccountTransfer::Currency] required :currency, enum: -> { Increase::AccountTransfer::Currency } # @!attribute description - # The description that will show on the transactions. + # An internal-facing description for the transfer for display in the API and + # dashboard. This will also show in the description of the created Transactions. # # @return [String] required :description, String # @!attribute destination_account_id - # The destination account's identifier. + # The destination Account's identifier. # # @return [String] required :destination_account_id, String # @!attribute destination_transaction_id - # The ID for the transaction receiving the transfer. + # The identifier of the Transaction on the destination Account representing the + # received funds. # # @return [String, nil] required :destination_transaction_id, String, nil?: true @@ -83,12 +85,6 @@ class AccountTransfer < Increase::Internal::Type::BaseModel # @return [String, nil] required :idempotency_key, String, nil?: true - # @!attribute network - # The transfer's network. - # - # @return [Symbol, Increase::Models::AccountTransfer::Network] - required :network, enum: -> { Increase::AccountTransfer::Network } - # @!attribute pending_transaction_id # The ID for the pending transaction representing the transfer. A pending # transaction is created when the transfer @@ -105,7 +101,8 @@ class AccountTransfer < Increase::Internal::Type::BaseModel required :status, enum: -> { Increase::AccountTransfer::Status } # @!attribute transaction_id - # The ID for the transaction funding the transfer. + # The identifier of the Transaction on the originating account representing the + # transferred funds. # # @return [String, nil] required :transaction_id, String, nil?: true @@ -117,17 +114,22 @@ class AccountTransfer < Increase::Internal::Type::BaseModel # @return [Symbol, Increase::Models::AccountTransfer::Type] required :type, enum: -> { Increase::AccountTransfer::Type } - # @!method initialize(id:, account_id:, amount:, approval:, cancellation:, created_at:, created_by:, currency:, description:, destination_account_id:, destination_transaction_id:, idempotency_key:, network:, pending_transaction_id:, status:, transaction_id:, type:) + # @!method initialize(id:, account_id:, amount:, approval:, cancellation:, created_at:, created_by:, currency:, description:, destination_account_id:, destination_transaction_id:, idempotency_key:, pending_transaction_id:, status:, transaction_id:, type:) # Some parameter documentations has been truncated, see # {Increase::Models::AccountTransfer} for more details. # - # Account transfers move funds between your own accounts at Increase. + # Account transfers move funds between your own accounts at Increase (accounting + # systems often refer to these as Book Transfers). Account Transfers are free and + # synchronous. Upon creation they create two Transactions, one negative on the + # originating account and one positive on the destination account (unless the + # transfer requires approval, in which case the Transactions will be created when + # the transfer is approved). # - # @param id [String] The account transfer's identifier. + # @param id [String] The Account Transfer's identifier. # - # @param account_id [String] The Account to which the transfer belongs. + # @param account_id [String] The Account from which the transfer originated. # - # @param amount [Integer] The transfer amount in the minor unit of the destination account currency. For d + # @param amount [Integer] The transfer amount in cents. This will always be positive and indicates the amo # # @param approval [Increase::Models::AccountTransfer::Approval, nil] If your account requires approvals for transfers and the transfer was approved, # @@ -137,23 +139,21 @@ class AccountTransfer < Increase::Internal::Type::BaseModel # # @param created_by [Increase::Models::AccountTransfer::CreatedBy, nil] What object created the transfer, either via the API or the dashboard. # - # @param currency [Symbol, Increase::Models::AccountTransfer::Currency] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination + # @param currency [Symbol, Increase::Models::AccountTransfer::Currency] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's c # - # @param description [String] The description that will show on the transactions. + # @param description [String] An internal-facing description for the transfer for display in the API and dashb # - # @param destination_account_id [String] The destination account's identifier. + # @param destination_account_id [String] The destination Account's identifier. # - # @param destination_transaction_id [String, nil] The ID for the transaction receiving the transfer. + # @param destination_transaction_id [String, nil] The identifier of the Transaction on the destination Account representing the re # # @param idempotency_key [String, nil] The idempotency key you chose for this object. This value is unique across Incre # - # @param network [Symbol, Increase::Models::AccountTransfer::Network] The transfer's network. - # # @param pending_transaction_id [String, nil] The ID for the pending transaction representing the transfer. A pending transact # # @param status [Symbol, Increase::Models::AccountTransfer::Status] The lifecycle status of the transfer. # - # @param transaction_id [String, nil] The ID for the transaction funding the transfer. + # @param transaction_id [String, nil] The identifier of the Transaction on the originating account representing the tr # # @param type [Symbol, Increase::Models::AccountTransfer::Type] A constant representing the object's type. For this resource it will always be ` @@ -312,8 +312,8 @@ class User < Increase::Internal::Type::BaseModel end end - # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination - # account currency. + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's + # currency. # # @see Increase::Models::AccountTransfer#currency module Currency @@ -341,28 +341,16 @@ module Currency # @return [Array] end - # The transfer's network. - # - # @see Increase::Models::AccountTransfer#network - module Network - extend Increase::Internal::Type::Enum - - ACCOUNT = :account - - # @!method self.values - # @return [Array] - end - # The lifecycle status of the transfer. # # @see Increase::Models::AccountTransfer#status module Status extend Increase::Internal::Type::Enum - # The transfer is pending approval. + # The transfer is pending approval from your team. PENDING_APPROVAL = :pending_approval - # The transfer has been canceled. + # The transfer was pending approval from your team and has been canceled. CANCELED = :canceled # The transfer has been completed. diff --git a/lib/increase/models/account_transfer_create_params.rb b/lib/increase/models/account_transfer_create_params.rb index 53836d25f..7c51eb81c 100644 --- a/lib/increase/models/account_transfer_create_params.rb +++ b/lib/increase/models/account_transfer_create_params.rb @@ -8,7 +8,7 @@ class AccountTransferCreateParams < Increase::Internal::Type::BaseModel include Increase::Internal::Type::RequestParameters # @!attribute account_id - # The identifier for the account that will send the transfer. + # The identifier for the originating Account that will send the transfer. # # @return [String] required :account_id, String @@ -21,19 +21,22 @@ class AccountTransferCreateParams < Increase::Internal::Type::BaseModel required :amount, Integer # @!attribute description - # The description you choose to give the transfer. + # An internal-facing description for the transfer for display in the API and + # dashboard. This will also show in the description of the created Transactions. # # @return [String] required :description, String # @!attribute destination_account_id - # The identifier for the account that will receive the transfer. + # The identifier for the destination Account that will receive the transfer. # # @return [String] required :destination_account_id, String # @!attribute require_approval - # Whether the transfer requires explicit approval via the dashboard or API. + # Whether the transfer should require explicit approval via the dashboard or API. + # For more information, see + # [Transfer Approvals](/documentation/transfer-approvals). # # @return [Boolean, nil] optional :require_approval, Increase::Internal::Type::Boolean @@ -42,15 +45,15 @@ class AccountTransferCreateParams < Increase::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Increase::Models::AccountTransferCreateParams} for more details. # - # @param account_id [String] The identifier for the account that will send the transfer. + # @param account_id [String] The identifier for the originating Account that will send the transfer. # # @param amount [Integer] The transfer amount in the minor unit of the account currency. For dollars, for # - # @param description [String] The description you choose to give the transfer. + # @param description [String] An internal-facing description for the transfer for display in the API and dashb # - # @param destination_account_id [String] The identifier for the account that will receive the transfer. + # @param destination_account_id [String] The identifier for the destination Account that will receive the transfer. # - # @param require_approval [Boolean] Whether the transfer requires explicit approval via the dashboard or API. + # @param require_approval [Boolean] Whether the transfer should require explicit approval via the dashboard or API. # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/increase/resources/account_transfers.rb b/lib/increase/resources/account_transfers.rb index 2f32d7838..f954109af 100644 --- a/lib/increase/resources/account_transfers.rb +++ b/lib/increase/resources/account_transfers.rb @@ -10,15 +10,15 @@ class AccountTransfers # # @overload create(account_id:, amount:, description:, destination_account_id:, require_approval: nil, request_options: {}) # - # @param account_id [String] The identifier for the account that will send the transfer. + # @param account_id [String] The identifier for the originating Account that will send the transfer. # # @param amount [Integer] The transfer amount in the minor unit of the account currency. For dollars, for # - # @param description [String] The description you choose to give the transfer. + # @param description [String] An internal-facing description for the transfer for display in the API and dashb # - # @param destination_account_id [String] The identifier for the account that will receive the transfer. + # @param destination_account_id [String] The identifier for the destination Account that will receive the transfer. # - # @param require_approval [Boolean] Whether the transfer requires explicit approval via the dashboard or API. + # @param require_approval [Boolean] Whether the transfer should require explicit approval via the dashboard or API. # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # @@ -90,7 +90,7 @@ def list(params = {}) ) end - # Approve an Account Transfer + # Approves an Account Transfer in status `pending_approval`. # # @overload approve(account_transfer_id, request_options: {}) # @@ -110,7 +110,7 @@ def approve(account_transfer_id, params = {}) ) end - # Cancel an Account Transfer + # Cancels an Account Transfer in status `pending_approval`. # # @overload cancel(account_transfer_id, request_options: {}) # diff --git a/lib/increase/version.rb b/lib/increase/version.rb index b41e0bb39..73fe77d18 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.87.0" + VERSION = "1.88.0" end diff --git a/rbi/increase/models/account_transfer.rbi b/rbi/increase/models/account_transfer.rbi index 0ee9de461..efc771908 100644 --- a/rbi/increase/models/account_transfer.rbi +++ b/rbi/increase/models/account_transfer.rbi @@ -8,16 +8,16 @@ module Increase T.any(Increase::AccountTransfer, Increase::Internal::AnyHash) end - # The account transfer's identifier. + # The Account Transfer's identifier. sig { returns(String) } attr_accessor :id - # The Account to which the transfer belongs. + # The Account from which the transfer originated. sig { returns(String) } attr_accessor :account_id - # The transfer amount in the minor unit of the destination account currency. For - # dollars, for example, this is cents. + # The transfer amount in cents. This will always be positive and indicates the + # amount of money leaving the originating account. sig { returns(Integer) } attr_accessor :amount @@ -62,20 +62,22 @@ module Increase end attr_writer :created_by - # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination - # account currency. + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's + # currency. sig { returns(Increase::AccountTransfer::Currency::TaggedSymbol) } attr_accessor :currency - # The description that will show on the transactions. + # An internal-facing description for the transfer for display in the API and + # dashboard. This will also show in the description of the created Transactions. sig { returns(String) } attr_accessor :description - # The destination account's identifier. + # The destination Account's identifier. sig { returns(String) } attr_accessor :destination_account_id - # The ID for the transaction receiving the transfer. + # The identifier of the Transaction on the destination Account representing the + # received funds. sig { returns(T.nilable(String)) } attr_accessor :destination_transaction_id @@ -85,10 +87,6 @@ module Increase sig { returns(T.nilable(String)) } attr_accessor :idempotency_key - # The transfer's network. - sig { returns(Increase::AccountTransfer::Network::TaggedSymbol) } - attr_accessor :network - # The ID for the pending transaction representing the transfer. A pending # transaction is created when the transfer # [requires approval](https://increase.com/documentation/transfer-approvals#transfer-approvals) @@ -100,7 +98,8 @@ module Increase sig { returns(Increase::AccountTransfer::Status::TaggedSymbol) } attr_accessor :status - # The ID for the transaction funding the transfer. + # The identifier of the Transaction on the originating account representing the + # transferred funds. sig { returns(T.nilable(String)) } attr_accessor :transaction_id @@ -109,7 +108,12 @@ module Increase sig { returns(Increase::AccountTransfer::Type::TaggedSymbol) } attr_accessor :type - # Account transfers move funds between your own accounts at Increase. + # Account transfers move funds between your own accounts at Increase (accounting + # systems often refer to these as Book Transfers). Account Transfers are free and + # synchronous. Upon creation they create two Transactions, one negative on the + # originating account and one positive on the destination account (unless the + # transfer requires approval, in which case the Transactions will be created when + # the transfer is approved). sig do params( id: String, @@ -125,7 +129,6 @@ module Increase destination_account_id: String, destination_transaction_id: T.nilable(String), idempotency_key: T.nilable(String), - network: Increase::AccountTransfer::Network::OrSymbol, pending_transaction_id: T.nilable(String), status: Increase::AccountTransfer::Status::OrSymbol, transaction_id: T.nilable(String), @@ -133,12 +136,12 @@ module Increase ).returns(T.attached_class) end def self.new( - # The account transfer's identifier. + # The Account Transfer's identifier. id:, - # The Account to which the transfer belongs. + # The Account from which the transfer originated. account_id:, - # The transfer amount in the minor unit of the destination account currency. For - # dollars, for example, this is cents. + # The transfer amount in cents. This will always be positive and indicates the + # amount of money leaving the originating account. amount:, # If your account requires approvals for transfers and the transfer was approved, # this will contain details of the approval. @@ -151,21 +154,21 @@ module Increase created_at:, # What object created the transfer, either via the API or the dashboard. created_by:, - # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination - # account currency. + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's + # currency. currency:, - # The description that will show on the transactions. + # An internal-facing description for the transfer for display in the API and + # dashboard. This will also show in the description of the created Transactions. description:, - # The destination account's identifier. + # The destination Account's identifier. destination_account_id:, - # The ID for the transaction receiving the transfer. + # The identifier of the Transaction on the destination Account representing the + # received funds. destination_transaction_id:, # The idempotency key you chose for this object. This value is unique across # Increase and is used to ensure that a request is only processed once. Learn more # about [idempotency](https://increase.com/documentation/idempotency-keys). idempotency_key:, - # The transfer's network. - network:, # The ID for the pending transaction representing the transfer. A pending # transaction is created when the transfer # [requires approval](https://increase.com/documentation/transfer-approvals#transfer-approvals) @@ -173,7 +176,8 @@ module Increase pending_transaction_id:, # The lifecycle status of the transfer. status:, - # The ID for the transaction funding the transfer. + # The identifier of the Transaction on the originating account representing the + # transferred funds. transaction_id:, # A constant representing the object's type. For this resource it will always be # `account_transfer`. @@ -196,7 +200,6 @@ module Increase destination_account_id: String, destination_transaction_id: T.nilable(String), idempotency_key: T.nilable(String), - network: Increase::AccountTransfer::Network::TaggedSymbol, pending_transaction_id: T.nilable(String), status: Increase::AccountTransfer::Status::TaggedSymbol, transaction_id: T.nilable(String), @@ -518,8 +521,8 @@ module Increase end end - # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination - # account currency. + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's + # currency. module Currency extend Increase::Internal::Type::Enum @@ -554,26 +557,6 @@ module Increase end end - # The transfer's network. - module Network - extend Increase::Internal::Type::Enum - - TaggedSymbol = - T.type_alias { T.all(Symbol, Increase::AccountTransfer::Network) } - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ACCOUNT = - T.let(:account, Increase::AccountTransfer::Network::TaggedSymbol) - - sig do - override.returns( - T::Array[Increase::AccountTransfer::Network::TaggedSymbol] - ) - end - def self.values - end - end - # The lifecycle status of the transfer. module Status extend Increase::Internal::Type::Enum @@ -582,14 +565,14 @@ module Increase T.type_alias { T.all(Symbol, Increase::AccountTransfer::Status) } OrSymbol = T.type_alias { T.any(Symbol, String) } - # The transfer is pending approval. + # The transfer is pending approval from your team. PENDING_APPROVAL = T.let( :pending_approval, Increase::AccountTransfer::Status::TaggedSymbol ) - # The transfer has been canceled. + # The transfer was pending approval from your team and has been canceled. CANCELED = T.let(:canceled, Increase::AccountTransfer::Status::TaggedSymbol) diff --git a/rbi/increase/models/account_transfer_create_params.rbi b/rbi/increase/models/account_transfer_create_params.rbi index 663534d64..b14490b94 100644 --- a/rbi/increase/models/account_transfer_create_params.rbi +++ b/rbi/increase/models/account_transfer_create_params.rbi @@ -14,7 +14,7 @@ module Increase ) end - # The identifier for the account that will send the transfer. + # The identifier for the originating Account that will send the transfer. sig { returns(String) } attr_accessor :account_id @@ -23,15 +23,18 @@ module Increase sig { returns(Integer) } attr_accessor :amount - # The description you choose to give the transfer. + # An internal-facing description for the transfer for display in the API and + # dashboard. This will also show in the description of the created Transactions. sig { returns(String) } attr_accessor :description - # The identifier for the account that will receive the transfer. + # The identifier for the destination Account that will receive the transfer. sig { returns(String) } attr_accessor :destination_account_id - # Whether the transfer requires explicit approval via the dashboard or API. + # Whether the transfer should require explicit approval via the dashboard or API. + # For more information, see + # [Transfer Approvals](/documentation/transfer-approvals). sig { returns(T.nilable(T::Boolean)) } attr_reader :require_approval @@ -49,16 +52,19 @@ module Increase ).returns(T.attached_class) end def self.new( - # The identifier for the account that will send the transfer. + # The identifier for the originating Account that will send the transfer. account_id:, # The transfer amount in the minor unit of the account currency. For dollars, for # example, this is cents. amount:, - # The description you choose to give the transfer. + # An internal-facing description for the transfer for display in the API and + # dashboard. This will also show in the description of the created Transactions. description:, - # The identifier for the account that will receive the transfer. + # The identifier for the destination Account that will receive the transfer. destination_account_id:, - # Whether the transfer requires explicit approval via the dashboard or API. + # Whether the transfer should require explicit approval via the dashboard or API. + # For more information, see + # [Transfer Approvals](/documentation/transfer-approvals). require_approval: nil, request_options: {} ) diff --git a/rbi/increase/resources/account_transfers.rbi b/rbi/increase/resources/account_transfers.rbi index f08603ca3..9d19af291 100644 --- a/rbi/increase/resources/account_transfers.rbi +++ b/rbi/increase/resources/account_transfers.rbi @@ -15,16 +15,19 @@ module Increase ).returns(Increase::AccountTransfer) end def create( - # The identifier for the account that will send the transfer. + # The identifier for the originating Account that will send the transfer. account_id:, # The transfer amount in the minor unit of the account currency. For dollars, for # example, this is cents. amount:, - # The description you choose to give the transfer. + # An internal-facing description for the transfer for display in the API and + # dashboard. This will also show in the description of the created Transactions. description:, - # The identifier for the account that will receive the transfer. + # The identifier for the destination Account that will receive the transfer. destination_account_id:, - # Whether the transfer requires explicit approval via the dashboard or API. + # Whether the transfer should require explicit approval via the dashboard or API. + # For more information, see + # [Transfer Approvals](/documentation/transfer-approvals). require_approval: nil, request_options: {} ) @@ -73,7 +76,7 @@ module Increase ) end - # Approve an Account Transfer + # Approves an Account Transfer in status `pending_approval`. sig do params( account_transfer_id: String, @@ -87,7 +90,7 @@ module Increase ) end - # Cancel an Account Transfer + # Cancels an Account Transfer in status `pending_approval`. sig do params( account_transfer_id: String, diff --git a/sig/increase/models/account_transfer.rbs b/sig/increase/models/account_transfer.rbs index 67b947bed..7b36a0589 100644 --- a/sig/increase/models/account_transfer.rbs +++ b/sig/increase/models/account_transfer.rbs @@ -14,7 +14,6 @@ module Increase destination_account_id: String, destination_transaction_id: String?, idempotency_key: String?, - network: Increase::Models::AccountTransfer::network, pending_transaction_id: String?, status: Increase::Models::AccountTransfer::status, transaction_id: String?, @@ -46,8 +45,6 @@ module Increase attr_accessor idempotency_key: String? - attr_accessor network: Increase::Models::AccountTransfer::network - attr_accessor pending_transaction_id: String? attr_accessor status: Increase::Models::AccountTransfer::status @@ -69,7 +66,6 @@ module Increase destination_account_id: String, destination_transaction_id: String?, idempotency_key: String?, - network: Increase::Models::AccountTransfer::network, pending_transaction_id: String?, status: Increase::Models::AccountTransfer::status, transaction_id: String?, @@ -89,7 +85,6 @@ module Increase destination_account_id: String, destination_transaction_id: String?, idempotency_key: String?, - network: Increase::Models::AccountTransfer::network, pending_transaction_id: String?, status: Increase::Models::AccountTransfer::status, transaction_id: String?, @@ -225,25 +220,15 @@ module Increase def self?.values: -> ::Array[Increase::Models::AccountTransfer::currency] end - type network = :account - - module Network - extend Increase::Internal::Type::Enum - - ACCOUNT: :account - - def self?.values: -> ::Array[Increase::Models::AccountTransfer::network] - end - type status = :pending_approval | :canceled | :complete module Status extend Increase::Internal::Type::Enum - # The transfer is pending approval. + # The transfer is pending approval from your team. PENDING_APPROVAL: :pending_approval - # The transfer has been canceled. + # The transfer was pending approval from your team and has been canceled. CANCELED: :canceled # The transfer has been completed. diff --git a/test/increase/resources/account_transfers_test.rb b/test/increase/resources/account_transfers_test.rb index 1aebca1e5..3314fbf58 100644 --- a/test/increase/resources/account_transfers_test.rb +++ b/test/increase/resources/account_transfers_test.rb @@ -30,7 +30,6 @@ def test_create_required_params destination_account_id: String, destination_transaction_id: String | nil, idempotency_key: String | nil, - network: Increase::AccountTransfer::Network, pending_transaction_id: String | nil, status: Increase::AccountTransfer::Status, transaction_id: String | nil, @@ -60,7 +59,6 @@ def test_retrieve destination_account_id: String, destination_transaction_id: String | nil, idempotency_key: String | nil, - network: Increase::AccountTransfer::Network, pending_transaction_id: String | nil, status: Increase::AccountTransfer::Status, transaction_id: String | nil, @@ -97,7 +95,6 @@ def test_list destination_account_id: String, destination_transaction_id: String | nil, idempotency_key: String | nil, - network: Increase::AccountTransfer::Network, pending_transaction_id: String | nil, status: Increase::AccountTransfer::Status, transaction_id: String | nil, @@ -127,7 +124,6 @@ def test_approve destination_account_id: String, destination_transaction_id: String | nil, idempotency_key: String | nil, - network: Increase::AccountTransfer::Network, pending_transaction_id: String | nil, status: Increase::AccountTransfer::Status, transaction_id: String | nil, @@ -157,7 +153,6 @@ def test_cancel destination_account_id: String, destination_transaction_id: String | nil, idempotency_key: String | nil, - network: Increase::AccountTransfer::Network, pending_transaction_id: String | nil, status: Increase::AccountTransfer::Status, transaction_id: String | nil, diff --git a/test/increase/resources/simulations/account_transfers_test.rb b/test/increase/resources/simulations/account_transfers_test.rb index 6ebbd7fca..2ee9118ea 100644 --- a/test/increase/resources/simulations/account_transfers_test.rb +++ b/test/increase/resources/simulations/account_transfers_test.rb @@ -24,7 +24,6 @@ def test_complete destination_account_id: String, destination_transaction_id: String | nil, idempotency_key: String | nil, - network: Increase::AccountTransfer::Network, pending_transaction_id: String | nil, status: Increase::AccountTransfer::Status, transaction_id: String | nil,