increase 1.174.0 → 1.175.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.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/increase/client.rb +4 -0
  5. data/lib/increase/models/swift_transfer.rb +478 -0
  6. data/lib/increase/models/swift_transfer_approve_params.rb +14 -0
  7. data/lib/increase/models/swift_transfer_cancel_params.rb +14 -0
  8. data/lib/increase/models/swift_transfer_create_params.rb +253 -0
  9. data/lib/increase/models/swift_transfer_list_params.rb +159 -0
  10. data/lib/increase/models/swift_transfer_retrieve_params.rb +14 -0
  11. data/lib/increase/models.rb +12 -0
  12. data/lib/increase/resources/swift_transfers.rb +159 -0
  13. data/lib/increase/version.rb +1 -1
  14. data/lib/increase.rb +7 -0
  15. data/rbi/increase/client.rbi +3 -0
  16. data/rbi/increase/models/swift_transfer.rbi +732 -0
  17. data/rbi/increase/models/swift_transfer_approve_params.rbi +30 -0
  18. data/rbi/increase/models/swift_transfer_cancel_params.rbi +30 -0
  19. data/rbi/increase/models/swift_transfer_create_params.rbi +391 -0
  20. data/rbi/increase/models/swift_transfer_list_params.rbi +316 -0
  21. data/rbi/increase/models/swift_transfer_retrieve_params.rbi +30 -0
  22. data/rbi/increase/models.rbi +12 -0
  23. data/rbi/increase/resources/swift_transfers.rbi +142 -0
  24. data/sig/increase/client.rbs +2 -0
  25. data/sig/increase/models/swift_transfer.rbs +349 -0
  26. data/sig/increase/models/swift_transfer_approve_params.rbs +15 -0
  27. data/sig/increase/models/swift_transfer_cancel_params.rbs +15 -0
  28. data/sig/increase/models/swift_transfer_create_params.rbs +197 -0
  29. data/sig/increase/models/swift_transfer_list_params.rbs +161 -0
  30. data/sig/increase/models/swift_transfer_retrieve_params.rbs +15 -0
  31. data/sig/increase/models.rbs +12 -0
  32. data/sig/increase/resources/swift_transfers.rbs +49 -0
  33. metadata +23 -2
