increase 1.41.0 → 1.43.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 (35) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/README.md +1 -1
  4. data/lib/increase/models/ach_prenotification.rb +58 -1
  5. data/lib/increase/models/ach_prenotification_create_params.rb +15 -15
  6. data/lib/increase/models/card_validation.rb +9 -1
  7. data/lib/increase/models/check_transfer.rb +25 -1
  8. data/lib/increase/models/export.rb +3 -0
  9. data/lib/increase/models/export_create_params.rb +42 -1
  10. data/lib/increase/models/export_list_params.rb +3 -0
  11. data/lib/increase/models/intrafi_account_enrollment.rb +9 -1
  12. data/lib/increase/resources/ach_prenotifications.rb +7 -7
  13. data/lib/increase/resources/exports.rb +3 -1
  14. data/lib/increase/resources/real_time_payments_transfers.rb +2 -2
  15. data/lib/increase/version.rb +1 -1
  16. data/rbi/increase/models/ach_prenotification.rbi +95 -0
  17. data/rbi/increase/models/ach_prenotification_create_params.rbi +16 -16
  18. data/rbi/increase/models/card_validation.rbi +8 -0
  19. data/rbi/increase/models/check_transfer.rbi +35 -0
  20. data/rbi/increase/models/export.rbi +7 -0
  21. data/rbi/increase/models/export_create_params.rbi +80 -0
  22. data/rbi/increase/models/export_list_params.rbi +7 -0
  23. data/rbi/increase/models/intrafi_account_enrollment.rbi +8 -0
  24. data/rbi/increase/resources/ach_prenotifications.rbi +8 -8
  25. data/rbi/increase/resources/exports.rbi +5 -0
  26. data/rbi/increase/resources/real_time_payments_transfers.rbi +2 -2
  27. data/sig/increase/models/ach_prenotification.rbs +44 -0
  28. data/sig/increase/models/card_validation.rbs +5 -0
  29. data/sig/increase/models/check_transfer.rbs +19 -0
  30. data/sig/increase/models/export.rbs +4 -0
  31. data/sig/increase/models/export_create_params.rbs +29 -0
  32. data/sig/increase/models/export_list_params.rbs +4 -0
  33. data/sig/increase/models/intrafi_account_enrollment.rbs +5 -0
  34. data/sig/increase/resources/exports.rbs +1 -0
  35. metadata +1 -1
@@ -3,6 +3,7 @@ module Increase
3
3
  type ach_prenotification =
4
4
  {
5
5
  id: String,
6
+ account_id: String?,
6
7
  account_number: String,
7
8
  addendum: String?,
8
9
  company_descriptive_date: String?,
@@ -13,9 +14,12 @@ module Increase
13
14
  credit_debit_indicator: Increase::Models::ACHPrenotification::credit_debit_indicator?,
14
15
  effective_date: Time?,
15
16
  idempotency_key: String?,
17
+ individual_id: String?,
18
+ individual_name: String?,
16
19
  notifications_of_change: ::Array[Increase::ACHPrenotification::NotificationsOfChange],
17
20
  prenotification_return: Increase::ACHPrenotification::PrenotificationReturn?,
18
21
  routing_number: String,
22
+ standard_entry_class_code: Increase::Models::ACHPrenotification::standard_entry_class_code?,
19
23
  status: Increase::Models::ACHPrenotification::status,
20
24
  type: Increase::Models::ACHPrenotification::type_
21
25
  }
@@ -23,6 +27,8 @@ module Increase
23
27
  class ACHPrenotification < Increase::Internal::Type::BaseModel
24
28
  attr_accessor id: String
25
29
 
30
+ attr_accessor account_id: String?
31
+
26
32
  attr_accessor account_number: String
27
33
 
28
34
  attr_accessor addendum: String?
@@ -43,18 +49,25 @@ module Increase
43
49
 
44
50
  attr_accessor idempotency_key: String?
45
51
 
