Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.16.0"
".": "1.17.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
increase (1.16.0)
increase (1.17.0)
connection_pool

GEM
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "increase", "~> 1.16.0"
gem "increase", "~> 1.17.0"
```

<!-- x-release-please-end -->
Expand Down
93 changes: 68 additions & 25 deletions lib/increase/models/simulations/card_authorization_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -116,14 +109,22 @@ 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.
#
# @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.
#
Expand All @@ -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
Expand All @@ -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}]
Expand Down Expand Up @@ -232,21 +233,6 @@ module DeclineReason
# @return [Array<Symbol>]
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<Symbol>]
end

class NetworkDetails < Increase::Internal::Type::BaseModel
# @!attribute visa
# Fields specific to the Visa network.
Expand Down Expand Up @@ -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<Symbol>]
end
end
end
end
end
Expand Down
6 changes: 3 additions & 3 deletions lib/increase/resources/simulations/card_authorizations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand All @@ -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
Expand All @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion lib/increase/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Increase
VERSION = "1.16.0"
VERSION = "1.17.0"
end
Loading