Skip to content

Commit fbb4663

Browse files
authored
Merge pull request #43 from FreeClimbAPI/VCSWP-20004
VCSWP-20004: Fix method of handling strings in Ruby + Python SDK unit testing
2 parents cbf4a40 + 4355b91 commit fbb4663

File tree

154 files changed

+1752
-1523
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+1752
-1523
lines changed

.openapi-generator/FILES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,5 +289,4 @@ requirements.txt
289289
setup.cfg
290290
setup.py
291291
test/__init__.py
292-
test/test_sms_ten_dlc_brand.py
293292
tox.ini

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
99

1010
None
1111

12+
<a name="4.4.3"></a>
13+
14+
## [4.4.3] - 2023-08-24
15+
16+
### Changed
17+
18+
- Removed testing for properties with 'x-max-length-*' vendor extension
19+
20+
### Added
21+
22+
- Generation for model initialization
23+
- Testing for properties with 'maxLength'
24+
1225
<a name="4.4.2"></a>
1326

1427
## [4.4.2] - 2023-08-10

README.md

Lines changed: 199 additions & 205 deletions
Large diffs are not rendered by default.

docs/DefaultApi.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3398,6 +3398,9 @@ with freeclimb.ApiClient(configuration) as api_client:
33983398
begin_time = "beginTime_example" # str | Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*. (optional)
33993399
end_time = "endTime_example" # str | Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*.. (optional)
34003400
direction = MessageDirection("inbound") # MessageDirection | Either `inbound` or `outbound`. Only show Messages that were either *sent from* or *received by* FreeClimb. (optional)
3401+
campaign_id = "campaignId_example" # str | Only show messages associated with this campaign ID. (optional)
3402+
brand_id = "brandId_example" # str | Only show messages associated with this brand ID (optional)
3403+
is10_dlc = True # bool | Only show messages that were sent as part of a 10DLC campaign. (optional)
34013404

34023405
# example passing only required values which don't have defaults set
34033406
try:
@@ -3411,7 +3414,7 @@ with freeclimb.ApiClient(configuration) as api_client:
34113414
# and optional values
34123415
try:
34133416
# List SMS Messages
3414-
api_response = api_instance.list_sms_messages(to=to, _from=_from, begin_time=begin_time, end_time=end_time, direction=direction)
3417+
api_response = api_instance.list_sms_messages(to=to, _from=_from, begin_time=begin_time, end_time=end_time, direction=direction, campaign_id=campaign_id, brand_id=brand_id, is10_dlc=is10_dlc)
34153418
pprint(api_response)
34163419
except freeclimb.ApiException as e:
34173420
print("Exception when calling DefaultApi->list_sms_messages: %s\n" % e)
@@ -3427,6 +3430,9 @@ Name | Type | Description | Notes
34273430
**begin_time** | **str**| Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*. | [optional]
34283431
**end_time** | **str**| Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*.. | [optional]
34293432
**direction** | **MessageDirection**| Either &#x60;inbound&#x60; or &#x60;outbound&#x60;. Only show Messages that were either *sent from* or *received by* FreeClimb. | [optional]
3433+
**campaign_id** | **str**| Only show messages associated with this campaign ID. | [optional]
3434+
**brand_id** | **str**| Only show messages associated with this brand ID | [optional]
3435+
**is10_dlc** | **bool**| Only show messages that were sent as part of a 10DLC campaign. | [optional]
34303436

34313437
### Return type
34323438

docs/MessageResult.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Name | Type | Description | Notes
1515
**text** | **str, none_type** | Message contents | [optional]
1616
**direction** | **str, none_type** | Noting whether the message was inbound or outbound | [optional]
1717
**notification_url** | **str, none_type** | URL invoked when message sent | [optional]
18+
**brand_id** | **str, none_type** | The unique identifier for the brand associated with the message | [optional]
19+
**campaign_id** | **str, none_type** | The unique identifier for the campaign associated with the message | [optional]
20+
**segment_count** | **float, none_type** | The number of segments into which the message was split | [optional]
1821

1922
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2023

