-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
230 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
from pydantic import BaseModel | ||
from enum import Enum | ||
|
||
|
||
class ServiceType(str, Enum): | ||
"""The service you wish to retrieve outbound pricing data about. | ||
Values: | ||
``` | ||
SMS: SMS | ||
SMS_TRANSIT: SMS transit | ||
VOICE: Voice | ||
``` | ||
""" | ||
|
||
SMS = 'sms' | ||
SMS_TRANSIT = 'sms-transit' | ||
VOICE = 'voice' | ||
|
||
|
||
class GetCountryPricingRequest(BaseModel): | ||
"""The options for getting the pricing for a specific country. | ||
Args: | ||
country_code (str): The two-letter country code for the country to retrieve | ||
pricing data about. | ||
type (ServiceType, Optional): The type of service to retrieve pricing data about. | ||
""" | ||
|
||
country_code: str | ||
type: ServiceType = ServiceType.SMS | ||
|
||
|
||
class GetPrefixPricingRequest(BaseModel): | ||
"""The options for getting the pricing for a specific prefix. | ||
Args: | ||
prefix (str): The numerical dialing prefix to look up pricing for, e.g. "1", "44". | ||
type (ServiceType, Optional): The type of service to retrieve pricing data about. | ||
""" | ||
|
||
prefix: str | ||
type: ServiceType = ServiceType.SMS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '2.0.1' | ||
__version__ = '2.0.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters