increase 1.115.0 → 1.117.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: 4e6ac2684cca09e760665f4b511186522d12473c30bf666bab283286b64a850a
4
- data.tar.gz: 68b4d9bc936f4e3724c12e21e9dd1a04c612c2fd8337df06c37f15297f69eceb
3
+ metadata.gz: 2460d246510dd0642116a1f2d7798ff56f79db51ba02025c4c880566b1d72e36
4
+ data.tar.gz: 6f853ae363dd24637d3649ea6eea59efea2e4dbbab74c6dc9bdf9c9789c24307
5
5
  SHA512:
6
- metadata.gz: 5d822141be613b5328dcf9df23d247be6d26b678b528758aed5fa5915b375015f5d53042b289cd650819d49b8586eada3181b03cd63b6913ae73cb29761e060e
7
- data.tar.gz: 0e8eb4cd18af427c9c8efc66c1b988a6232388683c146764331fe77df1a1f394645fc561ccb3592d33644d86a9c61f5717ab2343092d7acfdacaeed88d2f3064
6
+ metadata.gz: 9a1290e7246f0322efffaac21fa0621f4faf855728845446b390202ae775056413feaf943099b675bb6d34f468fe7a08d7aae844deb8effa56d24bfee8528e86
7
+ data.tar.gz: 7213ccd002501d1a02d04ab5d16d37caf9356d8b9cf32738fd6f33b054ee1ccb08e70650d584a186addc4adc3658ad370c9fed8f07129267e9328241fb28e34d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.117.0 (2025-10-27)
4
+
5
+ Full Changelog: [v1.116.0...v1.117.0](https://github.com/Increase/increase-ruby/compare/v1.116.0...v1.117.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([fbcaddc](https://github.com/Increase/increase-ruby/commit/fbcaddc862376c22a713461f6babcc01cd1753d1))
10
+
11
+ ## 1.116.0 (2025-10-27)
12
+
13
+ Full Changelog: [v1.115.0...v1.116.0](https://github.com/Increase/increase-ruby/compare/v1.115.0...v1.116.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([bcb588d](https://github.com/Increase/increase-ruby/commit/bcb588d1864aafbf4a1b99b65a02bc37005bf4d2))
18
+
3
19
  ## 1.115.0 (2025-10-26)
4
20
 
5
21
  Full Changelog: [v1.114.0...v1.115.0](https://github.com/Increase/increase-ruby/compare/v1.114.0...v1.115.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.115.0"
18
+ gem "increase", "~> 1.117.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -300,7 +300,13 @@ module Increase
300
300
  required :category,
301
301
  enum: -> { Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category }
302
302
 
303
- # @!method initialize(category:)
303
+ # @!attribute refund
304
+ # Details related to refund authorizations.
305
+ #
306
+ # @return [Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Refund, nil]
307
+ optional :refund, -> { Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Refund }
308
+
309
+ # @!method initialize(category:, refund: nil)
304
310
  # Some parameter documentations has been truncated, see
305
311
  # {Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory}
306
312
  # for more details.
@@ -309,6 +315,8 @@ module Increase
309
315
  # Dispensers, Refund Authorizations, or Cash Disbursements.
310
316
  #
311
317
  # @param category [Symbol, Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category] The processing category describes the intent behind the authorization, such as w
318
+ #
319
+ # @param refund [Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Refund] Details related to refund authorizations.
312
320
 
313
321
  # The processing category describes the intent behind the authorization, such as
314
322
  # whether it was used for bill payments or an automatic fuel dispenser.
@@ -344,6 +352,20 @@ module Increase
344
352
  # @!method self.values
345
353
  # @return [Array<Symbol>]
346
354
  end
355
+
356
+ # @see Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory#refund
357
+ class Refund < Increase::Internal::Type::BaseModel
358
+ # @!attribute original_card_payment_id
359
+ # The card payment to link this refund to.
360
+ #
361
+ # @return [String, nil]
362
+ optional :original_card_payment_id, String
363
+
364
+ # @!method initialize(original_card_payment_id: nil)
365
+ # Details related to refund authorizations.
366
+ #
367
+ # @param original_card_payment_id [String] The card payment to link this refund to.
368
+ end
347
369
  end
348
370
  end
349
371
  end
@@ -8,6 +8,13 @@ module Increase
8
8
  extend Increase::Internal::Type::RequestParameters::Converter
9
9
  include Increase::Internal::Type::RequestParameters
10
10
 
11
+ # @!attribute amount
12
+ # The refund amount in cents. Pulled off the `pending_transaction` or the
13
+ # `transaction` if not provided.
14
+ #
15
+ # @return [Integer, nil]
16
+ optional :amount, Integer
17
+
11
18
  # @!attribute pending_transaction_id
12
19
  # The identifier of the Pending Transaction for the refund authorization. If this
13
20
  # is provided, `transaction` must not be provided as a refund with a refund
@@ -23,10 +30,12 @@ module Increase
23
30
  # @return [String, nil]
24
31
  optional :transaction_id, String
25
32
 
26
- # @!method initialize(pending_transaction_id: nil, transaction_id: nil, request_options: {})
33
+ # @!method initialize(amount: nil, pending_transaction_id: nil, transaction_id: nil, request_options: {})
27
34
  # Some parameter documentations has been truncated, see
28
35
  # {Increase::Models::Simulations::CardRefundCreateParams} for more details.
29
36
  #
37
+ # @param amount [Integer] The refund amount in cents. Pulled off the `pending_transaction` or the `transac
38
+ #
30
39
  # @param pending_transaction_id [String] The identifier of the Pending Transaction for the refund authorization. If this
31
40
  #
32
41
  # @param transaction_id [String] The identifier for the Transaction to refund. The Transaction's source must have
@@ -10,7 +10,9 @@ module Increase
10
10
  # Simulates refunding a card transaction. The full value of the original sandbox
11
11
  # transaction is refunded.
12
12
  #
13
- # @overload create(pending_transaction_id: nil, transaction_id: nil, request_options: {})
13
+ # @overload create(amount: nil, pending_transaction_id: nil, transaction_id: nil, request_options: {})
14
+ #
15
+ # @param amount [Integer] The refund amount in cents. Pulled off the `pending_transaction` or the `transac
14
16
  #
15
17
  # @param pending_transaction_id [String] The identifier of the Pending Transaction for the refund authorization. If this
16
18
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.115.0"
4
+ VERSION = "1.117.0"
5
5
  end
@@ -636,18 +636,40 @@ module Increase
636
636
  end
637
637
  attr_accessor :category
638
638
 
639
+ # Details related to refund authorizations.
640
+ sig do
641
+ returns(
642
+ T.nilable(
643
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Refund
644
+ )
645
+ )
646
+ end
647
+ attr_reader :refund
648
+
649
+ sig do
650
+ params(
651
+ refund:
652
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Refund::OrHash
653
+ ).void
654
+ end
655
+ attr_writer :refund
656
+
639
657
  # Fields specific to a specific type of authorization, such as Automatic Fuel
640
658
  # Dispensers, Refund Authorizations, or Cash Disbursements.
641
659
  sig do
642
660
  params(
643
661
  category:
644
- Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::OrSymbol
662
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::OrSymbol,
663
+ refund:
664
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Refund::OrHash
645
665
  ).returns(T.attached_class)
646
666
  end
647
667
  def self.new(
648
668
  # The processing category describes the intent behind the authorization, such as
649
669
  # whether it was used for bill payments or an automatic fuel dispenser.
650
- category:
670
+ category:,
671
+ # Details related to refund authorizations.
672
+ refund: nil
651
673
  )
652
674
  end
653
675
 
@@ -655,7 +677,9 @@ module Increase
655
677
  override.returns(
656
678
  {
657
679
  category:
658
- Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::OrSymbol
680
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Category::OrSymbol,
681
+ refund:
682
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Refund
659
683
  }
660
684
  )
661
685
  end
@@ -742,6 +766,37 @@ module Increase
742
766
  def self.values
743
767
  end
744
768
  end
769
+
770
+ class Refund < Increase::Internal::Type::BaseModel
771
+ OrHash =
772
+ T.type_alias do
773
+ T.any(
774
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Refund,
775
+ Increase::Internal::AnyHash
776
+ )
777
+ end
778
+
779
+ # The card payment to link this refund to.
780
+ sig { returns(T.nilable(String)) }
781
+ attr_reader :original_card_payment_id
782
+
783
+ sig { params(original_card_payment_id: String).void }
784
+ attr_writer :original_card_payment_id
785
+
786
+ # Details related to refund authorizations.
787
+ sig do
788
+ params(original_card_payment_id: String).returns(T.attached_class)
789
+ end
790
+ def self.new(
791
+ # The card payment to link this refund to.
792
+ original_card_payment_id: nil
793
+ )
794
+ end
795
+
796
+ sig { override.returns({ original_card_payment_id: String }) }
797
+ def to_hash
798
+ end
799
+ end
745
800
  end
746
801
  end
747
802
  end
@@ -15,6 +15,14 @@ module Increase
15
15
  )
16
16
  end
17
17
 
18
+ # The refund amount in cents. Pulled off the `pending_transaction` or the
19
+ # `transaction` if not provided.
20
+ sig { returns(T.nilable(Integer)) }
21
+ attr_reader :amount
22
+
23
+ sig { params(amount: Integer).void }
24
+ attr_writer :amount
25
+
18
26
  # The identifier of the Pending Transaction for the refund authorization. If this
19
27
  # is provided, `transaction` must not be provided as a refund with a refund
20
28
  # authorized can not be linked to a regular transaction.
@@ -34,12 +42,16 @@ module Increase
34
42
 
35
43
  sig do
36
44
  params(
45
+ amount: Integer,
37
46
  pending_transaction_id: String,
38
47
  transaction_id: String,
39
48
  request_options: Increase::RequestOptions::OrHash
40
49
  ).returns(T.attached_class)
41
50
  end
42
51
  def self.new(
52
+ # The refund amount in cents. Pulled off the `pending_transaction` or the
53
+ # `transaction` if not provided.
54
+ amount: nil,
43
55
  # The identifier of the Pending Transaction for the refund authorization. If this
44
56
  # is provided, `transaction` must not be provided as a refund with a refund
45
57
  # authorized can not be linked to a regular transaction.
@@ -54,6 +66,7 @@ module Increase
54
66
  sig do
55
67
  override.returns(
56
68
  {
69
+ amount: Integer,
57
70
  pending_transaction_id: String,
58
71
  transaction_id: String,
59
72
  request_options: Increase::RequestOptions
@@ -8,12 +8,16 @@ module Increase
8
8
  # transaction is refunded.
9
9
  sig do
10
10
  params(
11
+ amount: Integer,
11
12
  pending_transaction_id: String,
12
13
  transaction_id: String,
13
14
  request_options: Increase::RequestOptions::OrHash
14
15
  ).returns(Increase::Transaction)
15
16
  end
16
17
  def create(
18
+ # The refund amount in cents. Pulled off the `pending_transaction` or the
19
+ # `transaction` if not provided.
20
+ amount: nil,
17
21
  # The identifier of the Pending Transaction for the refund authorization. If this
18
22
  # is provided, `transaction` must not be provided as a refund with a refund
19
23
  # authorized can not be linked to a regular transaction.
@@ -305,18 +305,27 @@ module Increase
305
305
 
306
306
  type processing_category =
307
307
  {
308
- category: Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::category
308
+ category: Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::category,
309
+ refund: Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Refund
309
310
  }
310
311
 
311
312
  class ProcessingCategory < Increase::Internal::Type::BaseModel
312
313
  attr_accessor category: Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::category
313
314
 
315
+ attr_reader refund: Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Refund?
316
+
317
+ def refund=: (
318
+ Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Refund
319
+ ) -> Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Refund
320
+
314
321
  def initialize: (
315
- category: Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::category
322
+ category: Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::category,
323
+ ?refund: Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Refund
316
324
  ) -> void
317
325
 
318
326
  def to_hash: -> {
319
- category: Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::category
327
+ category: Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::category,
328
+ refund: Increase::Simulations::CardAuthorizationCreateParams::ProcessingCategory::Refund
320
329
  }
321
330
 
322
331
  type category =
@@ -358,6 +367,18 @@ module Increase
358
367
 
359
368
  def self?.values: -> ::Array[Increase::Models::Simulations::CardAuthorizationCreateParams::ProcessingCategory::category]
360
369
  end
370
+
371
+ type refund = { original_card_payment_id: String }
372
+
373
+ class Refund < Increase::Internal::Type::BaseModel
374
+ attr_reader original_card_payment_id: String?
375
+
376
+ def original_card_payment_id=: (String) -> String
377
+
378
+ def initialize: (?original_card_payment_id: String) -> void
379
+
380
+ def to_hash: -> { original_card_payment_id: String }
381
+ end
361
382
  end
362
383
  end
363
384
  end
@@ -2,13 +2,21 @@ module Increase
2
2
  module Models
3
3
  module Simulations
4
4
  type card_refund_create_params =
5
- { pending_transaction_id: String, transaction_id: String }
5
+ {
6
+ amount: Integer,
7
+ pending_transaction_id: String,
8
+ transaction_id: String
9
+ }
6
10
  & Increase::Internal::Type::request_parameters
7
11
 
8
12
  class CardRefundCreateParams < Increase::Internal::Type::BaseModel
9
13
  extend Increase::Internal::Type::RequestParameters::Converter
10
14
  include Increase::Internal::Type::RequestParameters
11
15
 
16
+ attr_reader amount: Integer?
17
+
18
+ def amount=: (Integer) -> Integer
19
+
12
20
  attr_reader pending_transaction_id: String?
13
21
 
14
22
  def pending_transaction_id=: (String) -> String
@@ -18,12 +26,14 @@ module Increase
18
26
  def transaction_id=: (String) -> String
19
27
 
20
28
  def initialize: (
29
+ ?amount: Integer,
21
30
  ?pending_transaction_id: String,
22
31
  ?transaction_id: String,
23
32
  ?request_options: Increase::request_opts
24
33
  ) -> void
25
34
 
26
35
  def to_hash: -> {
36
+ amount: Integer,
27
37
  pending_transaction_id: String,
28
38
  transaction_id: String,
29
39
  request_options: Increase::RequestOptions
@@ -3,6 +3,7 @@ module Increase
3
3
  class Simulations
4
4
  class CardRefunds
5
5
  def create: (
6
+ ?amount: Integer,
6
7
  ?pending_transaction_id: String,
7
8
  ?transaction_id: String,
8
9
  ?request_options: Increase::request_opts
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.115.0
4
+ version: 1.117.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-10-26 00:00:00.000000000 Z
11
+ date: 2025-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool