smplkit 3.0.8 → 3.0.9

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 (37) hide show
  1. checksums.yaml +4 -4
  2. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/billing_api.rb +0 -469
  3. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/subscription_api.rb +289 -0
  4. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/{subscription_list_response.rb → admin_subscription_request.rb} +9 -20
  5. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/admin_subscription_request_attributes.rb +190 -0
  6. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/{create_subscription_data.rb → admin_subscription_request_resource.rb} +46 -12
  7. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/{next_tier_meta.rb → next_tier_response.rb} +6 -6
  8. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_change_projection.rb +321 -0
  9. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/{create_subscription_attributes.rb → subscription_item_request.rb} +10 -21
  10. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/{subscription_attributes.rb → subscription_item_response.rb} +66 -77
  11. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_preview_attributes.rb +390 -0
  12. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_preview_resource.rb +241 -0
  13. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/{plan_change_request.rb → subscription_preview_response.rb} +20 -21
  14. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/{create_subscription_body.rb → subscription_request.rb} +5 -5
  15. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_request_attributes.rb +179 -0
  16. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_request_resource.rb +227 -0
  17. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_resource.rb +4 -2
  18. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_response.rb +1 -1
  19. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/{subscription_list_meta.rb → subscription_response_attributes.rb} +135 -62
  20. data/lib/smplkit/_generated/app/lib/smplkit_app_client.rb +15 -8
  21. data/lib/smplkit/_generated/app/spec/api/billing_api_spec.rb +0 -86
  22. data/lib/smplkit/_generated/app/spec/api/subscription_api_spec.rb +83 -0
  23. data/lib/smplkit/_generated/app/spec/models/{create_subscription_attributes_spec.rb → admin_subscription_request_attributes_spec.rb} +9 -9
  24. data/lib/smplkit/_generated/app/spec/models/admin_subscription_request_resource_spec.rb +52 -0
  25. data/lib/smplkit/_generated/app/spec/models/{plan_change_request_spec.rb → admin_subscription_request_spec.rb} +7 -7
  26. data/lib/smplkit/_generated/app/spec/models/{next_tier_meta_spec.rb → next_tier_response_spec.rb} +6 -6
  27. data/lib/smplkit/_generated/app/spec/models/{subscription_list_meta_spec.rb → subscription_change_projection_spec.rb} +20 -14
  28. data/lib/smplkit/_generated/app/spec/models/{create_subscription_data_spec.rb → subscription_item_request_spec.rb} +8 -8
  29. data/lib/smplkit/_generated/app/spec/models/{subscription_attributes_spec.rb → subscription_item_response_spec.rb} +12 -18
  30. data/lib/smplkit/_generated/app/spec/models/subscription_preview_attributes_spec.rb +88 -0
  31. data/lib/smplkit/_generated/app/spec/models/subscription_preview_resource_spec.rb +56 -0
  32. data/lib/smplkit/_generated/app/spec/models/subscription_preview_response_spec.rb +36 -0
  33. data/lib/smplkit/_generated/app/spec/models/{subscription_list_response_spec.rb → subscription_request_attributes_spec.rb} +8 -8
  34. data/lib/smplkit/_generated/app/spec/models/subscription_request_resource_spec.rb +52 -0
  35. data/lib/smplkit/_generated/app/spec/models/{create_subscription_body_spec.rb → subscription_request_spec.rb} +6 -6
  36. data/lib/smplkit/_generated/app/spec/models/subscription_response_attributes_spec.rb +100 -0
  37. metadata +31 -17
@@ -32,18 +32,6 @@ describe 'BillingApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for cancel_subscription
36
- # Cancel Subscription
37
- # Cancel a subscription at end of the current billing period.
38
- # @param id
39
- # @param [Hash] opts the optional parameters
40
- # @return [SubscriptionResponse]
41
- describe 'cancel_subscription test' do
42
- it 'should work' do
43
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
- end
45
- end
46
-
47
35
  # unit tests for create_payment_method
48
36
  # Add Payment Method
49
37
  # Register a Stripe payment method (`pm_...`) on the account. The client first creates the Stripe payment method using a SetupIntent and Stripe Elements, then submits its identifier here to persist it.
