diff --git a/.release-please-manifest.json b/.release-please-manifest.json index bfaab56f6..0c0c0c357 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.24.0" + ".": "1.25.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 7168a74e1..a81891058 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 202 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-aceb2cce1f9a46b1059a04de979b4c40210190639a4c264944b4402042168804.yml -openapi_spec_hash: 5b4ea7615676e742cea44d107b8038ca +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-147712ba3a72b1dea9a966f9b0ebc99ccebe38e1789426115f3b4c8977ed03c8.yml +openapi_spec_hash: 6c6fc01c8ea4f34b3c2553928945c100 config_hash: a185e9a72778cc4658ea73fb3a7f1354 diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a58f0ae9..010c84b7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.25.0 (2025-08-06) + +Full Changelog: [v1.24.0...v1.25.0](https://github.com/Increase/increase-ruby/compare/v1.24.0...v1.25.0) + +### Features + +* **api:** api update ([4df799b](https://github.com/Increase/increase-ruby/commit/4df799b8e62c9c406aec3ff033fa514b6180275b)) + ## 1.24.0 (2025-08-04) Full Changelog: [v1.23.0...v1.24.0](https://github.com/Increase/increase-ruby/compare/v1.23.0...v1.24.0) diff --git a/Gemfile.lock b/Gemfile.lock index ec20641e2..c2a31b249 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.24.0) + increase (1.25.0) connection_pool GEM diff --git a/README.md b/README.md index 6647593ea..f5f7791e8 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.24.0" +gem "increase", "~> 1.25.0" ``` diff --git a/lib/increase/models/transaction.rb b/lib/increase/models/transaction.rb index 760d0b7ea..3605e2e44 100644 --- a/lib/increase/models/transaction.rb +++ b/lib/increase/models/transaction.rb @@ -214,6 +214,18 @@ class Source < Increase::Internal::Type::BaseModel }, nil?: true + # @!attribute card_dispute_financial + # A Card Dispute Financial object. This field will be present in the JSON response + # if and only if `category` is equal to `card_dispute_financial`. Financial event + # related to a Card Dispute. + # + # @return [Increase::Models::Transaction::Source::CardDisputeFinancial, nil] + required :card_dispute_financial, + -> { + Increase::Transaction::Source::CardDisputeFinancial + }, + nil?: true + # @!attribute card_dispute_loss # A Card Dispute Loss object. This field will be present in the JSON response if # and only if `category` is equal to `card_dispute_loss`. Contains the details of @@ -484,7 +496,7 @@ class Source < Increase::Internal::Type::BaseModel }, nil?: true - # @!method initialize(account_transfer_intention:, ach_transfer_intention:, ach_transfer_rejection:, ach_transfer_return:, card_dispute_acceptance:, card_dispute_loss:, card_push_transfer_acceptance:, card_refund:, card_revenue_payment:, card_settlement:, cashback_payment:, category:, check_deposit_acceptance:, check_deposit_return:, check_transfer_deposit:, fee_payment:, inbound_ach_transfer:, inbound_ach_transfer_return_intention:, inbound_check_adjustment:, inbound_check_deposit_return_intention:, inbound_real_time_payments_transfer_confirmation:, inbound_real_time_payments_transfer_decline:, inbound_wire_reversal:, inbound_wire_transfer:, inbound_wire_transfer_reversal:, interest_payment:, internal_source:, other:, real_time_payments_transfer_acknowledgement:, sample_funds:, swift_transfer_intention:, wire_transfer_intention:) + # @!method initialize(account_transfer_intention:, ach_transfer_intention:, ach_transfer_rejection:, ach_transfer_return:, card_dispute_acceptance:, card_dispute_financial:, card_dispute_loss:, card_push_transfer_acceptance:, card_refund:, card_revenue_payment:, card_settlement:, cashback_payment:, category:, check_deposit_acceptance:, check_deposit_return:, check_transfer_deposit:, fee_payment:, inbound_ach_transfer:, inbound_ach_transfer_return_intention:, inbound_check_adjustment:, inbound_check_deposit_return_intention:, inbound_real_time_payments_transfer_confirmation:, inbound_real_time_payments_transfer_decline:, inbound_wire_reversal:, inbound_wire_transfer:, inbound_wire_transfer_reversal:, interest_payment:, internal_source:, other:, real_time_payments_transfer_acknowledgement:, sample_funds:, swift_transfer_intention:, wire_transfer_intention:) # Some parameter documentations has been truncated, see # {Increase::Models::Transaction::Source} for more details. # @@ -503,6 +515,8 @@ class Source < Increase::Internal::Type::BaseModel # # @param card_dispute_acceptance [Increase::Models::Transaction::Source::CardDisputeAcceptance, nil] A Card Dispute Acceptance object. This field will be present in the JSON respons # + # @param card_dispute_financial [Increase::Models::Transaction::Source::CardDisputeFinancial, nil] A Card Dispute Financial object. This field will be present in the JSON response + # # @param card_dispute_loss [Increase::Models::Transaction::Source::CardDisputeLoss, nil] A Card Dispute Loss object. This field will be present in the JSON response if a # # @param card_push_transfer_acceptance [Increase::Models::Transaction::Source::CardPushTransferAcceptance, nil] A Card Push Transfer Acceptance object. This field will be present in the JSON r @@ -1049,6 +1063,120 @@ class CardDisputeAcceptance < Increase::Internal::Type::BaseModel # @param transaction_id [String] The identifier of the Transaction that was created to return the disputed funds end + # @see Increase::Models::Transaction::Source#card_dispute_financial + class CardDisputeFinancial < Increase::Internal::Type::BaseModel + # @!attribute amount + # The amount of the financial event. + # + # @return [Integer] + required :amount, Integer + + # @!attribute card_dispute_id + # The identifier of the Card Dispute the financial event is associated with. + # + # @return [String] + required :card_dispute_id, String + + # @!attribute network + # The network that the Card Dispute is associated with. + # + # @return [Symbol, Increase::Models::Transaction::Source::CardDisputeFinancial::Network] + required :network, enum: -> { Increase::Transaction::Source::CardDisputeFinancial::Network } + + # @!attribute transaction_id + # The identifier of the Transaction that was created to credit or debit the + # disputed funds to or from your account. + # + # @return [String] + required :transaction_id, String + + # @!attribute visa + # Information for events related to card dispute for card payments processed over + # Visa's network. This field will be present in the JSON response if and only if + # `network` is equal to `visa`. + # + # @return [Increase::Models::Transaction::Source::CardDisputeFinancial::Visa, nil] + required :visa, -> { Increase::Transaction::Source::CardDisputeFinancial::Visa }, nil?: true + + # @!method initialize(amount:, card_dispute_id:, network:, transaction_id:, visa:) + # Some parameter documentations has been truncated, see + # {Increase::Models::Transaction::Source::CardDisputeFinancial} for more details. + # + # A Card Dispute Financial object. This field will be present in the JSON response + # if and only if `category` is equal to `card_dispute_financial`. Financial event + # related to a Card Dispute. + # + # @param amount [Integer] The amount of the financial event. + # + # @param card_dispute_id [String] The identifier of the Card Dispute the financial event is associated with. + # + # @param network [Symbol, Increase::Models::Transaction::Source::CardDisputeFinancial::Network] The network that the Card Dispute is associated with. + # + # @param transaction_id [String] The identifier of the Transaction that was created to credit or debit the disput + # + # @param visa [Increase::Models::Transaction::Source::CardDisputeFinancial::Visa, nil] Information for events related to card dispute for card payments processed over + + # The network that the Card Dispute is associated with. + # + # @see Increase::Models::Transaction::Source::CardDisputeFinancial#network + module Network + extend Increase::Internal::Type::Enum + + # Visa: details will be under the `visa` object. + VISA = :visa + + # @!method self.values + # @return [Array] + end + + # @see Increase::Models::Transaction::Source::CardDisputeFinancial#visa + class Visa < Increase::Internal::Type::BaseModel + # @!attribute event_type + # The type of card dispute financial event. + # + # @return [Symbol, Increase::Models::Transaction::Source::CardDisputeFinancial::Visa::EventType] + required :event_type, + enum: -> { + Increase::Transaction::Source::CardDisputeFinancial::Visa::EventType + } + + # @!method initialize(event_type:) + # Information for events related to card dispute for card payments processed over + # Visa's network. This field will be present in the JSON response if and only if + # `network` is equal to `visa`. + # + # @param event_type [Symbol, Increase::Models::Transaction::Source::CardDisputeFinancial::Visa::EventType] The type of card dispute financial event. + + # The type of card dispute financial event. + # + # @see Increase::Models::Transaction::Source::CardDisputeFinancial::Visa#event_type + module EventType + extend Increase::Internal::Type::Enum + + # The user's chargeback was submitted. + CHARGEBACK_SUBMITTED = :chargeback_submitted + + # The user declined the merchant's request for pre-arbitration. + MERCHANT_PREARBITRATION_DECLINED = :merchant_prearbitration_declined + + # The merchant's request for pre-arbitration was received. + MERCHANT_PREARBITRATION_RECEIVED = :merchant_prearbitration_received + + # The transaction was represented by the merchant. + REPRESENTED = :represented + + # The user's request for pre-arbitration was declined. + USER_PREARBITRATION_DECLINED = :user_prearbitration_declined + + # The user's request for pre-arbitration was submitted. + USER_PREARBITRATION_SUBMITTED = :user_prearbitration_submitted + + # @!method self.values + # @return [Array] + end + end + end + # @see Increase::Models::Transaction::Source#card_dispute_loss class CardDisputeLoss < Increase::Internal::Type::BaseModel # @!attribute card_dispute_id @@ -4041,6 +4169,9 @@ module Category # Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object. CARD_DISPUTE_ACCEPTANCE = :card_dispute_acceptance + # Card Dispute Financial: details will be under the `card_dispute_financial` object. + CARD_DISPUTE_FINANCIAL = :card_dispute_financial + # Card Dispute Loss: details will be under the `card_dispute_loss` object. CARD_DISPUTE_LOSS = :card_dispute_loss diff --git a/lib/increase/models/transaction_list_params.rb b/lib/increase/models/transaction_list_params.rb index 4de110e6a..d7b87f552 100644 --- a/lib/increase/models/transaction_list_params.rb +++ b/lib/increase/models/transaction_list_params.rb @@ -100,6 +100,9 @@ module In # Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object. CARD_DISPUTE_ACCEPTANCE = :card_dispute_acceptance + # Card Dispute Financial: details will be under the `card_dispute_financial` object. + CARD_DISPUTE_FINANCIAL = :card_dispute_financial + # Card Dispute Loss: details will be under the `card_dispute_loss` object. CARD_DISPUTE_LOSS = :card_dispute_loss diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 65869b035..4746894ce 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.24.0" + VERSION = "1.25.0" end diff --git a/rbi/increase/models/transaction.rbi b/rbi/increase/models/transaction.rbi index 1bf641f17..f79ab7704 100644 --- a/rbi/increase/models/transaction.rbi +++ b/rbi/increase/models/transaction.rbi @@ -309,6 +309,26 @@ module Increase end attr_writer :card_dispute_acceptance + # A Card Dispute Financial object. This field will be present in the JSON response + # if and only if `category` is equal to `card_dispute_financial`. Financial event + # related to a Card Dispute. + sig do + returns( + T.nilable(Increase::Transaction::Source::CardDisputeFinancial) + ) + end + attr_reader :card_dispute_financial + + sig do + params( + card_dispute_financial: + T.nilable( + Increase::Transaction::Source::CardDisputeFinancial::OrHash + ) + ).void + end + attr_writer :card_dispute_financial + # A Card Dispute Loss object. This field will be present in the JSON response if # and only if `category` is equal to `card_dispute_loss`. Contains the details of # a lost Card Dispute. @@ -837,6 +857,10 @@ module Increase T.nilable( Increase::Transaction::Source::CardDisputeAcceptance::OrHash ), + card_dispute_financial: + T.nilable( + Increase::Transaction::Source::CardDisputeFinancial::OrHash + ), card_dispute_loss: T.nilable(Increase::Transaction::Source::CardDisputeLoss::OrHash), card_push_transfer_acceptance: @@ -952,6 +976,10 @@ module Increase # response if and only if `category` is equal to `card_dispute_acceptance`. # Contains the details of a successful Card Dispute. card_dispute_acceptance:, + # A Card Dispute Financial object. This field will be present in the JSON response + # if and only if `category` is equal to `card_dispute_financial`. Financial event + # related to a Card Dispute. + card_dispute_financial:, # A Card Dispute Loss object. This field will be present in the JSON response if # and only if `category` is equal to `card_dispute_loss`. Contains the details of # a lost Card Dispute. @@ -1104,6 +1132,8 @@ module Increase T.nilable(Increase::Transaction::Source::ACHTransferReturn), card_dispute_acceptance: T.nilable(Increase::Transaction::Source::CardDisputeAcceptance), + card_dispute_financial: + T.nilable(Increase::Transaction::Source::CardDisputeFinancial), card_dispute_loss: T.nilable(Increase::Transaction::Source::CardDisputeLoss), card_push_transfer_acceptance: @@ -2110,6 +2140,251 @@ module Increase end end + class CardDisputeFinancial < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::Transaction::Source::CardDisputeFinancial, + Increase::Internal::AnyHash + ) + end + + # The amount of the financial event. + sig { returns(Integer) } + attr_accessor :amount + + # The identifier of the Card Dispute the financial event is associated with. + sig { returns(String) } + attr_accessor :card_dispute_id + + # The network that the Card Dispute is associated with. + sig do + returns( + Increase::Transaction::Source::CardDisputeFinancial::Network::TaggedSymbol + ) + end + attr_accessor :network + + # The identifier of the Transaction that was created to credit or debit the + # disputed funds to or from your account. + sig { returns(String) } + attr_accessor :transaction_id + + # Information for events related to card dispute for card payments processed over + # Visa's network. This field will be present in the JSON response if and only if + # `network` is equal to `visa`. + sig do + returns( + T.nilable( + Increase::Transaction::Source::CardDisputeFinancial::Visa + ) + ) + end + attr_reader :visa + + sig do + params( + visa: + T.nilable( + Increase::Transaction::Source::CardDisputeFinancial::Visa::OrHash + ) + ).void + end + attr_writer :visa + + # A Card Dispute Financial object. This field will be present in the JSON response + # if and only if `category` is equal to `card_dispute_financial`. Financial event + # related to a Card Dispute. + sig do + params( + amount: Integer, + card_dispute_id: String, + network: + Increase::Transaction::Source::CardDisputeFinancial::Network::OrSymbol, + transaction_id: String, + visa: + T.nilable( + Increase::Transaction::Source::CardDisputeFinancial::Visa::OrHash + ) + ).returns(T.attached_class) + end + def self.new( + # The amount of the financial event. + amount:, + # The identifier of the Card Dispute the financial event is associated with. + card_dispute_id:, + # The network that the Card Dispute is associated with. + network:, + # The identifier of the Transaction that was created to credit or debit the + # disputed funds to or from your account. + transaction_id:, + # Information for events related to card dispute for card payments processed over + # Visa's network. This field will be present in the JSON response if and only if + # `network` is equal to `visa`. + visa: + ) + end + + sig do + override.returns( + { + amount: Integer, + card_dispute_id: String, + network: + Increase::Transaction::Source::CardDisputeFinancial::Network::TaggedSymbol, + transaction_id: String, + visa: + T.nilable( + Increase::Transaction::Source::CardDisputeFinancial::Visa + ) + } + ) + end + def to_hash + end + + # The network that the Card Dispute is associated with. + module Network + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Increase::Transaction::Source::CardDisputeFinancial::Network + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # Visa: details will be under the `visa` object. + VISA = + T.let( + :visa, + Increase::Transaction::Source::CardDisputeFinancial::Network::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Increase::Transaction::Source::CardDisputeFinancial::Network::TaggedSymbol + ] + ) + end + def self.values + end + end + + class Visa < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::Transaction::Source::CardDisputeFinancial::Visa, + Increase::Internal::AnyHash + ) + end + + # The type of card dispute financial event. + sig do + returns( + Increase::Transaction::Source::CardDisputeFinancial::Visa::EventType::TaggedSymbol + ) + end + attr_accessor :event_type + + # Information for events related to card dispute for card payments processed over + # Visa's network. This field will be present in the JSON response if and only if + # `network` is equal to `visa`. + sig do + params( + event_type: + Increase::Transaction::Source::CardDisputeFinancial::Visa::EventType::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # The type of card dispute financial event. + event_type: + ) + end + + sig do + override.returns( + { + event_type: + Increase::Transaction::Source::CardDisputeFinancial::Visa::EventType::TaggedSymbol + } + ) + end + def to_hash + end + + # The type of card dispute financial event. + module EventType + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Increase::Transaction::Source::CardDisputeFinancial::Visa::EventType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # The user's chargeback was submitted. + CHARGEBACK_SUBMITTED = + T.let( + :chargeback_submitted, + Increase::Transaction::Source::CardDisputeFinancial::Visa::EventType::TaggedSymbol + ) + + # The user declined the merchant's request for pre-arbitration. + MERCHANT_PREARBITRATION_DECLINED = + T.let( + :merchant_prearbitration_declined, + Increase::Transaction::Source::CardDisputeFinancial::Visa::EventType::TaggedSymbol + ) + + # The merchant's request for pre-arbitration was received. + MERCHANT_PREARBITRATION_RECEIVED = + T.let( + :merchant_prearbitration_received, + Increase::Transaction::Source::CardDisputeFinancial::Visa::EventType::TaggedSymbol + ) + + # The transaction was represented by the merchant. + REPRESENTED = + T.let( + :represented, + Increase::Transaction::Source::CardDisputeFinancial::Visa::EventType::TaggedSymbol + ) + + # The user's request for pre-arbitration was declined. + USER_PREARBITRATION_DECLINED = + T.let( + :user_prearbitration_declined, + Increase::Transaction::Source::CardDisputeFinancial::Visa::EventType::TaggedSymbol + ) + + # The user's request for pre-arbitration was submitted. + USER_PREARBITRATION_SUBMITTED = + T.let( + :user_prearbitration_submitted, + Increase::Transaction::Source::CardDisputeFinancial::Visa::EventType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Increase::Transaction::Source::CardDisputeFinancial::Visa::EventType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end + class CardDisputeLoss < Increase::Internal::Type::BaseModel OrHash = T.type_alias do @@ -7433,6 +7708,13 @@ module Increase Increase::Transaction::Source::Category::TaggedSymbol ) + # Card Dispute Financial: details will be under the `card_dispute_financial` object. + CARD_DISPUTE_FINANCIAL = + T.let( + :card_dispute_financial, + Increase::Transaction::Source::Category::TaggedSymbol + ) + # Card Dispute Loss: details will be under the `card_dispute_loss` object. CARD_DISPUTE_LOSS = T.let( diff --git a/rbi/increase/models/transaction_list_params.rbi b/rbi/increase/models/transaction_list_params.rbi index 654d85ebb..9871bc6cc 100644 --- a/rbi/increase/models/transaction_list_params.rbi +++ b/rbi/increase/models/transaction_list_params.rbi @@ -208,6 +208,13 @@ module Increase Increase::TransactionListParams::Category::In::TaggedSymbol ) + # Card Dispute Financial: details will be under the `card_dispute_financial` object. + CARD_DISPUTE_FINANCIAL = + T.let( + :card_dispute_financial, + Increase::TransactionListParams::Category::In::TaggedSymbol + ) + # Card Dispute Loss: details will be under the `card_dispute_loss` object. CARD_DISPUTE_LOSS = T.let( diff --git a/sig/increase/models/transaction.rbs b/sig/increase/models/transaction.rbs index c6b721d65..0d5fbec8b 100644 --- a/sig/increase/models/transaction.rbs +++ b/sig/increase/models/transaction.rbs @@ -111,6 +111,7 @@ module Increase ach_transfer_rejection: Increase::Transaction::Source::ACHTransferRejection?, ach_transfer_return: Increase::Transaction::Source::ACHTransferReturn?, card_dispute_acceptance: Increase::Transaction::Source::CardDisputeAcceptance?, + card_dispute_financial: Increase::Transaction::Source::CardDisputeFinancial?, card_dispute_loss: Increase::Transaction::Source::CardDisputeLoss?, card_push_transfer_acceptance: Increase::Transaction::Source::CardPushTransferAcceptance?, card_refund: Increase::Transaction::Source::CardRefund?, @@ -151,6 +152,8 @@ module Increase attr_accessor card_dispute_acceptance: Increase::Transaction::Source::CardDisputeAcceptance? + attr_accessor card_dispute_financial: Increase::Transaction::Source::CardDisputeFinancial? + attr_accessor card_dispute_loss: Increase::Transaction::Source::CardDisputeLoss? attr_accessor card_push_transfer_acceptance: Increase::Transaction::Source::CardPushTransferAcceptance? @@ -211,6 +214,7 @@ module Increase ach_transfer_rejection: Increase::Transaction::Source::ACHTransferRejection?, ach_transfer_return: Increase::Transaction::Source::ACHTransferReturn?, card_dispute_acceptance: Increase::Transaction::Source::CardDisputeAcceptance?, + card_dispute_financial: Increase::Transaction::Source::CardDisputeFinancial?, card_dispute_loss: Increase::Transaction::Source::CardDisputeLoss?, card_push_transfer_acceptance: Increase::Transaction::Source::CardPushTransferAcceptance?, card_refund: Increase::Transaction::Source::CardRefund?, @@ -246,6 +250,7 @@ module Increase ach_transfer_rejection: Increase::Transaction::Source::ACHTransferRejection?, ach_transfer_return: Increase::Transaction::Source::ACHTransferReturn?, card_dispute_acceptance: Increase::Transaction::Source::CardDisputeAcceptance?, + card_dispute_financial: Increase::Transaction::Source::CardDisputeFinancial?, card_dispute_loss: Increase::Transaction::Source::CardDisputeLoss?, card_push_transfer_acceptance: Increase::Transaction::Source::CardPushTransferAcceptance?, card_refund: Increase::Transaction::Source::CardRefund?, @@ -743,6 +748,103 @@ module Increase } end + type card_dispute_financial = + { + amount: Integer, + card_dispute_id: String, + network: Increase::Models::Transaction::Source::CardDisputeFinancial::network, + transaction_id: String, + visa: Increase::Transaction::Source::CardDisputeFinancial::Visa? + } + + class CardDisputeFinancial < Increase::Internal::Type::BaseModel + attr_accessor amount: Integer + + attr_accessor card_dispute_id: String + + attr_accessor network: Increase::Models::Transaction::Source::CardDisputeFinancial::network + + attr_accessor transaction_id: String + + attr_accessor visa: Increase::Transaction::Source::CardDisputeFinancial::Visa? + + def initialize: ( + amount: Integer, + card_dispute_id: String, + network: Increase::Models::Transaction::Source::CardDisputeFinancial::network, + transaction_id: String, + visa: Increase::Transaction::Source::CardDisputeFinancial::Visa? + ) -> void + + def to_hash: -> { + amount: Integer, + card_dispute_id: String, + network: Increase::Models::Transaction::Source::CardDisputeFinancial::network, + transaction_id: String, + visa: Increase::Transaction::Source::CardDisputeFinancial::Visa? + } + + type network = :visa + + module Network + extend Increase::Internal::Type::Enum + + # Visa: details will be under the `visa` object. + VISA: :visa + + def self?.values: -> ::Array[Increase::Models::Transaction::Source::CardDisputeFinancial::network] + end + + type visa = + { + event_type: Increase::Models::Transaction::Source::CardDisputeFinancial::Visa::event_type + } + + class Visa < Increase::Internal::Type::BaseModel + attr_accessor event_type: Increase::Models::Transaction::Source::CardDisputeFinancial::Visa::event_type + + def initialize: ( + event_type: Increase::Models::Transaction::Source::CardDisputeFinancial::Visa::event_type + ) -> void + + def to_hash: -> { + event_type: Increase::Models::Transaction::Source::CardDisputeFinancial::Visa::event_type + } + + type event_type = + :chargeback_submitted + | :merchant_prearbitration_declined + | :merchant_prearbitration_received + | :represented + | :user_prearbitration_declined + | :user_prearbitration_submitted + + module EventType + extend Increase::Internal::Type::Enum + + # The user's chargeback was submitted. + CHARGEBACK_SUBMITTED: :chargeback_submitted + + # The user declined the merchant's request for pre-arbitration. + MERCHANT_PREARBITRATION_DECLINED: :merchant_prearbitration_declined + + # The merchant's request for pre-arbitration was received. + MERCHANT_PREARBITRATION_RECEIVED: :merchant_prearbitration_received + + # The transaction was represented by the merchant. + REPRESENTED: :represented + + # The user's request for pre-arbitration was declined. + USER_PREARBITRATION_DECLINED: :user_prearbitration_declined + + # The user's request for pre-arbitration was submitted. + USER_PREARBITRATION_SUBMITTED: :user_prearbitration_submitted + + def self?.values: -> ::Array[Increase::Models::Transaction::Source::CardDisputeFinancial::Visa::event_type] + end + end + end + type card_dispute_loss = { card_dispute_id: String, @@ -2983,6 +3085,7 @@ module Increase | :ach_transfer_return | :cashback_payment | :card_dispute_acceptance + | :card_dispute_financial | :card_dispute_loss | :card_refund | :card_settlement @@ -3030,6 +3133,9 @@ module Increase # Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object. CARD_DISPUTE_ACCEPTANCE: :card_dispute_acceptance + # Card Dispute Financial: details will be under the `card_dispute_financial` object. + CARD_DISPUTE_FINANCIAL: :card_dispute_financial + # Card Dispute Loss: details will be under the `card_dispute_loss` object. CARD_DISPUTE_LOSS: :card_dispute_loss diff --git a/sig/increase/models/transaction_list_params.rbs b/sig/increase/models/transaction_list_params.rbs index 58e60fe62..e30e54054 100644 --- a/sig/increase/models/transaction_list_params.rbs +++ b/sig/increase/models/transaction_list_params.rbs @@ -88,6 +88,7 @@ module Increase | :ach_transfer_return | :cashback_payment | :card_dispute_acceptance + | :card_dispute_financial | :card_dispute_loss | :card_refund | :card_settlement @@ -135,6 +136,9 @@ module Increase # Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object. CARD_DISPUTE_ACCEPTANCE: :card_dispute_acceptance + # Card Dispute Financial: details will be under the `card_dispute_financial` object. + CARD_DISPUTE_FINANCIAL: :card_dispute_financial + # Card Dispute Loss: details will be under the `card_dispute_loss` object. CARD_DISPUTE_LOSS: :card_dispute_loss