increase 1.360.0 → 1.362.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 (54) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/increase/internal/transport/pooled_net_requester.rb +3 -0
  4. data/lib/increase/internal/util.rb +22 -17
  5. data/lib/increase/models/ach_transfer_create_params.rb +73 -42
  6. data/lib/increase/models/digital_card_profile.rb +63 -1
  7. data/lib/increase/models/digital_card_profile_clone_params.rb +65 -1
  8. data/lib/increase/models/digital_card_profile_create_params.rb +62 -1
  9. data/lib/increase/models/event.rb +5 -2
  10. data/lib/increase/models/event_list_params.rb +5 -2
  11. data/lib/increase/models/event_subscription.rb +5 -2
  12. data/lib/increase/models/event_subscription_create_params.rb +5 -2
  13. data/lib/increase/models/inbound_real_time_payments_transfer.rb +10 -1
  14. data/lib/increase/models/simulations/card_dispute_action_params.rb +26 -4
  15. data/lib/increase/models/simulations/wire_drawdown_request_refuse_params.rb +52 -1
  16. data/lib/increase/models/unwrap_webhook_event.rb +5 -2
  17. data/lib/increase/models/wire_drawdown_request.rb +78 -1
  18. data/lib/increase/resources/ach_transfers.rb +43 -22
  19. data/lib/increase/resources/digital_card_profiles.rb +9 -2
  20. data/lib/increase/resources/simulations/wire_drawdown_requests.rb +12 -2
  21. data/lib/increase/version.rb +1 -1
  22. data/rbi/increase/internal/util.rbi +3 -1
  23. data/rbi/increase/models/ach_transfer_create_params.rbi +72 -42
  24. data/rbi/increase/models/digital_card_profile.rbi +137 -0
  25. data/rbi/increase/models/digital_card_profile_clone_params.rbi +166 -0
  26. data/rbi/increase/models/digital_card_profile_create_params.rbi +163 -0
  27. data/rbi/increase/models/event.rbi +10 -3
  28. data/rbi/increase/models/event_list_params.rbi +10 -3
  29. data/rbi/increase/models/event_subscription.rbi +10 -3
  30. data/rbi/increase/models/event_subscription_create_params.rbi +10 -3
  31. data/rbi/increase/models/inbound_real_time_payments_transfer.rbi +8 -0
  32. data/rbi/increase/models/simulations/card_dispute_action_params.rbi +56 -3
  33. data/rbi/increase/models/simulations/wire_drawdown_request_refuse_params.rbi +107 -0
  34. data/rbi/increase/models/unwrap_webhook_event.rbi +10 -3
  35. data/rbi/increase/models/wire_drawdown_request.rbi +146 -0
  36. data/rbi/increase/resources/ach_transfers.rbi +42 -22
  37. data/rbi/increase/resources/digital_card_profiles.rbi +7 -0
  38. data/rbi/increase/resources/simulations/wire_drawdown_requests.rbi +9 -0
  39. data/sig/increase/internal/util.rbs +1 -1
  40. data/sig/increase/models/digital_card_profile.rbs +47 -0
  41. data/sig/increase/models/digital_card_profile_clone_params.rbs +59 -0
  42. data/sig/increase/models/digital_card_profile_create_params.rbs +59 -0
  43. data/sig/increase/models/event.rbs +7 -3
  44. data/sig/increase/models/event_list_params.rbs +7 -3
  45. data/sig/increase/models/event_subscription.rbs +7 -3
  46. data/sig/increase/models/event_subscription_create_params.rbs +7 -3
  47. data/sig/increase/models/inbound_real_time_payments_transfer.rbs +5 -0
  48. data/sig/increase/models/simulations/card_dispute_action_params.rbs +24 -3
  49. data/sig/increase/models/simulations/wire_drawdown_request_refuse_params.rbs +51 -1
  50. data/sig/increase/models/unwrap_webhook_event.rbs +7 -3
  51. data/sig/increase/models/wire_drawdown_request.rbs +64 -0
  52. data/sig/increase/resources/digital_card_profiles.rbs +2 -0
  53. data/sig/increase/resources/simulations/wire_drawdown_requests.rbs +2 -0
  54. metadata +16 -2
