increase 1.361.0 → 1.363.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/README.md +1 -1
- data/lib/increase/client.rb +0 -16
- data/lib/increase/internal/transport/pooled_net_requester.rb +3 -0
- data/lib/increase/internal/util.rb +22 -17
- data/lib/increase/models/ach_transfer.rb +38 -23
- data/lib/increase/models/ach_transfer_create_params.rb +73 -42
- data/lib/increase/models/check_transfer.rb +58 -44
- data/lib/increase/models/check_transfer_create_params.rb +35 -21
- data/lib/increase/models/export.rb +12 -1
- data/lib/increase/models/export_create_params.rb +26 -4
- data/lib/increase/models/inbound_real_time_payments_transfer.rb +10 -1
- data/lib/increase/models/inbound_real_time_payments_transfer_return_params.rb +36 -0
- data/lib/increase/models/real_time_payments_transfer.rb +21 -1
- data/lib/increase/models/simulations/card_dispute_action_params.rb +26 -4
- data/lib/increase/models/simulations/wire_drawdown_request_refuse_params.rb +52 -1
- data/lib/increase/models/transaction.rb +3 -3
- data/lib/increase/models/wire_drawdown_request.rb +78 -1
- data/lib/increase/models.rb +3 -20
- data/lib/increase/resources/ach_transfers.rb +43 -22
- data/lib/increase/resources/inbound_real_time_payments_transfers.rb +28 -0
- data/lib/increase/resources/simulations/wire_drawdown_requests.rb +12 -2
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +1 -14
- data/rbi/increase/client.rbi +0 -12
- data/rbi/increase/internal/util.rbi +3 -1
- data/rbi/increase/models/ach_transfer.rbi +35 -23
- data/rbi/increase/models/ach_transfer_create_params.rbi +72 -42
- data/rbi/increase/models/check_transfer.rbi +72 -54
- data/rbi/increase/models/check_transfer_create_params.rbi +55 -21
- data/rbi/increase/models/export.rbi +15 -3
- data/rbi/increase/models/export_create_params.rbi +27 -3
- data/rbi/increase/models/inbound_real_time_payments_transfer.rbi +8 -0
- data/rbi/increase/models/inbound_real_time_payments_transfer_return_params.rbi +61 -0
- data/rbi/increase/models/real_time_payments_transfer.rbi +18 -0
- data/rbi/increase/models/simulations/card_dispute_action_params.rbi +56 -3
- data/rbi/increase/models/simulations/wire_drawdown_request_refuse_params.rbi +107 -0
- data/rbi/increase/models/transaction.rbi +3 -3
- data/rbi/increase/models/wire_drawdown_request.rbi +146 -0
- data/rbi/increase/models.rbi +3 -22
- data/rbi/increase/resources/ach_transfers.rbi +42 -22
- data/rbi/increase/resources/inbound_real_time_payments_transfers.rbi +19 -0
- data/rbi/increase/resources/simulations/wire_drawdown_requests.rbi +9 -0
- data/sig/increase/client.rbs +0 -8
- data/sig/increase/internal/util.rbs +1 -1
- data/sig/increase/models/ach_transfer.rbs +4 -4
- data/sig/increase/models/check_transfer.rbs +59 -49
- data/sig/increase/models/check_transfer_create_params.rbs +20 -12
- data/sig/increase/models/export.rbs +13 -3
- data/sig/increase/models/export_create_params.rbs +7 -0
- data/sig/increase/models/inbound_real_time_payments_transfer.rbs +5 -0
- data/sig/increase/models/inbound_real_time_payments_transfer_return_params.rbs +30 -0
- data/sig/increase/models/real_time_payments_transfer.rbs +10 -0
- data/sig/increase/models/simulations/card_dispute_action_params.rbs +24 -3
- data/sig/increase/models/simulations/wire_drawdown_request_refuse_params.rbs +51 -1
- data/sig/increase/models/transaction.rbs +4 -4
- data/sig/increase/models/wire_drawdown_request.rbs +64 -0
- data/sig/increase/models.rbs +2 -20
- data/sig/increase/resources/inbound_real_time_payments_transfers.rbs +6 -0
- data/sig/increase/resources/simulations/wire_drawdown_requests.rbs +2 -0
- metadata +20 -45
- data/lib/increase/models/group.rb +0 -57
- data/lib/increase/models/group_retrieve_params.rb +0 -14
- data/lib/increase/models/oauth_application.rb +0 -111
- data/lib/increase/models/oauth_application_list_params.rb +0 -129
- data/lib/increase/models/oauth_application_retrieve_params.rb +0 -22
- data/lib/increase/models/oauth_connection.rb +0 -107
- data/lib/increase/models/oauth_connection_list_params.rb +0 -88
- data/lib/increase/models/oauth_connection_retrieve_params.rb +0 -22
- data/lib/increase/models/oauth_token.rb +0 -76
- data/lib/increase/models/oauth_token_create_params.rb +0 -85
- data/lib/increase/resources/groups.rb +0 -32
- data/lib/increase/resources/oauth_applications.rb +0 -68
- data/lib/increase/resources/oauth_connections.rb +0 -70
- data/lib/increase/resources/oauth_tokens.rb +0 -54
- data/rbi/increase/models/group.rbi +0 -74
- data/rbi/increase/models/group_retrieve_params.rbi +0 -27
- data/rbi/increase/models/oauth_application.rbi +0 -146
- data/rbi/increase/models/oauth_application_list_params.rbi +0 -263
- data/rbi/increase/models/oauth_application_retrieve_params.rbi +0 -46
- data/rbi/increase/models/oauth_connection.rbi +0 -142
- data/rbi/increase/models/oauth_connection_list_params.rbi +0 -187
- data/rbi/increase/models/oauth_connection_retrieve_params.rbi +0 -46
- data/rbi/increase/models/oauth_token.rbi +0 -106
- data/rbi/increase/models/oauth_token_create_params.rbi +0 -133
- data/rbi/increase/resources/groups.rbi +0 -21
- data/rbi/increase/resources/oauth_applications.rbi +0 -50
- data/rbi/increase/resources/oauth_connections.rbi +0 -52
- data/rbi/increase/resources/oauth_tokens.rbi +0 -44
- data/sig/increase/models/group.rbs +0 -36
- data/sig/increase/models/group_retrieve_params.rbs +0 -15
- data/sig/increase/models/oauth_application.rbs +0 -74
- data/sig/increase/models/oauth_application_list_params.rbs +0 -123
- data/sig/increase/models/oauth_application_retrieve_params.rbs +0 -24
- data/sig/increase/models/oauth_connection.rbs +0 -74
- data/sig/increase/models/oauth_connection_list_params.rbs +0 -86
- data/sig/increase/models/oauth_connection_retrieve_params.rbs +0 -24
- data/sig/increase/models/oauth_token.rbs +0 -55
- data/sig/increase/models/oauth_token_create_params.rbs +0 -68
- data/sig/increase/resources/groups.rbs +0 -11
- data/sig/increase/resources/oauth_applications.rbs +0 -20
- data/sig/increase/resources/oauth_connections.rbs +0 -20
- data/sig/increase/resources/oauth_tokens.rbs +0 -16
|
@@ -11,13 +11,18 @@ module Increase
|
|
|
11
11
|
T.any(Increase::ACHTransferCreateParams, Increase::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
# The Increase identifier for the account that will
|
|
14
|
+
# The Increase identifier for the account that will originate the transfer. For
|
|
15
|
+
# credit transfers (transfers with a positive `amount`), this is the account that
|
|
16
|
+
# funds will be sent from. For debit transfers (transfers with a negative
|
|
17
|
+
# `amount`), this is the account that funds will be pulled into.
|
|
15
18
|
sig { returns(String) }
|
|
16
19
|
attr_accessor :account_id
|
|
17
20
|
|
|
18
21
|
# The transfer amount in USD cents. A positive amount originates a credit transfer
|
|
19
|
-
# pushing funds to the
|
|
20
|
-
# transfer pulling funds from the
|
|
22
|
+
# pushing funds from Increase to the account at the other bank. A negative amount
|
|
23
|
+
# originates a debit transfer pulling funds from the account at the other bank
|
|
24
|
+
# into Increase. Debit transfers
|
|
25
|
+
# [might result in a hold before funds are available](/documentation/sending-ach-debit-transfers).
|
|
21
26
|
sig { returns(Integer) }
|
|
22
27
|
attr_accessor :amount
|
|
23
28
|
|
|
@@ -30,9 +35,10 @@ module Increase
|
|
|
30
35
|
sig { returns(String) }
|
|
31
36
|
attr_accessor :statement_descriptor
|
|
32
37
|
|
|
33
|
-
# The receiver's account number. For credit transfers (
|
|
34
|
-
# the account that funds will be sent to. For debit transfers
|
|
35
|
-
# this is the account that funds will be
|
|
38
|
+
# The receiver's account number. For credit transfers (transfers with a positive
|
|
39
|
+
# `amount`), this is the account that funds will be sent to. For debit transfers
|
|
40
|
+
# (transfers with a negative `amount`), this is the account that funds will be
|
|
41
|
+
# pulled from.
|
|
36
42
|
sig { returns(T.nilable(String)) }
|
|
37
43
|
attr_reader :account_number
|
|
38
44
|
|
|
@@ -60,29 +66,34 @@ module Increase
|
|
|
60
66
|
sig { params(company_descriptive_date: String).void }
|
|
61
67
|
attr_writer :company_descriptive_date
|
|
62
68
|
|
|
63
|
-
# Custom data sent in the company batch header
|
|
64
|
-
# does not affect funds movement,
|
|
65
|
-
#
|
|
69
|
+
# Custom data sent in the company batch header, meant as metadata for the
|
|
70
|
+
# originator. This value is informational and does not affect funds movement,
|
|
71
|
+
# settlement timing, or returns. Most ACH transfers do not need this; we recommend
|
|
72
|
+
# storing metadata in your own application instead.
|
|
66
73
|
sig { returns(T.nilable(String)) }
|
|
67
74
|
attr_reader :company_discretionary_data
|
|
68
75
|
|
|
69
76
|
sig { params(company_discretionary_data: String).void }
|
|
70
77
|
attr_writer :company_discretionary_data
|
|
71
78
|
|
|
72
|
-
# A short description sent in the company batch header
|
|
73
|
-
#
|
|
74
|
-
#
|
|
75
|
-
#
|
|
76
|
-
#
|
|
79
|
+
# A short description sent in the company batch header, meant to provide the
|
|
80
|
+
# receiver with a reason for the transfer. Many receivers do not surface this data
|
|
81
|
+
# on the receiver's bank statement. Only set this if your recipient has asked for
|
|
82
|
+
# a specific value or if Nacha mandates one for your Standard Entry Class (SEC)
|
|
83
|
+
# code and use case. For example, some use cases require constants like
|
|
84
|
+
# `ACCTVERIFY`, `PURCHASE`, `PAYROLL`, or `REVERSAL`.
|
|
77
85
|
sig { returns(T.nilable(String)) }
|
|
78
86
|
attr_reader :company_entry_description
|
|
79
87
|
|
|
80
88
|
sig { params(company_entry_description: String).void }
|
|
81
89
|
attr_writer :company_entry_description
|
|
82
90
|
|
|
83
|
-
# The name by which the recipient knows
|
|
84
|
-
#
|
|
85
|
-
#
|
|
91
|
+
# The name by which the recipient knows the counterparty of this transaction. If
|
|
92
|
+
# you're processing payments on behalf of another party, use their name, not your
|
|
93
|
+
# own, so that it's more likely the recipient understands the context of the
|
|
94
|
+
# payment. This value is usually displayed to the recipient on their bank
|
|
95
|
+
# statement. We recommend setting this on every transfer; if you do not, we fall
|
|
96
|
+
# back to the `statement_descriptor`.
|
|
86
97
|
sig { returns(T.nilable(String)) }
|
|
87
98
|
attr_reader :company_name
|
|
88
99
|
|
|
@@ -130,16 +141,20 @@ module Increase
|
|
|
130
141
|
end
|
|
131
142
|
attr_writer :funding
|
|
132
143
|
|
|
133
|
-
# Your internal identifier for the
|
|
134
|
-
#
|
|
144
|
+
# Your internal identifier for the recipient. This value is informational and
|
|
145
|
+
# generally not verified by the recipient's bank. Most callers can leave this
|
|
146
|
+
# unset. For the specific case of person-to-person credits with the WEB standard
|
|
147
|
+
# entry class code, this must include the name of the payer.
|
|
135
148
|
sig { returns(T.nilable(String)) }
|
|
136
149
|
attr_reader :individual_id
|
|
137
150
|
|
|
138
151
|
sig { params(individual_id: String).void }
|
|
139
152
|
attr_writer :individual_id
|
|
140
153
|
|
|
141
|
-
# The name of the transfer recipient. This value is informational and
|
|
142
|
-
# by the recipient's bank.
|
|
154
|
+
# The name of the transfer recipient. This value is informational and generally
|
|
155
|
+
# not verified by the recipient's bank. This value is usually displayed to the
|
|
156
|
+
# recipient on their bank statement. We recommend setting this on every transfer;
|
|
157
|
+
# if you do not, we fall back to the `statement_descriptor`.
|
|
143
158
|
sig { returns(T.nilable(String)) }
|
|
144
159
|
attr_reader :individual_name
|
|
145
160
|
|
|
@@ -228,11 +243,16 @@ module Increase
|
|
|
228
243
|
).returns(T.attached_class)
|
|
229
244
|
end
|
|
230
245
|
def self.new(
|
|
231
|
-
# The Increase identifier for the account that will
|
|
246
|
+
# The Increase identifier for the account that will originate the transfer. For
|
|
247
|
+
# credit transfers (transfers with a positive `amount`), this is the account that
|
|
248
|
+
# funds will be sent from. For debit transfers (transfers with a negative
|
|
249
|
+
# `amount`), this is the account that funds will be pulled into.
|
|
232
250
|
account_id:,
|
|
233
251
|
# The transfer amount in USD cents. A positive amount originates a credit transfer
|
|
234
|
-
# pushing funds to the
|
|
235
|
-
# transfer pulling funds from the
|
|
252
|
+
# pushing funds from Increase to the account at the other bank. A negative amount
|
|
253
|
+
# originates a debit transfer pulling funds from the account at the other bank
|
|
254
|
+
# into Increase. Debit transfers
|
|
255
|
+
# [might result in a hold before funds are available](/documentation/sending-ach-debit-transfers).
|
|
236
256
|
amount:,
|
|
237
257
|
# A description you choose to give the transfer. This will be saved with the
|
|
238
258
|
# transfer details, displayed in the dashboard, and returned by the API. If
|
|
@@ -241,9 +261,10 @@ module Increase
|
|
|
241
261
|
# help the customer recognize the transfer. You are highly encouraged to pass
|
|
242
262
|
# `individual_name` and `company_name` instead of relying on this fallback.
|
|
243
263
|
statement_descriptor:,
|
|
244
|
-
# The receiver's account number. For credit transfers (
|
|
245
|
-
# the account that funds will be sent to. For debit transfers
|
|
246
|
-
# this is the account that funds will be
|
|
264
|
+
# The receiver's account number. For credit transfers (transfers with a positive
|
|
265
|
+
# `amount`), this is the account that funds will be sent to. For debit transfers
|
|
266
|
+
# (transfers with a negative `amount`), this is the account that funds will be
|
|
267
|
+
# pulled from.
|
|
247
268
|
account_number: nil,
|
|
248
269
|
# Additional information passed through to the receiving bank with the transfer.
|
|
249
270
|
# Most ACH transfers do not need this. Only set this if your recipient has asked
|
|
@@ -254,19 +275,24 @@ module Increase
|
|
|
254
275
|
# batch header. This value is informational and does not affect funds movement,
|
|
255
276
|
# settlement timing, or returns. Only set this if your recipient has asked for it.
|
|
256
277
|
company_descriptive_date: nil,
|
|
257
|
-
# Custom data sent in the company batch header
|
|
258
|
-
# does not affect funds movement,
|
|
259
|
-
#
|
|
278
|
+
# Custom data sent in the company batch header, meant as metadata for the
|
|
279
|
+
# originator. This value is informational and does not affect funds movement,
|
|
280
|
+
# settlement timing, or returns. Most ACH transfers do not need this; we recommend
|
|
281
|
+
# storing metadata in your own application instead.
|
|
260
282
|
company_discretionary_data: nil,
|
|
261
|
-
# A short description sent in the company batch header
|
|
262
|
-
#
|
|
263
|
-
#
|
|
264
|
-
#
|
|
265
|
-
#
|
|
283
|
+
# A short description sent in the company batch header, meant to provide the
|
|
284
|
+
# receiver with a reason for the transfer. Many receivers do not surface this data
|
|
285
|
+
# on the receiver's bank statement. Only set this if your recipient has asked for
|
|
286
|
+
# a specific value or if Nacha mandates one for your Standard Entry Class (SEC)
|
|
287
|
+
# code and use case. For example, some use cases require constants like
|
|
288
|
+
# `ACCTVERIFY`, `PURCHASE`, `PAYROLL`, or `REVERSAL`.
|
|
266
289
|
company_entry_description: nil,
|
|
267
|
-
# The name by which the recipient knows
|
|
268
|
-
#
|
|
269
|
-
#
|
|
290
|
+
# The name by which the recipient knows the counterparty of this transaction. If
|
|
291
|
+
# you're processing payments on behalf of another party, use their name, not your
|
|
292
|
+
# own, so that it's more likely the recipient understands the context of the
|
|
293
|
+
# payment. This value is usually displayed to the recipient on their bank
|
|
294
|
+
# statement. We recommend setting this on every transfer; if you do not, we fall
|
|
295
|
+
# back to the `statement_descriptor`.
|
|
270
296
|
company_name: nil,
|
|
271
297
|
# The type of entity that owns the receiver's account.
|
|
272
298
|
destination_account_holder: nil,
|
|
@@ -277,11 +303,15 @@ module Increase
|
|
|
277
303
|
#
|
|
278
304
|
# Defaults to `checking`.
|
|
279
305
|
funding: nil,
|
|
280
|
-
# Your internal identifier for the
|
|
281
|
-
#
|
|
306
|
+
# Your internal identifier for the recipient. This value is informational and
|
|
307
|
+
# generally not verified by the recipient's bank. Most callers can leave this
|
|
308
|
+
# unset. For the specific case of person-to-person credits with the WEB standard
|
|
309
|
+
# entry class code, this must include the name of the payer.
|
|
282
310
|
individual_id: nil,
|
|
283
|
-
# The name of the transfer recipient. This value is informational and
|
|
284
|
-
# by the recipient's bank.
|
|
311
|
+
# The name of the transfer recipient. This value is informational and generally
|
|
312
|
+
# not verified by the recipient's bank. This value is usually displayed to the
|
|
313
|
+
# recipient on their bank statement. We recommend setting this on every transfer;
|
|
314
|
+
# if you do not, we fall back to the `statement_descriptor`.
|
|
285
315
|
individual_name: nil,
|
|
286
316
|
# Configuration for how the effective date of the transfer will be set. This
|
|
287
317
|
# determines same-day vs future-dated settlement timing. If not set, defaults to a
|
|
@@ -790,8 +790,13 @@ module Increase
|
|
|
790
790
|
sig { returns(T.nilable(String)) }
|
|
791
791
|
attr_accessor :note
|
|
792
792
|
|
|
793
|
+
# The payee of the check. This will be printed in the Pay to the Order Of portion
|
|
794
|
+
# of the check.
|
|
795
|
+
sig { returns(T::Array[Increase::CheckTransfer::PhysicalCheck::Payee]) }
|
|
796
|
+
attr_accessor :payee
|
|
797
|
+
|
|
793
798
|
# The payer of the check. This will be printed on the top-left portion of the
|
|
794
|
-
# check
|
|
799
|
+
# check.
|
|
795
800
|
sig { returns(T::Array[Increase::CheckTransfer::PhysicalCheck::Payer]) }
|
|
796
801
|
attr_accessor :payer
|
|
797
802
|
|
|
@@ -799,24 +804,14 @@ module Increase
|
|
|
799
804
|
sig { returns(T.nilable(String)) }
|
|
800
805
|
attr_accessor :physical_check_batch_id
|
|
801
806
|
|
|
802
|
-
# The name that will be printed on the check.
|
|
803
|
-
sig { returns(String) }
|
|
804
|
-
attr_accessor :recipient_name
|
|
805
|
-
|
|
806
807
|
# The return address to be printed on the check.
|
|
807
|
-
sig
|
|
808
|
-
returns(
|
|
809
|
-
T.nilable(Increase::CheckTransfer::PhysicalCheck::ReturnAddress)
|
|
810
|
-
)
|
|
811
|
-
end
|
|
808
|
+
sig { returns(Increase::CheckTransfer::PhysicalCheck::ReturnAddress) }
|
|
812
809
|
attr_reader :return_address
|
|
813
810
|
|
|
814
811
|
sig do
|
|
815
812
|
params(
|
|
816
813
|
return_address:
|
|
817
|
-
|
|
818
|
-
Increase::CheckTransfer::PhysicalCheck::ReturnAddress::OrHash
|
|
819
|
-
)
|
|
814
|
+
Increase::CheckTransfer::PhysicalCheck::ReturnAddress::OrHash
|
|
820
815
|
).void
|
|
821
816
|
end
|
|
822
817
|
attr_writer :return_address
|
|
@@ -863,14 +858,13 @@ module Increase
|
|
|
863
858
|
Increase::CheckTransfer::PhysicalCheck::MailingAddress::OrHash,
|
|
864
859
|
memo: T.nilable(String),
|
|
865
860
|
note: T.nilable(String),
|
|
861
|
+
payee:
|
|
862
|
+
T::Array[Increase::CheckTransfer::PhysicalCheck::Payee::OrHash],
|
|
866
863
|
payer:
|
|
867
864
|
T::Array[Increase::CheckTransfer::PhysicalCheck::Payer::OrHash],
|
|
868
865
|
physical_check_batch_id: T.nilable(String),
|
|
869
|
-
recipient_name: String,
|
|
870
866
|
return_address:
|
|
871
|
-
|
|
872
|
-
Increase::CheckTransfer::PhysicalCheck::ReturnAddress::OrHash
|
|
873
|
-
),
|
|
867
|
+
Increase::CheckTransfer::PhysicalCheck::ReturnAddress::OrHash,
|
|
874
868
|
return_address_name: T.nilable(String),
|
|
875
869
|
shipping_method:
|
|
876
870
|
Increase::CheckTransfer::PhysicalCheck::ShippingMethod::OrSymbol,
|
|
@@ -893,13 +887,14 @@ module Increase
|
|
|
893
887
|
memo:,
|
|
894
888
|
# The descriptor that will be printed on the letter included with the check.
|
|
895
889
|
note:,
|
|
890
|
+
# The payee of the check. This will be printed in the Pay to the Order Of portion
|
|
891
|
+
# of the check.
|
|
892
|
+
payee:,
|
|
896
893
|
# The payer of the check. This will be printed on the top-left portion of the
|
|
897
|
-
# check
|
|
894
|
+
# check.
|
|
898
895
|
payer:,
|
|
899
896
|
# The identifier of the Physical Check Batch that this check is a part of.
|
|
900
897
|
physical_check_batch_id:,
|
|
901
|
-
# The name that will be printed on the check.
|
|
902
|
-
recipient_name:,
|
|
903
898
|
# The return address to be printed on the check.
|
|
904
899
|
return_address:,
|
|
905
900
|
# A custom name printed above the Increase-managed return address.
|
|
@@ -923,13 +918,11 @@ module Increase
|
|
|
923
918
|
Increase::CheckTransfer::PhysicalCheck::MailingAddress,
|
|
924
919
|
memo: T.nilable(String),
|
|
925
920
|
note: T.nilable(String),
|
|
921
|
+
payee: T::Array[Increase::CheckTransfer::PhysicalCheck::Payee],
|
|
926
922
|
payer: T::Array[Increase::CheckTransfer::PhysicalCheck::Payer],
|
|
927
923
|
physical_check_batch_id: T.nilable(String),
|
|
928
|
-
recipient_name: String,
|
|
929
924
|
return_address:
|
|
930
|
-
|
|
931
|
-
Increase::CheckTransfer::PhysicalCheck::ReturnAddress
|
|
932
|
-
),
|
|
925
|
+
Increase::CheckTransfer::PhysicalCheck::ReturnAddress,
|
|
933
926
|
return_address_name: T.nilable(String),
|
|
934
927
|
shipping_method:
|
|
935
928
|
Increase::CheckTransfer::PhysicalCheck::ShippingMethod::TaggedSymbol,
|
|
@@ -952,11 +945,11 @@ module Increase
|
|
|
952
945
|
end
|
|
953
946
|
|
|
954
947
|
# The city of the check's destination.
|
|
955
|
-
sig { returns(
|
|
948
|
+
sig { returns(String) }
|
|
956
949
|
attr_accessor :city
|
|
957
950
|
|
|
958
951
|
# The street address of the check's destination.
|
|
959
|
-
sig { returns(
|
|
952
|
+
sig { returns(String) }
|
|
960
953
|
attr_accessor :line1
|
|
961
954
|
|
|
962
955
|
# The second line of the address of the check's destination.
|
|
@@ -964,7 +957,7 @@ module Increase
|
|
|
964
957
|
attr_accessor :line2
|
|
965
958
|
|
|
966
959
|
# The name component of the check's mailing address.
|
|
967
|
-
sig { returns(
|
|
960
|
+
sig { returns(String) }
|
|
968
961
|
attr_accessor :name
|
|
969
962
|
|
|
970
963
|
# The phone number to be used in case of delivery issues at the check's mailing
|
|
@@ -973,23 +966,23 @@ module Increase
|
|
|
973
966
|
attr_accessor :phone
|
|
974
967
|
|
|
975
968
|
# The postal code of the check's destination.
|
|
976
|
-
sig { returns(
|
|
969
|
+
sig { returns(String) }
|
|
977
970
|
attr_accessor :postal_code
|
|
978
971
|
|
|
979
972
|
# The state of the check's destination.
|
|
980
|
-
sig { returns(
|
|
973
|
+
sig { returns(String) }
|
|
981
974
|
attr_accessor :state
|
|
982
975
|
|
|
983
976
|
# Details for where Increase will mail the check.
|
|
984
977
|
sig do
|
|
985
978
|
params(
|
|
986
|
-
city:
|
|
987
|
-
line1:
|
|
979
|
+
city: String,
|
|
980
|
+
line1: String,
|
|
988
981
|
line2: T.nilable(String),
|
|
989
|
-
name:
|
|
982
|
+
name: String,
|
|
990
983
|
phone: T.nilable(String),
|
|
991
|
-
postal_code:
|
|
992
|
-
state:
|
|
984
|
+
postal_code: String,
|
|
985
|
+
state: String
|
|
993
986
|
).returns(T.attached_class)
|
|
994
987
|
end
|
|
995
988
|
def self.new(
|
|
@@ -1014,13 +1007,13 @@ module Increase
|
|
|
1014
1007
|
sig do
|
|
1015
1008
|
override.returns(
|
|
1016
1009
|
{
|
|
1017
|
-
city:
|
|
1018
|
-
line1:
|
|
1010
|
+
city: String,
|
|
1011
|
+
line1: String,
|
|
1019
1012
|
line2: T.nilable(String),
|
|
1020
|
-
name:
|
|
1013
|
+
name: String,
|
|
1021
1014
|
phone: T.nilable(String),
|
|
1022
|
-
postal_code:
|
|
1023
|
-
state:
|
|
1015
|
+
postal_code: String,
|
|
1016
|
+
state: String
|
|
1024
1017
|
}
|
|
1025
1018
|
)
|
|
1026
1019
|
end
|
|
@@ -1028,6 +1021,31 @@ module Increase
|
|
|
1028
1021
|
end
|
|
1029
1022
|
end
|
|
1030
1023
|
|
|
1024
|
+
class Payee < Increase::Internal::Type::BaseModel
|
|
1025
|
+
OrHash =
|
|
1026
|
+
T.type_alias do
|
|
1027
|
+
T.any(
|
|
1028
|
+
Increase::CheckTransfer::PhysicalCheck::Payee,
|
|
1029
|
+
Increase::Internal::AnyHash
|
|
1030
|
+
)
|
|
1031
|
+
end
|
|
1032
|
+
|
|
1033
|
+
# The contents of the line.
|
|
1034
|
+
sig { returns(String) }
|
|
1035
|
+
attr_accessor :contents
|
|
1036
|
+
|
|
1037
|
+
sig { params(contents: String).returns(T.attached_class) }
|
|
1038
|
+
def self.new(
|
|
1039
|
+
# The contents of the line.
|
|
1040
|
+
contents:
|
|
1041
|
+
)
|
|
1042
|
+
end
|
|
1043
|
+
|
|
1044
|
+
sig { override.returns({ contents: String }) }
|
|
1045
|
+
def to_hash
|
|
1046
|
+
end
|
|
1047
|
+
end
|
|
1048
|
+
|
|
1031
1049
|
class Payer < Increase::Internal::Type::BaseModel
|
|
1032
1050
|
OrHash =
|
|
1033
1051
|
T.type_alias do
|
|
@@ -1063,11 +1081,11 @@ module Increase
|
|
|
1063
1081
|
end
|
|
1064
1082
|
|
|
1065
1083
|
# The city of the check's destination.
|
|
1066
|
-
sig { returns(
|
|
1084
|
+
sig { returns(String) }
|
|
1067
1085
|
attr_accessor :city
|
|
1068
1086
|
|
|
1069
1087
|
# The street address of the check's destination.
|
|
1070
|
-
sig { returns(
|
|
1088
|
+
sig { returns(String) }
|
|
1071
1089
|
attr_accessor :line1
|
|
1072
1090
|
|
|
1073
1091
|
# The second line of the address of the check's destination.
|
|
@@ -1075,7 +1093,7 @@ module Increase
|
|
|
1075
1093
|
attr_accessor :line2
|
|
1076
1094
|
|
|
1077
1095
|
# The name component of the check's return address.
|
|
1078
|
-
sig { returns(
|
|
1096
|
+
sig { returns(String) }
|
|
1079
1097
|
attr_accessor :name
|
|
1080
1098
|
|
|
1081
1099
|
# The shipper's phone number to be used in case of delivery issues. Only used for
|
|
@@ -1084,23 +1102,23 @@ module Increase
|
|
|
1084
1102
|
attr_accessor :phone
|
|
1085
1103
|
|
|
1086
1104
|
# The postal code of the check's destination.
|
|
1087
|
-
sig { returns(
|
|
1105
|
+
sig { returns(String) }
|
|
1088
1106
|
attr_accessor :postal_code
|
|
1089
1107
|
|
|
1090
1108
|
# The state of the check's destination.
|
|
1091
|
-
sig { returns(
|
|
1109
|
+
sig { returns(String) }
|
|
1092
1110
|
attr_accessor :state
|
|
1093
1111
|
|
|
1094
1112
|
# The return address to be printed on the check.
|
|
1095
1113
|
sig do
|
|
1096
1114
|
params(
|
|
1097
|
-
city:
|
|
1098
|
-
line1:
|
|
1115
|
+
city: String,
|
|
1116
|
+
line1: String,
|
|
1099
1117
|
line2: T.nilable(String),
|
|
1100
|
-
name:
|
|
1118
|
+
name: String,
|
|
1101
1119
|
phone: T.nilable(String),
|
|
1102
|
-
postal_code:
|
|
1103
|
-
state:
|
|
1120
|
+
postal_code: String,
|
|
1121
|
+
state: String
|
|
1104
1122
|
).returns(T.attached_class)
|
|
1105
1123
|
end
|
|
1106
1124
|
def self.new(
|
|
@@ -1125,13 +1143,13 @@ module Increase
|
|
|
1125
1143
|
sig do
|
|
1126
1144
|
override.returns(
|
|
1127
1145
|
{
|
|
1128
|
-
city:
|
|
1129
|
-
line1:
|
|
1146
|
+
city: String,
|
|
1147
|
+
line1: String,
|
|
1130
1148
|
line2: T.nilable(String),
|
|
1131
|
-
name:
|
|
1149
|
+
name: String,
|
|
1132
1150
|
phone: T.nilable(String),
|
|
1133
|
-
postal_code:
|
|
1134
|
-
state:
|
|
1151
|
+
postal_code: String,
|
|
1152
|
+
state: String
|
|
1135
1153
|
}
|
|
1136
1154
|
)
|
|
1137
1155
|
end
|
|
@@ -289,6 +289,16 @@ module Increase
|
|
|
289
289
|
sig { returns(String) }
|
|
290
290
|
attr_accessor :memo
|
|
291
291
|
|
|
292
|
+
# The payee of the check. This will be printed in the Pay to the Order Of portion
|
|
293
|
+
# of the check. This should be an array of up to 4 elements, each of which
|
|
294
|
+
# represents a line of the payee.
|
|
295
|
+
sig do
|
|
296
|
+
returns(
|
|
297
|
+
T::Array[Increase::CheckTransferCreateParams::PhysicalCheck::Payee]
|
|
298
|
+
)
|
|
299
|
+
end
|
|
300
|
+
attr_accessor :payee
|
|
301
|
+
|
|
292
302
|
# The payer of the check. This will be printed on the top-left portion of the
|
|
293
303
|
# check. This should be an array of up to 4 elements, each of which represents a
|
|
294
304
|
# line of the payer.
|
|
@@ -299,10 +309,6 @@ module Increase
|
|
|
299
309
|
end
|
|
300
310
|
attr_accessor :payer
|
|
301
311
|
|
|
302
|
-
# The name that will be printed on the check in the 'To:' field.
|
|
303
|
-
sig { returns(String) }
|
|
304
|
-
attr_accessor :recipient_name
|
|
305
|
-
|
|
306
312
|
# The ID of a File to be attached to the check. This must have
|
|
307
313
|
# `purpose: check_attachment`. For details on pricing and restrictions, see
|
|
308
314
|
# https://increase.com/documentation/originating-checks#printing-checks .
|
|
@@ -412,11 +418,14 @@ module Increase
|
|
|
412
418
|
mailing_address:
|
|
413
419
|
Increase::CheckTransferCreateParams::PhysicalCheck::MailingAddress::OrHash,
|
|
414
420
|
memo: String,
|
|
421
|
+
payee:
|
|
422
|
+
T::Array[
|
|
423
|
+
Increase::CheckTransferCreateParams::PhysicalCheck::Payee::OrHash
|
|
424
|
+
],
|
|
415
425
|
payer:
|
|
416
426
|
T::Array[
|
|
417
427
|
Increase::CheckTransferCreateParams::PhysicalCheck::Payer::OrHash
|
|
418
428
|
],
|
|
419
|
-
recipient_name: String,
|
|
420
429
|
attachment_file_id: String,
|
|
421
430
|
check_voucher_image_file_id: String,
|
|
422
431
|
note: String,
|
|
@@ -436,12 +445,14 @@ module Increase
|
|
|
436
445
|
mailing_address:,
|
|
437
446
|
# The descriptor that will be printed on the memo field on the check.
|
|
438
447
|
memo:,
|
|
448
|
+
# The payee of the check. This will be printed in the Pay to the Order Of portion
|
|
449
|
+
# of the check. This should be an array of up to 4 elements, each of which
|
|
450
|
+
# represents a line of the payee.
|
|
451
|
+
payee:,
|
|
439
452
|
# The payer of the check. This will be printed on the top-left portion of the
|
|
440
453
|
# check. This should be an array of up to 4 elements, each of which represents a
|
|
441
454
|
# line of the payer.
|
|
442
455
|
payer:,
|
|
443
|
-
# The name that will be printed on the check in the 'To:' field.
|
|
444
|
-
recipient_name:,
|
|
445
456
|
# The ID of a File to be attached to the check. This must have
|
|
446
457
|
# `purpose: check_attachment`. For details on pricing and restrictions, see
|
|
447
458
|
# https://increase.com/documentation/originating-checks#printing-checks .
|
|
@@ -479,11 +490,14 @@ module Increase
|
|
|
479
490
|
mailing_address:
|
|
480
491
|
Increase::CheckTransferCreateParams::PhysicalCheck::MailingAddress,
|
|
481
492
|
memo: String,
|
|
493
|
+
payee:
|
|
494
|
+
T::Array[
|
|
495
|
+
Increase::CheckTransferCreateParams::PhysicalCheck::Payee
|
|
496
|
+
],
|
|
482
497
|
payer:
|
|
483
498
|
T::Array[
|
|
484
499
|
Increase::CheckTransferCreateParams::PhysicalCheck::Payer
|
|
485
500
|
],
|
|
486
|
-
recipient_name: String,
|
|
487
501
|
attachment_file_id: String,
|
|
488
502
|
check_voucher_image_file_id: String,
|
|
489
503
|
note: String,
|
|
@@ -518,6 +532,10 @@ module Increase
|
|
|
518
532
|
sig { returns(String) }
|
|
519
533
|
attr_accessor :line1
|
|
520
534
|
|
|
535
|
+
# The name component of the check's destination address.
|
|
536
|
+
sig { returns(String) }
|
|
537
|
+
attr_accessor :name
|
|
538
|
+
|
|
521
539
|
# The postal code component of the check's destination address.
|
|
522
540
|
sig { returns(String) }
|
|
523
541
|
attr_accessor :postal_code
|
|
@@ -533,14 +551,6 @@ module Increase
|
|
|
533
551
|
sig { params(line2: String).void }
|
|
534
552
|
attr_writer :line2
|
|
535
553
|
|
|
536
|
-
# The name component of the check's destination address. Defaults to the provided
|
|
537
|
-
# `recipient_name` parameter if `name` is not provided.
|
|
538
|
-
sig { returns(T.nilable(String)) }
|
|
539
|
-
attr_reader :name
|
|
540
|
-
|
|
541
|
-
sig { params(name: String).void }
|
|
542
|
-
attr_writer :name
|
|
543
|
-
|
|
544
554
|
# The phone number to associate with the check's destination address. The phone
|
|
545
555
|
# number is only used when `shipping_method` is `fedex_overnight` and will be
|
|
546
556
|
# supplied to FedEx to be used in case of delivery issues.
|
|
@@ -556,10 +566,10 @@ module Increase
|
|
|
556
566
|
params(
|
|
557
567
|
city: String,
|
|
558
568
|
line1: String,
|
|
569
|
+
name: String,
|
|
559
570
|
postal_code: String,
|
|
560
571
|
state: String,
|
|
561
572
|
line2: String,
|
|
562
|
-
name: String,
|
|
563
573
|
phone: String
|
|
564
574
|
).returns(T.attached_class)
|
|
565
575
|
end
|
|
@@ -568,15 +578,14 @@ module Increase
|
|
|
568
578
|
city:,
|
|
569
579
|
# The first line of the address component of the check's destination address.
|
|
570
580
|
line1:,
|
|
581
|
+
# The name component of the check's destination address.
|
|
582
|
+
name:,
|
|
571
583
|
# The postal code component of the check's destination address.
|
|
572
584
|
postal_code:,
|
|
573
585
|
# The US state component of the check's destination address.
|
|
574
586
|
state:,
|
|
575
587
|
# The second line of the address component of the check's destination address.
|
|
576
588
|
line2: nil,
|
|
577
|
-
# The name component of the check's destination address. Defaults to the provided
|
|
578
|
-
# `recipient_name` parameter if `name` is not provided.
|
|
579
|
-
name: nil,
|
|
580
589
|
# The phone number to associate with the check's destination address. The phone
|
|
581
590
|
# number is only used when `shipping_method` is `fedex_overnight` and will be
|
|
582
591
|
# supplied to FedEx to be used in case of delivery issues.
|
|
@@ -589,10 +598,10 @@ module Increase
|
|
|
589
598
|
{
|
|
590
599
|
city: String,
|
|
591
600
|
line1: String,
|
|
601
|
+
name: String,
|
|
592
602
|
postal_code: String,
|
|
593
603
|
state: String,
|
|
594
604
|
line2: String,
|
|
595
|
-
name: String,
|
|
596
605
|
phone: String
|
|
597
606
|
}
|
|
598
607
|
)
|
|
@@ -601,6 +610,31 @@ module Increase
|
|
|
601
610
|
end
|
|
602
611
|
end
|
|
603
612
|
|
|
613
|
+
class Payee < Increase::Internal::Type::BaseModel
|
|
614
|
+
OrHash =
|
|
615
|
+
T.type_alias do
|
|
616
|
+
T.any(
|
|
617
|
+
Increase::CheckTransferCreateParams::PhysicalCheck::Payee,
|
|
618
|
+
Increase::Internal::AnyHash
|
|
619
|
+
)
|
|
620
|
+
end
|
|
621
|
+
|
|
622
|
+
# The contents of the line.
|
|
623
|
+
sig { returns(String) }
|
|
624
|
+
attr_accessor :contents
|
|
625
|
+
|
|
626
|
+
sig { params(contents: String).returns(T.attached_class) }
|
|
627
|
+
def self.new(
|
|
628
|
+
# The contents of the line.
|
|
629
|
+
contents:
|
|
630
|
+
)
|
|
631
|
+
end
|
|
632
|
+
|
|
633
|
+
sig { override.returns({ contents: String }) }
|
|
634
|
+
def to_hash
|
|
635
|
+
end
|
|
636
|
+
end
|
|
637
|
+
|
|
604
638
|
class Payer < Increase::Internal::Type::BaseModel
|
|
605
639
|
OrHash =
|
|
606
640
|
T.type_alias do
|