late-sdk 0.0.51 → 0.0.52
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/UsageStats.md +2 -0
- data/lib/late-sdk/models/usage_stats.rb +11 -1
- data/lib/late-sdk/version.rb +1 -1
- data/openapi.yaml +2 -0
- data/spec/models/usage_stats_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 75bfdcd6365ccd7394759d398ceb76e3178a4cbe298b44a69b779371e27974a2
|
|
4
|
+
data.tar.gz: c4dab49c113c28124e4482b3583efd92a74b5ba64c67f75cd804321649556e1d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7123828bbd12c79c764244401e3be27b1adf84204854dc96567793dd36a9e05f4335bab6e3d3dc501001f1f7af5feb292fca94c8773758962b6b5141d87e5c70
|
|
7
|
+
data.tar.gz: 2f174ca67e3017d2dab5ddd57f45ef91f7965443059ac64088a6dcb8fbe687a56ded24c0998283cb88e1814453d5d108a46d7c3fbb1c57820bdd298b91405ba9
|
data/docs/UsageStats.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
| **plan_name** | **String** | | [optional] |
|
|
8
8
|
| **billing_period** | **String** | | [optional] |
|
|
9
9
|
| **signup_date** | **Time** | | [optional] |
|
|
10
|
+
| **billing_anchor_day** | **Integer** | Day of month (1-31) when the billing cycle resets | [optional] |
|
|
10
11
|
| **limits** | [**UsageStatsLimits**](UsageStatsLimits.md) | | [optional] |
|
|
11
12
|
| **usage** | [**UsageStatsUsage**](UsageStatsUsage.md) | | [optional] |
|
|
12
13
|
|
|
@@ -19,6 +20,7 @@ instance = Late::UsageStats.new(
|
|
|
19
20
|
plan_name: null,
|
|
20
21
|
billing_period: null,
|
|
21
22
|
signup_date: null,
|
|
23
|
+
billing_anchor_day: null,
|
|
22
24
|
limits: null,
|
|
23
25
|
usage: null
|
|
24
26
|
)
|
|
@@ -21,6 +21,9 @@ module Late
|
|
|
21
21
|
|
|
22
22
|
attr_accessor :signup_date
|
|
23
23
|
|
|
24
|
+
# Day of month (1-31) when the billing cycle resets
|
|
25
|
+
attr_accessor :billing_anchor_day
|
|
26
|
+
|
|
24
27
|
attr_accessor :limits
|
|
25
28
|
|
|
26
29
|
attr_accessor :usage
|
|
@@ -53,6 +56,7 @@ module Late
|
|
|
53
56
|
:'plan_name' => :'planName',
|
|
54
57
|
:'billing_period' => :'billingPeriod',
|
|
55
58
|
:'signup_date' => :'signupDate',
|
|
59
|
+
:'billing_anchor_day' => :'billingAnchorDay',
|
|
56
60
|
:'limits' => :'limits',
|
|
57
61
|
:'usage' => :'usage'
|
|
58
62
|
}
|
|
@@ -74,6 +78,7 @@ module Late
|
|
|
74
78
|
:'plan_name' => :'String',
|
|
75
79
|
:'billing_period' => :'String',
|
|
76
80
|
:'signup_date' => :'Time',
|
|
81
|
+
:'billing_anchor_day' => :'Integer',
|
|
77
82
|
:'limits' => :'UsageStatsLimits',
|
|
78
83
|
:'usage' => :'UsageStatsUsage'
|
|
79
84
|
}
|
|
@@ -113,6 +118,10 @@ module Late
|
|
|
113
118
|
self.signup_date = attributes[:'signup_date']
|
|
114
119
|
end
|
|
115
120
|
|
|
121
|
+
if attributes.key?(:'billing_anchor_day')
|
|
122
|
+
self.billing_anchor_day = attributes[:'billing_anchor_day']
|
|
123
|
+
end
|
|
124
|
+
|
|
116
125
|
if attributes.key?(:'limits')
|
|
117
126
|
self.limits = attributes[:'limits']
|
|
118
127
|
end
|
|
@@ -157,6 +166,7 @@ module Late
|
|
|
157
166
|
plan_name == o.plan_name &&
|
|
158
167
|
billing_period == o.billing_period &&
|
|
159
168
|
signup_date == o.signup_date &&
|
|
169
|
+
billing_anchor_day == o.billing_anchor_day &&
|
|
160
170
|
limits == o.limits &&
|
|
161
171
|
usage == o.usage
|
|
162
172
|
end
|
|
@@ -170,7 +180,7 @@ module Late
|
|
|
170
180
|
# Calculates hash code according to all attributes.
|
|
171
181
|
# @return [Integer] Hash code
|
|
172
182
|
def hash
|
|
173
|
-
[plan_name, billing_period, signup_date, limits, usage].hash
|
|
183
|
+
[plan_name, billing_period, signup_date, billing_anchor_day, limits, usage].hash
|
|
174
184
|
end
|
|
175
185
|
|
|
176
186
|
# Builds the object from hash
|
data/lib/late-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -1717,6 +1717,7 @@ components:
|
|
|
1717
1717
|
planName: { type: string }
|
|
1718
1718
|
billingPeriod: { type: string, enum: [monthly, yearly] }
|
|
1719
1719
|
signupDate: { type: string, format: date-time }
|
|
1720
|
+
billingAnchorDay: { type: integer, description: "Day of month (1-31) when the billing cycle resets" }
|
|
1720
1721
|
limits:
|
|
1721
1722
|
type: object
|
|
1722
1723
|
properties:
|
|
@@ -4028,6 +4029,7 @@ paths:
|
|
|
4028
4029
|
planName: "Pro"
|
|
4029
4030
|
billingPeriod: "monthly"
|
|
4030
4031
|
signupDate: "2024-01-15T10:30:00Z"
|
|
4032
|
+
billingAnchorDay: 15
|
|
4031
4033
|
limits:
|
|
4032
4034
|
uploads: 500
|
|
4033
4035
|
profiles: 10
|
|
@@ -49,6 +49,12 @@ describe Late::UsageStats do
|
|
|
49
49
|
end
|
|
50
50
|
end
|
|
51
51
|
|
|
52
|
+
describe 'test attribute "billing_anchor_day"' do
|
|
53
|
+
it 'should work' do
|
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
52
58
|
describe 'test attribute "limits"' do
|
|
53
59
|
it 'should work' do
|
|
54
60
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|