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.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/increase/client.rb +0 -16
  4. data/lib/increase/internal/transport/pooled_net_requester.rb +3 -0
  5. data/lib/increase/internal/util.rb +22 -17
  6. data/lib/increase/models/ach_transfer.rb +38 -23
  7. data/lib/increase/models/ach_transfer_create_params.rb +73 -42
  8. data/lib/increase/models/check_transfer.rb +58 -44
  9. data/lib/increase/models/check_transfer_create_params.rb +35 -21
  10. data/lib/increase/models/export.rb +12 -1
  11. data/lib/increase/models/export_create_params.rb +26 -4
  12. data/lib/increase/models/inbound_real_time_payments_transfer.rb +10 -1
  13. data/lib/increase/models/inbound_real_time_payments_transfer_return_params.rb +36 -0
  14. data/lib/increase/models/real_time_payments_transfer.rb +21 -1
  15. data/lib/increase/models/simulations/card_dispute_action_params.rb +26 -4
  16. data/lib/increase/models/simulations/wire_drawdown_request_refuse_params.rb +52 -1
  17. data/lib/increase/models/transaction.rb +3 -3
  18. data/lib/increase/models/wire_drawdown_request.rb +78 -1
  19. data/lib/increase/models.rb +3 -20
  20. data/lib/increase/resources/ach_transfers.rb +43 -22
  21. data/lib/increase/resources/inbound_real_time_payments_transfers.rb +28 -0
  22. data/lib/increase/resources/simulations/wire_drawdown_requests.rb +12 -2
  23. data/lib/increase/version.rb +1 -1
  24. data/lib/increase.rb +1 -14
  25. data/rbi/increase/client.rbi +0 -12
  26. data/rbi/increase/internal/util.rbi +3 -1
  27. data/rbi/increase/models/ach_transfer.rbi +35 -23
  28. data/rbi/increase/models/ach_transfer_create_params.rbi +72 -42
  29. data/rbi/increase/models/check_transfer.rbi +72 -54
  30. data/rbi/increase/models/check_transfer_create_params.rbi +55 -21
  31. data/rbi/increase/models/export.rbi +15 -3
  32. data/rbi/increase/models/export_create_params.rbi +27 -3
  33. data/rbi/increase/models/inbound_real_time_payments_transfer.rbi +8 -0
  34. data/rbi/increase/models/inbound_real_time_payments_transfer_return_params.rbi +61 -0
  35. data/rbi/increase/models/real_time_payments_transfer.rbi +18 -0
  36. data/rbi/increase/models/simulations/card_dispute_action_params.rbi +56 -3
  37. data/rbi/increase/models/simulations/wire_drawdown_request_refuse_params.rbi +107 -0
  38. data/rbi/increase/models/transaction.rbi +3 -3
  39. data/rbi/increase/models/wire_drawdown_request.rbi +146 -0
  40. data/rbi/increase/models.rbi +3 -22
  41. data/rbi/increase/resources/ach_transfers.rbi +42 -22
  42. data/rbi/increase/resources/inbound_real_time_payments_transfers.rbi +19 -0
  43. data/rbi/increase/resources/simulations/wire_drawdown_requests.rbi +9 -0
  44. data/sig/increase/client.rbs +0 -8
  45. data/sig/increase/internal/util.rbs +1 -1
  46. data/sig/increase/models/ach_transfer.rbs +4 -4
  47. data/sig/increase/models/check_transfer.rbs +59 -49
  48. data/sig/increase/models/check_transfer_create_params.rbs +20 -12
  49. data/sig/increase/models/export.rbs +13 -3
  50. data/sig/increase/models/export_create_params.rbs +7 -0
  51. data/sig/increase/models/inbound_real_time_payments_transfer.rbs +5 -0
  52. data/sig/increase/models/inbound_real_time_payments_transfer_return_params.rbs +30 -0
  53. data/sig/increase/models/real_time_payments_transfer.rbs +10 -0
  54. data/sig/increase/models/simulations/card_dispute_action_params.rbs +24 -3
  55. data/sig/increase/models/simulations/wire_drawdown_request_refuse_params.rbs +51 -1
  56. data/sig/increase/models/transaction.rbs +4 -4
  57. data/sig/increase/models/wire_drawdown_request.rbs +64 -0
  58. data/sig/increase/models.rbs +2 -20
  59. data/sig/increase/resources/inbound_real_time_payments_transfers.rbs +6 -0
  60. data/sig/increase/resources/simulations/wire_drawdown_requests.rbs +2 -0
  61. metadata +20 -45
  62. data/lib/increase/models/group.rb +0 -57
  63. data/lib/increase/models/group_retrieve_params.rb +0 -14
  64. data/lib/increase/models/oauth_application.rb +0 -111
  65. data/lib/increase/models/oauth_application_list_params.rb +0 -129
  66. data/lib/increase/models/oauth_application_retrieve_params.rb +0 -22
  67. data/lib/increase/models/oauth_connection.rb +0 -107
  68. data/lib/increase/models/oauth_connection_list_params.rb +0 -88
  69. data/lib/increase/models/oauth_connection_retrieve_params.rb +0 -22
  70. data/lib/increase/models/oauth_token.rb +0 -76
  71. data/lib/increase/models/oauth_token_create_params.rb +0 -85
  72. data/lib/increase/resources/groups.rb +0 -32
  73. data/lib/increase/resources/oauth_applications.rb +0 -68
  74. data/lib/increase/resources/oauth_connections.rb +0 -70
  75. data/lib/increase/resources/oauth_tokens.rb +0 -54
  76. data/rbi/increase/models/group.rbi +0 -74
  77. data/rbi/increase/models/group_retrieve_params.rbi +0 -27
  78. data/rbi/increase/models/oauth_application.rbi +0 -146
  79. data/rbi/increase/models/oauth_application_list_params.rbi +0 -263
  80. data/rbi/increase/models/oauth_application_retrieve_params.rbi +0 -46
  81. data/rbi/increase/models/oauth_connection.rbi +0 -142
  82. data/rbi/increase/models/oauth_connection_list_params.rbi +0 -187
  83. data/rbi/increase/models/oauth_connection_retrieve_params.rbi +0 -46
  84. data/rbi/increase/models/oauth_token.rbi +0 -106
  85. data/rbi/increase/models/oauth_token_create_params.rbi +0 -133
  86. data/rbi/increase/resources/groups.rbi +0 -21
  87. data/rbi/increase/resources/oauth_applications.rbi +0 -50
  88. data/rbi/increase/resources/oauth_connections.rbi +0 -52
  89. data/rbi/increase/resources/oauth_tokens.rbi +0 -44
  90. data/sig/increase/models/group.rbs +0 -36
  91. data/sig/increase/models/group_retrieve_params.rbs +0 -15
  92. data/sig/increase/models/oauth_application.rbs +0 -74
  93. data/sig/increase/models/oauth_application_list_params.rbs +0 -123
  94. data/sig/increase/models/oauth_application_retrieve_params.rbs +0 -24
  95. data/sig/increase/models/oauth_connection.rbs +0 -74
  96. data/sig/increase/models/oauth_connection_list_params.rbs +0 -86
  97. data/sig/increase/models/oauth_connection_retrieve_params.rbs +0 -24
  98. data/sig/increase/models/oauth_token.rbs +0 -55
  99. data/sig/increase/models/oauth_token_create_params.rbs +0 -68
  100. data/sig/increase/resources/groups.rbs +0 -11
  101. data/sig/increase/resources/oauth_applications.rbs +0 -20
  102. data/sig/increase/resources/oauth_connections.rbs +0 -20
  103. data/sig/increase/resources/oauth_tokens.rbs +0 -16