52
+ attr_accessor individual_id: String?
53
+
54
+ attr_accessor individual_name: String?
55
+
46
56
  attr_accessor notifications_of_change: ::Array[Increase::ACHPrenotification::NotificationsOfChange]
47
57
 
48
58
  attr_accessor prenotification_return: Increase::ACHPrenotification::PrenotificationReturn?
49
59
 
50
60
  attr_accessor routing_number: String
51
61
 
62
+ attr_accessor standard_entry_class_code: Increase::Models::ACHPrenotification::standard_entry_class_code?
63
+
52
64
  attr_accessor status: Increase::Models::ACHPrenotification::status
53
65
 
54
66
  attr_accessor type: Increase::Models::ACHPrenotification::type_
55
67
 
56
68
  def initialize: (
57
69
  id: String,
70
+ account_id: String?,
58
71
  account_number: String,
59
72
  addendum: String?,
60
73
  company_descriptive_date: String?,
@@ -65,15 +78,19 @@ module Increase
65
78
  credit_debit_indicator: Increase::Models::ACHPrenotification::credit_debit_indicator?,
66
79
  effective_date: Time?,
67
80
  idempotency_key: String?,
81
+ individual_id: String?,
82
+ individual_name: String?,
68
83
  notifications_of_change: ::Array[Increase::ACHPrenotification::NotificationsOfChange],
69
84
  prenotification_return: Increase::ACHPrenotification::PrenotificationReturn?,
70
85
  routing_number: String,
86
+ standard_entry_class_code: Increase::Models::ACHPrenotification::standard_entry_class_code?,
71
87
  status: Increase::Models::ACHPrenotification::status,
72
88
  type: Increase::Models::ACHPrenotification::type_
73
89
  ) -> void
74
90
 
75
91
  def to_hash: -> {
76
92
  id: String,
93
+ account_id: String?,
77
94
  account_number: String,
78
95
  addendum: String?,
79
96
  company_descriptive_date: String?,
@@ -84,9 +101,12 @@ module Increase
84
101
  credit_debit_indicator: Increase::Models::ACHPrenotification::credit_debit_indicator?,
85
102
  effective_date: Time?,
86
103
  idempotency_key: String?,
104
+ individual_id: String?,
105
+ individual_name: String?,
87
106
  notifications_of_change: ::Array[Increase::ACHPrenotification::NotificationsOfChange],
88
107
  prenotification_return: Increase::ACHPrenotification::PrenotificationReturn?,
89
108
  routing_number: String,
109
+ standard_entry_class_code: Increase::Models::ACHPrenotification::standard_entry_class_code?,
90
110
  status: Increase::Models::ACHPrenotification::status,
91
111
  type: Increase::Models::ACHPrenotification::type_
92
112
  }
@@ -526,6 +546,30 @@ module Increase
526
546
  end
527
547
  end
528
548
 
549
+ type standard_entry_class_code =
550
+ :corporate_credit_or_debit
551
+ | :corporate_trade_exchange
552
+ | :prearranged_payments_and_deposit
553
+ | :internet_initiated
554
+
555
+ module StandardEntryClassCode
556
+ extend Increase::Internal::Type::Enum
557
+
558
+ # Corporate Credit and Debit (CCD).
559
+ CORPORATE_CREDIT_OR_DEBIT: :corporate_credit_or_debit
560
+
561
+ # Corporate Trade Exchange (CTX).
562
+ CORPORATE_TRADE_EXCHANGE: :corporate_trade_exchange
563
+
564
+ # Prearranged Payments and Deposits (PPD).
565
+ PREARRANGED_PAYMENTS_AND_DEPOSIT: :prearranged_payments_and_deposit
566
+
567
+ # Internet Initiated (WEB).
568
+ INTERNET_INITIATED: :internet_initiated
569
+
570
+ def self?.values: -> ::Array[Increase::Models::ACHPrenotification::standard_entry_class_code]
571
+ end
572
+
529
573
  type status =