@@ -0,0 +1,253 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ # @see Increase::Resources::SwiftTransfers#create
6
+ class SwiftTransferCreateParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ # @!attribute account_id
11
+ # The identifier for the account that will send the transfer.
12
+ #
13
+ # @return [String]
14
+ required :account_id, String
15
+
16
+ # @!attribute account_number
17
+ # The creditor's account number.
18
+ #
19
+ # @return [String]
20
+ required :account_number, String
21
+
22
+ # @!attribute bank_identification_code
23
+ # The bank identification code (BIC) of the creditor. If it ends with the
24
+ # three-character branch code, this must be 11 characters long. Otherwise this
25
+ # must be 8 characters and the branch code will be assumed to be `XXX`.
26
+ #
27
+ # @return [String]
28
+ required :bank_identification_code, String
29
+
30
+ # @!attribute creditor_address
31
+ # The creditor's address.
32
+ #
33
+ # @return [Increase::Models::SwiftTransferCreateParams::CreditorAddress]
34
+ required :creditor_address, -> { Increase::SwiftTransferCreateParams::CreditorAddress }
35
+
36
+ # @!attribute creditor_name
37
+ # The creditor's name.
38
+ #
39
+ # @return [String]
40
+ required :creditor_name, String
41
+
42
+ # @!attribute debtor_address
43
+ # The debtor's address.
44
+ #
45
+ # @return [Increase::Models::SwiftTransferCreateParams::DebtorAddress]
46
+ required :debtor_address, -> { Increase::SwiftTransferCreateParams::DebtorAddress }
47
+
48
+ # @!attribute debtor_name
49
+ # The debtor's name.
50
+ #
51
+ # @return [String]
52
+ required :debtor_name, String
53
+
54
+ # @!attribute instructed_amount
55
+ # The amount, in minor units of `instructed_currency`, to send to the creditor.
56
+ #
57
+ # @return [Integer]
58
+ required :instructed_amount, Integer
59
+
60
+ # @!attribute instructed_currency
61
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the
62
+ # instructed amount.
63
+ #
64
+ # @return [Symbol, Increase::Models::SwiftTransferCreateParams::InstructedCurrency]
65
+ required :instructed_currency, enum: -> { Increase::SwiftTransferCreateParams::InstructedCurrency }
66
+
67
+ # @!attribute source_account_number_id
68
+ # The Account Number to include in the transfer as the debtor's account number.
69
+ #
70
+ # @return [String]
71
+ required :source_account_number_id, String
72
+
73
+ # @!attribute unstructured_remittance_information
74
+ # Unstructured remittance information to include in the transfer.
75
+ #
76
+ # @return [String]
77
+ required :unstructured_remittance_information, String
78
+
79
+ # @!attribute require_approval
80
+ # Whether the transfer requires explicit approval via the dashboard or API.
81
+ #
82
+ # @return [Boolean, nil]
83
+ optional :require_approval, Increase::Internal::Type::Boolean
84
+
85
+ # @!attribute routing_number
86
+ # The creditor's bank account routing or transit number. Required in certain
87
+ # countries.
88
+ #
89
+ # @return [String, nil]
90
+ optional :routing_number, String
91
+
92
+ # @!method initialize(account_id:, account_number:, bank_identification_code:, creditor_address:, creditor_name:, debtor_address:, debtor_name:, instructed_amount:, instructed_currency:, source_account_number_id:, unstructured_remittance_information:, require_approval: nil, routing_number: nil, request_options: {})
93
+ # Some parameter documentations has been truncated, see
94
+ # {Increase::Models::SwiftTransferCreateParams} for more details.
95
+ #
96
+ # @param account_id [String] The identifier for the account that will send the transfer.
97
+ #
98
+ # @param account_number [String] The creditor's account number.
99
+ #
100
+ # @param bank_identification_code [String] The bank identification code (BIC) of the creditor. If it ends with the three-ch
101
+ #
102
+ # @param creditor_address [Increase::Models::SwiftTransferCreateParams::CreditorAddress] The creditor's address.
103
+ #
104
+ # @param creditor_name [String] The creditor's name.
105
+ #
106
+ # @param debtor_address [Increase::Models::SwiftTransferCreateParams::DebtorAddress] The debtor's address.
107
+ #
108
+ # @param debtor_name [String] The debtor's name.
109
+ #
110
+ # @param instructed_amount [Integer] The amount, in minor units of `instructed_currency`, to send to the creditor.
111
+ #
112
+ # @param instructed_currency [Symbol, Increase::Models::SwiftTransferCreateParams::InstructedCurrency] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the inst
113
+ #
114
+ # @param source_account_number_id [String] The Account Number to include in the transfer as the debtor's account number.
115
+ #
116
+ # @param unstructured_remittance_information [String] Unstructured remittance information to include in the transfer.
117
+ #
118
+ # @param require_approval [Boolean] Whether the transfer requires explicit approval via the dashboard or API.
119
+ #
120
+ # @param routing_number [String] The creditor's bank account routing or transit number. Required in certain count
121
+ #
122
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
123
+
124
+ class CreditorAddress < Increase::Internal::Type::BaseModel
125
+ # @!attribute city
126
+ # The city, district, town, or village of the address.
127
+ #
128
+ # @return [String]
129
+ required :city, String
130
+
131
+ # @!attribute country
132
+ # The two-letter
133
+ # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for
134
+ # the country of the address.
135
+ #
136
+ # @return [String]
137
+ required :country, String
138
+
139
+ # @!attribute line1
140
+ # The first line of the address. This is usually the street number and street.
141
+ #
142
+ # @return [String]
143
+ required :line1, String
144
+
145
+ # @!attribute line2
146
+ # The second line of the address. This might be the floor or room number.
147
+ #
148
+ # @return [String, nil]
149
+ optional :line2, String
150
+
151
+ # @!attribute postal_code
152
+ # The ZIP or postal code of the address. Required in certain countries.
153
+ #
154
+ # @return [String, nil]
155
+ optional :postal_code, String
156
+
157
+ # @!attribute state
158
+ # The state, province, or region of the address. Required in certain countries.
159
+ #
160
+ # @return [String, nil]
161
+ optional :state, String
162
+
163
+ # @!method initialize(city:, country:, line1:, line2: nil, postal_code: nil, state: nil)
164
+ # Some parameter documentations has been truncated, see
165
+ # {Increase::Models::SwiftTransferCreateParams::CreditorAddress} for more details.
166
+ #
167
+ # The creditor's address.
168
+ #
169
+ # @param city [String] The city, district, town, or village of the address.
170
+ #
171
+ # @param country [String] The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alp
172
+ #
173
+ # @param line1 [String] The first line of the address. This is usually the street number and street.
174
+ #
175
+ # @param line2 [String] The second line of the address. This might be the floor or room number.
176
+ #
177
+ # @param postal_code [String] The ZIP or postal code of the address. Required in certain countries.
178
+ #
179
+ # @param state [String] The state, province, or region of the address. Required in certain countries.
180
+ end
181
+
182
+ class DebtorAddress < Increase::Internal::Type::BaseModel
183
+ # @!attribute city
184
+ # The city, district, town, or village of the address.
185
+ #
186
+ # @return [String]
187
+ required :city, String
188
+
189
+ # @!attribute country
190
+ # The two-letter
191
+ # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for
192
+ # the country of the address.
193
+ #
194
+ # @return [String]
195
+ required :country, String
196
+
197
+ # @!attribute line1
198
+ # The first line of the address. This is usually the street number and street.
199
+ #
200
+ # @return [String]
201
+ required :line1, String
202
+
203
+ # @!attribute line2
204
+ # The second line of the address. This might be the floor or room number.
205
+ #
206
+ # @return [String, nil]
207
+ optional :line2, String
208
+
209
+ # @!attribute postal_code
210
+ # The ZIP or postal code of the address. Required in certain countries.
211
+ #
212
+ # @return [String, nil]
213
+ optional :postal_code, String
214
+
215
+ # @!attribute state
216
+ # The state, province, or region of the address. Required in certain countries.
217
+ #
218
+ # @return [String, nil]
219
+ optional :state, String
220
+
221
+ # @!method initialize(city:, country:, line1:, line2: nil, postal_code: nil, state: nil)
222
+ # Some parameter documentations has been truncated, see
223
+ # {Increase::Models::SwiftTransferCreateParams::DebtorAddress} for more details.
224
+ #
225
+ # The debtor's address.
226
+ #
227
+ # @param city [String] The city, district, town, or village of the address.
228
+ #
229
+ # @param country [String] The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alp
230
+ #
231
+ # @param line1 [String] The first line of the address. This is usually the street number and street.
232
+ #
233
+ # @param line2 [String] The second line of the address. This might be the floor or room number.
234
+ #
235
+ # @param postal_code [String] The ZIP or postal code of the address. Required in certain countries.
236
+ #
237
+ # @param state [String] The state, province, or region of the address. Required in certain countries.
238
+ end
239
+
240
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the
241
+ # instructed amount.
242
+ module InstructedCurrency
243
+ extend Increase::Internal::Type::Enum
244
+
245
+ # United States Dollar
246
+ USD = :USD
247
+
248
+ # @!method self.values
249
+ # @return [Array<Symbol>]
250
+ end
251
+ end
252
+ end
253
+ end
@@ -0,0 +1,159 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ # @see Increase::Resources::SwiftTransfers#list
6
+ class SwiftTransferListParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ # @!attribute account_id
11
+ # Filter Swift Transfers to those that originated from the specified Account.
12
+ #
13
+ # @return [String, nil]
14
+ optional :account_id, String
15
+
16
+ # @!attribute created_at
17
+ #
18
+ # @return [Increase::Models::SwiftTransferListParams::CreatedAt, nil]
19
+ optional :created_at, -> { Increase::SwiftTransferListParams::CreatedAt }
20
+
21
+ # @!attribute cursor
22
+ # Return the page of entries after this one.
23
+ #
24
+ # @return [String, nil]
25
+ optional :cursor, String
26
+
27
+ # @!attribute idempotency_key
28
+ # Filter records to the one with the specified `idempotency_key` you chose for
29
+ # that object. This value is unique across Increase and is used to ensure that a
30
+ # request is only processed once. Learn more about
31
+ # [idempotency](https://increase.com/documentation/idempotency-keys).
32
+ #
33
+ # @return [String, nil]
34
+ optional :idempotency_key, String
35
+
36
+ # @!attribute limit
37
+ # Limit the size of the list that is returned. The default (and maximum) is 100
38
+ # objects.
39
+ #
40
+ # @return [Integer, nil]
41
+ optional :limit, Integer
42
+
43
+ # @!attribute status
44
+ #
45
+ # @return [Increase::Models::SwiftTransferListParams::Status, nil]
46
+ optional :status, -> { Increase::SwiftTransferListParams::Status }
47
+
48
+ # @!method initialize(account_id: nil, created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {})
49
+ # Some parameter documentations has been truncated, see
50
+ # {Increase::Models::SwiftTransferListParams} for more details.
51
+ #
52
+ # @param account_id [String] Filter Swift Transfers to those that originated from the specified Account.
53
+ #
54
+ # @param created_at [Increase::Models::SwiftTransferListParams::CreatedAt]
55
+ #
56
+ # @param cursor [String] Return the page of entries after this one.
57
+ #
58
+ # @param idempotency_key [String] Filter records to the one with the specified `idempotency_key` you chose for tha
59
+ #
60
+ # @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
61
+ #
62
+ # @param status [Increase::Models::SwiftTransferListParams::Status]
63
+ #
64
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
65
+
66
+ class CreatedAt < Increase::Internal::Type::BaseModel
67
+ # @!attribute after
68
+ # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
69
+ # timestamp.
70
+ #
71
+ # @return [Time, nil]
72
+ optional :after, Time
73
+
74
+ # @!attribute before
75
+ # Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
76
+ # timestamp.
77
+ #
78
+ # @return [Time, nil]
79
+ optional :before, Time
80
+
81
+ # @!attribute on_or_after
82
+ # Return results on or after this
83
+ # [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
84
+ #
85
+ # @return [Time, nil]
86
+ optional :on_or_after, Time
87
+
88
+ # @!attribute on_or_before
89
+ # Return results on or before this
90
+ # [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
91
+ #
92
+ # @return [Time, nil]
93
+ optional :on_or_before, Time
94
+
95
+ # @!method initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil)
96
+ # Some parameter documentations has been truncated, see
97
+ # {Increase::Models::SwiftTransferListParams::CreatedAt} for more details.
98
+ #
99
+ # @param after [Time] Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) tim
100
+ #
101
+ # @param before [Time] Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) ti
102
+ #
103
+ # @param on_or_after [Time] Return results on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_860
104
+ #
105
+ # @param on_or_before [Time] Return results on or before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_86
106
+ end
107
+
108
+ class Status < Increase::Internal::Type::BaseModel
109
+ # @!attribute in_
110
+ # Return results whose value is in the provided list. For GET requests, this
111
+ # should be encoded as a comma-delimited string, such as `?in=one,two,three`.
112
+ #
113
+ # @return [Array<Symbol, Increase::Models::SwiftTransferListParams::Status::In>, nil]
114
+ optional :in_,
115
+ -> {
116
+ Increase::Internal::Type::ArrayOf[enum: Increase::SwiftTransferListParams::Status::In]
117
+ },
118
+ api_name: :in
119
+
120
+ # @!method initialize(in_: nil)
121
+ # Some parameter documentations has been truncated, see
122
+ # {Increase::Models::SwiftTransferListParams::Status} for more details.
123
+ #
124
+ # @param in_ [Array<Symbol, Increase::Models::SwiftTransferListParams::Status::In>] Return results whose value is in the provided list. For GET requests, this shoul
125
+
126
+ module In
127
+ extend Increase::Internal::Type::Enum
128
+
129
+ # The transfer is pending approval.
130
+ PENDING_APPROVAL = :pending_approval
131
+
132
+ # The transfer has been canceled.
133
+ CANCELED = :canceled
134
+
135
+ # The transfer is pending review by Increase.
136
+ PENDING_REVIEWING = :pending_reviewing
137
+
138
+ # The transfer requires attention from an Increase operator.
139
+ REQUIRES_ATTENTION = :requires_attention
140
+
141
+ # The transfer is pending initiation.
142
+ PENDING_INITIATING = :pending_initiating
143
+
144
+ # The transfer has been initiated.
145
+ INITIATED = :initiated
146
+
147
+ # The transfer has been rejected by Increase.
148
+ REJECTED = :rejected
149
+
150
+ # The transfer has been returned.
151
+ RETURNED = :returned
152
+
153
+ # @!method self.values
154
+ # @return [Array<Symbol>]
155
+ end
156
+ end
157
+ end
158
+ end
159
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ # @see Increase::Resources::SwiftTransfers#retrieve
6
+ class SwiftTransferRetrieveParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end
@@ -509,6 +509,18 @@ module Increase
509
509
 
