Skip to content

Commit 44c2903

Browse files
committed
Merge pull request AuthorizeNet#12 from krgupta1/master
new controllers
2 parents df60d97 + 67c7a33 commit 44c2903

File tree

7 files changed

+295
-144
lines changed

7 files changed

+295
-144
lines changed

ControllerTemplate.pyt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
1+
22
class APICONTROLLERNAMEController(apicontrollersbase.APIOperationBase):
33

44
def __init__(self, apirequest, requestType):
5-
super(APICONTROLLERNAMEController, self).__init__(apirequest, requestType)
5+
super(APICONTROLLERNAMEController, self).__init__(apirequest)
66
return
77

88
def validaterequest(self):
@@ -11,7 +11,11 @@ class APICONTROLLERNAMEController(apicontrollersbase.APIOperationBase):
1111
#if (self._request.xyz == "null"):
1212
# raise ValueError('xyz is required')
1313
return
14+
15+
def getrequesttype(self):
16+
'''Returns request type'''
17+
return 'APICONTROLLERNAMERequest'
1418

1519
def getresponseclass(self):
1620
''' Returns the response class '''
17-
return apicontractsv1.APICONTROLLERNAMEResponse()
21+
return apicontractsv1.APICONTROLLERNAMEResponse()

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ Testing
2121
How to Use
2222
--------------------------------------
2323
You need to set your credentials.
24-
Refer to template given in anet_python_sdk_properties.ini
25-
Either copy it to your root directory or make a new one similar to this. If you create one name file anet_python_sdk_properties.ini
24+
Refer to template given in anet_python_sdk_properties_template.ini
25+
Either copy it to your root directory or make a new one similar to this. Whatever you opt, name file anet_python_sdk_properties.ini
2626

2727
The following is a sample which shows how to create a transaction request
2828
and execute it using the create transaction controller.

0 commit comments

Comments
 (0)