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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/increase/models/simulations/card_refund_create_params.rb +13 -3
- data/lib/increase/resources/simulations/card_refunds.rb +4 -2
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/simulations/card_refund_create_params.rbi +21 -3
- data/rbi/increase/resources/simulations/card_refunds.rbi +6 -1
- data/sig/increase/models/simulations/card_refund_create_params.rbs +11 -3
- data/sig/increase/resources/simulations/card_refunds.rbs +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae47ba37c1fcb707b9cf851f15ab2a23c43fb215c8845638d89d95ad856b9b3e
|
4
|
+
data.tar.gz: a0a1507f5e78b4344764a1568f6ec7227a2b16f6ec03d347f3a3f066d73132e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
@@ -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
|
-
|
23
|
+
# @return [String, nil]
|
24
|
+
optional :transaction_id, String
|
17
25
|
|
18
|
-
# @!method initialize(transaction_id
|
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
|
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,
|
data/lib/increase/version.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
-
|
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
|
}
|