increase 1.356.0 → 1.358.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 (107) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/increase/internal/transport/base_client.rb +1 -2
  4. data/lib/increase/models/account_statement.rb +12 -8
  5. data/lib/increase/models/card.rb +106 -1
  6. data/lib/increase/models/card_create_params.rb +63 -1
  7. data/lib/increase/models/card_payment.rb +37 -1
  8. data/lib/increase/models/card_renew_params.rb +22 -0
  9. data/lib/increase/models/check_deposit.rb +3 -0
  10. data/lib/increase/models/declined_transaction.rb +3 -0
  11. data/lib/increase/models/digital_card_profile.rb +12 -9
  12. data/lib/increase/models/digital_card_profile_clone_params.rb +12 -9
  13. data/lib/increase/models/digital_card_profile_create_params.rb +12 -9
  14. data/lib/increase/models/entity_create_params.rb +8 -4
  15. data/lib/increase/models/entity_update_params.rb +8 -4
  16. data/lib/increase/models/event.rb +3 -0
  17. data/lib/increase/models/event_list_params.rb +7 -4
  18. data/lib/increase/models/event_subscription.rb +3 -0
  19. data/lib/increase/models/event_subscription_create_params.rb +3 -0
  20. data/lib/increase/models/export.rb +12 -12
  21. data/lib/increase/models/export_create_params.rb +19 -18
  22. data/lib/increase/models/file.rb +1 -1
  23. data/lib/increase/models/file_create_params.rb +1 -1
  24. data/lib/increase/models/file_list_params.rb +1 -1
  25. data/lib/increase/models/inbound_check_deposit.rb +9 -7
  26. data/lib/increase/models/inbound_fednow_transfer.rb +12 -3
  27. data/lib/increase/models/pending_transaction.rb +9 -6
  28. data/lib/increase/models/physical_card.rb +32 -2
  29. data/lib/increase/models/simulations/check_deposit_adjustment_params.rb +3 -0
  30. data/lib/increase/models/simulations/inbound_check_deposit_adjustment_params.rb +3 -0
  31. data/lib/increase/models/transaction.rb +24 -0
  32. data/lib/increase/models/unwrap_webhook_event.rb +3 -0
  33. data/lib/increase/models.rb +2 -0
  34. data/lib/increase/resources/cards.rb +29 -1
  35. data/lib/increase/resources/digital_card_profiles.rb +12 -8
  36. data/lib/increase/resources/events.rb +2 -2
  37. data/lib/increase/resources/files.rb +3 -1
  38. data/lib/increase/resources/intrafi_account_enrollments.rb +2 -2
  39. data/lib/increase/resources/physical_card_profiles.rb +1 -1
  40. data/lib/increase/resources/supplemental_documents.rb +2 -2
  41. data/lib/increase/version.rb +1 -1
  42. data/lib/increase.rb +1 -0
  43. data/rbi/increase/models/account_statement.rbi +12 -8
  44. data/rbi/increase/models/card.rbi +162 -0
  45. data/rbi/increase/models/card_create_params.rbi +120 -0
  46. data/rbi/increase/models/card_payment.rbi +85 -1
  47. data/rbi/increase/models/card_renew_params.rbi +40 -0
  48. data/rbi/increase/models/check_deposit.rbi +7 -0
  49. data/rbi/increase/models/declined_transaction.rbi +7 -0
  50. data/rbi/increase/models/digital_card_profile.rbi +10 -8
  51. data/rbi/increase/models/digital_card_profile_clone_params.rbi +13 -11
  52. data/rbi/increase/models/digital_card_profile_create_params.rbi +13 -8
  53. data/rbi/increase/models/entity_create_params.rbi +8 -4
  54. data/rbi/increase/models/entity_update_params.rbi +8 -4
  55. data/rbi/increase/models/event.rbi +7 -0
  56. data/rbi/increase/models/event_list_params.rbi +11 -4
  57. data/rbi/increase/models/event_subscription.rbi +7 -0
  58. data/rbi/increase/models/event_subscription_create_params.rbi +7 -0
  59. data/rbi/increase/models/export.rbi +12 -12
  60. data/rbi/increase/models/export_create_params.rbi +18 -18
  61. data/rbi/increase/models/file.rbi +1 -1
  62. data/rbi/increase/models/file_create_params.rbi +1 -1
  63. data/rbi/increase/models/file_list_params.rbi +1 -1
  64. data/rbi/increase/models/inbound_check_deposit.rbi +13 -6
  65. data/rbi/increase/models/inbound_fednow_transfer.rbi +10 -2
  66. data/rbi/increase/models/pending_transaction.rbi +13 -6
  67. data/rbi/increase/models/physical_card.rbi +28 -0
  68. data/rbi/increase/models/simulations/check_deposit_adjustment_params.rbi +7 -0
  69. data/rbi/increase/models/simulations/inbound_check_deposit_adjustment_params.rbi +7 -0
  70. data/rbi/increase/models/transaction.rbi +56 -0
  71. data/rbi/increase/models/unwrap_webhook_event.rbi +7 -0
  72. data/rbi/increase/models.rbi +2 -0
  73. data/rbi/increase/resources/cards.rbi +22 -0
  74. data/rbi/increase/resources/digital_card_profiles.rbi +10 -8
  75. data/rbi/increase/resources/events.rbi +2 -2
  76. data/rbi/increase/resources/files.rbi +3 -1
  77. data/rbi/increase/resources/intrafi_account_enrollments.rbi +2 -2
  78. data/rbi/increase/resources/physical_card_profiles.rbi +1 -1
  79. data/rbi/increase/resources/supplemental_documents.rbi +2 -2
  80. data/sig/increase/models/card.rbs +79 -0
  81. data/sig/increase/models/card_create_params.rbs +52 -1
  82. data/sig/increase/models/card_payment.rbs +49 -1
  83. data/sig/increase/models/card_renew_params.rbs +23 -0
  84. data/sig/increase/models/check_deposit.rbs +8 -1
  85. data/sig/increase/models/declined_transaction.rbs +4 -0
  86. data/sig/increase/models/digital_card_profile.rbs +5 -5
  87. data/sig/increase/models/digital_card_profile_clone_params.rbs +7 -7
  88. data/sig/increase/models/digital_card_profile_create_params.rbs +7 -5
  89. data/sig/increase/models/event.rbs +4 -0
  90. data/sig/increase/models/event_list_params.rbs +4 -0
  91. data/sig/increase/models/event_subscription.rbs +4 -0
  92. data/sig/increase/models/event_subscription_create_params.rbs +4 -0
  93. data/sig/increase/models/file.rbs +1 -1
  94. data/sig/increase/models/file_create_params.rbs +1 -1
  95. data/sig/increase/models/file_list_params.rbs +1 -1
  96. data/sig/increase/models/inbound_check_deposit.rbs +12 -9
  97. data/sig/increase/models/inbound_fednow_transfer.rbs +5 -0
  98. data/sig/increase/models/pending_transaction.rbs +4 -0
  99. data/sig/increase/models/physical_card.rbs +15 -0
  100. data/sig/increase/models/simulations/check_deposit_adjustment_params.rbs +4 -0
  101. data/sig/increase/models/simulations/inbound_check_deposit_adjustment_params.rbs +4 -1
  102. data/sig/increase/models/transaction.rbs +32 -0
  103. data/sig/increase/models/unwrap_webhook_event.rbs +4 -0
  104. data/sig/increase/models.rbs +2 -0
  105. data/sig/increase/resources/cards.rbs +6 -0
  106. data/sig/increase/resources/digital_card_profiles.rbs +2 -2
  107. metadata +5 -2
