increase 1.351.0 → 1.353.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 (74) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/increase/models/account_statement.rb +12 -4
  4. data/lib/increase/models/balance_lookup.rb +1 -59
  5. data/lib/increase/models/beneficial_owner_create_params.rb +3 -0
  6. data/lib/increase/models/beneficial_owner_update_params.rb +3 -0
  7. data/lib/increase/models/card_payment.rb +1174 -2
  8. data/lib/increase/models/check_transfer.rb +15 -9
  9. data/lib/increase/models/entity.rb +18 -0
  10. data/lib/increase/models/entity_beneficial_owner.rb +3 -0
  11. data/lib/increase/models/entity_create_params.rb +36 -20
  12. data/lib/increase/models/entity_update_params.rb +33 -20
  13. data/lib/increase/models/event.rb +12 -0
  14. data/lib/increase/models/event_list_params.rb +12 -0
  15. data/lib/increase/models/event_subscription.rb +12 -0
  16. data/lib/increase/models/event_subscription_create_params.rb +12 -0
  17. data/lib/increase/models/inbound_ach_transfer.rb +9 -1
  18. data/lib/increase/models/pending_transaction.rb +121 -1
  19. data/lib/increase/models/pending_transaction_list_params.rb +6 -0
  20. data/lib/increase/models/simulations/physical_card_create_params.rb +9 -6
  21. data/lib/increase/models/transaction.rb +1277 -3
  22. data/lib/increase/models/transaction_list_params.rb +6 -0
  23. data/lib/increase/models/unwrap_webhook_event.rb +12 -0
  24. data/lib/increase/models/wire_drawdown_request.rb +3 -3
  25. data/lib/increase/models/wire_drawdown_request_list_params.rb +3 -3
  26. data/lib/increase/resources/simulations/account_statements.rb +2 -1
  27. data/lib/increase/resources/simulations/physical_cards.rb +5 -3
  28. data/lib/increase/version.rb +1 -1
  29. data/rbi/increase/models/account_statement.rbi +12 -4
  30. data/rbi/increase/models/balance_lookup.rbi +3 -87
  31. data/rbi/increase/models/beneficial_owner_create_params.rbi +7 -0
  32. data/rbi/increase/models/beneficial_owner_update_params.rbi +7 -0
  33. data/rbi/increase/models/card_payment.rbi +5276 -2964
  34. data/rbi/increase/models/check_transfer.rbi +15 -9
  35. data/rbi/increase/models/entity.rbi +42 -0
  36. data/rbi/increase/models/entity_beneficial_owner.rbi +7 -0
  37. data/rbi/increase/models/entity_create_params.rbi +46 -21
  38. data/rbi/increase/models/entity_update_params.rbi +39 -21
  39. data/rbi/increase/models/event.rbi +28 -0
  40. data/rbi/increase/models/event_list_params.rbi +28 -0
  41. data/rbi/increase/models/event_subscription.rbi +28 -0
  42. data/rbi/increase/models/event_subscription_create_params.rbi +28 -0
  43. data/rbi/increase/models/inbound_ach_transfer.rbi +8 -0
  44. data/rbi/increase/models/pending_transaction.rbi +254 -0
  45. data/rbi/increase/models/pending_transaction_list_params.rbi +14 -0
  46. data/rbi/increase/models/simulations/physical_card_create_params.rbi +8 -6
  47. data/rbi/increase/models/transaction.rbi +4848 -2358
  48. data/rbi/increase/models/transaction_list_params.rbi +14 -0
  49. data/rbi/increase/models/unwrap_webhook_event.rbi +28 -0
  50. data/rbi/increase/models/wire_drawdown_request.rbi +4 -4
  51. data/rbi/increase/models/wire_drawdown_request_list_params.rbi +6 -6
  52. data/rbi/increase/resources/simulations/account_statements.rbi +2 -1
  53. data/rbi/increase/resources/simulations/physical_cards.rbi +4 -3
  54. data/sig/increase/models/balance_lookup.rbs +3 -42
  55. data/sig/increase/models/beneficial_owner_create_params.rbs +4 -0
  56. data/sig/increase/models/beneficial_owner_update_params.rbs +4 -0
  57. data/sig/increase/models/card_payment.rbs +1186 -0
  58. data/sig/increase/models/entity.rbs +24 -0
  59. data/sig/increase/models/entity_beneficial_owner.rbs +4 -0
  60. data/sig/increase/models/entity_create_params.rbs +24 -11
  61. data/sig/increase/models/entity_update_params.rbs +20 -11
  62. data/sig/increase/models/event.rbs +16 -0
  63. data/sig/increase/models/event_list_params.rbs +16 -0
  64. data/sig/increase/models/event_subscription.rbs +16 -0
  65. data/sig/increase/models/event_subscription_create_params.rbs +16 -0
  66. data/sig/increase/models/inbound_ach_transfer.rbs +5 -0
  67. data/sig/increase/models/pending_transaction.rbs +84 -0
  68. data/sig/increase/models/pending_transaction_list_params.rbs +8 -0
  69. data/sig/increase/models/transaction.rbs +1236 -0
  70. data/sig/increase/models/transaction_list_params.rbs +8 -0
  71. data/sig/increase/models/unwrap_webhook_event.rbs +16 -0
  72. data/sig/increase/models/wire_drawdown_request.rbs +4 -4
  73. data/sig/increase/models/wire_drawdown_request_list_params.rbs +4 -4
  74. metadata +2 -2
