increase 1.9.0 → 1.11.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 (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/README.md +1 -1
  4. data/lib/increase/models/card_payment.rb +3 -0
  5. data/lib/increase/models/declined_transaction.rb +3 -0
  6. data/lib/increase/models/inbound_wire_transfer_list_params.rb +10 -1
  7. data/lib/increase/models/simulations/card_authorization_create_params.rb +3 -0
  8. data/lib/increase/models/simulations/inbound_wire_transfer_create_params.rb +10 -1
  9. data/lib/increase/models/simulations/wire_drawdown_request_refuse_params.rb +16 -0
  10. data/lib/increase/models/wire_drawdown_request.rb +174 -88
  11. data/lib/increase/models/wire_drawdown_request_create_params.rb +156 -81
  12. data/lib/increase/resources/inbound_wire_transfers.rb +3 -1
  13. data/lib/increase/resources/simulations/inbound_wire_transfers.rb +3 -1
  14. data/lib/increase/resources/simulations/wire_drawdown_requests.rb +36 -0
  15. data/lib/increase/resources/simulations.rb +4 -0
  16. data/lib/increase/resources/wire_drawdown_requests.rb +10 -21
  17. data/lib/increase/version.rb +1 -1
  18. data/lib/increase.rb +2 -0
  19. data/rbi/increase/models/card_payment.rbi +7 -0
  20. data/rbi/increase/models/declined_transaction.rbi +7 -0
  21. data/rbi/increase/models/inbound_wire_transfer_list_params.rbi +13 -0
  22. data/rbi/increase/models/simulations/card_authorization_create_params.rbi +7 -0
  23. data/rbi/increase/models/simulations/inbound_wire_transfer_create_params.rbi +13 -0
  24. data/rbi/increase/models/simulations/wire_drawdown_request_refuse_params.rbi +32 -0
  25. data/rbi/increase/models/wire_drawdown_request.rbi +239 -95
  26. data/rbi/increase/models/wire_drawdown_request_create_params.rbi +249 -118
  27. data/rbi/increase/resources/inbound_wire_transfers.rbi +4 -0
  28. data/rbi/increase/resources/simulations/inbound_wire_transfers.rbi +4 -0
  29. data/rbi/increase/resources/simulations/wire_drawdown_requests.rbi +28 -0
  30. data/rbi/increase/resources/simulations.rbi +3 -0
  31. data/rbi/increase/resources/wire_drawdown_requests.rbi +25 -43
  32. data/sig/increase/models/card_payment.rbs +4 -0
  33. data/sig/increase/models/declined_transaction.rbs +4 -0
  34. data/sig/increase/models/inbound_wire_transfer_list_params.rbs +8 -1
  35. data/sig/increase/models/simulations/card_authorization_create_params.rbs +4 -0
  36. data/sig/increase/models/simulations/inbound_wire_transfer_create_params.rbs +8 -1
  37. data/sig/increase/models/simulations/wire_drawdown_request_refuse_params.rbs +17 -0
  38. data/sig/increase/models/wire_drawdown_request.rbs +119 -55
  39. data/sig/increase/models/wire_drawdown_request_create_params.rbs +123 -61
  40. data/sig/increase/resources/inbound_wire_transfers.rbs +1 -0
  41. data/sig/increase/resources/simulations/inbound_wire_transfers.rbs +1 -0
  42. data/sig/increase/resources/simulations/wire_drawdown_requests.rbs +14 -0
  43. data/sig/increase/resources/simulations.rbs +2 -0
  44. data/sig/increase/resources/wire_drawdown_requests.rbs +7 -11
  45. metadata +8 -2
@@ -8,122 +8,197 @@ module Increase
8
8
  include Increase::Internal::Type::RequestParameters
9
9
 
10
10
  # @!attribute account_number_id
11
- # The Account Number to which the recipient should send funds.
11
+ # The Account Number to which the debtor should send funds.
12
12
  #
13
13
  # @return [String]
14
14
  required :account_number_id, String
15
15
 
16
16
  # @!attribute amount
17
- # The amount requested from the recipient, in USD cents.
17
+ # The amount requested from the debtor, in USD cents.
18
18
  #
19
19
  # @return [Integer]
20
20
  required :amount, Integer
21
21
 
22
- # @!attribute message_to_recipient
23
- # A message the recipient will see as part of the request.
22
+ # @!attribute creditor_address
23
+ # The creditor's address.
24
24
  #
25
- # @return [String]
26
- required :message_to_recipient, String
27
-
28
- # @!attribute recipient_account_number
29
- # The drawdown request's recipient's account number.
30
- #
31
- # @return [String]
32
- required :recipient_account_number, String
25
+ # @return [Increase::Models::WireDrawdownRequestCreateParams::CreditorAddress]
26
+ required :creditor_address, -> { Increase::WireDrawdownRequestCreateParams::CreditorAddress }
33
27
 
34
- # @!attribute recipient_name
35
- # The drawdown request's recipient's name.
28
+ # @!attribute creditor_name
29
+ # The creditor's name.
36
30
  #
37
31
  # @return [String]
38
- required :recipient_name, String
32
+ required :creditor_name, String
39
33
 
40
- # @!attribute recipient_routing_number
41
- # The drawdown request's recipient's routing number.
34
+ # @!attribute debtor_account_number
35
+ # The debtor's account number.
42
36
  #
43
37
  # @return [String]
44
- required :recipient_routing_number, String
45
-
46
- # @!attribute originator_address_line1
47
- # The drawdown request originator's address line 1. This is only necessary if
48
- # you're requesting a payment to a commingled account. Otherwise, we'll use the
49
- # associated entity's details.
50
- #
51
- # @return [String, nil]
52
- optional :originator_address_line1, String
53
-
54
- # @!attribute originator_address_line2
55
- # The drawdown request originator's address line 2. This is only necessary if
56
- # you're requesting a payment to a commingled account. Otherwise, we'll use the
57
- # associated entity's details.
58
- #
59
- # @return [String, nil]
60
- optional :originator_address_line2, String
38
+ required :debtor_account_number, String
61
39
 
62
- # @!attribute originator_address_line3
63
- # The drawdown request originator's address line 3. This is only necessary if
64
- # you're requesting a payment to a commingled account. Otherwise, we'll use the
65
- # associated entity's details.
40
+ # @!attribute debtor_address
41
+ # The debtor's address.
66
42
  #
67
- # @return [String, nil]
68
- optional :originator_address_line3, String
43
+ # @return [Increase::Models::WireDrawdownRequestCreateParams::DebtorAddress]
44
+ required :debtor_address, -> { Increase::WireDrawdownRequestCreateParams::DebtorAddress }
69
45
 
70
- # @!attribute originator_name
71
- # The drawdown request originator's name. This is only necessary if you're
72
- # requesting a payment to a commingled account. Otherwise, we'll use the
73
- # associated entity's details.
46
+ # @!attribute debtor_name
47
+ # The debtor's name.
74
48
  #
75
- # @return [String, nil]
76
- optional :originator_name, String
77
-
78
- # @!attribute recipient_address_line1
79
- # Line 1 of the drawdown request's recipient's address.
80
- #
81
- # @return [String, nil]
82
- optional :recipient_address_line1, String
49
+ # @return [String]
50
+ required :debtor_name, String
83
51
 
84
- # @!attribute recipient_address_line2
85
- # Line 2 of the drawdown request's recipient's address.
52
+ # @!attribute debtor_routing_number
53
+ # The debtor's routing number.
86
54
  #
87
- # @return [String, nil]
88
- optional :recipient_address_line2, String
55
+ # @return [String]
56
+ required :debtor_routing_number, String
89
57
 
90
- # @!attribute recipient_address_line3
91
- # Line 3 of the drawdown request's recipient's address.
58
+ # @!attribute unstructured_remittance_information
59
+ # Remittance information the debtor will see as part of the request.
92
60
  #
93
- # @return [String, nil]
94
- optional :recipient_address_line3, String
61
+ # @return [String]
62
+ required :unstructured_remittance_information, String
95
63
 
96
- # @!method initialize(account_number_id:, amount:, message_to_recipient:, recipient_account_number:, recipient_name:, recipient_routing_number:, originator_address_line1: nil, originator_address_line2: nil, originator_address_line3: nil, originator_name: nil, recipient_address_line1: nil, recipient_address_line2: nil, recipient_address_line3: nil, request_options: {})
97
- # Some parameter documentations has been truncated, see
98
- # {Increase::Models::WireDrawdownRequestCreateParams} for more details.
99
- #
100
- # @param account_number_id [String] The Account Number to which the recipient should send funds.
101
- #
102
- # @param amount [Integer] The amount requested from the recipient, in USD cents.
103
- #
104
- # @param message_to_recipient [String] A message the recipient will see as part of the request.
64
+ # @!method initialize(account_number_id:, amount:, creditor_address:, creditor_name:, debtor_account_number:, debtor_address:, debtor_name:, debtor_routing_number:, unstructured_remittance_information:, request_options: {})
65
+ # @param account_number_id [String] The Account Number to which the debtor should send funds.
105
66
  #
106
- # @param recipient_account_number [String] The drawdown request's recipient's account number.
67
+ # @param amount [Integer] The amount requested from the debtor, in USD cents.
107
68
  #
108
- # @param recipient_name [String] The drawdown request's recipient's name.
69
+ # @param creditor_address [Increase::Models::WireDrawdownRequestCreateParams::CreditorAddress] The creditor's address.
109
70
  #
110
- # @param recipient_routing_number [String] The drawdown request's recipient's routing number.
71
+ # @param creditor_name [String] The creditor's name.
111
72
  #
112
- # @param originator_address_line1 [String] The drawdown request originator's address line 1. This is only necessary if you'
73
+ # @param debtor_account_number [String] The debtor's account number.
113
74
  #
114
- # @param originator_address_line2 [String] The drawdown request originator's address line 2. This is only necessary if you'
75
+ # @param debtor_address [Increase::Models::WireDrawdownRequestCreateParams::DebtorAddress] The debtor's address.
115
76
  #
116
- # @param originator_address_line3 [String] The drawdown request originator's address line 3. This is only necessary if you'
77
+ # @param debtor_name [String] The debtor's name.
117
78
  #
118
- # @param originator_name [String] The drawdown request originator's name. This is only necessary if you're request
79
+ # @param debtor_routing_number [String] The debtor's routing number.
119
80
  #
120
- # @param recipient_address_line1 [String] Line 1 of the drawdown request's recipient's address.
121
- #
122
- # @param recipient_address_line2 [String] Line 2 of the drawdown request's recipient's address.
123
- #
124
- # @param recipient_address_line3 [String] Line 3 of the drawdown request's recipient's address.
81
+ # @param unstructured_remittance_information [String] Remittance information the debtor will see as part of the request.
125
82
  #
126
83
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
84
+
85
+ class CreditorAddress < Increase::Internal::Type::BaseModel
86
+ # @!attribute city
87
+ # The city, district, town, or village of the address.
88
+ #
89
+ # @return [String]
90
+ required :city, String
91
+
92
+ # @!attribute country
93
+ # The two-letter
94
+ # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for
95
+ # the country of the address.
96
+ #
97
+ # @return [String]
98
+ required :country, String
99
+
100
+ # @!attribute line1
101
+ # The first line of the address. This is usually the street number and street.
102
+ #
103
+ # @return [String]
104
+ required :line1, String
105
+
106
+ # @!attribute line2
107
+ # The second line of the address. This might be the floor or room number.
108
+ #
109
+ # @return [String, nil]
110
+ optional :line2, String
111
+
112
+ # @!attribute postal_code
113
+ # The ZIP code of the address.
114
+ #
115
+ # @return [String, nil]
116
+ optional :postal_code, String
117
+
118
+ # @!attribute state
119
+ # The address state.
120
+ #
121
+ # @return [String, nil]
122
+ optional :state, String
123
+
124
+ # @!method initialize(city:, country:, line1:, line2: nil, postal_code: nil, state: nil)
125
+ # Some parameter documentations has been truncated, see
126
+ # {Increase::Models::WireDrawdownRequestCreateParams::CreditorAddress} for more
127
+ # details.
128
+ #
129
+ # The creditor's address.
130
+ #
131
+ # @param city [String] The city, district, town, or village of the address.
132
+ #
133
+ # @param country [String] The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alp
134
+ #
135
+ # @param line1 [String] The first line of the address. This is usually the street number and street.
136
+ #
137
+ # @param line2 [String] The second line of the address. This might be the floor or room number.
138
+ #
139
+ # @param postal_code [String] The ZIP code of the address.
140
+ #
141
+ # @param state [String] The address state.
142
+ end
143
+
144
+ class DebtorAddress < Increase::Internal::Type::BaseModel
145
+ # @!attribute city
146
+ # The city, district, town, or village of the address.
147
+ #
148
+ # @return [String]
149
+ required :city, String
150
+
151
+ # @!attribute country
152
+ # The two-letter
153
+ # [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for
154
+ # the country of the address.
155
+ #
156
+ # @return [String]
157
+ required :country, String
158
+
159
+ # @!attribute line1
160
+ # The first line of the address. This is usually the street number and street.
161
+ #
162
+ # @return [String]
163
+ required :line1, String
164
+
165
+ # @!attribute line2
166
+ # The second line of the address. This might be the floor or room number.
167
+ #
168
+ # @return [String, nil]
169
+ optional :line2, String
170
+
171
+ # @!attribute postal_code
172
+ # The ZIP code of the address.
173
+ #
174
+ # @return [String, nil]
175
+ optional :postal_code, String
176
+
177
+ # @!attribute state
178
+ # The address state.
179
+ #
180
+ # @return [String, nil]
181
+ optional :state, String
182
+
183
+ # @!method initialize(city:, country:, line1:, line2: nil, postal_code: nil, state: nil)
184
+ # Some parameter documentations has been truncated, see
185
+ # {Increase::Models::WireDrawdownRequestCreateParams::DebtorAddress} for more
186
+ # details.
187
+ #
188
+ # The debtor's address.
189
+ #
190
+ # @param city [String] The city, district, town, or village of the address.
191
+ #
192
+ # @param country [String] The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alp
193
+ #
194
+ # @param line1 [String] The first line of the address. This is usually the street number and street.
195
+ #
196
+ # @param line2 [String] The second line of the address. This might be the floor or room number.
197
+ #
198
+ # @param postal_code [String] The ZIP code of the address.
199
+ #
200
+ # @param state [String] The address state.
201
+ end
127
202
  end
128
203
  end
129
204
  end
@@ -28,7 +28,7 @@ module Increase
28
28
  #
29
29
  # List Inbound Wire Transfers
30
30
  #
31
- # @overload list(account_id: nil, account_number_id: nil, created_at: nil, cursor: nil, limit: nil, status: nil, request_options: {})
31
+ # @overload list(account_id: nil, account_number_id: nil, created_at: nil, cursor: nil, limit: nil, status: nil, wire_drawdown_request_id: nil, request_options: {})
32
32
  #
33
33
  # @param account_id [String] Filter Inbound Wire Transfers to ones belonging to the specified Account.
34
34
  #
@@ -42,6 +42,8 @@ module Increase
42
42
  #
43
43
  # @param status [Increase::Models::InboundWireTransferListParams::Status]
44
44
  #
45
+ # @param wire_drawdown_request_id [String] Filter Inbound Wire Transfers to ones belonging to the specified Wire Drawdown R
46
+ #
45
47
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
46
48
  #
47
49
  # @return [Increase::Internal::Page<Increase::Models::InboundWireTransfer>]
@@ -10,7 +10,7 @@ module Increase
10
10
  #
11
11
  # Simulates an [Inbound Wire Transfer](#inbound-wire-transfers) to your account.
12
12
  #
13
- # @overload create(account_number_id:, amount:, beneficiary_address_line1: nil, beneficiary_address_line2: nil, beneficiary_address_line3: nil, beneficiary_name: nil, beneficiary_reference: nil, originator_address_line1: nil, originator_address_line2: nil, originator_address_line3: nil, originator_name: nil, originator_routing_number: nil, originator_to_beneficiary_information_line1: nil, originator_to_beneficiary_information_line2: nil, originator_to_beneficiary_information_line3: nil, originator_to_beneficiary_information_line4: nil, sender_reference: nil, request_options: {})
13
+ # @overload create(account_number_id:, amount:, beneficiary_address_line1: nil, beneficiary_address_line2: nil, beneficiary_address_line3: nil, beneficiary_name: nil, beneficiary_reference: nil, originator_address_line1: nil, originator_address_line2: nil, originator_address_line3: nil, originator_name: nil, originator_routing_number: nil, originator_to_beneficiary_information_line1: nil, originator_to_beneficiary_information_line2: nil, originator_to_beneficiary_information_line3: nil, originator_to_beneficiary_information_line4: nil, sender_reference: nil, wire_drawdown_request_id: nil, request_options: {})
14
14
  #
15
15
  # @param account_number_id [String] The identifier of the Account Number the inbound Wire Transfer is for.
16
16
  #
@@ -46,6 +46,8 @@ module Increase
46
46
  #
47
47
  # @param sender_reference [String] The sending bank will set sender_reference in production. You can simulate any v
48
48
  #
49
+ # @param wire_drawdown_request_id [String] The identifier of a Wire Drawdown Request the inbound Wire Transfer is fulfillin
50
+ #
49
51
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
50
52
  #
51
53
  # @return [Increase::Models::InboundWireTransfer]
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Resources
5
+ class Simulations
6
+ class WireDrawdownRequests
7
+ # Simulates a Wire Drawdown Request being refused by the debtor.
8
+ #
9
+ # @overload refuse(wire_drawdown_request_id, request_options: {})
10
+ #
11
+ # @param wire_drawdown_request_id [String] The identifier of the Wire Drawdown Request you wish to refuse.
12
+ #
13
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
14
+ #
15
+ # @return [Increase::Models::WireDrawdownRequest]
16
+ #
17
+ # @see Increase::Models::Simulations::WireDrawdownRequestRefuseParams
18
+ def refuse(wire_drawdown_request_id, params = {})
19
+ @client.request(
20
+ method: :post,
21
+ path: ["simulations/wire_drawdown_requests/%1$s/refuse", wire_drawdown_request_id],
22
+ model: Increase::WireDrawdownRequest,
23
+ options: params[:request_options]
24
+ )
25
+ end
26
+
27
+ # @api private
28
+ #
29
+ # @param client [Increase::Client]
30
+ def initialize(client:)
31
+ @client = client
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -54,6 +54,9 @@ module Increase
54
54
  # @return [Increase::Resources::Simulations::InboundWireTransfers]
55
55
  attr_reader :inbound_wire_transfers
56
56
 
57
+ # @return [Increase::Resources::Simulations::WireDrawdownRequests]
58
+ attr_reader :wire_drawdown_requests
59
+
57
60
  # @return [Increase::Resources::Simulations::InboundWireDrawdownRequests]
58
61
  attr_reader :inbound_wire_drawdown_requests
59
62
 
@@ -108,6 +111,7 @@ module Increase
108
111
  @inbound_ach_transfers = Increase::Resources::Simulations::InboundACHTransfers.new(client: client)
109
112
  @wire_transfers = Increase::Resources::Simulations::WireTransfers.new(client: client)
110
113
  @inbound_wire_transfers = Increase::Resources::Simulations::InboundWireTransfers.new(client: client)
114
+ @wire_drawdown_requests = Increase::Resources::Simulations::WireDrawdownRequests.new(client: client)
111
115
  @inbound_wire_drawdown_requests =
112
116
  Increase::Resources::Simulations::InboundWireDrawdownRequests.new(client: client)
113
117
  @check_transfers = Increase::Resources::Simulations::CheckTransfers.new(client: client)
@@ -3,38 +3,27 @@
3
3
  module Increase
4
4
  module Resources
5
5
  class WireDrawdownRequests
6
- # Some parameter documentations has been truncated, see
7
- # {Increase::Models::WireDrawdownRequestCreateParams} for more details.
8
- #
9
6
  # Create a Wire Drawdown Request
10
7
  #
11
- # @overload create(account_number_id:, amount:, message_to_recipient:, recipient_account_number:, recipient_name:, recipient_routing_number:, originator_address_line1: nil, originator_address_line2: nil, originator_address_line3: nil, originator_name: nil, recipient_address_line1: nil, recipient_address_line2: nil, recipient_address_line3: nil, request_options: {})
12
- #
13
- # @param account_number_id [String] The Account Number to which the recipient should send funds.
14
- #
15
- # @param amount [Integer] The amount requested from the recipient, in USD cents.
16
- #
17
- # @param message_to_recipient [String] A message the recipient will see as part of the request.
18
- #
19
- # @param recipient_account_number [String] The drawdown request's recipient's account number.
8
+ # @overload create(account_number_id:, amount:, creditor_address:, creditor_name:, debtor_account_number:, debtor_address:, debtor_name:, debtor_routing_number:, unstructured_remittance_information:, request_options: {})
20
9
  #
21
- # @param recipient_name [String] The drawdown request's recipient's name.
10
+ # @param account_number_id [String] The Account Number to which the debtor should send funds.
22
11
  #
23
- # @param recipient_routing_number [String] The drawdown request's recipient's routing number.
12
+ # @param amount [Integer] The amount requested from the debtor, in USD cents.
24
13
  #
25
- # @param originator_address_line1 [String] The drawdown request originator's address line 1. This is only necessary if you'
14
+ # @param creditor_address [Increase::Models::WireDrawdownRequestCreateParams::CreditorAddress] The creditor's address.
26
15
  #
27
- # @param originator_address_line2 [String] The drawdown request originator's address line 2. This is only necessary if you'
16
+ # @param creditor_name [String] The creditor's name.
28
17
  #
29
- # @param originator_address_line3 [String] The drawdown request originator's address line 3. This is only necessary if you'
18
+ # @param debtor_account_number [String] The debtor's account number.
30
19
  #
31
- # @param originator_name [String] The drawdown request originator's name. This is only necessary if you're request
20
+ # @param debtor_address [Increase::Models::WireDrawdownRequestCreateParams::DebtorAddress] The debtor's address.
32
21
  #
33
- # @param recipient_address_line1 [String] Line 1 of the drawdown request's recipient's address.
22
+ # @param debtor_name [String] The debtor's name.
34
23
  #
35
- # @param recipient_address_line2 [String] Line 2 of the drawdown request's recipient's address.
24
+ # @param debtor_routing_number [String] The debtor's routing number.
36
25
  #
37
- # @param recipient_address_line3 [String] Line 3 of the drawdown request's recipient's address.
26
+ # @param unstructured_remittance_information [String] Remittance information the debtor will see as part of the request.
38
27
  #
39
28
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
40
29
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.9.0"
4
+ VERSION = "1.11.0"
5
5
  end
data/lib/increase.rb CHANGED
@@ -292,6 +292,7 @@ require_relative "increase/models/simulations/physical_card_advance_shipment_par
292
292
  require_relative "increase/models/simulations/physical_card_tracking_updates_params"
293
293
  require_relative "increase/models/simulations/program_create_params"
294
294
  require_relative "increase/models/simulations/real_time_payments_transfer_complete_params"
295
+ require_relative "increase/models/simulations/wire_drawdown_request_refuse_params"
295
296
  require_relative "increase/models/simulations/wire_transfer_reverse_params"
296
297
  require_relative "increase/models/simulations/wire_transfer_submit_params"
297
298
  require_relative "increase/models/supplemental_document_create_params"
@@ -384,6 +385,7 @@ require_relative "increase/resources/simulations/interest_payments"
384
385
  require_relative "increase/resources/simulations/physical_cards"
385
386
  require_relative "increase/resources/simulations/programs"
386
387
  require_relative "increase/resources/simulations/real_time_payments_transfers"
388
+ require_relative "increase/resources/simulations/wire_drawdown_requests"
387
389
  require_relative "increase/resources/simulations/wire_transfers"
388
390
  require_relative "increase/resources/supplemental_documents"
389
391
  require_relative "increase/resources/transactions"
@@ -4151,6 +4151,13 @@ module Increase
4151
4151
  Increase::CardPayment::Element::CardDecline::Reason::TaggedSymbol
4152
4152
  )
