increase 1.115.0 → 1.116.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: 1f603d150d58551ed768c287938833ae182c1592c0c471275e13887d419d3e84
4
+ data.tar.gz: c07e87205dc91864e238afdcd14d510d2305cb01d41ebc5c1b8308a3424a8998
5
5
  SHA512:
6
- metadata.gz: 5d822141be613b5328dcf9df23d247be6d26b678b528758aed5fa5915b375015f5d53042b289cd650819d49b8586eada3181b03cd63b6913ae73cb29761e060e
7
- data.tar.gz: 0e8eb4cd18af427c9c8efc66c1b988a6232388683c146764331fe77df1a1f394645fc561ccb3592d33644d86a9c61f5717ab2343092d7acfdacaeed88d2f3064
6
+ metadata.gz: 704d99b034e6fc1d9eebcc4a6ad2339a3186598622818f5299e2addd7381dee380a7dd75ae9d90e0adf669b06fcac7304c0be1de3ee9e48959ae73d18a9746f9
7
+ data.tar.gz: 390359466dcba5f8580bba02f285a17e3986216156c32b77e9d9d0c61609508ef8ab76dcfe5e389a3d37cf8694a31a87718714e32dadbf21fac75609643ab756
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.116.0 (2025-10-27)
4
+
5
+ Full Changelog: [v1.115.0...v1.116.0](https://github.com/Increase/increase-ruby/compare/v1.115.0...v1.116.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([bcb588d](https://github.com/Increase/increase-ruby/commit/bcb588d1864aafbf4a1b99b65a02bc37005bf4d2))
10
+
3
11
  ## 1.115.0 (2025-10-26)
4
12
 
5
13
  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.116.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-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.116.0"
5
5
  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.
@@ -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.116.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