@@ -436,6 +436,20 @@ module Increase
436
436
  Increase::TransactionListParams::Category::In::TaggedSymbol
437
437
  )
438
438
 
439
+ # UK Faster Payment System Transfer Acceptance: details will be under the `uk_faster_payment_system_transfer_acceptance` object.
440
+ UK_FASTER_PAYMENT_SYSTEM_TRANSFER_ACCEPTANCE =
441
+ T.let(
442
+ :uk_faster_payment_system_transfer_acceptance,
443
+ Increase::TransactionListParams::Category::In::TaggedSymbol
444
+ )
445
+
446
+ # SEPA Instant Transfer Acceptance: details will be under the `sepa_instant_transfer_acceptance` object.
447
+ SEPA_INSTANT_TRANSFER_ACCEPTANCE =
448
+ T.let(
449
+ :sepa_instant_transfer_acceptance,
450
+ Increase::TransactionListParams::Category::In::TaggedSymbol
451
+ )
452
+
439
453
  # The Transaction was made for an undocumented or deprecated reason.
440
454
  OTHER =
441
455
  T.let(
@@ -902,6 +902,20 @@ module Increase
902
902
  Increase::UnwrapWebhookEvent::Category::TaggedSymbol
903
903
  )
904
904
 
905
+ # Occurs whenever a SEPA Instant Transfer is created.
906
+ SEPA_INSTANT_TRANSFER_CREATED =
907
+ T.let(
908
+ :"sepa_instant_transfer.created",
909
+ Increase::UnwrapWebhookEvent::Category::TaggedSymbol
910
+ )
911
+
912
+ # Occurs whenever a SEPA Instant Transfer is updated.
913
+ SEPA_INSTANT_TRANSFER_UPDATED =
914
+ T.let(
915
+ :"sepa_instant_transfer.updated",
916
+ Increase::UnwrapWebhookEvent::Category::TaggedSymbol
917
+ )
918
+
905
919
  # Occurs whenever a Swift Transfer is created.
906
920
  SWIFT_TRANSFER_CREATED =
907
921
  T.let(
@@ -923,6 +937,20 @@ module Increase
923
937
  Increase::UnwrapWebhookEvent::Category::TaggedSymbol
924
938
  )
925
939
 
940
+ # Occurs whenever a UK Faster Payment System Transfer is created.
941
+ UK_FASTER_PAYMENT_SYSTEM_TRANSFER_CREATED =
942
+ T.let(
943
+ :"uk_faster_payment_system_transfer.created",
944
+ Increase::UnwrapWebhookEvent::Category::TaggedSymbol
945
+ )
946
+
947
+ # Occurs whenever a UK Faster Payment System Transfer is updated.
948
+ UK_FASTER_PAYMENT_SYSTEM_TRANSFER_UPDATED =
949
+ T.let(
950
+ :"uk_faster_payment_system_transfer.updated",
951
+ Increase::UnwrapWebhookEvent::Category::TaggedSymbol
952
+ )
953
+
926
954
  # Occurs whenever a Wire Drawdown Request is created.
