increase 1.18.0 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3332c07b59b7f7d84e03b5d3f4036e52007bcfda58a22074e6ec63caed4d152d
4
- data.tar.gz: c3d18d3dcc41f5d3e9389c3a3e67585e9669a84a06f82395925b67d6e70e0c5e
3
+ metadata.gz: a8476d0becb9c9d2db5ff90520cae280b4499af39da3f0b7ceec58b5e932916c
4
+ data.tar.gz: 7a0cc5b91079632782ed17863e8132a27ea3bd842d34e0948668d884f2f6b2ad
5
5
  SHA512:
6
- metadata.gz: db4d8dc156ca5853aac1e6a3728b578a9ae3a3a7f343f84684547388a99dab10e892e7e795b594d6cc0b9f136a8721d5c5e2c968b22fb36aef970e8f5f5fd8f2
7
- data.tar.gz: eb2790bfe5197beaa910ad89af0409050c3f97f35a618b036841653669213e20b9b45b2ba90cc65c26aa0d9c551737179e55adc41abf4cfebb0358f87f42e90e
6
+ metadata.gz: 6a62f040f556af044c712b15dd1f2302771e55aa33bb1233a04170e6683fe931eed3e2c3b1147bf9ff768ce07efe64df1c3b3dc7ba91ca129cbc7265859f4d84
7
+ data.tar.gz: cffae11ec750eb2455a0d9b514f40fde9efe871df2f4558cbdcc06da0bde35e101a23bed3b331ab0315528aaf621a4e418469d257649dcffcd7c864c960113c4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.19.0 (2025-07-29)
4
+
5
+ Full Changelog: [v1.18.1...v1.19.0](https://github.com/Increase/increase-ruby/compare/v1.18.1...v1.19.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([20c3bcb](https://github.com/Increase/increase-ruby/commit/20c3bcbf49471dabea24969e2c926b1288318d80))
10
+
11
+ ## 1.18.1 (2025-07-28)
12
+
13
+ Full Changelog: [v1.18.0...v1.18.1](https://github.com/Increase/increase-ruby/compare/v1.18.0...v1.18.1)
14
+
15
+ ### Bug Fixes
16
+
17
+ * **internal:** ensure sorbet test always runs serially ([3fadad9](https://github.com/Increase/increase-ruby/commit/3fadad9784a466584e85aefa67b223010d1d2437))
18
+
19
+
20
+ ### Chores
21
+
22
+ * update contribute.md ([123999a](https://github.com/Increase/increase-ruby/commit/123999a695d9b5c4b895f6743c8657a29fc4ef5b))
23
+
3
24
  ## 1.18.0 (2025-07-23)
4
25
 
5
26
  Full Changelog: [v1.17.0...v1.18.0](https://github.com/Increase/increase-ruby/compare/v1.17.0...v1.18.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "increase", "~> 1.18.0"
18
+ gem "increase", "~> 1.19.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -4194,6 +4194,13 @@ module Increase
4194
4194
  # @return [String, nil]
4195
4195
  required :pending_transaction_id, String, nil?: true
4196
4196
 
4197
+ # @!attribute presentment_currency
4198
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the reversal's
4199
+ # presentment currency.
4200
+ #
4201
+ # @return [String]
4202
+ required :presentment_currency, String
4203
+
4197
4204
  # @!attribute reversal_amount
4198
4205
  # The amount of this reversal in the minor unit of the transaction's currency. For
4199
4206
  # dollars, for example, this is cents.
@@ -4201,6 +4208,13 @@ module Increase
4201
4208
  # @return [Integer]
4202
4209
  required :reversal_amount, Integer
4203
4210
 
4211
+ # @!attribute reversal_presentment_amount
4212
+ # The amount of this reversal in the minor unit of the transaction's presentment
4213
+ # currency. For dollars, for example, this is cents.
4214
+ #
4215
+ # @return [Integer]
4216
+ required :reversal_presentment_amount, Integer
4217
+
4204
4218
  # @!attribute reversal_reason
4205
4219
  # Why this reversal was initiated.
4206
4220
  #
@@ -4230,7 +4244,14 @@ module Increase
4230
4244
  # @return [Integer]
4231
4245
  required :updated_authorization_amount, Integer
4232
4246
 
4233
- # @!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:)
4247
+ # @!attribute updated_authorization_presentment_amount
4248
+ # The amount left pending on the Card Authorization in the minor unit of the
4249
+ # transaction's presentment currency. For dollars, for example, this is cents.
4250
+ #
4251
+ # @return [Integer]
4252
+ required :updated_authorization_presentment_amount, Integer
4253
+
4254
+ # @!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:)
4234
4255
  # Some parameter documentations has been truncated, see
4235
4256
  # {Increase::Models::CardPayment::Element::CardReversal} for more details.
4236
4257
  #
@@ -4264,8 +4285,12 @@ module Increase
4264
4285
  #
4265
4286
  # @param pending_transaction_id [String, nil] The identifier of the Pending Transaction associated with this Card Reversal.
4266
4287
  #
4288
+ # @param presentment_currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the reversal's p
4289
+ #
4267
4290
  # @param reversal_amount [Integer] The amount of this reversal in the minor unit of the transaction's currency. For
4268
4291
  #
4292
+ # @param reversal_presentment_amount [Integer] The amount of this reversal in the minor unit of the transaction's presentment c
4293
+ #
4269
4294
  # @param reversal_reason [Symbol, Increase::Models::CardPayment::Element::CardReversal::ReversalReason, nil] Why this reversal was initiated.
4270
4295
  #
4271
4296
  # @param terminal_id [String, nil] The terminal identifier (commonly abbreviated as TID) of the terminal the card i
@@ -4273,6 +4298,8 @@ module Increase
4273
4298
  # @param type [Symbol, Increase::Models::CardPayment::Element::CardReversal::Type] A constant representing the object's type. For this resource it will always be `
4274
4299
  #
4275
4300
  # @param updated_authorization_amount [Integer] The amount left pending on the Card Authorization in the minor unit of the trans
4301
+ #
4302
+ # @param updated_authorization_presentment_amount [Integer] The amount left pending on the Card Authorization in the minor unit of the trans
4276
4303
 
4277
4304
  # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the reversal's
4278
4305
  # currency.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.18.0"
4
+ VERSION = "1.19.0"
5
5
  end
@@ -7729,11 +7729,21 @@ module Increase
7729
7729
  sig { returns(T.nilable(String)) }
7730
7730
  attr_accessor :pending_transaction_id
7731
7731
 
7732
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the reversal's
7733
+ # presentment currency.
7734
+ sig { returns(String) }
7735
+ attr_accessor :presentment_currency
7736
+
7732
7737
  # The amount of this reversal in the minor unit of the transaction's currency. For
7733
7738
  # dollars, for example, this is cents.
7734
7739
  sig { returns(Integer) }
7735
7740
  attr_accessor :reversal_amount
7736
7741
 
7742
+ # The amount of this reversal in the minor unit of the transaction's presentment
7743
+ # currency. For dollars, for example, this is cents.
7744
+ sig { returns(Integer) }
7745
+ attr_accessor :reversal_presentment_amount
7746
+
7737
7747
  # Why this reversal was initiated.
7738
7748
  sig do
7739
7749
  returns(
@@ -7763,6 +7773,11 @@ module Increase
7763
7773
  sig { returns(Integer) }
7764
7774
  attr_accessor :updated_authorization_amount
7765
7775
 
7776
+ # The amount left pending on the Card Authorization in the minor unit of the
7777
+ # transaction's presentment currency. For dollars, for example, this is cents.
7778
+ sig { returns(Integer) }
7779
+ attr_accessor :updated_authorization_presentment_amount
7780
+
7766
7781
  # A Card Reversal object. This field will be present in the JSON response if and
7767
7782
  # only if `category` is equal to `card_reversal`. Card Reversals cancel parts of
7768
7783
  # or the entirety of an existing Card Authorization.
@@ -7784,7 +7799,9 @@ module Increase
7784
7799
  network_identifiers:
7785
7800
  Increase::CardPayment::Element::CardReversal::NetworkIdentifiers::OrHash,
7786
7801
  pending_transaction_id: T.nilable(String),
7802
+ presentment_currency: String,
7787
7803
  reversal_amount: Integer,
7804
+ reversal_presentment_amount: Integer,
7788
7805
  reversal_reason:
7789
7806
  T.nilable(
7790
7807
  Increase::CardPayment::Element::CardReversal::ReversalReason::OrSymbol
@@ -7792,7 +7809,8 @@ module Increase
7792
7809
  terminal_id: T.nilable(String),
7793
7810
  type:
7794
7811
  Increase::CardPayment::Element::CardReversal::Type::OrSymbol,
7795
- updated_authorization_amount: Integer
7812
+ updated_authorization_amount: Integer,
7813
+ updated_authorization_presentment_amount: Integer
7796
7814
  ).returns(T.attached_class)
7797
7815
  end
7798
7816
  def self.new(
@@ -7826,9 +7844,15 @@ module Increase
7826
7844
  network_identifiers:,
7827
7845
  # The identifier of the Pending Transaction associated with this Card Reversal.
7828
7846
  pending_transaction_id:,
7847
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the reversal's
7848
+ # presentment currency.
7849
+ presentment_currency:,
7829
7850
  # The amount of this reversal in the minor unit of the transaction's currency. For
7830
7851
  # dollars, for example, this is cents.
7831
7852
  reversal_amount:,
7853
+ # The amount of this reversal in the minor unit of the transaction's presentment
7854
+ # currency. For dollars, for example, this is cents.
7855
+ reversal_presentment_amount:,
7832
7856
  # Why this reversal was initiated.
7833
7857
  reversal_reason:,
7834
7858
  # The terminal identifier (commonly abbreviated as TID) of the terminal the card
@@ -7839,7 +7863,10 @@ module Increase
7839
7863
  type:,
7840
7864
  # The amount left pending on the Card Authorization in the minor unit of the
7841
7865
  # transaction's currency. For dollars, for example, this is cents.
7842
- updated_authorization_amount:
7866
+ updated_authorization_amount:,
7867
+ # The amount left pending on the Card Authorization in the minor unit of the
7868
+ # transaction's presentment currency. For dollars, for example, this is cents.
7869
+ updated_authorization_presentment_amount:
7843
7870
  )
7844
7871
  end
7845
7872
 
@@ -7862,7 +7889,9 @@ module Increase
7862
7889
  network_identifiers:
7863
7890
  Increase::CardPayment::Element::CardReversal::NetworkIdentifiers,
7864
7891
  pending_transaction_id: T.nilable(String),
7892
+ presentment_currency: String,
7865
7893
  reversal_amount: Integer,
7894
+ reversal_presentment_amount: Integer,
7866
7895
  reversal_reason:
7867
7896
  T.nilable(
7868
7897
  Increase::CardPayment::Element::CardReversal::ReversalReason::TaggedSymbol
@@ -7870,7 +7899,8 @@ module Increase
7870
7899
  terminal_id: T.nilable(String),
7871
7900
  type:
7872
7901
  Increase::CardPayment::Element::CardReversal::Type::TaggedSymbol,
7873
- updated_authorization_amount: Integer
7902
+ updated_authorization_amount: Integer,
7903
+ updated_authorization_presentment_amount: Integer
7874
7904
  }
7875
7905
  )
7876
7906
  end
@@ -3153,11 +3153,14 @@ module Increase
3153
3153
  network: Increase::Models::CardPayment::Element::CardReversal::network,
3154
3154
  network_identifiers: Increase::CardPayment::Element::CardReversal::NetworkIdentifiers,
3155
3155
  pending_transaction_id: String?,
3156
+ presentment_currency: String,
3156
3157
  reversal_amount: Integer,
3158
+ reversal_presentment_amount: Integer,
3157
3159
  reversal_reason: Increase::Models::CardPayment::Element::CardReversal::reversal_reason?,
3158
3160
  terminal_id: String?,
3159
3161
  type: Increase::Models::CardPayment::Element::CardReversal::type_,
3160
- updated_authorization_amount: Integer
3162
+ updated_authorization_amount: Integer,
3163
+ updated_authorization_presentment_amount: Integer
3161
3164
  }
3162
3165
 
3163
3166
  class CardReversal < Increase::Internal::Type::BaseModel
@@ -3187,8 +3190,12 @@ module Increase
3187
3190
 
3188
3191
  attr_accessor pending_transaction_id: String?
3189
3192
 
3193
+ attr_accessor presentment_currency: String
3194
+
3190
3195
  attr_accessor reversal_amount: Integer
3191
3196
 
3197
+ attr_accessor reversal_presentment_amount: Integer
3198
+
3192
3199
  attr_accessor reversal_reason: Increase::Models::CardPayment::Element::CardReversal::reversal_reason?
3193
3200
 
3194
3201
  attr_accessor terminal_id: String?
@@ -3197,6 +3204,8 @@ module Increase
3197
3204
 
3198
3205
  attr_accessor updated_authorization_amount: Integer
3199
3206
 
3207
+ attr_accessor updated_authorization_presentment_amount: Integer
3208
+
3200
3209
  def initialize: (
3201
3210
  id: String,
3202
3211
  card_authorization_id: String,
@@ -3211,11 +3220,14 @@ module Increase
3211
3220
  network: Increase::Models::CardPayment::Element::CardReversal::network,
3212
3221
  network_identifiers: Increase::CardPayment::Element::CardReversal::NetworkIdentifiers,
3213
3222
  pending_transaction_id: String?,
3223
+ presentment_currency: String,
3214
3224
  reversal_amount: Integer,
3225
+ reversal_presentment_amount: Integer,
3215
3226
  reversal_reason: Increase::Models::CardPayment::Element::CardReversal::reversal_reason?,
3216
3227
  terminal_id: String?,
3217
3228
  type: Increase::Models::CardPayment::Element::CardReversal::type_,
3218
- updated_authorization_amount: Integer
3229
+ updated_authorization_amount: Integer,
3230
+ updated_authorization_presentment_amount: Integer
3219
3231
  ) -> void
3220
3232
 
3221
3233
  def to_hash: -> {
@@ -3232,11 +3244,14 @@ module Increase
3232
3244
  network: Increase::Models::CardPayment::Element::CardReversal::network,
3233
3245
  network_identifiers: Increase::CardPayment::Element::CardReversal::NetworkIdentifiers,
3234
3246
  pending_transaction_id: String?,
3247
+ presentment_currency: String,
3235
3248
  reversal_amount: Integer,
3249
+ reversal_presentment_amount: Integer,
3236
3250
  reversal_reason: Increase::Models::CardPayment::Element::CardReversal::reversal_reason?,
3237
3251
  terminal_id: String?,
3238
3252
  type: Increase::Models::CardPayment::Element::CardReversal::type_,
3239
- updated_authorization_amount: Integer
3253
+ updated_authorization_amount: Integer,
3254
+ updated_authorization_presentment_amount: Integer
3240
3255
  }
3241
3256
 
3242
3257
  type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: increase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.0
4
+ version: 1.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-24 00:00:00.000000000 Z
11
+ date: 2025-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool