increase 1.47.0 → 1.49.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.
@@ -11,47 +11,45 @@ module Increase
11
11
  # Simulates receiving an
12
12
  # [Inbound Wire Drawdown Request](#inbound-wire-drawdown-requests).
13
13
  #
14
- # @overload create(amount:, beneficiary_account_number:, beneficiary_routing_number:, currency:, message_to_recipient:, originator_account_number:, originator_routing_number:, recipient_account_number_id:, beneficiary_address_line1: nil, beneficiary_address_line2: nil, beneficiary_address_line3: nil, beneficiary_name: nil, originator_address_line1: nil, originator_address_line2: nil, originator_address_line3: nil, originator_name: 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, request_options: {})
14
+ # @overload create(amount:, creditor_account_number:, creditor_routing_number:, currency:, recipient_account_number_id:, creditor_address_line1: nil, creditor_address_line2: nil, creditor_address_line3: nil, creditor_name: nil, debtor_account_number: nil, debtor_address_line1: nil, debtor_address_line2: nil, debtor_address_line3: nil, debtor_name: nil, debtor_routing_number: nil, end_to_end_identification: nil, instruction_identification: nil, unique_end_to_end_transaction_reference: nil, unstructured_remittance_information: nil, request_options: {})
15
15
  #
16
16
  # @param amount [Integer] The amount being requested in cents.
17
17
  #
18
- # @param beneficiary_account_number [String] The drawdown request's beneficiary's account number.
18
+ # @param creditor_account_number [String] The creditor's account number.
19
19
  #
20
- # @param beneficiary_routing_number [String] The drawdown request's beneficiary's routing number.
20
+ # @param creditor_routing_number [String] The creditor's routing number.
21
21
  #
22
22
  # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the amount being
23
23
  #
24
- # @param message_to_recipient [String] A message from the drawdown request's originator.
25
- #
26
- # @param originator_account_number [String] The drawdown request's originator's account number.
24
+ # @param recipient_account_number_id [String] The Account Number to which the recipient of this request is being requested to
27
25
  #
28
- # @param originator_routing_number [String] The drawdown request's originator's routing number.
26
+ # @param creditor_address_line1 [String] A free-form address field set by the sender representing the first line of the c
29
27
  #
30
- # @param recipient_account_number_id [String] The Account Number to which the recipient of this request is being requested to
28
+ # @param creditor_address_line2 [String] A free-form address field set by the sender representing the second line of the
31
29
  #
32
- # @param beneficiary_address_line1 [String] Line 1 of the drawdown request's beneficiary's address.
30
+ # @param creditor_address_line3 [String] A free-form address field set by the sender representing the third line of the c
33
31
  #
34
- # @param beneficiary_address_line2 [String] Line 2 of the drawdown request's beneficiary's address.
32
+ # @param creditor_name [String] A free-form name field set by the sender representing the creditor's name.
35
33
  #
36
- # @param beneficiary_address_line3 [String] Line 3 of the drawdown request's beneficiary's address.
34
+ # @param debtor_account_number [String] The debtor's account number.
37
35
  #
38
- # @param beneficiary_name [String] The drawdown request's beneficiary's name.
36
+ # @param debtor_address_line1 [String] A free-form address field set by the sender representing the first line of the d
39
37
  #
40
- # @param originator_address_line1 [String] Line 1 of the drawdown request's originator's address.
38
+ # @param debtor_address_line2 [String] A free-form address field set by the sender representing the second line of the
41
39
  #
42
- # @param originator_address_line2 [String] Line 2 of the drawdown request's originator's address.
40
+ # @param debtor_address_line3 [String] A free-form address field set by the sender.
43
41
  #
44
- # @param originator_address_line3 [String] Line 3 of the drawdown request's originator's address.
42
+ # @param debtor_name [String] A free-form name field set by the sender representing the debtor's name.
45
43
  #
46
- # @param originator_name [String] The drawdown request's originator's name.
44
+ # @param debtor_routing_number [String] The debtor's routing number.
47
45
  #
48
- # @param originator_to_beneficiary_information_line1 [String] Line 1 of the information conveyed from the originator of the message to the ben
46
+ # @param end_to_end_identification [String] A free-form reference string set by the sender, to help identify the transfer.
49
47
  #