927
955
  WIRE_DRAWDOWN_REQUEST_CREATED =
928
956
  T.let(
@@ -423,10 +423,6 @@ module Increase
423
423
  Increase::WireDrawdownRequest::Status::TaggedSymbol
424
424
  )
425
425
 
426
- # The drawdown request has been fulfilled by the recipient.
427
- FULFILLED =
428
- T.let(:fulfilled, Increase::WireDrawdownRequest::Status::TaggedSymbol)
429
-
430
426
  # The drawdown request has been sent and the recipient should respond in some way.
431
427
  PENDING_RESPONSE =
432
428
  T.let(
@@ -434,6 +430,10 @@ module Increase
434
430
  Increase::WireDrawdownRequest::Status::TaggedSymbol
435
431
  )
436
432
 
433
+ # The drawdown request has been fulfilled by the recipient.
434
+ FULFILLED =
435
+ T.let(:fulfilled, Increase::WireDrawdownRequest::Status::TaggedSymbol)
436
+
437
437
  # The drawdown request has been refused by the recipient.
438
438
  REFUSED =
439
439
  T.let(:refused, Increase::WireDrawdownRequest::Status::TaggedSymbol)
@@ -172,17 +172,17 @@ module Increase
172
172
  Increase::WireDrawdownRequestListParams::Status::In::TaggedSymbol
173
173
  )
174
174
 
175
- # The drawdown request has been fulfilled by the recipient.
176
- FULFILLED =
175
+ # The drawdown request has been sent and the recipient should respond in some way.
176
+ PENDING_RESPONSE =
177
177
  T.let(
178
- :fulfilled,
178
+ :pending_response,
179
179
  Increase::WireDrawdownRequestListParams::Status::In::TaggedSymbol
180
180
  )
181
181
 
182
- # The drawdown request has been sent and the recipient should respond in some way.
183
- PENDING_RESPONSE =
182
+ # The drawdown request has been fulfilled by the recipient.
183
+ FULFILLED =
184
184
  T.let(
185
- :pending_response,
185
+ :fulfilled,
186
186
  Increase::WireDrawdownRequestListParams::Status::In::TaggedSymbol
187
187
  )
188
188
 
@@ -5,7 +5,8 @@ module Increase
5
5
  class Simulations
6
6
  class AccountStatements
7
7
  # Simulates an [Account Statement](#account-statements) being created for an
8
- # account. In production, Account Statements are generated once per month.
8
+ # account. In production, Account Statements are generated once per month. As in
9
+ # production, the simulated statement covers the previous calendar month.
9
10
  sig do
10
11
  params(
11
12
  account_id: String,
@@ -26,11 +26,12 @@ module Increase
26
26
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time when the
27
27
  # carrier expects the card to be delivered.
28
28
  carrier_estimated_delivery_at: nil,
29
- # The city where the event took place.
29
+ # The city where the event took place. Required if postal_code is not provided.
30
30
  city: nil,
31
- # The postal code where the event took place.
31
+ # The postal code where the event took place. Required unless both city and state
32
+ # are provided.
32
33
  postal_code: nil,
33
- # The state where the event took place.
34
+ # The state where the event took place. Required if postal_code is not provided.
34
35
  state: nil,
35
36
  request_options: {}
36
37
  )
@@ -38,23 +38,15 @@ module Increase
38
38
 
39
39
  type loan =
40
40
  {
41
- due_at: Time?,
42
- due_balance: Integer,
43
41
  due_fees: Integer?,
44
42
  due_interest: Integer?,
45
43
  due_principal: Integer?,
46
44
  not_due_fees: Integer?,
47
45
  not_due_interest: Integer?,
48
- not_due_principal: Integer?,
49
- past_due_balance: Integer,
50
- receivables: Increase::BalanceLookup::Loan::Receivables?
46
+ not_due_principal: Integer?
51
47
  }
