late-sdk 0.0.569 → 0.0.571
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 +4 -0
- data/docs/AdCampaignsApi.md +92 -0
- data/docs/CheckPhoneNumberAvailability200Response.md +3 -1
- data/docs/CheckPhoneNumberAvailability200ResponseAreaOptionsInner.md +22 -0
- data/docs/CreatePhoneNumberKycLinkRequest.md +2 -0
- data/docs/ListAdKeywords200Response.md +20 -0
- data/docs/ListAdKeywords200ResponseKeywordsInner.md +48 -0
- data/docs/PhoneNumbersApi.md +3 -1
- data/docs/PurchasePhoneNumberRequest.md +2 -0
- data/docs/SubmitPhoneNumberKycRequest.md +2 -0
- data/docs/SubmitWhatsAppNumberKycRequest.md +2 -0
- data/docs/WhatsAppPhoneNumbersApi.md +3 -1
- data/lib/zernio-sdk/api/ad_campaigns_api.rb +114 -0
- data/lib/zernio-sdk/api/phone_numbers_api.rb +3 -0
- data/lib/zernio-sdk/api/whats_app_phone_numbers_api.rb +3 -0
- data/lib/zernio-sdk/models/check_phone_number_availability200_response.rb +16 -4
- data/lib/zernio-sdk/models/check_phone_number_availability200_response_area_options_inner.rb +168 -0
- data/lib/zernio-sdk/models/create_phone_number_kyc_link_request.rb +32 -1
- data/lib/zernio-sdk/models/list_ad_keywords200_response.rb +158 -0
- data/lib/zernio-sdk/models/list_ad_keywords200_response_keywords_inner.rb +348 -0
- data/lib/zernio-sdk/models/purchase_phone_number409_response.rb +2 -2
- data/lib/zernio-sdk/models/purchase_phone_number_request.rb +32 -1
- data/lib/zernio-sdk/models/submit_phone_number_kyc_request.rb +32 -1
- data/lib/zernio-sdk/models/submit_whats_app_number_kyc_request.rb +32 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +3 -0
- data/openapi.yaml +120 -10
- data/spec/api/ad_campaigns_api_spec.rb +22 -0
- data/spec/api/phone_numbers_api_spec.rb +1 -0
- data/spec/api/whats_app_phone_numbers_api_spec.rb +1 -0
- data/spec/models/check_phone_number_availability200_response_area_options_inner_spec.rb +48 -0
- data/spec/models/check_phone_number_availability200_response_spec.rb +6 -0
- data/spec/models/create_phone_number_kyc_link_request_spec.rb +6 -0
- data/spec/models/list_ad_keywords200_response_keywords_inner_spec.rb +138 -0
- data/spec/models/list_ad_keywords200_response_spec.rb +42 -0
- data/spec/models/purchase_phone_number409_response_spec.rb +1 -1
- data/spec/models/purchase_phone_number_request_spec.rb +6 -0
- data/spec/models/submit_phone_number_kyc_request_spec.rb +6 -0
- data/spec/models/submit_whats_app_number_kyc_request_spec.rb +6 -0
- data/zernio-sdk-0.0.571.gem +0 -0
- metadata +15 -3
- data/zernio-sdk-0.0.569.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 326fe5283c3f44d821e76685fb8261364e72e674111f7a5e2ca368d2d6429cf4
|
|
4
|
+
data.tar.gz: cac57e806256fb20c81f68555fe89ea686d75eeccd19436c99940d9f856f87db
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b7fa3012eeec41f76e36b6b5ba9f734fb7421495367d79920dd6a045c3506b290b63b4181643ecc1b33e3b59d35b0081ea444fc5744265c460f4621493db1cc3
|
|
7
|
+
data.tar.gz: 90126b57f1a94912ce330f5a53c8513e9dd3cd304d0fd67e7f448fb241be8792e8188186a78c5471b93a790a21da63ea85db52b0888d25c9b657158375233ea8
|
data/README.md
CHANGED
|
@@ -122,6 +122,7 @@ Class | Method | HTTP request | Description
|
|
|
122
122
|
*Zernio::AdCampaignsApi* | [**get_ad_tree**](docs/AdCampaignsApi.md#get_ad_tree) | **GET** /v1/ads/tree | Get campaign tree
|
|
123
123
|
*Zernio::AdCampaignsApi* | [**get_ads_timeline**](docs/AdCampaignsApi.md#get_ads_timeline) | **GET** /v1/ads/timeline | Get daily account metrics
|
|
124
124
|
*Zernio::AdCampaignsApi* | [**list_ad_campaigns**](docs/AdCampaignsApi.md#list_ad_campaigns) | **GET** /v1/ads/campaigns | List campaigns
|
|
125
|
+
*Zernio::AdCampaignsApi* | [**list_ad_keywords**](docs/AdCampaignsApi.md#list_ad_keywords) | **GET** /v1/ads/keywords | List Search keywords
|
|
125
126
|
*Zernio::AdCampaignsApi* | [**list_ads**](docs/AdCampaignsApi.md#list_ads) | **GET** /v1/ads | List ads
|
|
126
127
|
*Zernio::AdCampaignsApi* | [**update_ad**](docs/AdCampaignsApi.md#update_ad) | **PUT** /v1/ads/{adId} | Update ad
|
|
127
128
|
*Zernio::AdCampaignsApi* | [**update_ad_campaign**](docs/AdCampaignsApi.md#update_ad_campaign) | **PUT** /v1/ads/campaigns/{campaignId} | Update a campaign
|
|
@@ -695,6 +696,7 @@ Class | Method | HTTP request | Description
|
|
|
695
696
|
- [Zernio::CancelBroadcast200Response](docs/CancelBroadcast200Response.md)
|
|
696
697
|
- [Zernio::CancelPhoneNumberPortIn200Response](docs/CancelPhoneNumberPortIn200Response.md)
|
|
697
698
|
- [Zernio::CheckPhoneNumberAvailability200Response](docs/CheckPhoneNumberAvailability200Response.md)
|
|
699
|
+
- [Zernio::CheckPhoneNumberAvailability200ResponseAreaOptionsInner](docs/CheckPhoneNumberAvailability200ResponseAreaOptionsInner.md)
|
|
698
700
|
- [Zernio::CheckPhoneNumberPortability200Response](docs/CheckPhoneNumberPortability200Response.md)
|
|
699
701
|
- [Zernio::CheckPhoneNumberPortability200ResponseResultsInner](docs/CheckPhoneNumberPortability200ResponseResultsInner.md)
|
|
700
702
|
- [Zernio::CheckPhoneNumberPortabilityRequest](docs/CheckPhoneNumberPortabilityRequest.md)
|
|
@@ -1365,6 +1367,8 @@ Class | Method | HTTP request | Description
|
|
|
1365
1367
|
- [Zernio::ListAdCatalogs200ResponseCatalogsInner](docs/ListAdCatalogs200ResponseCatalogsInner.md)
|
|
1366
1368
|
- [Zernio::ListAdCreatives200Response](docs/ListAdCreatives200Response.md)
|
|
1367
1369
|
- [Zernio::ListAdImages200Response](docs/ListAdImages200Response.md)
|
|
1370
|
+
- [Zernio::ListAdKeywords200Response](docs/ListAdKeywords200Response.md)
|
|
1371
|
+
- [Zernio::ListAdKeywords200ResponseKeywordsInner](docs/ListAdKeywords200ResponseKeywordsInner.md)
|
|
1368
1372
|
- [Zernio::ListAdLabels200Response](docs/ListAdLabels200Response.md)
|
|
1369
1373
|
- [Zernio::ListAdStudies200Response](docs/ListAdStudies200Response.md)
|
|
1370
1374
|
- [Zernio::ListAds200Response](docs/ListAds200Response.md)
|
data/docs/AdCampaignsApi.md
CHANGED
|
@@ -18,6 +18,7 @@ All URIs are relative to *https://zernio.com/api*
|
|
|
18
18
|
| [**get_ad_tree**](AdCampaignsApi.md#get_ad_tree) | **GET** /v1/ads/tree | Get campaign tree |
|
|
19
19
|
| [**get_ads_timeline**](AdCampaignsApi.md#get_ads_timeline) | **GET** /v1/ads/timeline | Get daily account metrics |
|
|
20
20
|
| [**list_ad_campaigns**](AdCampaignsApi.md#list_ad_campaigns) | **GET** /v1/ads/campaigns | List campaigns |
|
|
21
|
+
| [**list_ad_keywords**](AdCampaignsApi.md#list_ad_keywords) | **GET** /v1/ads/keywords | List Search keywords |
|
|
21
22
|
| [**list_ads**](AdCampaignsApi.md#list_ads) | **GET** /v1/ads | List ads |
|
|
22
23
|
| [**update_ad**](AdCampaignsApi.md#update_ad) | **PUT** /v1/ads/{adId} | Update ad |
|
|
23
24
|
| [**update_ad_campaign**](AdCampaignsApi.md#update_ad_campaign) | **PUT** /v1/ads/campaigns/{campaignId} | Update a campaign |
|
|
@@ -1071,6 +1072,97 @@ end
|
|
|
1071
1072
|
- **Accept**: application/json
|
|
1072
1073
|
|
|
1073
1074
|
|
|
1075
|
+
## list_ad_keywords
|
|
1076
|
+
|
|
1077
|
+
> <ListAdKeywords200Response> list_ad_keywords(opts)
|
|
1078
|
+
|
|
1079
|
+
List Search keywords
|
|
1080
|
+
|
|
1081
|
+
Returns the Google Search keyword criteria (positive and negative) synced from connected Google Ads accounts, one row per ad-group keyword. Populated by the periodic ads discovery sweep (roughly every 3 hours per account), so keywords added on Google appear with that delay. Campaign-level negative keywords are not included; only ad-group-level criteria are.
|
|
1082
|
+
|
|
1083
|
+
### Examples
|
|
1084
|
+
|
|
1085
|
+
```ruby
|
|
1086
|
+
require 'time'
|
|
1087
|
+
require 'zernio-sdk'
|
|
1088
|
+
# setup authorization
|
|
1089
|
+
Zernio.configure do |config|
|
|
1090
|
+
# Configure Bearer authorization (JWT): bearerAuth
|
|
1091
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1092
|
+
end
|
|
1093
|
+
|
|
1094
|
+
api_instance = Zernio::AdCampaignsApi.new
|
|
1095
|
+
opts = {
|
|
1096
|
+
page: 56, # Integer | Page number (1-based)
|
|
1097
|
+
limit: 56, # Integer |
|
|
1098
|
+
account_id: 'account_id_example', # String | Social account ID
|
|
1099
|
+
ad_account_id: 'ad_account_id_example', # String | Platform ad account ID (Google customer ID). Mirrors the same filter on /v1/ads.
|
|
1100
|
+
profile_id: 'profile_id_example', # String | Profile ID
|
|
1101
|
+
campaign_id: 'campaign_id_example', # String | Platform campaign ID
|
|
1102
|
+
ad_set_id: 'ad_set_id_example', # String | Platform ad group ID (Google ad group)
|
|
1103
|
+
status: 'active', # String | Keyword criterion status
|
|
1104
|
+
match_type: 'exact', # String |
|
|
1105
|
+
negative: true, # Boolean | true = negative keywords only, false = positive only. Omit for both.
|
|
1106
|
+
search: 'search_example' # String | Case-insensitive substring match on the keyword text
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
begin
|
|
1110
|
+
# List Search keywords
|
|
1111
|
+
result = api_instance.list_ad_keywords(opts)
|
|
1112
|
+
p result
|
|
1113
|
+
rescue Zernio::ApiError => e
|
|
1114
|
+
puts "Error when calling AdCampaignsApi->list_ad_keywords: #{e}"
|
|
1115
|
+
end
|
|
1116
|
+
```
|
|
1117
|
+
|
|
1118
|
+
#### Using the list_ad_keywords_with_http_info variant
|
|
1119
|
+
|
|
1120
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1121
|
+
|
|
1122
|
+
> <Array(<ListAdKeywords200Response>, Integer, Hash)> list_ad_keywords_with_http_info(opts)
|
|
1123
|
+
|
|
1124
|
+
```ruby
|
|
1125
|
+
begin
|
|
1126
|
+
# List Search keywords
|
|
1127
|
+
data, status_code, headers = api_instance.list_ad_keywords_with_http_info(opts)
|
|
1128
|
+
p status_code # => 2xx
|
|
1129
|
+
p headers # => { ... }
|
|
1130
|
+
p data # => <ListAdKeywords200Response>
|
|
1131
|
+
rescue Zernio::ApiError => e
|
|
1132
|
+
puts "Error when calling AdCampaignsApi->list_ad_keywords_with_http_info: #{e}"
|
|
1133
|
+
end
|
|
1134
|
+
```
|
|
1135
|
+
|
|
1136
|
+
### Parameters
|
|
1137
|
+
|
|
1138
|
+
| Name | Type | Description | Notes |
|
|
1139
|
+
| ---- | ---- | ----------- | ----- |
|
|
1140
|
+
| **page** | **Integer** | Page number (1-based) | [optional][default to 1] |
|
|
1141
|
+
| **limit** | **Integer** | | [optional][default to 50] |
|
|
1142
|
+
| **account_id** | **String** | Social account ID | [optional] |
|
|
1143
|
+
| **ad_account_id** | **String** | Platform ad account ID (Google customer ID). Mirrors the same filter on /v1/ads. | [optional] |
|
|
1144
|
+
| **profile_id** | **String** | Profile ID | [optional] |
|
|
1145
|
+
| **campaign_id** | **String** | Platform campaign ID | [optional] |
|
|
1146
|
+
| **ad_set_id** | **String** | Platform ad group ID (Google ad group) | [optional] |
|
|
1147
|
+
| **status** | **String** | Keyword criterion status | [optional] |
|
|
1148
|
+
| **match_type** | **String** | | [optional] |
|
|
1149
|
+
| **negative** | **Boolean** | true = negative keywords only, false = positive only. Omit for both. | [optional] |
|
|
1150
|
+
| **search** | **String** | Case-insensitive substring match on the keyword text | [optional] |
|
|
1151
|
+
|
|
1152
|
+
### Return type
|
|
1153
|
+
|
|
1154
|
+
[**ListAdKeywords200Response**](ListAdKeywords200Response.md)
|
|
1155
|
+
|
|
1156
|
+
### Authorization
|
|
1157
|
+
|
|
1158
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1159
|
+
|
|
1160
|
+
### HTTP request headers
|
|
1161
|
+
|
|
1162
|
+
- **Content-Type**: Not defined
|
|
1163
|
+
- **Accept**: application/json
|
|
1164
|
+
|
|
1165
|
+
|
|
1074
1166
|
## list_ads
|
|
1075
1167
|
|
|
1076
1168
|
> <ListAds200Response> list_ads(opts)
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
| **available** | **Boolean** | Whether deliverable voice inventory exists right now. | [optional] |
|
|
10
10
|
| **address_constraint** | **String** | | [optional] |
|
|
11
11
|
| **areas** | **Array<String>** | For `geo` only — the area(s) the registered address must be in. | [optional] |
|
|
12
|
+
| **area_options** | [**Array<CheckPhoneNumberAvailability200ResponseAreaOptionsInner>**](CheckPhoneNumberAvailability200ResponseAreaOptionsInner.md) | Live inventory grouped by area code, largest stock first. Empty when out of stock (or the area lookup failed). Pass a chosen `ndc` as `areaCode` on POST /v1/phone-numbers/purchase (or on the KYC submit for regulated countries) to require that area. | [optional] |
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,7 +21,8 @@ instance = Zernio::CheckPhoneNumberAvailability200Response.new(
|
|
|
20
21
|
number_type: null,
|
|
21
22
|
available: null,
|
|
22
23
|
address_constraint: null,
|
|
23
|
-
areas: null
|
|
24
|
+
areas: null,
|
|
25
|
+
area_options: null
|
|
24
26
|
)
|
|
25
27
|
```
|
|
26
28
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Zernio::CheckPhoneNumberAvailability200ResponseAreaOptionsInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **ndc** | **String** | Area code (national destination code), e.g. \"11\". | [optional] |
|
|
8
|
+
| **name** | **String** | Human-readable area name, e.g. \"Sao Paulo\". | [optional] |
|
|
9
|
+
| **count** | **Integer** | Deliverable numbers seen in this area on the latest inventory page. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'zernio-sdk'
|
|
15
|
+
|
|
16
|
+
instance = Zernio::CheckPhoneNumberAvailability200ResponseAreaOptionsInner.new(
|
|
17
|
+
ndc: null,
|
|
18
|
+
name: null,
|
|
19
|
+
count: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **profile_id** | **String** | | |
|
|
8
8
|
| **country** | **String** | ISO 3166-1 alpha-2 country code (must be a regulated/KYC country). | |
|
|
9
|
+
| **area_code** | **String** | Area code (NDC) the eventual number must be in. Hard constraint carried by the link; the end customer filling the form makes no area choice. Options come from GET /v1/phone-numbers/availability (areaOptions). | [optional] |
|
|
9
10
|
| **branding** | [**CreatePhoneNumberKycLinkRequestBranding**](CreatePhoneNumberKycLinkRequestBranding.md) | | [optional] |
|
|
10
11
|
| **redirect_url** | **String** | Where to send the end customer's browser after a successful submit. On completion Zernio appends `kyc=submitted` and `country=<ISO-2>` as query params. When omitted, the hosted page shows a built-in confirmation screen instead. | [optional] |
|
|
11
12
|
|
|
@@ -17,6 +18,7 @@ require 'zernio-sdk'
|
|
|
17
18
|
instance = Zernio::CreatePhoneNumberKycLinkRequest.new(
|
|
18
19
|
profile_id: null,
|
|
19
20
|
country: null,
|
|
21
|
+
area_code: null,
|
|
20
22
|
branding: null,
|
|
21
23
|
redirect_url: null
|
|
22
24
|
)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Zernio::ListAdKeywords200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **keywords** | [**Array<ListAdKeywords200ResponseKeywordsInner>**](ListAdKeywords200ResponseKeywordsInner.md) | | [optional] |
|
|
8
|
+
| **pagination** | [**Pagination**](Pagination.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'zernio-sdk'
|
|
14
|
+
|
|
15
|
+
instance = Zernio::ListAdKeywords200Response.new(
|
|
16
|
+
keywords: null,
|
|
17
|
+
pagination: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Zernio::ListAdKeywords200ResponseKeywordsInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | [optional] |
|
|
8
|
+
| **account_id** | **String** | Social account ID owning the sync | [optional] |
|
|
9
|
+
| **profile_id** | **String** | | [optional] |
|
|
10
|
+
| **platform** | **String** | | [optional] |
|
|
11
|
+
| **ad_account_id** | **String** | Google customer ID | [optional] |
|
|
12
|
+
| **campaign_id** | **String** | | [optional] |
|
|
13
|
+
| **campaign_name** | **String** | | [optional] |
|
|
14
|
+
| **campaign_status** | **String** | | [optional] |
|
|
15
|
+
| **ad_set_id** | **String** | Google ad group ID | [optional] |
|
|
16
|
+
| **ad_set_name** | **String** | | [optional] |
|
|
17
|
+
| **ad_set_status** | **String** | | [optional] |
|
|
18
|
+
| **keyword** | **String** | | [optional] |
|
|
19
|
+
| **match_type** | **String** | | [optional] |
|
|
20
|
+
| **status** | **String** | | [optional] |
|
|
21
|
+
| **negative** | **Boolean** | | [optional] |
|
|
22
|
+
| **synced_at** | **Time** | | [optional] |
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
```ruby
|
|
27
|
+
require 'zernio-sdk'
|
|
28
|
+
|
|
29
|
+
instance = Zernio::ListAdKeywords200ResponseKeywordsInner.new(
|
|
30
|
+
id: null,
|
|
31
|
+
account_id: null,
|
|
32
|
+
profile_id: null,
|
|
33
|
+
platform: null,
|
|
34
|
+
ad_account_id: null,
|
|
35
|
+
campaign_id: null,
|
|
36
|
+
campaign_name: null,
|
|
37
|
+
campaign_status: null,
|
|
38
|
+
ad_set_id: null,
|
|
39
|
+
ad_set_name: null,
|
|
40
|
+
ad_set_status: null,
|
|
41
|
+
keyword: null,
|
|
42
|
+
match_type: null,
|
|
43
|
+
status: null,
|
|
44
|
+
negative: null,
|
|
45
|
+
synced_at: null
|
|
46
|
+
)
|
|
47
|
+
```
|
|
48
|
+
|
data/docs/PhoneNumbersApi.md
CHANGED
|
@@ -122,7 +122,8 @@ end
|
|
|
122
122
|
api_instance = Zernio::PhoneNumbersApi.new
|
|
123
123
|
country = 'country_example' # String | ISO-2 country code.
|
|
124
124
|
opts = {
|
|
125
|
-
number_type: 'local' # String | Check a specific offered type (stock and address constraints are per type). Omitted = the country's default type.
|
|
125
|
+
number_type: 'local', # String | Check a specific offered type (stock and address constraints are per type). Omitted = the country's default type.
|
|
126
|
+
sms: true # Boolean | Pass true when the buyer wants SMS: availability, areas, and areaOptions then describe the SMS-capable pool (an SMS purchase orders from it), not the wider voice-only pool.
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
begin
|
|
@@ -158,6 +159,7 @@ end
|
|
|
158
159
|
| ---- | ---- | ----------- | ----- |
|
|
159
160
|
| **country** | **String** | ISO-2 country code. | |
|
|
160
161
|
| **number_type** | **String** | Check a specific offered type (stock and address constraints are per type). Omitted = the country's default type. | [optional] |
|
|
162
|
+
| **sms** | **Boolean** | Pass true when the buyer wants SMS: availability, areas, and areaOptions then describe the SMS-capable pool (an SMS purchase orders from it), not the wider voice-only pool. | [optional] |
|
|
161
163
|
|
|
162
164
|
### Return type
|
|
163
165
|
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
| **profile_id** | **String** | Profile to associate the number with | |
|
|
8
8
|
| **country** | **String** | ISO 3166-1 alpha-2 country for the number (default US). International numbers require usage-based billing. Tier 3/4 countries return 202 { status: \"kyc_required\", kycUrl } — the customer must complete KYC at that URL before the number is ordered. See GET /v1/phone-numbers/countries. | [optional][default to 'US'] |
|
|
9
9
|
| **number_type** | **String** | Which of the country's offered number types to order (see `types[]` on GET /v1/phone-numbers/countries). Omitted = the country's default type, which is always the WhatsApp-safe choice. Capabilities, price, and KYC requirements are per (country, type): toll_free can never connect WhatsApp (400 when combined with connectWhatsapp:true), and wantsSms:true requires an SMS-capable type. | [optional] |
|
|
10
|
+
| **area_code** | **String** | Area code (national destination code, e.g. 11 for Sao Paulo) the number must be in. Hard constraint: when the area has no deliverable inventory the purchase fails with 409 code AREA_CODE_UNAVAILABLE instead of assigning a number from another area, and later replacements stay in this area too. Omit for any area. Get live options from GET /v1/phone-numbers/availability (areaOptions). | [optional] |
|
|
10
11
|
| **connect_whatsapp** | **Boolean** | A phone number is the unit; WhatsApp is one optional feature. Pass false to buy a STANDALONE number (Calls/SMS only): provisioning skips the Meta pre-verify/OTP steps and the number activates immediately. Omitted defaults to the WhatsApp provisioning path. WhatsApp can be connected to a standalone number later from the connect flow. | [optional][default to true] |
|
|
11
12
|
| **wants_sms** | **Boolean** | SMS capability is per-number, not per-country. Pass true to provision from the SMS-capable inventory pool so the number can actually text (see also GET /v1/phone-numbers/available with sms=true, and smsAvailable on GET /v1/phone-numbers/countries). | [optional][default to false] |
|
|
12
13
|
| **wants_whatsapp** | **Boolean** | Declare WhatsApp intent on a STANDALONE purchase (connectWhatsapp:false). The number still activates and bills immediately, but if WhatsApp's buy-time check rejects the assigned number, it is automatically swapped for a WhatsApp-eligible one during the purchase instead of being delivered with WhatsApp unavailable. Ignored on the WhatsApp provisioning path (connectWhatsapp omitted or true), which always delivers a WhatsApp-verified number. | [optional][default to false] |
|
|
@@ -22,6 +23,7 @@ instance = Zernio::PurchasePhoneNumberRequest.new(
|
|
|
22
23
|
profile_id: null,
|
|
23
24
|
country: null,
|
|
24
25
|
number_type: null,
|
|
26
|
+
area_code: null,
|
|
25
27
|
connect_whatsapp: null,
|
|
26
28
|
wants_sms: null,
|
|
27
29
|
wants_whatsapp: null,
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
| **reuse** | **Boolean** | Reuse a prior approved verification for this country (skips document/field collection; places the order immediately). | [optional] |
|
|
12
12
|
| **reuse_option_id** | **String** | Which reusable verification to use (GET reusable.options[].id). The unambiguous selection key. Omitted = the approved default. No match = 409. | [optional] |
|
|
13
13
|
| **reuse_from** | **String** | Legacy fallback for `reuseOptionId`: the source phone number (GET reusable.options[].fromPhoneNumber). Ambiguous when a number labels two verifications — prefer `reuseOptionId`. Omitted = the approved default. No match = 409. | [optional] |
|
|
14
|
+
| **area_code** | **String** | Area code (NDC) the number must be in. Hard constraint: an empty area pool fails with 409 code AREA_CODE_UNAVAILABLE instead of ordering from another area. Omit for any area. Options come from GET /v1/phone-numbers/availability (areaOptions); the purchase 202 kycUrl echoes the areaCode picked at purchase time so it can be passed here. | [optional] |
|
|
14
15
|
| **end_user_first_name** | **String** | End user's legal first name. Required when the country has an action/ID-verification (Onfido) requirement. | [optional] |
|
|
15
16
|
| **end_user_last_name** | **String** | End user's legal last name. Same condition as endUserFirstName. | [optional] |
|
|
16
17
|
| **values** | **Hash<String, String>** | requirementId → textual value | [optional] |
|
|
@@ -30,6 +31,7 @@ instance = Zernio::SubmitPhoneNumberKycRequest.new(
|
|
|
30
31
|
reuse: null,
|
|
31
32
|
reuse_option_id: null,
|
|
32
33
|
reuse_from: null,
|
|
34
|
+
area_code: null,
|
|
33
35
|
end_user_first_name: null,
|
|
34
36
|
end_user_last_name: null,
|
|
35
37
|
values: null,
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
| **reuse** | **Boolean** | Reuse a prior approved verification for this country (skips document/field collection; places the order immediately). | [optional] |
|
|
12
12
|
| **reuse_option_id** | **String** | Which reusable verification to use (GET reusable.options[].id). The unambiguous selection key. Omitted = the approved default. No match = 409. | [optional] |
|
|
13
13
|
| **reuse_from** | **String** | Legacy fallback for `reuseOptionId`: the source phone number (GET reusable.options[].fromPhoneNumber). Ambiguous when a number labels two verifications — prefer `reuseOptionId`. Omitted = the approved default. No match = 409. | [optional] |
|
|
14
|
+
| **area_code** | **String** | Area code (NDC) the number must be in. Hard constraint: an empty area pool fails with 409 code AREA_CODE_UNAVAILABLE instead of ordering from another area. Omit for any area. Options come from GET /v1/phone-numbers/availability (areaOptions); the purchase 202 kycUrl echoes the areaCode picked at purchase time so it can be passed here. | [optional] |
|
|
14
15
|
| **end_user_first_name** | **String** | End user's legal first name. Required when the country has an action/ID-verification (Onfido) requirement. | [optional] |
|
|
15
16
|
| **end_user_last_name** | **String** | End user's legal last name. Same condition as endUserFirstName. | [optional] |
|
|
16
17
|
| **values** | **Hash<String, String>** | requirementId → textual value | [optional] |
|
|
@@ -30,6 +31,7 @@ instance = Zernio::SubmitWhatsAppNumberKycRequest.new(
|
|
|
30
31
|
reuse: null,
|
|
31
32
|
reuse_option_id: null,
|
|
32
33
|
reuse_from: null,
|
|
34
|
+
area_code: null,
|
|
33
35
|
end_user_first_name: null,
|
|
34
36
|
end_user_last_name: null,
|
|
35
37
|
values: null,
|
|
@@ -43,7 +43,8 @@ end
|
|
|
43
43
|
api_instance = Zernio::WhatsAppPhoneNumbersApi.new
|
|
44
44
|
country = 'country_example' # String | ISO-2 country code.
|
|
45
45
|
opts = {
|
|
46
|
-
number_type: 'local' # String | Check a specific offered type (stock and address constraints are per type). Omitted = the country's default type.
|
|
46
|
+
number_type: 'local', # String | Check a specific offered type (stock and address constraints are per type). Omitted = the country's default type.
|
|
47
|
+
sms: true # Boolean | Pass true when the buyer wants SMS: availability, areas, and areaOptions then describe the SMS-capable pool (an SMS purchase orders from it), not the wider voice-only pool.
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
begin
|
|
@@ -79,6 +80,7 @@ end
|
|
|
79
80
|
| ---- | ---- | ----------- | ----- |
|
|
80
81
|
| **country** | **String** | ISO-2 country code. | |
|
|
81
82
|
| **number_type** | **String** | Check a specific offered type (stock and address constraints are per type). Omitted = the country's default type. | [optional] |
|
|
83
|
+
| **sms** | **Boolean** | Pass true when the buyer wants SMS: availability, areas, and areaOptions then describe the SMS-capable pool (an SMS purchase orders from it), not the wider voice-only pool. | [optional] |
|
|
82
84
|
|
|
83
85
|
### Return type
|
|
84
86
|
|
|
@@ -1107,6 +1107,120 @@ module Zernio
|
|
|
1107
1107
|
return data, status_code, headers
|
|
1108
1108
|
end
|
|
1109
1109
|
|
|
1110
|
+
# List Search keywords
|
|
1111
|
+
# Returns the Google Search keyword criteria (positive and negative) synced from connected Google Ads accounts, one row per ad-group keyword. Populated by the periodic ads discovery sweep (roughly every 3 hours per account), so keywords added on Google appear with that delay. Campaign-level negative keywords are not included; only ad-group-level criteria are.
|
|
1112
|
+
# @param [Hash] opts the optional parameters
|
|
1113
|
+
# @option opts [Integer] :page Page number (1-based) (default to 1)
|
|
1114
|
+
# @option opts [Integer] :limit (default to 50)
|
|
1115
|
+
# @option opts [String] :account_id Social account ID
|
|
1116
|
+
# @option opts [String] :ad_account_id Platform ad account ID (Google customer ID). Mirrors the same filter on /v1/ads.
|
|
1117
|
+
# @option opts [String] :profile_id Profile ID
|
|
1118
|
+
# @option opts [String] :campaign_id Platform campaign ID
|
|
1119
|
+
# @option opts [String] :ad_set_id Platform ad group ID (Google ad group)
|
|
1120
|
+
# @option opts [String] :status Keyword criterion status
|
|
1121
|
+
# @option opts [String] :match_type
|
|
1122
|
+
# @option opts [Boolean] :negative true = negative keywords only, false = positive only. Omit for both.
|
|
1123
|
+
# @option opts [String] :search Case-insensitive substring match on the keyword text
|
|
1124
|
+
# @return [ListAdKeywords200Response]
|
|
1125
|
+
def list_ad_keywords(opts = {})
|
|
1126
|
+
data, _status_code, _headers = list_ad_keywords_with_http_info(opts)
|
|
1127
|
+
data
|
|
1128
|
+
end
|
|
1129
|
+
|
|
1130
|
+
# List Search keywords
|
|
1131
|
+
# Returns the Google Search keyword criteria (positive and negative) synced from connected Google Ads accounts, one row per ad-group keyword. Populated by the periodic ads discovery sweep (roughly every 3 hours per account), so keywords added on Google appear with that delay. Campaign-level negative keywords are not included; only ad-group-level criteria are.
|
|
1132
|
+
# @param [Hash] opts the optional parameters
|
|
1133
|
+
# @option opts [Integer] :page Page number (1-based) (default to 1)
|
|
1134
|
+
# @option opts [Integer] :limit (default to 50)
|
|
1135
|
+
# @option opts [String] :account_id Social account ID
|
|
1136
|
+
# @option opts [String] :ad_account_id Platform ad account ID (Google customer ID). Mirrors the same filter on /v1/ads.
|
|
1137
|
+
# @option opts [String] :profile_id Profile ID
|
|
1138
|
+
# @option opts [String] :campaign_id Platform campaign ID
|
|
1139
|
+
# @option opts [String] :ad_set_id Platform ad group ID (Google ad group)
|
|
1140
|
+
# @option opts [String] :status Keyword criterion status
|
|
1141
|
+
# @option opts [String] :match_type
|
|
1142
|
+
# @option opts [Boolean] :negative true = negative keywords only, false = positive only. Omit for both.
|
|
1143
|
+
# @option opts [String] :search Case-insensitive substring match on the keyword text
|
|
1144
|
+
# @return [Array<(ListAdKeywords200Response, Integer, Hash)>] ListAdKeywords200Response data, response status code and response headers
|
|
1145
|
+
def list_ad_keywords_with_http_info(opts = {})
|
|
1146
|
+
if @api_client.config.debugging
|
|
1147
|
+
@api_client.config.logger.debug 'Calling API: AdCampaignsApi.list_ad_keywords ...'
|
|
1148
|
+
end
|
|
1149
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
1150
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling AdCampaignsApi.list_ad_keywords, must be greater than or equal to 1.'
|
|
1151
|
+
end
|
|
1152
|
+
|
|
1153
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1154
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AdCampaignsApi.list_ad_keywords, must be smaller than or equal to 500.'
|
|
1155
|
+
end
|
|
1156
|
+
|
|
1157
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1158
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AdCampaignsApi.list_ad_keywords, must be greater than or equal to 1.'
|
|
1159
|
+
end
|
|
1160
|
+
|
|
1161
|
+
allowable_values = ["active", "paused"]
|
|
1162
|
+
if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
|
|
1163
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
|
1164
|
+
end
|
|
1165
|
+
allowable_values = ["exact", "phrase", "broad", "unknown"]
|
|
1166
|
+
if @api_client.config.client_side_validation && opts[:'match_type'] && !allowable_values.include?(opts[:'match_type'])
|
|
1167
|
+
fail ArgumentError, "invalid value for \"match_type\", must be one of #{allowable_values}"
|
|
1168
|
+
end
|
|
1169
|
+
if @api_client.config.client_side_validation && !opts[:'search'].nil? && opts[:'search'].to_s.length > 200
|
|
1170
|
+
fail ArgumentError, 'invalid value for "opts[:"search"]" when calling AdCampaignsApi.list_ad_keywords, the character length must be smaller than or equal to 200.'
|
|
1171
|
+
end
|
|
1172
|
+
|
|
1173
|
+
# resource path
|
|
1174
|
+
local_var_path = '/v1/ads/keywords'
|
|
1175
|
+
|
|
1176
|
+
# query parameters
|
|
1177
|
+
query_params = opts[:query_params] || {}
|
|
1178
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
1179
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1180
|
+
query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
1181
|
+
query_params[:'adAccountId'] = opts[:'ad_account_id'] if !opts[:'ad_account_id'].nil?
|
|
1182
|
+
query_params[:'profileId'] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
|
|
1183
|
+
query_params[:'campaignId'] = opts[:'campaign_id'] if !opts[:'campaign_id'].nil?
|
|
1184
|
+
query_params[:'adSetId'] = opts[:'ad_set_id'] if !opts[:'ad_set_id'].nil?
|
|
1185
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
|
1186
|
+
query_params[:'matchType'] = opts[:'match_type'] if !opts[:'match_type'].nil?
|
|
1187
|
+
query_params[:'negative'] = opts[:'negative'] if !opts[:'negative'].nil?
|
|
1188
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
1189
|
+
|
|
1190
|
+
# header parameters
|
|
1191
|
+
header_params = opts[:header_params] || {}
|
|
1192
|
+
# HTTP header 'Accept' (if needed)
|
|
1193
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1194
|
+
|
|
1195
|
+
# form parameters
|
|
1196
|
+
form_params = opts[:form_params] || {}
|
|
1197
|
+
|
|
1198
|
+
# http body (model)
|
|
1199
|
+
post_body = opts[:debug_body]
|
|
1200
|
+
|
|
1201
|
+
# return_type
|
|
1202
|
+
return_type = opts[:debug_return_type] || 'ListAdKeywords200Response'
|
|
1203
|
+
|
|
1204
|
+
# auth_names
|
|
1205
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1206
|
+
|
|
1207
|
+
new_options = opts.merge(
|
|
1208
|
+
:operation => :"AdCampaignsApi.list_ad_keywords",
|
|
1209
|
+
:header_params => header_params,
|
|
1210
|
+
:query_params => query_params,
|
|
1211
|
+
:form_params => form_params,
|
|
1212
|
+
:body => post_body,
|
|
1213
|
+
:auth_names => auth_names,
|
|
1214
|
+
:return_type => return_type
|
|
1215
|
+
)
|
|
1216
|
+
|
|
1217
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1218
|
+
if @api_client.config.debugging
|
|
1219
|
+
@api_client.config.logger.debug "API called: AdCampaignsApi#list_ad_keywords\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1220
|
+
end
|
|
1221
|
+
return data, status_code, headers
|
|
1222
|
+
end
|
|
1223
|
+
|
|
1110
1224
|
# List ads
|
|
1111
1225
|
# Returns a paginated list of ads with metrics computed over an optional date range. Use source=all to include externally-synced ads from platform ad managers. If no date range is provided, defaults to the last 90 days. Date range is capped at 730 days max. To find the Zernio ad behind a comment you see in Meta Business Manager, filter by platformAdId (the Meta ad ID), effectiveObjectStoryId (Facebook), or effectiveInstagramMediaId (Instagram) — those are the post/media the ad's engagement lives on, and are also returned on each ad's `creative` object. Then call GET /v1/ads/{adId}/comments with the returned ad id.
|
|
1112
1226
|
# @param [Hash] opts the optional parameters
|
|
@@ -87,6 +87,7 @@ module Zernio
|
|
|
87
87
|
# @param country [String] ISO-2 country code.
|
|
88
88
|
# @param [Hash] opts the optional parameters
|
|
89
89
|
# @option opts [String] :number_type Check a specific offered type (stock and address constraints are per type). Omitted = the country's default type.
|
|
90
|
+
# @option opts [Boolean] :sms Pass true when the buyer wants SMS: availability, areas, and areaOptions then describe the SMS-capable pool (an SMS purchase orders from it), not the wider voice-only pool.
|
|
90
91
|
# @return [CheckPhoneNumberAvailability200Response]
|
|
91
92
|
def check_phone_number_availability(country, opts = {})
|
|
92
93
|
data, _status_code, _headers = check_phone_number_availability_with_http_info(country, opts)
|
|
@@ -98,6 +99,7 @@ module Zernio
|
|
|
98
99
|
# @param country [String] ISO-2 country code.
|
|
99
100
|
# @param [Hash] opts the optional parameters
|
|
100
101
|
# @option opts [String] :number_type Check a specific offered type (stock and address constraints are per type). Omitted = the country's default type.
|
|
102
|
+
# @option opts [Boolean] :sms Pass true when the buyer wants SMS: availability, areas, and areaOptions then describe the SMS-capable pool (an SMS purchase orders from it), not the wider voice-only pool.
|
|
101
103
|
# @return [Array<(CheckPhoneNumberAvailability200Response, Integer, Hash)>] CheckPhoneNumberAvailability200Response data, response status code and response headers
|
|
102
104
|
def check_phone_number_availability_with_http_info(country, opts = {})
|
|
103
105
|
if @api_client.config.debugging
|
|
@@ -118,6 +120,7 @@ module Zernio
|
|
|
118
120
|
query_params = opts[:query_params] || {}
|
|
119
121
|
query_params[:'country'] = country
|
|
120
122
|
query_params[:'numberType'] = opts[:'number_type'] if !opts[:'number_type'].nil?
|
|
123
|
+
query_params[:'sms'] = opts[:'sms'] if !opts[:'sms'].nil?
|
|
121
124
|
|
|
122
125
|
# header parameters
|
|
123
126
|
header_params = opts[:header_params] || {}
|
|
@@ -24,6 +24,7 @@ module Zernio
|
|
|
24
24
|
# @param country [String] ISO-2 country code.
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @option opts [String] :number_type Check a specific offered type (stock and address constraints are per type). Omitted = the country's default type.
|
|
27
|
+
# @option opts [Boolean] :sms Pass true when the buyer wants SMS: availability, areas, and areaOptions then describe the SMS-capable pool (an SMS purchase orders from it), not the wider voice-only pool.
|
|
27
28
|
# @return [CheckPhoneNumberAvailability200Response]
|
|
28
29
|
def check_whats_app_number_availability(country, opts = {})
|
|
29
30
|
data, _status_code, _headers = check_whats_app_number_availability_with_http_info(country, opts)
|
|
@@ -35,6 +36,7 @@ module Zernio
|
|
|
35
36
|
# @param country [String] ISO-2 country code.
|
|
36
37
|
# @param [Hash] opts the optional parameters
|
|
37
38
|
# @option opts [String] :number_type Check a specific offered type (stock and address constraints are per type). Omitted = the country's default type.
|
|
39
|
+
# @option opts [Boolean] :sms Pass true when the buyer wants SMS: availability, areas, and areaOptions then describe the SMS-capable pool (an SMS purchase orders from it), not the wider voice-only pool.
|
|
38
40
|
# @return [Array<(CheckPhoneNumberAvailability200Response, Integer, Hash)>] CheckPhoneNumberAvailability200Response data, response status code and response headers
|
|
39
41
|
def check_whats_app_number_availability_with_http_info(country, opts = {})
|
|
40
42
|
if @api_client.config.debugging
|
|
@@ -55,6 +57,7 @@ module Zernio
|
|
|
55
57
|
query_params = opts[:query_params] || {}
|
|
56
58
|
query_params[:'country'] = country
|
|
57
59
|
query_params[:'numberType'] = opts[:'number_type'] if !opts[:'number_type'].nil?
|
|
60
|
+
query_params[:'sms'] = opts[:'sms'] if !opts[:'sms'].nil?
|
|
58
61
|
|
|
59
62
|
# header parameters
|
|
60
63
|
header_params = opts[:header_params] || {}
|
|
@@ -27,6 +27,9 @@ module Zernio
|
|
|
27
27
|
# For `geo` only — the area(s) the registered address must be in.
|
|
28
28
|
attr_accessor :areas
|
|
29
29
|
|
|
30
|
+
# Live inventory grouped by area code, largest stock first. Empty when out of stock (or the area lookup failed). Pass a chosen `ndc` as `areaCode` on POST /v1/phone-numbers/purchase (or on the KYC submit for regulated countries) to require that area.
|
|
31
|
+
attr_accessor :area_options
|
|
32
|
+
|
|
30
33
|
class EnumAttributeValidator
|
|
31
34
|
attr_reader :datatype
|
|
32
35
|
attr_reader :allowable_values
|
|
@@ -56,7 +59,8 @@ module Zernio
|
|
|
56
59
|
:'number_type' => :'numberType',
|
|
57
60
|
:'available' => :'available',
|
|
58
61
|
:'address_constraint' => :'addressConstraint',
|
|
59
|
-
:'areas' => :'areas'
|
|
62
|
+
:'areas' => :'areas',
|
|
63
|
+
:'area_options' => :'areaOptions'
|
|
60
64
|
}
|
|
61
65
|
end
|
|
62
66
|
|
|
@@ -77,7 +81,8 @@ module Zernio
|
|
|
77
81
|
:'number_type' => :'String',
|
|
78
82
|
:'available' => :'Boolean',
|
|
79
83
|
:'address_constraint' => :'String',
|
|
80
|
-
:'areas' => :'Array<String>'
|
|
84
|
+
:'areas' => :'Array<String>',
|
|
85
|
+
:'area_options' => :'Array<CheckPhoneNumberAvailability200ResponseAreaOptionsInner>'
|
|
81
86
|
}
|
|
82
87
|
end
|
|
83
88
|
|
|
@@ -124,6 +129,12 @@ module Zernio
|
|
|
124
129
|
self.areas = value
|
|
125
130
|
end
|
|
126
131
|
end
|
|
132
|
+
|
|
133
|
+
if attributes.key?(:'area_options')
|
|
134
|
+
if (value = attributes[:'area_options']).is_a?(Array)
|
|
135
|
+
self.area_options = value
|
|
136
|
+
end
|
|
137
|
+
end
|
|
127
138
|
end
|
|
128
139
|
|
|
129
140
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -162,7 +173,8 @@ module Zernio
|
|
|
162
173
|
number_type == o.number_type &&
|
|
163
174
|
available == o.available &&
|
|
164
175
|
address_constraint == o.address_constraint &&
|
|
165
|
-
areas == o.areas
|
|
176
|
+
areas == o.areas &&
|
|
177
|
+
area_options == o.area_options
|
|
166
178
|
end
|
|
167
179
|
|
|
168
180
|
# @see the `==` method
|
|
@@ -174,7 +186,7 @@ module Zernio
|
|
|
174
186
|
# Calculates hash code according to all attributes.
|
|
175
187
|
# @return [Integer] Hash code
|
|
176
188
|
def hash
|
|
177
|
-
[country, number_type, available, address_constraint, areas].hash
|
|
189
|
+
[country, number_type, available, address_constraint, areas, area_options].hash
|
|
178
190
|
end
|
|
179
191
|
|
|
180
192
|
# Builds the object from hash
|