smplkit 1.0.22 → 1.0.23

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.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/billing_api.rb +0 -125
  3. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/account.rb +49 -5
  4. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/{catalog_bundle_resource.rb → next_tier_meta.rb} +60 -68
  5. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_attributes.rb +1 -11
  6. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_list_meta.rb +302 -0
  7. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_list_response.rb +13 -4
  8. data/lib/smplkit/_generated/app/lib/smplkit_app_client.rb +2 -9
  9. data/lib/smplkit/_generated/app/spec/api/billing_api_spec.rb +0 -23
  10. data/lib/smplkit/_generated/app/spec/models/account_spec.rb +24 -0
  11. data/lib/smplkit/_generated/app/spec/models/{bundle_attributes_spec.rb → next_tier_meta_spec.rb} +9 -15
  12. data/lib/smplkit/_generated/app/spec/models/subscription_attributes_spec.rb +0 -6
  13. data/lib/smplkit/_generated/app/spec/models/subscription_list_meta_spec.rb +70 -0
  14. data/lib/smplkit/_generated/app/spec/models/subscription_list_response_spec.rb +6 -0
  15. metadata +5 -19
  16. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/bundle_attributes.rb +0 -246
  17. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/bundle_list_response.rb +0 -166
  18. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/bundle_resource.rb +0 -224
  19. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/bundle_response.rb +0 -164
  20. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/catalog_bundle_attributes.rb +0 -244
  21. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/create_bundle_attributes.rb +0 -174
  22. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/create_bundle_body.rb +0 -164
  23. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/create_bundle_data.rb +0 -214
  24. data/lib/smplkit/_generated/app/spec/models/bundle_list_response_spec.rb +0 -36
  25. data/lib/smplkit/_generated/app/spec/models/bundle_resource_spec.rb +0 -52
  26. data/lib/smplkit/_generated/app/spec/models/bundle_response_spec.rb +0 -36
  27. data/lib/smplkit/_generated/app/spec/models/catalog_bundle_attributes_spec.rb +0 -54
  28. data/lib/smplkit/_generated/app/spec/models/catalog_bundle_resource_spec.rb +0 -52
  29. data/lib/smplkit/_generated/app/spec/models/create_bundle_attributes_spec.rb +0 -42
  30. data/lib/smplkit/_generated/app/spec/models/create_bundle_body_spec.rb +0 -36
  31. data/lib/smplkit/_generated/app/spec/models/create_bundle_data_spec.rb +0 -46