52
48
 
53
49
  class Loan < Increase::Internal::Type::BaseModel
54
- attr_accessor due_at: Time?
55
-
56
- attr_accessor due_balance: Integer
57
-
58
50
  attr_accessor due_fees: Integer?
59
51
 
60
52
  attr_accessor due_interest: Integer?
@@ -67,54 +59,23 @@ module Increase
67
59
 
68
60
  attr_accessor not_due_principal: Integer?
69
61
 
70
- attr_accessor past_due_balance: Integer
71
-
72
- attr_accessor receivables: Increase::BalanceLookup::Loan::Receivables?
73
-
74
62
  def initialize: (
75
- due_at: Time?,
76
- due_balance: Integer,
77
63
  due_fees: Integer?,
78
64
  due_interest: Integer?,
79
65
  due_principal: Integer?,
80
66
  not_due_fees: Integer?,
81
67
  not_due_interest: Integer?,
82
- not_due_principal: Integer?,
83
- past_due_balance: Integer,
84
- receivables: Increase::BalanceLookup::Loan::Receivables?
68
+ not_due_principal: Integer?
85
69
  ) -> void
86
70
 
87
71
  def to_hash: -> {
88
- due_at: Time?,
89
- due_balance: Integer,
90
72
  due_fees: Integer?,
91
73
  due_interest: Integer?,
92
74
  due_principal: Integer?,
93
75
  not_due_fees: Integer?,
94
76
  not_due_interest: Integer?,
95
- not_due_principal: Integer?,
96
- past_due_balance: Integer,
97
- receivables: Increase::BalanceLookup::Loan::Receivables?
77
+ not_due_principal: Integer?
98
78
  }
99
-
100
- type receivables =
101
- { purchasable_balance: Integer, purchased_balance: Integer }
102
-
103
- class Receivables < Increase::Internal::Type::BaseModel
104
- attr_accessor purchasable_balance: Integer
105
-
106
- attr_accessor purchased_balance: Integer
107
-
108
- def initialize: (
109
- purchasable_balance: Integer,
110
- purchased_balance: Integer
111
- ) -> void
112
-
113
- def to_hash: -> {
114
- purchasable_balance: Integer,
115
- purchased_balance: Integer
116
- }
117
- end
118
79
  end
119
80
 
120
81
  type type_ = :balance_lookup
@@ -175,6 +175,7 @@ module Increase
175
175
 
176
176
  type method_ =
177
177
  :social_security_number
178
+ | :social_security_number_last4
178
179
  | :individual_taxpayer_identification_number
179
180
  | :passport
180
181
  | :drivers_license
@@ -186,6 +187,9 @@ module Increase
186
187
  # A social security number.
187
188
  SOCIAL_SECURITY_NUMBER: :social_security_number
188
189
 
190
+ # The last four digits of a social security number.
191
+ SOCIAL_SECURITY_NUMBER_LAST4: :social_security_number_last4
192
+
189
193
  # An individual taxpayer identification number (ITIN).
190
194
  INDIVIDUAL_TAXPAYER_IDENTIFICATION_NUMBER: :individual_taxpayer_identification_number
191
195
 
@@ -168,6 +168,7 @@ module Increase
168
168
 
169
169
  type method_ =
170
170
  :social_security_number
171
+ | :social_security_number_last4
171
172
  | :individual_taxpayer_identification_number
172
173
  | :passport
173
174
  | :drivers_license
@@ -179,6 +180,9 @@ module Increase
179
180
  # A social security number.
180
181
  SOCIAL_SECURITY_NUMBER: :social_security_number
181
182
 
183
+ # The last four digits of a social security number.
184
+ SOCIAL_SECURITY_NUMBER_LAST4: :social_security_number_last4
185
+
182
186
  # An individual taxpayer identification number (ITIN).
183
187
  INDIVIDUAL_TAXPAYER_IDENTIFICATION_NUMBER: :individual_taxpayer_identification_number
184
188