@@ -95,6 +95,18 @@ module Increase
95
95
  sig { returns(T.nilable(String)) }
96
96
  attr_accessor :idempotency_key
97
97
 
98
+ # If the debtor refuses the drawdown request, this will contain supplemental
99
+ # details.
100
+ sig { returns(T.nilable(Increase::WireDrawdownRequest::Refusal)) }
101
+ attr_reader :refusal
102
+
103
+ sig do
104
+ params(
105
+ refusal: T.nilable(Increase::WireDrawdownRequest::Refusal::OrHash)
106
+ ).void
107
+ end
108
+ attr_writer :refusal
109
+
98
110
  # The lifecycle status of the drawdown request.
99
111
  sig { returns(Increase::WireDrawdownRequest::Status::TaggedSymbol) }
100
112
  attr_accessor :status
@@ -152,6 +164,7 @@ module Increase
152
164
  end_to_end_identification: T.nilable(String),
153
165
  fulfillment_inbound_wire_transfer_id: T.nilable(String),
154
166
  idempotency_key: T.nilable(String),
167
+ refusal: T.nilable(Increase::WireDrawdownRequest::Refusal::OrHash),
155
168
  status: Increase::WireDrawdownRequest::Status::OrSymbol,
156
169
  submission:
157
170
  T.nilable(Increase::WireDrawdownRequest::Submission::OrHash),