@@ -3049,6 +3049,13 @@ module Increase
3049
3049
  Increase::Transaction::Source::CardDisputeFinancial::Visa::EventType::TaggedSymbol
3050
3050
  )
3051
3051
 
3052
+ # The merchant's pre-arbitration submission was accepted by the user or not responded to in time.
3053
+ MERCHANT_PREARBITRATION_ACCEPTED =
3054
+ T.let(
3055
+ :merchant_prearbitration_accepted,
3056
+ Increase::Transaction::Source::CardDisputeFinancial::Visa::EventType::TaggedSymbol
3057
+ )
3058
+
3052
3059
  # The user declined the merchant's pre-arbitration submission.
3053
3060
  MERCHANT_PREARBITRATION_DECLINE_SUBMITTED =
3054
3061
  T.let(
@@ -3070,6 +3077,13 @@ module Increase
3070
3077
  Increase::Transaction::Source::CardDisputeFinancial::Visa::EventType::TaggedSymbol
3071
3078
  )
3072
3079
 
3080
+ # The user's pre-arbitration was accepted by the merchant or not responded to in time.
3081
+ USER_PREARBITRATION_ACCEPTED =
3082
+ T.let(
3083
+ :user_prearbitration_accepted,
3084
+ Increase::Transaction::Source::CardDisputeFinancial::Visa::EventType::TaggedSymbol
3085
+ )
3086
+
3073
3087
  # The user's pre-arbitration was declined by the merchant.