510
510
  SupplementalDocumentListParams = Increase::Models::SupplementalDocumentListParams
511
511
 
512
+ SwiftTransfer = Increase::Models::SwiftTransfer
513
+
514
+ SwiftTransferApproveParams = Increase::Models::SwiftTransferApproveParams
515
+
516
+ SwiftTransferCancelParams = Increase::Models::SwiftTransferCancelParams
517
+
518
+ SwiftTransferCreateParams = Increase::Models::SwiftTransferCreateParams
519
+
520
+ SwiftTransferListParams = Increase::Models::SwiftTransferListParams
521
+
522
+ SwiftTransferRetrieveParams = Increase::Models::SwiftTransferRetrieveParams
523
+
512
524
  Transaction = Increase::Models::Transaction
513
525
 
514
526
  TransactionListParams = Increase::Models::TransactionListParams
@@ -0,0 +1,159 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Resources
5
+ class SwiftTransfers
6
+ # Some parameter documentations has been truncated, see
7
+ # {Increase::Models::SwiftTransferCreateParams} for more details.
8
+ #
9
+ # Create a Swift Transfer
10
+ #
11
+ # @overload create(account_id:, account_number:, bank_identification_code:, creditor_address:, creditor_name:, debtor_address:, debtor_name:, instructed_amount:, instructed_currency:, source_account_number_id:, unstructured_remittance_information:, require_approval: nil, routing_number: nil, request_options: {})
12
+ #
13
+ # @param account_id [String] The identifier for the account that will send the transfer.
14
+ #
15
+ # @param account_number [String] The creditor's account number.
16
+ #
17
+ # @param bank_identification_code [String] The bank identification code (BIC) of the creditor. If it ends with the three-ch
18
+ #
19
+ # @param creditor_address [Increase::Models::SwiftTransferCreateParams::CreditorAddress] The creditor's address.
20
+ #
21
+ # @param creditor_name [String] The creditor's name.
22
+ #
23
+ # @param debtor_address [Increase::Models::SwiftTransferCreateParams::DebtorAddress] The debtor's address.
24
+ #
25
+ # @param debtor_name [String] The debtor's name.
26
+ #
27
+ # @param instructed_amount [Integer] The amount, in minor units of `instructed_currency`, to send to the creditor.
28
+ #
29
+ # @param instructed_currency [Symbol, Increase::Models::SwiftTransferCreateParams::InstructedCurrency] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the inst
30
+ #
31
+ # @param source_account_number_id [String] The Account Number to include in the transfer as the debtor's account number.
32
+ #
33
+ # @param unstructured_remittance_information [String] Unstructured remittance information to include in the transfer.
34
+ #
35
+ # @param require_approval [Boolean] Whether the transfer requires explicit approval via the dashboard or API.
36
+ #
37
+ # @param routing_number [String] The creditor's bank account routing or transit number. Required in certain count
38
+ #
39
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
40
+ #
41
+ # @return [Increase::Models::SwiftTransfer]
42
+ #
43
+ # @see Increase::Models::SwiftTransferCreateParams
44
+ def create(params)
45
+ parsed, options = Increase::SwiftTransferCreateParams.dump_request(params)
46
+ @client.request(
47
+ method: :post,
48
+ path: "swift_transfers",
49
+ body: parsed,
50
+ model: Increase::SwiftTransfer,
51
+ options: options
52
+ )
53
+ end
54
+
55
+ # Retrieve a Swift Transfer
56
+ #
57
+ # @overload retrieve(swift_transfer_id, request_options: {})
58
+ #
59
+ # @param swift_transfer_id [String] The identifier of the Swift Transfer.
60
+ #
61
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
62
+ #
63
+ # @return [Increase::Models::SwiftTransfer]
64
+ #
65
+ # @see Increase::Models::SwiftTransferRetrieveParams
66
+ def retrieve(swift_transfer_id, params = {})
67
+ @client.request(
68
+ method: :get,
69
+ path: ["swift_transfers/%1$s", swift_transfer_id],
70
+ model: Increase::SwiftTransfer,
71
+ options: params[:request_options]
72
+ )
73
+ end
74
+
75
+ # Some parameter documentations has been truncated, see
76
+ # {Increase::Models::SwiftTransferListParams} for more details.
77
+ #
78
+ # List Swift Transfers
79
+ #
80
+ # @overload list(account_id: nil, created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {})
81
+ #
82
+ # @param account_id [String] Filter Swift Transfers to those that originated from the specified Account.
83
+ #
84
+ # @param created_at [Increase::Models::SwiftTransferListParams::CreatedAt]
85
+ #
86
+ # @param cursor [String] Return the page of entries after this one.
87
+ #
88
+ # @param idempotency_key [String] Filter records to the one with the specified `idempotency_key` you chose for tha
89
+ #
90
+ # @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
91
+ #
92
+ # @param status [Increase::Models::SwiftTransferListParams::Status]
93
+ #
94
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
95
+ #
96
+ # @return [Increase::Internal::Page<Increase::Models::SwiftTransfer>]
97
+ #
98
+ # @see Increase::Models::SwiftTransferListParams
99
+ def list(params = {})
100
+ parsed, options = Increase::SwiftTransferListParams.dump_request(params)
101
+ @client.request(
102
+ method: :get,
103
+ path: "swift_transfers",
104
+ query: parsed,
105
+ page: Increase::Internal::Page,
106
+ model: Increase::SwiftTransfer,
107
+ options: options
108
+ )
109
+ end
110
+
111
+ # Approve a Swift Transfer
112
+ #
113
+ # @overload approve(swift_transfer_id, request_options: {})
114
+ #
115
+ # @param swift_transfer_id [String] The identifier of the Swift Transfer to approve.
116
+ #
117
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
118
+ #
119
+ # @return [Increase::Models::SwiftTransfer]
120
+ #
121
+ # @see Increase::Models::SwiftTransferApproveParams
122
+ def approve(swift_transfer_id, params = {})
123
+ @client.request(
124
+ method: :post,
125
+ path: ["swift_transfers/%1$s/approve", swift_transfer_id],
126
+ model: Increase::SwiftTransfer,
127
+ options: params[:request_options]
128
+ )
129
+ end
130
+
131
+ # Cancel a pending Swift Transfer
132
+ #
133
+ # @overload cancel(swift_transfer_id, request_options: {})
134
+ #
135
+ # @param swift_transfer_id [String] The identifier of the pending Swift Transfer to cancel.
136
+ #
137
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
138
+ #
139
+ # @return [Increase::Models::SwiftTransfer]
140
+ #
141
+ # @see Increase::Models::SwiftTransferCancelParams
142
+ def cancel(swift_transfer_id, params = {})
143
+ @client.request(
144
+ method: :post,
145
+ path: ["swift_transfers/%1$s/cancel", swift_transfer_id],
146
+ model: Increase::SwiftTransfer,
147
+ options: params[:request_options]
148
+ )
149
+ end
150
+
151
+ # @api private
152
+ #
153
+ # @param client [Increase::Client]
154
+ def initialize(client:)
155
+ @client = client
156
+ end
157
+ end
158
+ end
159
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.174.0"
4
+ VERSION = "1.175.0"
5
5
  end