50
- # @param originator_to_beneficiary_information_line2 [String] Line 2 of the information conveyed from the originator of the message to the ben
48
+ # @param instruction_identification [String] The sending bank's identifier for the wire transfer.
51
49
  #
52
- # @param originator_to_beneficiary_information_line3 [String] Line 3 of the information conveyed from the originator of the message to the ben
50
+ # @param unique_end_to_end_transaction_reference [String] The Unique End-to-end Transaction Reference ([UETR](https://www.swift.com/paymen
53
51
  #
54
- # @param originator_to_beneficiary_information_line4 [String] Line 4 of the information conveyed from the originator of the message to the ben
52
+ # @param unstructured_remittance_information [String] A free-form message set by the sender.
55
53
  #
56
54
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
57
55
  #
@@ -24,6 +24,26 @@ module Increase
24
24
  )
25
25
  end
26
26
 
27
+ # Simulates a Wire Drawdown Request being submitted to Fedwire.
28
+ #
29
+ # @overload submit(wire_drawdown_request_id, request_options: {})
30
+ #
31
+ # @param wire_drawdown_request_id [String] The identifier of the Wire Drawdown Request you wish to submit.
32
+ #
33
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
34
+ #
35
+ # @return [Increase::Models::WireDrawdownRequest]
36
+ #
37
+ # @see Increase::Models::Simulations::WireDrawdownRequestSubmitParams
38
+ def submit(wire_drawdown_request_id, params = {})
39
+ @client.request(
40
+ method: :post,
41
+ path: ["simulations/wire_drawdown_requests/%1$s/submit", wire_drawdown_request_id],
42
+ model: Increase::WireDrawdownRequest,
43
+ options: params[:request_options]
44
+ )
45
+ end
46
+
27
47
  # @api private
28
48
  #
29
49
  # @param client [Increase::Client]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.47.0"
4
+ VERSION = "1.49.0"
5
5
  end
data/lib/increase.rb CHANGED
@@ -311,6 +311,7 @@ require_relative "increase/models/simulations/physical_card_tracking_updates_par
311
311
  require_relative "increase/models/simulations/program_create_params"
312
312
  require_relative "increase/models/simulations/real_time_payments_transfer_complete_params"
313
313
  require_relative "increase/models/simulations/wire_drawdown_request_refuse_params"
314
+ require_relative "increase/models/simulations/wire_drawdown_request_submit_params"
314
315
  require_relative "increase/models/simulations/wire_transfer_reverse_params"
315
316
  require_relative "increase/models/simulations/wire_transfer_submit_params"
316
317
  require_relative "increase/models/supplemental_document_create_params"
@@ -19,87 +19,70 @@ module Increase
19
19
  sig { returns(Integer) }
20
20
  attr_accessor :amount
21
21
 
22
- # The drawdown request's beneficiary's account number.
22
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
23
+ # the inbound wire drawdown requested was created.
24
+ sig { returns(Time) }
25
+ attr_accessor :created_at
26
+
27
+ # The creditor's account number.
23
28
  sig { returns(String) }
24
- attr_accessor :beneficiary_account_number
29
+ attr_accessor :creditor_account_number
25
30
 
26
- # Line 1 of the drawdown request's beneficiary's address.
31
+ # A free-form address field set by the sender.
27
32
  sig { returns(T.nilable(String)) }
28
- attr_accessor :beneficiary_address_line1
33
+ attr_accessor :creditor_address_line1
29
34
 
30
- # Line 2 of the drawdown request's beneficiary's address.
35
+ # A free-form address field set by the sender.
31
36
  sig { returns(T.nilable(String)) }
32
- attr_accessor :beneficiary_address_line2
37
+ attr_accessor :creditor_address_line2
33
38
 
34
- # Line 3 of the drawdown request's beneficiary's address.
39
+ # A free-form address field set by the sender.
35
40
  sig { returns(T.nilable(String)) }
36
- attr_accessor :beneficiary_address_line3
41
+ attr_accessor :creditor_address_line3
37
42
 
38
- # The drawdown request's beneficiary's name.
43
+ # A name set by the sender.
39
44
  sig { returns(T.nilable(String)) }
40
- attr_accessor :beneficiary_name
45
+ attr_accessor :creditor_name
41
46
 