@@ -201,6 +214,9 @@ module Increase
201
214
  # Increase and is used to ensure that a request is only processed once. Learn more
202
215
  # about [idempotency](https://increase.com/documentation/idempotency-keys).
203
216
  idempotency_key:,
217
+ # If the debtor refuses the drawdown request, this will contain supplemental
218
+ # details.
219
+ refusal:,
204
220
  # The lifecycle status of the drawdown request.
205
221
  status:,
206
222
  # After the drawdown request is submitted to Fedwire, this will contain
@@ -237,6 +253,7 @@ module Increase
237
253
  end_to_end_identification: T.nilable(String),
238
254
  fulfillment_inbound_wire_transfer_id: T.nilable(String),
239
255
  idempotency_key: T.nilable(String),
256
+ refusal: T.nilable(Increase::WireDrawdownRequest::Refusal),
240
257
  status: Increase::WireDrawdownRequest::Status::TaggedSymbol,
241
258
  submission: T.nilable(Increase::WireDrawdownRequest::Submission),
242
259
  type: Increase::WireDrawdownRequest::Type::TaggedSymbol,
@@ -408,6 +425,135 @@ module Increase
408
425
  end
409
426
  end
410
427
 
428
+ class Refusal < Increase::Internal::Type::BaseModel
429
+ OrHash =
430
+ T.type_alias do
431
+ T.any(
432
+ Increase::WireDrawdownRequest::Refusal,
433
+ Increase::Internal::AnyHash
434
+ )
435
+ end
436
+
437
+ # Additional information about the refusal provided by the debtor bank. This is
438
+ # typically present when the `refusal_reason_code` is `narrative`.
439
+ sig { returns(T.nilable(String)) }
440
+ attr_accessor :refusal_reason_additional_information
441
+
442
+ # The reason the wire drawdown request was refused as provided by the debtor bank.
443
+ sig do
444
+ returns(
445
+ Increase::WireDrawdownRequest::Refusal::RefusalReasonCode::TaggedSymbol
446
+ )
447
+ end
448
+ attr_accessor :refusal_reason_code
449
+
450
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
451
+ # the wire drawdown request was refused.
452
+ sig { returns(Time) }
453
+ attr_accessor :refused_at
454
+
455
+ # If the debtor refuses the drawdown request, this will contain supplemental
456
+ # details.
457
+ sig do
458
+ params(
459
+ refusal_reason_additional_information: T.nilable(String),
460
+ refusal_reason_code:
461
+ Increase::WireDrawdownRequest::Refusal::RefusalReasonCode::OrSymbol,
462
+ refused_at: Time
463
+ ).returns(T.attached_class)
464
+ end
465
+ def self.new(
466
+ # Additional information about the refusal provided by the debtor bank. This is
467
+ # typically present when the `refusal_reason_code` is `narrative`.
468
+ refusal_reason_additional_information:,
469
+ # The reason the wire drawdown request was refused as provided by the debtor bank.
470
+ refusal_reason_code:,
471
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
472
+ # the wire drawdown request was refused.
473
+ refused_at:
474
+ )
475
+ end
476
+
477
+ sig do
478
+ override.returns(
479
+ {
480
+ refusal_reason_additional_information: T.nilable(String),
481
+ refusal_reason_code:
482
+ Increase::WireDrawdownRequest::Refusal::RefusalReasonCode::TaggedSymbol,
483
+ refused_at: Time
484
+ }
485
+ )
486
+ end
487
+ def to_hash
488
+ end
489
+
490
+ # The reason the wire drawdown request was refused as provided by the debtor bank.
491
+ module RefusalReasonCode
492
+ extend Increase::Internal::Type::Enum
493
+
494
+ TaggedSymbol =
495
+ T.type_alias do
496
+ T.all(
497
+ Symbol,
498
+ Increase::WireDrawdownRequest::Refusal::RefusalReasonCode
499
+ )
500
+ end
501
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
502
+
503
+ # The debtor's account number is invalid or missing. Corresponds to the Fedwire reason code `AC02`.
504
+ INVALID_DEBTOR_ACCOUNT_NUMBER =
505
+ T.let(
506
+ :invalid_debtor_account_number,
507
+ Increase::WireDrawdownRequest::Refusal::RefusalReasonCode::TaggedSymbol
508
+ )
509
+
510
+ # The debtor account does not allow drawdown requests. Corresponds to the Fedwire reason code `AG01`.
511
+ TRANSACTION_FORBIDDEN =
512
+ T.let(
513
+ :transaction_forbidden,
514
+ Increase::WireDrawdownRequest::Refusal::RefusalReasonCode::TaggedSymbol
515
+ )
516
+
517
+ # The debtor account cannot be debited for a generic reason. Corresponds to the Fedwire reason code `AG07`.
518
+ UNSUCCESSFUL_DIRECT_DEBIT =
519
+ T.let(
520
+ :unsuccessful_direct_debit,
521
+ Increase::WireDrawdownRequest::Refusal::RefusalReasonCode::TaggedSymbol
522
+ )
523
+
524
+ # The debtor's identification is inconsistent with the debtor account number. Corresponds to the Fedwire reason code `BE01`.
525
+ INCONSISTENT_WITH_END_CUSTOMER =
526
+ T.let(
527
+ :inconsistent_with_end_customer,
528
+ Increase::WireDrawdownRequest::Refusal::RefusalReasonCode::TaggedSymbol
529
+ )
530
+
531
+ # The reason is provided as narrative information in the additional information field. Corresponds to the Fedwire reason code `NARR`.
532
+ NARRATIVE =
533
+ T.let(
534
+ :narrative,
535
+ Increase::WireDrawdownRequest::Refusal::RefusalReasonCode::TaggedSymbol
536
+ )
537
+
538
+ # Some other error or issue has occurred.
539
+ OTHER =
540
+ T.let(
541
+ :other,
542
+ Increase::WireDrawdownRequest::Refusal::RefusalReasonCode::TaggedSymbol
543
+ )
544
+
545
+ sig do
546
+ override.returns(
547
+ T::Array[
548
+ Increase::WireDrawdownRequest::Refusal::RefusalReasonCode::TaggedSymbol
549
+ ]
550
+ )
551
+ end
552
+ def self.values
553
+ end
554
+ end
555
+ end
556
+
411
557
  # The lifecycle status of the drawdown request.
