FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

New python SDK Generated · ClickSend/clicksend-python@90d6049 · GitHub

Commit 90d6049

Browse files
authored andcommitted
New python SDK Generated
1 parent 170d0ed commit 90d6049

82 files changed

Lines changed: 1041 additions & 669 deletions

File tree

Some content is hidden

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

‎clicksend_client/api/account_api.py‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ def account_post_with_http_info(self, account, **kwargs): # noqa: E501
178178
params[key] = val
179179
del params['kwargs']
180180
# verify the required parameter 'account' is set
181-
if ('account' not in params or
182-
params['account'] is None):
181+
if self.api_client.client_side_validation and ('account' not in params or
182+
params['account'] is None): # noqa: E501
183183
raise ValueError("Missing the required parameter `account` when calling `account_post`") # noqa: E501
184184

185185
collection_formats = {}
@@ -279,12 +279,12 @@ def account_useage_by_subaccount_get_with_http_info(self, year, month, **kwargs)
279279
params[key] = val
280280
del params['kwargs']
281281
# verify the required parameter 'year' is set
282-
if ('year' not in params or
283-
params['year'] is None):
282+
if self.api_client.client_side_validation and ('year' not in params or
283+
params['year'] is None): # noqa: E501
284284
raise ValueError("Missing the required parameter `year` when calling `account_useage_by_subaccount_get`") # noqa: E501
285285
# verify the required parameter 'month' is set
286-
if ('month' not in params or
287-
params['month'] is None):
286+
if self.api_client.client_side_validation and ('month' not in params or
287+
params['month'] is None): # noqa: E501
288288
raise ValueError("Missing the required parameter `month` when calling `account_useage_by_subaccount_get`") # noqa: E501
289289

290290
collection_formats = {}
@@ -384,8 +384,8 @@ def account_verify_send_put_with_http_info(self, account_verify, **kwargs): # n
384384
params[key] = val
385385
del params['kwargs']
386386
# verify the required parameter 'account_verify' is set
387-
if ('account_verify' not in params or
388-
params['account_verify'] is None):
387+
if self.api_client.client_side_validation and ('account_verify' not in params or
388+
params['account_verify'] is None): # noqa: E501
389389
raise ValueError("Missing the required parameter `account_verify` when calling `account_verify_send_put`") # noqa: E501
390390