4153
4153
 
4154
+ # The transaction was suspected to be used by a card tester to test for valid card numbers.
4155
+ SUSPECTED_CARD_TESTING =
4156
+ T.let(
4157
+ :suspected_card_testing,
4158
+ Increase::CardPayment::Element::CardDecline::Reason::TaggedSymbol
4159
+ )
4160
+
4154
4161
  # The transaction was suspected to be fraudulent. Please reach out to support@increase.com for more information.
4155
4162
  SUSPECTED_FRAUD =
4156
4163
  T.let(
@@ -2066,6 +2066,13 @@ module Increase
2066
2066
  Increase::DeclinedTransaction::Source::CardDecline::Reason::TaggedSymbol
2067
2067
  )
2068
2068
 
2069
+ # The transaction was suspected to be used by a card tester to test for valid card numbers.
2070
+ SUSPECTED_CARD_TESTING =
2071
+ T.let(
2072
+ :suspected_card_testing,
2073
+ Increase::DeclinedTransaction::Source::CardDecline::Reason::TaggedSymbol
2074
+ )
2075
+
2069
2076
  # The transaction was suspected to be fraudulent. Please reach out to support@increase.com for more information.
2070
2077
  SUSPECTED_FRAUD =
2071
2078
  T.let(
@@ -67,6 +67,14 @@ module Increase
67
67
  end
68
68
  attr_writer :status
69
69
 
70
+ # Filter Inbound Wire Transfers to ones belonging to the specified Wire Drawdown
71
+ # Request.
72
+ sig { returns(T.nilable(String)) }
73
+ attr_reader :wire_drawdown_request_id
74
+
75
+ sig { params(wire_drawdown_request_id: String).void }
76
+ attr_writer :wire_drawdown_request_id
77
+
70
78
  sig do
71
79
  params(
72
80
  account_id: String,
@@ -76,6 +84,7 @@ module Increase
76
84
  cursor: String,
77
85
  limit: Integer,
78
86
  status: Increase::InboundWireTransferListParams::Status::OrHash,
87
+ wire_drawdown_request_id: String,
79
88
  request_options: Increase::RequestOptions::OrHash
80
89
  ).returns(T.attached_class)
81
90
  end
@@ -91,6 +100,9 @@ module Increase
91
100
  # objects.
92
101
  limit: nil,
93
102
  status: nil,
103
+ # Filter Inbound Wire Transfers to ones belonging to the specified Wire Drawdown
104
+ # Request.
105
+ wire_drawdown_request_id: nil,
94
106
  request_options: {}
95
107
  )