42
- # The drawdown request's beneficiary's routing number.
47
+ # The creditor's routing number.
43
48
  sig { returns(String) }
44
- attr_accessor :beneficiary_routing_number
45
-
46
- # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
47
- # the inbound wire drawdown requested was created.
48
- sig { returns(Time) }
49
- attr_accessor :created_at
49
+ attr_accessor :creditor_routing_number
50
50
 
51
51
  # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the amount being
52
52
  # requested. Will always be "USD".
53
53
  sig { returns(String) }
54
54
  attr_accessor :currency
55
55
 
56
- # A message from the drawdown request's originator.
57
- sig { returns(T.nilable(String)) }
58
- attr_accessor :message_to_recipient
59
-
60
- # The drawdown request's originator's account number.
61
- sig { returns(T.nilable(String)) }
62
- attr_accessor :originator_account_number
63
-
64
- # Line 1 of the drawdown request's originator's address.
56
+ # A free-form address field set by the sender.
65
57
  sig { returns(T.nilable(String)) }
66
- attr_accessor :originator_address_line1
58
+ attr_accessor :debtor_address_line1
67
59
 
68
- # Line 2 of the drawdown request's originator's address.
60
+ # A free-form address field set by the sender.
69
61
  sig { returns(T.nilable(String)) }
70
- attr_accessor :originator_address_line2
62
+ attr_accessor :debtor_address_line2
71
63
 
72
- # Line 3 of the drawdown request's originator's address.
64
+ # A free-form address field set by the sender.
73
65
  sig { returns(T.nilable(String)) }
74
- attr_accessor :originator_address_line3
66
+ attr_accessor :debtor_address_line3
75
67
 
76
- # The drawdown request's originator's name.
68
+ # A name set by the sender.
77
69
  sig { returns(T.nilable(String)) }
78
- attr_accessor :originator_name
70
+ attr_accessor :debtor_name
79
71
 
80
- # The drawdown request's originator's routing number.
81
- sig { returns(String) }
82
- attr_accessor :originator_routing_number
83
-
84
- # Line 1 of the information conveyed from the originator of the message to the
85
- # beneficiary.
72
+ # A free-form reference string set by the sender, to help identify the drawdown
73
+ # request.
86
74
  sig { returns(T.nilable(String)) }
87
- attr_accessor :originator_to_beneficiary_information_line1
75
+ attr_accessor :end_to_end_identification
88
76
 
89
- # Line 2 of the information conveyed from the originator of the message to the
90
- # beneficiary.
77
+ # A unique identifier available to the originating and receiving banks, commonly
78
+ # abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
79
+ # service and is helpful when debugging wires with the originating bank.
91
80
  sig { returns(T.nilable(String)) }
92
- attr_accessor :originator_to_beneficiary_information_line2
81
+ attr_accessor :input_message_accountability_data
93
82
 
94
- # Line 3 of the information conveyed from the originator of the message to the
95
- # beneficiary.
83
+ # The sending bank's identifier for the drawdown request.
96
84
  sig { returns(T.nilable(String)) }
97
- attr_accessor :originator_to_beneficiary_information_line3
98
-
99
- # Line 4 of the information conveyed from the originator of the message to the
100
- # beneficiary.
101
- sig { returns(T.nilable(String)) }
102
- attr_accessor :originator_to_beneficiary_information_line4
85
+ attr_accessor :instruction_identification
103
86
 
104
87
  # The Account Number from which the recipient of this request is being requested
105
88
  # to send funds.
@@ -111,6 +94,16 @@ module Increase
111
94
  sig { returns(Increase::InboundWireDrawdownRequest::Type::TaggedSymbol) }
112
95
  attr_accessor :type
113
96
 
97
+ # The Unique End-to-end Transaction Reference
98
+ # ([UETR](https://www.swift.com/payments/what-unique-end-end-transaction-reference-uetr))
99
+ # of the drawdown request.
100
+ sig { returns(T.nilable(String)) }
101
+ attr_accessor :unique_end_to_end_transaction_reference
102
+
103
+ # A free-form message set by the sender.
104
+ sig { returns(T.nilable(String)) }
105
+ attr_accessor :unstructured_remittance_information
106
+
114
107
  # Inbound wire drawdown requests are requests from someone else to send them a