3074
3088
  USER_PREARBITRATION_DECLINE_RECEIVED =
3075
3089
  T.let(
@@ -5549,6 +5563,13 @@ module Increase
5549
5563
  Increase::Transaction::Source::CardFinancial::SchemeFee::FeeType::TaggedSymbol
5550
5564
  )
5551
5565
 
5566
+ # Pulse Tokenization Fee is a fee charged by the Pulse network for processing tokenized transactions on its network.
5567
+ PULSE_TOKENIZATION_FEE =
5568
+ T.let(
5569
+ :pulse_tokenization_fee,
5570
+ Increase::Transaction::Source::CardFinancial::SchemeFee::FeeType::TaggedSymbol
5571
+ )
5572
+
5552
5573
  sig do
5553
5574
  override.returns(
5554
5575
  T::Array[
@@ -8662,6 +8683,13 @@ module Increase
8662
8683
  Increase::Transaction::Source::CardRefund::PurchaseDetails::PurchaseIdentifierFormat::TaggedSymbol
8663
8684
  )
8664
8685
 
8686
+ # Visa Recurrent reference identifier
8687
+ VISA_RECURRENT_REFERENCE_IDENTIFIER =
8688
+ T.let(
8689
+ :visa_recurrent_reference_identifier,
8690
+ Increase::Transaction::Source::CardRefund::PurchaseDetails::PurchaseIdentifierFormat::TaggedSymbol
8691
+ )
8692
+
8665
8693
  sig do
8666
8694
  override.returns(
8667
8695
  T::Array[
@@ -9892,6 +9920,13 @@ module Increase
9892
9920
  Increase::Transaction::Source::CardRefund::SchemeFee::FeeType::TaggedSymbol
9893
9921
  )
9894
9922
 
9923
+ # Pulse Tokenization Fee is a fee charged by the Pulse network for processing tokenized transactions on its network.
9924
+ PULSE_TOKENIZATION_FEE =
9925
+ T.let(
9926
+ :pulse_tokenization_fee,
9927
+ Increase::Transaction::Source::CardRefund::SchemeFee::FeeType::TaggedSymbol
9928
+ )
9929
+
9895
9930
  sig do
9896
9931
  override.returns(
9897
9932
  T::Array[
@@ -12737,6 +12772,13 @@ module Increase
12737
12772
  Increase::Transaction::Source::CardSettlement::PurchaseDetails::PurchaseIdentifierFormat::TaggedSymbol
12738
12773
  )
12739
12774
 
12775
+ # Visa Recurrent reference identifier
12776
+ VISA_RECURRENT_REFERENCE_IDENTIFIER =
12777
+ T.let(
12778
+ :visa_recurrent_reference_identifier,
12779
+ Increase::Transaction::Source::CardSettlement::PurchaseDetails::PurchaseIdentifierFormat::TaggedSymbol
12780
+ )
12781
+
12740
12782
  sig do
12741
12783
  override.returns(
12742
12784
  T::Array[
@@ -13967,6 +14009,13 @@ module Increase
13967
14009
  Increase::Transaction::Source::CardSettlement::SchemeFee::FeeType::TaggedSymbol
13968
14010
  )
13969
14011
 
14012
+ # Pulse Tokenization Fee is a fee charged by the Pulse network for processing tokenized transactions on its network.
14013
+ PULSE_TOKENIZATION_FEE =
14014
+ T.let(
14015
+ :pulse_tokenization_fee,
14016
+ Increase::Transaction::Source::CardSettlement::SchemeFee::FeeType::TaggedSymbol
14017
+ )
14018
+
13970
14019
  sig do
13971
14020
  override.returns(
13972
14021
  T::Array[
@@ -15603,6 +15652,13 @@ module Increase
15603
15652
  Increase::Transaction::Source::InboundCheckAdjustment::Reason::TaggedSymbol
15604
15653
  )
15605
15654
 
15655
+ # A previous adjustment for the check was applied twice and the duplicate has been reversed.
15656
+ DUPLICATE_ENTRY =
15657
+ T.let(
15658
+ :duplicate_entry,
15659
+ Increase::Transaction::Source::InboundCheckAdjustment::Reason::TaggedSymbol
15660
+ )
15661
+
15606
15662
  sig do
15607
15663
  override.returns(
15608
15664
  T::Array[
@@ -356,6 +356,13 @@ module Increase
356
356
  Increase::UnwrapWebhookEvent::Category::TaggedSymbol
357
357
  )
358
358
 
359
+ # Occurs whenever a Digital Wallet Token Request is created.
360
+ DIGITAL_WALLET_TOKEN_REQUEST_CREATED =
361
+ T.let(
362
+ :"digital_wallet_token_request.created",
363
+ Increase::UnwrapWebhookEvent::Category::TaggedSymbol
364
+ )
365
+
359
366
  # Occurs whenever an Entity is created.
360
367
  ENTITY_CREATED =
361
368
  T.let(
@@ -140,6 +140,8 @@ module Increase
140
140
  CardPushTransferRetrieveParams =
141
141
  Increase::Models::CardPushTransferRetrieveParams
142
142
 
143
+ CardRenewParams = Increase::Models::CardRenewParams
144
+
143
145
  CardRetrieveParams = Increase::Models::CardRetrieveParams
144
146
 
145
147
  CardToken = Increase::Models::CardToken
@@ -14,6 +14,7 @@ module Increase
14
14
  description: String,
15
15
  digital_wallet: Increase::CardCreateParams::DigitalWallet::OrHash,
16
16
  entity_id: String,
17
+ replacement_for: Increase::CardCreateParams::ReplacementFor::OrHash,
17
18
  request_options: Increase::RequestOptions::OrHash
18
19
  ).returns(Increase::Card)
19
20
  end
@@ -38,6 +39,9 @@ module Increase
38
39
  # The Entity the card belongs to. You only need to supply this in rare situations
39
40
  # when the card is not for the Account holder.
40
41
  entity_id: nil,
42
+ # Details about the Card this Card replaces. Supply this when issuing a new Card
43
+ # to take over from an existing one. The replaced Card is not canceled.
44
+ replacement_for: nil,
41
45
  request_options: {}
42
46
  )
43
47
  end
@@ -177,6 +181,24 @@ module Increase
177
181
  )
178
182
  end
179
183
 
184
+ # Renew a Card in place. The Card keeps its identifier, card number, PIN, and
185
+ # Physical Cards, and receives a new expiration date in the current month four
186
+ # years from now along with a new verification code, which the Card's details will
187
+ # return afterwards. Physical Cards that have already shipped keep working until
188
+ # they are canceled.
189
+ sig do
190
+ params(
191
+ card_id: String,
192
+ request_options: Increase::RequestOptions::OrHash
193
+ ).returns(Increase::Card)
194
+ end
195
+ def renew(
196
+ # The identifier of the Card to renew.
197
+ card_id,
198
+ request_options: {}
199
+ )
200
+ end
201
+
180
202
  # Update a Card's PIN
181
203
  sig do
182
204
  params(
@@ -10,8 +10,8 @@ module Increase
10
10
  background_image_file_id: String,
11
11
  card_description: String,
12
12
  description: String,
13
- issuer_name: String,
14
13
  contact_email: String,
14
+ contact_name: String,
15
15
  contact_phone: String,
16
16
  contact_website: String,
17
17
  text_color:
@@ -28,10 +28,11 @@ module Increase
28
28
  card_description:,
29
29
  # A description you can use to identify the Card Profile.
30
30
  description:,
31
- # A user-facing description for whoever is issuing the card.
32
- issuer_name:,
33
31
  # An email address the user can contact to receive support for their card.
34
32
  contact_email: nil,
33
+ # The name of your company or card program, shown to the user as who to contact
34
+ # for support with their card.
35
+ contact_name: nil,
35
36
  # A phone number the user can contact to receive support for their card.
36
37
  contact_phone: nil,
37
38
  # A website the user can visit to view and receive support for their card.
@@ -56,7 +57,7 @@ module Increase
56
57
  )
57
58
  end
58
59
 
59
- # List Card Profiles
60
+ # List Digital Card Profiles
60
61
  sig do
61
62
  params(
62
63
  cursor: String,
@@ -98,7 +99,7 @@ module Increase
98
99
  )
99
100
  end
100
101
 
101
- # Clones a Digital Card Profile
102
+ # Clone a Digital Card Profile
102
103
  sig do
103
104
  params(
104
105
  digital_card_profile_id: String,
@@ -106,10 +107,10 @@ module Increase
106
107
  background_image_file_id: String,
107
108
  card_description: String,
108
109
  contact_email: String,
110
+ contact_name: String,
109
111
  contact_phone: String,
110
112
  contact_website: String,
111
113
  description: String,
112
- issuer_name: String,
113
114
  text_color:
114
115
  Increase::DigitalCardProfileCloneParams::TextColor::OrHash,
115
116
  request_options: Increase::RequestOptions::OrHash
@@ -126,14 +127,15 @@ module Increase
126
127
  card_description: nil,
127
128
  # An email address the user can contact to receive support for their card.
128
129
  contact_email: nil,
130
+ # The name of your company or card program, shown to the user as who to contact
131
+ # for support with their card.
132
+ contact_name: nil,
129
133
  # A phone number the user can contact to receive support for their card.
130
134
  contact_phone: nil,
131
135
  # A website the user can visit to view and receive support for their card.
132
136
  contact_website: nil,
133
137
  # A description you can use to identify the Card Profile.
134
138
  description: nil,
135
- # A user-facing description for whoever is issuing the card.
136
- issuer_name: nil,
137
139
  # The Card's text color, specified as an RGB triple. The default is white.
138
140
  text_color: nil,
139
141
  request_options: {}
@@ -36,8 +36,8 @@ module Increase
36
36
  created_at: nil,
37
37
  # Return the page of entries after this one.
38
38
  cursor: nil,
39
- # Limit the size of the list that is returned. The default (and maximum) is 100
40
- # objects.
39
+ # Limit the size of the list that is returned. The default is 100 objects and the
40
+ # maximum is 1,000.
41
41
  #
42
42
  # Defaults to `100`.
43
43
  limit: nil,
@@ -29,7 +29,9 @@ module Increase
29
29
  )
30
30
  end
31
31
 
32
- # Retrieve a File
32
+ # Fetch metadata about a File, like its `purpose` and MIME type. To access the
33
+ # content, use the [Get File contents](/documentation/api/files#get-file-contents)
34
+ # API.
33
35
  sig do
34
36
  params(
35
37
  file_id: String,
@@ -3,7 +3,7 @@
3
3
  module Increase
4
4
  module Resources
5
5
  class IntrafiAccountEnrollments
6
- # Enroll an account in the IntraFi deposit sweep network
6
+ # Enroll an Account in the IntraFi deposit sweep network
7
7
  sig do
8
8
  params(
9
9
  account_id: String,
@@ -65,7 +65,7 @@ module Increase
65
65
  )
66
66
  end
67
67
 
68
- # Unenroll an account from IntraFi
68
+ # Unenroll an Account from IntraFi
69
69
  sig do
70
70
  params(
71
71
  intrafi_account_enrollment_id: String,
@@ -38,7 +38,7 @@ module Increase
38
38
  )
39
39
  end
40
40
 
41
- # Retrieve a Card Profile
41
+ # Retrieve a Physical Card Profile
42
42
  sig do
43
43
  params(
44
44
  physical_card_profile_id: String,
@@ -3,7 +3,7 @@
3
3
  module Increase
4
4
  module Resources
5
5
  class SupplementalDocuments
6
- # Create a supplemental document for an Entity
6
+ # Create a Supplemental Document
7
7
  sig do
8
8
  params(
9
9
  entity_id: String,
@@ -20,7 +20,7 @@ module Increase
20
20
  )
21
21
  end
22
22
 
23
- # List Entity Supplemental Document Submissions
23
+ # List Supplemental Documents
24
24
  sig do
25
25
  params(
26
26
  entity_id: String,
@@ -16,6 +16,8 @@ module Increase
16
16
  expiration_year: Integer,
17
17
  idempotency_key: String?,
18
18
  :last4 => String,
19
+ renewals: ::Array[Increase::Card::Renewal],
20
+ replacement_for: Increase::Card::ReplacementFor?,
19
21
  status: Increase::Models::Card::status,
20
22
  type: Increase::Models::Card::type_
21
23
  }
@@ -49,6 +51,10 @@ module Increase
49
51
 
50
52
  attr_accessor last4: String
51
53
 
54
+ attr_accessor renewals: ::Array[Increase::Card::Renewal]
55
+
56
+ attr_accessor replacement_for: Increase::Card::ReplacementFor?
57
+
52
58
  attr_accessor status: Increase::Models::Card::status
53
59
 
54
60
  attr_accessor type: Increase::Models::Card::type_
@@ -68,6 +74,8 @@ module Increase
68
74
  expiration_year: Integer,
69
75
  idempotency_key: String?,
70
76
  last4: String,
77
+ renewals: ::Array[Increase::Card::Renewal],
78
+ replacement_for: Increase::Card::ReplacementFor?,
71
79
  status: Increase::Models::Card::status,
72
80
  type: Increase::Models::Card::type_
73
81
  ) -> void
@@ -87,6 +95,8 @@ module Increase
87
95
  expiration_year: Integer,
88
96
  idempotency_key: String?,
89
97
  :last4 => String,
98
+ renewals: ::Array[Increase::Card::Renewal],
99
+ replacement_for: Increase::Card::ReplacementFor?,
90
100
  status: Increase::Models::Card::status,
91
101
  type: Increase::Models::Card::type_
92
102
  }
@@ -495,6 +505,75 @@ module Increase
495
505
  }
496
506
  end
497
507
 
508
+ type renewal =
509
+ {
510
+ previous_expiration_month: Integer,
511
+ previous_expiration_year: Integer,
512
+ renewed_at: Time
513
+ }
514
+
515
+ class Renewal < Increase::Internal::Type::BaseModel
516
+ attr_accessor previous_expiration_month: Integer
517
+
518
+ attr_accessor previous_expiration_year: Integer
519
+
520
+ attr_accessor renewed_at: Time
521
+
522
+ def initialize: (
523
+ previous_expiration_month: Integer,
524
+ previous_expiration_year: Integer,
525
+ renewed_at: Time
526
+ ) -> void
527
+
528
+ def to_hash: -> {
529
+ previous_expiration_month: Integer,
530
+ previous_expiration_year: Integer,
531
+ renewed_at: Time
532
+ }
533
+ end
534
+
535
+ type replacement_for =
536
+ {
537
+ card_id: String,
538
+ reason: Increase::Models::Card::ReplacementFor::reason
539
+ }
540
+
541
+ class ReplacementFor < Increase::Internal::Type::BaseModel
542
+ attr_accessor card_id: String
543
+
544
+ attr_accessor reason: Increase::Models::Card::ReplacementFor::reason
545
+
546
+ def initialize: (
547
+ card_id: String,
548
+ reason: Increase::Models::Card::ReplacementFor::reason
549
+ ) -> void
550
+
551
+ def to_hash: -> {
552
+ card_id: String,
553
+ reason: Increase::Models::Card::ReplacementFor::reason
554
+ }
555
+
556
+ type reason = :expiring | :lost | :stolen | :fraud
557
+
558
+ module Reason
559
+ extend Increase::Internal::Type::Enum
560
+
561
+ # The replaced card is expiring. Merchants with the replaced card on file will be notified of the new card, and its digital wallet tokens that have not been deactivated will move to the new card.
562
+ EXPIRING: :expiring
563
+
564
+ # The replaced card was lost. Merchants will not be notified of the new card.
565
+ LOST: :lost
566
+
567
+ # The replaced card was stolen. Merchants will not be notified of the new card.
568
+ STOLEN: :stolen
569
+
570
+ # The replaced card was used fraudulently. Merchants will not be notified of the new card.
571
+ FRAUD: :fraud
572
+
573
+ def self?.values: -> ::Array[Increase::Models::Card::ReplacementFor::reason]
574
+ end
575
+ end
576
+
498
577
  type status = :active | :disabled | :canceled
499
578
 
500
579
  module Status
@@ -8,7 +8,8 @@ module Increase
8
8
  cardholder_name: Increase::CardCreateParams::CardholderName,
9
9
  description: String,
10
10
  digital_wallet: Increase::CardCreateParams::DigitalWallet,
11
- entity_id: String
11
+ entity_id: String,
12
+ replacement_for: Increase::CardCreateParams::ReplacementFor
12
13
  }
13
14
  & Increase::Internal::Type::request_parameters
14
15
 
@@ -50,6 +51,12 @@ module Increase
50
51
 
51
52
  def entity_id=: (String) -> String
52
53
 
54
+ attr_reader replacement_for: Increase::CardCreateParams::ReplacementFor?
55
+
56
+ def replacement_for=: (
57
+ Increase::CardCreateParams::ReplacementFor
58
+ ) -> Increase::CardCreateParams::ReplacementFor
59
+
53
60
  def initialize: (
54
61
  account_id: String,
55
62
  ?authorization_controls: Increase::CardCreateParams::AuthorizationControls,
@@ -58,6 +65,7 @@ module Increase
58
65
  ?description: String,
59
66
  ?digital_wallet: Increase::CardCreateParams::DigitalWallet,
60
67
  ?entity_id: String,
68
+ ?replacement_for: Increase::CardCreateParams::ReplacementFor,
61
69
  ?request_options: Increase::request_opts
62
70
  ) -> void
63
71
 
@@ -69,6 +77,7 @@ module Increase
69
77
  description: String,
70
78
  digital_wallet: Increase::CardCreateParams::DigitalWallet,
71
79
  entity_id: String,
80
+ replacement_for: Increase::CardCreateParams::ReplacementFor,
72
81
  request_options: Increase::RequestOptions
73
82
  }
74
83
 
@@ -541,6 +550,48 @@ module Increase
541
550
  phone: String
542
551
  }