412
558
  module Status
413
559
  extend Increase::Internal::Type::Enum
@@ -327,10 +327,6 @@ module Increase
327
327
 
328
328
  FileRetrieveParams = Increase::Models::FileRetrieveParams
329
329
 
330
- Group = Increase::Models::Group
331
-
332
- GroupRetrieveParams = Increase::Models::GroupRetrieveParams
333
-
334
330
  InboundACHTransfer = Increase::Models::InboundACHTransfer
335
331
 
336
332
  InboundACHTransferCreateNotificationOfChangeParams =
@@ -396,6 +392,9 @@ module Increase
396
392
  InboundRealTimePaymentsTransferRetrieveParams =
397
393
  Increase::Models::InboundRealTimePaymentsTransferRetrieveParams
398
394
 
395
+ InboundRealTimePaymentsTransferReturnParams =
396
+ Increase::Models::InboundRealTimePaymentsTransferReturnParams
397
+
399
398
  InboundWireDrawdownRequest = Increase::Models::InboundWireDrawdownRequest
400
399
 
401
400
  InboundWireDrawdownRequestListParams =
@@ -467,24 +466,6 @@ module Increase
467
466
 
468
467
  LockboxRecipientUpdateParams = Increase::Models::LockboxRecipientUpdateParams
469
468
 
470
- OAuthApplication = Increase::Models::OAuthApplication
471
-
472
- OAuthApplicationListParams = Increase::Models::OAuthApplicationListParams
473
-
474
- OAuthApplicationRetrieveParams =
475
- Increase::Models::OAuthApplicationRetrieveParams
476
-
477
- OAuthConnection = Increase::Models::OAuthConnection
478
-
479
- OAuthConnectionListParams = Increase::Models::OAuthConnectionListParams
480
-
481
- OAuthConnectionRetrieveParams =
482
- Increase::Models::OAuthConnectionRetrieveParams
483
-
484
- OAuthToken = Increase::Models::OAuthToken
485
-
486
- OAuthTokenCreateParams = Increase::Models::OAuthTokenCreateParams
487
-
488
469
  PendingTransaction = Increase::Models::PendingTransaction
489
470
 
490
471
  PendingTransactionCreateParams =
@@ -3,7 +3,12 @@
3
3
  module Increase
4
4
  module Resources
5
5
  class ACHTransfers
6
- # Create an ACH Transfer
6
+ # An ACH Transfer has two primary descriptive fields:
7
+ # [`company_name`](/documentation/api/ach-transfers#create-an-ach-transfer.company_name)
8
+ # and
9
+ # [`individual_name`](/documentation/api/ach-transfers#create-an-ach-transfer.individual_name).
10
+ # You should set both of these, in addition to the required amount and account
11
+ # fields.
7
12
  sig do