docs/MessageResultAllOf.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ Name | Type | Description | Notes
1111
**text** | **str, none_type** | Message contents | [optional]
1212
**direction** | **str, none_type** | Noting whether the message was inbound or outbound | [optional]
1313
**notification_url** | **str, none_type** | URL invoked when message sent | [optional]
14+
**brand_id** | **str, none_type** | The unique identifier for the brand associated with the message | [optional]
15+
**campaign_id** | **str, none_type** | The unique identifier for the campaign associated with the message | [optional]
16+
**segment_count** | **float, none_type** | The number of segments into which the message was split | [optional]
1417

1518
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1619

freeclimb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212

1313

14-
__version__ = "4.4.2"
14+
__version__ = "4.4.3"
1515

1616
# import ApiClient
1717
from freeclimb.api_client import ApiClient

freeclimb/api/default_api.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2554,6 +2554,9 @@ def __init__(self, api_client=None, account_id=None):
25542554
'begin_time',
25552555
'end_time',
25562556
'direction',
2557+
'campaign_id',
2558+
'brand_id',
2559+
'is10_dlc',
25572560
],
25582561
'required': [
25592562
'account_id',
@@ -2583,6 +2586,12 @@ def __init__(self, api_client=None, account_id=None):
25832586
(str,),
25842587
'direction':
25852588
(MessageDirection,),
2589+
'campaign_id':
2590+
(str,),
2591+
'brand_id':
2592+
(str,),
2593+
'is10_dlc':
2594+
(bool,),
25862595
},
25872596
'attribute_map': {
25882597
'account_id': 'accountId',
@@ -2591,6 +2600,9 @@ def __init__(self, api_client=None, account_id=None):
25912600
'begin_time': 'beginTime',
25922601
'end_time': 'endTime',
25932602
'direction': 'direction',
2603+
'campaign_id': 'campaignId',
2604+
'brand_id': 'brandId',
2605+
'is10_dlc': 'is10DLC',
25942606
},
25952607
'location_map': {
25962608
'account_id': 'path',
@@ -2599,6 +2611,9 @@ def __init__(self, api_client=None, account_id=None):
25992611
'begin_time': 'query',
26002612
'end_time': 'query',
26012613
'direction': 'query',
2614+
'campaign_id': 'query',
2615+
'brand_id': 'query',
2616+
'is10_dlc': 'query',
26022617
},
26032618
'collection_format_map': {
26042619
}
@@ -6735,6 +6750,9 @@ def list_sms_messages(
67356750
begin_time (str): Only show Messages sent at or after this time (GMT), given as *YYYY-MM-DD hh:mm:ss*.. [optional]
67366751
end_time (str): Only show messages sent at or before this time (GMT), given as *YYYY-MM-DD hh:mm*... [optional]
67376752
direction (MessageDirection): Either `inbound` or `outbound`. Only show Messages that were either *sent from* or *received by* FreeClimb.. [optional]
6753+
campaign_id (str): Only show messages associated with this campaign ID.. [optional]
6754+
brand_id (str): Only show messages associated with this brand ID. [optional]
6755+
is10_dlc (bool): Only show messages that were sent as part of a 10DLC campaign.. [optional]
67386756
_return_http_data_only (bool): response data without head status
67396757
code and headers. Default is True.
67406758
_preload_content (bool): if False, the urllib3.HTTPResponse object

freeclimb/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7777
self.default_headers[header_name] = header_value
7878
self.cookie = cookie
7979
# Set default User-Agent.
80-
self.user_agent = 'OpenAPI-Generator/4.4.2/python'
80+
self.user_agent = 'OpenAPI-Generator/4.4.3/python'
8181

8282
def __enter__(self):
8383
return self

freeclimb/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def to_debug_report(self):
405405
"OS: {env}\n"\
406406
"Python Version: {pyversion}\n"\
407407
"Version of the API: 1.0.0\n"\
408-
"SDK Package Version: 4.4.2".\
408+
"SDK Package Version: 4.4.3".\
409409
format(env=sys.platform, pyversion=sys.version)
410410

411411
def get_host_settings(self):

0 commit comments

Comments
 (0)