increase 1.33.0 → 1.35.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 +12 -0
- data/lib/increase/models/card_push_transfer.rb +824 -0
- data/lib/increase/models/card_push_transfer_approve_params.rb +14 -0
- data/lib/increase/models/card_push_transfer_cancel_params.rb +14 -0
- data/lib/increase/models/card_push_transfer_create_params.rb +215 -0
- data/lib/increase/models/card_push_transfer_list_params.rb +159 -0
- data/lib/increase/models/card_push_transfer_retrieve_params.rb +14 -0
- data/lib/increase/models/card_token.rb +87 -0
- data/lib/increase/models/card_token_capabilities.rb +123 -0
- data/lib/increase/models/card_token_capabilities_params.rb +14 -0
- data/lib/increase/models/card_token_list_params.rb +83 -0
- data/lib/increase/models/card_token_retrieve_params.rb +14 -0
- data/lib/increase/models/card_validation.rb +759 -0
- data/lib/increase/models/card_validation_create_params.rb +116 -0
- data/lib/increase/models/card_validation_list_params.rb +150 -0
- data/lib/increase/models/card_validation_retrieve_params.rb +14 -0
- data/lib/increase/models/external_account.rb +3 -0
- data/lib/increase/models/external_account_create_params.rb +3 -0
- data/lib/increase/models/external_account_update_params.rb +3 -0
- data/lib/increase/models/simulations/card_token_create_params.rb +140 -0
- data/lib/increase/models.rb +30 -0
- data/lib/increase/resources/card_push_transfers.rb +167 -0
- data/lib/increase/resources/card_tokens.rb +86 -0
- data/lib/increase/resources/card_validations.rb +117 -0
- data/lib/increase/resources/simulations/card_tokens.rb +46 -0
- data/lib/increase/resources/simulations.rb +4 -0
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +20 -0
- data/rbi/increase/client.rbi +9 -0
- data/rbi/increase/models/card_push_transfer.rbi +1450 -0
- data/rbi/increase/models/card_push_transfer_approve_params.rbi +30 -0
- data/rbi/increase/models/card_push_transfer_cancel_params.rbi +30 -0
- data/rbi/increase/models/card_push_transfer_create_params.rbi +325 -0
- data/rbi/increase/models/card_push_transfer_list_params.rbi +329 -0
- data/rbi/increase/models/card_push_transfer_retrieve_params.rbi +30 -0
- data/rbi/increase/models/card_token.rbi +108 -0
- data/rbi/increase/models/card_token_capabilities.rbi +250 -0
- data/rbi/increase/models/card_token_capabilities_params.rbi +30 -0
- data/rbi/increase/models/card_token_list_params.rbi +146 -0
- data/rbi/increase/models/card_token_retrieve_params.rbi +27 -0
- data/rbi/increase/models/card_validation.rbi +1438 -0
- data/rbi/increase/models/card_validation_create_params.rbi +155 -0
- data/rbi/increase/models/card_validation_list_params.rbi +295 -0
- data/rbi/increase/models/card_validation_retrieve_params.rbi +30 -0
- data/rbi/increase/models/external_account.rbi +7 -0
- data/rbi/increase/models/external_account_create_params.rbi +7 -0
- data/rbi/increase/models/external_account_update_params.rbi +7 -0
- data/rbi/increase/models/simulations/card_token_create_params.rbi +297 -0
- data/rbi/increase/models.rbi +32 -0
- data/rbi/increase/resources/card_push_transfers.rbi +157 -0
- data/rbi/increase/resources/card_tokens.rbi +62 -0
- data/rbi/increase/resources/card_validations.rbi +107 -0
- data/rbi/increase/resources/simulations/card_tokens.rbi +43 -0
- data/rbi/increase/resources/simulations.rbi +3 -0
- data/sig/increase/client.rbs +6 -0
- data/sig/increase/models/card_push_transfer.rbs +679 -0
- data/sig/increase/models/card_push_transfer_approve_params.rbs +15 -0
- data/sig/increase/models/card_push_transfer_cancel_params.rbs +15 -0
- data/sig/increase/models/card_push_transfer_create_params.rbs +172 -0
- data/sig/increase/models/card_push_transfer_list_params.rbs +163 -0
- data/sig/increase/models/card_push_transfer_retrieve_params.rbs +15 -0
- data/sig/increase/models/card_token.rbs +60 -0
- data/sig/increase/models/card_token_capabilities.rbs +104 -0
- data/sig/increase/models/card_token_capabilities_params.rbs +15 -0
- data/sig/increase/models/card_token_list_params.rbs +79 -0
- data/sig/increase/models/card_token_retrieve_params.rbs +15 -0
- data/sig/increase/models/card_validation.rbs +634 -0
- data/sig/increase/models/card_validation_create_params.rbs +91 -0
- data/sig/increase/models/card_validation_list_params.rbs +151 -0
- data/sig/increase/models/card_validation_retrieve_params.rbs +15 -0
- data/sig/increase/models/external_account.rbs +4 -1
- data/sig/increase/models/external_account_create_params.rbs +4 -1
- data/sig/increase/models/external_account_update_params.rbs +4 -1
- data/sig/increase/models/simulations/card_token_create_params.rbs +129 -0
- data/sig/increase/models.rbs +30 -0
- data/sig/increase/resources/card_push_transfers.rbs +53 -0
- data/sig/increase/resources/card_tokens.rbs +24 -0
- data/sig/increase/resources/card_validations.rbs +38 -0
- data/sig/increase/resources/simulations/card_tokens.rbs +18 -0
- data/sig/increase/resources/simulations.rbs +2 -0
- metadata +62 -2
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class CardPushTransferRetrieveParams < 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(
|
|
12
|
+
Increase::CardPushTransferRetrieveParams,
|
|
13
|
+
Increase::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
sig do
|
|
18
|
+
params(request_options: Increase::RequestOptions::OrHash).returns(
|
|
19
|
+
T.attached_class
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
def self.new(request_options: {})
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ request_options: Increase::RequestOptions }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class CardToken < Increase::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias { T.any(Increase::CardToken, Increase::Internal::AnyHash) }
|
|
8
|
+
|
|
9
|
+
# The Card Token's identifier.
|
|
10
|
+
sig { returns(String) }
|
|
11
|
+
attr_accessor :id
|
|
12
|
+
|
|
13
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
14
|
+
# the card token was created.
|
|
15
|
+
sig { returns(Time) }
|
|
16
|
+
attr_accessor :created_at
|
|
17
|
+
|
|
18
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date when the card
|
|
19
|
+
# expires.
|
|
20
|
+
sig { returns(Date) }
|
|
21
|
+
attr_accessor :expiration_date
|
|
22
|
+
|
|
23
|
+
# The last 4 digits of the card number.
|
|
24
|
+
sig { returns(String) }
|
|
25
|
+
attr_accessor :last4
|
|
26
|
+
|
|
27
|
+
# The length of the card number.
|
|
28
|
+
sig { returns(Integer) }
|
|
29
|
+
attr_accessor :length
|
|
30
|
+
|
|
31
|
+
# The prefix of the card number, usually 8 digits.
|
|
32
|
+
sig { returns(String) }
|
|
33
|
+
attr_accessor :prefix
|
|
34
|
+
|
|
35
|
+
# A constant representing the object's type. For this resource it will always be
|
|
36
|
+
# `card_token`.
|
|
37
|
+
sig { returns(Increase::CardToken::Type::TaggedSymbol) }
|
|
38
|
+
attr_accessor :type
|
|
39
|
+
|
|
40
|
+
# Card Tokens represent a tokenized card number that can be used for Card Push
|
|
41
|
+
# Transfers and Card Validations.
|
|
42
|
+
sig do
|
|
43
|
+
params(
|
|
44
|
+
id: String,
|
|
45
|
+
created_at: Time,
|
|
46
|
+
expiration_date: Date,
|
|
47
|
+
last4: String,
|
|
48
|
+
length: Integer,
|
|
49
|
+
prefix: String,
|
|
50
|
+
type: Increase::CardToken::Type::OrSymbol
|
|
51
|
+
).returns(T.attached_class)
|
|
52
|
+
end
|
|
53
|
+
def self.new(
|
|
54
|
+
# The Card Token's identifier.
|
|
55
|
+
id:,
|
|
56
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
57
|
+
# the card token was created.
|
|
58
|
+
created_at:,
|
|
59
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date when the card
|
|
60
|
+
# expires.
|
|
61
|
+
expiration_date:,
|
|
62
|
+
# The last 4 digits of the card number.
|
|
63
|
+
last4:,
|
|
64
|
+
# The length of the card number.
|
|
65
|
+
length:,
|
|
66
|
+
# The prefix of the card number, usually 8 digits.
|
|
67
|
+
prefix:,
|
|
68
|
+
# A constant representing the object's type. For this resource it will always be
|
|
69
|
+
# `card_token`.
|
|
70
|
+
type:
|
|
71
|
+
)
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
sig do
|
|
75
|
+
override.returns(
|
|
76
|
+
{
|
|
77
|
+
id: String,
|
|
78
|
+
created_at: Time,
|
|
79
|
+
expiration_date: Date,
|
|
80
|
+
last4: String,
|
|
81
|
+
length: Integer,
|
|
82
|
+
prefix: String,
|
|
83
|
+
type: Increase::CardToken::Type::TaggedSymbol
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
end
|
|
87
|
+
def to_hash
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# A constant representing the object's type. For this resource it will always be
|
|
91
|
+
# `card_token`.
|
|
92
|
+
module Type
|
|
93
|
+
extend Increase::Internal::Type::Enum
|
|
94
|
+
|
|
95
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, Increase::CardToken::Type) }
|
|
96
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
97
|
+
|
|
98
|
+
CARD_TOKEN = T.let(:card_token, Increase::CardToken::Type::TaggedSymbol)
|
|
99
|
+
|
|
100
|
+
sig do
|
|
101
|
+
override.returns(T::Array[Increase::CardToken::Type::TaggedSymbol])
|
|
102
|
+
end
|
|
103
|
+
def self.values
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class CardTokenCapabilities < Increase::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Increase::CardTokenCapabilities, Increase::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# Each route represent a path e.g., a push transfer can take.
|
|
12
|
+
sig { returns(T::Array[Increase::CardTokenCapabilities::Route]) }
|
|
13
|
+
attr_accessor :routes
|
|
14
|
+
|
|
15
|
+
# A constant representing the object's type. For this resource it will always be
|
|
16
|
+
# `card_token_capabilities`.
|
|
17
|
+
sig { returns(Increase::CardTokenCapabilities::Type::TaggedSymbol) }
|
|
18
|
+
attr_accessor :type
|
|
19
|
+
|
|
20
|
+
# The capabilities of a Card Token describe whether the card can be used for
|
|
21
|
+
# specific operations, such as Card Push Transfers. The capabilities can change
|
|
22
|
+
# over time based on the issuing bank's configuration of the card range.
|
|
23
|
+
sig do
|
|
24
|
+
params(
|
|
25
|
+
routes: T::Array[Increase::CardTokenCapabilities::Route::OrHash],
|
|
26
|
+
type: Increase::CardTokenCapabilities::Type::OrSymbol
|
|
27
|
+
).returns(T.attached_class)
|
|
28
|
+
end
|
|
29
|
+
def self.new(
|
|
30
|
+
# Each route represent a path e.g., a push transfer can take.
|
|
31
|
+
routes:,
|
|
32
|
+
# A constant representing the object's type. For this resource it will always be
|
|
33
|
+
# `card_token_capabilities`.
|
|
34
|
+
type:
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
sig do
|
|
39
|
+
override.returns(
|
|
40
|
+
{
|
|
41
|
+
routes: T::Array[Increase::CardTokenCapabilities::Route],
|
|
42
|
+
type: Increase::CardTokenCapabilities::Type::TaggedSymbol
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
end
|
|
46
|
+
def to_hash
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
class Route < Increase::Internal::Type::BaseModel
|
|
50
|
+
OrHash =
|
|
51
|
+
T.type_alias do
|
|
52
|
+
T.any(
|
|
53
|
+
Increase::CardTokenCapabilities::Route,
|
|
54
|
+
Increase::Internal::AnyHash
|
|
55
|
+
)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Whether you can push funds to the card using cross-border Card Push Transfers.
|
|
59
|
+
sig do
|
|
60
|
+
returns(
|
|
61
|
+
Increase::CardTokenCapabilities::Route::CrossBorderPushTransfers::TaggedSymbol
|
|
62
|
+
)
|
|
63
|
+
end
|
|
64
|
+
attr_accessor :cross_border_push_transfers
|
|
65
|
+
|
|
66
|
+
# Whether you can push funds to the card using domestic Card Push Transfers.
|
|
67
|
+
sig do
|
|
68
|
+
returns(
|
|
69
|
+
Increase::CardTokenCapabilities::Route::DomesticPushTransfers::TaggedSymbol
|
|
70
|
+
)
|
|
71
|
+
end
|
|
72
|
+
attr_accessor :domestic_push_transfers
|
|
73
|
+
|
|
74
|
+
# The card network route the capabilities apply to.
|
|
75
|
+
sig do
|
|
76
|
+
returns(Increase::CardTokenCapabilities::Route::Route::TaggedSymbol)
|
|
77
|
+
end
|
|
78
|
+
attr_accessor :route
|
|
79
|
+
|
|
80
|
+
sig do
|
|
81
|
+
params(
|
|
82
|
+
cross_border_push_transfers:
|
|
83
|
+
Increase::CardTokenCapabilities::Route::CrossBorderPushTransfers::OrSymbol,
|
|
84
|
+
domestic_push_transfers:
|
|
85
|
+
Increase::CardTokenCapabilities::Route::DomesticPushTransfers::OrSymbol,
|
|
86
|
+
route: Increase::CardTokenCapabilities::Route::Route::OrSymbol
|
|
87
|
+
).returns(T.attached_class)
|
|
88
|
+
end
|
|
89
|
+
def self.new(
|
|
90
|
+
# Whether you can push funds to the card using cross-border Card Push Transfers.
|
|
91
|
+
cross_border_push_transfers:,
|
|
92
|
+
# Whether you can push funds to the card using domestic Card Push Transfers.
|
|
93
|
+
domestic_push_transfers:,
|
|
94
|
+
# The card network route the capabilities apply to.
|
|
95
|
+
route:
|
|
96
|
+
)
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
sig do
|
|
100
|
+
override.returns(
|
|
101
|
+
{
|
|
102
|
+
cross_border_push_transfers:
|
|
103
|
+
Increase::CardTokenCapabilities::Route::CrossBorderPushTransfers::TaggedSymbol,
|
|
104
|
+
domestic_push_transfers:
|
|
105
|
+
Increase::CardTokenCapabilities::Route::DomesticPushTransfers::TaggedSymbol,
|
|
106
|
+
route: Increase::CardTokenCapabilities::Route::Route::TaggedSymbol
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
end
|
|
110
|
+
def to_hash
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Whether you can push funds to the card using cross-border Card Push Transfers.
|
|
114
|
+
module CrossBorderPushTransfers
|
|
115
|
+
extend Increase::Internal::Type::Enum
|
|
116
|
+
|
|
117
|
+
TaggedSymbol =
|
|
118
|
+
T.type_alias do
|
|
119
|
+
T.all(
|
|
120
|
+
Symbol,
|
|
121
|
+
Increase::CardTokenCapabilities::Route::CrossBorderPushTransfers
|
|
122
|
+
)
|
|
123
|
+
end
|
|
124
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
125
|
+
|
|
126
|
+
# The capability is supported.
|
|
127
|
+
SUPPORTED =
|
|
128
|
+
T.let(
|
|
129
|
+
:supported,
|
|
130
|
+
Increase::CardTokenCapabilities::Route::CrossBorderPushTransfers::TaggedSymbol
|
|
131
|
+
)
|
|
132
|
+
|
|
133
|
+
# The capability is not supported.
|
|
134
|
+
NOT_SUPPORTED =
|
|
135
|
+
T.let(
|
|
136
|
+
:not_supported,
|
|
137
|
+
Increase::CardTokenCapabilities::Route::CrossBorderPushTransfers::TaggedSymbol
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
sig do
|
|
141
|
+
override.returns(
|
|
142
|
+
T::Array[
|
|
143
|
+
Increase::CardTokenCapabilities::Route::CrossBorderPushTransfers::TaggedSymbol
|
|
144
|
+
]
|
|
145
|
+
)
|
|
146
|
+
end
|
|
147
|
+
def self.values
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Whether you can push funds to the card using domestic Card Push Transfers.
|
|
152
|
+
module DomesticPushTransfers
|
|
153
|
+
extend Increase::Internal::Type::Enum
|
|
154
|
+
|
|
155
|
+
TaggedSymbol =
|
|
156
|
+
T.type_alias do
|
|
157
|
+
T.all(
|
|
158
|
+
Symbol,
|
|
159
|
+
Increase::CardTokenCapabilities::Route::DomesticPushTransfers
|
|
160
|
+
)
|
|
161
|
+
end
|
|
162
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
163
|
+
|
|
164
|
+
# The capability is supported.
|
|
165
|
+
SUPPORTED =
|
|
166
|
+
T.let(
|
|
167
|
+
:supported,
|
|
168
|
+
Increase::CardTokenCapabilities::Route::DomesticPushTransfers::TaggedSymbol
|
|
169
|
+
)
|
|
170
|
+
|
|
171
|
+
# The capability is not supported.
|
|
172
|
+
NOT_SUPPORTED =
|
|
173
|
+
T.let(
|
|
174
|
+
:not_supported,
|
|
175
|
+
Increase::CardTokenCapabilities::Route::DomesticPushTransfers::TaggedSymbol
|
|
176
|
+
)
|
|
177
|
+
|
|
178
|
+
sig do
|
|
179
|
+
override.returns(
|
|
180
|
+
T::Array[
|
|
181
|
+
Increase::CardTokenCapabilities::Route::DomesticPushTransfers::TaggedSymbol
|
|
182
|
+
]
|
|
183
|
+
)
|
|
184
|
+
end
|
|
185
|
+
def self.values
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# The card network route the capabilities apply to.
|
|
190
|
+
module Route
|
|
191
|
+
extend Increase::Internal::Type::Enum
|
|
192
|
+
|
|
193
|
+
TaggedSymbol =
|
|
194
|
+
T.type_alias do
|
|
195
|
+
T.all(Symbol, Increase::CardTokenCapabilities::Route::Route)
|
|
196
|
+
end
|
|
197
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
198
|
+
|
|
199
|
+
# Visa and Interlink
|
|
200
|
+
VISA =
|
|
201
|
+
T.let(
|
|
202
|
+
:visa,
|
|
203
|
+
Increase::CardTokenCapabilities::Route::Route::TaggedSymbol
|
|
204
|
+
)
|
|
205
|
+
|
|
206
|
+
# Mastercard and Maestro
|
|
207
|
+
MASTERCARD =
|
|
208
|
+
T.let(
|
|
209
|
+
:mastercard,
|
|
210
|
+
Increase::CardTokenCapabilities::Route::Route::TaggedSymbol
|
|
211
|
+
)
|
|
212
|
+
|
|
213
|
+
sig do
|
|
214
|
+
override.returns(
|
|
215
|
+
T::Array[
|
|
216
|
+
Increase::CardTokenCapabilities::Route::Route::TaggedSymbol
|
|
217
|
+
]
|
|
218
|
+
)
|
|
219
|
+
end
|
|
220
|
+
def self.values
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# A constant representing the object's type. For this resource it will always be
|
|
226
|
+
# `card_token_capabilities`.
|
|
227
|
+
module Type
|
|
228
|
+
extend Increase::Internal::Type::Enum
|
|
229
|
+
|
|
230
|
+
TaggedSymbol =
|
|
231
|
+
T.type_alias { T.all(Symbol, Increase::CardTokenCapabilities::Type) }
|
|
232
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
233
|
+
|
|
234
|
+
CARD_TOKEN_CAPABILITIES =
|
|
235
|
+
T.let(
|
|
236
|
+
:card_token_capabilities,
|
|
237
|
+
Increase::CardTokenCapabilities::Type::TaggedSymbol
|
|
238
|
+
)
|
|
239
|
+
|
|
240
|
+
sig do
|
|
241
|
+
override.returns(
|
|
242
|
+
T::Array[Increase::CardTokenCapabilities::Type::TaggedSymbol]
|
|
243
|
+
)
|
|
244
|
+
end
|
|
245
|
+
def self.values
|
|
246
|
+
end
|
|
247
|
+
end
|
|
248
|
+
end
|
|
249
|
+
end
|
|
250
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class CardTokenCapabilitiesParams < 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(
|
|
12
|
+
Increase::CardTokenCapabilitiesParams,
|
|
13
|
+
Increase::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
sig do
|
|
18
|
+
params(request_options: Increase::RequestOptions::OrHash).returns(
|
|
19
|
+
T.attached_class
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
def self.new(request_options: {})
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ request_options: Increase::RequestOptions }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class CardTokenListParams < 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::CardTokenListParams, Increase::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(T.nilable(Increase::CardTokenListParams::CreatedAt)) }
|
|
15
|
+
attr_reader :created_at
|
|
16
|
+
|
|
17
|
+
sig do
|
|
18
|
+
params(
|
|
19
|
+
created_at: Increase::CardTokenListParams::CreatedAt::OrHash
|
|
20
|
+
).void
|
|
21
|
+
end
|
|
22
|
+
attr_writer :created_at
|
|
23
|
+
|
|
24
|
+
# Return the page of entries after this one.
|
|
25
|
+
sig { returns(T.nilable(String)) }
|
|
26
|
+
attr_reader :cursor
|
|
27
|
+
|
|
28
|
+
sig { params(cursor: String).void }
|
|
29
|
+
attr_writer :cursor
|
|
30
|
+
|
|
31
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
32
|
+
# objects.
|
|
33
|
+
sig { returns(T.nilable(Integer)) }
|
|
34
|
+
attr_reader :limit
|
|
35
|
+
|
|
36
|
+
sig { params(limit: Integer).void }
|
|
37
|
+
attr_writer :limit
|
|
38
|
+
|
|
39
|
+
sig do
|
|
40
|
+
params(
|
|
41
|
+
created_at: Increase::CardTokenListParams::CreatedAt::OrHash,
|
|
42
|
+
cursor: String,
|
|
43
|
+
limit: Integer,
|
|
44
|
+
request_options: Increase::RequestOptions::OrHash
|
|
45
|
+
).returns(T.attached_class)
|
|
46
|
+
end
|
|
47
|
+
def self.new(
|
|
48
|
+
created_at: nil,
|
|
49
|
+
# Return the page of entries after this one.
|
|
50
|
+
cursor: nil,
|
|
51
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
52
|
+
# objects.
|
|
53
|
+
limit: nil,
|
|
54
|
+
request_options: {}
|
|
55
|
+
)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
sig do
|
|
59
|
+
override.returns(
|
|
60
|
+
{
|
|
61
|
+
created_at: Increase::CardTokenListParams::CreatedAt,
|
|
62
|
+
cursor: String,
|
|
63
|
+
limit: Integer,
|
|
64
|
+
request_options: Increase::RequestOptions
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
end
|
|
68
|
+
def to_hash
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
class CreatedAt < Increase::Internal::Type::BaseModel
|
|
72
|
+
OrHash =
|
|
73
|
+
T.type_alias do
|
|
74
|
+
T.any(
|
|
75
|
+
Increase::CardTokenListParams::CreatedAt,
|
|
76
|
+
Increase::Internal::AnyHash
|
|
77
|
+
)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
81
|
+
# timestamp.
|
|
82
|
+
sig { returns(T.nilable(Time)) }
|
|
83
|
+
attr_reader :after
|
|
84
|
+
|
|
85
|
+
sig { params(after: Time).void }
|
|
86
|
+
attr_writer :after
|
|
87
|
+
|
|
88
|
+
# Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
89
|
+
# timestamp.
|
|
90
|
+
sig { returns(T.nilable(Time)) }
|
|
91
|
+
attr_reader :before
|
|
92
|
+
|
|
93
|
+
sig { params(before: Time).void }
|
|
94
|
+
attr_writer :before
|
|
95
|
+
|
|
96
|
+
# Return results on or after this
|
|
97
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
98
|
+
sig { returns(T.nilable(Time)) }
|
|
99
|
+
attr_reader :on_or_after
|
|
100
|
+
|
|
101
|
+
sig { params(on_or_after: Time).void }
|
|
102
|
+
attr_writer :on_or_after
|
|
103
|
+
|
|
104
|
+
# Return results on or before this
|
|
105
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
106
|
+
sig { returns(T.nilable(Time)) }
|
|
107
|
+
attr_reader :on_or_before
|
|
108
|
+
|
|
109
|
+
sig { params(on_or_before: Time).void }
|
|
110
|
+
attr_writer :on_or_before
|
|
111
|
+
|
|
112
|
+
sig do
|
|
113
|
+
params(
|
|
114
|
+
after: Time,
|
|
115
|
+
before: Time,
|
|
116
|
+
on_or_after: Time,
|
|
117
|
+
on_or_before: Time
|
|
118
|
+
).returns(T.attached_class)
|
|
119
|
+
end
|
|
120
|
+
def self.new(
|
|
121
|
+
# Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
122
|
+
# timestamp.
|
|
123
|
+
after: nil,
|
|
124
|
+
# Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
125
|
+
# timestamp.
|
|
126
|
+
before: nil,
|
|
127
|
+
# Return results on or after this
|
|
128
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
129
|
+
on_or_after: nil,
|
|
130
|
+
# Return results on or before this
|
|
131
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
132
|
+
on_or_before: nil
|
|
133
|
+
)
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
sig do
|
|
137
|
+
override.returns(
|
|
138
|
+
{ after: Time, before: Time, on_or_after: Time, on_or_before: Time }
|
|
139
|
+
)
|
|
140
|
+
end
|
|
141
|
+
def to_hash
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class CardTokenRetrieveParams < 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::CardTokenRetrieveParams, Increase::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig do
|
|
15
|
+
params(request_options: Increase::RequestOptions::OrHash).returns(
|
|
16
|
+
T.attached_class
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
def self.new(request_options: {})
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
sig { override.returns({ request_options: Increase::RequestOptions }) }
|
|
23
|
+
def to_hash
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|