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.18.1"
".": "1.19.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-c88cd4c32889125cd4b50b7d6c53436b4bf61f3f1fa4acbb7494e778aa891f40.yml
openapi_spec_hash: d381528847ebbd39bbf825f9fe678925
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-976ae14d2349a3599f9bd33dba52b3c12c265493a8af9e581c71b2e819b8de04.yml
openapi_spec_hash: d8a9fef4dfe082acdf834ac0339e800c
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.19.0 (2025-07-29)

Full Changelog: [v1.18.1...v1.19.0](https://github.com/Increase/increase-ruby/compare/v1.18.1...v1.19.0)

### Features

* **api:** api update ([20c3bcb](https://github.com/Increase/increase-ruby/commit/20c3bcbf49471dabea24969e2c926b1288318d80))

## 1.18.1 (2025-07-28)

Full Changelog: [v1.18.0...v1.18.1](https://github.com/Increase/increase-ruby/compare/v1.18.0...v1.18.1)
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.18.1)
increase (1.19.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.18.1"
gem "increase", "~> 1.19.0"
```

<!-- x-release-please-end -->
Expand Down
29 changes: 28 additions & 1 deletion lib/increase/models/card_payment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4194,13 +4194,27 @@ class CardReversal < Increase::Internal::Type::BaseModel
# @return [String, nil]
required :pending_transaction_id, String, nil?: true

# @!attribute presentment_currency
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the reversal's
# presentment currency.
#
# @return [String]
required :presentment_currency, String

# @!attribute reversal_amount
# The amount of this reversal in the minor unit of the transaction's currency. For
# dollars, for example, this is cents.
#
# @return [Integer]
required :reversal_amount, Integer

# @!attribute reversal_presentment_amount
# The amount of this reversal in the minor unit of the transaction's presentment
# currency. For dollars, for example, this is cents.
#
# @return [Integer]
required :reversal_presentment_amount, Integer

# @!attribute reversal_reason
# Why this reversal was initiated.
#
Expand Down Expand Up @@ -4230,7 +4244,14 @@ class CardReversal < Increase::Internal::Type::BaseModel
# @return [Integer]
required :updated_authorization_amount, Integer

# @!method initialize(id:, card_authorization_id:, currency:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_descriptor:, merchant_postal_code:, merchant_state:, network:, network_identifiers:, pending_transaction_id:, reversal_amount:, reversal_reason:, terminal_id:, type:, updated_authorization_amount:)
# @!attribute updated_authorization_presentment_amount
# The amount left pending on the Card Authorization in the minor unit of the
# transaction's presentment currency. For dollars, for example, this is cents.
#
# @return [Integer]
required :updated_authorization_presentment_amount, Integer

# @!method initialize(id:, card_authorization_id:, currency:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_descriptor:, merchant_postal_code:, merchant_state:, network:, network_identifiers:, pending_transaction_id:, presentment_currency:, reversal_amount:, reversal_presentment_amount:, reversal_reason:, terminal_id:, type:, updated_authorization_amount:, updated_authorization_presentment_amount:)
# Some parameter documentations has been truncated, see
# {Increase::Models::CardPayment::Element::CardReversal} for more details.
#
Expand Down Expand Up @@ -4264,15 +4285,21 @@ class CardReversal < Increase::Internal::Type::BaseModel
#
# @param pending_transaction_id [String, nil] The identifier of the Pending Transaction associated with this Card Reversal.
#
# @param presentment_currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the reversal's p
#
# @param reversal_amount [Integer] The amount of this reversal in the minor unit of the transaction's currency. For
#
# @param reversal_presentment_amount [Integer] The amount of this reversal in the minor unit of the transaction's presentment c
#
# @param reversal_reason [Symbol, Increase::Models::CardPayment::Element::CardReversal::ReversalReason, nil] Why this reversal was initiated.
#
# @param terminal_id [String, nil] The terminal identifier (commonly abbreviated as TID) of the terminal the card i
#
# @param type [Symbol, Increase::Models::CardPayment::Element::CardReversal::Type] A constant representing the object's type. For this resource it will always be `
#
# @param updated_authorization_amount [Integer] The amount left pending on the Card Authorization in the minor unit of the trans
#
# @param updated_authorization_presentment_amount [Integer] The amount left pending on the Card Authorization in the minor unit of the trans

# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the reversal's
# currency.
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.18.1"
VERSION = "1.19.0"
end
36 changes: 33 additions & 3 deletions rbi/increase/models/card_payment.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -7729,11 +7729,21 @@ module Increase
sig { returns(T.nilable(String)) }
attr_accessor :pending_transaction_id

# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the reversal's
# presentment currency.
sig { returns(String) }
attr_accessor :presentment_currency

# The amount of this reversal in the minor unit of the transaction's currency. For
# dollars, for example, this is cents.
sig { returns(Integer) }
attr_accessor :reversal_amount

# The amount of this reversal in the minor unit of the transaction's presentment
# currency. For dollars, for example, this is cents.
sig { returns(Integer) }
attr_accessor :reversal_presentment_amount

# Why this reversal was initiated.
sig do
returns(
Expand Down Expand Up @@ -7763,6 +7773,11 @@ module Increase
sig { returns(Integer) }
attr_accessor :updated_authorization_amount

# The amount left pending on the Card Authorization in the minor unit of the
# transaction's presentment currency. For dollars, for example, this is cents.
sig { returns(Integer) }
attr_accessor :updated_authorization_presentment_amount

# A Card Reversal object. This field will be present in the JSON response if and
# only if `category` is equal to `card_reversal`. Card Reversals cancel parts of
# or the entirety of an existing Card Authorization.
Expand All @@ -7784,15 +7799,18 @@ module Increase
network_identifiers:
Increase::CardPayment::Element::CardReversal::NetworkIdentifiers::OrHash,
pending_transaction_id: T.nilable(String),
presentment_currency: String,
reversal_amount: Integer,
reversal_presentment_amount: Integer,
reversal_reason:
T.nilable(
Increase::CardPayment::Element::CardReversal::ReversalReason::OrSymbol
),
terminal_id: T.nilable(String),
type:
Increase::CardPayment::Element::CardReversal::Type::OrSymbol,
updated_authorization_amount: Integer
updated_authorization_amount: Integer,
updated_authorization_presentment_amount: Integer
).returns(T.attached_class)
end
def self.new(
Expand Down Expand Up @@ -7826,9 +7844,15 @@ module Increase
network_identifiers:,
# The identifier of the Pending Transaction associated with this Card Reversal.
pending_transaction_id:,
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the reversal's
# presentment currency.
presentment_currency:,
# The amount of this reversal in the minor unit of the transaction's currency. For
# dollars, for example, this is cents.
reversal_amount:,
# The amount of this reversal in the minor unit of the transaction's presentment
# currency. For dollars, for example, this is cents.
reversal_presentment_amount:,
# Why this reversal was initiated.
reversal_reason:,
# The terminal identifier (commonly abbreviated as TID) of the terminal the card
Expand All @@ -7839,7 +7863,10 @@ module Increase
type:,
# The amount left pending on the Card Authorization in the minor unit of the
# transaction's currency. For dollars, for example, this is cents.
updated_authorization_amount:
updated_authorization_amount:,
# The amount left pending on the Card Authorization in the minor unit of the
# transaction's presentment currency. For dollars, for example, this is cents.
updated_authorization_presentment_amount:
)
end

Expand All @@ -7862,15 +7889,18 @@ module Increase
network_identifiers:
Increase::CardPayment::Element::CardReversal::NetworkIdentifiers,
pending_transaction_id: T.nilable(String),
presentment_currency: String,
reversal_amount: Integer,
reversal_presentment_amount: Integer,
reversal_reason:
T.nilable(
Increase::CardPayment::Element::CardReversal::ReversalReason::TaggedSymbol
),
terminal_id: T.nilable(String),
type:
Increase::CardPayment::Element::CardReversal::Type::TaggedSymbol,
updated_authorization_amount: Integer
updated_authorization_amount: Integer,
updated_authorization_presentment_amount: Integer
}
)
end
Expand Down
21 changes: 18 additions & 3 deletions sig/increase/models/card_payment.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -3153,11 +3153,14 @@ module Increase
network: Increase::Models::CardPayment::Element::CardReversal::network,
network_identifiers: Increase::CardPayment::Element::CardReversal::NetworkIdentifiers,
pending_transaction_id: String?,
presentment_currency: String,
reversal_amount: Integer,
reversal_presentment_amount: Integer,
reversal_reason: Increase::Models::CardPayment::Element::CardReversal::reversal_reason?,
terminal_id: String?,
type: Increase::Models::CardPayment::Element::CardReversal::type_,
updated_authorization_amount: Integer
updated_authorization_amount: Integer,
updated_authorization_presentment_amount: Integer
}

class CardReversal < Increase::Internal::Type::BaseModel
Expand Down Expand Up @@ -3187,8 +3190,12 @@ module Increase

attr_accessor pending_transaction_id: String?

attr_accessor presentment_currency: String

attr_accessor reversal_amount: Integer

attr_accessor reversal_presentment_amount: Integer

attr_accessor reversal_reason: Increase::Models::CardPayment::Element::CardReversal::reversal_reason?

attr_accessor terminal_id: String?
Expand All @@ -3197,6 +3204,8 @@ module Increase

attr_accessor updated_authorization_amount: Integer

attr_accessor updated_authorization_presentment_amount: Integer

def initialize: (
id: String,
card_authorization_id: String,
Expand All @@ -3211,11 +3220,14 @@ module Increase
network: Increase::Models::CardPayment::Element::CardReversal::network,
network_identifiers: Increase::CardPayment::Element::CardReversal::NetworkIdentifiers,
pending_transaction_id: String?,
presentment_currency: String,
reversal_amount: Integer,
reversal_presentment_amount: Integer,
reversal_reason: Increase::Models::CardPayment::Element::CardReversal::reversal_reason?,
terminal_id: String?,
type: Increase::Models::CardPayment::Element::CardReversal::type_,
updated_authorization_amount: Integer
updated_authorization_amount: Integer,
updated_authorization_presentment_amount: Integer
) -> void

def to_hash: -> {
Expand All @@ -3232,11 +3244,14 @@ module Increase
network: Increase::Models::CardPayment::Element::CardReversal::network,
network_identifiers: Increase::CardPayment::Element::CardReversal::NetworkIdentifiers,
pending_transaction_id: String?,
presentment_currency: String,
reversal_amount: Integer,
reversal_presentment_amount: Integer,
reversal_reason: Increase::Models::CardPayment::Element::CardReversal::reversal_reason?,
terminal_id: String?,
type: Increase::Models::CardPayment::Element::CardReversal::type_,
updated_authorization_amount: Integer
updated_authorization_amount: Integer,
updated_authorization_presentment_amount: Integer
}

type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD
Expand Down