8
13
  params(
9
14
  account_id: String,
@@ -31,11 +36,16 @@ module Increase
31
36
  ).returns(Increase::ACHTransfer)
32
37
  end
33
38
  def create(
34
- # The Increase identifier for the account that will send the transfer.
39
+ # The Increase identifier for the account that will originate the transfer. For
40
+ # credit transfers (transfers with a positive `amount`), this is the account that
41
+ # funds will be sent from. For debit transfers (transfers with a negative
42
+ # `amount`), this is the account that funds will be pulled into.
35
43
  account_id:,
36
44
  # The transfer amount in USD cents. A positive amount originates a credit transfer
37
- # pushing funds to the receiving account. A negative amount originates a debit
38
- # transfer pulling funds from the receiving account.
45
+ # pushing funds from Increase to the account at the other bank. A negative amount
46
+ # originates a debit transfer pulling funds from the account at the other bank
47
+ # into Increase. Debit transfers
48
+ # [might result in a hold before funds are available](/documentation/sending-ach-debit-transfers).
39
49
  amount:,
40
50
  # A description you choose to give the transfer. This will be saved with the
41
51
  # transfer details, displayed in the dashboard, and returned by the API. If
@@ -44,9 +54,10 @@ module Increase
44
54
  # help the customer recognize the transfer. You are highly encouraged to pass
45
55
  # `individual_name` and `company_name` instead of relying on this fallback.
46
56
  statement_descriptor:,
47
- # The receiver's account number. For credit transfers (positive `amount`) this is
48
- # the account that funds will be sent to. For debit transfers (negative `amount`)
49
- # this is the account that funds will be pulled from.
57
+ # The receiver's account number. For credit transfers (transfers with a positive
58
+ # `amount`), this is the account that funds will be sent to. For debit transfers
59
+ # (transfers with a negative `amount`), this is the account that funds will be
60
+ # pulled from.
50
61
  account_number: nil,
51
62
  # Additional information passed through to the receiving bank with the transfer.
52
63
  # Most ACH transfers do not need this. Only set this if your recipient has asked
@@ -57,19 +68,24 @@ module Increase
57
68
  # batch header. This value is informational and does not affect funds movement,
58
69
  # settlement timing, or returns. Only set this if your recipient has asked for it.
59
70
  company_descriptive_date: nil,
60
- # Custom data sent in the company batch header. This value is informational and
61
- # does not affect funds movement, settlement timing, or returns. Most ACH
62
- # transfers do not need this. Only set this if your recipient has asked for it.
71
+ # Custom data sent in the company batch header, meant as metadata for the
72
+ # originator. This value is informational and does not affect funds movement,
73
+ # settlement timing, or returns. Most ACH transfers do not need this; we recommend
74
+ # storing metadata in your own application instead.
63
75
  company_discretionary_data: nil,
64
- # A short description sent in the company batch header. Most receivers do not
65
- # surface this. Only set this if your recipient has asked for a specific value or
66
- # if Nacha mandates one for your Standard Entry Class (SEC) code and use case. For
67
- # example, Prearranged Payment and Deposit (PPD) payroll credits must use
68
- # `PAYROLL`, and reversals must use `REVERSAL`.
76
+ # A short description sent in the company batch header, meant to provide the
77
+ # receiver with a reason for the transfer. Many receivers do not surface this data
78
+ # on the receiver's bank statement. Only set this if your recipient has asked for
79
+ # a specific value or if Nacha mandates one for your Standard Entry Class (SEC)
80
+ # code and use case. For example, some use cases require constants like
81
+ # `ACCTVERIFY`, `PURCHASE`, `PAYROLL`, or `REVERSAL`.
69
82
  company_entry_description: nil,
70
- # The name by which the recipient knows you, sent in the company batch header. We
71
- # recommend setting this on every transfer; if you do not, we fall back to the
72
- # `statement_descriptor`.
83
+ # The name by which the recipient knows the counterparty of this transaction. If
84
+ # you're processing payments on behalf of another party, use their name, not your
85
+ # own, so that it's more likely the recipient understands the context of the
86
+ # payment. This value is usually displayed to the recipient on their bank
87
+ # statement. We recommend setting this on every transfer; if you do not, we fall
88
+ # back to the `statement_descriptor`.
73
89
  company_name: nil,
74
90
  # The type of entity that owns the receiver's account.
75
91
  destination_account_holder: nil,
@@ -80,11 +96,15 @@ module Increase
80
96
  #
81
97
  # Defaults to `checking`.
82
98
  funding: nil,
83
- # Your internal identifier for the transfer recipient. This value is informational
84
- # and not verified by the recipient's bank. Most callers can leave this unset.
99
+ # Your internal identifier for the recipient. This value is informational and
100
+ # generally not verified by the recipient's bank. Most callers can leave this
101
+ # unset. For the specific case of person-to-person credits with the WEB standard
102
+ # entry class code, this must include the name of the payer.
85
103
  individual_id: nil,
86
- # The name of the transfer recipient. This value is informational and not verified
87
- # by the recipient's bank.
104
+ # The name of the transfer recipient. This value is informational and generally
105
+ # not verified by the recipient's bank. This value is usually displayed to the
106
+ # recipient on their bank statement. We recommend setting this on every transfer;
107
+ # if you do not, we fall back to the `statement_descriptor`.
88
108
  individual_name: nil,
89
109
  # Configuration for how the effective date of the transfer will be set. This
90
110
  # determines same-day vs future-dated settlement timing. If not set, defaults to a
@@ -50,6 +50,25 @@ module Increase
50
50
  )
