zernio-sdk 0.0.782 → 0.0.783
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/README.md +6 -0
- data/docs/UsageApi.md +8 -2
- data/docs/UsageAttributionGroup.md +22 -0
- data/docs/UsageAttributionSlice.md +20 -0
- data/docs/UsageAttributionSliceByProduct.md +34 -0
- data/docs/UsageMetering.md +5 -1
- data/docs/UsageMeteringAttribution.md +26 -0
- data/docs/UsageMeteringScope.md +49 -0
- data/docs/UsageMeteringScopeOneOf.md +18 -0
- data/lib/zernio-sdk/api/usage_api.rb +15 -2
- data/lib/zernio-sdk/models/usage_attribution_group.rb +190 -0
- data/lib/zernio-sdk/models/usage_attribution_slice.rb +156 -0
- data/lib/zernio-sdk/models/usage_attribution_slice_by_product.rb +220 -0
- data/lib/zernio-sdk/models/usage_metering.rb +22 -4
- data/lib/zernio-sdk/models/usage_metering_attribution.rb +223 -0
- data/lib/zernio-sdk/models/usage_metering_call_usage.rb +1 -1
- data/lib/zernio-sdk/models/usage_metering_peaks.rb +1 -1
- data/lib/zernio-sdk/models/usage_metering_scope.rb +105 -0
- data/lib/zernio-sdk/models/usage_metering_scope_one_of.rb +164 -0
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +6 -0
- data/openapi.yaml +90 -4
- data/spec/api/usage_api_spec.rb +4 -1
- data/spec/models/usage_attribution_group_spec.rb +48 -0
- data/spec/models/usage_attribution_slice_by_product_spec.rb +84 -0
- data/spec/models/usage_attribution_slice_spec.rb +42 -0
- data/spec/models/usage_metering_attribution_spec.rb +64 -0
- data/spec/models/usage_metering_scope_one_of_spec.rb +36 -0
- data/spec/models/usage_metering_scope_spec.rb +32 -0
- data/spec/models/usage_metering_spec.rb +12 -0
- metadata +25 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Zernio::UsageMeteringAttribution
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::UsageMeteringAttribution do
|
|
21
|
+
#let(:instance) { Zernio::UsageMeteringAttribution.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of UsageMeteringAttribution' do
|
|
24
|
+
it 'should create an instance of UsageMeteringAttribution' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::UsageMeteringAttribution)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "group_by"' 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', ["profile", "account"])
|
|
34
|
+
# validator.allowable_values.each do |value|
|
|
35
|
+
# expect { instance.group_by = value }.not_to raise_error
|
|
36
|
+
# end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
describe 'test attribute "groups"' 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
|
+
describe 'test attribute "unattributed"' 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
|
+
describe 'test attribute "totals"' 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 "restricted"' 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
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Zernio::UsageMeteringScopeOneOf
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::UsageMeteringScopeOneOf do
|
|
21
|
+
#let(:instance) { Zernio::UsageMeteringScopeOneOf.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of UsageMeteringScopeOneOf' do
|
|
24
|
+
it 'should create an instance of UsageMeteringScopeOneOf' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::UsageMeteringScopeOneOf)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "profile_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
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Zernio::UsageMeteringScope
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::UsageMeteringScope do
|
|
21
|
+
describe '.openapi_one_of' do
|
|
22
|
+
it 'lists the items referenced in the oneOf array' do
|
|
23
|
+
expect(described_class.openapi_one_of).to_not be_empty
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
describe '.build' do
|
|
28
|
+
it 'returns the correct model' do
|
|
29
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -85,4 +85,16 @@ describe Zernio::UsageMetering do
|
|
|
85
85
|
end
|
|
86
86
|
end
|
|
87
87
|
|
|
88
|
+
describe 'test attribute "attribution"' do
|
|
89
|
+
it 'should work' do
|
|
90
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
describe 'test attribute "scope"' do
|
|
95
|
+
it 'should work' do
|
|
96
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
88
100
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zernio-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.783
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -1660,13 +1660,19 @@ files:
|
|
|
1660
1660
|
- docs/UploadedOrDerivedAudienceCompaniesInner.md
|
|
1661
1661
|
- docs/UploadedOrDerivedAudienceMatchRulesInner.md
|
|
1662
1662
|
- docs/UsageApi.md
|
|
1663
|
+
- docs/UsageAttributionGroup.md
|
|
1664
|
+
- docs/UsageAttributionSlice.md
|
|
1665
|
+
- docs/UsageAttributionSliceByProduct.md
|
|
1663
1666
|
- docs/UsageMetering.md
|
|
1667
|
+
- docs/UsageMeteringAttribution.md
|
|
1664
1668
|
- docs/UsageMeteringCallUsage.md
|
|
1665
1669
|
- docs/UsageMeteringCallUsageWhatsapp.md
|
|
1666
1670
|
- docs/UsageMeteringDaysInner.md
|
|
1667
1671
|
- docs/UsageMeteringLineItemsInner.md
|
|
1668
1672
|
- docs/UsageMeteringPeaks.md
|
|
1669
1673
|
- docs/UsageMeteringPeriod.md
|
|
1674
|
+
- docs/UsageMeteringScope.md
|
|
1675
|
+
- docs/UsageMeteringScopeOneOf.md
|
|
1670
1676
|
- docs/UsageMeteringTax.md
|
|
1671
1677
|
- docs/UsageMeteringTotals.md
|
|
1672
1678
|
- docs/UsageStats.md
|
|
@@ -3479,13 +3485,19 @@ files:
|
|
|
3479
3485
|
- lib/zernio-sdk/models/uploaded_or_derived_audience.rb
|
|
3480
3486
|
- lib/zernio-sdk/models/uploaded_or_derived_audience_companies_inner.rb
|
|
3481
3487
|
- lib/zernio-sdk/models/uploaded_or_derived_audience_match_rules_inner.rb
|
|
3488
|
+
- lib/zernio-sdk/models/usage_attribution_group.rb
|
|
3489
|
+
- lib/zernio-sdk/models/usage_attribution_slice.rb
|
|
3490
|
+
- lib/zernio-sdk/models/usage_attribution_slice_by_product.rb
|
|
3482
3491
|
- lib/zernio-sdk/models/usage_metering.rb
|
|
3492
|
+
- lib/zernio-sdk/models/usage_metering_attribution.rb
|
|
3483
3493
|
- lib/zernio-sdk/models/usage_metering_call_usage.rb
|
|
3484
3494
|
- lib/zernio-sdk/models/usage_metering_call_usage_whatsapp.rb
|
|
3485
3495
|
- lib/zernio-sdk/models/usage_metering_days_inner.rb
|
|
3486
3496
|
- lib/zernio-sdk/models/usage_metering_line_items_inner.rb
|
|
3487
3497
|
- lib/zernio-sdk/models/usage_metering_peaks.rb
|
|
3488
3498
|
- lib/zernio-sdk/models/usage_metering_period.rb
|
|
3499
|
+
- lib/zernio-sdk/models/usage_metering_scope.rb
|
|
3500
|
+
- lib/zernio-sdk/models/usage_metering_scope_one_of.rb
|
|
3489
3501
|
- lib/zernio-sdk/models/usage_metering_tax.rb
|
|
3490
3502
|
- lib/zernio-sdk/models/usage_metering_totals.rb
|
|
3491
3503
|
- lib/zernio-sdk/models/usage_stats.rb
|
|
@@ -5280,12 +5292,18 @@ files:
|
|
|
5280
5292
|
- spec/models/uploaded_or_derived_audience_companies_inner_spec.rb
|
|
5281
5293
|
- spec/models/uploaded_or_derived_audience_match_rules_inner_spec.rb
|
|
5282
5294
|
- spec/models/uploaded_or_derived_audience_spec.rb
|
|
5295
|
+
- spec/models/usage_attribution_group_spec.rb
|
|
5296
|
+
- spec/models/usage_attribution_slice_by_product_spec.rb
|
|
5297
|
+
- spec/models/usage_attribution_slice_spec.rb
|
|
5298
|
+
- spec/models/usage_metering_attribution_spec.rb
|
|
5283
5299
|
- spec/models/usage_metering_call_usage_spec.rb
|
|
5284
5300
|
- spec/models/usage_metering_call_usage_whatsapp_spec.rb
|
|
5285
5301
|
- spec/models/usage_metering_days_inner_spec.rb
|
|
5286
5302
|
- spec/models/usage_metering_line_items_inner_spec.rb
|
|
5287
5303
|
- spec/models/usage_metering_peaks_spec.rb
|
|
5288
5304
|
- spec/models/usage_metering_period_spec.rb
|
|
5305
|
+
- spec/models/usage_metering_scope_one_of_spec.rb
|
|
5306
|
+
- spec/models/usage_metering_scope_spec.rb
|
|
5289
5307
|
- spec/models/usage_metering_spec.rb
|
|
5290
5308
|
- spec/models/usage_metering_tax_spec.rb
|
|
5291
5309
|
- spec/models/usage_metering_totals_spec.rb
|
|
@@ -6082,6 +6100,7 @@ test_files:
|
|
|
6082
6100
|
- spec/models/list_inbox_conversations200_response_meta_accounts_skipped_inner_spec.rb
|
|
6083
6101
|
- spec/models/create_discord_scheduled_event_request_entity_spec.rb
|
|
6084
6102
|
- spec/models/x_article_block_spec.rb
|
|
6103
|
+
- spec/models/usage_attribution_slice_spec.rb
|
|
6085
6104
|
- spec/models/x_article_entity_one_of3_value_spec.rb
|
|
6086
6105
|
- spec/models/update_value_rule_set200_response_spec.rb
|
|
6087
6106
|
- spec/models/reply_to_google_business_review_request_spec.rb
|
|
@@ -6353,6 +6372,7 @@ test_files:
|
|
|
6353
6372
|
- spec/models/update_sequence_request_spec.rb
|
|
6354
6373
|
- spec/models/get_linked_in_aggregate_analytics400_response_spec.rb
|
|
6355
6374
|
- spec/models/dm_button_spec.rb
|
|
6375
|
+
- spec/models/usage_metering_scope_spec.rb
|
|
6356
6376
|
- spec/models/restore_workflow_version200_response_workflow_spec.rb
|
|
6357
6377
|
- spec/models/get_whats_app_template200_response_template_spec.rb
|
|
6358
6378
|
- spec/models/unfollow_user200_response_spec.rb
|
|
@@ -6635,6 +6655,7 @@ test_files:
|
|
|
6635
6655
|
- spec/models/inbox_message_edit_history_entry_spec.rb
|
|
6636
6656
|
- spec/models/move_whats_app_number_to_profile_request_spec.rb
|
|
6637
6657
|
- spec/models/schedule_broadcast200_response_spec.rb
|
|
6658
|
+
- spec/models/usage_attribution_slice_by_product_spec.rb
|
|
6638
6659
|
- spec/models/list_ad_images200_response_spec.rb
|
|
6639
6660
|
- spec/models/linked_in_ads_platform_data_spec.rb
|
|
6640
6661
|
- spec/models/create_ad_audience201_response_spec.rb
|
|
@@ -6678,11 +6699,13 @@ test_files:
|
|
|
6678
6699
|
- spec/models/x_article_entity_one_of5_spec.rb
|
|
6679
6700
|
- spec/models/fetch_google_business_verification_options200_response_spec.rb
|
|
6680
6701
|
- spec/models/move_account_to_profile_request_spec.rb
|
|
6702
|
+
- spec/models/usage_metering_scope_one_of_spec.rb
|
|
6681
6703
|
- spec/models/linked_in_ads_platform_data_follower_description_spec.rb
|
|
6682
6704
|
- spec/models/get_ad_creative200_response_spec.rb
|
|
6683
6705
|
- spec/models/create_conversion_destination201_response_spec.rb
|
|
6684
6706
|
- spec/models/call_record_call_errors_inner_spec.rb
|
|
6685
6707
|
- spec/models/get_inbox_source_breakdown200_response_spec.rb
|
|
6708
|
+
- spec/models/usage_metering_attribution_spec.rb
|
|
6686
6709
|
- spec/models/get_broadcast200_response_broadcast_spec.rb
|
|
6687
6710
|
- spec/models/list_calls200_response_calls_inner_spec.rb
|
|
6688
6711
|
- spec/models/appeal_sms_registration200_response_spec.rb
|
|
@@ -7239,6 +7262,7 @@ test_files:
|
|
|
7239
7262
|
- spec/models/update_ad_tracking_tags_request_spec.rb
|
|
7240
7263
|
- spec/models/webhook_payload_whats_app_template_category_updated_spec.rb
|
|
7241
7264
|
- spec/models/set_whatsapp_business_username_request_spec.rb
|
|
7265
|
+
- spec/models/usage_attribution_group_spec.rb
|
|
7242
7266
|
- spec/models/create_inbox_conversation_request_template_button_params_inner_spec.rb
|
|
7243
7267
|
- spec/models/send_inbox_message_request_interactive_action_one_of6_spec.rb
|
|
7244
7268
|
- spec/models/list_whats_app_number_countries200_response_spec.rb
|