late-sdk 0.0.690 → 0.0.692

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 (29) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -0
  3. data/docs/AdCampaignsApi.md +2 -2
  4. data/docs/MoveWhatsAppNumberToProfile200Response.md +22 -0
  5. data/docs/MoveWhatsAppNumberToProfileRequest.md +18 -0
  6. data/docs/UpdateAdCampaign200Response.md +5 -1
  7. data/docs/UpdateAdCampaignRequest.md +10 -6
  8. data/docs/UpdateAdCampaignRequestPlatformSpecificData.md +1 -1
  9. data/docs/WhatsAppPhoneNumbersApi.md +72 -0
  10. data/lib/zernio-sdk/api/ad_campaigns_api.rb +4 -4
  11. data/lib/zernio-sdk/api/whats_app_phone_numbers_api.rb +74 -0
  12. data/lib/zernio-sdk/models/move_whats_app_number_to_profile200_response.rb +169 -0
  13. data/lib/zernio-sdk/models/move_whats_app_number_to_profile_request.rb +165 -0
  14. data/lib/zernio-sdk/models/update_ad_campaign200_response.rb +21 -1
  15. data/lib/zernio-sdk/models/update_ad_campaign_request.rb +42 -21
  16. data/lib/zernio-sdk/models/update_ad_campaign_request_budget.rb +1 -0
  17. data/lib/zernio-sdk/models/update_ad_campaign_request_platform_specific_data.rb +2 -2
  18. data/lib/zernio-sdk/version.rb +1 -1
  19. data/lib/zernio-sdk.rb +2 -0
  20. data/openapi.yaml +96 -33
  21. data/spec/api/ad_campaigns_api_spec.rb +2 -2
  22. data/spec/api/whats_app_phone_numbers_api_spec.rb +13 -0
  23. data/spec/models/move_whats_app_number_to_profile200_response_spec.rb +48 -0
  24. data/spec/models/move_whats_app_number_to_profile_request_spec.rb +36 -0
  25. data/spec/models/update_ad_campaign200_response_spec.rb +12 -0
  26. data/spec/models/update_ad_campaign_request_spec.rb +19 -7
  27. data/zernio-sdk-0.0.692.gem +0 -0
  28. metadata +10 -2
  29. data/zernio-sdk-0.0.690.gem +0 -0
@@ -131,6 +131,19 @@ describe 'WhatsAppPhoneNumbersApi' do
131
131
  end
132
132
  end
133
133
 
134
+ # unit tests for move_whats_app_number_to_profile
135
+ # Move a number to another profile
136
+ # Move a provisioned number to a different profile. A number is not a single record. Alongside the number itself there are hidden telephony owner accounts (platform `phone`, plus `sms` when SMS is enabled) and, once WhatsApp is connected, the `whatsapp` account. They all carry a profileId and this endpoint moves them together. Use this instead of `PATCH /v1/accounts/{accountId}`: that one moves the social account only and leaves the number itself pinned to its original profile, which splits the number across two profiles. Connecting a provisioned number always places it on the profile the NUMBER is on, so a `profileId` passed to `GET /v1/connect/whatsapp` cannot re-home it and a later reconnect pulls the account back. This endpoint is how you re-home it. `id` is the number record id from `GET /v1/phone-numbers`, not an account id. A profile holds at most one account per platform, so the destination must be free of every platform this number occupies.
137
+ # @param id WhatsAppPhoneNumber id.
138
+ # @param move_whats_app_number_to_profile_request
139
+ # @param [Hash] opts the optional parameters
140
+ # @return [MoveWhatsAppNumberToProfile200Response]
141
+ describe 'move_whats_app_number_to_profile test' do
142
+ it 'should work' do
143
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
144
+ end
145
+ end
146
+
134
147
  # unit tests for purchase_whats_app_phone_number
135
148
  # Purchase phone number
136
149
  # Deprecated alias of `/v1/phone-numbers/purchase`; same contract. New integrations should use that path. Payment-first: you do not pick a specific number, the system provisions one and auto-assigns it. With usage-based billing active and a payment method on file, the number provisions inline and bills per month on your usage-based invoice (there is no checkout redirect). No payment method on file returns `402 PAYMENT_REQUIRED`; a regulated country returns `202` with `status: \"kyc_required\"` and a `kycUrl`. Requires usage-based billing (the Usage plan). The maximum number of phone numbers is determined by the user's plan.
@@ -0,0 +1,48 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
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::MoveWhatsAppNumberToProfile200Response
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Zernio::MoveWhatsAppNumberToProfile200Response do
21
+ #let(:instance) { Zernio::MoveWhatsAppNumberToProfile200Response.new }
22
+
23
+ describe 'test an instance of MoveWhatsAppNumberToProfile200Response' do
24
+ it 'should create an instance of MoveWhatsAppNumberToProfile200Response' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Zernio::MoveWhatsAppNumberToProfile200Response)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "message"' 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 "profile_id"' 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 "moved_platforms"' 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
+ 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
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::MoveWhatsAppNumberToProfileRequest
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Zernio::MoveWhatsAppNumberToProfileRequest do
21
+ #let(:instance) { Zernio::MoveWhatsAppNumberToProfileRequest.new }
22
+
23
+ describe 'test an instance of MoveWhatsAppNumberToProfileRequest' do
24
+ it 'should create an instance of MoveWhatsAppNumberToProfileRequest' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Zernio::MoveWhatsAppNumberToProfileRequest)
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
@@ -55,6 +55,18 @@ describe Zernio::UpdateAdCampaign200Response do
55
55
  end