543
552
  end
553
+
554
+ type replacement_for =
555
+ {
556
+ card_id: String,
557
+ reason: Increase::Models::CardCreateParams::ReplacementFor::reason
558
+ }
559
+
560
+ class ReplacementFor < Increase::Internal::Type::BaseModel
561
+ attr_accessor card_id: String
562
+
563
+ attr_accessor reason: Increase::Models::CardCreateParams::ReplacementFor::reason
564
+
565
+ def initialize: (
566
+ card_id: String,
567
+ reason: Increase::Models::CardCreateParams::ReplacementFor::reason
568
+ ) -> void
569
+
570
+ def to_hash: -> {
571
+ card_id: String,
572
+ reason: Increase::Models::CardCreateParams::ReplacementFor::reason
573
+ }
574
+
575
+ type reason = :expiring | :lost | :stolen | :fraud
576
+
577
+ module Reason
578
+ extend Increase::Internal::Type::Enum
579
+
580
+ # The replaced card is expiring. Merchants with the replaced card on file will be notified of the new card, and its digital wallet tokens that have not been deactivated will move to the new card.
581
+ EXPIRING: :expiring
582
+
583
+ # The replaced card was lost. Merchants will not be notified of the new card.
584
+ LOST: :lost
585
+
586
+ # The replaced card was stolen. Merchants will not be notified of the new card.
587
+ STOLEN: :stolen
588
+
589
+ # The replaced card was used fraudulently. Merchants will not be notified of the new card.
590
+ FRAUD: :fraud
591
+
592
+ def self?.values: -> ::Array[Increase::Models::CardCreateParams::ReplacementFor::reason]
593
+ end
594
+ end
544
595
  end
545
596
  end
546
597
  end