391391
collection_formats = {}
@@ -483,8 +483,8 @@ def account_verify_verify_by_activation_token_put_with_http_info(self, activatio
483483
params[key] = val
484484
del params['kwargs']
485485
# verify the required parameter 'activation_token' is set
486-
if ('activation_token' not in params or
487-
params['activation_token'] is None):
486+
if self.api_client.client_side_validation and ('activation_token' not in params or
487+
params['activation_token'] is None): # noqa: E501
488488
raise ValueError("Missing the required parameter `activation_token` when calling `account_verify_verify_by_activation_token_put`") # noqa: E501
489489

490490
collection_formats = {}
@@ -677,8 +677,8 @@ def forgot_password_verify_put_with_http_info(self, verify_password, **kwargs):
677677
params[key] = val
678678
del params['kwargs']
679679
# verify the required parameter 'verify_password' is set
680-
if ('verify_password' not in params or
681-
params['verify_password'] is None):
680+
if self.api_client.client_side_validation and ('verify_password' not in params or
681+
params['verify_password'] is None): # noqa: E501
682682
raise ValueError("Missing the required parameter `verify_password` when calling `forgot_password_verify_put`") # noqa: E501
683683

684684
collection_formats = {}

‎clicksend_client/api/account_recharge_api.py‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ def recharge_credit_card_put_with_http_info(self, credit_card, **kwargs): # noq
178178
params[key] = val
179179
del params['kwargs']
180180
# verify the required parameter 'credit_card' is set
181-
if ('credit_card' not in params or
182-
params['credit_card'] is None):
181+
if self.api_client.client_side_validation and ('credit_card' not in params or
182+
params['credit_card'] is None): # noqa: E501
183183
raise ValueError("Missing the required parameter `credit_card` when calling `recharge_credit_card_put`") # noqa: E501
184184

185185
collection_formats = {}
@@ -372,8 +372,8 @@ def recharge_purchase_by_package_id_put_with_http_info(self, package_id, **kwarg
372372
params[key] = val
373373
del params['kwargs']
374374
# verify the required parameter 'package_id' is set
375-
if ('package_id' not in params or
376-
params['package_id'] is None):
375+
if self.api_client.client_side_validation and ('package_id' not in params or
376+
params['package_id'] is None): # noqa: E501
377377
raise ValueError("Missing the required parameter `package_id` when calling `recharge_purchase_by_package_id_put`") # noqa: E501
378378

379379
collection_formats = {}
@@ -471,8 +471,8 @@ def recharge_transactions_by_transaction_id_get_with_http_info(self, transaction
471471
params[key] = val
472472
del params['kwargs']
473473
# verify the required parameter 'transaction_id' is set
474-
if ('transaction_id' not in params or
475-
params['transaction_id'] is None):
474+
if self.api_client.client_side_validation and ('transaction_id' not in params or
475+
params['transaction_id'] is None): # noqa: E501
476476
raise ValueError("Missing the required parameter `transaction_id` when calling `recharge_transactions_by_transaction_id_get`") # noqa: E501
477477

478478
collection_formats = {}
@@ -572,9 +572,9 @@ def recharge_transactions_get_with_http_info(self, **kwargs): # noqa: E501
572572
params[key] = val
573573
del params['kwargs']
574574

575-
if 'page' in params and params['page'] < 1: # noqa: E501
575+
if self.api_client.client_side_validation and ('page' in params and params['page'] < 1): # noqa: E501
576576
raise ValueError("Invalid value for parameter `page` when calling `recharge_transactions_get`, must be a value greater than or equal to `1`") # noqa: E501
577-
if 'limit' in params and params['limit'] < 1: # noqa: E501
577+
if self.api_client.client_side_validation and ('limit' in params and params['limit'] < 1): # noqa: E501
578578
raise ValueError("Invalid value for parameter `limit` when calling `recharge_transactions_get`, must be a value greater than or equal to `1`") # noqa: E501
579579
collection_formats = {}
580580

‎clicksend_client/api/contact_api.py‎

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ def lists_contacts_by_list_id_and_contact_id_delete_with_http_info(self, list_id
8989
params[key] = val
9090
del params['kwargs']
9191
# verify the required parameter 'list_id' is set
92-
if ('list_id' not in params or
93-
params['list_id'] is None):
92+
if self.api_client.client_side_validation and ('list_id' not in params or
93+
params['list_id'] is None): # noqa: E501
9494
raise ValueError("Missing the required parameter `list_id` when calling `lists_contacts_by_list_id_and_contact_id_delete`") # noqa: E501
9595
# verify the required parameter 'contact_id' is set
96-
if ('contact_id' not in params or
97-
params['contact_id'] is None):
96+
if self.api_client.client_side_validation and ('contact_id' not in params or
97+
params['contact_id'] is None): # noqa: E501
9898
raise ValueError("Missing the required parameter `contact_id` when calling `lists_contacts_by_list_id_and_contact_id_delete`") # noqa: E501
9999

100100
collection_formats = {}
@@ -196,12 +196,12 @@ def lists_contacts_by_list_id_and_contact_id_get_with_http_info(self, list_id, c
196196
params[key] = val
197197
del params['kwargs']
198198
# verify the required parameter 'list_id' is set
199-
if ('list_id' not in params or
200-
params['list_id'] is None):
199+
if self.api_client.client_side_validation and ('list_id' not in params or
200+
params['list_id'] is None): # noqa: E501
201201
raise ValueError("Missing the required parameter `list_id` when calling `lists_contacts_by_list_id_and_contact_id_get`") # noqa: E501
202202
# verify the required parameter 'contact_id' is set
203-
if ('contact_id' not in params or
204-
params['contact_id'] is None):
203+
if self.api_client.client_side_validation and ('contact_id' not in params or
204+
params['contact_id'] is None): # noqa: E501
205205
raise ValueError("Missing the required parameter `contact_id` when calling `lists_contacts_by_list_id_and_contact_id_get`") # noqa: E501
206206

207207
collection_formats = {}
@@ -305,16 +305,16 @@ def lists_contacts_by_list_id_and_contact_id_put_with_http_info(self, list_id, c
305305
params[key] = val
306306
del params['kwargs']
307307
# verify the required parameter 'list_id' is set
308-
if ('list_id' not in params or
309-
params['list_id'] is None):
308+
if self.api_client.client_side_validation and ('list_id' not in params or
309+
params['list_id'] is None): # noqa: E501
310310
raise ValueError("Missing the required parameter `list_id` when calling `lists_contacts_by_list_id_and_contact_id_put`") # noqa: E501
311311
# verify the required parameter 'contact_id' is set
312-
if ('contact_id' not in params or
313-
params['contact_id'] is None):
312+
if self.api_client.client_side_validation and ('contact_id' not in params or
313+
params['contact_id'] is None): # noqa: E501
314314
raise ValueError("Missing the required parameter `contact_id` when calling `lists_contacts_by_list_id_and_contact_id_put`") # noqa: E501
315315
# verify the required parameter 'contact' is set
316-
if ('contact' not in params or
317-
params['contact'] is None):
316+
if self.api_client.client_side_validation and ('contact' not in params or
317+
params['contact'] is None): # noqa: E501
318318
raise ValueError("Missing the required parameter `contact` when calling `lists_contacts_by_list_id_and_contact_id_put`") # noqa: E501
319319

320320
collection_formats = {}
@@ -420,13 +420,13 @@ def lists_contacts_by_list_id_get_with_http_info(self, list_id, **kwargs): # no
420420
params[key] = val
421421
del params['kwargs']
422422
# verify the required parameter 'list_id' is set
423-
if ('list_id' not in params or
424-
params['list_id'] is None):
423+
if self.api_client.client_side_validation and ('list_id' not in params or
424+
params['list_id'] is None): # noqa: E501
425425
raise ValueError("Missing the required parameter `list_id` when calling `lists_contacts_by_list_id_get`") # noqa: E501
426426

427-
if 'page' in params and params['page'] < 1: # noqa: E501
427+
if self.api_client.client_side_validation and ('page' in params and params['page'] < 1): # noqa: E501
428428
raise ValueError("Invalid value for parameter `page` when calling `lists_contacts_by_list_id_get`, must be a value greater than or equal to `1`") # noqa: E501
429-
if 'limit' in params and params['limit'] < 1: # noqa: E501
429+
if self.api_client.client_side_validation and ('limit' in params and params['limit'] < 1): # noqa: E501
430430
raise ValueError("Invalid value for parameter `limit` when calling `lists_contacts_by_list_id_get`, must be a value greater than or equal to `1`") # noqa: E501
431431
collection_formats = {}
432432

@@ -529,12 +529,12 @@ def lists_contacts_by_list_id_post_with_http_info(self, contact, list_id, **kwar
529529
params[key] = val
530530
del params['kwargs']
531531
# verify the required parameter 'contact' is set
532-
if ('contact' not in params or
533-
params['contact'] is None):
532+
if self.api_client.client_side_validation and ('contact' not in params or
533+
params['contact'] is None): # noqa: E501
534534
raise ValueError("Missing the required parameter `contact` when calling `lists_contacts_by_list_id_post`") # noqa: E501
535535
# verify the required parameter 'list_id' is set
536-
if ('list_id' not in params or
537-
params['list_id'] is None):
536+
if self.api_client.client_side_validation and ('list_id' not in params or
537+
params['list_id'] is None): # noqa: E501
538538
raise ValueError("Missing the required parameter `list_id` when calling `lists_contacts_by_list_id_post`") # noqa: E501
539539

540540
collection_formats = {}
@@ -638,16 +638,16 @@ def lists_copy_contact_put_with_http_info(self, from_list_id, contact_id, to_lis
638638
params[key] = val
639639
del params['kwargs']
640640
# verify the required parameter 'from_list_id' is set
641-
if ('from_list_id' not in params or
642-
params['from_list_id'] is None):
641+
if self.api_client.client_side_validation and ('from_list_id' not in params or
642+
params['from_list_id'] is None): # noqa: E501
643643
raise ValueError("Missing the required parameter `from_list_id` when calling `lists_copy_contact_put`") # noqa: E501
644644
# verify the required parameter 'contact_id' is set
645-
if ('contact_id' not in params or
646-
params['contact_id'] is None):
645+
if self.api_client.client_side_validation and ('contact_id' not in params or
646+
params['contact_id'] is None): # noqa: E501
647647
raise ValueError("Missing the required parameter `contact_id` when calling `lists_copy_contact_put`") # noqa: E501
648648
# verify the required parameter 'to_list_id' is set
649-
if ('to_list_id' not in params or
650-
params['to_list_id'] is None):
649+
if self.api_client.client_side_validation and ('to_list_id' not in params or
650+
params['to_list_id'] is None): # noqa: E501
651651
raise ValueError("Missing the required parameter `to_list_id` when calling `lists_copy_contact_put`") # noqa: E501
652652

653653
collection_formats = {}
@@ -751,12 +751,12 @@ def lists_remove_opted_out_contacts_by_list_id_and_opt_out_list_id_put_with_http
751751
params[key] = val
752752
del params['kwargs']
753753
# verify the required parameter 'list_id' is set
754-
if ('list_id' not in params or
755-
params['list_id'] is None):
754+
if self.api_client.client_side_validation and ('list_id' not in params or
755+
params['list_id'] is None): # noqa: E501
756756
raise ValueError("Missing the required parameter `list_id` when calling `lists_remove_opted_out_contacts_by_list_id_and_opt_out_list_id_put`") # noqa: E501
757757
# verify the required parameter 'opt_out_list_id' is set
758-
if ('opt_out_list_id' not in params or
759-
params['opt_out_list_id'] is None):
758+
if self.api_client.client_side_validation and ('opt_out_list_id' not in params or
759+
params['opt_out_list_id'] is None): # noqa: E501
760760
raise ValueError("Missing the required parameter `opt_out_list_id` when calling `lists_remove_opted_out_contacts_by_list_id_and_opt_out_list_id_put`") # noqa: E501
761761

762762
collection_formats = {}
@@ -860,16 +860,16 @@ def lists_transfer_contact_put_with_http_info(self, from_list_id, contact_id, to
860860
params[key] = val
861861
del params['kwargs']
862862
# verify the required parameter 'from_list_id' is set
863-
if ('from_list_id' not in params or
864-
params['from_list_id'] is None):
863+
if self.api_client.client_side_validation and ('from_list_id' not in params or
864+
params['from_list_id'] is None): # noqa: E501
865865
raise ValueError("Missing the required parameter `from_list_id` when calling `lists_transfer_contact_put`") # noqa: E501
866866
# verify the required parameter 'contact_id' is set
867-
if ('contact_id' not in params or
868-
params['contact_id'] is None):
867+
if self.api_client.client_side_validation and ('contact_id' not in params or
868+
params['contact_id'] is None): # noqa: E501
869869
raise ValueError("Missing the required parameter `contact_id` when calling `lists_transfer_contact_put`") # noqa: E501
870870
# verify the required parameter 'to_list_id' is set
871-
if ('to_list_id' not in params or
872-
params['to_list_id'] is None):
871+
if self.api_client.client_side_validation and ('to_list_id' not in params or
872+
params['to_list_id'] is None): # noqa: E501
873873
raise ValueError("Missing the required parameter `to_list_id` when calling `lists_transfer_contact_put`") # noqa: E501
874874

875875
collection_formats = {}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL