smplkit 1.0.21 → 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 (36) 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. data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/forwarder_http.rb +23 -2
  16. data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/test_forwarder_request.rb +22 -1
  17. data/lib/smplkit/_generated/audit/lib/smplkit_audit_client.rb +0 -1
  18. metadata +5 -21
  19. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/bundle_attributes.rb +0 -246
  20. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/bundle_list_response.rb +0 -166
  21. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/bundle_resource.rb +0 -224
  22. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/bundle_response.rb +0 -164
  23. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/catalog_bundle_attributes.rb +0 -244
  24. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/create_bundle_attributes.rb +0 -174
  25. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/create_bundle_body.rb +0 -164
  26. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/create_bundle_data.rb +0 -214
  27. data/lib/smplkit/_generated/app/spec/models/bundle_list_response_spec.rb +0 -36
  28. data/lib/smplkit/_generated/app/spec/models/bundle_resource_spec.rb +0 -52
  29. data/lib/smplkit/_generated/app/spec/models/bundle_response_spec.rb +0 -36
  30. data/lib/smplkit/_generated/app/spec/models/catalog_bundle_attributes_spec.rb +0 -54
  31. data/lib/smplkit/_generated/app/spec/models/catalog_bundle_resource_spec.rb +0 -52
  32. data/lib/smplkit/_generated/app/spec/models/create_bundle_attributes_spec.rb +0 -42
  33. data/lib/smplkit/_generated/app/spec/models/create_bundle_body_spec.rb +0 -36
  34. data/lib/smplkit/_generated/app/spec/models/create_bundle_data_spec.rb +0 -46
  35. data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/success_status.rb +0 -103
  36. data/lib/smplkit/_generated/audit/spec/models/success_status_spec.rb +0 -21