@@ -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
@@ -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 ACH
72
- # company name configured on your account.
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
@@ -10,6 +10,7 @@ module Increase
10
10
  background_image_file_id: String,
11
11
  card_description: String,
12
12
  description: String,
13
+ apple_pay: Increase::DigitalCardProfileCreateParams::ApplePay::OrHash,
13
14
  contact_email: String,
14
15
  contact_name: String,
15
16
  contact_phone: String,
@@ -28,6 +29,8 @@ module Increase
28
29
  card_description:,
29
30
  # A description you can use to identify the Card Profile.
30
31
  description:,
32
+ # Apple Pay specific settings for the Card Profile.
33
+ apple_pay: nil,
31
34
  # An email address the user can contact to receive support for their card.
32
35
  contact_email: nil,
33
36
  # The name of your company or card program, shown to the user as who to contact
@@ -104,6 +107,7 @@ module Increase
104
107
  params(
105
108
  digital_card_profile_id: String,
106
109
  app_icon_file_id: String,
110
+ apple_pay: Increase::DigitalCardProfileCloneParams::ApplePay::OrHash,
107
111
  background_image_file_id: String,
108
112
  card_description: String,
109
113
  contact_email: String,
@@ -121,6 +125,9 @@ module Increase
121
125
  digital_card_profile_id,
122
126
  # The identifier of the File containing the card's icon image.
123
127
  app_icon_file_id: nil,
128
+ # Apple Pay specific settings for the Card Profile. Each list you leave out is
129
+ # copied from the original Card Profile.
130
+ apple_pay: nil,
124
131
  # The identifier of the File containing the card's front image.
125
132
  background_image_file_id: nil,
126
133
  # A user-facing description for the card itself.
@@ -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
@@ -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,
@@ -4,6 +4,7 @@ module Increase
4
4
  {
5
5
  id: String,
6
6
  app_icon_file_id: String,
7
+ apple_pay: Increase::DigitalCardProfile::ApplePay?,
7
8
  background_image_file_id: String,
8
9
  card_description: String,
9
10
  contact_email: String?,
@@ -23,6 +24,8 @@ module Increase
23
24
 
24
25
  attr_accessor app_icon_file_id: String
25
26
 
27
+ attr_accessor apple_pay: Increase::DigitalCardProfile::ApplePay?
28
+
26
29
  attr_accessor background_image_file_id: String
27
30
 
28
31
  attr_accessor card_description: String
@@ -50,6 +53,7 @@ module Increase
50
53
  def initialize: (
51
54
  id: String,
52
55
  app_icon_file_id: String,
56
+ apple_pay: Increase::DigitalCardProfile::ApplePay?,
53
57
  background_image_file_id: String,
54
58
  card_description: String,
55
59
  contact_email: String?,
@@ -67,6 +71,7 @@ module Increase
67
71
  def to_hash: -> {
68
72
  id: String,
69
73
  app_icon_file_id: String,
74
+ apple_pay: Increase::DigitalCardProfile::ApplePay?,
70
75
  background_image_file_id: String,
71
76
  card_description: String,
72
77
  contact_email: String?,
@@ -81,6 +86,48 @@ module Increase
81
86
  type: Increase::Models::DigitalCardProfile::type_
82
87
  }
83
88
 
89
+ type apple_pay =
90
+ {
91
+ associated_application_identifiers: ::Array[Increase::DigitalCardProfile::ApplePay::AssociatedApplicationIdentifier],
92
+ associated_store_identifiers: ::Array[Increase::DigitalCardProfile::ApplePay::AssociatedStoreIdentifier]
93
+ }
94
+
95
+ class ApplePay < Increase::Internal::Type::BaseModel
96
+ attr_accessor associated_application_identifiers: ::Array[Increase::DigitalCardProfile::ApplePay::AssociatedApplicationIdentifier]
97
+
98
+ attr_accessor associated_store_identifiers: ::Array[Increase::DigitalCardProfile::ApplePay::AssociatedStoreIdentifier]
99
+
100
+ def initialize: (
101
+ associated_application_identifiers: ::Array[Increase::DigitalCardProfile::ApplePay::AssociatedApplicationIdentifier],
102
+ associated_store_identifiers: ::Array[Increase::DigitalCardProfile::ApplePay::AssociatedStoreIdentifier]
103
+ ) -> void
104
+
105
+ def to_hash: -> {
106
+ associated_application_identifiers: ::Array[Increase::DigitalCardProfile::ApplePay::AssociatedApplicationIdentifier],
107
+ associated_store_identifiers: ::Array[Increase::DigitalCardProfile::ApplePay::AssociatedStoreIdentifier]
108
+ }
109
+
110
+ type associated_application_identifier = { identifier: String }
111
+
112
+ class AssociatedApplicationIdentifier < Increase::Internal::Type::BaseModel
113
+ attr_accessor identifier: String
114
+
115
+ def initialize: (identifier: String) -> void
116
+
117
+ def to_hash: -> { identifier: String }
118
+ end
119
+
120
+ type associated_store_identifier = { identifier: String }
121
+
122
+ class AssociatedStoreIdentifier < Increase::Internal::Type::BaseModel
123
+ attr_accessor identifier: String
124
+
125
+ def initialize: (identifier: String) -> void
126
+
127
+ def to_hash: -> { identifier: String }
128
+ end
129
+ end
130
+
84
131
  type status = :pending | :rejected | :active | :archived
85
132
 
86
133
  module Status
@@ -4,6 +4,7 @@ module Increase
4
4
  {
5
5
  digital_card_profile_id: String,
6
6
  app_icon_file_id: String,
7
+ apple_pay: Increase::DigitalCardProfileCloneParams::ApplePay,
7
8
  background_image_file_id: String,
8
9
  card_description: String,
9
10
  contact_email: String,
@@ -25,6 +26,12 @@ module Increase
25
26
 
26
27
  def app_icon_file_id=: (String) -> String
27
28
 
29
+ attr_reader apple_pay: Increase::DigitalCardProfileCloneParams::ApplePay?
30
+
31
+ def apple_pay=: (
32
+ Increase::DigitalCardProfileCloneParams::ApplePay
33
+ ) -> Increase::DigitalCardProfileCloneParams::ApplePay
34
+
28
35
  attr_reader background_image_file_id: String?
29
36
 
30
37
  def background_image_file_id=: (String) -> String
@@ -62,6 +69,7 @@ module Increase
62
69
  def initialize: (
63
70
  digital_card_profile_id: String,
64
71
  ?app_icon_file_id: String,
72
+ ?apple_pay: Increase::DigitalCardProfileCloneParams::ApplePay,
65
73
  ?background_image_file_id: String,
66
74
  ?card_description: String,
67
75
  ?contact_email: String,
@@ -76,6 +84,7 @@ module Increase
76
84
  def to_hash: -> {
77
85
  digital_card_profile_id: String,
78
86
  app_icon_file_id: String,
87
+ apple_pay: Increase::DigitalCardProfileCloneParams::ApplePay,
79
88
  background_image_file_id: String,
80
89
  card_description: String,
81
90
  contact_email: String,
@@ -87,6 +96,56 @@ module Increase
87
96
  request_options: Increase::RequestOptions
88
97
  }
89
98
 
99
+ type apple_pay =
100
+ {
101
+ associated_application_identifiers: ::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedApplicationIdentifier],
102
+ associated_store_identifiers: ::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedStoreIdentifier]
103
+ }
104
+
105
+ class ApplePay < Increase::Internal::Type::BaseModel
106
+ attr_reader associated_application_identifiers: ::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedApplicationIdentifier]?
107
+
108
+ def associated_application_identifiers=: (
109
+ ::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedApplicationIdentifier]
110
+ ) -> ::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedApplicationIdentifier]
111
+
112
+ attr_reader associated_store_identifiers: ::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedStoreIdentifier]?
113
+
114
+ def associated_store_identifiers=: (
115
+ ::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedStoreIdentifier]
116
+ ) -> ::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedStoreIdentifier]
117
+
118
+ def initialize: (
119
+ ?associated_application_identifiers: ::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedApplicationIdentifier],
120
+ ?associated_store_identifiers: ::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedStoreIdentifier]
121
+ ) -> void
122
+
123
+ def to_hash: -> {
124
+ associated_application_identifiers: ::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedApplicationIdentifier],
125
+ associated_store_identifiers: ::Array[Increase::DigitalCardProfileCloneParams::ApplePay::AssociatedStoreIdentifier]
126
+ }
127
+
128
+ type associated_application_identifier = { identifier: String }
129
+
130
+ class AssociatedApplicationIdentifier < Increase::Internal::Type::BaseModel
131
+ attr_accessor identifier: String
132
+
133
+ def initialize: (identifier: String) -> void
134
+
135
+ def to_hash: -> { identifier: String }
136
+ end
137
+
138
+ type associated_store_identifier = { identifier: String }
139
+
140
+ class AssociatedStoreIdentifier < Increase::Internal::Type::BaseModel
141
+ attr_accessor identifier: String
142
+
143
+ def initialize: (identifier: String) -> void
144
+
145
+ def to_hash: -> { identifier: String }
146
+ end
147
+ end
148
+
90
149
  type text_color = { blue: Integer, green: Integer, red: Integer }