@@ -0,0 +1,302 @@
1
+ =begin
2
+ #smplkit API
3
+
4
+ #API for the smplkit platform.
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module SmplkitGeneratedClient::App
17
+ # Discount and totals summary attached to GET /api/v1/subscriptions.
18
+ class SubscriptionListMeta < ApiModelBase
19
+ attr_accessor :subtotal_cents
20
+
21
+ attr_accessor :discount_pct
22
+
23
+ attr_accessor :discount_amount_cents
24
+
25
+ attr_accessor :discount_source
26
+
27
+ attr_accessor :total_cents
28
+
29
+ attr_accessor :next_tier
30
+
31
+ class EnumAttributeValidator
32
+ attr_reader :datatype
33
+ attr_reader :allowable_values
34
+
35
+ def initialize(datatype, allowable_values)
36
+ @allowable_values = allowable_values.map do |value|
37
+ case datatype.to_s
38
+ when /Integer/i
39
+ value.to_i
40
+ when /Float/i
41
+ value.to_f
42
+ else
43
+ value
44
+ end
45
+ end
46
+ end
47
+
48
+ def valid?(value)
49
+ !value || allowable_values.include?(value)
50
+ end
51
+ end
52
+
53
+ # Attribute mapping from ruby-style variable name to JSON key.
54
+ def self.attribute_map
55
+ {
56
+ :'subtotal_cents' => :'subtotal_cents',
57
+ :'discount_pct' => :'discount_pct',
58
+ :'discount_amount_cents' => :'discount_amount_cents',
59
+ :'discount_source' => :'discount_source',
60
+ :'total_cents' => :'total_cents',
61
+ :'next_tier' => :'next_tier'
62
+ }
63
+ end
64
+
65
+ # Returns attribute mapping this model knows about
66
+ def self.acceptable_attribute_map
67
+ attribute_map
68
+ end
69
+
70
+ # Returns all the JSON keys this model knows about
71
+ def self.acceptable_attributes
72
+ acceptable_attribute_map.values
73
+ end
74
+
75
+ # Attribute type mapping.
76
+ def self.openapi_types
77
+ {
78
+ :'subtotal_cents' => :'Integer',
79
+ :'discount_pct' => :'Integer',
80
+ :'discount_amount_cents' => :'Integer',
81
+ :'discount_source' => :'String',
82
+ :'total_cents' => :'Integer',
83
+ :'next_tier' => :'NextTierMeta'
84
+ }
85
+ end
86
+
87
+ # List of attributes with nullable: true
88
+ def self.openapi_nullable
89
+ Set.new([
90
+ ])
91
+ end
92
+
93
+ # Initializes the object
94
+ # @param [Hash] attributes Model attributes in the form of hash
95
+ def initialize(attributes = {})
96
+ if (!attributes.is_a?(Hash))
97
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::App::SubscriptionListMeta` initialize method"
98
+ end
99
+
100
+ # check to see if the attribute exists and convert string to symbol for hash key
101
+ acceptable_attribute_map = self.class.acceptable_attribute_map
102
+ attributes = attributes.each_with_object({}) { |(k, v), h|
103
+ if (!acceptable_attribute_map.key?(k.to_sym))
104
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::App::SubscriptionListMeta`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
105
+ end
106
+ h[k.to_sym] = v
107
+ }
108
+
109
+ if attributes.key?(:'subtotal_cents')
110
+ self.subtotal_cents = attributes[:'subtotal_cents']
111
+ else
112
+ self.subtotal_cents = nil
113
+ end
114
+
115
+ if attributes.key?(:'discount_pct')
116
+ self.discount_pct = attributes[:'discount_pct']
117
+ else
118
+ self.discount_pct = nil
119
+ end
120
+
121
+ if attributes.key?(:'discount_amount_cents')
122
+ self.discount_amount_cents = attributes[:'discount_amount_cents']
123
+ else
124
+ self.discount_amount_cents = nil
125
+ end
126
+
127
+ if attributes.key?(:'discount_source')
128
+ self.discount_source = attributes[:'discount_source']
129
+ else
130
+ self.discount_source = nil
131
+ end
132
+
133
+ if attributes.key?(:'total_cents')
134
+ self.total_cents = attributes[:'total_cents']
135
+ else
136
+ self.total_cents = nil
137
+ end
138
+
139
+ if attributes.key?(:'next_tier')
140
+ self.next_tier = attributes[:'next_tier']
141
+ end
142
+ end
143
+
144
+ # Show invalid properties with the reasons. Usually used together with valid?
145
+ # @return Array for valid properties with the reasons
146
+ def list_invalid_properties
147
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
148
+ invalid_properties = Array.new
149
+ if @subtotal_cents.nil?
150
+ invalid_properties.push('invalid value for "subtotal_cents", subtotal_cents cannot be nil.')
151
+ end
152
+
153
+ if @discount_pct.nil?
154
+ invalid_properties.push('invalid value for "discount_pct", discount_pct cannot be nil.')
155
+ end
156
+
157
+ if @discount_amount_cents.nil?
158
+ invalid_properties.push('invalid value for "discount_amount_cents", discount_amount_cents cannot be nil.')
159
+ end
160
+
161
+ if @discount_source.nil?
162
+ invalid_properties.push('invalid value for "discount_source", discount_source cannot be nil.')
163
+ end
164
+
165
+ if @total_cents.nil?
166
+ invalid_properties.push('invalid value for "total_cents", total_cents cannot be nil.')
167
+ end
168
+
169
+ invalid_properties
170
+ end
171
+
172
+ # Check to see if the all the properties in the model are valid
173
+ # @return true if the model is valid
174
+ def valid?
175
+ warn '[DEPRECATED] the `valid?` method is obsolete'
176
+ return false if @subtotal_cents.nil?
177
+ return false if @discount_pct.nil?
178
+ return false if @discount_amount_cents.nil?
179
+ return false if @discount_source.nil?
180
+ discount_source_validator = EnumAttributeValidator.new('String', ["volume", "override"])
181
+ return false unless discount_source_validator.valid?(@discount_source)
182
+ return false if @total_cents.nil?
183
+ true
184
+ end
185
+
186
+ # Custom attribute writer method with validation
187
+ # @param [Object] subtotal_cents Value to be assigned
188
+ def subtotal_cents=(subtotal_cents)
189
+ if subtotal_cents.nil?
190
+ fail ArgumentError, 'subtotal_cents cannot be nil'
191
+ end
192
+
193
+ @subtotal_cents = subtotal_cents
194
+ end
195
+
196
+ # Custom attribute writer method with validation
197
+ # @param [Object] discount_pct Value to be assigned
198
+ def discount_pct=(discount_pct)
199
+ if discount_pct.nil?
200
+ fail ArgumentError, 'discount_pct cannot be nil'
201
+ end
202
+
203
+ @discount_pct = discount_pct
204
+ end
205
+
206
+ # Custom attribute writer method with validation
207
+ # @param [Object] discount_amount_cents Value to be assigned
208
+ def discount_amount_cents=(discount_amount_cents)
209
+ if discount_amount_cents.nil?
210
+ fail ArgumentError, 'discount_amount_cents cannot be nil'
211
+ end
212
+
213
+ @discount_amount_cents = discount_amount_cents
214
+ end
215
+
216
+ # Custom attribute writer method checking allowed values (enum).
217
+ # @param [Object] discount_source Object to be assigned
218
+ def discount_source=(discount_source)
219
+ validator = EnumAttributeValidator.new('String', ["volume", "override"])
220
+ unless validator.valid?(discount_source)
221
+ fail ArgumentError, "invalid value for \"discount_source\", must be one of #{validator.allowable_values}."
222
+ end
223
+ @discount_source = discount_source
224
+ end
225
+
226
+ # Custom attribute writer method with validation
227
+ # @param [Object] total_cents Value to be assigned
228
+ def total_cents=(total_cents)
229
+ if total_cents.nil?
230
+ fail ArgumentError, 'total_cents cannot be nil'
231
+ end
232
+
233
+ @total_cents = total_cents
234
+ end
235
+
236
+ # Checks equality by comparing each attribute.
237
+ # @param [Object] Object to be compared
238
+ def ==(o)
239
+ return true if self.equal?(o)
240
+ self.class == o.class &&
241
+ subtotal_cents == o.subtotal_cents &&
242
+ discount_pct == o.discount_pct &&
243
+ discount_amount_cents == o.discount_amount_cents &&
244
+ discount_source == o.discount_source &&
245
+ total_cents == o.total_cents &&
246
+ next_tier == o.next_tier
247
+ end
248
+
249
+ # @see the `==` method
250
+ # @param [Object] Object to be compared
251
+ def eql?(o)
252
+ self == o
253
+ end
254
+
255
+ # Calculates hash code according to all attributes.
256
+ # @return [Integer] Hash code
257
+ def hash
258
+ [subtotal_cents, discount_pct, discount_amount_cents, discount_source, total_cents, next_tier].hash
259
+ end
260
+
261
+ # Builds the object from hash
262
+ # @param [Hash] attributes Model attributes in the form of hash
263
+ # @return [Object] Returns the model itself
264
+ def self.build_from_hash(attributes)
265
+ return nil unless attributes.is_a?(Hash)
266
+ attributes = attributes.transform_keys(&:to_sym)
267
+ transformed_hash = {}
268
+ openapi_types.each_pair do |key, type|
269
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
270
+ transformed_hash["#{key}"] = nil
271
+ elsif type =~ /\AArray<(.*)>/i
272
+ # check to ensure the input is an array given that the attribute
273
+ # is documented as an array but the input is not
274
+ if attributes[attribute_map[key]].is_a?(Array)
275
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
276
+ end
277
+ elsif !attributes[attribute_map[key]].nil?
278
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
279
+ end
280
+ end
281
+ new(transformed_hash)
282
+ end
283
+
284
+ # Returns the object in the form of hash
285
+ # @return [Hash] Returns the object in the form of hash
286
+ def to_hash
287
+ hash = {}
288
+ self.class.attribute_map.each_pair do |attr, param|
289
+ value = self.send(attr)
290
+ if value.nil?
291
+ is_nullable = self.class.openapi_nullable.include?(attr)
292
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
293
+ end
294
+
295
+ hash[param] = _to_hash(value)
296
+ end
297
+ hash
298
+ end
299
+
300
+ end
301
+
302
+ end
@@ -17,10 +17,13 @@ module SmplkitGeneratedClient::App
17
17
  class SubscriptionListResponse < ApiModelBase