115
108
  # wire. For more information, see our
116
109
  # [Wire Drawdown Requests documentation](/documentation/wire-drawdown-requests).
@@ -118,27 +111,25 @@ module Increase
118
111
  params(
119
112
  id: String,
120
113
  amount: Integer,
121
- beneficiary_account_number: String,
122
- beneficiary_address_line1: T.nilable(String),
123
- beneficiary_address_line2: T.nilable(String),
124
- beneficiary_address_line3: T.nilable(String),
125
- beneficiary_name: T.nilable(String),
126
- beneficiary_routing_number: String,
127
114
  created_at: Time,
115
+ creditor_account_number: String,
116
+ creditor_address_line1: T.nilable(String),
117
+ creditor_address_line2: T.nilable(String),
118
+ creditor_address_line3: T.nilable(String),
119
+ creditor_name: T.nilable(String),
120
+ creditor_routing_number: String,
128
121
  currency: String,
129
- message_to_recipient: T.nilable(String),
130
- originator_account_number: T.nilable(String),
131
- originator_address_line1: T.nilable(String),
132
- originator_address_line2: T.nilable(String),
133
- originator_address_line3: T.nilable(String),
134
- originator_name: T.nilable(String),
135
- originator_routing_number: String,
136
- originator_to_beneficiary_information_line1: T.nilable(String),
137
- originator_to_beneficiary_information_line2: T.nilable(String),
138
- originator_to_beneficiary_information_line3: T.nilable(String),
139
- originator_to_beneficiary_information_line4: T.nilable(String),
122
+ debtor_address_line1: T.nilable(String),
123
+ debtor_address_line2: T.nilable(String),
124
+ debtor_address_line3: T.nilable(String),
125
+ debtor_name: T.nilable(String),
126
+ end_to_end_identification: T.nilable(String),
127
+ input_message_accountability_data: T.nilable(String),
128
+ instruction_identification: T.nilable(String),
140
129
  recipient_account_number_id: String,
141
- type: Increase::InboundWireDrawdownRequest::Type::OrSymbol
130
+ type: Increase::InboundWireDrawdownRequest::Type::OrSymbol,
131
+ unique_end_to_end_transaction_reference: T.nilable(String),
132
+ unstructured_remittance_information: T.nilable(String)
142
133
  ).returns(T.attached_class)
143
134
  end