51
51
  end
52
52
 
53
+ # Return an Inbound Real-Time Payments Transfer
54
+ sig do
55
+ params(
56
+ inbound_real_time_payments_transfer_id: String,
57
+ amount: Integer,
58
+ request_options: Increase::RequestOptions::OrHash
59
+ ).returns(Increase::RealTimePaymentsTransfer)
60
+ end
61
+ def return_(
62
+ # The identifier of the Inbound Real-Time Payments Transfer to return to its
63
+ # sender.
64
+ inbound_real_time_payments_transfer_id,
65
+ # The amount to return, in USD cents. Defaults to the full amount of the Inbound
66
+ # Real-Time Payments Transfer, and can't be higher than it.
67
+ amount: nil,
68
+ request_options: {}
69
+ )
70
+ end
71
+
53
72
  # @api private
54
73
  sig { params(client: Increase::Client).returns(T.attached_class) }
55
74
  def self.new(client:)
@@ -8,12 +8,21 @@ module Increase
8
8
  sig do
9
9
  params(
10
10
  wire_drawdown_request_id: String,
11
+ refusal_reason_additional_information: String,
12
+ refusal_reason_code:
13
+ Increase::Simulations::WireDrawdownRequestRefuseParams::RefusalReasonCode::OrSymbol,
11
14
  request_options: Increase::RequestOptions::OrHash
12
15
  ).returns(Increase::WireDrawdownRequest)
13
16
  end
14
17
  def refuse(
15
18
  # The identifier of the Wire Drawdown Request you wish to refuse.
16
19
  wire_drawdown_request_id,
20
+ # Additional information about the refusal that the simulated refusal will have.
21
+ refusal_reason_additional_information: nil,
22
+ # The reason code that the simulated refusal will have.
23
+ #
24
+ # Defaults to `other`.
25
+ refusal_reason_code: nil,
17
26
  request_options: {}
18
27
  )
19
28
  end
@@ -115,14 +115,6 @@ module Increase
115
115
 
116
116
  attr_reader real_time_decisions: Increase::Resources::RealTimeDecisions
117
117
 
118
- attr_reader groups: Increase::Resources::Groups
119
-
120
- attr_reader oauth_applications: Increase::Resources::OAuthApplications
121
-
122
- attr_reader oauth_connections: Increase::Resources::OAuthConnections
123
-
124
- attr_reader oauth_tokens: Increase::Resources::OAuthTokens
125
-
126
118
  attr_reader intrafi_account_enrollments: Increase::Resources::IntrafiAccountEnrollments
127
119
 
128
120
  attr_reader intrafi_balances: Increase::Resources::IntrafiBalances
@@ -137,7 +137,7 @@ module Increase
137
137
 
138
138
  def self?.encode_multipart_streaming: (
139
139
  top body
140
- ) -> [String, Enumerable[String]]
140
+ ) -> [String, (^-> Enumerable[String])]
141
141
 