18
18
  attr_accessor :data
19
19
 
20
+ attr_accessor :meta
21
+
20
22
  # Attribute mapping from ruby-style variable name to JSON key.
21
23
  def self.attribute_map
22
24
  {
23
- :'data' => :'data'
25
+ :'data' => :'data',
26
+ :'meta' => :'meta'
24
27
  }
25
28
  end
26
29
 
@@ -37,7 +40,8 @@ module SmplkitGeneratedClient::App
37
40
  # Attribute type mapping.
38
41
  def self.openapi_types
39
42
  {
40
- :'data' => :'Array<SubscriptionResource>'
43
+ :'data' => :'Array<SubscriptionResource>',
44
+ :'meta' => :'SubscriptionListMeta'
41
45
  }
42
46
  end
43
47
 
@@ -70,6 +74,10 @@ module SmplkitGeneratedClient::App
70
74
  else
71
75
  self.data = nil
72
76
  end
77
+
78
+ if attributes.key?(:'meta')
79
+ self.meta = attributes[:'meta']
80
+ end
73
81
  end
74
82
 
75
83
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -107,7 +115,8 @@ module SmplkitGeneratedClient::App
107
115
  def ==(o)
108
116
  return true if self.equal?(o)
109
117
  self.class == o.class &&
110
- data == o.data
118
+ data == o.data &&
119
+ meta == o.meta
111
120
  end
