increase 1.86.0 → 1.88.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 +16 -0
- data/README.md +1 -1
- data/lib/increase/models/account_transfer.rb +32 -44
- data/lib/increase/models/account_transfer_create_params.rb +11 -8
- data/lib/increase/models/card_payment.rb +144 -72
- data/lib/increase/models/declined_transaction.rb +36 -18
- data/lib/increase/models/pending_transaction.rb +36 -18
- data/lib/increase/models/real_time_decision.rb +36 -18
- data/lib/increase/resources/account_transfers.rb +6 -6
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/account_transfer.rbi +36 -53
- data/rbi/increase/models/account_transfer_create_params.rbi +14 -8
- data/rbi/increase/models/card_payment.rbi +216 -72
- data/rbi/increase/models/declined_transaction.rbi +54 -18
- data/rbi/increase/models/pending_transaction.rbi +54 -18
- data/rbi/increase/models/real_time_decision.rbi +54 -18
- data/rbi/increase/resources/account_transfers.rbi +9 -6
- data/sig/increase/models/account_transfer.rbs +2 -17
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28e4e918e75be24fe1c8de97de0357a7163a0631b1741e72de4af80978c6ad81
|
4
|
+
data.tar.gz: bba9eed9fd83096412760d61ee04a654c5a369232b3be140f46727f78062298a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6f5eccbb57c9f4d38188a656ebf86bc2226a8427f0fc6fd67f3dfbd127a57827d24f69895c855054328002c7dc5ed82c8a3d5e8a702d7a1317bd92309c125c8
|
7
|
+
data.tar.gz: 4e228422b0e4f07e4051c7b96d7276bf280bd37ff1570f4d73c845842f1dc713a9a1f0a31989886332ee642e7eac5c2f643e38e5de45c2d5530b250382aa2b12
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.88.0 (2025-09-24)
|
4
|
+
|
5
|
+
Full Changelog: [v1.87.0...v1.88.0](https://github.com/Increase/increase-ruby/compare/v1.87.0...v1.88.0)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** api update ([3f9bdb7](https://github.com/Increase/increase-ruby/commit/3f9bdb780f32cc60a80b2db10cf3eea3f7872330))
|
10
|
+
|
11
|
+
## 1.87.0 (2025-09-23)
|
12
|
+
|
13
|
+
Full Changelog: [v1.86.0...v1.87.0](https://github.com/Increase/increase-ruby/compare/v1.86.0...v1.87.0)
|
14
|
+
|
15
|
+
### Features
|
16
|
+
|
17
|
+
* **api:** api update ([b463a26](https://github.com/Increase/increase-ruby/commit/b463a267127088062f458918ba41aeb178d27a23))
|
18
|
+
|
3
19
|
## 1.86.0 (2025-09-23)
|
4
20
|
|
5
21
|
Full Changelog: [v1.85.0...v1.86.0](https://github.com/Increase/increase-ruby/compare/v1.85.0...v1.86.0)
|
data/README.md
CHANGED
@@ -5,20 +5,20 @@ module Increase
|
|
5
5
|
# @see Increase::Resources::AccountTransfers#create
|
6
6
|
class AccountTransfer < Increase::Internal::Type::BaseModel
|
7
7
|
# @!attribute id
|
8
|
-
# The
|
8
|
+
# The Account Transfer's identifier.
|
9
9
|
#
|
10
10
|
# @return [String]
|
11
11
|
required :id, String
|
12
12
|
|
13
13
|
# @!attribute account_id
|
14
|
-
# The Account
|
14
|
+
# The Account from which the transfer originated.
|
15
15
|
#
|
16
16
|
# @return [String]
|
17
17
|
required :account_id, String
|
18
18
|
|
19
19
|
# @!attribute amount
|
20
|
-
# The transfer amount in
|
21
|
-
#
|
20
|
+
# The transfer amount in cents. This will always be positive and indicates the
|
21
|
+
# amount of money leaving the originating account.
|
22
22
|
#
|
23
23
|
# @return [Integer]
|
24
24
|
required :amount, Integer
|
@@ -51,26 +51,28 @@ module Increase
|
|
51
51
|
required :created_by, -> { Increase::AccountTransfer::CreatedBy }, nil?: true
|
52
52
|
|
53
53
|
# @!attribute currency
|
54
|
-
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
55
|
-
#
|
54
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's
|
55
|
+
# currency.
|
56
56
|
#
|
57
57
|
# @return [Symbol, Increase::Models::AccountTransfer::Currency]
|
58
58
|
required :currency, enum: -> { Increase::AccountTransfer::Currency }
|
59
59
|
|
60
60
|
# @!attribute description
|
61
|
-
#
|
61
|
+
# An internal-facing description for the transfer for display in the API and
|
62
|
+
# dashboard. This will also show in the description of the created Transactions.
|
62
63
|
#
|
63
64
|
# @return [String]
|
64
65
|
required :description, String
|
65
66
|
|
66
67
|
# @!attribute destination_account_id
|
67
|
-
# The destination
|
68
|
+
# The destination Account's identifier.
|
68
69
|
#
|
69
70
|
# @return [String]
|
70
71
|
required :destination_account_id, String
|
71
72
|
|
72
73
|
# @!attribute destination_transaction_id
|
73
|
-
# The
|
74
|
+
# The identifier of the Transaction on the destination Account representing the
|
75
|
+
# received funds.
|
74
76
|
#
|
75
77
|
# @return [String, nil]
|
76
78
|
required :destination_transaction_id, String, nil?: true
|
@@ -83,12 +85,6 @@ module Increase
|
|
83
85
|
# @return [String, nil]
|
84
86
|
required :idempotency_key, String, nil?: true
|
85
87
|
|
86
|
-
# @!attribute network
|
87
|
-
# The transfer's network.
|
88
|
-
#
|
89
|
-
# @return [Symbol, Increase::Models::AccountTransfer::Network]
|
90
|
-
required :network, enum: -> { Increase::AccountTransfer::Network }
|
91
|
-
|
92
88
|
# @!attribute pending_transaction_id
|
93
89
|
# The ID for the pending transaction representing the transfer. A pending
|
94
90
|
# transaction is created when the transfer
|
@@ -105,7 +101,8 @@ module Increase
|
|
105
101
|
required :status, enum: -> { Increase::AccountTransfer::Status }
|
106
102
|
|
107
103
|
# @!attribute transaction_id
|
108
|
-
# The
|
104
|
+
# The identifier of the Transaction on the originating account representing the
|
105
|
+
# transferred funds.
|
109
106
|
#
|
110
107
|
# @return [String, nil]
|
111
108
|
required :transaction_id, String, nil?: true
|
@@ -117,17 +114,22 @@ module Increase
|
|
117
114
|
# @return [Symbol, Increase::Models::AccountTransfer::Type]
|
118
115
|
required :type, enum: -> { Increase::AccountTransfer::Type }
|
119
116
|
|
120
|
-
# @!method initialize(id:, account_id:, amount:, approval:, cancellation:, created_at:, created_by:, currency:, description:, destination_account_id:, destination_transaction_id:, idempotency_key:,
|
117
|
+
# @!method initialize(id:, account_id:, amount:, approval:, cancellation:, created_at:, created_by:, currency:, description:, destination_account_id:, destination_transaction_id:, idempotency_key:, pending_transaction_id:, status:, transaction_id:, type:)
|
121
118
|
# Some parameter documentations has been truncated, see
|
122
119
|
# {Increase::Models::AccountTransfer} for more details.
|
123
120
|
#
|
124
|
-
# Account transfers move funds between your own accounts at Increase
|
121
|
+
# Account transfers move funds between your own accounts at Increase (accounting
|
122
|
+
# systems often refer to these as Book Transfers). Account Transfers are free and
|
123
|
+
# synchronous. Upon creation they create two Transactions, one negative on the
|
124
|
+
# originating account and one positive on the destination account (unless the
|
125
|
+
# transfer requires approval, in which case the Transactions will be created when
|
126
|
+
# the transfer is approved).
|
125
127
|
#
|
126
|
-
# @param id [String] The
|
128
|
+
# @param id [String] The Account Transfer's identifier.
|
127
129
|
#
|
128
|
-
# @param account_id [String] The Account
|
130
|
+
# @param account_id [String] The Account from which the transfer originated.
|
129
131
|
#
|
130
|
-
# @param amount [Integer] The transfer amount in
|
132
|
+
# @param amount [Integer] The transfer amount in cents. This will always be positive and indicates the amo
|
131
133
|
#
|
132
134
|
# @param approval [Increase::Models::AccountTransfer::Approval, nil] If your account requires approvals for transfers and the transfer was approved,
|
133
135
|
#
|
@@ -137,23 +139,21 @@ module Increase
|
|
137
139
|
#
|
138
140
|
# @param created_by [Increase::Models::AccountTransfer::CreatedBy, nil] What object created the transfer, either via the API or the dashboard.
|
139
141
|
#
|
140
|
-
# @param currency [Symbol, Increase::Models::AccountTransfer::Currency] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
142
|
+
# @param currency [Symbol, Increase::Models::AccountTransfer::Currency] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's c
|
141
143
|
#
|
142
|
-
# @param description [String]
|
144
|
+
# @param description [String] An internal-facing description for the transfer for display in the API and dashb
|
143
145
|
#
|
144
|
-
# @param destination_account_id [String] The destination
|
146
|
+
# @param destination_account_id [String] The destination Account's identifier.
|
145
147
|
#
|
146
|
-
# @param destination_transaction_id [String, nil] The
|
148
|
+
# @param destination_transaction_id [String, nil] The identifier of the Transaction on the destination Account representing the re
|
147
149
|
#
|
148
150
|
# @param idempotency_key [String, nil] The idempotency key you chose for this object. This value is unique across Incre
|
149
151
|
#
|
150
|
-
# @param network [Symbol, Increase::Models::AccountTransfer::Network] The transfer's network.
|
151
|
-
#
|
152
152
|
# @param pending_transaction_id [String, nil] The ID for the pending transaction representing the transfer. A pending transact
|
153
153
|
#
|
154
154
|
# @param status [Symbol, Increase::Models::AccountTransfer::Status] The lifecycle status of the transfer.
|
155
155
|
#
|
156
|
-
# @param transaction_id [String, nil] The
|
156
|
+
# @param transaction_id [String, nil] The identifier of the Transaction on the originating account representing the tr
|
157
157
|
#
|
158
158
|
# @param type [Symbol, Increase::Models::AccountTransfer::Type] A constant representing the object's type. For this resource it will always be `
|
159
159
|
|
@@ -312,8 +312,8 @@ module Increase
|
|
312
312
|
end
|
313
313
|
end
|
314
314
|
|
315
|
-
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
316
|
-
#
|
315
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's
|
316
|
+
# currency.
|
317
317
|
#
|
318
318
|
# @see Increase::Models::AccountTransfer#currency
|
319
319
|
module Currency
|
@@ -341,28 +341,16 @@ module Increase
|
|
341
341
|
# @return [Array<Symbol>]
|
342
342
|
end
|
343
343
|
|
344
|
-
# The transfer's network.
|
345
|
-
#
|
346
|
-
# @see Increase::Models::AccountTransfer#network
|
347
|
-
module Network
|
348
|
-
extend Increase::Internal::Type::Enum
|
349
|
-
|
350
|
-
ACCOUNT = :account
|
351
|
-
|
352
|
-
# @!method self.values
|
353
|
-
# @return [Array<Symbol>]
|
354
|
-
end
|
355
|
-
|
356
344
|
# The lifecycle status of the transfer.
|
357
345
|
#
|
358
346
|
# @see Increase::Models::AccountTransfer#status
|
359
347
|
module Status
|
360
348
|
extend Increase::Internal::Type::Enum
|
361
349
|
|
362
|
-
# The transfer is pending approval.
|
350
|
+
# The transfer is pending approval from your team.
|
363
351
|
PENDING_APPROVAL = :pending_approval
|
364
352
|
|
365
|
-
# The transfer has been canceled.
|
353
|
+
# The transfer was pending approval from your team and has been canceled.
|
366
354
|
CANCELED = :canceled
|
367
355
|
|
368
356
|
# The transfer has been completed.
|
@@ -8,7 +8,7 @@ module Increase
|
|
8
8
|
include Increase::Internal::Type::RequestParameters
|
9
9
|
|
10
10
|
# @!attribute account_id
|
11
|
-
# The identifier for the
|
11
|
+
# The identifier for the originating Account that will send the transfer.
|
12
12
|
#
|
13
13
|
# @return [String]
|
14
14
|
required :account_id, String
|
@@ -21,19 +21,22 @@ module Increase
|
|
21
21
|
required :amount, Integer
|
22
22
|
|
23
23
|
# @!attribute description
|
24
|
-
#
|
24
|
+
# An internal-facing description for the transfer for display in the API and
|
25
|
+
# dashboard. This will also show in the description of the created Transactions.
|
25
26
|
#
|
26
27
|
# @return [String]
|
27
28
|
required :description, String
|
28
29
|
|
29
30
|
# @!attribute destination_account_id
|
30
|
-
# The identifier for the
|
31
|
+
# The identifier for the destination Account that will receive the transfer.
|
31
32
|
#
|
32
33
|
# @return [String]
|
33
34
|
required :destination_account_id, String
|
34
35
|
|
35
36
|
# @!attribute require_approval
|
36
|
-
# Whether the transfer
|
37
|
+
# Whether the transfer should require explicit approval via the dashboard or API.
|
38
|
+
# For more information, see
|
39
|
+
# [Transfer Approvals](/documentation/transfer-approvals).
|
37
40
|
#
|
38
41
|
# @return [Boolean, nil]
|
39
42
|
optional :require_approval, Increase::Internal::Type::Boolean
|
@@ -42,15 +45,15 @@ module Increase
|
|
42
45
|
# Some parameter documentations has been truncated, see
|
43
46
|
# {Increase::Models::AccountTransferCreateParams} for more details.
|
44
47
|
#
|
45
|
-
# @param account_id [String] The identifier for the
|
48
|
+
# @param account_id [String] The identifier for the originating Account that will send the transfer.
|
46
49
|
#
|
47
50
|
# @param amount [Integer] The transfer amount in the minor unit of the account currency. For dollars, for
|
48
51
|
#
|
49
|
-
# @param description [String]
|
52
|
+
# @param description [String] An internal-facing description for the transfer for display in the API and dashb
|
50
53
|
#
|
51
|
-
# @param destination_account_id [String] The identifier for the
|
54
|
+
# @param destination_account_id [String] The identifier for the destination Account that will receive the transfer.
|
52
55
|
#
|
53
|
-
# @param require_approval [Boolean] Whether the transfer
|
56
|
+
# @param require_approval [Boolean] Whether the transfer should require explicit approval via the dashboard or API.
|
54
57
|
#
|
55
58
|
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
56
59
|
end
|