increase 1.91.1 → 1.92.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: b7fe07f74a2dc4887da2eb1875a09e0d6901ce2fe04a35020d950330220479f3
4
- data.tar.gz: 02602fbd732c6064030a5d08cc46d6eb7e5c50ba29bd7457f3e66856df91bb13
3
+ metadata.gz: ae47ba37c1fcb707b9cf851f15ab2a23c43fb215c8845638d89d95ad856b9b3e
4
+ data.tar.gz: a0a1507f5e78b4344764a1568f6ec7227a2b16f6ec03d347f3a3f066d73132e0
5
5
  SHA512:
6
- metadata.gz: 3b2da17e02ae6c63e017ea87bdbfb22a7a18db6da9b8b220114753408c8751bcae954ce50f52b990d06267522b0015cbd8651e323e35b48602025de4685642a3
7
- data.tar.gz: bbb7489d2f6be0a45539d98b742a925810363203fa0e7ddf6407d8341b57d74e338f7ebb1aa8a39b5a70096db01305fc9ec020ec16ff48d4648edd86611621ec
6
+ metadata.gz: 82fa52f4e82fd39b29da6dedd21359d30add2e93c24e66c3081ec2ce0146993eae64fe89c0a6b9c3a9aff1951391031badd0bddfee3248ca36893118b9783abf
7
+ data.tar.gz: 07b9c784e74fcbf8bc0ffcb377e4c0a1eb19b70666305d8a7889d59a38d11a0e18458f707f703a13530cd0e1624b50e31a64cde2e72db8f0a007cffb34549f69
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.92.0 (2025-09-26)
4
+
5
+ Full Changelog: [v1.91.1...v1.92.0](https://github.com/Increase/increase-ruby/compare/v1.91.1...v1.92.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([8876735](https://github.com/Increase/increase-ruby/commit/8876735e69be9385ae6a534f48791511dbc9ae5b))
10
+
3
11
  ## 1.91.1 (2025-09-26)
4
12
 
5
13
  Full Changelog: [v1.91.0...v1.91.1](https://github.com/Increase/increase-ruby/compare/v1.91.0...v1.91.1)
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.91.1"
18
+ gem "increase", "~> 1.92.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -8,17 +8,27 @@ module Increase
8
8
  extend Increase::Internal::Type::RequestParameters::Converter
9
9
  include Increase::Internal::Type::RequestParameters
10
10
 
11
+ # @!attribute pending_transaction_id
12
+ # The identifier of the Pending Transaction for the refund authorization. If this
13
+ # is provided, `transaction` must not be provided as a refund with a refund
14
+ # authorized can not be linked to a regular transaction.
15
+ #
16
+ # @return [String, nil]
17
+ optional :pending_transaction_id, String
18
+
11
19
  # @!attribute transaction_id
12
20
  # The identifier for the Transaction to refund. The Transaction's source must have
13
21
  # a category of card_settlement.
14
22
  #
15
- # @return [String]
16
- required :transaction_id, String
23
+ # @return [String, nil]
24
+ optional :transaction_id, String
17
25
 
18
- # @!method initialize(transaction_id:, request_options: {})
26
+ # @!method initialize(pending_transaction_id: nil, transaction_id: nil, request_options: {})
19
27
  # Some parameter documentations has been truncated, see
20
28
  # {Increase::Models::Simulations::CardRefundCreateParams} for more details.
21
29
  #
30
+ # @param pending_transaction_id [String] The identifier of the Pending Transaction for the refund authorization. If this
31
+ #
22
32
  # @param transaction_id [String] The identifier for the Transaction to refund. The Transaction's source must have
23
33
  #
24
34
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
@@ -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(transaction_id:, request_options: {})
13
+ # @overload create(pending_transaction_id: nil, transaction_id: nil, request_options: {})
14
+ #
15
+ # @param pending_transaction_id [String] The identifier of the Pending Transaction for the refund authorization. If this
14
16
  #
15
17
  # @param transaction_id [String] The identifier for the Transaction to refund. The Transaction's source must have
16
18
  #
@@ -19,7 +21,7 @@ module Increase
19
21
  # @return [Increase::Models::Transaction]
20
22
  #
21
23
  # @see Increase::Models::Simulations::CardRefundCreateParams
22
- def create(params)
24
+ def create(params = {})
23
25
  parsed, options = Increase::Simulations::CardRefundCreateParams.dump_request(params)
24
26
  @client.request(
25
27
  method: :post,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.91.1"
4
+ VERSION = "1.92.0"
5
5
  end
@@ -15,21 +15,38 @@ module Increase
15
15
  )
16
16
  end
17
17
 
18
+ # The identifier of the Pending Transaction for the refund authorization. If this
19
+ # is provided, `transaction` must not be provided as a refund with a refund
20
+ # authorized can not be linked to a regular transaction.
21
+ sig { returns(T.nilable(String)) }
22
+ attr_reader :pending_transaction_id
23
+
24
+ sig { params(pending_transaction_id: String).void }
25
+ attr_writer :pending_transaction_id
26
+
18
27
  # The identifier for the Transaction to refund. The Transaction's source must have
19
28
  # a category of card_settlement.
20
- sig { returns(String) }
21
- attr_accessor :transaction_id
29
+ sig { returns(T.nilable(String)) }
30
+ attr_reader :transaction_id
31
+
32
+ sig { params(transaction_id: String).void }
33
+ attr_writer :transaction_id
22
34
 
23
35
  sig do
24
36
  params(
37
+ pending_transaction_id: String,
25
38
  transaction_id: String,
26
39
  request_options: Increase::RequestOptions::OrHash
27
40
  ).returns(T.attached_class)
28
41
  end
29
42
  def self.new(
43
+ # The identifier of the Pending Transaction for the refund authorization. If this
44
+ # is provided, `transaction` must not be provided as a refund with a refund
45
+ # authorized can not be linked to a regular transaction.
46
+ pending_transaction_id: nil,
30
47
  # The identifier for the Transaction to refund. The Transaction's source must have
31
48
  # a category of card_settlement.
32
- transaction_id:,
49
+ transaction_id: nil,
33
50
  request_options: {}
34
51
  )
35
52
  end
@@ -37,6 +54,7 @@ module Increase
37
54
  sig do
38
55
  override.returns(
39
56
  {
57
+ pending_transaction_id: String,
40
58
  transaction_id: String,
41
59
  request_options: Increase::RequestOptions
42
60
  }
@@ -8,14 +8,19 @@ module Increase
8
8
  # transaction is refunded.
9
9
  sig do
10
10
  params(
11
+ pending_transaction_id: String,
11
12
  transaction_id: String,
12
13
  request_options: Increase::RequestOptions::OrHash
13
14
  ).returns(Increase::Transaction)
14
15
  end
15
16
  def create(
17
+ # The identifier of the Pending Transaction for the refund authorization. If this
18
+ # is provided, `transaction` must not be provided as a refund with a refund
19
+ # authorized can not be linked to a regular transaction.
20
+ pending_transaction_id: nil,
16
21
  # The identifier for the Transaction to refund. The Transaction's source must have
17
22
  # a category of card_settlement.
18
- transaction_id:,
23
+ transaction_id: nil,
19
24
  request_options: {}
20
25
  )
21
26
  end
@@ -2,21 +2,29 @@ module Increase
2
2
  module Models
3
3
  module Simulations
4
4
  type card_refund_create_params =
5
- { transaction_id: String }
5
+ { pending_transaction_id: String, transaction_id: String }
6
6
  & Increase::Internal::Type::request_parameters
7
7
 
8
8
  class CardRefundCreateParams < Increase::Internal::Type::BaseModel
9
9
  extend Increase::Internal::Type::RequestParameters::Converter
10
10
  include Increase::Internal::Type::RequestParameters
11
11
 
12
- attr_accessor transaction_id: String
12
+ attr_reader pending_transaction_id: String?
13
+
14
+ def pending_transaction_id=: (String) -> String
15
+
16
+ attr_reader transaction_id: String?
17
+
18
+ def transaction_id=: (String) -> String
13
19
 
14
20
  def initialize: (
15
- transaction_id: String,
21
+ ?pending_transaction_id: String,
22
+ ?transaction_id: String,
16
23
  ?request_options: Increase::request_opts
17
24
  ) -> void
18
25
 
19
26
  def to_hash: -> {
27
+ pending_transaction_id: String,
20
28
  transaction_id: String,
21
29
  request_options: Increase::RequestOptions
22
30
  }
@@ -3,7 +3,8 @@ module Increase
3
3
  class Simulations
4
4
  class CardRefunds
5
5
  def create: (
6
- transaction_id: String,
6
+ ?pending_transaction_id: String,
7
+ ?transaction_id: String,
7
8
  ?request_options: Increase::request_opts
8
9
  ) -> Increase::Transaction
9
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: increase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.91.1
4
+ version: 1.92.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase