increase 1.81.0 → 1.83.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 (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -0
  3. data/README.md +1 -1
  4. data/lib/increase/client.rb +4 -0
  5. data/lib/increase/models/{card_create_details_iframe_params.rb → card_detail_create_details_iframe_params.rb} +2 -2
  6. data/lib/increase/models/{card_details_params.rb → card_detail_details_params.rb} +2 -2
  7. data/lib/increase/models/card_detail_update_params.rb +22 -0
  8. data/lib/increase/models/card_details.rb +8 -8
  9. data/lib/increase/models/card_iframe_url.rb +1 -1
  10. data/lib/increase/models/card_update_params.rb +9 -1
  11. data/lib/increase/models/real_time_decision_action_params.rb +8 -18
  12. data/lib/increase/models/simulations/{physical_card_tracking_updates_params.rb → physical_card_create_params.rb} +6 -7
  13. data/lib/increase/models.rb +6 -4
  14. data/lib/increase/resources/card_details.rb +85 -0
  15. data/lib/increase/resources/cards.rb +3 -48
  16. data/lib/increase/resources/simulations/physical_cards.rb +28 -29
  17. data/lib/increase/version.rb +1 -1
  18. data/lib/increase.rb +5 -3
  19. data/rbi/increase/client.rbi +3 -0
  20. data/rbi/increase/models/{card_create_details_iframe_params.rbi → card_detail_create_details_iframe_params.rbi} +2 -2
  21. data/rbi/increase/models/{card_details_params.rbi → card_detail_details_params.rbi} +2 -2
  22. data/rbi/increase/models/card_detail_update_params.rbi +40 -0
  23. data/rbi/increase/models/card_details.rbi +11 -9
  24. data/rbi/increase/models/card_update_params.rbi +11 -0
  25. data/rbi/increase/models/real_time_decision_action_params.rbi +12 -27
  26. data/rbi/increase/models/simulations/{physical_card_tracking_updates_params.rbi → physical_card_create_params.rbi} +11 -11
  27. data/rbi/increase/models.rbi +7 -5
  28. data/rbi/increase/resources/card_details.rbi +63 -0
  29. data/rbi/increase/resources/cards.rbi +3 -34
  30. data/rbi/increase/resources/simulations/physical_cards.rbi +22 -22
  31. data/sig/increase/client.rbs +2 -0
  32. data/sig/increase/models/{card_create_details_iframe_params.rbs → card_detail_create_details_iframe_params.rbs} +2 -2
  33. data/sig/increase/models/{card_details_params.rbs → card_detail_details_params.rbs} +2 -2
  34. data/sig/increase/models/card_detail_update_params.rbs +20 -0
  35. data/sig/increase/models/card_details.rbs +7 -7
  36. data/sig/increase/models/card_update_params.rbs +7 -0
  37. data/sig/increase/models/simulations/{physical_card_tracking_updates_params.rbs → physical_card_create_params.rbs} +7 -7
  38. data/sig/increase/models.rbs +6 -4
  39. data/sig/increase/resources/card_details.rbs +24 -0
  40. data/sig/increase/resources/cards.rbs +1 -11
  41. data/sig/increase/resources/simulations/physical_cards.rbs +8 -8
  42. metadata +17 -11
@@ -0,0 +1,40 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class CardDetailUpdateParams < Increase::Internal::Type::BaseModel
6
+ extend Increase::Internal::Type::RequestParameters::Converter
7
+ include Increase::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(Increase::CardDetailUpdateParams, Increase::Internal::AnyHash)
12
+ end
13
+
14
+ # The 4-digit PIN for the card, for use with ATMs.
15
+ sig { returns(String) }
16
+ attr_accessor :pin
17
+
18
+ sig do
19
+ params(
20
+ pin: String,
21
+ request_options: Increase::RequestOptions::OrHash
22
+ ).returns(T.attached_class)
23
+ end
24
+ def self.new(
25
+ # The 4-digit PIN for the card, for use with ATMs.
26
+ pin:,
27
+ request_options: {}
28
+ )
29
+ end
30
+
31
+ sig do
32
+ override.returns(
33
+ { pin: String, request_options: Increase::RequestOptions }
34
+ )
35
+ end
36
+ def to_hash
37
+ end
38
+ end
39
+ end
40
+ end
@@ -2,10 +2,10 @@
2
2
 
3
3
  module Increase
4
4
  module Models
5
- class CardDetails < Increase::Internal::Type::BaseModel
5
+ class CardDetailsAPI < Increase::Internal::Type::BaseModel
6
6
  OrHash =
7
7
  T.type_alias do
8
- T.any(Increase::CardDetails, Increase::Internal::AnyHash)
8
+ T.any(Increase::CardDetailsAPI, Increase::Internal::AnyHash)
9
9
  end
10
10
 
11
11
  # The identifier for the Card for which sensitive details have been returned.
@@ -30,7 +30,7 @@ module Increase
30
30
 
31
31
  # A constant representing the object's type. For this resource it will always be
32
32
  # `card_details`.
33
- sig { returns(Increase::CardDetails::Type::TaggedSymbol) }
33
+ sig { returns(Increase::CardDetailsAPI::Type::TaggedSymbol) }
34
34
  attr_accessor :type
35
35
 
36
36
  # The three-digit verification code for the card. It's also known as the Card
@@ -39,7 +39,7 @@ module Increase
39
39
  sig { returns(String) }
40
40
  attr_accessor :verification_code
41
41
 
42
- # An object containing the sensitive details (card number, cvc, etc) for a Card.
42
+ # An object containing the sensitive details (card number, CVC, etc) for a Card.
43
43
  sig do
44
44
  params(
45
45
  card_id: String,
@@ -47,7 +47,7 @@ module Increase
47
47
  expiration_year: Integer,
48
48
  pin: String,
49
49
  primary_account_number: String,
50
- type: Increase::CardDetails::Type::OrSymbol,
50
+ type: Increase::CardDetailsAPI::Type::OrSymbol,
51
51
  verification_code: String
52
52
  ).returns(T.attached_class)
53
53
  end
@@ -80,7 +80,7 @@ module Increase
80
80
  expiration_year: Integer,
81
81
  pin: String,
82
82
  primary_account_number: String,
83
- type: Increase::CardDetails::Type::TaggedSymbol,
83
+ type: Increase::CardDetailsAPI::Type::TaggedSymbol,
84
84
  verification_code: String
85
85
  }