144
135
  def self.new(
@@ -146,56 +137,53 @@ module Increase
146
137
  id:,
147
138
  # The amount being requested in cents.
148
139
  amount:,
149
- # The drawdown request's beneficiary's account number.
150
- beneficiary_account_number:,
151
- # Line 1 of the drawdown request's beneficiary's address.
152
- beneficiary_address_line1:,
153
- # Line 2 of the drawdown request's beneficiary's address.
154
- beneficiary_address_line2:,
155
- # Line 3 of the drawdown request's beneficiary's address.
156
- beneficiary_address_line3:,
157
- # The drawdown request's beneficiary's name.
158
- beneficiary_name:,
159
- # The drawdown request's beneficiary's routing number.
160
- beneficiary_routing_number:,
161
140
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
162
141
  # the inbound wire drawdown requested was created.
163
142
  created_at:,
143
+ # The creditor's account number.
144
+ creditor_account_number:,
145
+ # A free-form address field set by the sender.
146
+ creditor_address_line1:,
147
+ # A free-form address field set by the sender.
148
+ creditor_address_line2:,
149
+ # A free-form address field set by the sender.
150
+ creditor_address_line3:,
151
+ # A name set by the sender.
152
+ creditor_name:,
153
+ # The creditor's routing number.
154
+ creditor_routing_number:,
164
155
  # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the amount being
165
156
  # requested. Will always be "USD".
166
157
  currency:,
167
- # A message from the drawdown request's originator.
168
- message_to_recipient:,
169
- # The drawdown request's originator's account number.
170
- originator_account_number:,
171
- # Line 1 of the drawdown request's originator's address.
172
- originator_address_line1:,
173
- # Line 2 of the drawdown request's originator's address.
174
- originator_address_line2:,
175
- # Line 3 of the drawdown request's originator's address.
176
- originator_address_line3:,
177
- # The drawdown request's originator's name.
178
- originator_name:,
179
- # The drawdown request's originator's routing number.
180
- originator_routing_number:,
181
- # Line 1 of the information conveyed from the originator of the message to the
182
- # beneficiary.
183
- originator_to_beneficiary_information_line1:,
184
- # Line 2 of the information conveyed from the originator of the message to the
185
- # beneficiary.
186
- originator_to_beneficiary_information_line2:,
187
- # Line 3 of the information conveyed from the originator of the message to the
188
- # beneficiary.
189
- originator_to_beneficiary_information_line3:,
190
- # Line 4 of the information conveyed from the originator of the message to the
191
- # beneficiary.
192
- originator_to_beneficiary_information_line4:,
158
+ # A free-form address field set by the sender.
159
+ debtor_address_line1:,
160
+ # A free-form address field set by the sender.
161
+ debtor_address_line2:,
162
+ # A free-form address field set by the sender.
163
+ debtor_address_line3:,
164
+ # A name set by the sender.
165
+ debtor_name:,
166
+ # A free-form reference string set by the sender, to help identify the drawdown
167
+ # request.
168
+ end_to_end_identification:,
169
+ # A unique identifier available to the originating and receiving banks, commonly
170
+ # abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
171
+ # service and is helpful when debugging wires with the originating bank.
172
+ input_message_accountability_data:,
173
+ # The sending bank's identifier for the drawdown request.
174
+ instruction_identification:,
193
175
  # The Account Number from which the recipient of this request is being requested
194
176
  # to send funds.
195
177
  recipient_account_number_id:,
196
178
  # A constant representing the object's type. For this resource it will always be
197
179
  # `inbound_wire_drawdown_request`.
198
- type:
180
+ type:,
181
+ # The Unique End-to-end Transaction Reference
182
+ # ([UETR](https://www.swift.com/payments/what-unique-end-end-transaction-reference-uetr))
183
+ # of the drawdown request.
184
+ unique_end_to_end_transaction_reference:,
185
+ # A free-form message set by the sender.
186
+ unstructured_remittance_information:
199
187
  )
200
188
  end
201
189
 
@@ -204,27 +192,25 @@ module Increase
204
192
  {
205
193
  id: String,
206
194
  amount: Integer,
207
- beneficiary_account_number: String,
208
- beneficiary_address_line1: T.nilable(String),
209
- beneficiary_address_line2: T.nilable(String),
210
- beneficiary_address_line3: T.nilable(String),
211
- beneficiary_name: T.nilable(String),
212
- beneficiary_routing_number: String,
213
195
  created_at: Time,
196
+ creditor_account_number: String,
197
+ creditor_address_line1: T.nilable(String),
198
+ creditor_address_line2: T.nilable(String),
199
+ creditor_address_line3: T.nilable(String),
200
+ creditor_name: T.nilable(String),
201
+ creditor_routing_number: String,
214
202
  currency: String,
215
- message_to_recipient: T.nilable(String),
216
- originator_account_number: T.nilable(String),
217
- originator_address_line1: T.nilable(String),
218
- originator_address_line2: T.nilable(String),
219
- originator_address_line3: T.nilable(String),
220
- originator_name: T.nilable(String),
221
- originator_routing_number: String,
222
- originator_to_beneficiary_information_line1: T.nilable(String),
223
- originator_to_beneficiary_information_line2: T.nilable(String),
224
- originator_to_beneficiary_information_line3: T.nilable(String),
225
- originator_to_beneficiary_information_line4: T.nilable(String),
203
+ debtor_address_line1: T.nilable(String),
204
+ debtor_address_line2: T.nilable(String),
205
+ debtor_address_line3: T.nilable(String),
206
+ debtor_name: T.nilable(String),
207
+ end_to_end_identification: T.nilable(String),
208
+ input_message_accountability_data: T.nilable(String),
209
+ instruction_identification: T.nilable(String),
226
210
  recipient_account_number_id: String,
227
- type: Increase::InboundWireDrawdownRequest::Type::TaggedSymbol
211
+ type: Increase::InboundWireDrawdownRequest::Type::TaggedSymbol,
212
+ unique_end_to_end_transaction_reference: T.nilable(String),
213
+ unstructured_remittance_information: T.nilable(String)
228
214
  }
229
215
  )
230
216
  end