@@ -56,18 +44,6 @@ describe 'BillingApi' do
56
44
  end
57
45
  end
58
46
 
59
- # unit tests for create_subscription
60
- # Create Subscription
61
- # Create a new paid subscription for a product.
62
- # @param create_subscription_body
63
- # @param [Hash] opts the optional parameters
64
- # @return [SubscriptionResponse]
65
- describe 'create_subscription test' do
66
- it 'should work' do
67
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
68
- end
69
- end
70
-
71
47
  # unit tests for delete_payment_method
72
48
  # Delete Payment Method
73
49
  # Delete a payment method. Returns 409 if this is the only payment method on file and the account has an active paid subscription. If the deleted payment method was the default, the oldest remaining payment method is promoted to default.
@@ -80,19 +56,6 @@ describe 'BillingApi' do
80
56
  end
81
57
  end
82
58
 
83
- # unit tests for downgrade_subscription
84
- # Downgrade Subscription
85
- # Downgrade an existing paid subscription to a lower plan.
86
- # @param id
87
- # @param plan_change_request
88
- # @param [Hash] opts the optional parameters
89
- # @return [SubscriptionResponse]
90
- describe 'downgrade_subscription test' 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
59
  # unit tests for execute_setup_intent
97
60
  # Execute Setup Intent
98
61
  # Create a Stripe SetupIntent for adding a payment method without an immediate charge. Returns the `client_secret` to pass to Stripe Elements in the browser.
@@ -152,18 +115,6 @@ describe 'BillingApi' do
152
115
  end
153
116
  end
154
117
 
155
- # unit tests for list_subscriptions
156
- # List Subscriptions
157
- # Return subscription rows for the authenticated account. Default sort is `product` ascending.
158
- # @param [Hash] opts the optional parameters
159
- # @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `product`. Allowed values: `created_at`, `-created_at`, `plan`, `-plan`, `product`, `-product`, `status`, `-status`.
160
- # @return [SubscriptionListResponse]
161
- describe 'list_subscriptions test' do
162
- it 'should work' do
163
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
164
- end
165
- end
166
-
167
118
  # unit tests for set_default_payment_method
168
119
  # Set Default Payment Method
169
120
  # Mark this payment method as the account's default. Idempotent: returns 200 with no changes when the payment method is already the default.
@@ -176,30 +127,6 @@ describe 'BillingApi' do
176
127
  end
177
128
  end
178
129
 
179
- # unit tests for uncancel_subscription
180
- # Undo Cancellation
181
- # Reverse a pending cancellation; subscription will renew as normal.
182
- # @param id
183
- # @param [Hash] opts the optional parameters
184
- # @return [SubscriptionResponse]
185
- describe 'uncancel_subscription test' do
186
- it 'should work' do
187
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
188
- end
189
- end
190
-
191
- # unit tests for undowngrade_subscription
192
- # Undo Pending Downgrade
193
- # Reverse a pending downgrade scheduled for end of the current billing period.
194
- # @param id
195
- # @param [Hash] opts the optional parameters
196
- # @return [SubscriptionResponse]
197
- describe 'undowngrade_subscription test' do
198
- it 'should work' do
199
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
200
- end
201
- end
202
-
203
130
  # unit tests for update_payment_method
204
131
  # Update Payment Method
205
132
  # Update the mutable fields of a payment method (`billing_details`, `exp_month`, `exp_year`). The `default` flag is not mutable via PUT — use the `set_default` action instead.
@@ -213,17 +140,4 @@ describe 'BillingApi' do
213
140
  end
214
141
  end
215
142
 
216
- # unit tests for upgrade_subscription
217
- # Upgrade Subscription
218
- # Upgrade an existing paid subscription to a higher plan.
219
- # @param id
220
- # @param plan_change_request
221
- # @param [Hash] opts the optional parameters
222
- # @return [SubscriptionResponse]
223
- describe 'upgrade_subscription test' do
224
- it 'should work' do
225
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
226
- end
227
- end
228
-
229
143
  end