530
574
  :pending_submitting | :requires_attention | :returned | :submitted
531
575
 
@@ -5,6 +5,7 @@ module Increase
5
5
  id: String,
6
6
  acceptance: Increase::CardValidation::Acceptance?,
7
7
  account_id: String,
8
+ card_token_id: String,
8
9
  cardholder_first_name: String?,
9
10
  cardholder_last_name: String?,
10
11
  cardholder_middle_name: String?,
@@ -31,6 +32,8 @@ module Increase
31
32
 
32
33
  attr_accessor account_id: String
33
34
 
35
+ attr_accessor card_token_id: String
36
+
34
37
  attr_accessor cardholder_first_name: String?
35
38
 
36
39
  attr_accessor cardholder_last_name: String?
@@ -69,6 +72,7 @@ module Increase
69
72
  id: String,
70
73
  acceptance: Increase::CardValidation::Acceptance?,
71
74
  account_id: String,
75
+ card_token_id: String,
72
76
  cardholder_first_name: String?,
73
77
  cardholder_last_name: String?,
74
78
  cardholder_middle_name: String?,
@@ -92,6 +96,7 @@ module Increase
92
96
  id: String,
93
97
  acceptance: Increase::CardValidation::Acceptance?,
94
98
  account_id: String,
99
+ card_token_id: String,
95
100
  cardholder_first_name: String?,
96
101
  cardholder_last_name: String?,
97
102
  cardholder_middle_name: String?,
@@ -8,6 +8,7 @@ module Increase
8
8
  amount: Integer,
9
9
  approval: Increase::CheckTransfer::Approval?,
10
10
  approved_inbound_check_deposit_id: String?,
11
+ balance_check: Increase::Models::CheckTransfer::balance_check?,
11
12
  cancellation: Increase::CheckTransfer::Cancellation?,
12
13
  check_number: String,
13
14
  created_at: Time,
@@ -40,6 +41,8 @@ module Increase
40
41
 
41
42
  attr_accessor approved_inbound_check_deposit_id: String?
42
43
 
44
+ attr_accessor balance_check: Increase::Models::CheckTransfer::balance_check?
45
+
43
46
  attr_accessor cancellation: Increase::CheckTransfer::Cancellation?
44
47
 
45
48
  attr_accessor check_number: String
@@ -81,6 +84,7 @@ module Increase
81
84
  amount: Integer,
82
85
  approval: Increase::CheckTransfer::Approval?,
83
86
  approved_inbound_check_deposit_id: String?,
87
+ balance_check: Increase::Models::CheckTransfer::balance_check?,
84
88
  cancellation: Increase::CheckTransfer::Cancellation?,
85
89
  check_number: String,
86
90
  created_at: Time,
@@ -107,6 +111,7 @@ module Increase
107
111
  amount: Integer,
108
112
  approval: Increase::CheckTransfer::Approval?,
109
113
  approved_inbound_check_deposit_id: String?,
114
+ balance_check: Increase::Models::CheckTransfer::balance_check?,
110
115
  cancellation: Increase::CheckTransfer::Cancellation?,
111
116
  check_number: String,
112
117
  created_at: Time,
@@ -138,6 +143,20 @@ module Increase
138
143
  def to_hash: -> { approved_at: Time, approved_by: String? }
139
144
  end
140
145
 
146
+ type balance_check = :full | :none
147
+
148
+ module BalanceCheck
149
+ extend Increase::Internal::Type::Enum
150
+
151
+ # The available balance of the account must be at least the amount of the check, and a Pending Transaction will be created for the full amount.
152
+ FULL: :full
153
+
154
+ # No balance check will performed; a zero-dollar Pending Transaction will be created.
155
+ NONE: :none
156
+
157
+ def self?.values: -> ::Array[Increase::Models::CheckTransfer::balance_check]
158
+ end
159
+
141
160
  type cancellation = { canceled_at: Time, canceled_by: String? }
