Skip to content

Commit b7ce0f3

Browse files
committed
Adding ARBGetSubscription and GetCustomerPaymentProfileList features to SDK
Adds new features to retrieve ARB subscriptions and Customer payment profile list. New APIs to handle requests, responses and the necessary fields required for these features have been added. Also some other features have been updated *CreateCustomerPaymentProfile: Now response will also provide Customer Profile Id *CreateCustomerShippingAddress: Now response will also provide Customer Profile Id *GetCustomerPaymentProfile: Now request will require provide Unmask Expiration Date Signed-off-by: Srijan Misra <srmisra@visa.com>
1 parent b476c9a commit b7ce0f3

25 files changed

Lines changed: 1196 additions & 93 deletions

classmap.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,11 @@
242242
'net\authorize\api\contract\v1\ARBGetSubscriptionListRequest' => $libDir . 'net/authorize/api/contract/v1/ARBGetSubscriptionListRequest.php',
243243
'net\authorize\api\contract\v1\ARBGetSubscriptionListResponse' => $libDir . 'net/authorize/api/contract/v1/ARBGetSubscriptionListResponse.php',
244244
'net\authorize\api\contract\v1\ARBGetSubscriptionListSortingType' => $libDir . 'net/authorize/api/contract/v1/ARBGetSubscriptionListSortingType.php',
245+
'net\authorize\api\contract\v1\ARBGetSubscriptionRequest' => $libDir . 'net/authorize/api/contract/v1/ARBGetSubscriptionRequest.php',
246+
'net\authorize\api\contract\v1\ARBGetSubscriptionResponse' => $libDir . 'net/authorize/api/contract/v1/ARBGetSubscriptionResponse.php',
245247
'net\authorize\api\contract\v1\ARBGetSubscriptionStatusRequest' => $libDir . 'net/authorize/api/contract/v1/ARBGetSubscriptionStatusRequest.php',
246248
'net\authorize\api\contract\v1\ARBGetSubscriptionStatusResponse' => $libDir . 'net/authorize/api/contract/v1/ARBGetSubscriptionStatusResponse.php',
249+
'net\authorize\api\contract\v1\ARBSubscriptionMaskedType' => $libDir . 'net/authorize/api/contract/v1/ARBSubscriptionMaskedType.php',
247250
'net\authorize\api\contract\v1\ARBSubscriptionType' => $libDir . 'net/authorize/api/contract/v1/ARBSubscriptionType.php',
248251
'net\authorize\api\contract\v1\ARBUpdateSubscriptionRequest' => $libDir . 'net/authorize/api/contract/v1/ARBUpdateSubscriptionRequest.php',
249252
'net\authorize\api\contract\v1\ARBUpdateSubscriptionResponse' => $libDir . 'net/authorize/api/contract/v1/ARBUpdateSubscriptionResponse.php',
@@ -277,7 +280,9 @@
277280
'net\authorize\api\contract\v1\CustomerDataType' => $libDir . 'net/authorize/api/contract/v1/CustomerDataType.php',
278281
'net\authorize\api\contract\v1\CustomerPaymentProfileBaseType' => $libDir . 'net/authorize/api/contract/v1/CustomerPaymentProfileBaseType.php',
279282
'net\authorize\api\contract\v1\CustomerPaymentProfileExType' => $libDir . 'net/authorize/api/contract/v1/CustomerPaymentProfileExType.php',
283+
'net\authorize\api\contract\v1\CustomerPaymentProfileListItemType' => $libDir . 'net/authorize/api/contract/v1/CustomerPaymentProfileListItemType.php',
280284
'net\authorize\api\contract\v1\CustomerPaymentProfileMaskedType' => $libDir . 'net/authorize/api/contract/v1/CustomerPaymentProfileMaskedType.php',
285+
'net\authorize\api\contract\v1\CustomerPaymentProfileSortingType' => $libDir . 'net/authorize/api/contract/v1/CustomerPaymentProfileSortingType.php',
281286
'net\authorize\api\contract\v1\CustomerPaymentProfileType' => $libDir . 'net/authorize/api/contract/v1/CustomerPaymentProfileType.php',
282287
'net\authorize\api\contract\v1\CustomerProfileBaseType' => $libDir . 'net/authorize/api/contract/v1/CustomerProfileBaseType.php',
283288
'net\authorize\api\contract\v1\CustomerProfileExType' => $libDir . 'net/authorize/api/contract/v1/CustomerProfileExType.php',
@@ -305,6 +310,8 @@
305310
'net\authorize\api\contract\v1\FingerPrintType' => $libDir . 'net/authorize/api/contract/v1/FingerPrintType.php',
306311
'net\authorize\api\contract\v1\GetBatchStatisticsRequest' => $libDir . 'net/authorize/api/contract/v1/GetBatchStatisticsRequest.php',
307312
'net\authorize\api\contract\v1\GetBatchStatisticsResponse' => $libDir . 'net/authorize/api/contract/v1/GetBatchStatisticsResponse.php',
313+
'net\authorize\api\contract\v1\GetCustomerPaymentProfileListRequest' => $libDir . 'net/authorize/api/contract/v1/GetCustomerPaymentProfileListRequest.php',
314+
'net\authorize\api\contract\v1\GetCustomerPaymentProfileListResponse' => $libDir . 'net/authorize/api/contract/v1/GetCustomerPaymentProfileListResponse.php',
308315
'net\authorize\api\contract\v1\GetCustomerPaymentProfileRequest' => $libDir . 'net/authorize/api/contract/v1/GetCustomerPaymentProfileRequest.php',
309316
'net\authorize\api\contract\v1\GetCustomerPaymentProfileResponse' => $libDir . 'net/authorize/api/contract/v1/GetCustomerPaymentProfileResponse.php',
310317
'net\authorize\api\contract\v1\GetCustomerProfileIdsRequest' => $libDir . 'net/authorize/api/contract/v1/GetCustomerProfileIdsRequest.php',
@@ -368,6 +375,7 @@
368375
'net\authorize\api\contract\v1\SendCustomerTransactionReceiptResponse' => $libDir . 'net/authorize/api/contract/v1/SendCustomerTransactionReceiptResponse.php',
369376
'net\authorize\api\contract\v1\SettingType' => $libDir . 'net/authorize/api/contract/v1/SettingType.php',
370377
'net\authorize\api\contract\v1\SolutionType' => $libDir . 'net/authorize/api/contract/v1/SolutionType.php',
378+
'net\authorize\api\contract\v1\SubscriptionCustomerProfileType' => $libDir . 'net/authorize/api/contract/v1/SubscriptionCustomerProfileType.php',
371379
'net\authorize\api\contract\v1\SubscriptionDetailType' => $libDir . 'net/authorize/api/contract/v1/SubscriptionDetailType.php',
372380
'net\authorize\api\contract\v1\SubscriptionPaymentType' => $libDir . 'net/authorize/api/contract/v1/SubscriptionPaymentType.php',
373381
'net\authorize\api\contract\v1\TokenMaskedType' => $libDir . 'net/authorize/api/contract/v1/TokenMaskedType.php',
@@ -407,6 +415,7 @@
407415
//Controllers
408416
'net\authorize\api\controller\ARBCancelSubscriptionController' => $libDir . 'net/authorize/api/controller/ARBCancelSubscriptionController.php',
409417
'net\authorize\api\controller\ARBCreateSubscriptionController' => $libDir . 'net/authorize/api/controller/ARBCreateSubscriptionController.php',
418+
'net\authorize\api\controller\ARBGetSubscriptionController' => $libDir . 'net/authorize/api/controller/ARBGetSubscriptionController.php',
410419
'net\authorize\api\controller\ARBGetSubscriptionListController' => $libDir . 'net/authorize/api/controller/ARBGetSubscriptionListController.php',
411420
'net\authorize\api\controller\ARBGetSubscriptionStatusController' => $libDir . 'net/authorize/api/controller/ARBGetSubscriptionStatusController.php',
412421
'net\authorize\api\controller\ARBUpdateSubscriptionController' => $libDir . 'net/authorize/api/controller/ARBUpdateSubscriptionController.php',
@@ -423,6 +432,7 @@
423432
'net\authorize\api\controller\DeleteCustomerShippingAddressController' => $libDir . 'net/authorize/api/controller/DeleteCustomerShippingAddressController.php',
424433
'net\authorize\api\controller\GetBatchStatisticsController' => $libDir . 'net/authorize/api/controller/GetBatchStatisticsController.php',
425434
'net\authorize\api\controller\GetCustomerPaymentProfileController' => $libDir . 'net/authorize/api/controller/GetCustomerPaymentProfileController.php',
435+
'net\authorize\api\controller\GetCustomerPaymentProfileListController' => $libDir . 'net/authorize/api/controller/GetCustomerPaymentProfileListController.php',
426436
'net\authorize\api\controller\GetCustomerProfileController' => $libDir . 'net/authorize/api/controller/GetCustomerProfileController.php',
427437
'net\authorize\api\controller\GetCustomerProfileIdsController' => $libDir . 'net/authorize/api/controller/GetCustomerProfileIdsController.php',
428438
'net\authorize\api\controller\GetCustomerShippingAddressController' => $libDir . 'net/authorize/api/controller/GetCustomerShippingAddressController.php',
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
3+
namespace net\authorize\api\contract\v1;
4+
5+
/**
6+
* Class representing ARBGetSubscriptionRequest
7+
*/
8+
class ARBGetSubscriptionRequest extends ANetApiRequestType
9+
{
10+
11+
/**
12+
* @property string $subscriptionId
13+
*/
14+
private $subscriptionId = null;
15+
16+
/**
17+
* Gets as subscriptionId
18+
*
19+
* @return string
20+
*/
21+
public function getSubscriptionId()
22+
{
23+
return $this->subscriptionId;
24+
}
25+
26+
/**
27+
* Sets a new subscriptionId
28+
*
29+
* @param string $subscriptionId
30+
* @return self
31+
*/
32+
public function setSubscriptionId($subscriptionId)
33+
{
34+
$this->subscriptionId = $subscriptionId;
35+
return $this;
36+
}
37+
38+
39+
}
40+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
3+
namespace net\authorize\api\contract\v1;
4+
5+
/**
6+
* Class representing ARBGetSubscriptionResponse
7+
*/
8+
class ARBGetSubscriptionResponse extends ANetApiResponseType
9+
{
10+
11+
/**
12+
* @property \net\authorize\api\contract\v1\ARBSubscriptionMaskedType $subscription
13+
*/
14+
private $subscription = null;
15+
16+
/**
17+
* Gets as subscription
18+
*
19+
* @return \net\authorize\api\contract\v1\ARBSubscriptionMaskedType
20+
*/
21+
public function getSubscription()
22+
{
23+
return $this->subscription;
24+
}
25+
26+
/**
27+
* Sets a new subscription
28+
*
29+
* @param \net\authorize\api\contract\v1\ARBSubscriptionMaskedType $subscription
30+
* @return self
31+
*/
32+
public function setSubscription(\net\authorize\api\contract\v1\ARBSubscriptionMaskedType $subscription)
33+
{
34+
$this->subscription = $subscription;
35+
return $this;
36+
}
37+
38+
39+
}
40+
Lines changed: 206 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,206 @@
1+
<?php
2+
3+
namespace net\authorize\api\contract\v1;
4+
5+
/**
6+
* Class representing ARBSubscriptionMaskedType
7+
*
8+
*
9+
* XSD Type: ARBSubscriptionMaskedType
10+
*/
11+
class ARBSubscriptionMaskedType
12+
{
13+
14+
/**
15+
* @property string $name
16+
*/
17+
private $name = null;
18+
19+
/**
20+
* @property \net\authorize\api\contract\v1\PaymentScheduleType $paymentSchedule
21+
*/
22+
private $paymentSchedule = null;
23+
24+
/**
25+
* @property float $amount
26+
*/
27+
private $amount = null;
28+
29+
/**
30+
* @property float $trialAmount
31+
*/
32+
private $trialAmount = null;
33+
34+
/**
35+
* @property string $status
36+
*/
37+
private $status = null;
38+
39+
/**
40+
* @property \net\authorize\api\contract\v1\SubscriptionCustomerProfileType
41+
* $profile
42+
*/
43+
private $profile = null;
44+
45+
/**
46+
* @property \net\authorize\api\contract\v1\OrderType $order
47+
*/
48+
private $order = null;
49+
50+
/**
51+
* Gets as name
52+
*
53+
* @return string
54+
*/
55+
public function getName()
56+
{
57+
return $this->name;
58+
}
59+
60+
/**
61+
* Sets a new name
62+
*
63+
* @param string $name
64+
* @return self
65+
*/
66+
public function setName($name)
67+
{
68+
$this->name = $name;
69+
return $this;
70+
}
71+
72+
/**
73+
* Gets as paymentSchedule
74+
*
75+
* @return \net\authorize\api\contract\v1\PaymentScheduleType
76+
*/
77+
public function getPaymentSchedule()
78+
{
79+
return $this->paymentSchedule;
80+
}
81+
82+
/**
83+
* Sets a new paymentSchedule
84+
*
85+
* @param \net\authorize\api\contract\v1\PaymentScheduleType $paymentSchedule
86+
* @return self
87+
*/
88+
public function setPaymentSchedule(\net\authorize\api\contract\v1\PaymentScheduleType $paymentSchedule)
89+
{
90+
$this->paymentSchedule = $paymentSchedule;
91+
return $this;
92+
}
93+
94+
/**
95+
* Gets as amount
96+
*
97+
* @return float
98+
*/
99+
public function getAmount()
100+
{
101+
return $this->amount;
102+
}
103+
104+
/**
105+
* Sets a new amount
106+
*
107+
* @param float $amount
108+
* @return self
109+
*/
110+
public function setAmount($amount)
111+
{
112+
$this->amount = $amount;
113+
return $this;
114+
}
115+
116+
/**
117+
* Gets as trialAmount
118+
*
119+
* @return float
120+
*/
121+
public function getTrialAmount()
122+
{
123+
return $this->trialAmount;
124+
}
125+
126+
/**
127+
* Sets a new trialAmount
128+
*
129+
* @param float $trialAmount
130+
* @return self
131+
*/
132+
public function setTrialAmount($trialAmount)
133+
{
134+
$this->trialAmount = $trialAmount;
135+
return $this;
136+
}
137+
138+
/**
139+
* Gets as status
140+
*
141+
* @return string
142+
*/
143+
public function getStatus()
144+
{
145+
return $this->status;
146+
}
147+
148+
/**
149+
* Sets a new status
150+
*
151+
* @param string $status
152+
* @return self
153+
*/
154+
public function setStatus($status)
155+
{
156+
$this->status = $status;
157+
return $this;
158+
}
159+
160+
/**
161+
* Gets as profile
162+
*
163+
* @return \net\authorize\api\contract\v1\SubscriptionCustomerProfileType
164+
*/
165+
public function getProfile()
166+
{
167+
return $this->profile;
168+
}
169+
170+
/**
171+
* Sets a new profile
172+
*
173+
* @param \net\authorize\api\contract\v1\SubscriptionCustomerProfileType $profile
174+
* @return self
175+
*/
176+
public function setProfile(\net\authorize\api\contract\v1\SubscriptionCustomerProfileType $profile)
177+
{
178+
$this->profile = $profile;
179+
return $this;
180+
}
181+
182+
/**
183+
* Gets as order
184+
*
185+
* @return \net\authorize\api\contract\v1\OrderType
186+
*/
187+
public function getOrder()
188+
{
189+
return $this->order;
190+
}
191+
192+
/**
193+
* Sets a new order
194+
*
195+
* @param \net\authorize\api\contract\v1\OrderType $order
196+
* @return self
197+
*/
198+
public function setOrder(\net\authorize\api\contract\v1\OrderType $order)
199+
{
200+
$this->order = $order;
201+
return $this;
202+
}
203+
204+
205+
}
206+

lib/net/authorize/api/contract/v1/CreateCustomerPaymentProfileResponse.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
class CreateCustomerPaymentProfileResponse extends ANetApiResponseType
99
{
1010

11+
/**
12+
* @property string $customerProfileId
13+
*/
14+
private $customerProfileId = null;
15+
1116
/**
1217
* @property string $customerPaymentProfileId
1318
*/
@@ -18,6 +23,28 @@ class CreateCustomerPaymentProfileResponse extends ANetApiResponseType
1823
*/
1924
private $validationDirectResponse = null;
2025

26+
/**
27+
* Gets as customerProfileId
28+
*
29+
* @return string
30+
*/
31+
public function getCustomerProfileId()
32+
{
33+
return $this->customerProfileId;
34+
}
35+
36+
/**
37+
* Sets a new customerProfileId
38+
*
39+
* @param string $customerProfileId
40+
* @return self
41+
*/
42+
public function setCustomerProfileId($customerProfileId)
43+
{
44+
$this->customerProfileId = $customerProfileId;
45+
return $this;
46+
}
47+
2148
/**
2249
* Gets as customerPaymentProfileId
2350
*

0 commit comments

Comments
 (0)