increase 1.88.0 → 1.90.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/increase/client.rb +0 -4
- data/lib/increase/models/{card_detail_create_details_iframe_params.rb → card_create_details_iframe_params.rb} +8 -4
- data/lib/increase/models/card_details.rb +7 -7
- data/lib/increase/models/{card_detail_details_params.rb → card_details_params.rb} +2 -2
- data/lib/increase/models/card_iframe_url.rb +1 -1
- data/lib/increase/models/card_update_params.rb +1 -9
- data/lib/increase/models/{card_detail_update_params.rb → card_update_pin_params.rb} +2 -2
- data/lib/increase/models/event_subscription_create_params.rb +23 -1
- data/lib/increase/models.rb +6 -6
- data/lib/increase/resources/cards.rb +75 -3
- data/lib/increase/resources/event_subscriptions.rb +3 -1
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +3 -4
- data/rbi/increase/client.rbi +0 -3
- data/rbi/increase/models/{card_detail_create_details_iframe_params.rbi → card_create_details_iframe_params.rbi} +6 -4
- data/rbi/increase/models/card_details.rbi +8 -10
- data/rbi/increase/models/{card_detail_details_params.rbi → card_details_params.rbi} +2 -2
- data/rbi/increase/models/card_update_params.rbi +0 -11
- data/rbi/increase/models/{card_detail_update_params.rbi → card_update_pin_params.rbi} +2 -2
- data/rbi/increase/models/event_subscription_create_params.rbi +54 -0
- data/rbi/increase/models.rbi +7 -7
- data/rbi/increase/resources/cards.rbi +52 -3
- data/rbi/increase/resources/event_subscriptions.rbi +3 -0
- data/sig/increase/client.rbs +0 -2
- data/sig/increase/models/{card_detail_create_details_iframe_params.rbs → card_create_details_iframe_params.rbs} +2 -2
- data/sig/increase/models/card_details.rbs +7 -7
- data/sig/increase/models/{card_detail_details_params.rbs → card_details_params.rbs} +2 -2
- data/sig/increase/models/card_update_params.rbs +0 -7
- data/sig/increase/models/{card_detail_update_params.rbs → card_update_pin_params.rbs} +2 -2
- data/sig/increase/models/event_subscription_create_params.rbs +24 -1
- data/sig/increase/models.rbs +6 -6
- data/sig/increase/resources/cards.rbs +17 -1
- data/sig/increase/resources/event_subscriptions.rbs +1 -0
- metadata +10 -13
- data/lib/increase/resources/card_details.rb +0 -85
- data/rbi/increase/resources/card_details.rbi +0 -63
- data/sig/increase/resources/card_details.rbs +0 -24
@@ -1,63 +0,0 @@
|
|
1
|
-
# typed: strong
|
2
|
-
|
3
|
-
module Increase
|
4
|
-
module Resources
|
5
|
-
class CardDetails
|
6
|
-
# Update a Card's PIN
|
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
|
@@ -1,24 +0,0 @@
|
|
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
|