91
150
 
92
151
  class TextColor < Increase::Internal::Type::BaseModel
@@ -6,6 +6,7 @@ module Increase
6
6
  background_image_file_id: String,
7
7
  card_description: String,
8
8
  description: String,
9
+ apple_pay: Increase::DigitalCardProfileCreateParams::ApplePay,
9
10
  contact_email: String,
10
11
  contact_name: String,
11
12
  contact_phone: String,
@@ -26,6 +27,12 @@ module Increase
26
27
 
27
28
  attr_accessor description: String
28
29
 
30
+ attr_reader apple_pay: Increase::DigitalCardProfileCreateParams::ApplePay?
31
+
32
+ def apple_pay=: (
33
+ Increase::DigitalCardProfileCreateParams::ApplePay
34
+ ) -> Increase::DigitalCardProfileCreateParams::ApplePay
35
+
29
36
  attr_reader contact_email: String?
30
37
 
31
38
  def contact_email=: (String) -> String
@@ -53,6 +60,7 @@ module Increase
53
60
  background_image_file_id: String,
54
61
  card_description: String,
55
62
  description: String,
63
+ ?apple_pay: Increase::DigitalCardProfileCreateParams::ApplePay,
56
64
  ?contact_email: String,
57
65
  ?contact_name: String,
