increase 1.364.0 → 1.366.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 (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/increase/models/ach_transfer.rb +9 -2
  4. data/lib/increase/models/ach_transfer_create_params.rb +33 -50
  5. data/lib/increase/models/card_create_params.rb +10 -3
  6. data/lib/increase/models/card_payment.rb +352 -12
  7. data/lib/increase/models/card_update_params.rb +9 -3
  8. data/lib/increase/models/declined_transaction.rb +10 -1
  9. data/lib/increase/models/fednow_transfer.rb +10 -1
  10. data/lib/increase/models/pending_transaction.rb +10 -1
  11. data/lib/increase/models/transaction.rb +411 -6
  12. data/lib/increase/models/transaction_list_params.rb +3 -0
  13. data/lib/increase/resources/ach_transfers.rb +15 -22
  14. data/lib/increase/resources/cards.rb +7 -2
  15. data/lib/increase/version.rb +1 -1
  16. data/rbi/increase/models/ach_transfer.rbi +8 -2
  17. data/rbi/increase/models/ach_transfer_create_params.rbi +32 -54
  18. data/rbi/increase/models/card_create_params.rbi +9 -3
  19. data/rbi/increase/models/card_payment.rbi +726 -10
  20. data/rbi/increase/models/card_update_params.rbi +9 -3
  21. data/rbi/increase/models/declined_transaction.rbi +22 -1
  22. data/rbi/increase/models/fednow_transfer.rbi +8 -0
  23. data/rbi/increase/models/pending_transaction.rbi +22 -1
  24. data/rbi/increase/models/transaction.rbi +792 -3
  25. data/rbi/increase/models/transaction_list_params.rbi +7 -0
  26. data/rbi/increase/resources/ach_transfers.rbi +15 -22
  27. data/rbi/increase/resources/cards.rbi +6 -2
  28. data/sig/increase/models/ach_transfer_create_params.rbs +9 -18
  29. data/sig/increase/models/card_payment.rbs +378 -10
  30. data/sig/increase/models/declined_transaction.rbs +13 -1
  31. data/sig/increase/models/fednow_transfer.rbs +5 -0
  32. data/sig/increase/models/pending_transaction.rbs +13 -1
  33. data/sig/increase/models/transaction.rbs +363 -3
  34. data/sig/increase/models/transaction_list_params.rbs +4 -0
  35. data/sig/increase/resources/ach_transfers.rbs +2 -3
  36. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 222a3a474a6fabf7445abcecbbe300845db445bc0d08b3bc399596cc760f24af
4
- data.tar.gz: 10425bbfc0580d4df9cacbe14d13fe6122cbca7f84786c4eaad54ece99260d5f
3
+ metadata.gz: 211fbbf6b1a0858edc8134c95ebc037a7c2bc1405a8ba477a5be65448d26b31d
4
+ data.tar.gz: 1321070823bdb7946cd8b217f2f28d3e28d64680068da7d6d4aafb7d1ec06baf
5
5
  SHA512:
6
- metadata.gz: 1a92736d94243d471c75cd7d4e0fb50294474808b2d69f09f746920916f9d05b0655404f50b1c0a0c311c61aa315c2586e81ea552e958063191c5524e25047dd
7
- data.tar.gz: d5cf59099d458e204f9942bfd3c4b05cd69ea5e494cb1e624dd7c0c376cdca60df686f89893fd525906b830e2c82f16ef1328099ddf736d098b35832aa08072c
6
+ metadata.gz: adf93ef36b26aebaacb0da3eab1170c8b811ee7f4828c997e676a4d363cab599d0e253fe3ca1ba80d8c661e9d244791826a206559ba71cb82ff9540ce03ef913
7
+ data.tar.gz: 8723b388931f436101d86574b44cdcce5546812ad8e66a02d12db48331dee3eb4465435d7a3af5ed601b43592f45935cfcecaef175de606e21a1737b0ff833e9
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "increase", "~> 1.364.0"
18
+ gem "increase", "~> 1.366.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -223,7 +223,10 @@ module Increase
223
223
  required :standard_entry_class_code, enum: -> { Increase::ACHTransfer::StandardEntryClassCode }
224
224
 
225
225
  # @!attribute statement_descriptor
226
- # The descriptor that will show on the recipient's bank statement.
226
+ # A description you chose to give the transfer. If `individual_name` and
227
+ # `company_name` were not explicitly set, the `statement_descriptor` will be sent
228
+ # in those fields to the receiving bank to help the customer recognize the
229
+ # transfer.
227
230
  #
228
231
  # @return [String, nil]
229
232
  required :statement_descriptor, String, nil?: true
@@ -379,7 +382,11 @@ module Increase
379
382
  # [Standard Entry Class (SEC) code](/documentation/ach-standard-entry-class-codes)
380
383
  # to use for the transfer.
381
384
  #
382
- # @param statement_descriptor [String, nil] The descriptor that will show on the recipient's bank statement.
385
+ # @param statement_descriptor [String, nil]
386
+ # A description you chose to give the transfer. If `individual_name` and
387
+ # `company_name` were not explicitly set, the `statement_descriptor` will be sent
388
+ # in those fields to the receiving bank to help the customer recognize the
389
+ # transfer.
383
390
  #
384
391
  # @param status [Symbol, Increase::Models::ACHTransfer::Status] The lifecycle status of the transfer.
385
392
  #
@@ -26,16 +26,26 @@ module Increase
26
26
  # @return [Integer]
27
27
  required :amount, Integer
28
28
 
29
- # @!attribute statement_descriptor
30
- # A description you choose to give the transfer. This will be saved with the
31
- # transfer details, displayed in the dashboard, and returned by the API. If
32
- # `individual_name` and `company_name` are not explicitly set by this API, the
33
- # `statement_descriptor` will be sent in those fields to the receiving bank to
34
- # help the customer recognize the transfer. You are highly encouraged to pass
35
- # `individual_name` and `company_name` instead of relying on this fallback.
29
+ # @!attribute company_name
30
+ # The name by which the recipient knows the counterparty of this transaction. If
31
+ # you're processing payments on behalf of another party, use their name, not your
32
+ # own, so that it's more likely the recipient understands the context of the
33
+ # payment. This value is usually displayed to the recipient on their bank
34
+ # statement.
35
+ #
36
+ # @return [String]
37
+ required :company_name, String
38
+
39
+ # @!attribute individual_name
40
+ # The name of the transfer recipient. This value is informational and generally
41
+ # not verified by the recipient's bank. The business-to-business
42
+ # [Standard Entry Class (SEC) codes](/documentation/ach-standard-entry-class-codes)
43
+ # call this "individual name or receiving company name;" it's reasonable to
44
+ # include a business name in this field. This value is usually displayed to the
45
+ # recipient on their bank statement.
36
46
  #
37
47
  # @return [String]
38
- required :statement_descriptor, String
48
+ required :individual_name, String
39
49
 
40
50
  # @!attribute account_number
41
51
  # The receiver's account number. For credit transfers (transfers with a positive
@@ -83,17 +93,6 @@ module Increase
83
93
  # @return [String, nil]
84
94
  optional :company_entry_description, String
85
95
 
86
- # @!attribute company_name
87
- # The name by which the recipient knows the counterparty of this transaction. If
88
- # you're processing payments on behalf of another party, use their name, not your
89
- # own, so that it's more likely the recipient understands the context of the
90
- # payment. This value is usually displayed to the recipient on their bank
91
- # statement. We recommend setting this on every transfer; if you do not, we fall
92
- # back to the `statement_descriptor`.
93
- #
94
- # @return [String, nil]
95
- optional :company_name, String
96
-
97
96
  # @!attribute destination_account_holder
98
97
  # The type of entity that owns the receiver's account.
99
98
  #
@@ -125,15 +124,6 @@ module Increase
125
124
  # @return [String, nil]
126
125
  optional :individual_id, String
127
126
 
128
- # @!attribute individual_name
129
- # The name of the transfer recipient. This value is informational and generally
130
- # not verified by the recipient's bank. This value is usually displayed to the
131
- # recipient on their bank statement. We recommend setting this on every transfer;
132
- # if you do not, we fall back to the `statement_descriptor`.
133
- #
134
- # @return [String, nil]
135
- optional :individual_name, String
136
-
137
127
  # @!attribute preferred_effective_date
138
128
  # Configuration for how the effective date of the transfer will be set. This
139
129
  # determines same-day vs future-dated settlement timing. If not set, defaults to a
@@ -166,7 +156,7 @@ module Increase
166
156
  optional :standard_entry_class_code,
167
157
  enum: -> { Increase::ACHTransferCreateParams::StandardEntryClassCode }
168
158
 
169
- # @!method initialize(account_id:, amount:, statement_descriptor:, account_number: nil, addenda: nil, company_descriptive_date: nil, company_discretionary_data: nil, company_entry_description: nil, company_name: nil, destination_account_holder: nil, external_account_id: nil, funding: nil, individual_id: nil, individual_name: nil, preferred_effective_date: nil, require_approval: nil, routing_number: nil, standard_entry_class_code: nil, request_options: {})
159
+ # @!method initialize(account_id:, amount:, company_name:, individual_name:, account_number: nil, addenda: nil, company_descriptive_date: nil, company_discretionary_data: nil, company_entry_description: nil, destination_account_holder: nil, external_account_id: nil, funding: nil, individual_id: nil, preferred_effective_date: nil, require_approval: nil, routing_number: nil, standard_entry_class_code: nil, request_options: {})
170
160
  # @param account_id [String]
171
161
  # The Increase identifier for the account that will originate the transfer. For
172
162
  # credit transfers (transfers with a positive `amount`), this is the account that
@@ -180,13 +170,20 @@ module Increase
180
170
  # into Increase. Debit transfers
181
171
  # [might result in a hold before funds are available](/documentation/sending-ach-debit-transfers).
182
172
  #
183
- # @param statement_descriptor [String]
184
- # A description you choose to give the transfer. This will be saved with the
185
- # transfer details, displayed in the dashboard, and returned by the API. If
186
- # `individual_name` and `company_name` are not explicitly set by this API, the
187
- # `statement_descriptor` will be sent in those fields to the receiving bank to
188
- # help the customer recognize the transfer. You are highly encouraged to pass
189
- # `individual_name` and `company_name` instead of relying on this fallback.
173
+ # @param company_name [String]
174
+ # The name by which the recipient knows the counterparty of this transaction. If
175
+ # you're processing payments on behalf of another party, use their name, not your
176
+ # own, so that it's more likely the recipient understands the context of the
177
+ # payment. This value is usually displayed to the recipient on their bank
178
+ # statement.
179
+ #
180
+ # @param individual_name [String]
181
+ # The name of the transfer recipient. This value is informational and generally
182
+ # not verified by the recipient's bank. The business-to-business
183
+ # [Standard Entry Class (SEC) codes](/documentation/ach-standard-entry-class-codes)
184
+ # call this "individual name or receiving company name;" it's reasonable to
185
+ # include a business name in this field. This value is usually displayed to the
186
+ # recipient on their bank statement.
190
187
  #
191
188
  # @param account_number [String]
192
189
  # The receiver's account number. For credit transfers (transfers with a positive
@@ -219,14 +216,6 @@ module Increase
219
216
  # code and use case. For example, some use cases require constants like
220
217
  # `ACCTVERIFY`, `PURCHASE`, `PAYROLL`, or `REVERSAL`.
221
218
  #
222
- # @param company_name [String]
223
- # The name by which the recipient knows the counterparty of this transaction. If
224
- # you're processing payments on behalf of another party, use their name, not your
225
- # own, so that it's more likely the recipient understands the context of the
226
- # payment. This value is usually displayed to the recipient on their bank
227
- # statement. We recommend setting this on every transfer; if you do not, we fall
228
- # back to the `statement_descriptor`.
229
- #
230
219
  # @param destination_account_holder [Symbol, Increase::Models::ACHTransferCreateParams::DestinationAccountHolder]
231
220
  # The type of entity that owns the receiver's account.
232
221
  #
@@ -245,12 +234,6 @@ module Increase
245
234
  # unset. For the specific case of person-to-person credits with the WEB standard
246
235
  # entry class code, this must include the name of the payer.
247
236
  #
248
- # @param individual_name [String]
249
- # The name of the transfer recipient. This value is informational and generally
250
- # not verified by the recipient's bank. This value is usually displayed to the
251
- # recipient on their bank statement. We recommend setting this on every transfer;
252
- # if you do not, we fall back to the `statement_descriptor`.
253
- #
254
237
  # @param preferred_effective_date [Increase::Models::ACHTransferCreateParams::PreferredEffectiveDate]
255
238
  # Configuration for how the effective date of the transfer will be set. This
256
239
  # determines same-day vs future-dated settlement timing. If not set, defaults to a
@@ -20,7 +20,9 @@ module Increase
20
20
  optional :authorization_controls, -> { Increase::CardCreateParams::AuthorizationControls }
21
21
 
22
22
  # @!attribute billing_address
23
- # The card's billing address.
23
+ # The card's billing address. This is used in card authorizations to
24
+ # [validate the address provided by the acquirer](/documentation/address-verification-system-codes-and-overrides).
25
+ # If not provided, the address associated with the account's entity will be used.
24
26
  #
25
27
  # @return [Increase::Models::CardCreateParams::BillingAddress, nil]
26
28
  optional :billing_address, -> { Increase::CardCreateParams::BillingAddress }
@@ -68,7 +70,10 @@ module Increase
68
70
  # @param authorization_controls [Increase::Models::CardCreateParams::AuthorizationControls]
69
71
  # Controls that restrict how this card can be used.
70
72
  #
71
- # @param billing_address [Increase::Models::CardCreateParams::BillingAddress] The card's billing address.
73
+ # @param billing_address [Increase::Models::CardCreateParams::BillingAddress]
74
+ # The card's billing address. This is used in card authorizations to
75
+ # [validate the address provided by the acquirer](/documentation/address-verification-system-codes-and-overrides).
76
+ # If not provided, the address associated with the account's entity will be used.
72
77
  #
73
78
  # @param cardholder_name [Increase::Models::CardCreateParams::CardholderName]
74
79
  # The name of the cardholder. Used to respond to Account Name Inquiry requests
@@ -528,7 +533,9 @@ module Increase
528
533
  optional :line2, String
529
534
 
530
535
  # @!method initialize(city:, line1:, postal_code:, state:, line2: nil)
531
- # The card's billing address.
536
+ # The card's billing address. This is used in card authorizations to
537
+ # [validate the address provided by the acquirer](/documentation/address-verification-system-codes-and-overrides).
538
+ # If not provided, the address associated with the account's entity will be used.
532
539
  #
533
540
  # @param city [String] The city of the billing address.
534
541
  #