late-sdk 0.0.1059 → 0.0.1060
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/docs/InlineObject4Details.md +2 -0
- data/lib/zernio-sdk/models/inline_object4.rb +2 -2
- data/lib/zernio-sdk/models/inline_object4_details.rb +11 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +1 -1
- data/spec/models/inline_object4_details_spec.rb +6 -0
- data/spec/models/inline_object4_spec.rb +1 -1
- data/zernio-sdk-0.0.1060.gem +0 -0
- metadata +2152 -2152
- data/zernio-sdk-0.0.1059.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c2da139b57b89909b918ccf04ad516b1b8c56f6d6b3d2b966290adabfed1f9a
|
|
4
|
+
data.tar.gz: 6200937843d98bfa9aa0257041c71de8c3c5f8b8e8fccc79e39b800ca24fb2cf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 486fa172b5431a6cada7f937c8d2493da29fdcbb611a0f42c0d84583a98687e1b1626a963670a8ca352f6fe3cd98ad7dc3ebae2da4f1628b3d300f140e6ab118
|
|
7
|
+
data.tar.gz: 598fa80a46781f0cac65dc5c1df80ac931f17183491136d9180d7f858eb88c16ed0c6adc7cbd9457cc52cbad85ad3ed3b942d55249288bfb6acf8b84ca2c09a9
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
| **free_tier_account_limit** | **Integer** | How many accounts the free tier allows. Only set when reason=free_tier_exceeded. | [optional] |
|
|
8
8
|
| **current_account_count** | **Integer** | How many accounts the team currently has connected. Set when reason=free_tier_exceeded or reason=enterprise_required. | [optional] |
|
|
9
9
|
| **has_payment_method** | **Boolean** | Whether the team currently has a card on file in Stripe. Set when reason=free_tier_exceeded or reason=twitter_passthrough. | [optional] |
|
|
10
|
+
| **verification_amount_cents** | **Integer** | One-time card verification charge in USD cents, credited to usage. Only set when reason=card_verification_required. | [optional] |
|
|
10
11
|
| **effective_account_limit** | **Integer** | The negotiated connected-account cap from the team's enterprise contract. Self-service teams have no cap and never receive this reason. Only set when reason=enterprise_required. | [optional] |
|
|
11
12
|
|
|
12
13
|
## Example
|
|
@@ -18,6 +19,7 @@ instance = Zernio::InlineObject4Details.new(
|
|
|
18
19
|
free_tier_account_limit: 2,
|
|
19
20
|
current_account_count: 5,
|
|
20
21
|
has_payment_method: null,
|
|
22
|
+
verification_amount_cents: 1000,
|
|
21
23
|
effective_account_limit: 2000
|
|
22
24
|
)
|
|
23
25
|
```
|
|
@@ -170,7 +170,7 @@ module Zernio
|
|
|
170
170
|
code_validator = EnumAttributeValidator.new('String', ["PAYMENT_REQUIRED"])
|
|
171
171
|
return false unless code_validator.valid?(@code)
|
|
172
172
|
return false if @reason.nil?
|
|
173
|
-
reason_validator = EnumAttributeValidator.new('String', ["free_tier_exceeded", "twitter_passthrough", "enterprise_required"])
|
|
173
|
+
reason_validator = EnumAttributeValidator.new('String', ["free_tier_exceeded", "twitter_passthrough", "enterprise_required", "card_verification_required"])
|
|
174
174
|
return false unless reason_validator.valid?(@reason)
|
|
175
175
|
true
|
|
176
176
|
end
|
|
@@ -198,7 +198,7 @@ module Zernio
|
|
|
198
198
|
# Custom attribute writer method checking allowed values (enum).
|
|
199
199
|
# @param [Object] reason Object to be assigned
|
|
200
200
|
def reason=(reason)
|
|
201
|
-
validator = EnumAttributeValidator.new('String', ["free_tier_exceeded", "twitter_passthrough", "enterprise_required"])
|
|
201
|
+
validator = EnumAttributeValidator.new('String', ["free_tier_exceeded", "twitter_passthrough", "enterprise_required", "card_verification_required"])
|
|
202
202
|
unless validator.valid?(reason)
|
|
203
203
|
fail ArgumentError, "invalid value for \"reason\", must be one of #{validator.allowable_values}."
|
|
204
204
|
end
|
|
@@ -25,6 +25,9 @@ module Zernio
|
|
|
25
25
|
# Whether the team currently has a card on file in Stripe. Set when reason=free_tier_exceeded or reason=twitter_passthrough.
|
|
26
26
|
attr_accessor :has_payment_method
|
|
27
27
|
|
|
28
|
+
# One-time card verification charge in USD cents, credited to usage. Only set when reason=card_verification_required.
|
|
29
|
+
attr_accessor :verification_amount_cents
|
|
30
|
+
|
|
28
31
|
# The negotiated connected-account cap from the team's enterprise contract. Self-service teams have no cap and never receive this reason. Only set when reason=enterprise_required.
|
|
29
32
|
attr_accessor :effective_account_limit
|
|
30
33
|
|
|
@@ -34,6 +37,7 @@ module Zernio
|
|
|
34
37
|
:'free_tier_account_limit' => :'free_tier_account_limit',
|
|
35
38
|
:'current_account_count' => :'current_account_count',
|
|
36
39
|
:'has_payment_method' => :'has_payment_method',
|
|
40
|
+
:'verification_amount_cents' => :'verification_amount_cents',
|
|
37
41
|
:'effective_account_limit' => :'effective_account_limit'
|
|
38
42
|
}
|
|
39
43
|
end
|
|
@@ -54,6 +58,7 @@ module Zernio
|
|
|
54
58
|
:'free_tier_account_limit' => :'Integer',
|
|
55
59
|
:'current_account_count' => :'Integer',
|
|
56
60
|
:'has_payment_method' => :'Boolean',
|
|
61
|
+
:'verification_amount_cents' => :'Integer',
|
|
57
62
|
:'effective_account_limit' => :'Integer'
|
|
58
63
|
}
|
|
59
64
|
end
|
|
@@ -92,6 +97,10 @@ module Zernio
|
|
|
92
97
|
self.has_payment_method = attributes[:'has_payment_method']
|
|
93
98
|
end
|
|
94
99
|
|
|
100
|
+
if attributes.key?(:'verification_amount_cents')
|
|
101
|
+
self.verification_amount_cents = attributes[:'verification_amount_cents']
|
|
102
|
+
end
|
|
103
|
+
|
|
95
104
|
if attributes.key?(:'effective_account_limit')
|
|
96
105
|
self.effective_account_limit = attributes[:'effective_account_limit']
|
|
97
106
|
end
|
|
@@ -120,6 +129,7 @@ module Zernio
|
|
|
120
129
|
free_tier_account_limit == o.free_tier_account_limit &&
|
|
121
130
|
current_account_count == o.current_account_count &&
|
|
122
131
|
has_payment_method == o.has_payment_method &&
|
|
132
|
+
verification_amount_cents == o.verification_amount_cents &&
|
|
123
133
|
effective_account_limit == o.effective_account_limit
|
|
124
134
|
end
|
|
125
135
|
|
|
@@ -132,7 +142,7 @@ module Zernio
|
|
|
132
142
|
# Calculates hash code according to all attributes.
|
|
133
143
|
# @return [Integer] Hash code
|
|
134
144
|
def hash
|
|
135
|
-
[free_tier_account_limit, current_account_count, has_payment_method, effective_account_limit].hash
|
|
145
|
+
[free_tier_account_limit, current_account_count, has_payment_method, verification_amount_cents, effective_account_limit].hash
|
|
136
146
|
end
|
|
137
147
|
|
|
138
148
|
# Builds the object from hash
|
data/lib/zernio-sdk/version.rb
CHANGED