96
108
  end
@@ -104,6 +116,7 @@ module Increase
104
116
  cursor: String,
105
117
  limit: Integer,
106
118
  status: Increase::InboundWireTransferListParams::Status,
119
+ wire_drawdown_request_id: String,
107
120
  request_options: Increase::RequestOptions
108
121
  }
109
122
  )
@@ -418,6 +418,13 @@ module Increase
418
418
  Increase::Simulations::CardAuthorizationCreateParams::DeclineReason::TaggedSymbol
419
419
  )
420
420
 
421
+ # The transaction was suspected to be used by a card tester to test for valid card numbers.
422
+ SUSPECTED_CARD_TESTING =
423
+ T.let(
424
+ :suspected_card_testing,
425
+ Increase::Simulations::CardAuthorizationCreateParams::DeclineReason::TaggedSymbol
426
+ )
427
+
421
428
  # The transaction was suspected to be fraudulent. Please reach out to support@increase.com for more information.
422
429
  SUSPECTED_FRAUD =
423
430
  T.let(
@@ -143,6 +143,14 @@ module Increase
143
143
  sig { params(sender_reference: String).void }
144
144
  attr_writer :sender_reference
145
145
 
146
+ # The identifier of a Wire Drawdown Request the inbound Wire Transfer is
147
+ # fulfilling.
148
+ sig { returns(T.nilable(String)) }
149
+ attr_reader :wire_drawdown_request_id
150
+
151
+ sig { params(wire_drawdown_request_id: String).void }
152
+ attr_writer :wire_drawdown_request_id
153
+
146
154
  sig do
147
155
  params(
148
156
  account_number_id: String,
@@ -162,6 +170,7 @@ module Increase
162
170
  originator_to_beneficiary_information_line3: String,
163
171
  originator_to_beneficiary_information_line4: String,
164
172
  sender_reference: String,
173
+ wire_drawdown_request_id: String,
165
174
  request_options: Increase::RequestOptions::OrHash
166
175
  ).returns(T.attached_class)
167
176
  end
@@ -215,6 +224,9 @@ module Increase
215
224
  # The sending bank will set sender_reference in production. You can simulate any
216
225
  # value here.
217
226
  sender_reference: nil,
227
+ # The identifier of a Wire Drawdown Request the inbound Wire Transfer is
228
+ # fulfilling.
229
+ wire_drawdown_request_id: nil,
218
230
  request_options: {}
219
231
  )
220
232
  end
@@ -239,6 +251,7 @@ module Increase
239
251
  originator_to_beneficiary_information_line3: String,
240
252
  originator_to_beneficiary_information_line4: String,
241
253
  sender_reference: String,
254
+ wire_drawdown_request_id: String,
242
255
  request_options: Increase::RequestOptions
243
256
  }
244
257
  )
@@ -0,0 +1,32 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ module Simulations
6
+ class WireDrawdownRequestRefuseParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(
13
+ Increase::Simulations::WireDrawdownRequestRefuseParams,
14
+ Increase::Internal::AnyHash
15
+ )
16
+ end
17
+
18
+ sig do
19
+ params(request_options: Increase::RequestOptions::OrHash).returns(
20
+ T.attached_class
21
+ )
22
+ end
23
+ def self.new(request_options: {})
24
+ end
25
+
26
+ sig { override.returns({ request_options: Increase::RequestOptions }) }
27
+ def to_hash
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end