@@ -0,0 +1,83 @@
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
+
16
+ # Unit tests for SmplkitGeneratedClient::App::SubscriptionApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'SubscriptionApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = SmplkitGeneratedClient::App::SubscriptionApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of SubscriptionApi' do
30
+ it 'should create an instance of SubscriptionApi' do
31
+ expect(@api_instance).to be_instance_of(SmplkitGeneratedClient::App::SubscriptionApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for admin_put_account_subscription
36
+ # Replace Account Subscription (admin)
37
+ # Admin replacement of a specific account's subscription. Accepts the same body shape as the customer endpoint plus ``discount_override_pct``. Setting the override to 100 skips the billing provider entirely; lowering it below 100 requires a payment method on file for the target account.
38
+ # @param account_id
39
+ # @param admin_subscription_request
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [SubscriptionResponse]
42
+ describe 'admin_put_account_subscription test' 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
+ # unit tests for get_current_subscription
49
+ # Get Current Subscription
50
+ # Return the authenticated account's subscription, or 404 if none exists.
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [SubscriptionResponse]
53
+ describe 'get_current_subscription 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
+ # unit tests for preview_current_subscription
60
+ # Preview Subscription Change
61
+ # Project the result of replacing the subscription with the desired state. No database or billing-provider changes are made; safe to call as the customer iterates on a plan picker.
62
+ # @param subscription_request
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [SubscriptionPreviewResponse]
65
+ describe 'preview_current_subscription test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
68
+ end
69
+ end
70
+
71
+ # unit tests for put_current_subscription
72
+ # Replace Current Subscription
73
+ # Replace the authenticated account's subscription with the desired state.
74
+ # @param subscription_request
75
+ # @param [Hash] opts the optional parameters
76
+ # @return [SubscriptionResponse]
77
+ describe 'put_current_subscription test' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
80
+ end
81
+ end
82
+
83
+ end
@@ -14,32 +14,32 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for SmplkitGeneratedClient::App::CreateSubscriptionAttributes
17
+ # Unit tests for SmplkitGeneratedClient::App::AdminSubscriptionRequestAttributes
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe SmplkitGeneratedClient::App::CreateSubscriptionAttributes do
21
- #let(:instance) { SmplkitGeneratedClient::App::CreateSubscriptionAttributes.new }
20
+ describe SmplkitGeneratedClient::App::AdminSubscriptionRequestAttributes do
21
+ #let(:instance) { SmplkitGeneratedClient::App::AdminSubscriptionRequestAttributes.new }
22
22
 
23
- describe 'test an instance of CreateSubscriptionAttributes' do
24
- it 'should create an instance of CreateSubscriptionAttributes' do
23
+ describe 'test an instance of AdminSubscriptionRequestAttributes' do
24
+ it 'should create an instance of AdminSubscriptionRequestAttributes' do
25
25
  # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::CreateSubscriptionAttributes)
26
+ #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::AdminSubscriptionRequestAttributes)
27
27
  end
28
28
  end
29
29
 
30
- describe 'test attribute "product"' do
30
+ describe 'test attribute "items"' 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 "payment_method"' 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 "payment_method"' do
42
+ describe 'test attribute "discount_override_pct"' do
43
43
  it 'should work' do
44
44
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
45
  end
@@ -0,0 +1,52 @@
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::AdminSubscriptionRequestResource
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe SmplkitGeneratedClient::App::AdminSubscriptionRequestResource do
21
+ #let(:instance) { SmplkitGeneratedClient::App::AdminSubscriptionRequestResource.new }
22
+
23
+ describe 'test an instance of AdminSubscriptionRequestResource' do
24
+ it 'should create an instance of AdminSubscriptionRequestResource' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::AdminSubscriptionRequestResource)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "id"' 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 "type"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["subscription"])
40
+ # validator.allowable_values.each do |value|
41
+ # expect { instance.type = value }.not_to raise_error
42
+ # end
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "attributes"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
49
+ end
50
+ end
51
+
52
+ end
@@ -14,20 +14,20 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for SmplkitGeneratedClient::App::PlanChangeRequest
17
+ # Unit tests for SmplkitGeneratedClient::App::AdminSubscriptionRequest
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe SmplkitGeneratedClient::App::PlanChangeRequest do
21
- #let(:instance) { SmplkitGeneratedClient::App::PlanChangeRequest.new }
20
+ describe SmplkitGeneratedClient::App::AdminSubscriptionRequest do
21
+ #let(:instance) { SmplkitGeneratedClient::App::AdminSubscriptionRequest.new }
22
22
 