112
121
 
113
122
  # @see the `==` method
@@ -119,7 +128,7 @@ module SmplkitGeneratedClient::App
119
128
  # Calculates hash code according to all attributes.
120
129
  # @return [Integer] Hash code
121
130
  def hash
122
- [data].hash
131
+ [data, meta].hash
123
132
  end
124
133
 
125
134
  # Builds the object from hash
@@ -30,12 +30,6 @@ require 'smplkit_app_client/models/api_key_list_response'
30
30
  require 'smplkit_app_client/models/api_key_resource'
31
31
  require 'smplkit_app_client/models/api_key_response'
32
32
  require 'smplkit_app_client/models/auth_token_response'
33
- require 'smplkit_app_client/models/bundle_attributes'
34
- require 'smplkit_app_client/models/bundle_list_response'
35
- require 'smplkit_app_client/models/bundle_resource'
36
- require 'smplkit_app_client/models/bundle_response'
37
- require 'smplkit_app_client/models/catalog_bundle_attributes'
38
- require 'smplkit_app_client/models/catalog_bundle_resource'
39
33
  require 'smplkit_app_client/models/contact_topic'
40
34
  require 'smplkit_app_client/models/context'
41
35
  require 'smplkit_app_client/models/context_batch_response'
@@ -48,9 +42,6 @@ require 'smplkit_app_client/models/context_type'
48
42
  require 'smplkit_app_client/models/context_type_list_response'
49
43
  require 'smplkit_app_client/models/context_type_resource'
50
44
  require 'smplkit_app_client/models/context_type_response'
51
- require 'smplkit_app_client/models/create_bundle_attributes'
52
- require 'smplkit_app_client/models/create_bundle_body'
53
- require 'smplkit_app_client/models/create_bundle_data'
54
45
  require 'smplkit_app_client/models/create_subscription_attributes'
55
46
  require 'smplkit_app_client/models/create_subscription_body'
56
47
  require 'smplkit_app_client/models/create_subscription_data'
@@ -85,6 +76,7 @@ require 'smplkit_app_client/models/metric_resource'
85
76
  require 'smplkit_app_client/models/metric_rollup_attributes'
86
77
  require 'smplkit_app_client/models/metric_rollup_list_response'
87
78
  require 'smplkit_app_client/models/metric_rollup_resource'
79
+ require 'smplkit_app_client/models/next_tier_meta'
88
80
  require 'smplkit_app_client/models/oidc_provider'
89
81
  require 'smplkit_app_client/models/page_meta'
90
82
  require 'smplkit_app_client/models/payment_method'
@@ -108,6 +100,7 @@ require 'smplkit_app_client/models/setup_intent_attributes'
108
100
  require 'smplkit_app_client/models/setup_intent_resource'
109
101
  require 'smplkit_app_client/models/setup_intent_response'
110
102
  require 'smplkit_app_client/models/subscription_attributes'
103
+ require 'smplkit_app_client/models/subscription_list_meta'
111
104
  require 'smplkit_app_client/models/subscription_list_response'
112
105
  require 'smplkit_app_client/models/subscription_resource'
113
106
  require 'smplkit_app_client/models/subscription_response'
@@ -44,18 +44,6 @@ describe 'BillingApi' do
44
44
  end
45
45
  end
46
46
 
47
- # unit tests for create_bundle
48
- # Create Bundle Subscription
49
- # Create a bundle subscription covering all three products at a shared plan tier.
50
- # @param create_bundle_body
51
- # @param [Hash] opts the optional parameters
52
- # @return [BundleResponse]
53
- describe 'create_bundle test' do
54
- it 'should work' do
55
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
56
- end
57
- end
58
-
59
47
  # unit tests for create_payment_method
60
48
  # Add Payment Method
61
49
  # Register a Stripe payment method (&#x60;&#x60;pm_...&#x60;&#x60;) as a persistent resource. The frontend obtains the Stripe ID via SetupIntent + Stripe Elements, then POSTs it here. Body shape and server behavior per ADR-044 §5.1.
