diff --git a/.release-please-manifest.json b/.release-please-manifest.json index eb6b6a16..db8f3793 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.231.0" + ".": "1.232.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 73242f91..dd629af0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 234 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e4cf84ebe7ee8dbfbaa709d310fb62f12631f4b69f7aa73be2a88f149c726dc3.yml -openapi_spec_hash: 123949338534df87debdfbd846fc40b1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5ad5e7687261a6a66ca0b94fed6765c7f703e809a4ad1ea2697f13125b2a4149.yml +openapi_spec_hash: d0109b057a653545ee169947b9aa76b2 config_hash: 890ca5fa6b8209d4eaac90550c7dc62c diff --git a/CHANGELOG.md b/CHANGELOG.md index fcc118fd..f8a9f0c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.232.0 (2026-03-05) + +Full Changelog: [v1.231.0...v1.232.0](https://github.com/Increase/increase-ruby/compare/v1.231.0...v1.232.0) + +### Features + +* **api:** api update ([65e0b8f](https://github.com/Increase/increase-ruby/commit/65e0b8f40881298c3d7f9de56d6d5c44450d7d42)) + ## 1.231.0 (2026-03-05) Full Changelog: [v1.230.0...v1.231.0](https://github.com/Increase/increase-ruby/compare/v1.230.0...v1.231.0) diff --git a/Gemfile.lock b/Gemfile.lock index b137375d..ef9ab689 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.231.0) + increase (1.232.0) cgi connection_pool diff --git a/README.md b/README.md index 927202d9..54dea5b5 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.231.0" +gem "increase", "~> 1.232.0" ``` diff --git a/lib/increase/models/card_payment.rb b/lib/increase/models/card_payment.rb index e051fcd2..a741a146 100644 --- a/lib/increase/models/card_payment.rb +++ b/lib/increase/models/card_payment.rb @@ -318,6 +318,13 @@ class CardAuthentication < Increase::Internal::Type::BaseModel # @return [String] required :id, String + # @!attribute access_control_server_transaction_id + # A unique identifier assigned by the Access Control Server (us) for this + # transaction. + # + # @return [String] + required :access_control_server_transaction_id, String + # @!attribute billing_address_city # The city of the cardholder billing address associated with the card used for # this purchase. @@ -432,6 +439,13 @@ class CardAuthentication < Increase::Internal::Type::BaseModel # @return [Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel] required :device_channel, -> { Increase::CardPayment::Element::CardAuthentication::DeviceChannel } + # @!attribute directory_server_transaction_id + # A unique identifier assigned by the Directory Server (the card network) for this + # transaction. + # + # @return [String] + required :directory_server_transaction_id, String + # @!attribute merchant_acceptor_id # The merchant identifier (commonly abbreviated as MID) of the merchant the card # is transacting with. @@ -518,12 +532,69 @@ class CardAuthentication < Increase::Internal::Type::BaseModel # @return [String] required :requestor_url, String + # @!attribute shipping_address_city + # The city of the shipping address associated with this purchase. + # + # @return [String, nil] + required :shipping_address_city, String, nil?: true + + # @!attribute shipping_address_country + # The country of the shipping address associated with this purchase. + # + # @return [String, nil] + required :shipping_address_country, String, nil?: true + + # @!attribute shipping_address_line1 + # The first line of the shipping address associated with this purchase. + # + # @return [String, nil] + required :shipping_address_line1, String, nil?: true + + # @!attribute shipping_address_line2 + # The second line of the shipping address associated with this purchase. + # + # @return [String, nil] + required :shipping_address_line2, String, nil?: true + + # @!attribute shipping_address_line3 + # The third line of the shipping address associated with this purchase. + # + # @return [String, nil] + required :shipping_address_line3, String, nil?: true + + # @!attribute shipping_address_postal_code + # The postal code of the shipping address associated with this purchase. + # + # @return [String, nil] + required :shipping_address_postal_code, String, nil?: true + + # @!attribute shipping_address_state + # The US state of the shipping address associated with this purchase. + # + # @return [String, nil] + required :shipping_address_state, String, nil?: true + # @!attribute status # The status of the card authentication. # # @return [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::Status] required :status, enum: -> { Increase::CardPayment::Element::CardAuthentication::Status } + # @!attribute three_d_secure_server_transaction_id + # A unique identifier assigned by the 3DS Server initiating the authentication + # attempt for this transaction. + # + # @return [String] + required :three_d_secure_server_transaction_id, String + + # @!attribute transaction_type + # The type of transaction being authenticated. + # + # @return [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::TransactionType, nil] + required :transaction_type, + enum: -> { Increase::CardPayment::Element::CardAuthentication::TransactionType }, + nil?: true + # @!attribute type # A constant representing the object's type. For this resource it will always be # `card_authentication`. @@ -531,7 +602,7 @@ class CardAuthentication < Increase::Internal::Type::BaseModel # @return [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::Type] required :type, enum: -> { Increase::CardPayment::Element::CardAuthentication::Type } - # @!method initialize(id:, billing_address_city:, billing_address_country:, billing_address_line1:, billing_address_line2:, billing_address_line3:, billing_address_postal_code:, billing_address_state:, card_id:, card_payment_id:, cardholder_email:, cardholder_name:, category:, challenge:, created_at:, deny_reason:, device_channel:, merchant_acceptor_id:, merchant_category_code:, merchant_country:, merchant_name:, prior_card_authentication_id:, purchase_amount:, purchase_currency:, real_time_decision_id:, requestor_authentication_indicator:, requestor_challenge_indicator:, requestor_name:, requestor_url:, status:, type:) + # @!method initialize(id:, access_control_server_transaction_id:, billing_address_city:, billing_address_country:, billing_address_line1:, billing_address_line2:, billing_address_line3:, billing_address_postal_code:, billing_address_state:, card_id:, card_payment_id:, cardholder_email:, cardholder_name:, category:, challenge:, created_at:, deny_reason:, device_channel:, directory_server_transaction_id:, merchant_acceptor_id:, merchant_category_code:, merchant_country:, merchant_name:, prior_card_authentication_id:, purchase_amount:, purchase_currency:, real_time_decision_id:, requestor_authentication_indicator:, requestor_challenge_indicator:, requestor_name:, requestor_url:, shipping_address_city:, shipping_address_country:, shipping_address_line1:, shipping_address_line2:, shipping_address_line3:, shipping_address_postal_code:, shipping_address_state:, status:, three_d_secure_server_transaction_id:, transaction_type:, type:) # Some parameter documentations has been truncated, see # {Increase::Models::CardPayment::Element::CardAuthentication} for more details. # @@ -541,6 +612,8 @@ class CardAuthentication < Increase::Internal::Type::BaseModel # # @param id [String] The Card Authentication identifier. # + # @param access_control_server_transaction_id [String] A unique identifier assigned by the Access Control Server (us) for this transact + # # @param billing_address_city [String, nil] The city of the cardholder billing address associated with the card used for thi # # @param billing_address_country [String, nil] The country of the cardholder billing address associated with the card used for @@ -573,6 +646,8 @@ class CardAuthentication < Increase::Internal::Type::BaseModel # # @param device_channel [Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel] The device channel of the card authentication attempt. # + # @param directory_server_transaction_id [String] A unique identifier assigned by the Directory Server (the card network) for this + # # @param merchant_acceptor_id [String] The merchant identifier (commonly abbreviated as MID) of the merchant the card i # # @param merchant_category_code [String] The Merchant Category Code (commonly abbreviated as MCC) of the merchant the car @@ -597,8 +672,26 @@ class CardAuthentication < Increase::Internal::Type::BaseModel # # @param requestor_url [String] The URL of the 3DS requestor. # + # @param shipping_address_city [String, nil] The city of the shipping address associated with this purchase. + # + # @param shipping_address_country [String, nil] The country of the shipping address associated with this purchase. + # + # @param shipping_address_line1 [String, nil] The first line of the shipping address associated with this purchase. + # + # @param shipping_address_line2 [String, nil] The second line of the shipping address associated with this purchase. + # + # @param shipping_address_line3 [String, nil] The third line of the shipping address associated with this purchase. + # + # @param shipping_address_postal_code [String, nil] The postal code of the shipping address associated with this purchase. + # + # @param shipping_address_state [String, nil] The US state of the shipping address associated with this purchase. + # # @param status [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::Status] The status of the card authentication. # + # @param three_d_secure_server_transaction_id [String] A unique identifier assigned by the 3DS Server initiating the authentication att + # + # @param transaction_type [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::TransactionType, nil] The type of transaction being authenticated. + # # @param type [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::Type] A constant representing the object's type. For this resource it will always be ` # The category of the card authentication attempt. @@ -776,12 +869,24 @@ class DeviceChannel < Increase::Internal::Type::BaseModel required :category, enum: -> { Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Category } - # @!method initialize(browser:, category:) + # @!attribute merchant_initiated + # Fields specific to merchant initiated transactions. + # + # @return [Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated, nil] + required :merchant_initiated, + -> { + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated + }, + nil?: true + + # @!method initialize(browser:, category:, merchant_initiated:) # The device channel of the card authentication attempt. # # @param browser [Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::Browser, nil] Fields specific to the browser device channel. # # @param category [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::Category] The category of the device channel. + # + # @param merchant_initiated [Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated, nil] Fields specific to merchant initiated transactions. # @see Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel#browser class Browser < Increase::Internal::Type::BaseModel @@ -867,6 +972,88 @@ module Category # @!method self.values # @return [Array] end + + # @see Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel#merchant_initiated + class MerchantInitiated < Increase::Internal::Type::BaseModel + # @!attribute indicator + # The merchant initiated indicator for the transaction. + # + # @return [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator] + required :indicator, + enum: -> { Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator } + + # @!method initialize(indicator:) + # Fields specific to merchant initiated transactions. + # + # @param indicator [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator] The merchant initiated indicator for the transaction. + + # The merchant initiated indicator for the transaction. + # + # @see Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated#indicator + module Indicator + extend Increase::Internal::Type::Enum + + # Recurring transaction. + RECURRING_TRANSACTION = :recurring_transaction + + # Installment transaction. + INSTALLMENT_TRANSACTION = :installment_transaction + + # Add card. + ADD_CARD = :add_card + + # Maintain card information. + MAINTAIN_CARD_INFORMATION = :maintain_card_information + + # Account verification. + ACCOUNT_VERIFICATION = :account_verification + + # Split or delayed shipment. + SPLIT_DELAYED_SHIPMENT = :split_delayed_shipment + + # Top up. + TOP_UP = :top_up + + # Mail order. + MAIL_ORDER = :mail_order + + # Telephone order. + TELEPHONE_ORDER = :telephone_order + + # Whitelist status check. + WHITELIST_STATUS_CHECK = :whitelist_status_check + + # Other payment. + OTHER_PAYMENT = :other_payment + + # Billing agreement. + BILLING_AGREEMENT = :billing_agreement + + # Device binding status check. + DEVICE_BINDING_STATUS_CHECK = :device_binding_status_check + + # Card security code status check. + CARD_SECURITY_CODE_STATUS_CHECK = :card_security_code_status_check + + # Delayed shipment. + DELAYED_SHIPMENT = :delayed_shipment + + # Split payment. + SPLIT_PAYMENT = :split_payment + + # FIDO credential deletion. + FIDO_CREDENTIAL_DELETION = :fido_credential_deletion + + # FIDO credential registration. + FIDO_CREDENTIAL_REGISTRATION = :fido_credential_registration + + # Decoupled authentication fallback. + DECOUPLED_AUTHENTICATION_FALLBACK = :decoupled_authentication_fallback + + # @!method self.values + # @return [Array] + end + end end # The 3DS requestor authentication indicator describes why the authentication @@ -979,6 +1166,31 @@ module Status # @return [Array] end + # The type of transaction being authenticated. + # + # @see Increase::Models::CardPayment::Element::CardAuthentication#transaction_type + module TransactionType + extend Increase::Internal::Type::Enum + + # Purchase of goods or services. + GOODS_SERVICE_PURCHASE = :goods_service_purchase + + # Check acceptance. + CHECK_ACCEPTANCE = :check_acceptance + + # Account funding. + ACCOUNT_FUNDING = :account_funding + + # Quasi-cash transaction. + QUASI_CASH_TRANSACTION = :quasi_cash_transaction + + # Prepaid activation and load. + PREPAID_ACTIVATION_AND_LOAD = :prepaid_activation_and_load + + # @!method self.values + # @return [Array] + end + # A constant representing the object's type. For this resource it will always be # `card_authentication`. # diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 4ff11179..e4326031 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.231.0" + VERSION = "1.232.0" end diff --git a/rbi/increase/models/card_payment.rbi b/rbi/increase/models/card_payment.rbi index 2c750a70..10e3a63b 100644 --- a/rbi/increase/models/card_payment.rbi +++ b/rbi/increase/models/card_payment.rbi @@ -626,6 +626,11 @@ module Increase sig { returns(String) } attr_accessor :id + # A unique identifier assigned by the Access Control Server (us) for this + # transaction. + sig { returns(String) } + attr_accessor :access_control_server_transaction_id + # The city of the cardholder billing address associated with the card used for # this purchase. sig { returns(T.nilable(String)) } @@ -738,6 +743,11 @@ module Increase end attr_writer :device_channel + # A unique identifier assigned by the Directory Server (the card network) for this + # transaction. + sig { returns(String) } + attr_accessor :directory_server_transaction_id + # The merchant identifier (commonly abbreviated as MID) of the merchant the card # is transacting with. sig { returns(String) } @@ -804,6 +814,34 @@ module Increase sig { returns(String) } attr_accessor :requestor_url + # The city of the shipping address associated with this purchase. + sig { returns(T.nilable(String)) } + attr_accessor :shipping_address_city + + # The country of the shipping address associated with this purchase. + sig { returns(T.nilable(String)) } + attr_accessor :shipping_address_country + + # The first line of the shipping address associated with this purchase. + sig { returns(T.nilable(String)) } + attr_accessor :shipping_address_line1 + + # The second line of the shipping address associated with this purchase. + sig { returns(T.nilable(String)) } + attr_accessor :shipping_address_line2 + + # The third line of the shipping address associated with this purchase. + sig { returns(T.nilable(String)) } + attr_accessor :shipping_address_line3 + + # The postal code of the shipping address associated with this purchase. + sig { returns(T.nilable(String)) } + attr_accessor :shipping_address_postal_code + + # The US state of the shipping address associated with this purchase. + sig { returns(T.nilable(String)) } + attr_accessor :shipping_address_state + # The status of the card authentication. sig do returns( @@ -812,6 +850,21 @@ module Increase end attr_accessor :status + # A unique identifier assigned by the 3DS Server initiating the authentication + # attempt for this transaction. + sig { returns(String) } + attr_accessor :three_d_secure_server_transaction_id + + # The type of transaction being authenticated. + sig do + returns( + T.nilable( + Increase::CardPayment::Element::CardAuthentication::TransactionType::TaggedSymbol + ) + ) + end + attr_accessor :transaction_type + # A constant representing the object's type. For this resource it will always be # `card_authentication`. sig do @@ -827,6 +880,7 @@ module Increase sig do params( id: String, + access_control_server_transaction_id: String, billing_address_city: T.nilable(String), billing_address_country: T.nilable(String), billing_address_line1: T.nilable(String), @@ -853,6 +907,7 @@ module Increase ), device_channel: Increase::CardPayment::Element::CardAuthentication::DeviceChannel::OrHash, + directory_server_transaction_id: String, merchant_acceptor_id: String, merchant_category_code: String, merchant_country: String, @@ -871,8 +926,20 @@ module Increase ), requestor_name: String, requestor_url: String, + shipping_address_city: T.nilable(String), + shipping_address_country: T.nilable(String), + shipping_address_line1: T.nilable(String), + shipping_address_line2: T.nilable(String), + shipping_address_line3: T.nilable(String), + shipping_address_postal_code: T.nilable(String), + shipping_address_state: T.nilable(String), status: Increase::CardPayment::Element::CardAuthentication::Status::OrSymbol, + three_d_secure_server_transaction_id: String, + transaction_type: + T.nilable( + Increase::CardPayment::Element::CardAuthentication::TransactionType::OrSymbol + ), type: Increase::CardPayment::Element::CardAuthentication::Type::OrSymbol ).returns(T.attached_class) @@ -880,6 +947,9 @@ module Increase def self.new( # The Card Authentication identifier. id:, + # A unique identifier assigned by the Access Control Server (us) for this + # transaction. + access_control_server_transaction_id:, # The city of the cardholder billing address associated with the card used for # this purchase. billing_address_city:, @@ -920,6 +990,9 @@ module Increase deny_reason:, # The device channel of the card authentication attempt. device_channel:, + # A unique identifier assigned by the Directory Server (the card network) for this + # transaction. + directory_server_transaction_id:, # The merchant identifier (commonly abbreviated as MID) of the merchant the card # is transacting with. merchant_acceptor_id:, @@ -950,8 +1023,27 @@ module Increase requestor_name:, # The URL of the 3DS requestor. requestor_url:, + # The city of the shipping address associated with this purchase. + shipping_address_city:, + # The country of the shipping address associated with this purchase. + shipping_address_country:, + # The first line of the shipping address associated with this purchase. + shipping_address_line1:, + # The second line of the shipping address associated with this purchase. + shipping_address_line2:, + # The third line of the shipping address associated with this purchase. + shipping_address_line3:, + # The postal code of the shipping address associated with this purchase. + shipping_address_postal_code:, + # The US state of the shipping address associated with this purchase. + shipping_address_state:, # The status of the card authentication. status:, + # A unique identifier assigned by the 3DS Server initiating the authentication + # attempt for this transaction. + three_d_secure_server_transaction_id:, + # The type of transaction being authenticated. + transaction_type:, # A constant representing the object's type. For this resource it will always be # `card_authentication`. type: @@ -962,6 +1054,7 @@ module Increase override.returns( { id: String, + access_control_server_transaction_id: String, billing_address_city: T.nilable(String), billing_address_country: T.nilable(String), billing_address_line1: T.nilable(String), @@ -988,6 +1081,7 @@ module Increase ), device_channel: Increase::CardPayment::Element::CardAuthentication::DeviceChannel, + directory_server_transaction_id: String, merchant_acceptor_id: String, merchant_category_code: String, merchant_country: String, @@ -1006,8 +1100,20 @@ module Increase ), requestor_name: String, requestor_url: String, + shipping_address_city: T.nilable(String), + shipping_address_country: T.nilable(String), + shipping_address_line1: T.nilable(String), + shipping_address_line2: T.nilable(String), + shipping_address_line3: T.nilable(String), + shipping_address_postal_code: T.nilable(String), + shipping_address_state: T.nilable(String), status: Increase::CardPayment::Element::CardAuthentication::Status::TaggedSymbol, + three_d_secure_server_transaction_id: String, + transaction_type: + T.nilable( + Increase::CardPayment::Element::CardAuthentication::TransactionType::TaggedSymbol + ), type: Increase::CardPayment::Element::CardAuthentication::Type::TaggedSymbol } @@ -1381,6 +1487,26 @@ module Increase end attr_accessor :category + # Fields specific to merchant initiated transactions. + sig do + returns( + T.nilable( + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated + ) + ) + end + attr_reader :merchant_initiated + + sig do + params( + merchant_initiated: + T.nilable( + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::OrHash + ) + ).void + end + attr_writer :merchant_initiated + # The device channel of the card authentication attempt. sig do params( @@ -1389,14 +1515,20 @@ module Increase Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser::OrHash ), category: - Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Category::OrSymbol + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Category::OrSymbol, + merchant_initiated: + T.nilable( + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::OrHash + ) ).returns(T.attached_class) end def self.new( # Fields specific to the browser device channel. browser:, # The category of the device channel. - category: + category:, + # Fields specific to merchant initiated transactions. + merchant_initiated: ) end @@ -1408,7 +1540,11 @@ module Increase Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser ), category: - Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Category::TaggedSymbol + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Category::TaggedSymbol, + merchant_initiated: + T.nilable( + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated + ) } ) end @@ -1577,6 +1713,205 @@ module Increase def self.values end end + + class MerchantInitiated < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated, + Increase::Internal::AnyHash + ) + end + + # The merchant initiated indicator for the transaction. + sig do + returns( + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::TaggedSymbol + ) + end + attr_accessor :indicator + + # Fields specific to merchant initiated transactions. + sig do + params( + indicator: + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # The merchant initiated indicator for the transaction. + indicator: + ) + end + + sig do + override.returns( + { + indicator: + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::TaggedSymbol + } + ) + end + def to_hash + end + + # The merchant initiated indicator for the transaction. + module Indicator + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # Recurring transaction. + RECURRING_TRANSACTION = + T.let( + :recurring_transaction, + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::TaggedSymbol + ) + + # Installment transaction. + INSTALLMENT_TRANSACTION = + T.let( + :installment_transaction, + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::TaggedSymbol + ) + + # Add card. + ADD_CARD = + T.let( + :add_card, + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::TaggedSymbol + ) + + # Maintain card information. + MAINTAIN_CARD_INFORMATION = + T.let( + :maintain_card_information, + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::TaggedSymbol + ) + + # Account verification. + ACCOUNT_VERIFICATION = + T.let( + :account_verification, + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::TaggedSymbol + ) + + # Split or delayed shipment. + SPLIT_DELAYED_SHIPMENT = + T.let( + :split_delayed_shipment, + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::TaggedSymbol + ) + + # Top up. + TOP_UP = + T.let( + :top_up, + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::TaggedSymbol + ) + + # Mail order. + MAIL_ORDER = + T.let( + :mail_order, + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::TaggedSymbol + ) + + # Telephone order. + TELEPHONE_ORDER = + T.let( + :telephone_order, + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::TaggedSymbol + ) + + # Whitelist status check. + WHITELIST_STATUS_CHECK = + T.let( + :whitelist_status_check, + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::TaggedSymbol + ) + + # Other payment. + OTHER_PAYMENT = + T.let( + :other_payment, + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::TaggedSymbol + ) + + # Billing agreement. + BILLING_AGREEMENT = + T.let( + :billing_agreement, + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::TaggedSymbol + ) + + # Device binding status check. + DEVICE_BINDING_STATUS_CHECK = + T.let( + :device_binding_status_check, + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::TaggedSymbol + ) + + # Card security code status check. + CARD_SECURITY_CODE_STATUS_CHECK = + T.let( + :card_security_code_status_check, + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::TaggedSymbol + ) + + # Delayed shipment. + DELAYED_SHIPMENT = + T.let( + :delayed_shipment, + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::TaggedSymbol + ) + + # Split payment. + SPLIT_PAYMENT = + T.let( + :split_payment, + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::TaggedSymbol + ) + + # FIDO credential deletion. + FIDO_CREDENTIAL_DELETION = + T.let( + :fido_credential_deletion, + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::TaggedSymbol + ) + + # FIDO credential registration. + FIDO_CREDENTIAL_REGISTRATION = + T.let( + :fido_credential_registration, + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::TaggedSymbol + ) + + # Decoupled authentication fallback. + DECOUPLED_AUTHENTICATION_FALLBACK = + T.let( + :decoupled_authentication_fallback, + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::Indicator::TaggedSymbol + ] + ) + end + def self.values + end + end + end end # The 3DS requestor authentication indicator describes why the authentication @@ -1827,6 +2162,65 @@ module Increase end end + # The type of transaction being authenticated. + module TransactionType + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Increase::CardPayment::Element::CardAuthentication::TransactionType + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # Purchase of goods or services. + GOODS_SERVICE_PURCHASE = + T.let( + :goods_service_purchase, + Increase::CardPayment::Element::CardAuthentication::TransactionType::TaggedSymbol + ) + + # Check acceptance. + CHECK_ACCEPTANCE = + T.let( + :check_acceptance, + Increase::CardPayment::Element::CardAuthentication::TransactionType::TaggedSymbol + ) + + # Account funding. + ACCOUNT_FUNDING = + T.let( + :account_funding, + Increase::CardPayment::Element::CardAuthentication::TransactionType::TaggedSymbol + ) + + # Quasi-cash transaction. + QUASI_CASH_TRANSACTION = + T.let( + :quasi_cash_transaction, + Increase::CardPayment::Element::CardAuthentication::TransactionType::TaggedSymbol + ) + + # Prepaid activation and load. + PREPAID_ACTIVATION_AND_LOAD = + T.let( + :prepaid_activation_and_load, + Increase::CardPayment::Element::CardAuthentication::TransactionType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Increase::CardPayment::Element::CardAuthentication::TransactionType::TaggedSymbol + ] + ) + end + def self.values + end + end + # A constant representing the object's type. For this resource it will always be # `card_authentication`. module Type diff --git a/sig/increase/models/card_payment.rbs b/sig/increase/models/card_payment.rbs index b844ddd6..b085d414 100644 --- a/sig/increase/models/card_payment.rbs +++ b/sig/increase/models/card_payment.rbs @@ -210,6 +210,7 @@ module Increase type card_authentication = { id: String, + access_control_server_transaction_id: String, billing_address_city: String?, billing_address_country: String?, :billing_address_line1 => String?, @@ -226,6 +227,7 @@ module Increase created_at: Time, deny_reason: Increase::Models::CardPayment::Element::CardAuthentication::deny_reason?, device_channel: Increase::CardPayment::Element::CardAuthentication::DeviceChannel, + directory_server_transaction_id: String, merchant_acceptor_id: String, merchant_category_code: String, merchant_country: String, @@ -238,13 +240,24 @@ module Increase requestor_challenge_indicator: Increase::Models::CardPayment::Element::CardAuthentication::requestor_challenge_indicator?, requestor_name: String, requestor_url: String, + shipping_address_city: String?, + shipping_address_country: String?, + :shipping_address_line1 => String?, + :shipping_address_line2 => String?, + :shipping_address_line3 => String?, + shipping_address_postal_code: String?, + shipping_address_state: String?, status: Increase::Models::CardPayment::Element::CardAuthentication::status, + three_d_secure_server_transaction_id: String, + transaction_type: Increase::Models::CardPayment::Element::CardAuthentication::transaction_type?, type: Increase::Models::CardPayment::Element::CardAuthentication::type_ } class CardAuthentication < Increase::Internal::Type::BaseModel attr_accessor id: String + attr_accessor access_control_server_transaction_id: String + attr_accessor billing_address_city: String? attr_accessor billing_address_country: String? @@ -277,6 +290,8 @@ module Increase attr_accessor device_channel: Increase::CardPayment::Element::CardAuthentication::DeviceChannel + attr_accessor directory_server_transaction_id: String + attr_accessor merchant_acceptor_id: String attr_accessor merchant_category_code: String @@ -301,12 +316,31 @@ module Increase attr_accessor requestor_url: String + attr_accessor shipping_address_city: String? + + attr_accessor shipping_address_country: String? + + attr_accessor shipping_address_line1: String? + + attr_accessor shipping_address_line2: String? + + attr_accessor shipping_address_line3: String? + + attr_accessor shipping_address_postal_code: String? + + attr_accessor shipping_address_state: String? + attr_accessor status: Increase::Models::CardPayment::Element::CardAuthentication::status + attr_accessor three_d_secure_server_transaction_id: String + + attr_accessor transaction_type: Increase::Models::CardPayment::Element::CardAuthentication::transaction_type? + attr_accessor type: Increase::Models::CardPayment::Element::CardAuthentication::type_ def initialize: ( id: String, + access_control_server_transaction_id: String, billing_address_city: String?, billing_address_country: String?, billing_address_line1: String?, @@ -323,6 +357,7 @@ module Increase created_at: Time, deny_reason: Increase::Models::CardPayment::Element::CardAuthentication::deny_reason?, device_channel: Increase::CardPayment::Element::CardAuthentication::DeviceChannel, + directory_server_transaction_id: String, merchant_acceptor_id: String, merchant_category_code: String, merchant_country: String, @@ -335,12 +370,22 @@ module Increase requestor_challenge_indicator: Increase::Models::CardPayment::Element::CardAuthentication::requestor_challenge_indicator?, requestor_name: String, requestor_url: String, + shipping_address_city: String?, + shipping_address_country: String?, + shipping_address_line1: String?, + shipping_address_line2: String?, + shipping_address_line3: String?, + shipping_address_postal_code: String?, + shipping_address_state: String?, status: Increase::Models::CardPayment::Element::CardAuthentication::status, + three_d_secure_server_transaction_id: String, + transaction_type: Increase::Models::CardPayment::Element::CardAuthentication::transaction_type?, type: Increase::Models::CardPayment::Element::CardAuthentication::type_ ) -> void def to_hash: -> { id: String, + access_control_server_transaction_id: String, billing_address_city: String?, billing_address_country: String?, :billing_address_line1 => String?, @@ -357,6 +402,7 @@ module Increase created_at: Time, deny_reason: Increase::Models::CardPayment::Element::CardAuthentication::deny_reason?, device_channel: Increase::CardPayment::Element::CardAuthentication::DeviceChannel, + directory_server_transaction_id: String, merchant_acceptor_id: String, merchant_category_code: String, merchant_country: String, @@ -369,7 +415,16 @@ module Increase requestor_challenge_indicator: Increase::Models::CardPayment::Element::CardAuthentication::requestor_challenge_indicator?, requestor_name: String, requestor_url: String, + shipping_address_city: String?, + shipping_address_country: String?, + :shipping_address_line1 => String?, + :shipping_address_line2 => String?, + :shipping_address_line3 => String?, + shipping_address_postal_code: String?, + shipping_address_state: String?, status: Increase::Models::CardPayment::Element::CardAuthentication::status, + three_d_secure_server_transaction_id: String, + transaction_type: Increase::Models::CardPayment::Element::CardAuthentication::transaction_type?, type: Increase::Models::CardPayment::Element::CardAuthentication::type_ } @@ -512,7 +567,8 @@ module Increase type device_channel = { browser: Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser?, - category: Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::category + category: Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::category, + merchant_initiated: Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated? } class DeviceChannel < Increase::Internal::Type::BaseModel @@ -520,14 +576,18 @@ module Increase attr_accessor category: Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::category + attr_accessor merchant_initiated: Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated? + def initialize: ( browser: Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser?, - category: Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::category + category: Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::category, + merchant_initiated: Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated? ) -> void def to_hash: -> { browser: Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser?, - category: Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::category + category: Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::category, + merchant_initiated: Increase::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated? } type browser = @@ -597,6 +657,107 @@ module Increase def self?.values: -> ::Array[Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::category] end + + type merchant_initiated = + { + indicator: Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::indicator + } + + class MerchantInitiated < Increase::Internal::Type::BaseModel + attr_accessor indicator: Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::indicator + + def initialize: ( + indicator: Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::indicator + ) -> void + + def to_hash: -> { + indicator: Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::indicator + } + + type indicator = + :recurring_transaction + | :installment_transaction + | :add_card + | :maintain_card_information + | :account_verification + | :split_delayed_shipment + | :top_up + | :mail_order + | :telephone_order + | :whitelist_status_check + | :other_payment + | :billing_agreement + | :device_binding_status_check + | :card_security_code_status_check + | :delayed_shipment + | :split_payment + | :fido_credential_deletion + | :fido_credential_registration + | :decoupled_authentication_fallback + + module Indicator + extend Increase::Internal::Type::Enum + + # Recurring transaction. + RECURRING_TRANSACTION: :recurring_transaction + + # Installment transaction. + INSTALLMENT_TRANSACTION: :installment_transaction + + # Add card. + ADD_CARD: :add_card + + # Maintain card information. + MAINTAIN_CARD_INFORMATION: :maintain_card_information + + # Account verification. + ACCOUNT_VERIFICATION: :account_verification + + # Split or delayed shipment. + SPLIT_DELAYED_SHIPMENT: :split_delayed_shipment + + # Top up. + TOP_UP: :top_up + + # Mail order. + MAIL_ORDER: :mail_order + + # Telephone order. + TELEPHONE_ORDER: :telephone_order + + # Whitelist status check. + WHITELIST_STATUS_CHECK: :whitelist_status_check + + # Other payment. + OTHER_PAYMENT: :other_payment + + # Billing agreement. + BILLING_AGREEMENT: :billing_agreement + + # Device binding status check. + DEVICE_BINDING_STATUS_CHECK: :device_binding_status_check + + # Card security code status check. + CARD_SECURITY_CODE_STATUS_CHECK: :card_security_code_status_check + + # Delayed shipment. + DELAYED_SHIPMENT: :delayed_shipment + + # Split payment. + SPLIT_PAYMENT: :split_payment + + # FIDO credential deletion. + FIDO_CREDENTIAL_DELETION: :fido_credential_deletion + + # FIDO credential registration. + FIDO_CREDENTIAL_REGISTRATION: :fido_credential_registration + + # Decoupled authentication fallback. + DECOUPLED_AUTHENTICATION_FALLBACK: :decoupled_authentication_fallback + + def self?.values: -> ::Array[Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::MerchantInitiated::indicator] + end + end end type requestor_authentication_indicator = @@ -723,6 +884,34 @@ module Increase def self?.values: -> ::Array[Increase::Models::CardPayment::Element::CardAuthentication::status] end + type transaction_type = + :goods_service_purchase + | :check_acceptance + | :account_funding + | :quasi_cash_transaction + | :prepaid_activation_and_load + + module TransactionType + extend Increase::Internal::Type::Enum + + # Purchase of goods or services. + GOODS_SERVICE_PURCHASE: :goods_service_purchase + + # Check acceptance. + CHECK_ACCEPTANCE: :check_acceptance + + # Account funding. + ACCOUNT_FUNDING: :account_funding + + # Quasi-cash transaction. + QUASI_CASH_TRANSACTION: :quasi_cash_transaction + + # Prepaid activation and load. + PREPAID_ACTIVATION_AND_LOAD: :prepaid_activation_and_load + + def self?.values: -> ::Array[Increase::Models::CardPayment::Element::CardAuthentication::transaction_type] + end + type type_ = :card_authentication module Type