increase 1.32.0 → 1.34.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/entity_create_beneficial_owner_params.rb +9 -10
- data/lib/increase/models/entity_create_params.rb +9 -10
- data/lib/increase/models/entity_update_beneficial_owner_address_params.rb +9 -10
- 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/entity_create_beneficial_owner_params.rbi +8 -13
- data/rbi/increase/models/entity_create_params.rbi +8 -13
- data/rbi/increase/models/entity_update_beneficial_owner_address_params.rbi +8 -13
- 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/entity_create_beneficial_owner_params.rbs +5 -7
- data/sig/increase/models/entity_create_params.rbs +5 -7
- data/sig/increase/models/entity_update_beneficial_owner_address_params.rbs +5 -7
- 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,155 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class CardValidationCreateParams < 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::CardValidationCreateParams,
|
|
13
|
+
Increase::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# The identifier of the Account from which to send the validation.
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :account_id
|
|
20
|
+
|
|
21
|
+
# The Increase identifier for the Card Token that represents the card number
|
|
22
|
+
# you're validating.
|
|
23
|
+
sig { returns(String) }
|
|
24
|
+
attr_accessor :card_token_id
|
|
25
|
+
|
|
26
|
+
# A four-digit code (MCC) identifying the type of business or service provided by
|
|
27
|
+
# the merchant.
|
|
28
|
+
sig { returns(String) }
|
|
29
|
+
attr_accessor :merchant_category_code
|
|
30
|
+
|
|
31
|
+
# The city where the merchant (typically your business) is located.
|
|
32
|
+
sig { returns(String) }
|
|
33
|
+
attr_accessor :merchant_city_name
|
|
34
|
+
|
|
35
|
+
# The merchant name that will appear in the cardholder’s statement descriptor.
|
|
36
|
+
# Typically your business name.
|
|
37
|
+
sig { returns(String) }
|
|
38
|
+
attr_accessor :merchant_name
|
|
39
|
+
|
|
40
|
+
# The postal code for the merchant’s (typically your business’s) location.
|
|
41
|
+
sig { returns(String) }
|
|
42
|
+
attr_accessor :merchant_postal_code
|
|
43
|
+
|
|
44
|
+
# The U.S. state where the merchant (typically your business) is located.
|
|
45
|
+
sig { returns(String) }
|
|
46
|
+
attr_accessor :merchant_state
|
|
47
|
+
|
|
48
|
+
# The cardholder's first name.
|
|
49
|
+
sig { returns(T.nilable(String)) }
|
|
50
|
+
attr_reader :cardholder_first_name
|
|
51
|
+
|
|
52
|
+
sig { params(cardholder_first_name: String).void }
|
|
53
|
+
attr_writer :cardholder_first_name
|
|
54
|
+
|
|
55
|
+
# The cardholder's last name.
|
|
56
|
+
sig { returns(T.nilable(String)) }
|
|
57
|
+
attr_reader :cardholder_last_name
|
|
58
|
+
|
|
59
|
+
sig { params(cardholder_last_name: String).void }
|
|
60
|
+
attr_writer :cardholder_last_name
|
|
61
|
+
|
|
62
|
+
# The cardholder's middle name.
|
|
63
|
+
sig { returns(T.nilable(String)) }
|
|
64
|
+
attr_reader :cardholder_middle_name
|
|
65
|
+
|
|
66
|
+
sig { params(cardholder_middle_name: String).void }
|
|
67
|
+
attr_writer :cardholder_middle_name
|
|
68
|
+
|
|
69
|
+
# The postal code of the cardholder's address.
|
|
70
|
+
sig { returns(T.nilable(String)) }
|
|
71
|
+
attr_reader :cardholder_postal_code
|
|
72
|
+
|
|
73
|
+
sig { params(cardholder_postal_code: String).void }
|
|
74
|
+
attr_writer :cardholder_postal_code
|
|
75
|
+
|
|
76
|
+
# The cardholder's street address.
|
|
77
|
+
sig { returns(T.nilable(String)) }
|
|
78
|
+
attr_reader :cardholder_street_address
|
|
79
|
+
|
|
80
|
+
sig { params(cardholder_street_address: String).void }
|
|
81
|
+
attr_writer :cardholder_street_address
|
|
82
|
+
|
|
83
|
+
sig do
|
|
84
|
+
params(
|
|
85
|
+
account_id: String,
|
|
86
|
+
card_token_id: String,
|
|
87
|
+
merchant_category_code: String,
|
|
88
|
+
merchant_city_name: String,
|
|
89
|
+
merchant_name: String,
|
|
90
|
+
merchant_postal_code: String,
|
|
91
|
+
merchant_state: String,
|
|
92
|
+
cardholder_first_name: String,
|
|
93
|
+
cardholder_last_name: String,
|
|
94
|
+
cardholder_middle_name: String,
|
|
95
|
+
cardholder_postal_code: String,
|
|
96
|
+
cardholder_street_address: String,
|
|
97
|
+
request_options: Increase::RequestOptions::OrHash
|
|
98
|
+
).returns(T.attached_class)
|
|
99
|
+
end
|
|
100
|
+
def self.new(
|
|
101
|
+
# The identifier of the Account from which to send the validation.
|
|
102
|
+
account_id:,
|
|
103
|
+
# The Increase identifier for the Card Token that represents the card number
|
|
104
|
+
# you're validating.
|
|
105
|
+
card_token_id:,
|
|
106
|
+
# A four-digit code (MCC) identifying the type of business or service provided by
|
|
107
|
+
# the merchant.
|
|
108
|
+
merchant_category_code:,
|
|
109
|
+
# The city where the merchant (typically your business) is located.
|
|
110
|
+
merchant_city_name:,
|
|
111
|
+
# The merchant name that will appear in the cardholder’s statement descriptor.
|
|
112
|
+
# Typically your business name.
|
|
113
|
+
merchant_name:,
|
|
114
|
+
# The postal code for the merchant’s (typically your business’s) location.
|
|
115
|
+
merchant_postal_code:,
|
|
116
|
+
# The U.S. state where the merchant (typically your business) is located.
|
|
117
|
+
merchant_state:,
|
|
118
|
+
# The cardholder's first name.
|
|
119
|
+
cardholder_first_name: nil,
|
|
120
|
+
# The cardholder's last name.
|
|
121
|
+
cardholder_last_name: nil,
|
|
122
|
+
# The cardholder's middle name.
|
|
123
|
+
cardholder_middle_name: nil,
|
|
124
|
+
# The postal code of the cardholder's address.
|
|
125
|
+
cardholder_postal_code: nil,
|
|
126
|
+
# The cardholder's street address.
|
|
127
|
+
cardholder_street_address: nil,
|
|
128
|
+
request_options: {}
|
|
129
|
+
)
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
sig do
|
|
133
|
+
override.returns(
|
|
134
|
+
{
|
|
135
|
+
account_id: String,
|
|
136
|
+
card_token_id: String,
|
|
137
|
+
merchant_category_code: String,
|
|
138
|
+
merchant_city_name: String,
|
|
139
|
+
merchant_name: String,
|
|
140
|
+
merchant_postal_code: String,
|
|
141
|
+
merchant_state: String,
|
|
142
|
+
cardholder_first_name: String,
|
|
143
|
+
cardholder_last_name: String,
|
|
144
|
+
cardholder_middle_name: String,
|
|
145
|
+
cardholder_postal_code: String,
|
|
146
|
+
cardholder_street_address: String,
|
|
147
|
+
request_options: Increase::RequestOptions
|
|
148
|
+
}
|
|
149
|
+
)
|
|
150
|
+
end
|
|
151
|
+
def to_hash
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class CardValidationListParams < 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::CardValidationListParams, Increase::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Filter Card Validations to ones belonging to the specified Account.
|
|
15
|
+
sig { returns(T.nilable(String)) }
|
|
16
|
+
attr_reader :account_id
|
|
17
|
+
|
|
18
|
+
sig { params(account_id: String).void }
|
|
19
|
+
attr_writer :account_id
|
|
20
|
+
|
|
21
|
+
sig { returns(T.nilable(Increase::CardValidationListParams::CreatedAt)) }
|
|
22
|
+
attr_reader :created_at
|
|
23
|
+
|
|
24
|
+
sig do
|
|
25
|
+
params(
|
|
26
|
+
created_at: Increase::CardValidationListParams::CreatedAt::OrHash
|
|
27
|
+
).void
|
|
28
|
+
end
|
|
29
|
+
attr_writer :created_at
|
|
30
|
+
|
|
31
|
+
# Return the page of entries after this one.
|
|
32
|
+
sig { returns(T.nilable(String)) }
|
|
33
|
+
attr_reader :cursor
|
|
34
|
+
|
|
35
|
+
sig { params(cursor: String).void }
|
|
36
|
+
attr_writer :cursor
|
|
37
|
+
|
|
38
|
+
# Filter records to the one with the specified `idempotency_key` you chose for
|
|
39
|
+
# that object. This value is unique across Increase and is used to ensure that a
|
|
40
|
+
# request is only processed once. Learn more about
|
|
41
|
+
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
42
|
+
sig { returns(T.nilable(String)) }
|
|
43
|
+
attr_reader :idempotency_key
|
|
44
|
+
|
|
45
|
+
sig { params(idempotency_key: String).void }
|
|
46
|
+
attr_writer :idempotency_key
|
|
47
|
+
|
|
48
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
49
|
+
# objects.
|
|
50
|
+
sig { returns(T.nilable(Integer)) }
|
|
51
|
+
attr_reader :limit
|
|
52
|
+
|
|
53
|
+
sig { params(limit: Integer).void }
|
|
54
|
+
attr_writer :limit
|
|
55
|
+
|
|
56
|
+
sig { returns(T.nilable(Increase::CardValidationListParams::Status)) }
|
|
57
|
+
attr_reader :status
|
|
58
|
+
|
|
59
|
+
sig do
|
|
60
|
+
params(status: Increase::CardValidationListParams::Status::OrHash).void
|
|
61
|
+
end
|
|
62
|
+
attr_writer :status
|
|
63
|
+
|
|
64
|
+
sig do
|
|
65
|
+
params(
|
|
66
|
+
account_id: String,
|
|
67
|
+
created_at: Increase::CardValidationListParams::CreatedAt::OrHash,
|
|
68
|
+
cursor: String,
|
|
69
|
+
idempotency_key: String,
|
|
70
|
+
limit: Integer,
|
|
71
|
+
status: Increase::CardValidationListParams::Status::OrHash,
|
|
72
|
+
request_options: Increase::RequestOptions::OrHash
|
|
73
|
+
).returns(T.attached_class)
|
|
74
|
+
end
|
|
75
|
+
def self.new(
|
|
76
|
+
# Filter Card Validations to ones belonging to the specified Account.
|
|
77
|
+
account_id: nil,
|
|
78
|
+
created_at: nil,
|
|
79
|
+
# Return the page of entries after this one.
|
|
80
|
+
cursor: nil,
|
|
81
|
+
# Filter records to the one with the specified `idempotency_key` you chose for
|
|
82
|
+
# that object. This value is unique across Increase and is used to ensure that a
|
|
83
|
+
# request is only processed once. Learn more about
|
|
84
|
+
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
85
|
+
idempotency_key: nil,
|
|
86
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
87
|
+
# objects.
|
|
88
|
+
limit: nil,
|
|
89
|
+
status: nil,
|
|
90
|
+
request_options: {}
|
|
91
|
+
)
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
sig do
|
|
95
|
+
override.returns(
|
|
96
|
+
{
|
|
97
|
+
account_id: String,
|
|
98
|
+
created_at: Increase::CardValidationListParams::CreatedAt,
|
|
99
|
+
cursor: String,
|
|
100
|
+
idempotency_key: String,
|
|
101
|
+
limit: Integer,
|
|
102
|
+
status: Increase::CardValidationListParams::Status,
|
|
103
|
+
request_options: Increase::RequestOptions
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
end
|
|
107
|
+
def to_hash
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
class CreatedAt < Increase::Internal::Type::BaseModel
|
|
111
|
+
OrHash =
|
|
112
|
+
T.type_alias do
|
|
113
|
+
T.any(
|
|
114
|
+
Increase::CardValidationListParams::CreatedAt,
|
|
115
|
+
Increase::Internal::AnyHash
|
|
116
|
+
)
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
120
|
+
# timestamp.
|
|
121
|
+
sig { returns(T.nilable(Time)) }
|
|
122
|
+
attr_reader :after
|
|
123
|
+
|
|
124
|
+
sig { params(after: Time).void }
|
|
125
|
+
attr_writer :after
|
|
126
|
+
|
|
127
|
+
# Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
128
|
+
# timestamp.
|
|
129
|
+
sig { returns(T.nilable(Time)) }
|
|
130
|
+
attr_reader :before
|
|
131
|
+
|
|
132
|
+
sig { params(before: Time).void }
|
|
133
|
+
attr_writer :before
|
|
134
|
+
|
|
135
|
+
# Return results on or after this
|
|
136
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
137
|
+
sig { returns(T.nilable(Time)) }
|
|
138
|
+
attr_reader :on_or_after
|
|
139
|
+
|
|
140
|
+
sig { params(on_or_after: Time).void }
|
|
141
|
+
attr_writer :on_or_after
|
|
142
|
+
|
|
143
|
+
# Return results on or before this
|
|
144
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
145
|
+
sig { returns(T.nilable(Time)) }
|
|
146
|
+
attr_reader :on_or_before
|
|
147
|
+
|
|
148
|
+
sig { params(on_or_before: Time).void }
|
|
149
|
+
attr_writer :on_or_before
|
|
150
|
+
|
|
151
|
+
sig do
|
|
152
|
+
params(
|
|
153
|
+
after: Time,
|
|
154
|
+
before: Time,
|
|
155
|
+
on_or_after: Time,
|
|
156
|
+
on_or_before: Time
|
|
157
|
+
).returns(T.attached_class)
|
|
158
|
+
end
|
|
159
|
+
def self.new(
|
|
160
|
+
# Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
161
|
+
# timestamp.
|
|
162
|
+
after: nil,
|
|
163
|
+
# Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
164
|
+
# timestamp.
|
|
165
|
+
before: nil,
|
|
166
|
+
# Return results on or after this
|
|
167
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
168
|
+
on_or_after: nil,
|
|
169
|
+
# Return results on or before this
|
|
170
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
171
|
+
on_or_before: nil
|
|
172
|
+
)
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
sig do
|
|
176
|
+
override.returns(
|
|
177
|
+
{ after: Time, before: Time, on_or_after: Time, on_or_before: Time }
|
|
178
|
+
)
|
|
179
|
+
end
|
|
180
|
+
def to_hash
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
class Status < Increase::Internal::Type::BaseModel
|
|
185
|
+
OrHash =
|
|
186
|
+
T.type_alias do
|
|
187
|
+
T.any(
|
|
188
|
+
Increase::CardValidationListParams::Status,
|
|
189
|
+
Increase::Internal::AnyHash
|
|
190
|
+
)
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Filter Card Validations by status. For GET requests, this should be encoded as a
|
|
194
|
+
# comma-delimited string, such as `?in=one,two,three`.
|
|
195
|
+
sig do
|
|
196
|
+
returns(
|
|
197
|
+
T.nilable(
|
|
198
|
+
T::Array[Increase::CardValidationListParams::Status::In::OrSymbol]
|
|
199
|
+
)
|
|
200
|
+
)
|
|
201
|
+
end
|
|
202
|
+
attr_reader :in_
|
|
203
|
+
|
|
204
|
+
sig do
|
|
205
|
+
params(
|
|
206
|
+
in_:
|
|
207
|
+
T::Array[Increase::CardValidationListParams::Status::In::OrSymbol]
|
|
208
|
+
).void
|
|
209
|
+
end
|
|
210
|
+
attr_writer :in_
|
|
211
|
+
|
|
212
|
+
sig do
|
|
213
|
+
params(
|
|
214
|
+
in_:
|
|
215
|
+
T::Array[Increase::CardValidationListParams::Status::In::OrSymbol]
|
|
216
|
+
).returns(T.attached_class)
|
|
217
|
+
end
|
|
218
|
+
def self.new(
|
|
219
|
+
# Filter Card Validations by status. For GET requests, this should be encoded as a
|
|
220
|
+
# comma-delimited string, such as `?in=one,two,three`.
|
|
221
|
+
in_: nil
|
|
222
|
+
)
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
sig do
|
|
226
|
+
override.returns(
|
|
227
|
+
{
|
|
228
|
+
in_:
|
|
229
|
+
T::Array[
|
|
230
|
+
Increase::CardValidationListParams::Status::In::OrSymbol
|
|
231
|
+
]
|
|
232
|
+
}
|
|
233
|
+
)
|
|
234
|
+
end
|
|
235
|
+
def to_hash
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
module In
|
|
239
|
+
extend Increase::Internal::Type::Enum
|
|
240
|
+
|
|
241
|
+
TaggedSymbol =
|
|
242
|
+
T.type_alias do
|
|
243
|
+
T.all(Symbol, Increase::CardValidationListParams::Status::In)
|
|
244
|
+
end
|
|
245
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
246
|
+
|
|
247
|
+
# The validation requires attention from an Increase operator.
|
|
248
|
+
REQUIRES_ATTENTION =
|
|
249
|
+
T.let(
|
|
250
|
+
:requires_attention,
|
|
251
|
+
Increase::CardValidationListParams::Status::In::TaggedSymbol
|
|
252
|
+
)
|
|
253
|
+
|
|
254
|
+
# The validation is queued to be submitted to the card network.
|
|
255
|
+
PENDING_SUBMISSION =
|
|
256
|
+
T.let(
|
|
257
|
+
:pending_submission,
|
|
258
|
+
Increase::CardValidationListParams::Status::In::TaggedSymbol
|
|
259
|
+
)
|
|
260
|
+
|
|
261
|
+
# The validation has been submitted and is pending a response from the card network.
|
|
262
|
+
SUBMITTED =
|
|
263
|
+
T.let(
|
|
264
|
+
:submitted,
|
|
265
|
+
Increase::CardValidationListParams::Status::In::TaggedSymbol
|
|
266
|
+
)
|
|
267
|
+
|
|
268
|
+
# The validation has been sent successfully and is complete.
|
|
269
|
+
COMPLETE =
|
|
270
|
+
T.let(
|
|
271
|
+
:complete,
|
|
272
|
+
Increase::CardValidationListParams::Status::In::TaggedSymbol
|
|
273
|
+
)
|
|
274
|
+
|
|
275
|
+
# The validation was declined by the network or the recipient's bank.
|
|
276
|
+
DECLINED =
|
|
277
|
+
T.let(
|
|
278
|
+
:declined,
|
|
279
|
+
Increase::CardValidationListParams::Status::In::TaggedSymbol
|
|
280
|
+
)
|
|
281
|
+
|
|
282
|
+
sig do
|
|
283
|
+
override.returns(
|
|
284
|
+
T::Array[
|
|
285
|
+
Increase::CardValidationListParams::Status::In::TaggedSymbol
|
|
286
|
+
]
|
|
287
|
+
)
|
|
288
|
+
end
|
|
289
|
+
def self.values
|
|
290
|
+
end
|
|
291
|
+
end
|
|
292
|
+
end
|
|
293
|
+
end
|
|
294
|
+
end
|
|
295
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class CardValidationRetrieveParams < 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::CardValidationRetrieveParams,
|
|
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
|
|
@@ -256,6 +256,10 @@ module Increase
|
|
|
256
256
|
)
|
|
257
257
|
end
|
|
258
258
|
|
|
259
|
+
# The city, district, town, or village of the address.
|
|
260
|
+
sig { returns(String) }
|
|
261
|
+
attr_accessor :city
|
|
262
|
+
|
|
259
263
|
# The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
260
264
|
sig { returns(String) }
|
|
261
265
|
attr_accessor :country
|
|
@@ -264,14 +268,6 @@ module Increase
|
|
|
264
268
|
sig { returns(String) }
|
|
265
269
|
attr_accessor :line1
|
|
266
270
|
|
|
267
|
-
# The city, district, town, or village of the address. Required in certain
|
|
268
|
-
# countries.
|
|
269
|
-
sig { returns(T.nilable(String)) }
|
|
270
|
-
attr_reader :city
|
|
271
|
-
|
|
272
|
-
sig { params(city: String).void }
|
|
273
|
-
attr_writer :city
|
|
274
|
-
|
|
275
271
|
# The second line of the address. This might be the floor or room number.
|
|
276
272
|
sig { returns(T.nilable(String)) }
|
|
277
273
|
attr_reader :line2
|
|
@@ -298,22 +294,21 @@ module Increase
|
|
|
298
294
|
# PMB's are disallowed.
|
|
299
295
|
sig do
|
|
300
296
|
params(
|
|
297
|
+
city: String,
|
|
301
298
|
country: String,
|
|
302
299
|
line1: String,
|
|
303
|
-
city: String,
|
|
304
300
|
line2: String,
|
|
305
301
|
state: String,
|
|
306
302
|
zip: String
|
|
307
303
|
).returns(T.attached_class)
|
|
308
304
|
end
|
|
309
305
|
def self.new(
|
|
306
|
+
# The city, district, town, or village of the address.
|
|
307
|
+
city:,
|
|
310
308
|
# The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
311
309
|
country:,
|
|
312
310
|
# The first line of the address. This is usually the street number and street.
|
|
313
311
|
line1:,
|
|
314
|
-
# The city, district, town, or village of the address. Required in certain
|
|
315
|
-
# countries.
|
|
316
|
-
city: nil,
|
|
317
312
|
# The second line of the address. This might be the floor or room number.
|
|
318
313
|
line2: nil,
|
|
319
314
|
# The two-letter United States Postal Service (USPS) abbreviation for the US
|
|
@@ -327,9 +322,9 @@ module Increase
|
|
|
327
322
|
sig do
|
|
328
323
|
override.returns(
|
|
329
324
|
{
|
|
325
|
+
city: String,
|
|
330
326
|
country: String,
|
|
331
327
|
line1: String,
|
|
332
|
-
city: String,
|
|
333
328
|
line2: String,
|
|
334
329
|
state: String,
|
|
335
330
|
zip: String
|
|
@@ -656,6 +656,10 @@ module Increase
|
|
|
656
656
|
)
|
|
657
657
|
end
|
|
658
658
|
|
|
659
|
+
# The city, district, town, or village of the address.
|
|
660
|
+
sig { returns(String) }
|
|
661
|
+
attr_accessor :city
|
|
662
|
+
|
|
659
663
|
# The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
660
664
|
sig { returns(String) }
|
|
661
665
|
attr_accessor :country
|
|
@@ -664,14 +668,6 @@ module Increase
|
|
|
664
668
|
sig { returns(String) }
|
|
665
669
|
attr_accessor :line1
|
|
666
670
|
|
|
667
|
-
# The city, district, town, or village of the address. Required in certain
|
|
668
|
-
# countries.
|
|
669
|
-
sig { returns(T.nilable(String)) }
|
|
670
|
-
attr_reader :city
|
|
671
|
-
|
|
672
|
-
sig { params(city: String).void }
|
|
673
|
-
attr_writer :city
|
|
674
|
-
|
|
675
671
|
# The second line of the address. This might be the floor or room number.
|
|
676
672
|
sig { returns(T.nilable(String)) }
|
|
677
673
|
attr_reader :line2
|
|
@@ -698,22 +694,21 @@ module Increase
|
|
|
698
694
|
# PMB's are disallowed.
|
|
699
695
|
sig do
|
|
700
696
|
params(
|
|
697
|
+
city: String,
|
|
701
698
|
country: String,
|
|
702
699
|
line1: String,
|
|
703
|
-
city: String,
|
|
704
700
|
line2: String,
|
|
705
701
|
state: String,
|
|
706
702
|
zip: String
|
|
707
703
|
).returns(T.attached_class)
|
|
708
704
|
end
|
|
709
705
|
def self.new(
|
|
706
|
+
# The city, district, town, or village of the address.
|
|
707
|
+
city:,
|
|
710
708
|
# The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
711
709
|
country:,
|
|
712
710
|
# The first line of the address. This is usually the street number and street.
|
|
713
711
|
line1:,
|
|
714
|
-
# The city, district, town, or village of the address. Required in certain
|
|
715
|
-
# countries.
|
|
716
|
-
city: nil,
|
|
717
712
|
# The second line of the address. This might be the floor or room number.
|
|
718
713
|
line2: nil,
|
|
719
714
|
# The two-letter United States Postal Service (USPS) abbreviation for the US
|
|
@@ -727,9 +722,9 @@ module Increase
|
|
|
727
722
|
sig do
|
|
728
723
|
override.returns(
|
|
729
724
|
{
|
|
725
|
+
city: String,
|
|
730
726
|
country: String,
|
|
731
727
|
line1: String,
|
|
732
|
-
city: String,
|
|
733
728
|
line2: String,
|
|
734
729
|
state: String,
|
|
735
730
|
zip: String
|
|
@@ -75,6 +75,10 @@ module Increase
|
|
|
75
75
|
)
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
+
# The city, district, town, or village of the address.
|
|
79
|
+
sig { returns(String) }
|
|
80
|
+
attr_accessor :city
|
|
81
|
+
|
|
78
82
|
# The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
79
83
|
sig { returns(String) }
|
|
80
84
|
attr_accessor :country
|
|
@@ -83,14 +87,6 @@ module Increase
|
|
|
83
87
|
sig { returns(String) }
|
|
84
88
|
attr_accessor :line1
|
|
85
89
|
|
|
86
|
-
# The city, district, town, or village of the address. Required in certain
|
|
87
|
-
# countries.
|
|
88
|
-
sig { returns(T.nilable(String)) }
|
|
89
|
-
attr_reader :city
|
|
90
|
-
|
|
91
|
-
sig { params(city: String).void }
|
|
92
|
-
attr_writer :city
|
|
93
|
-
|
|
94
90
|
# The second line of the address. This might be the floor or room number.
|
|
95
91
|
sig { returns(T.nilable(String)) }
|
|
96
92
|
attr_reader :line2
|
|
@@ -117,22 +113,21 @@ module Increase
|
|
|
117
113
|
# PMB's are disallowed.
|
|
118
114
|
sig do
|
|
119
115
|
params(
|
|
116
|
+
city: String,
|
|
120
117
|
country: String,
|
|
121
118
|
line1: String,
|
|
122
|
-
city: String,
|
|
123
119
|
line2: String,
|
|
124
120
|
state: String,
|
|
125
121
|
zip: String
|
|
126
122
|
).returns(T.attached_class)
|
|
127
123
|
end
|
|
128
124
|
def self.new(
|
|
125
|
+
# The city, district, town, or village of the address.
|
|
126
|
+
city:,
|
|
129
127
|
# The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
130
128
|
country:,
|
|
131
129
|
# The first line of the address. This is usually the street number and street.
|
|
132
130
|
line1:,
|
|
133
|
-
# The city, district, town, or village of the address. Required in certain
|
|
134
|
-
# countries.
|
|
135
|
-
city: nil,
|
|
136
131
|
# The second line of the address. This might be the floor or room number.
|
|
137
132
|
line2: nil,
|
|
138
133
|
# The two-letter United States Postal Service (USPS) abbreviation for the US
|
|
@@ -146,9 +141,9 @@ module Increase
|
|
|
146
141
|
sig do
|
|
147
142
|
override.returns(
|
|
148
143
|
{
|
|
144
|
+
city: String,
|
|
149
145
|
country: String,
|
|
150
146
|
line1: String,
|
|
151
|
-
city: String,
|
|
152
147
|
line2: String,
|
|
153
148
|
state: String,
|
|
154
149
|
zip: String
|