58
66
  ?contact_phone: String,
@@ -66,6 +74,7 @@ module Increase
66
74
  background_image_file_id: String,
67
75
  card_description: String,
68
76
  description: String,
77
+ apple_pay: Increase::DigitalCardProfileCreateParams::ApplePay,
69
78
  contact_email: String,
70
79
  contact_name: String,
71
80
  contact_phone: String,
@@ -74,6 +83,56 @@ module Increase
74
83
  request_options: Increase::RequestOptions
75
84
  }
76
85
 
86
+ type apple_pay =
87
+ {
88
+ associated_application_identifiers: ::Array[Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedApplicationIdentifier],
89
+ associated_store_identifiers: ::Array[Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedStoreIdentifier]
90
+ }
91
+
92
+ class ApplePay < Increase::Internal::Type::BaseModel
93
+ attr_reader associated_application_identifiers: ::Array[Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedApplicationIdentifier]?
94
+
95
+ def associated_application_identifiers=: (
96
+ ::Array[Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedApplicationIdentifier]
97
+ ) -> ::Array[Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedApplicationIdentifier]
98
+
99
+ attr_reader associated_store_identifiers: ::Array[Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedStoreIdentifier]?
100
+
101
+ def associated_store_identifiers=: (
102
+ ::Array[Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedStoreIdentifier]
103
+ ) -> ::Array[Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedStoreIdentifier]
104
+
105
+ def initialize: (
106
+ ?associated_application_identifiers: ::Array[Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedApplicationIdentifier],
107
+ ?associated_store_identifiers: ::Array[Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedStoreIdentifier]
108
+ ) -> void
109
+
110
+ def to_hash: -> {
111
+ associated_application_identifiers: ::Array[Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedApplicationIdentifier],
112
+ associated_store_identifiers: ::Array[Increase::DigitalCardProfileCreateParams::ApplePay::AssociatedStoreIdentifier]
113
+ }
114
+
115
+ type associated_application_identifier = { identifier: String }
116
+
117
+ class AssociatedApplicationIdentifier < Increase::Internal::Type::BaseModel
118
+ attr_accessor identifier: String
119
+
120
+ def initialize: (identifier: String) -> void
121
+
122
+ def to_hash: -> { identifier: String }
123
+ end
124
+
125
+ type associated_store_identifier = { identifier: String }
126
+
127
+ class AssociatedStoreIdentifier < Increase::Internal::Type::BaseModel
128
+ attr_accessor identifier: String
129
+
130
+ def initialize: (identifier: String) -> void
131
+
132
+ def to_hash: -> { identifier: String }
133
+ end
134
+ end
135
+
77
136
  type text_color = { blue: Integer, green: Integer, red: Integer }