@@ -140,17 +128,6 @@ describe 'BillingApi' do
140
128
  end
141
129
  end
142
130
 
143
- # unit tests for list_bundles
144
- # List Bundles
145
- # Return all bundle definitions as JSON:API resources. Public, unauthenticated.
146
- # @param [Hash] opts the optional parameters
147
- # @return [BundleListResponse]
148
- describe 'list_bundles test' do
149
- it 'should work' do
150
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
151
- end
152
- end
153
-
154
131
  # unit tests for list_invoices
155
132
  # List Invoices
156
133
  # Return invoice history for the account from Stripe.
@@ -81,4 +81,28 @@ describe SmplkitGeneratedClient::App::Account do
81
81
  end
82
82
  end
83
83
 
84
+ describe 'test attribute "discount_override_pct"' do
85
+ it 'should work' do
86
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
87
+ end
88
+ end
89
+
90
+ describe 'test attribute "discount_override_reason"' do
91
+ it 'should work' do
92
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
93
+ end
94
+ end
95
+
96
+ describe 'test attribute "discount_override_set_by_user_id"' do
97
+ it 'should work' do
98
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
99
+ end
100
+ end
101
+
102
+ describe 'test attribute "discount_override_set_at"' do
103
+ it 'should work' do
104
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
105
+ end
106
+ end
107
+
84
108
  end
@@ -14,38 +14,32 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for SmplkitGeneratedClient::App::BundleAttributes
17
+ # Unit tests for SmplkitGeneratedClient::App::NextTierMeta
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe SmplkitGeneratedClient::App::BundleAttributes do
21
- #let(:instance) { SmplkitGeneratedClient::App::BundleAttributes.new }
20
+ describe SmplkitGeneratedClient::App::NextTierMeta do
21
+ #let(:instance) { SmplkitGeneratedClient::App::NextTierMeta.new }
22
22
 
23
- describe 'test an instance of BundleAttributes' do
24
- it 'should create an instance of BundleAttributes' do
23
+ describe 'test an instance of NextTierMeta' do
24
+ it 'should create an instance of NextTierMeta' do
25
25
  # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::BundleAttributes)
26
+ #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::NextTierMeta)
27
27
  end
28
28
  end
29
29
 
30
- describe 'test attribute "bundle"' do
30
+ describe 'test attribute "products_needed"' do
31
31
  it 'should work' do
32
32
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
33
  end
34
34
  end
35
35
 
36
- describe 'test attribute "plan"' do
36
+ describe 'test attribute "discount_pct"' do
37
37
  it 'should work' do
38
38
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
39
  end
40
40
  end
41
41
 
42
- describe 'test attribute "products"' do
43
- it 'should work' do
44
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
- end
46
- end
47
-
48
- describe 'test attribute "subscriptions"' do
42
+ describe 'test attribute "additional_savings_cents"' do
49
43
  it 'should work' do
50
44
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
45
  end
@@ -57,12 +57,6 @@ describe SmplkitGeneratedClient::App::SubscriptionAttributes do
57
57
  end
58
58
  end
59
59
 
60
- describe 'test attribute "bundle"' do
61
- it 'should work' do
62
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
63
- end
64
- end
65
-
66
60
  describe 'test attribute "current_period_end"' do
67
61
  it 'should work' do
68
62
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -0,0 +1,70 @@
1
+ =begin
2
+ #smplkit API
3
+
4
+ #API for the smplkit platform.
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for SmplkitGeneratedClient::App::SubscriptionListMeta
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe SmplkitGeneratedClient::App::SubscriptionListMeta do
21
+ #let(:instance) { SmplkitGeneratedClient::App::SubscriptionListMeta.new }
22
+
23
+ describe 'test an instance of SubscriptionListMeta' do
24
+ it 'should create an instance of SubscriptionListMeta' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::SubscriptionListMeta)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "subtotal_cents"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "discount_pct"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "discount_amount_cents"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "discount_source"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["volume", "override"])
52
+ # validator.allowable_values.each do |value|
53
+ # expect { instance.discount_source = value }.not_to raise_error
54
+ # end
55
+ end
56
+ end
57
+
58
+ describe 'test attribute "total_cents"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
61
+ end
62
+ end
63
+
64
+ describe 'test attribute "next_tier"' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
67
+ end
68
+ end
69
+
70
+ end
@@ -33,4 +33,10 @@ describe SmplkitGeneratedClient::App::SubscriptionListResponse do
33
33
  end
34
34
  end
35
35
 
36
+ describe 'test attribute "meta"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
36
42
  end