86
86
  )
@@ -94,14 +94,16 @@ module Increase
94
94
  extend Increase::Internal::Type::Enum
95
95
 
96
96
  TaggedSymbol =
97
- T.type_alias { T.all(Symbol, Increase::CardDetails::Type) }
97
+ T.type_alias { T.all(Symbol, Increase::CardDetailsAPI::Type) }
98
98
  OrSymbol = T.type_alias { T.any(Symbol, String) }
99
99
 
100
100
  CARD_DETAILS =
101
- T.let(:card_details, Increase::CardDetails::Type::TaggedSymbol)
101
+ T.let(:card_details, Increase::CardDetailsAPI::Type::TaggedSymbol)
102
102
 
103
103
  sig do
104
- override.returns(T::Array[Increase::CardDetails::Type::TaggedSymbol])
104
+ override.returns(
105
+ T::Array[Increase::CardDetailsAPI::Type::TaggedSymbol]
106
+ )
105
107
  end
106
108
  def self.values
107
109
  end
@@ -50,6 +50,13 @@ module Increase
50
50
  sig { params(entity_id: String).void }
51
51
  attr_writer :entity_id
52
52
 
53
+ # The 4-digit PIN for the card, for use with ATMs.
54
+ sig { returns(T.nilable(String)) }
55
+ attr_reader :pin
56
+
57
+ sig { params(pin: String).void }
58
+ attr_writer :pin
59
+
53
60
  # The status to update the Card with.
54
61
  sig { returns(T.nilable(Increase::CardUpdateParams::Status::OrSymbol)) }
55
62
  attr_reader :status
@@ -63,6 +70,7 @@ module Increase
63
70
  description: String,
64
71
  digital_wallet: Increase::CardUpdateParams::DigitalWallet::OrHash,
65
72
  entity_id: String,
73
+ pin: String,
66
74
  status: Increase::CardUpdateParams::Status::OrSymbol,
67
75
  request_options: Increase::RequestOptions::OrHash
68
76
  ).returns(T.attached_class)
@@ -79,6 +87,8 @@ module Increase
79
87
  # The Entity the card belongs to. You only need to supply this in rare situations
80
88
  # when the card is not for the Account holder.