56
56
  end
57
57
 
58
+ describe 'test attribute "bid_amount"' 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 "roas_average_floor"' 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
+
58
70
  describe 'test attribute "platform_specific_data"' do
59
71
  it 'should work' do
60
72
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -27,29 +27,41 @@ describe Zernio::UpdateAdCampaignRequest do
27
27
  end
28
28
  end
29
29
 
30
+ describe 'test attribute "platform"' 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', ["facebook", "instagram", "google"])
34
+ # validator.allowable_values.each do |value|
35
+ # expect { instance.platform = value }.not_to raise_error
36
+ # end
37
+ end
38
+ end
39
+
30
40
  describe 'test attribute "account_id"' do
31
41
  it 'should work' do
32
42
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
43
  end
34
44
  end
35
45
 
36
- describe 'test attribute "platform"' do
46
+ describe 'test attribute "bid_strategy"' do
37
47
  it 'should work' do
38
48
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["facebook", "instagram"])
40
- # validator.allowable_values.each do |value|
41
- # expect { instance.platform = value }.not_to raise_error
42
- # end
43
49
  end
44
50
  end
45
51
 
46
- describe 'test attribute "budget"' do
52
+ describe 'test attribute "bid_amount"' do
47
53
  it 'should work' do
48
54
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
49
55
  end
50
56
  end
51
57
 
52
- describe 'test attribute "bid_strategy"' do
58
+ describe 'test attribute "roas_average_floor"' 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 "budget"' do
53
65
  it 'should work' do
54
66
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
55
67
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: late-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.690
4
+ version: 0.0.692
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -1077,6 +1077,8 @@ files:
1077
1077
  - docs/MoneyAmount.md
1078
1078
  - docs/MoveAccountToProfile200Response.md
1079
1079
  - docs/MoveAccountToProfileRequest.md
1080
+ - docs/MoveWhatsAppNumberToProfile200Response.md
1081
+ - docs/MoveWhatsAppNumberToProfileRequest.md
1080
1082
  - docs/OnVerificationApprovedRequest.md
1081
1083
  - docs/OnVerificationApprovedRequestVerification.md
1082
1084
  - docs/OnVerificationFailedRequest.md
@@ -2759,6 +2761,8 @@ files:
2759
2761
  - lib/zernio-sdk/models/money_amount.rb
2760
2762
  - lib/zernio-sdk/models/move_account_to_profile200_response.rb
2761
2763
  - lib/zernio-sdk/models/move_account_to_profile_request.rb
2764
+ - lib/zernio-sdk/models/move_whats_app_number_to_profile200_response.rb
2765
+ - lib/zernio-sdk/models/move_whats_app_number_to_profile_request.rb
2762
2766
  - lib/zernio-sdk/models/on_verification_approved_request.rb
2763
2767
  - lib/zernio-sdk/models/on_verification_approved_request_verification.rb
2764
2768
  - lib/zernio-sdk/models/on_verification_failed_request.rb
@@ -4409,6 +4413,8 @@ files:
4409
4413
  - spec/models/money_spec.rb
4410
4414
  - spec/models/move_account_to_profile200_response_spec.rb
4411
4415
  - spec/models/move_account_to_profile_request_spec.rb
4416
+ - spec/models/move_whats_app_number_to_profile200_response_spec.rb
4417
+ - spec/models/move_whats_app_number_to_profile_request_spec.rb
4412
4418
  - spec/models/on_verification_approved_request_spec.rb
4413
4419
  - spec/models/on_verification_approved_request_verification_spec.rb
4414
4420
  - spec/models/on_verification_failed_request_spec.rb
@@ -5018,7 +5024,7 @@ files:
5018
5024
  - spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
5019
5025
  - spec/models/you_tube_video_retention_response_spec.rb
5020
5026
  - spec/spec_helper.rb
5021
- - zernio-sdk-0.0.690.gem
5027
+ - zernio-sdk-0.0.692.gem
5022
5028
  - zernio-sdk.gemspec
5023
5029
  homepage: https://openapi-generator.tech
5024
5030
  licenses:
@@ -5424,6 +5430,7 @@ test_files:
5424
5430
  - spec/models/list_inbox_conversations200_response_data_inner_metadata_spec.rb
5425
5431
  - spec/models/inbox_message_edit_attachment_spec.rb
5426
5432
  - spec/models/list_google_business_place_actions200_response_place_action_links_inner_spec.rb
5433
+ - spec/models/move_whats_app_number_to_profile200_response_spec.rb
5427
5434
  - spec/models/shared_ad_account_spec.rb
5428
5435
  - spec/models/remediate_phone_number_request_spec.rb
5429
5436
  - spec/models/get_webhook_logs200_response_pagination_spec.rb
@@ -5959,6 +5966,7 @@ test_files:
5959
5966
  - spec/models/get_dsa_recommendations200_response_spec.rb
5960
5967
  - spec/models/profile_get_response_spec.rb
5961
5968
  - spec/models/delete_google_business_media200_response_spec.rb
5969
+ - spec/models/move_whats_app_number_to_profile_request_spec.rb
5962
5970
  - spec/models/you_tube_daily_views_response_date_range_spec.rb
5963
5971
  - spec/models/send_broadcast200_response_spec.rb
5964
5972
  - spec/models/update_webhook_settings200_response_spec.rb
Binary file