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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c94dd0aee897c71355370fb1e71c9ea9469adc56941e506cfe1b57304d95e116
4
- data.tar.gz: ff7fbc95ffb9e588d143572427bed478380c40743562b22584e2dd9eace49c13
3
+ metadata.gz: 5c2da139b57b89909b918ccf04ad516b1b8c56f6d6b3d2b966290adabfed1f9a
4
+ data.tar.gz: 6200937843d98bfa9aa0257041c71de8c3c5f8b8e8fccc79e39b800ca24fb2cf
5
5
  SHA512:
6
- metadata.gz: 25460f67d9f35e2914f29f797dc77c776df0fa2a93a9b67614cdaec467daa066812b1aa29edcc51e1ea433092a39fa25c00788dd56505ffc9f31127aebae5c13
7
- data.tar.gz: f31f92319e5c512d0121350fa9e0073c8f12aad3e5238ca97b4893851756aab0fe2d0172486c13b45446d8abed7b35b933b33f1cc287eae0f108eba154edba83
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
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.1059'
14
+ VERSION = '0.0.1060'
15
15
  end