81
89
  entity_id: nil,
90
+ # The 4-digit PIN for the card, for use with ATMs.
91
+ pin: nil,
82
92
  # The status to update the Card with.
83
93
  status: nil,
84
94
  request_options: {}
@@ -92,6 +102,7 @@ module Increase
92
102
  description: String,
93
103
  digital_wallet: Increase::CardUpdateParams::DigitalWallet,
94
104
  entity_id: String,
105
+ pin: String,
95
106
  status: Increase::CardUpdateParams::Status::OrSymbol,
96
107
  request_options: Increase::RequestOptions
97
108
  }
@@ -477,15 +477,10 @@ module Increase
477
477
 
478
478
  # Your decisions on whether or not each provided address component is a match.
479
479
  # Your response here is evaluated against the customer's provided `postal_code`
480
- # and `line1`, and an appropriate network response is generated. For example, if
481
- # you would like to approve all transactions for a given card, you can submit
482
- # `match` for both `postal_code` and `line1` and Increase will generate an
483
- # approval with an Address Verification System (AVS) code that will match all of
484
- # the available address information, or will report that no check was performed if
485
- # no address information is available. If you do not provide a response, the
486
- # address verification result will be calculated by Increase using the available
487
- # address information available on the card. If none is available, Increase will
488
- # report that no check was performed.
480
+ # and `line1`, and an appropriate network response is generated. For more
481
+ # information, see our
482
+ # [Address Verification System Codes and Overrides](https://increase.com/documentation/address-verification-system-codes-and-overrides)
483
+ # guide.
489
484
  sig do