23
- describe 'test an instance of PlanChangeRequest' do
24
- it 'should create an instance of PlanChangeRequest' do
23
+ describe 'test an instance of AdminSubscriptionRequest' do
24
+ it 'should create an instance of AdminSubscriptionRequest' do
25
25
  # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::PlanChangeRequest)
26
+ #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::AdminSubscriptionRequest)
27
27
  end
28
28
  end
29
29
 
30
- describe 'test attribute "plan"' do
30
+ describe 'test attribute "data"' 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
@@ -14,16 +14,16 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for SmplkitGeneratedClient::App::NextTierMeta
17
+ # Unit tests for SmplkitGeneratedClient::App::NextTierResponse
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe SmplkitGeneratedClient::App::NextTierMeta do
21
- #let(:instance) { SmplkitGeneratedClient::App::NextTierMeta.new }
20
+ describe SmplkitGeneratedClient::App::NextTierResponse do
21
+ #let(:instance) { SmplkitGeneratedClient::App::NextTierResponse.new }
22
22
 
23
- describe 'test an instance of NextTierMeta' do
24
- it 'should create an instance of NextTierMeta' do
23
+ describe 'test an instance of NextTierResponse' do
24
+ it 'should create an instance of NextTierResponse' do
25
25
  # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::NextTierMeta)
26
+ #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::NextTierResponse)
27
27
  end
28
28
  end
29
29
 
@@ -14,54 +14,60 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for SmplkitGeneratedClient::App::SubscriptionListMeta
17
+ # Unit tests for SmplkitGeneratedClient::App::SubscriptionChangeProjection
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe SmplkitGeneratedClient::App::SubscriptionListMeta do
21
- #let(:instance) { SmplkitGeneratedClient::App::SubscriptionListMeta.new }
20
+ describe SmplkitGeneratedClient::App::SubscriptionChangeProjection do
21
+ #let(:instance) { SmplkitGeneratedClient::App::SubscriptionChangeProjection.new }
22
22
 
23
- describe 'test an instance of SubscriptionListMeta' do
24
- it 'should create an instance of SubscriptionListMeta' do
23
+ describe 'test an instance of SubscriptionChangeProjection' do
24
+ it 'should create an instance of SubscriptionChangeProjection' do
25
25
  # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::SubscriptionListMeta)
26
+ #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::SubscriptionChangeProjection)
27
27
  end
28
28
  end
29
29
 
30
- describe 'test attribute "subtotal_cents"' do
30
+ describe 'test attribute "product"' 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 "discount_pct"' do
36
+ describe 'test attribute "from_plan"' 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 "discount_amount_cents"' do
42
+ describe 'test attribute "to_plan"' do
43
43
  it 'should work' do
44
44
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
45
  end
46
46
  end
47
47
 
48
- describe 'test attribute "discount_source"' do
48
+ describe 'test attribute "monthly_cents"' do
49
49
  it 'should work' do
50
50
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["VOLUME", "OVERRIDE"])
51
+ end
52
+ end
53
+
54
+ describe 'test attribute "effect"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["IMMEDIATE", "NEXT_PERIOD"])
52
58
  # validator.allowable_values.each do |value|
53
- # expect { instance.discount_source = value }.not_to raise_error
59
+ # expect { instance.effect = value }.not_to raise_error
54
60
  # end
55
61
  end
56
62
  end
57
63
 
58
- describe 'test attribute "total_cents"' do
64
+ describe 'test attribute "prorated_charge_today_cents"' do
59
65
  it 'should work' do
60
66
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
61
67
  end
62
68
  end
63
69
 
64
- describe 'test attribute "next_tier"' do
70
+ describe 'test attribute "starts_at"' do
65
71
  it 'should work' do
66
72
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
67
73
  end
