Skip to content

Commit a313c67

Browse files
committed
Adding controllers for ARBGetSubscription and GetCustomerPaymentProfileList
Adds the necessary yml and controllers for * ARBGetSubscription * GetCustomerPaymentProfileList Signed-off-by: Srijan Misra <srmisra@visa.com>
1 parent 81bbfa1 commit a313c67

10 files changed

Lines changed: 300 additions & 0 deletions
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
namespace net\authorize\api\controller;
3+
4+
use net\authorize\api\contract\v1\AnetApiRequestType;
5+
use net\authorize\api\controller\base\ApiOperationBase;
6+
7+
class ARBGetSubscriptionController extends ApiOperationBase
8+
{
9+
public function __construct(AnetApiRequestType $request)
10+
{
11+
$responseType = 'net\authorize\api\contract\v1\ARBGetSubscriptionResponse';
12+
parent::__construct($request, $responseType);
13+
}
14+
15+
protected function validateRequest()
16+
{
17+
//validate required fields of $this->apiRequest->
18+
19+
//validate non-required fields of $this->apiRequest->
20+
}
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
namespace net\authorize\api\controller;
3+
4+
use net\authorize\api\contract\v1\AnetApiRequestType;
5+
use net\authorize\api\controller\base\ApiOperationBase;
6+
7+
class GetCustomerPaymentProfileListController extends ApiOperationBase
8+
{
9+
public function __construct(AnetApiRequestType $request)
10+
{
11+
$responseType = 'net\authorize\api\contract\v1\GetCustomerPaymentProfileListResponse';
12+
parent::__construct($request, $responseType);
13+
}
14+
15+
protected function validateRequest()
16+
{
17+
//validate required fields of $this->apiRequest->
18+
19+
//validate non-required fields of $this->apiRequest->
20+
}
21+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
net\authorize\api\contract\v1\ARBGetSubscriptionRequest:
2+
xml_root_name: ARBGetSubscriptionRequest
3+
xml_root_namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
4+
properties:
5+
subscriptionId:
6+
expose: true
7+
access_type: public_method
8+
serialized_name: subscriptionId
9+
xml_element:
10+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
11+
accessor:
12+
getter: getSubscriptionId
13+
setter: setSubscriptionId
14+
type: string
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
net\authorize\api\contract\v1\ARBGetSubscriptionResponse:
2+
xml_root_name: ARBGetSubscriptionResponse
3+
xml_root_namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
4+
properties:
5+
subscription:
6+
expose: true
7+
access_type: public_method
8+
serialized_name: subscription
9+
xml_element:
10+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
11+
accessor:
12+
getter: getSubscription
13+
setter: setSubscription
14+
type: net\authorize\api\contract\v1\ARBSubscriptionMaskedType
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
net\authorize\api\contract\v1\ARBSubscriptionMaskedType:
2+
properties:
3+
name:
4+
expose: true
5+
access_type: public_method
6+
serialized_name: name
7+
xml_element:
8+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
9+
accessor:
10+
getter: getName
11+
setter: setName
12+
type: string
13+
paymentSchedule:
14+
expose: true
15+
access_type: public_method
16+
serialized_name: paymentSchedule
17+
xml_element:
18+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
19+
accessor:
20+
getter: getPaymentSchedule
21+
setter: setPaymentSchedule
22+
type: net\authorize\api\contract\v1\PaymentScheduleType
23+
amount:
24+
expose: true
25+
access_type: public_method
26+
serialized_name: amount
27+
xml_element:
28+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
29+
accessor:
30+
getter: getAmount
31+
setter: setAmount
32+
type: float
33+
trialAmount:
34+
expose: true
35+
access_type: public_method
36+
serialized_name: trialAmount
37+
xml_element:
38+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
39+
accessor:
40+
getter: getTrialAmount
41+
setter: setTrialAmount
42+
type: float
43+
status:
44+
expose: true
45+
access_type: public_method
46+
serialized_name: status
47+
xml_element:
48+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
49+
accessor:
50+
getter: getStatus
51+
setter: setStatus
52+
type: string
53+
profile:
54+
expose: true
55+
access_type: public_method
56+
serialized_name: profile
57+
xml_element:
58+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
59+
accessor:
60+
getter: getProfile
61+
setter: setProfile
62+
type: net\authorize\api\contract\v1\SubscriptionCustomerProfileType
63+
order:
64+
expose: true
65+
access_type: public_method
66+
serialized_name: order
67+
xml_element:
68+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
69+
accessor:
70+
getter: getOrder
71+
setter: setOrder
72+
type: net\authorize\api\contract\v1\OrderType
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
net\authorize\api\contract\v1\CustomerPaymentProfileListItemType:
2+
properties:
3+
customerPaymentProfileId:
4+
expose: true
5+
access_type: public_method
6+
serialized_name: customerPaymentProfileId
7+
xml_element:
8+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
9+
accessor:
10+
getter: getCustomerPaymentProfileId
11+
setter: setCustomerPaymentProfileId
12+
type: integer
13+
customerProfileId:
14+
expose: true
15+
access_type: public_method
16+
serialized_name: customerProfileId
17+
xml_element:
18+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
19+
accessor:
20+
getter: getCustomerProfileId
21+
setter: setCustomerProfileId
22+
type: integer
23+
billTo:
24+
expose: true
25+
access_type: public_method
26+
serialized_name: billTo
27+
xml_element:
28+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
29+
accessor:
30+
getter: getBillTo
31+
setter: setBillTo
32+
type: net\authorize\api\contract\v1\CustomerAddressType
33+
payment:
34+
expose: true
35+
access_type: public_method
36+
serialized_name: payment
37+
xml_element:
38+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
39+
accessor:
40+
getter: getPayment
41+
setter: setPayment
42+
type: net\authorize\api\contract\v1\PaymentMaskedType
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
net\authorize\api\contract\v1\CustomerPaymentProfileSortingType:
2+
properties:
3+
orderBy:
4+
expose: true
5+
access_type: public_method
6+
serialized_name: orderBy
7+
xml_element:
8+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
9+
accessor:
10+
getter: getOrderBy
11+
setter: setOrderBy
12+
type: string
13+
orderDescending:
14+
expose: true
15+
access_type: public_method
16+
serialized_name: orderDescending
17+
xml_element:
18+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
19+
accessor:
20+
getter: getOrderDescending
21+
setter: setOrderDescending
22+
type: boolean
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
net\authorize\api\contract\v1\GetCustomerPaymentProfileListRequest:
2+
xml_root_name: getCustomerPaymentProfileListRequest
3+
xml_root_namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
4+
properties:
5+
searchType:
6+
expose: true
7+
access_type: public_method
8+
serialized_name: searchType
9+
xml_element:
10+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
11+
accessor:
12+
getter: getSearchType
13+
setter: setSearchType
14+
type: string
15+
month:
16+
expose: true
17+
access_type: public_method
18+
serialized_name: month
19+
xml_element:
20+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
21+
accessor:
22+
getter: getMonth
23+
setter: setMonth
24+
type: string
25+
sorting:
26+
expose: true
27+
access_type: public_method
28+
serialized_name: sorting
29+
xml_element:
30+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
31+
accessor:
32+
getter: getSorting
33+
setter: setSorting
34+
type: net\authorize\api\contract\v1\CustomerPaymentProfileSortingType
35+
paging:
36+
expose: true
37+
access_type: public_method
38+
serialized_name: paging
39+
xml_element:
40+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
41+
accessor:
42+
getter: getPaging
43+
setter: setPaging
44+
type: net\authorize\api\contract\v1\PagingType
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
net\authorize\api\contract\v1\GetCustomerPaymentProfileListResponse:
2+
xml_root_name: getCustomerPaymentProfileListResponse
3+
xml_root_namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
4+
properties:
5+
totalNumInResultSet:
6+
expose: true
7+
access_type: public_method
8+
serialized_name: totalNumInResultSet
9+
xml_element:
10+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
11+
accessor:
12+
getter: getTotalNumInResultSet
13+
setter: setTotalNumInResultSet
14+
type: integer
15+
paymentProfiles:
16+
expose: true
17+
access_type: public_method
18+
serialized_name: paymentProfiles
19+
xml_element:
20+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
21+
accessor:
22+
getter: getPaymentProfiles
23+
setter: setPaymentProfiles
24+
type: array<net\authorize\api\contract\v1\CustomerPaymentProfileListItemType>
25+
xml_list:
26+
inline: false
27+
entry_name: paymentProfile
28+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
net\authorize\api\contract\v1\SubscriptionCustomerProfileType:
2+
properties:
3+
paymentProfile:
4+
expose: true
5+
access_type: public_method
6+
serialized_name: paymentProfile
7+
xml_element:
8+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
9+
accessor:
10+
getter: getPaymentProfile
11+
setter: setPaymentProfile
12+
type: net\authorize\api\contract\v1\CustomerPaymentProfileMaskedType
13+
shippingProfile:
14+
expose: true
15+
access_type: public_method
16+
serialized_name: shippingProfile
17+
xml_element:
18+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
19+
accessor:
20+
getter: getShippingProfile
21+
setter: setShippingProfile
22+
type: net\authorize\api\contract\v1\CustomerAddressExType

0 commit comments

Comments
 (0)