increase 1.82.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 (40) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -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/simulations/{physical_card_tracking_updates_params.rb → physical_card_create_params.rb} +6 -7
  12. data/lib/increase/models.rb +6 -4
  13. data/lib/increase/resources/card_details.rb +85 -0
  14. data/lib/increase/resources/cards.rb +3 -48
  15. data/lib/increase/resources/simulations/physical_cards.rb +28 -29
  16. data/lib/increase/version.rb +1 -1
  17. data/lib/increase.rb +5 -3
  18. data/rbi/increase/client.rbi +3 -0
  19. data/rbi/increase/models/{card_create_details_iframe_params.rbi → card_detail_create_details_iframe_params.rbi} +2 -2
  20. data/rbi/increase/models/{card_details_params.rbi → card_detail_details_params.rbi} +2 -2
  21. data/rbi/increase/models/card_detail_update_params.rbi +40 -0
  22. data/rbi/increase/models/card_details.rbi +11 -9
  23. data/rbi/increase/models/card_update_params.rbi +11 -0
  24. data/rbi/increase/models/simulations/{physical_card_tracking_updates_params.rbi → physical_card_create_params.rbi} +11 -11
  25. data/rbi/increase/models.rbi +7 -5
  26. data/rbi/increase/resources/card_details.rbi +63 -0
  27. data/rbi/increase/resources/cards.rbi +3 -34
  28. data/rbi/increase/resources/simulations/physical_cards.rbi +22 -22
  29. data/sig/increase/client.rbs +2 -0
  30. data/sig/increase/models/{card_create_details_iframe_params.rbs → card_detail_create_details_iframe_params.rbs} +2 -2
  31. data/sig/increase/models/{card_details_params.rbs → card_detail_details_params.rbs} +2 -2
  32. data/sig/increase/models/card_detail_update_params.rbs +20 -0
  33. data/sig/increase/models/card_details.rbs +7 -7
  34. data/sig/increase/models/card_update_params.rbs +7 -0
  35. data/sig/increase/models/simulations/{physical_card_tracking_updates_params.rbs → physical_card_create_params.rbs} +7 -7
  36. data/sig/increase/models.rbs +6 -4
  37. data/sig/increase/resources/card_details.rbs +24 -0
  38. data/sig/increase/resources/cards.rbs +1 -11
  39. data/sig/increase/resources/simulations/physical_cards.rbs +8 -8
  40. metadata +16 -10
@@ -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
  }
@@ -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
  }
@@ -1,9 +1,9 @@
1
1
  module Increase
2
2
  module Models
3
3
  module Simulations
4
- type physical_card_tracking_updates_params =
4
+ type physical_card_create_params =
5
5
  {
6
- category: Increase::Models::Simulations::PhysicalCardTrackingUpdatesParams::category,
6
+ category: Increase::Models::Simulations::PhysicalCardCreateParams::category,
7
7
  carrier_estimated_delivery_at: Time,
8
8
  city: String,
9
9
  postal_code: String,
@@ -11,11 +11,11 @@ module Increase
11
11
  }
12
12
  & Increase::Internal::Type::request_parameters
13
13
 
14
- class PhysicalCardTrackingUpdatesParams < Increase::Internal::Type::BaseModel
14
+ class PhysicalCardCreateParams < Increase::Internal::Type::BaseModel
15
15
  extend Increase::Internal::Type::RequestParameters::Converter
16
16
  include Increase::Internal::Type::RequestParameters
17
17
 
18
- attr_accessor category: Increase::Models::Simulations::PhysicalCardTrackingUpdatesParams::category
18
+ attr_accessor category: Increase::Models::Simulations::PhysicalCardCreateParams::category
19
19
 
20
20
  attr_reader carrier_estimated_delivery_at: Time?
21
21
 
@@ -34,7 +34,7 @@ module Increase
34
34
  def state=: (String) -> String
35
35
 
36
36
  def initialize: (
37
- category: Increase::Models::Simulations::PhysicalCardTrackingUpdatesParams::category,
37
+ category: Increase::Models::Simulations::PhysicalCardCreateParams::category,
38
38
  ?carrier_estimated_delivery_at: Time,
39
39
  ?city: String,
40
40
  ?postal_code: String,
@@ -43,7 +43,7 @@ module Increase
43
43
  ) -> void
44
44
 
45
45
  def to_hash: -> {
46
- category: Increase::Models::Simulations::PhysicalCardTrackingUpdatesParams::category,
46
+ category: Increase::Models::Simulations::PhysicalCardCreateParams::category,
47
47
  carrier_estimated_delivery_at: Time,
48
48
  city: String,
49
49
  postal_code: String,
@@ -72,7 +72,7 @@ module Increase
72
72
  # Delivery failed and the physical card was returned to sender.
73
73
  RETURNED_TO_SENDER: :returned_to_sender
74
74
 
75
- def self?.values: -> ::Array[Increase::Models::Simulations::PhysicalCardTrackingUpdatesParams::category]
75
+ def self?.values: -> ::Array[Increase::Models::Simulations::PhysicalCardCreateParams::category]
76
76
  end
77
77
  end
78
78
  end
@@ -91,13 +91,15 @@ module Increase
91
91
 
92
92
  class Card = Increase::Models::Card
93
93
 
94
- class CardCreateDetailsIframeParams = Increase::Models::CardCreateDetailsIframeParams
95
-
96
94
  class CardCreateParams = Increase::Models::CardCreateParams
97
95
 
98
- class CardDetails = Increase::Models::CardDetails
96
+ class CardDetailCreateDetailsIframeParams = Increase::Models::CardDetailCreateDetailsIframeParams
97
+
98
+ class CardDetailDetailsParams = Increase::Models::CardDetailDetailsParams
99
+
100
+ class CardDetailsAPI = Increase::Models::CardDetailsAPI
99
101
 
100
- class CardDetailsParams = Increase::Models::CardDetailsParams
102
+ class CardDetailUpdateParams = Increase::Models::CardDetailUpdateParams
101
103
 
102
104
  class CardIframeURL = Increase::Models::CardIframeURL
103
105
 
@@ -0,0 +1,24 @@
1
+ module Increase
2
+ module Resources
3
+ class CardDetails
4
+ def update: (
5
+ String card_id,
6
+ pin: String,
7
+ ?request_options: Increase::request_opts
8
+ ) -> Increase::CardDetailsAPI
9
+
10
+ def create_details_iframe: (
11
+ String card_id,
12
+ ?physical_card_id: String,
13
+ ?request_options: Increase::request_opts
14
+ ) -> Increase::CardIframeURL
15
+
16
+ def details: (
17
+ String card_id,
18
+ ?request_options: Increase::request_opts
19
+ ) -> Increase::CardDetailsAPI
20
+
21
+ def initialize: (client: Increase::Client) -> void
22
+ end
23
+ end
24
+ end