@@ -14,26 +14,26 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for SmplkitGeneratedClient::App::CreateSubscriptionData
17
+ # Unit tests for SmplkitGeneratedClient::App::SubscriptionItemRequest
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe SmplkitGeneratedClient::App::CreateSubscriptionData do
21
- #let(:instance) { SmplkitGeneratedClient::App::CreateSubscriptionData.new }
20
+ describe SmplkitGeneratedClient::App::SubscriptionItemRequest do
21
+ #let(:instance) { SmplkitGeneratedClient::App::SubscriptionItemRequest.new }
22
22
 
23
- describe 'test an instance of CreateSubscriptionData' do
24
- it 'should create an instance of CreateSubscriptionData' do
23
+ describe 'test an instance of SubscriptionItemRequest' do
24
+ it 'should create an instance of SubscriptionItemRequest' do
25
25
  # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::CreateSubscriptionData)
26
+ #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::SubscriptionItemRequest)
27
27
  end
28
28
  end
29
29
 
30
- describe 'test attribute "type"' do
30
+ describe 'test attribute "product"' 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 "attributes"' do
36
+ describe 'test attribute "plan"' 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
@@ -14,56 +14,50 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for SmplkitGeneratedClient::App::SubscriptionAttributes
17
+ # Unit tests for SmplkitGeneratedClient::App::SubscriptionItemResponse
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe SmplkitGeneratedClient::App::SubscriptionAttributes do
21
- #let(:instance) { SmplkitGeneratedClient::App::SubscriptionAttributes.new }
20
+ describe SmplkitGeneratedClient::App::SubscriptionItemResponse do
21
+ #let(:instance) { SmplkitGeneratedClient::App::SubscriptionItemResponse.new }
22
22
 
23
- describe 'test an instance of SubscriptionAttributes' do
24
- it 'should create an instance of SubscriptionAttributes' do
23
+ describe 'test an instance of SubscriptionItemResponse' do
24
+ it 'should create an instance of SubscriptionItemResponse' do
25
25
  # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::SubscriptionAttributes)
26
+ #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::SubscriptionItemResponse)
27
27
  end
28
28
  end
29
29
 
30
- describe 'test attribute "product"' do
30
+ describe 'test attribute "id"' 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
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 "status"' do
36
+ describe 'test attribute "product"' do
43
37
  it 'should work' do
44
38
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
39
  end
46
40
  end
47
41
 
48
- describe 'test attribute "comped"' do
42
+ describe 'test attribute "plan"' 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
52
46
  end
53
47
 
54
- describe 'test attribute "stripe_managed"' do
48
+ describe 'test attribute "price_monthly_cents"' do
55
49
  it 'should work' do
56
50
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
51
  end
58
52
  end
59
53
 
60
- describe 'test attribute "current_period_end"' do
54
+ describe 'test attribute "pending_plan_change"' do
61
55
  it 'should work' do
62
56
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
63
57
  end
64
58
  end
65
59
 
66
- describe 'test attribute "client_secret"' do
60
+ describe 'test attribute "scheduled_change_effective_at"' do
67
61
  it 'should work' do
68
62
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
63
  end
@@ -0,0 +1,88 @@
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::SubscriptionPreviewAttributes
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe SmplkitGeneratedClient::App::SubscriptionPreviewAttributes do
21
+ #let(:instance) { SmplkitGeneratedClient::App::SubscriptionPreviewAttributes.new }
22
+
23
+ describe 'test an instance of SubscriptionPreviewAttributes' do
24
+ it 'should create an instance of SubscriptionPreviewAttributes' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::SubscriptionPreviewAttributes)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "projected_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 "projected_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 "projected_discount_source"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["VOLUME", "OVERRIDE"])
46
+ # validator.allowable_values.each do |value|
47
+ # expect { instance.projected_discount_source = value }.not_to raise_error
48
+ # end
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "projected_discount_amount_cents"' 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
+
58
+ describe 'test attribute "projected_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 "projected_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
+ describe 'test attribute "changes"' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
73
+ end
74
+ end
75
+
76
+ describe 'test attribute "total_charge_today_cents"' do
77
+ it 'should work' do
78
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
79
+ end
80
+ end
81
+
82
+ describe 'test attribute "next_invoice_total_cents"' do
83
+ it 'should work' do
84
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
85
+ end
86
+ end
87
+
88
+ end