Skip to content

Commit 9e0b860

Browse files
Merge pull request #4 from PaystackOSS/patch/customer-validate
Fix customer validation method with typo in method name
2 parents b9993a3 + 23ebbd2 commit 9e0b860

File tree

7 files changed

+19
-19
lines changed

7 files changed

+19
-19
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Class | Method | HTTP request | Description
5555
*Customer* | [**list**](docs/Customer.md#list) | **GET** /customer | List Customers
5656
*Customer* | [**risk_action**](docs/Customer.md#risk_action) | **POST** /customer/set_risk_action | White/blacklist Customer
5757
*Customer* | [**update**](docs/Customer.md#update) | **PUT** /customer/{code} | Update Customer
58-
*Customer* | [**validatte**](docs/Customer.md#validatte) | **POST** /customer/{code}/identification | Validate Customer
58+
*Customer* | [**validate**](docs/Customer.md#validate) | **POST** /customer/{code}/identification | Validate Customer
5959
*DedicatedVirtualAccount* | [**add_split**](docs/DedicatedVirtualAccount.md#add_split) | **POST** /dedicated_account/split | Split Dedicated Account Transaction
6060
*DedicatedVirtualAccount* | [**available_providers**](docs/DedicatedVirtualAccount.md#available_providers) | **GET** /dedicated_account/available_providers | Fetch Bank Providers
6161
*DedicatedVirtualAccount* | [**create**](docs/DedicatedVirtualAccount.md#create) | **POST** /dedicated_account | Create Dedicated Account

docs/Customer.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Method | HTTP request | Description
1010
[**list**](Customer.md#list) | **GET** /customer | List Customers
1111
[**risk_action**](Customer.md#risk_action) | **POST** /customer/set_risk_action | White/blacklist Customer
1212
[**update**](Customer.md#update) | **PUT** /customer/{code} | Update Customer
13-
[**validatte**](Customer.md#validatte) | **POST** /customer/{code}/identification | Validate Customer
13+
[**validate**](Customer.md#validate) | **POST** /customer/{code}/identification | Validate Customer
1414

1515

1616
# **create**
@@ -353,8 +353,8 @@ Name | Type | Description | Notes
353353

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

356-
# **validatte**
357-
> Accepted validatte(code, first_name, last_name, type, country, bvn, bank_code, account_number, value=value)
356+
# **validate**
357+
> Accepted validate(code, first_name, last_name, type, country, bvn, bank_code, account_number, value=value)
358358
359359
Validate Customer
360360

@@ -381,7 +381,7 @@ account_number = 'account_number_example' # str | Customer's bank account number
381381

382382
# Validate Customer
383383

384-
response = paystack.Customer.validatte(
384+
response = paystack.Customer.validate(
385385
code,
386386
first_name,
387387
last_name,

paystack/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from __future__ import absolute_import
1616

17-
__version__ = "1.0.0"
17+
__version__ = "1.0.1"
1818
api_key=None
1919

2020
# import apis into sdk package

paystack/api/customer_.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ def update(cls, code, **kwargs): # noqa: E501
458458

459459

460460
@classmethod
461-
def validatte(cls, code, first_name, last_name, type, country, bvn, bank_code, account_number, **kwargs): # noqa: E501
461+
def validate(cls, code, first_name, last_name, type, country, bvn, bank_code, account_number, **kwargs): # noqa: E501
462462
"""Validate Customer # noqa: E501
463463
464464
Validate a customer's identity # noqa: E501
@@ -504,42 +504,42 @@ def validatte(cls, code, first_name, last_name, type, country, bvn, bank_code, a
504504
if key not in all_params:
505505
raise ApiTypeError(
506506
"Got an unexpected keyword argument '%s'"
507-
" to method validatte" % key
507+
" to method validate" % key
508508
)
509509
local_var_params[key] = val
510510
del local_var_params['kwargs']
511511
# verify the required parameter 'code' is set
512512
if cls().api_client.client_side_validation and ('code' not in local_var_params or # noqa: E501
513513
local_var_params['code'] is None): # noqa: E501
514-
raise ApiValueError("Missing the required parameter `code` when calling `validatte`") # noqa: E501
514+
raise ApiValueError("Missing the required parameter `code` when calling `validate`") # noqa: E501
515515
# verify the required parameter 'first_name' is set
516516
if cls().api_client.client_side_validation and ('first_name' not in local_var_params or # noqa: E501
517517
local_var_params['first_name'] is None): # noqa: E501
518-
raise ApiValueError("Missing the required parameter `first_name` when calling `validatte`") # noqa: E501
518+
raise ApiValueError("Missing the required parameter `first_name` when calling `validate`") # noqa: E501
519519
# verify the required parameter 'last_name' is set
520520
if cls().api_client.client_side_validation and ('last_name' not in local_var_params or # noqa: E501
521521
local_var_params['last_name'] is None): # noqa: E501
522-
raise ApiValueError("Missing the required parameter `last_name` when calling `validatte`") # noqa: E501
522+
raise ApiValueError("Missing the required parameter `last_name` when calling `validate`") # noqa: E501
523523
# verify the required parameter 'type' is set
524524
if cls().api_client.client_side_validation and ('type' not in local_var_params or # noqa: E501
525525
local_var_params['type'] is None): # noqa: E501
526-
raise ApiValueError("Missing the required parameter `type` when calling `validatte`") # noqa: E501
526+
raise ApiValueError("Missing the required parameter `type` when calling `validate`") # noqa: E501
527527
# verify the required parameter 'country' is set
528528
if cls().api_client.client_side_validation and ('country' not in local_var_params or # noqa: E501
529529
local_var_params['country'] is None): # noqa: E501
530-
raise ApiValueError("Missing the required parameter `country` when calling `validatte`") # noqa: E501
530+
raise ApiValueError("Missing the required parameter `country` when calling `validate`") # noqa: E501
531531
# verify the required parameter 'bvn' is set
532532
if cls().api_client.client_side_validation and ('bvn' not in local_var_params or # noqa: E501
533533
local_var_params['bvn'] is None): # noqa: E501
534-
raise ApiValueError("Missing the required parameter `bvn` when calling `validatte`") # noqa: E501
534+
raise ApiValueError("Missing the required parameter `bvn` when calling `validate`") # noqa: E501
535535
# verify the required parameter 'bank_code' is set
536536
if cls().api_client.client_side_validation and ('bank_code' not in local_var_params or # noqa: E501
537537
local_var_params['bank_code'] is None): # noqa: E501
538-
raise ApiValueError("Missing the required parameter `bank_code` when calling `validatte`") # noqa: E501
538+
raise ApiValueError("Missing the required parameter `bank_code` when calling `validate`") # noqa: E501
539539
# verify the required parameter 'account_number' is set
540540
if cls().api_client.client_side_validation and ('account_number' not in local_var_params or # noqa: E501
541541
local_var_params['account_number'] is None): # noqa: E501
542-
raise ApiValueError("Missing the required parameter `account_number` when calling `validatte`") # noqa: E501
542+
raise ApiValueError("Missing the required parameter `account_number` when calling `validate`") # noqa: E501
543543

544544

545545
path_params = {}

paystack/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7171
self.default_headers[header_name] = header_value
7272
self.cookie = cookie
7373
# Set default User-Agent.
74-
self.user_agent = 'paystack-python/1.0.0'
74+
self.user_agent = 'paystack-python/1.0.1'
7575
self.client_side_validation = configuration.client_side_validation
7676

7777
def __enter__(self):

paystack/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def to_debug_report(self):
318318
"OS: {env}\n"\
319319
"Python Version: {pyversion}\n"\
320320
"Version of the API: 1.0.0\n"\
321-
"SDK Package Version: 1.0.0".\
321+
"SDK Package Version: 1.0.1".\
322322
format(env=sys.platform, pyversion=sys.version)
323323

324324
def get_host_settings(self):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from setuptools import setup, find_packages # noqa: H301
1414

1515
NAME = "paystack-sdk"
16-
VERSION = "1.0.0"
16+
VERSION = "1.0.1"
1717
# To install the library, run the following
1818
#
1919
# python setup.py install

0 commit comments

Comments
 (0)