142
142
  def self?.encode_content: (
143
143
  ::Hash[String, String] headers,
@@ -33,7 +33,7 @@ module Increase
33
33
  routing_number: String,
34
34
  settlement: Increase::ACHTransfer::Settlement?,
35
35
  standard_entry_class_code: Increase::Models::ACHTransfer::standard_entry_class_code,
36
- statement_descriptor: String,
36
+ statement_descriptor: String?,
37
37
  status: Increase::Models::ACHTransfer::status,
38
38
  submission: Increase::ACHTransfer::Submission?,
39
39
  transaction_id: String?,
@@ -103,7 +103,7 @@ module Increase
103
103
 
104
104
  attr_accessor standard_entry_class_code: Increase::Models::ACHTransfer::standard_entry_class_code
105
105
 
106
- attr_accessor statement_descriptor: String
106
+ attr_accessor statement_descriptor: String?
107
107
 
108
108
  attr_accessor status: Increase::Models::ACHTransfer::status
109
109
 
@@ -145,7 +145,7 @@ module Increase
145
145
  routing_number: String,
146
146
  settlement: Increase::ACHTransfer::Settlement?,
147
147
  standard_entry_class_code: Increase::Models::ACHTransfer::standard_entry_class_code,
148
- statement_descriptor: String,
148
+ statement_descriptor: String?,
149
149
  status: Increase::Models::ACHTransfer::status,
150
150
  submission: Increase::ACHTransfer::Submission?,
151
151
  transaction_id: String?,
@@ -184,7 +184,7 @@ module Increase
184
184
  routing_number: String,
185
185
  settlement: Increase::ACHTransfer::Settlement?,
186
186
  standard_entry_class_code: Increase::Models::ACHTransfer::standard_entry_class_code,
187
- statement_descriptor: String,
187
+ statement_descriptor: String?,
188
188
  status: Increase::Models::ACHTransfer::status,
189
189
  submission: Increase::ACHTransfer::Submission?,
190
190
  transaction_id: String?,
@@ -295,10 +295,10 @@ module Increase
295
295
  mailing_address: Increase::CheckTransfer::PhysicalCheck::MailingAddress,
296
296
  memo: String?,
297
297
  note: String?,
298
+ payee: ::Array[Increase::CheckTransfer::PhysicalCheck::Payee],
298
299
  payer: ::Array[Increase::CheckTransfer::PhysicalCheck::Payer],
299
300
  physical_check_batch_id: String?,
300
- recipient_name: String,
301
- return_address: Increase::CheckTransfer::PhysicalCheck::ReturnAddress?,
301
+ return_address: Increase::CheckTransfer::PhysicalCheck::ReturnAddress,
302
302
  return_address_name: String?,
303
303
  shipping_method: Increase::Models::CheckTransfer::PhysicalCheck::shipping_method,
304
304
  signature: Increase::CheckTransfer::PhysicalCheck::Signature,
@@ -316,13 +316,13 @@ module Increase
316
316
 
317
317
  attr_accessor note: String?
318
318
 
319
+ attr_accessor payee: ::Array[Increase::CheckTransfer::PhysicalCheck::Payee]
320
+
319
321
  attr_accessor payer: ::Array[Increase::CheckTransfer::PhysicalCheck::Payer]
320
322
 
321
323
  attr_accessor physical_check_batch_id: String?
322
324
 
323
- attr_accessor recipient_name: String
324
-
325
- attr_accessor return_address: Increase::CheckTransfer::PhysicalCheck::ReturnAddress?
325
+ attr_accessor return_address: Increase::CheckTransfer::PhysicalCheck::ReturnAddress
326
326
 
327
327
  attr_accessor return_address_name: String?
328
328
 
@@ -338,10 +338,10 @@ module Increase
338
338
  mailing_address: Increase::CheckTransfer::PhysicalCheck::MailingAddress,
339
339
  memo: String?,
340
340
  note: String?,
341
+ payee: ::Array[Increase::CheckTransfer::PhysicalCheck::Payee],
341
342
  payer: ::Array[Increase::CheckTransfer::PhysicalCheck::Payer],
342
343
  physical_check_batch_id: String?,
343
- recipient_name: String,
344
- return_address: Increase::CheckTransfer::PhysicalCheck::ReturnAddress?,
344
+ return_address: Increase::CheckTransfer::PhysicalCheck::ReturnAddress,
345
345
  return_address_name: String?,
346
346
  shipping_method: Increase::Models::CheckTransfer::PhysicalCheck::shipping_method,
347
347
  signature: Increase::CheckTransfer::PhysicalCheck::Signature,
@@ -354,10 +354,10 @@ module Increase
354
354
  mailing_address: Increase::CheckTransfer::PhysicalCheck::MailingAddress,
355
355
  memo: String?,
356
356
  note: String?,
357
+ payee: ::Array[Increase::CheckTransfer::PhysicalCheck::Payee],
357
358
  payer: ::Array[Increase::CheckTransfer::PhysicalCheck::Payer],
358
359
  physical_check_batch_id: String?,
359
- recipient_name: String,
360
- return_address: Increase::CheckTransfer::PhysicalCheck::ReturnAddress?,
360
+ return_address: Increase::CheckTransfer::PhysicalCheck::ReturnAddress,
361
361
  return_address_name: String?,
362
362
  shipping_method: Increase::Models::CheckTransfer::PhysicalCheck::shipping_method,
363
363
  signature: Increase::CheckTransfer::PhysicalCheck::Signature,
@@ -366,51 +366,61 @@ module Increase
366
366
 
367
367
  type mailing_address =
368
368
  {
369
- city: String?,
370
- :line1 => String?,
369
+ city: String,
370
+ :line1 => String,
371
371
  :line2 => String?,
372
- name: String?,
372
+ name: String,
373
373
  phone: String?,
374
- postal_code: String?,
375
- state: String?
374
+ postal_code: String,
375
+ state: String
376
376
  }
377
377
 
378
378
  class MailingAddress < Increase::Internal::Type::BaseModel
379
- attr_accessor city: String?
379
+ attr_accessor city: String
380
380
 
381
- attr_accessor line1: String?
381
+ attr_accessor line1: String
382
382
 
383
383
  attr_accessor line2: String?
384
384
 
385
- attr_accessor name: String?
385
+ attr_accessor name: String
386
386
 
387
387
  attr_accessor phone: String?
388
388
 
389
- attr_accessor postal_code: String?
389
+ attr_accessor postal_code: String
390
390
 
391
- attr_accessor state: String?
391
+ attr_accessor state: String
392
392
 
393
393
  def initialize: (
394
- city: String?,
395
- line1: String?,
394
+ city: String,
395
+ line1: String,
396
396
  line2: String?,
397
- name: String?,
397
+ name: String,
398
398
  phone: String?,
399
- postal_code: String?,
400
- state: String?
399
+ postal_code: String,
400
+ state: String
401
401
  ) -> void
402
402
 
403
403
  def to_hash: -> {
404
- city: String?,
405
- :line1 => String?,
404
+ city: String,
405
+ :line1 => String,
406
406
  :line2 => String?,
407
- name: String?,
407
+ name: String,
408
408
  phone: String?,
409
- postal_code: String?,
410
- state: String?
409
+ postal_code: String,
410
+ state: String
411
411
  }
412
412
  end
413
413
 
414
+ type payee = { contents: String }
415
+
416
+ class Payee < Increase::Internal::Type::BaseModel
417
+ attr_accessor contents: String
418
+
419
+ def initialize: (contents: String) -> void
420
+
421
+ def to_hash: -> { contents: String }
422
+ end
423
+
414
424
  type payer = { contents: String }
415
425
 
416
426
  class Payer < Increase::Internal::Type::BaseModel
@@ -423,48 +433,48 @@ module Increase
423
433
 
424
434
  type return_address =
425
435
  {
426
- city: String?,
427
- :line1 => String?,
436
+ city: String,
437
+ :line1 => String,
428
438
  :line2 => String?,
429
- name: String?,
439
+ name: String,
430
440
  phone: String?,
431
- postal_code: String?,
432
- state: String?
441
+ postal_code: String,
442
+ state: String
433
443
  }
434
444
 
435
445
  class ReturnAddress < Increase::Internal::Type::BaseModel
436
- attr_accessor city: String?
446
+ attr_accessor city: String
437
447
 
438
- attr_accessor line1: String?
448
+ attr_accessor line1: String
439
449
 
440
450
  attr_accessor line2: String?
441
451
 
442
- attr_accessor name: String?
452
+ attr_accessor name: String
443
453
 
444
454
  attr_accessor phone: String?
445
455
 
446
- attr_accessor postal_code: String?
456
+ attr_accessor postal_code: String
447
457
 
448
- attr_accessor state: String?
458
+ attr_accessor state: String
449
459
 
450
460
  def initialize: (
451
- city: String?,
452
- line1: String?,
461
+ city: String,
462
+ line1: String,
453
463
  line2: String?,
454
- name: String?,
464
+ name: String,
455
465
  phone: String?,
456
- postal_code: String?,
457
- state: String?
466
+ postal_code: String,
467
+ state: String
458
468
  ) -> void
459
469
 
460
470
  def to_hash: -> {
461
- city: String?,
462
- :line1 => String?,
471
+ city: String,
472
+ :line1 => String,
463
473
  :line2 => String?,
464
- name: String?,
474
+ name: String,
465
475
  phone: String?,
466
- postal_code: String?,
467
- state: String?
476
+ postal_code: String,
477
+ state: String
468
478
  }
469
479
  end
470
480