From c97cfd42049607113b683af73cca4c3dad439d7d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 22 Jul 2025 22:24:08 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- .../card_authorization_create_params.rb | 93 ++++++-- .../simulations/card_authorizations.rb | 6 +- .../card_authorization_create_params.rbi | 217 ++++++++++++------ .../simulations/card_authorizations.rbi | 10 +- .../card_authorization_create_params.rbs | 89 +++++-- .../simulations/card_authorizations.rbs | 2 +- 7 files changed, 297 insertions(+), 124 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4f46bd0e2..f0529b710 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-f755cd0f7b44abb0c5ec9857c8ac47d778b3d753335d9a5cc3b73e4fdf9f2f96.yml -openapi_spec_hash: 16295ba5ba27744cd4f1464d640dadcf +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-4d843be8e5d44f9d79115d585ffdcda4b4d86a5f515fb00e547ba085156f44bb.yml +openapi_spec_hash: f5473cf6107b72c78bc87ecbc421dc5e config_hash: a185e9a72778cc4658ea73fb3a7f1354 diff --git a/lib/increase/models/simulations/card_authorization_create_params.rb b/lib/increase/models/simulations/card_authorization_create_params.rb index dce1dab37..b52fd3444 100644 --- a/lib/increase/models/simulations/card_authorization_create_params.rb +++ b/lib/increase/models/simulations/card_authorization_create_params.rb @@ -43,13 +43,6 @@ class CardAuthorizationCreateParams < Increase::Internal::Type::BaseModel # @return [String, nil] optional :digital_wallet_token_id, String - # @!attribute direction - # The direction describes the direction the funds will move, either from the - # cardholder to the merchant or from the merchant to the cardholder. - # - # @return [Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::Direction, nil] - optional :direction, enum: -> { Increase::Simulations::CardAuthorizationCreateParams::Direction } - # @!attribute event_subscription_id # The identifier of the Event Subscription to use. If provided, will override the # default real time event subscription. Because you can only create one real time @@ -116,6 +109,14 @@ class CardAuthorizationCreateParams < Increase::Internal::Type::BaseModel # @return [String, nil] optional :physical_card_id, String + # @!attribute processing_category + # Fields specific to a specific type of authorization, such as Automatic Fuel + # Dispensers, Refund Authorizations, or Cash Disbursements. + # + # @return [Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory, nil] + optional :processing_category, + -> { Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory } + # @!attribute terminal_id # The terminal identifier (commonly abbreviated as TID) of the terminal the card # is transacting with. @@ -123,7 +124,7 @@ class CardAuthorizationCreateParams < Increase::Internal::Type::BaseModel # @return [String, nil] optional :terminal_id, String - # @!method initialize(amount:, authenticated_card_payment_id: nil, card_id: nil, decline_reason: nil, digital_wallet_token_id: nil, direction: nil, event_subscription_id: nil, merchant_acceptor_id: nil, merchant_category_code: nil, merchant_city: nil, merchant_country: nil, merchant_descriptor: nil, merchant_state: nil, network_details: nil, network_risk_score: nil, physical_card_id: nil, terminal_id: nil, request_options: {}) + # @!method initialize(amount:, authenticated_card_payment_id: nil, card_id: nil, decline_reason: nil, digital_wallet_token_id: nil, event_subscription_id: nil, merchant_acceptor_id: nil, merchant_category_code: nil, merchant_city: nil, merchant_country: nil, merchant_descriptor: nil, merchant_state: nil, network_details: nil, network_risk_score: nil, physical_card_id: nil, processing_category: nil, terminal_id: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Increase::Models::Simulations::CardAuthorizationCreateParams} for more details. # @@ -137,8 +138,6 @@ class CardAuthorizationCreateParams < Increase::Internal::Type::BaseModel # # @param digital_wallet_token_id [String] The identifier of the Digital Wallet Token to be authorized. # - # @param direction [Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::Direction] The direction describes the direction the funds will move, either from the cardh - # # @param event_subscription_id [String] The identifier of the Event Subscription to use. If provided, will override the # # @param merchant_acceptor_id [String] The merchant identifier (commonly abbreviated as MID) of the merchant the card i @@ -159,6 +158,8 @@ class CardAuthorizationCreateParams < Increase::Internal::Type::BaseModel # # @param physical_card_id [String] The identifier of the Physical Card to be authorized. # + # @param processing_category [Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory] Fields specific to a specific type of authorization, such as Automatic Fuel Disp + # # @param terminal_id [String] The terminal identifier (commonly abbreviated as TID) of the terminal the card i # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] @@ -232,21 +233,6 @@ module DeclineReason # @return [Array] end - # The direction describes the direction the funds will move, either from the - # cardholder to the merchant or from the merchant to the cardholder. - module Direction - extend Increase::Internal::Type::Enum - - # A regular card authorization where funds are debited from the cardholder. - SETTLEMENT = :settlement - - # A refund card authorization, sometimes referred to as a credit voucher authorization, where funds are credited to the cardholder. - REFUND = :refund - - # @!method self.values - # @return [Array] - end - class NetworkDetails < Increase::Internal::Type::BaseModel # @!attribute visa # Fields specific to the Visa network. @@ -309,6 +295,63 @@ module StandInProcessingReason end end end + + class ProcessingCategory < Increase::Internal::Type::BaseModel + # @!attribute category + # The processing category describes the intent behind the authorization, such as + # whether it was used for bill payments or an automatic fuel dispenser. + # + # @return [Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category] + required :category, + enum: -> { + Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category + } + + # @!method initialize(category:) + # Some parameter documentations has been truncated, see + # {Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory} + # for more details. + # + # Fields specific to a specific type of authorization, such as Automatic Fuel + # Dispensers, Refund Authorizations, or Cash Disbursements. + # + # @param category [Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category] The processing category describes the intent behind the authorization, such as w + + # The processing category describes the intent behind the authorization, such as + # whether it was used for bill payments or an automatic fuel dispenser. + # + # @see Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory#category + module Category + extend Increase::Internal::Type::Enum + + # Account funding transactions are transactions used to e.g., fund an account or transfer funds between accounts. + ACCOUNT_FUNDING = :account_funding + + # Automatic fuel dispenser authorizations occur when a card is used at a gas pump, prior to the actual transaction amount being known. They are followed by an advice message that updates the amount of the pending transaction. + AUTOMATIC_FUEL_DISPENSER = :automatic_fuel_dispenser + + # A transaction used to pay a bill. + BILL_PAYMENT = :bill_payment + + # Original credit transactions are used to send money to a cardholder. + ORIGINAL_CREDIT = :original_credit + + # A regular purchase. + PURCHASE = :purchase + + # Quasi-cash transactions represent purchases of items which may be convertible to cash. + QUASI_CASH = :quasi_cash + + # A refund card authorization, sometimes referred to as a credit voucher authorization, where funds are credited to the cardholder. + REFUND = :refund + + # Cash disbursement transactions are used to withdraw cash from an ATM or a point of sale. + CASH_DISBURSEMENT = :cash_disbursement + + # @!method self.values + # @return [Array] + end + end end end end diff --git a/lib/increase/resources/simulations/card_authorizations.rb b/lib/increase/resources/simulations/card_authorizations.rb index 557215c6e..3185abf34 100644 --- a/lib/increase/resources/simulations/card_authorizations.rb +++ b/lib/increase/resources/simulations/card_authorizations.rb @@ -15,7 +15,7 @@ class CardAuthorizations # [Digital Wallet Token](#digital-wallet-tokens) id to simulate the two different # ways purchases can be made. # - # @overload create(amount:, authenticated_card_payment_id: nil, card_id: nil, decline_reason: nil, digital_wallet_token_id: nil, direction: nil, event_subscription_id: nil, merchant_acceptor_id: nil, merchant_category_code: nil, merchant_city: nil, merchant_country: nil, merchant_descriptor: nil, merchant_state: nil, network_details: nil, network_risk_score: nil, physical_card_id: nil, terminal_id: nil, request_options: {}) + # @overload create(amount:, authenticated_card_payment_id: nil, card_id: nil, decline_reason: nil, digital_wallet_token_id: nil, event_subscription_id: nil, merchant_acceptor_id: nil, merchant_category_code: nil, merchant_city: nil, merchant_country: nil, merchant_descriptor: nil, merchant_state: nil, network_details: nil, network_risk_score: nil, physical_card_id: nil, processing_category: nil, terminal_id: nil, request_options: {}) # # @param amount [Integer] The authorization amount in cents. # @@ -27,8 +27,6 @@ class CardAuthorizations # # @param digital_wallet_token_id [String] The identifier of the Digital Wallet Token to be authorized. # - # @param direction [Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::Direction] The direction describes the direction the funds will move, either from the cardh - # # @param event_subscription_id [String] The identifier of the Event Subscription to use. If provided, will override the # # @param merchant_acceptor_id [String] The merchant identifier (commonly abbreviated as MID) of the merchant the card i @@ -49,6 +47,8 @@ class CardAuthorizations # # @param physical_card_id [String] The identifier of the Physical Card to be authorized. # + # @param processing_category [Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory] Fields specific to a specific type of authorization, such as Automatic Fuel Disp + # # @param terminal_id [String] The terminal identifier (commonly abbreviated as TID) of the terminal the card i # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] diff --git a/rbi/increase/models/simulations/card_authorization_create_params.rbi b/rbi/increase/models/simulations/card_authorization_create_params.rbi index 86b579589..c8d5bbac8 100644 --- a/rbi/increase/models/simulations/card_authorization_create_params.rbi +++ b/rbi/increase/models/simulations/card_authorization_create_params.rbi @@ -60,25 +60,6 @@ module Increase sig { params(digital_wallet_token_id: String).void } attr_writer :digital_wallet_token_id - # The direction describes the direction the funds will move, either from the - # cardholder to the merchant or from the merchant to the cardholder. - sig do - returns( - T.nilable( - Increase::Simulations::CardAuthorizationCreateParams::Direction::OrSymbol - ) - ) - end - attr_reader :direction - - sig do - params( - direction: - Increase::Simulations::CardAuthorizationCreateParams::Direction::OrSymbol - ).void - end - attr_writer :direction - # The identifier of the Event Subscription to use. If provided, will override the # default real time event subscription. Because you can only create one real time # decision event subscription, you can use this field to route events to any @@ -166,6 +147,25 @@ module Increase sig { params(physical_card_id: String).void } attr_writer :physical_card_id + # Fields specific to a specific type of authorization, such as Automatic Fuel + # Dispensers, Refund Authorizations, or Cash Disbursements. + sig do + returns( + T.nilable( + Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory + ) + ) + end + attr_reader :processing_category + + sig do + params( + processing_category: + Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::OrHash + ).void + end + attr_writer :processing_category + # The terminal identifier (commonly abbreviated as TID) of the terminal the card # is transacting with. sig { returns(T.nilable(String)) } @@ -182,8 +182,6 @@ module Increase decline_reason: Increase::Simulations::CardAuthorizationCreateParams::DeclineReason::OrSymbol, digital_wallet_token_id: String, - direction: - Increase::Simulations::CardAuthorizationCreateParams::Direction::OrSymbol, event_subscription_id: String, merchant_acceptor_id: String, merchant_category_code: String, @@ -195,6 +193,8 @@ module Increase Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails::OrHash, network_risk_score: Integer, physical_card_id: String, + processing_category: + Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::OrHash, terminal_id: String, request_options: Increase::RequestOptions::OrHash ).returns(T.attached_class) @@ -212,9 +212,6 @@ module Increase decline_reason: nil, # The identifier of the Digital Wallet Token to be authorized. digital_wallet_token_id: nil, - # The direction describes the direction the funds will move, either from the - # cardholder to the merchant or from the merchant to the cardholder. - direction: nil, # The identifier of the Event Subscription to use. If provided, will override the # default real time event subscription. Because you can only create one real time # decision event subscription, you can use this field to route events to any @@ -241,6 +238,9 @@ module Increase network_risk_score: nil, # The identifier of the Physical Card to be authorized. physical_card_id: nil, + # Fields specific to a specific type of authorization, such as Automatic Fuel + # Dispensers, Refund Authorizations, or Cash Disbursements. + processing_category: nil, # The terminal identifier (commonly abbreviated as TID) of the terminal the card # is transacting with. terminal_id: nil, @@ -257,8 +257,6 @@ module Increase decline_reason: Increase::Simulations::CardAuthorizationCreateParams::DeclineReason::OrSymbol, digital_wallet_token_id: String, - direction: - Increase::Simulations::CardAuthorizationCreateParams::Direction::OrSymbol, event_subscription_id: String, merchant_acceptor_id: String, merchant_category_code: String, @@ -270,6 +268,8 @@ module Increase Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails, network_risk_score: Integer, physical_card_id: String, + processing_category: + Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory, terminal_id: String, request_options: Increase::RequestOptions } @@ -443,45 +443,6 @@ module Increase end end - # The direction describes the direction the funds will move, either from the - # cardholder to the merchant or from the merchant to the cardholder. - module Direction - extend Increase::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Increase::Simulations::CardAuthorizationCreateParams::Direction - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - # A regular card authorization where funds are debited from the cardholder. - SETTLEMENT = - T.let( - :settlement, - Increase::Simulations::CardAuthorizationCreateParams::Direction::TaggedSymbol - ) - - # A refund card authorization, sometimes referred to as a credit voucher authorization, where funds are credited to the cardholder. - REFUND = - T.let( - :refund, - Increase::Simulations::CardAuthorizationCreateParams::Direction::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Increase::Simulations::CardAuthorizationCreateParams::Direction::TaggedSymbol - ] - ) - end - def self.values - end - end - class NetworkDetails < Increase::Internal::Type::BaseModel OrHash = T.type_alias do @@ -656,6 +617,132 @@ module Increase end end end + + class ProcessingCategory < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory, + Increase::Internal::AnyHash + ) + end + + # The processing category describes the intent behind the authorization, such as + # whether it was used for bill payments or an automatic fuel dispenser. + sig do + returns( + Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::OrSymbol + ) + end + attr_accessor :category + + # Fields specific to a specific type of authorization, such as Automatic Fuel + # Dispensers, Refund Authorizations, or Cash Disbursements. + sig do + params( + category: + Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # The processing category describes the intent behind the authorization, such as + # whether it was used for bill payments or an automatic fuel dispenser. + category: + ) + end + + sig do + override.returns( + { + category: + Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::OrSymbol + } + ) + end + def to_hash + end + + # The processing category describes the intent behind the authorization, such as + # whether it was used for bill payments or an automatic fuel dispenser. + module Category + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # Account funding transactions are transactions used to e.g., fund an account or transfer funds between accounts. + ACCOUNT_FUNDING = + T.let( + :account_funding, + Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::TaggedSymbol + ) + + # Automatic fuel dispenser authorizations occur when a card is used at a gas pump, prior to the actual transaction amount being known. They are followed by an advice message that updates the amount of the pending transaction. + AUTOMATIC_FUEL_DISPENSER = + T.let( + :automatic_fuel_dispenser, + Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::TaggedSymbol + ) + + # A transaction used to pay a bill. + BILL_PAYMENT = + T.let( + :bill_payment, + Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::TaggedSymbol + ) + + # Original credit transactions are used to send money to a cardholder. + ORIGINAL_CREDIT = + T.let( + :original_credit, + Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::TaggedSymbol + ) + + # A regular purchase. + PURCHASE = + T.let( + :purchase, + Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::TaggedSymbol + ) + + # Quasi-cash transactions represent purchases of items which may be convertible to cash. + QUASI_CASH = + T.let( + :quasi_cash, + Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::TaggedSymbol + ) + + # A refund card authorization, sometimes referred to as a credit voucher authorization, where funds are credited to the cardholder. + REFUND = + T.let( + :refund, + Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::TaggedSymbol + ) + + # Cash disbursement transactions are used to withdraw cash from an ATM or a point of sale. + CASH_DISBURSEMENT = + T.let( + :cash_disbursement, + Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::TaggedSymbol + ] + ) + end + def self.values + end + end + end end end end diff --git a/rbi/increase/resources/simulations/card_authorizations.rbi b/rbi/increase/resources/simulations/card_authorizations.rbi index 4edc830eb..16d362d4b 100644 --- a/rbi/increase/resources/simulations/card_authorizations.rbi +++ b/rbi/increase/resources/simulations/card_authorizations.rbi @@ -19,8 +19,6 @@ module Increase decline_reason: Increase::Simulations::CardAuthorizationCreateParams::DeclineReason::OrSymbol, digital_wallet_token_id: String, - direction: - Increase::Simulations::CardAuthorizationCreateParams::Direction::OrSymbol, event_subscription_id: String, merchant_acceptor_id: String, merchant_category_code: String, @@ -32,6 +30,8 @@ module Increase Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails::OrHash, network_risk_score: Integer, physical_card_id: String, + processing_category: + Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::OrHash, terminal_id: String, request_options: Increase::RequestOptions::OrHash ).returns( @@ -51,9 +51,6 @@ module Increase decline_reason: nil, # The identifier of the Digital Wallet Token to be authorized. digital_wallet_token_id: nil, - # The direction describes the direction the funds will move, either from the - # cardholder to the merchant or from the merchant to the cardholder. - direction: nil, # The identifier of the Event Subscription to use. If provided, will override the # default real time event subscription. Because you can only create one real time # decision event subscription, you can use this field to route events to any @@ -80,6 +77,9 @@ module Increase network_risk_score: nil, # The identifier of the Physical Card to be authorized. physical_card_id: nil, + # Fields specific to a specific type of authorization, such as Automatic Fuel + # Dispensers, Refund Authorizations, or Cash Disbursements. + processing_category: nil, # The terminal identifier (commonly abbreviated as TID) of the terminal the card # is transacting with. terminal_id: nil, diff --git a/sig/increase/models/simulations/card_authorization_create_params.rbs b/sig/increase/models/simulations/card_authorization_create_params.rbs index 584fc7a49..7a1dafbcd 100644 --- a/sig/increase/models/simulations/card_authorization_create_params.rbs +++ b/sig/increase/models/simulations/card_authorization_create_params.rbs @@ -8,7 +8,6 @@ module Increase card_id: String, decline_reason: Increase::Models::Simulations::CardAuthorizationCreateParams::decline_reason, digital_wallet_token_id: String, - direction: Increase::Models::Simulations::CardAuthorizationCreateParams::direction, event_subscription_id: String, merchant_acceptor_id: String, merchant_category_code: String, @@ -19,6 +18,7 @@ module Increase network_details: Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails, network_risk_score: Integer, physical_card_id: String, + processing_category: Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory, terminal_id: String } & Increase::Internal::Type::request_parameters @@ -47,12 +47,6 @@ module Increase def digital_wallet_token_id=: (String) -> String - attr_reader direction: Increase::Models::Simulations::CardAuthorizationCreateParams::direction? - - def direction=: ( - Increase::Models::Simulations::CardAuthorizationCreateParams::direction - ) -> Increase::Models::Simulations::CardAuthorizationCreateParams::direction - attr_reader event_subscription_id: String? def event_subscription_id=: (String) -> String @@ -95,6 +89,12 @@ module Increase def physical_card_id=: (String) -> String + attr_reader processing_category: Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory? + + def processing_category=: ( + Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory + ) -> Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory + attr_reader terminal_id: String? def terminal_id=: (String) -> String @@ -105,7 +105,6 @@ module Increase ?card_id: String, ?decline_reason: Increase::Models::Simulations::CardAuthorizationCreateParams::decline_reason, ?digital_wallet_token_id: String, - ?direction: Increase::Models::Simulations::CardAuthorizationCreateParams::direction, ?event_subscription_id: String, ?merchant_acceptor_id: String, ?merchant_category_code: String, @@ -116,6 +115,7 @@ module Increase ?network_details: Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails, ?network_risk_score: Integer, ?physical_card_id: String, + ?processing_category: Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory, ?terminal_id: String, ?request_options: Increase::request_opts ) -> void @@ -126,7 +126,6 @@ module Increase card_id: String, decline_reason: Increase::Models::Simulations::CardAuthorizationCreateParams::decline_reason, digital_wallet_token_id: String, - direction: Increase::Models::Simulations::CardAuthorizationCreateParams::direction, event_subscription_id: String, merchant_acceptor_id: String, merchant_category_code: String, @@ -137,6 +136,7 @@ module Increase network_details: Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails, network_risk_score: Integer, physical_card_id: String, + processing_category: Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory, terminal_id: String, request_options: Increase::RequestOptions } @@ -229,20 +229,6 @@ module Increase def self?.values: -> ::Array[Increase::Models::Simulations::CardAuthorizationCreateParams::decline_reason] end - type direction = :settlement | :refund - - module Direction - extend Increase::Internal::Type::Enum - - # A regular card authorization where funds are debited from the cardholder. - SETTLEMENT: :settlement - - # A refund card authorization, sometimes referred to as a credit voucher authorization, where funds are credited to the cardholder. - REFUND: :refund - - def self?.values: -> ::Array[Increase::Models::Simulations::CardAuthorizationCreateParams::direction] - end - type network_details = { visa: Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails::Visa @@ -316,6 +302,63 @@ module Increase end end end + + type processing_category = + { + category: Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::category + } + + class ProcessingCategory < Increase::Internal::Type::BaseModel + attr_accessor category: Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::category + + def initialize: ( + category: Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::category + ) -> void + + def to_hash: -> { + category: Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::category + } + + type category = + :account_funding + | :automatic_fuel_dispenser + | :bill_payment + | :original_credit + | :purchase + | :quasi_cash + | :refund + | :cash_disbursement + + module Category + extend Increase::Internal::Type::Enum + + # Account funding transactions are transactions used to e.g., fund an account or transfer funds between accounts. + ACCOUNT_FUNDING: :account_funding + + # Automatic fuel dispenser authorizations occur when a card is used at a gas pump, prior to the actual transaction amount being known. They are followed by an advice message that updates the amount of the pending transaction. + AUTOMATIC_FUEL_DISPENSER: :automatic_fuel_dispenser + + # A transaction used to pay a bill. + BILL_PAYMENT: :bill_payment + + # Original credit transactions are used to send money to a cardholder. + ORIGINAL_CREDIT: :original_credit + + # A regular purchase. + PURCHASE: :purchase + + # Quasi-cash transactions represent purchases of items which may be convertible to cash. + QUASI_CASH: :quasi_cash + + # A refund card authorization, sometimes referred to as a credit voucher authorization, where funds are credited to the cardholder. + REFUND: :refund + + # Cash disbursement transactions are used to withdraw cash from an ATM or a point of sale. + CASH_DISBURSEMENT: :cash_disbursement + + def self?.values: -> ::Array[Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::category] + end + end end end end diff --git a/sig/increase/resources/simulations/card_authorizations.rbs b/sig/increase/resources/simulations/card_authorizations.rbs index a80c6bbb9..a0f2a1781 100644 --- a/sig/increase/resources/simulations/card_authorizations.rbs +++ b/sig/increase/resources/simulations/card_authorizations.rbs @@ -8,7 +8,6 @@ module Increase ?card_id: String, ?decline_reason: Increase::Models::Simulations::CardAuthorizationCreateParams::decline_reason, ?digital_wallet_token_id: String, - ?direction: Increase::Models::Simulations::CardAuthorizationCreateParams::direction, ?event_subscription_id: String, ?merchant_acceptor_id: String, ?merchant_category_code: String, @@ -19,6 +18,7 @@ module Increase ?network_details: Increase::Simulations::CardAuthorizationCreateParams::NetworkDetails, ?network_risk_score: Integer, ?physical_card_id: String, + ?processing_category: Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory, ?terminal_id: String, ?request_options: Increase::request_opts ) -> Increase::Models::Simulations::CardAuthorizationCreateResponse From bd3a708bdcb1f084346f1fb88236e2099eb1dc5b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 22 Jul 2025 22:24:28 +0000 Subject: [PATCH 2/2] release: 1.17.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/increase/version.rb | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index bc845f32a..6a197bef5 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.16.0" + ".": "1.17.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e0509d0a9..55de5be73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.17.0 (2025-07-22) + +Full Changelog: [v1.16.0...v1.17.0](https://github.com/Increase/increase-ruby/compare/v1.16.0...v1.17.0) + +### Features + +* **api:** api update ([c97cfd4](https://github.com/Increase/increase-ruby/commit/c97cfd42049607113b683af73cca4c3dad439d7d)) + ## 1.16.0 (2025-07-22) Full Changelog: [v1.15.0...v1.16.0](https://github.com/Increase/increase-ruby/compare/v1.15.0...v1.16.0) diff --git a/Gemfile.lock b/Gemfile.lock index 6a31d5c5a..20a0b2245 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.16.0) + increase (1.17.0) connection_pool GEM diff --git a/README.md b/README.md index cc51b6355..b5e86f906 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.16.0" +gem "increase", "~> 1.17.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index bc24ec94b..2e9a57a5f 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.16.0" + VERSION = "1.17.0" end