490
485
  returns(
491
486
  T.nilable(
@@ -516,15 +511,10 @@ module Increase
516
511
  def self.new(
517
512
  # Your decisions on whether or not each provided address component is a match.
518
513
  # Your response here is evaluated against the customer's provided `postal_code`
519
- # and `line1`, and an appropriate network response is generated. For example, if
520
- # you would like to approve all transactions for a given card, you can submit
521
- # `match` for both `postal_code` and `line1` and Increase will generate an
522
- # approval with an Address Verification System (AVS) code that will match all of
523
- # the available address information, or will report that no check was performed if
524
- # no address information is available. If you do not provide a response, the
525
- # address verification result will be calculated by Increase using the available
526
- # address information available on the card. If none is available, Increase will
527
- # report that no check was performed.
514
+ # and `line1`, and an appropriate network response is generated. For more
515
+ # information, see our
516
+ # [Address Verification System Codes and Overrides](https://increase.com/documentation/address-verification-system-codes-and-overrides)
517
+ # guide.
528
518
  cardholder_address_verification_result: nil
529
519
  )
530
520
  end
@@ -567,15 +557,10 @@ module Increase
567
557
 
568
558
  # Your decisions on whether or not each provided address component is a match.
569
559
  # Your response here is evaluated against the customer's provided `postal_code`
570
- # and `line1`, and an appropriate network response is generated. For example, if
571
- # you would like to approve all transactions for a given card, you can submit
572
- # `match` for both `postal_code` and `line1` and Increase will generate an
573
- # approval with an Address Verification System (AVS) code that will match all of
574
- # the available address information, or will report that no check was performed if
575
- # no address information is available. If you do not provide a response, the
576
- # address verification result will be calculated by Increase using the available
577
- # address information available on the card. If none is available, Increase will
578
- # report that no check was performed.
560
+ # and `line1`, and an appropriate network response is generated. For more
561
+ # information, see our
562
+ # [Address Verification System Codes and Overrides](https://increase.com/documentation/address-verification-system-codes-and-overrides)
563
+ # guide.
579
564
  sig do
580
565
  params(
581
566
  line1:
@@ -3,14 +3,14 @@
3
3
  module Increase
4
4
  module Models
5
5
  module Simulations
6
- class PhysicalCardTrackingUpdatesParams < Increase::Internal::Type::BaseModel
6
+ class PhysicalCardCreateParams < Increase::Internal::Type::BaseModel
7
7
  extend Increase::Internal::Type::RequestParameters::Converter
8
8
  include Increase::Internal::Type::RequestParameters
9
9
 
10
10
  OrHash =
11
11
  T.type_alias do
12
12
  T.any(
13
- Increase::Simulations::PhysicalCardTrackingUpdatesParams,
13
+ Increase::Simulations::PhysicalCardCreateParams,
14
14
  Increase::Internal::AnyHash
15
15
  )
16
16
  end
@@ -18,7 +18,7 @@ module Increase
18
18
  # The type of tracking event.
19
19
  sig do
20
20
  returns(
21
- Increase::Simulations::PhysicalCardTrackingUpdatesParams::Category::OrSymbol
21
+ Increase::Simulations::PhysicalCardCreateParams::Category::OrSymbol
22
22
  )
23
23
  end
24
24
  attr_accessor :category
@@ -55,7 +55,7 @@ module Increase
55
55
  sig do
56
56
  params(
57
57
  category:
58
- Increase::Simulations::PhysicalCardTrackingUpdatesParams::Category::OrSymbol,
58
+ Increase::Simulations::PhysicalCardCreateParams::Category::OrSymbol,
59
59
  carrier_estimated_delivery_at: Time,
60
60
  city: String,
61
61
  postal_code: String,
@@ -83,7 +83,7 @@ module Increase
83
83
  override.returns(
84
84
  {
85
85
  category:
86
- Increase::Simulations::PhysicalCardTrackingUpdatesParams::Category::OrSymbol,
86
+ Increase::Simulations::PhysicalCardCreateParams::Category::OrSymbol,
87
87
  carrier_estimated_delivery_at: Time,
88
88
  city: String,
89
89
  postal_code: String,
@@ -103,7 +103,7 @@ module Increase
103
103
  T.type_alias do
104
104
  T.all(
105
105
  Symbol,
106
- Increase::Simulations::PhysicalCardTrackingUpdatesParams::Category
106
+ Increase::Simulations::PhysicalCardCreateParams::Category
107
107
  )
108
108
  end
109
109
  OrSymbol = T.type_alias { T.any(Symbol, String) }
@@ -112,34 +112,34 @@ module Increase
112
112
  IN_TRANSIT =
113
113
  T.let(
114
114
  :in_transit,
115
- Increase::Simulations::PhysicalCardTrackingUpdatesParams::Category::TaggedSymbol
115
+ Increase::Simulations::PhysicalCardCreateParams::Category::TaggedSymbol
116
116
  )
117
117
 
118
118
  # The physical card has been processed for delivery.
119
119
  PROCESSED_FOR_DELIVERY =
120
120
  T.let(
121
121
  :processed_for_delivery,
122
- Increase::Simulations::PhysicalCardTrackingUpdatesParams::Category::TaggedSymbol
122
+ Increase::Simulations::PhysicalCardCreateParams::Category::TaggedSymbol
123
123
  )
124
124
 
125
125
  # The physical card has been delivered.
126
126
  DELIVERED =
127
127
  T.let(
128
128
  :delivered,
129
- Increase::Simulations::PhysicalCardTrackingUpdatesParams::Category::TaggedSymbol
129
+ Increase::Simulations::PhysicalCardCreateParams::Category::TaggedSymbol
130
130
  )
131
131
 
132
132
  # Delivery failed and the physical card was returned to sender.
133
133
  RETURNED_TO_SENDER =
134
134
  T.let(
135
135
  :returned_to_sender,
136
- Increase::Simulations::PhysicalCardTrackingUpdatesParams::Category::TaggedSymbol
136
+ Increase::Simulations::PhysicalCardCreateParams::Category::TaggedSymbol
137
137
  )
138
138
 
139
139
  sig do
140
140
  override.returns(
141
141
  T::Array[
142
- Increase::Simulations::PhysicalCardTrackingUpdatesParams::Category::TaggedSymbol
142
+ Increase::Simulations::PhysicalCardCreateParams::Category::TaggedSymbol
143
143
  ]
144
144
  )
145
145
  end
@@ -104,14 +104,16 @@ module Increase
104
104
 
105
105
  Card = Increase::Models::Card
106
106
 
107
- CardCreateDetailsIframeParams =
108
- Increase::Models::CardCreateDetailsIframeParams
109
-
110
107
  CardCreateParams = Increase::Models::CardCreateParams
111
108
 
112
- CardDetails = Increase::Models::CardDetails
109
+ CardDetailCreateDetailsIframeParams =
110
+ Increase::Models::CardDetailCreateDetailsIframeParams
111
+
112
+ CardDetailDetailsParams = Increase::Models::CardDetailDetailsParams
113
+
114
+ CardDetailsAPI = Increase::Models::CardDetailsAPI
113
115
 
114
- CardDetailsParams = Increase::Models::CardDetailsParams
116
+ CardDetailUpdateParams = Increase::Models::CardDetailUpdateParams
115
117
 
116
118
  CardIframeURL = Increase::Models::CardIframeURL
117
119
 
@@ -0,0 +1,63 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Resources
5
+ class CardDetails
6
+ # Update a Card's Details
7
+ sig do
8
+ params(
9
+ card_id: String,
10
+ pin: String,
11
+ request_options: Increase::RequestOptions::OrHash
12
+ ).returns(Increase::CardDetailsAPI)
13
+ end
14
+ def update(
15
+ # The card identifier.
16
+ card_id,
17
+ # The 4-digit PIN for the card, for use with ATMs.
18
+ pin:,
19
+ request_options: {}
20
+ )
21
+ end
22
+
23
+ # Create an iframe URL for a Card to display the card details. More details about
24
+ # styling and usage can be found in the
25
+ # [documentation](/documentation/embedded-card-component).
26
+ sig do
27
+ params(
28
+ card_id: String,
29
+ physical_card_id: String,
30
+ request_options: Increase::RequestOptions::OrHash
31
+ ).returns(Increase::CardIframeURL)
32
+ end
33
+ def create_details_iframe(
34
+ # The identifier of the Card to retrieve details for.
35
+ card_id,
36
+ # The identifier of the Physical Card to retrieve details for.
37
+ physical_card_id: nil,
38
+ request_options: {}
39
+ )
40
+ end
41
+
42
+ # Sensitive details for a Card include the primary account number, expiry, card
43
+ # verification code, and PIN.
44
+ sig do
45
+ params(
46
+ card_id: String,
47
+ request_options: Increase::RequestOptions::OrHash
48
+ ).returns(Increase::CardDetailsAPI)
49
+ end
50
+ def details(
51
+ # The identifier of the Card to retrieve details for.
52
+ card_id,
53
+ request_options: {}
54
+ )
55
+ end
56
+
57
+ # @api private
58
+ sig { params(client: Increase::Client).returns(T.attached_class) }
59
+ def self.new(client:)
60
+ end
61
+ end
62
+ end
63
+ end
@@ -56,6 +56,7 @@ module Increase
56
56
  description: String,
57
57
  digital_wallet: Increase::CardUpdateParams::DigitalWallet::OrHash,
58
58
  entity_id: String,
59
+ pin: String,
59
60
  status: Increase::CardUpdateParams::Status::OrSymbol,
60
61
  request_options: Increase::RequestOptions::OrHash
61
62
  ).returns(Increase::Card)
@@ -74,6 +75,8 @@ module Increase
74
75
  # The Entity the card belongs to. You only need to supply this in rare situations
75
76
  # when the card is not for the Account holder.
76
77
  entity_id: nil,
78
+ # The 4-digit PIN for the card, for use with ATMs.
79
+ pin: nil,
77
80
  # The status to update the Card with.
78
81
  status: nil,
79
82
  request_options: {}
@@ -111,40 +114,6 @@ module Increase
111
114
  )
112
115
  end
113
116
 
114
- # Create an iframe URL for a Card to display the card details. More details about
115
- # styling and usage can be found in the
116
- # [documentation](/documentation/embedded-card-component).
117
- sig do
118
- params(
119
- card_id: String,
120
- physical_card_id: String,
121
- request_options: Increase::RequestOptions::OrHash
122
- ).returns(Increase::CardIframeURL)
123
- end
124
- def create_details_iframe(
125
- # The identifier of the Card to retrieve details for.
126
- card_id,
127
- # The identifier of the Physical Card to retrieve details for.
128
- physical_card_id: nil,
129
- request_options: {}
130
- )
131
- end
132
-
133
- # Sensitive details for a Card include the primary account number, expiry, card
134
- # verification code, and PIN.
135
- sig do
136
- params(
137
- card_id: String,
138
- request_options: Increase::RequestOptions::OrHash
139
- ).returns(Increase::CardDetails)
140
- end
141
- def details(
142
- # The identifier of the Card to retrieve details for.
143
- card_id,
144
- request_options: {}
145
- )
146
- end
147
-
148
117
  # @api private
149
118
  sig { params(client: Increase::Client).returns(T.attached_class) }
150
119
  def self.new(client:)
@@ -4,33 +4,13 @@ module Increase
4
4
  module Resources
5
5
  class Simulations
6
6
  class PhysicalCards
7
- # This endpoint allows you to simulate advancing the shipment status of a Physical
8
- # Card, to simulate e.g., that a physical card was attempted shipped but then
9
- # failed delivery.
10
- sig do
11
- params(
12
- physical_card_id: String,
13
- shipment_status:
14
- Increase::Simulations::PhysicalCardAdvanceShipmentParams::ShipmentStatus::OrSymbol,
15
- request_options: Increase::RequestOptions::OrHash
16
- ).returns(Increase::PhysicalCard)
17
- end
18
- def advance_shipment(
19
- # The Physical Card you would like to action.
20
- physical_card_id,
21
- # The shipment status to move the Physical Card to.
22
- shipment_status:,
23
- request_options: {}
24
- )
25
- end
26
-
27
7
  # This endpoint allows you to simulate receiving a tracking update for a Physical
28
8
  # Card, to simulate the progress of a shipment.
29
9
  sig do
30
10
  params(
31
11
  physical_card_id: String,
32
12
  category:
33
- Increase::Simulations::PhysicalCardTrackingUpdatesParams::Category::OrSymbol,
13
+ Increase::Simulations::PhysicalCardCreateParams::Category::OrSymbol,
34
14
  carrier_estimated_delivery_at: Time,
35
15
  city: String,
36
16
  postal_code: String,
@@ -38,7 +18,7 @@ module Increase
38
18
  request_options: Increase::RequestOptions::OrHash
39
19
  ).returns(Increase::PhysicalCard)
40
20
  end
41
- def tracking_updates(
21
+ def create(
42
22
  # The Physical Card you would like to action.
43
23
  physical_card_id,
44
24
  # The type of tracking event.
@@ -56,6 +36,26 @@ module Increase
56
36
  )
57
37
  end
58
38
 
39
+ # This endpoint allows you to simulate advancing the shipment status of a Physical
40
+ # Card, to simulate e.g., that a physical card was attempted shipped but then
41
+ # failed delivery.
42
+ sig do
43
+ params(
44
+ physical_card_id: String,
45
+ shipment_status:
46
+ Increase::Simulations::PhysicalCardAdvanceShipmentParams::ShipmentStatus::OrSymbol,
47
+ request_options: Increase::RequestOptions::OrHash
48
+ ).returns(Increase::PhysicalCard)
49
+ end
50
+ def advance_shipment(
51
+ # The Physical Card you would like to action.
52
+ physical_card_id,
53
+ # The shipment status to move the Physical Card to.
54
+ shipment_status:,
55
+ request_options: {}
56
+ )
57
+ end
58
+
59
59
  # @api private
60
60
  sig { params(client: Increase::Client).returns(T.attached_class) }
61
61
  def self.new(client:)
@@ -23,6 +23,8 @@ module Increase
23
23
 
24
24
  attr_reader cards: Increase::Resources::Cards
25
25
 
26
+ attr_reader card_details: Increase::Resources::CardDetails
27
+
26
28
  attr_reader card_payments: Increase::Resources::CardPayments
27
29
 
28
30
  attr_reader card_purchase_supplements: Increase::Resources::CardPurchaseSupplements
@@ -1,10 +1,10 @@
1
1
  module Increase
2
2
  module Models
3
- type card_create_details_iframe_params =
3
+ type card_detail_create_details_iframe_params =
4
4
  { physical_card_id: String }
5
5
  & Increase::Internal::Type::request_parameters
6
6
 
7
- class CardCreateDetailsIframeParams < Increase::Internal::Type::BaseModel
7
+ class CardDetailCreateDetailsIframeParams < Increase::Internal::Type::BaseModel
8
8
  extend Increase::Internal::Type::RequestParameters::Converter
9
9
  include Increase::Internal::Type::RequestParameters
10
10
 
@@ -1,9 +1,9 @@
1
1
  module Increase
2
2
  module Models
3
- type card_details_params =
3
+ type card_detail_details_params =
4
4
  { } & Increase::Internal::Type::request_parameters
5
5
 
6
- class CardDetailsParams < Increase::Internal::Type::BaseModel
6
+ class CardDetailDetailsParams < Increase::Internal::Type::BaseModel
7
7
  extend Increase::Internal::Type::RequestParameters::Converter
8
8
  include Increase::Internal::Type::RequestParameters
9
9
 
@@ -0,0 +1,20 @@
1
+ module Increase
2
+ module Models
3
+ type card_detail_update_params =
4
+ { pin: String } & Increase::Internal::Type::request_parameters
5
+
6
+ class CardDetailUpdateParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ attr_accessor pin: String
11
+
12
+ def initialize: (
13
+ pin: String,
14
+ ?request_options: Increase::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> { pin: String, request_options: Increase::RequestOptions }
18
+ end
19
+ end
20
+ end
@@ -1,17 +1,17 @@
1
1
  module Increase
2
2
  module Models
3
- type card_details =
3
+ type card_details_api =
4
4
  {
5
5
  card_id: String,
6
6
  expiration_month: Integer,
7
7
  expiration_year: Integer,
8
8
  pin: String,
9
9
  primary_account_number: String,
10
- type: Increase::Models::CardDetails::type_,
10
+ type: Increase::Models::CardDetailsAPI::type_,
11
11
  verification_code: String
12
12
  }
13
13
 
14
- class CardDetails < Increase::Internal::Type::BaseModel
14
+ class CardDetailsAPI < Increase::Internal::Type::BaseModel
15
15
  attr_accessor card_id: String
16
16
 
17
17
  attr_accessor expiration_month: Integer
@@ -22,7 +22,7 @@ module Increase
22
22
 
23
23
  attr_accessor primary_account_number: String
24
24
 
25
- attr_accessor type: Increase::Models::CardDetails::type_
25
+ attr_accessor type: Increase::Models::CardDetailsAPI::type_
26
26
 
27
27
  attr_accessor verification_code: String
28
28
 
@@ -32,7 +32,7 @@ module Increase
32
32
  expiration_year: Integer,
33
33
  pin: String,
34
34
  primary_account_number: String,
35
- type: Increase::Models::CardDetails::type_,
35
+ type: Increase::Models::CardDetailsAPI::type_,
36
36
  verification_code: String
37
37
  ) -> void
38
38
 
@@ -42,7 +42,7 @@ module Increase
42
42
  expiration_year: Integer,
43
43
  pin: String,
44
44
  primary_account_number: String,
45
- type: Increase::Models::CardDetails::type_,
45
+ type: Increase::Models::CardDetailsAPI::type_,
46
46
  verification_code: String
47
47
  }
48
48
 
@@ -53,7 +53,7 @@ module Increase
53
53
 
54
54
  CARD_DETAILS: :card_details
55
55
 
56
- def self?.values: -> ::Array[Increase::Models::CardDetails::type_]
56
+ def self?.values: -> ::Array[Increase::Models::CardDetailsAPI::type_]
57
57
  end
58
58
  end
59
59
  end
@@ -6,6 +6,7 @@ module Increase
6
6
  description: String,
7
7
  digital_wallet: Increase::CardUpdateParams::DigitalWallet,
8
8
  entity_id: String,
9
+ pin: String,
9
10
  status: Increase::Models::CardUpdateParams::status
10
11
  }
11
12
  & Increase::Internal::Type::request_parameters
@@ -34,6 +35,10 @@ module Increase
34
35
 
35
36
  def entity_id=: (String) -> String
36
37
 
38
+ attr_reader pin: String?
39
+
40
+ def pin=: (String) -> String
41
+
37
42
  attr_reader status: Increase::Models::CardUpdateParams::status?
38
43
 
39
44
  def status=: (
@@ -45,6 +50,7 @@ module Increase
45
50
  ?description: String,
46
51
  ?digital_wallet: Increase::CardUpdateParams::DigitalWallet,
47
52
  ?entity_id: String,
53
+ ?pin: String,
48
54
  ?status: Increase::Models::CardUpdateParams::status,
49
55
  ?request_options: Increase::request_opts
50
56
  ) -> void
@@ -54,6 +60,7 @@ module Increase
54
60
  description: String,
55
61
  digital_wallet: Increase::CardUpdateParams::DigitalWallet,
56
62
  entity_id: String,
63
+ pin: String,
57
64
  status: Increase::Models::CardUpdateParams::status,
58
65
  request_options: Increase::RequestOptions
59
66
  }