@@ -1,54 +0,0 @@
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::CatalogBundleAttributes
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe SmplkitGeneratedClient::App::CatalogBundleAttributes do
21
- #let(:instance) { SmplkitGeneratedClient::App::CatalogBundleAttributes.new }
22
-
23
- describe 'test an instance of CatalogBundleAttributes' do
24
- it 'should create an instance of CatalogBundleAttributes' do
25
- # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::CatalogBundleAttributes)
27
- end
28
- end
29
-
30
- describe 'test attribute "display_name"' 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 "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 "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 "price_monthly_cents"' do
49
- it 'should work' do
50
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
- end
52
- end
53
-
54
- end
@@ -1,52 +0,0 @@
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::CatalogBundleResource
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe SmplkitGeneratedClient::App::CatalogBundleResource do
21
- #let(:instance) { SmplkitGeneratedClient::App::CatalogBundleResource.new }
22
-
23
- describe 'test an instance of CatalogBundleResource' do
24
- it 'should create an instance of CatalogBundleResource' do
25
- # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::CatalogBundleResource)
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', ["bundle"])
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
@@ -1,42 +0,0 @@
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::CreateBundleAttributes
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe SmplkitGeneratedClient::App::CreateBundleAttributes do
21
- #let(:instance) { SmplkitGeneratedClient::App::CreateBundleAttributes.new }
22
-
23
- describe 'test an instance of CreateBundleAttributes' do
24
- it 'should create an instance of CreateBundleAttributes' do
25
- # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::CreateBundleAttributes)
27
- end
28
- end
29
-
30
- describe 'test attribute "bundle"' 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 "payment_method"' 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
- end
@@ -1,36 +0,0 @@
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::CreateBundleBody
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe SmplkitGeneratedClient::App::CreateBundleBody do
21
- #let(:instance) { SmplkitGeneratedClient::App::CreateBundleBody.new }
22
-
23
- describe 'test an instance of CreateBundleBody' do
24
- it 'should create an instance of CreateBundleBody' do
25
- # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::CreateBundleBody)
27
- end
28
- end
29
-
30
- describe 'test attribute "data"' 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
- end
@@ -1,46 +0,0 @@
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::CreateBundleData
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe SmplkitGeneratedClient::App::CreateBundleData do
21
- #let(:instance) { SmplkitGeneratedClient::App::CreateBundleData.new }
22
-
23
- describe 'test an instance of CreateBundleData' do
24
- it 'should create an instance of CreateBundleData' do
25
- # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::CreateBundleData)
27
- end
28
- end
29
-
30
- describe 'test attribute "type"' do
31
- it 'should work' do
32
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["bundle"])
34
- # validator.allowable_values.each do |value|
35
- # expect { instance.type = value }.not_to raise_error
36
- # end
37
- end
38
- end
39
-
40
- describe 'test attribute "attributes"' do
41
- it 'should work' do
42
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
- end
44
- end
45
-
46
- end
@@ -1,103 +0,0 @@
1
- =begin
2
- #smplkit Audit API
3
-
4
- #Append-only change-history substrate for smpl.* resources and customer-application events. ADR-047.
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::Audit
17
- module SuccessStatus
18
- class << self
19
- # List of class defined in anyOf (OpenAPI v3)
20
- def openapi_any_of
21
- [
22
- :'Integer',
23
- :'String'
24
- ]
25
- end
26
-
27
- # Builds the object
28
- # @param [Mixed] Data to be matched against the list of anyOf items
29
- # @return [Object] Returns the model or the data itself
30
- def build(data)
31
- # Go through the list of anyOf items and attempt to identify the appropriate one.
32
- # Note:
33
- # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
34
- # due to the way the deserialization is made in the base_object template (it just casts without verifying).
35
- # - TODO: scalar values are de facto behaving as if they were nullable.
36
- # - TODO: logging when debugging is set.
37
- openapi_any_of.each do |klass|
38
- begin
39
- next if klass == :AnyType # "nullable: true"
40
- return find_and_cast_into_type(klass, data)
41
- rescue # rescue all errors so we keep iterating even if the current item lookup raises
42
- end
43
- end
44
-
45
- openapi_any_of.include?(:AnyType) ? data : nil
46
- end
47
-
48
- private
49
-
50
- SchemaMismatchError = Class.new(StandardError)
51
-
52
- # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse.
53
- def find_and_cast_into_type(klass, data)
54
- return if data.nil?
55
-
56
- case klass.to_s
57
- when 'Boolean'
58
- return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
59
- when 'Float'
60
- return data if data.instance_of?(Float)
61
- when 'Integer'
62
- return data if data.instance_of?(Integer)
63
- when 'Time'
64
- return Time.parse(data)
65
- when 'Date'
66
- return Date.iso8601(data)
67
- when 'String'
68
- return data if data.instance_of?(String)
69
- when 'Object' # "type: object"
70
- return data if data.instance_of?(Hash)
71
- when /\AArray<(?<sub_type>.+)>\z/ # "type: array"
72
- if data.instance_of?(Array)
73
- sub_type = Regexp.last_match[:sub_type]
74
- return data.map { |item| find_and_cast_into_type(sub_type, item) }
75
- end
76
- when /\AHash<String, (?<sub_type>.+)>\z/ # "type: object" with "additionalProperties: { ... }"
77
- if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) }
78
- sub_type = Regexp.last_match[:sub_type]
79
- return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
80
- end
81
- else # model
82
- const = SmplkitGeneratedClient::Audit.const_get(klass)
83
- if const
84
- if const.respond_to?(:openapi_any_of) # nested anyOf model
85
- model = const.build(data)
86
- return model if model
87
- else
88
- # raise if data contains keys that are not known to the model
89
- raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
90
- model = const.build_from_hash(data)
91
- return model if model
92
- end
93
- end
94
- end
95
-
96
- raise # if no match by now, raise
97
- rescue
98
- raise SchemaMismatchError, "#{data} doesn't match the #{klass} type"
99
- end
100
- end
101
- end
102
-
103
- end
@@ -1,21 +0,0 @@
1
- =begin
2
- #smplkit Audit API
3
-
4
- #Append-only change-history substrate for smpl.* resources and customer-application events. ADR-047.
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::Audit::SuccessStatus
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe SmplkitGeneratedClient::Audit::SuccessStatus do
21
- end