data/lib/increase.rb CHANGED
@@ -329,6 +329,12 @@ require_relative "increase/models/simulations/wire_transfer_reverse_params"
329
329
  require_relative "increase/models/simulations/wire_transfer_submit_params"
330
330
  require_relative "increase/models/supplemental_document_create_params"
331
331
  require_relative "increase/models/supplemental_document_list_params"
332
+ require_relative "increase/models/swift_transfer"
333
+ require_relative "increase/models/swift_transfer_approve_params"
334
+ require_relative "increase/models/swift_transfer_cancel_params"
335
+ require_relative "increase/models/swift_transfer_create_params"
336
+ require_relative "increase/models/swift_transfer_list_params"
337
+ require_relative "increase/models/swift_transfer_retrieve_params"
332
338
  require_relative "increase/models/transaction"
333
339
  require_relative "increase/models/transaction_list_params"
334
340
  require_relative "increase/models/transaction_retrieve_params"
@@ -427,6 +433,7 @@ require_relative "increase/resources/simulations/real_time_payments_transfers"
427
433
  require_relative "increase/resources/simulations/wire_drawdown_requests"
428
434
  require_relative "increase/resources/simulations/wire_transfers"
429
435
  require_relative "increase/resources/supplemental_documents"
436
+ require_relative "increase/resources/swift_transfers"
430
437
  require_relative "increase/resources/transactions"
431
438
  require_relative "increase/resources/wire_drawdown_requests"
432
439
  require_relative "increase/resources/wire_transfers"
@@ -103,6 +103,9 @@ module Increase
103
103
  sig { returns(Increase::Resources::InboundFednowTransfers) }
104
104
  attr_reader :inbound_fednow_transfers
105
105
 
106
+ sig { returns(Increase::Resources::SwiftTransfers) }
107
+ attr_reader :swift_transfers
108
+
106
109
  sig { returns(Increase::Resources::CheckDeposits) }
107
110
  attr_reader :check_deposits
108
111