78
137
 
79
138
  class TextColor < Increase::Internal::Type::BaseModel
@@ -123,7 +123,8 @@ module Increase
123
123
  | :"loan_obligation.created"
124
124
  | :"loan_offer.created"
125
125
  | :"loan_offer.updated"
126
- | :"loan_purchase.created"
126
+ | :"loan_purchase_offer.created"
127
+ | :"loan_purchase_offer.updated"
127
128
  | :"lockbox.created"
128
129
  | :"lockbox.updated"
129
130
  | :"lockbox_address.created"
@@ -417,8 +418,11 @@ module Increase
417
418
  # Occurs whenever a Loan Offer is updated.
418
419
  LOAN_OFFER_UPDATED: :"loan_offer.updated"
419
420
 
420
- # Occurs whenever a Loan Purchase is created.
421
- LOAN_PURCHASE_CREATED: :"loan_purchase.created"
421
+ # Occurs whenever a Loan Purchase Offer is created.
422
+ LOAN_PURCHASE_OFFER_CREATED: :"loan_purchase_offer.created"
423
+
424
+ # Occurs whenever a Loan Purchase Offer is updated.
425
+ LOAN_PURCHASE_OFFER_UPDATED: :"loan_purchase_offer.updated"
422
426
 
423
427
  # Occurs whenever a Lockbox is created.
424
428
  LOCKBOX_CREATED: :"lockbox.created"
@@ -165,7 +165,8 @@ module Increase
165
165
  | :"loan_obligation.created"
166
166
  | :"loan_offer.created"
167
167
  | :"loan_offer.updated"
168
- | :"loan_purchase.created"
168
+ | :"loan_purchase_offer.created"
169
+ | :"loan_purchase_offer.updated"
169
170
  | :"lockbox.created"
170
171
  | :"lockbox.updated"
171
172
  | :"lockbox_address.created"
@@ -459,8 +460,11 @@ module Increase
459
460
  # Occurs whenever a Loan Offer is updated.
460
461
  LOAN_OFFER_UPDATED: :"loan_offer.updated"
461
462
 
462
- # Occurs whenever a Loan Purchase is created.
463
- LOAN_PURCHASE_CREATED: :"loan_purchase.created"
463
+ # Occurs whenever a Loan Purchase Offer is created.
464
+ LOAN_PURCHASE_OFFER_CREATED: :"loan_purchase_offer.created"
465
+
466
+ # Occurs whenever a Loan Purchase Offer is updated.
467
+ LOAN_PURCHASE_OFFER_UPDATED: :"loan_purchase_offer.updated"
464
468
 
465
469
  # Occurs whenever a Lockbox is created.
466
470
  LOCKBOX_CREATED: :"lockbox.created"