142
161
 
143
162
  class Cancellation < Increase::Internal::Type::BaseModel
@@ -53,6 +53,7 @@ module Increase
53
53
 
54
54
  type category =
55
55
  :account_statement_ofx
56
+ | :account_statement_bai2
56
57
  | :transaction_csv
57
58
  | :balance_csv
58
59
  | :bookkeeping_account_balance_csv
@@ -66,6 +67,9 @@ module Increase
66
67
  # Export an Open Financial Exchange (OFX) file of transactions and balances for a given time range and Account.
67
68
  ACCOUNT_STATEMENT_OFX: :account_statement_ofx
68
69
 
70
+ # Export a BAI2 file of transactions and balances for a given date and optional Account.
71
+ ACCOUNT_STATEMENT_BAI2: :account_statement_bai2
72
+
69
73
  # Export a CSV of all transactions for a given time range.
70
74
  TRANSACTION_CSV: :transaction_csv
71
75
 
@@ -3,6 +3,7 @@ module Increase
3
3
  type export_create_params =
4
4
  {
5
5
  category: Increase::Models::ExportCreateParams::category,
6
+ :account_statement_bai2 => Increase::ExportCreateParams::AccountStatementBai2,
6
7
  account_statement_ofx: Increase::ExportCreateParams::AccountStatementOfx,
7
8
  balance_csv: Increase::ExportCreateParams::BalanceCsv,
8
9
  bookkeeping_account_balance_csv: Increase::ExportCreateParams::BookkeepingAccountBalanceCsv,
@@ -18,6 +19,12 @@ module Increase
18
19
 
19
20
  attr_accessor category: Increase::Models::ExportCreateParams::category
20
21
 
22
+ attr_reader account_statement_bai2: Increase::ExportCreateParams::AccountStatementBai2?
23
+
24
+ def account_statement_bai2=: (
25
+ Increase::ExportCreateParams::AccountStatementBai2
26
+ ) -> Increase::ExportCreateParams::AccountStatementBai2
27
+
21
28
  attr_reader account_statement_ofx: Increase::ExportCreateParams::AccountStatementOfx?
22
29
 
23
30
  def account_statement_ofx=: (
@@ -54,6 +61,7 @@ module Increase
54
61
 
55
62
  def initialize: (
56
63
  category: Increase::Models::ExportCreateParams::category,
64
+ ?account_statement_bai2: Increase::ExportCreateParams::AccountStatementBai2,
57
65
  ?account_statement_ofx: Increase::ExportCreateParams::AccountStatementOfx,
58
66
  ?balance_csv: Increase::ExportCreateParams::BalanceCsv,
59
67
  ?bookkeeping_account_balance_csv: Increase::ExportCreateParams::BookkeepingAccountBalanceCsv,
@@ -65,6 +73,7 @@ module Increase
65
73
 
66
74
  def to_hash: -> {
67
75
  category: Increase::Models::ExportCreateParams::category,
76
+ :account_statement_bai2 => Increase::ExportCreateParams::AccountStatementBai2,
68
77
  account_statement_ofx: Increase::ExportCreateParams::AccountStatementOfx,
69
78
  balance_csv: Increase::ExportCreateParams::BalanceCsv,
70
79
  bookkeeping_account_balance_csv: Increase::ExportCreateParams::BookkeepingAccountBalanceCsv,
@@ -76,6 +85,7 @@ module Increase
76
85
 
77
86
  type category =
78
87
  :account_statement_ofx
88
+ | :account_statement_bai2
79
89
  | :transaction_csv
80
90
  | :balance_csv
81
91
  | :bookkeeping_account_balance_csv
@@ -88,6 +98,9 @@ module Increase
88
98
  # Export an Open Financial Exchange (OFX) file of transactions and balances for a given time range and Account.
89
99
  ACCOUNT_STATEMENT_OFX: :account_statement_ofx
90
100
 
101
+ # Export a BAI2 file of transactions and balances for a given date and optional Account.
102
+ ACCOUNT_STATEMENT_BAI2: :account_statement_bai2
103
+
91
104
  # Export a CSV of all transactions for a given time range.
92
105
  TRANSACTION_CSV: :transaction_csv
93
106
 
@@ -106,6 +119,22 @@ module Increase
106
119
  def self?.values: -> ::Array[Increase::Models::ExportCreateParams::category]
107
120
  end
108
121
 
122
+ type account_statement_bai2 = { account_id: String, effective_date: Date }
123
+
124
+ class AccountStatementBai2 < Increase::Internal::Type::BaseModel
125
+ attr_reader account_id: String?
126
+
127
+ def account_id=: (String) -> String
128
+
129
+ attr_reader effective_date: Date?
130
+
131
+ def effective_date=: (Date) -> Date
132
+
133
+ def initialize: (?account_id: String, ?effective_date: Date) -> void
134
+
135
+ def to_hash: -> { account_id: String, effective_date: Date }
136
+ end
137
+
109
138
  type account_statement_ofx =
110
139
  {
111
140
  account_id: String,
@@ -85,6 +85,7 @@ module Increase
85
85
 
86
86
  type in_ =
87
87
  :account_statement_ofx
88
+ | :account_statement_bai2
88
89
  | :transaction_csv
89
90
  | :balance_csv
90
91
  | :bookkeeping_account_balance_csv
@@ -98,6 +99,9 @@ module Increase
98
99
  # Export an Open Financial Exchange (OFX) file of transactions and balances for a given time range and Account.
99
100
  ACCOUNT_STATEMENT_OFX: :account_statement_ofx
100
101
 
102
+ # Export a BAI2 file of transactions and balances for a given date and optional Account.
103
+ ACCOUNT_STATEMENT_BAI2: :account_statement_bai2
104
+
101
105
  # Export a CSV of all transactions for a given time range.
102
106
  TRANSACTION_CSV: :transaction_csv
103
107
 
@@ -5,6 +5,7 @@ module Increase
5
5
  id: String,
6
6
  account_id: String,
7
7
  created_at: Time,
8
+ email_address: String?,
8
9
  idempotency_key: String?,
9
10
  intrafi_id: String,
10
11
  status: Increase::Models::IntrafiAccountEnrollment::status,
@@ -18,6 +19,8 @@ module Increase
18
19
 
19
20
  attr_accessor created_at: Time
20
21
 
22
+ attr_accessor email_address: String?
23
+
21
24
  attr_accessor idempotency_key: String?
22
25
 
23
26
  attr_accessor intrafi_id: String
@@ -30,6 +33,7 @@ module Increase
30
33
  id: String,
31
34
  account_id: String,
32
35
  created_at: Time,
36
+ email_address: String?,
33
37
  idempotency_key: String?,
34
38
  intrafi_id: String,
35
39
  status: Increase::Models::IntrafiAccountEnrollment::status,
@@ -40,6 +44,7 @@ module Increase
40
44
  id: String,
41
45
  account_id: String,
42
46
  created_at: Time,
47
+ email_address: String?,
43
48
  idempotency_key: String?,
44
49
  intrafi_id: String,
45
50
  status: Increase::Models::IntrafiAccountEnrollment::status,
@@ -3,6 +3,7 @@ module Increase
3
3
  class Exports
4
4
  def create: (
5
5
  category: Increase::Models::ExportCreateParams::category,
6
+ ?account_statement_bai2: Increase::ExportCreateParams::AccountStatementBai2,
6
7
  ?account_statement_ofx: Increase::ExportCreateParams::AccountStatementOfx,
7
8
  ?balance_csv: Increase::ExportCreateParams::BalanceCsv,
8
9
  ?bookkeeping_account_balance_csv: Increase::ExportCreateParams::BookkeepingAccountBalanceCsv,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: increase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.41.0
4
+ version: 1.43.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase