Skip to content

Commit 91c830d

Browse files
committed
Added changes for Network Token and Guest Profiles
1 parent 482d51e commit 91c830d

14 files changed

Lines changed: 248 additions & 8 deletions

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ class CreateCustomerProfileFromTransactionRequest extends ANetApiRequestType
3333
*/
3434
private $defaultShippingAddress = null;
3535

36+
/**
37+
* @property string $profileType
38+
*/
39+
private $profileType = null;
40+
3641
/**
3742
* Gets as transId
3843
*
@@ -143,6 +148,28 @@ public function setDefaultShippingAddress($defaultShippingAddress)
143148
return $this;
144149
}
145150

151+
/**
152+
* Gets as profileType
153+
*
154+
* @return string
155+
*/
156+
public function getProfileType()
157+
{
158+
return $this->profileType;
159+
}
160+
161+
/**
162+
* Sets a new profileType
163+
*
164+
* @param string $profileType
165+
* @return self
166+
*/
167+
public function setProfileType($profileType)
168+
{
169+
$this->profileType = $profileType;
170+
return $this;
171+
}
172+
146173

147174
}
148175

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ class CreditCardMaskedType
3636
*/
3737
private $issuerNumber = null;
3838

39+
/**
40+
* @property boolean $isPaymentToken
41+
*/
42+
private $isPaymentToken = null;
43+
3944
/**
4045
* Gets as cardNumber
4146
*
@@ -146,6 +151,28 @@ public function setIssuerNumber($issuerNumber)
146151
return $this;
147152
}
148153

154+
/**
155+
* Gets as isPaymentToken
156+
*
157+
* @return boolean
158+
*/
159+
public function getIsPaymentToken()
160+
{
161+
return $this->isPaymentToken;
162+
}
163+
164+
/**
165+
* Sets a new isPaymentToken
166+
*
167+
* @param boolean $isPaymentToken
168+
* @return self
169+
*/
170+
public function setIsPaymentToken($isPaymentToken)
171+
{
172+
$this->isPaymentToken = $isPaymentToken;
173+
return $this;
174+
}
175+
149176

150177
}
151178

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?php
2+
3+
namespace net\authorize\api\contract\v1;
4+
5+
/**
6+
* Class representing CustomerProfileInfoExType
7+
*
8+
*
9+
* XSD Type: customerProfileInfoExType
10+
*/
11+
class CustomerProfileInfoExType extends CustomerProfileExType
12+
{
13+
14+
/**
15+
* @property string $profileType
16+
*/
17+
private $profileType = null;
18+
19+
/**
20+
* Gets as profileType
21+
*
22+
* @return string
23+
*/
24+
public function getProfileType()
25+
{
26+
return $this->profileType;
27+
}
28+
29+
/**
30+
* Sets a new profileType
31+
*
32+
* @param string $profileType
33+
* @return self
34+
*/
35+
public function setProfileType($profileType)
36+
{
37+
$this->profileType = $profileType;
38+
return $this;
39+
}
40+
41+
42+
}
43+

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

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Class representing CustomerProfileMaskedType
77
*
8-
*
8+
*
99
* XSD Type: customerProfileMaskedType
1010
*/
1111
class CustomerProfileMaskedType extends CustomerProfileExType
@@ -22,6 +22,11 @@ class CustomerProfileMaskedType extends CustomerProfileExType
2222
*/
2323
private $shipToList = null;
2424

25+
/**
26+
* @property string $profileType
27+
*/
28+
private $profileType = null;
29+
2530
/**
2631
* Adds as paymentProfiles
2732
*
@@ -136,6 +141,28 @@ public function setShipToList(array $shipToList)
136141
return $this;
137142
}
138143

144+
/**
145+
* Gets as profileType
146+
*
147+
* @return string
148+
*/
149+
public function getProfileType()
150+
{
151+
return $this->profileType;
152+
}
153+
154+
/**
155+
* Sets a new profileType
156+
*
157+
* @param string $profileType
158+
* @return self
159+
*/
160+
public function setProfileType($profileType)
161+
{
162+
$this->profileType = $profileType;
163+
return $this;
164+
}
165+
139166

140167
}
141168

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

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Class representing CustomerProfileType
77
*
8-
*
8+
*
99
* XSD Type: customerProfileType
1010
*/
1111
class CustomerProfileType extends CustomerProfileBaseType
@@ -22,6 +22,11 @@ class CustomerProfileType extends CustomerProfileBaseType
2222
*/
2323
private $shipToList = null;
2424

25+
/**
26+
* @property string $profileType
27+
*/
28+
private $profileType = null;
29+
2530
/**
2631
* Adds as paymentProfiles
2732
*
@@ -136,6 +141,28 @@ public function setShipToList(array $shipToList)
136141
return $this;
137142
}
138143

144+
/**
145+
* Gets as profileType
146+
*
147+
* @return string
148+
*/
149+
public function getProfileType()
150+
{
151+
return $this->profileType;
152+
}
153+
154+
/**
155+
* Sets a new profileType
156+
*
157+
* @param string $profileType
158+
* @return self
159+
*/
160+
public function setProfileType($profileType)
161+
{
162+
$this->profileType = $profileType;
163+
return $this;
164+
}
165+
139166

140167
}
141168

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

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Class representing PaymentType
77
*
8-
*
8+
*
99
* XSD Type: paymentType
1010
*/
1111
class PaymentType
@@ -47,6 +47,11 @@ class PaymentType
4747
*/
4848
private $emv = null;
4949

50+
/**
51+
* @property string $dataSource
52+
*/
53+
private $dataSource = null;
54+
5055
/**
5156
* Gets as creditCard
5257
*
@@ -201,6 +206,28 @@ public function setEmv(\net\authorize\api\contract\v1\PaymentEmvType $emv)
201206
return $this;
202207
}
203208

209+
/**
210+
* Gets as dataSource
211+
*
212+
* @return string
213+
*/
214+
public function getDataSource()
215+
{
216+
return $this->dataSource;
217+
}
218+
219+
/**
220+
* Sets a new dataSource
221+
*
222+
* @param string $dataSource
223+
* @return self
224+
*/
225+
public function setDataSource($dataSource)
226+
{
227+
$this->dataSource = $dataSource;
228+
return $this;
229+
}
230+
204231

205232
}
206233

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ class UpdateCustomerProfileRequest extends ANetApiRequestType
99
{
1010

1111
/**
12-
* @property \net\authorize\api\contract\v1\CustomerProfileExType $profile
12+
* @property \net\authorize\api\contract\v1\CustomerProfileInfoExType $profile
1313
*/
1414
private $profile = null;
1515

1616
/**
1717
* Gets as profile
1818
*
19-
* @return \net\authorize\api\contract\v1\CustomerProfileExType
19+
* @return \net\authorize\api\contract\v1\CustomerProfileInfoExType
2020
*/
2121
public function getProfile()
2222
{
@@ -26,10 +26,10 @@ public function getProfile()
2626
/**
2727
* Sets a new profile
2828
*
29-
* @param \net\authorize\api\contract\v1\CustomerProfileExType $profile
29+
* @param \net\authorize\api\contract\v1\CustomerProfileInfoExType $profile
3030
* @return self
3131
*/
32-
public function setProfile(\net\authorize\api\contract\v1\CustomerProfileExType $profile)
32+
public function setProfile(\net\authorize\api\contract\v1\CustomerProfileInfoExType $profile)
3333
{
3434
$this->profile = $profile;
3535
return $this;

lib/net/authorize/api/yml/v1/CreateCustomerProfileFromTransactionRequest.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,13 @@ net\authorize\api\contract\v1\CreateCustomerProfileFromTransactionRequest:
5252
getter: getDefaultShippingAddress
5353
setter: setDefaultShippingAddress
5454
type: boolean
55+
profileType:
56+
expose: true
57+
access_type: public_method
58+
serialized_name: profileType
59+
xml_element:
60+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
61+
accessor:
62+
getter: getProfileType
63+
setter: setProfileType
64+
type: string

lib/net/authorize/api/yml/v1/CreditCardMaskedType.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,13 @@ net\authorize\api\contract\v1\CreditCardMaskedType:
5050
getter: getIssuerNumber
5151
setter: setIssuerNumber
5252
type: string
53+
isPaymentToken:
54+
expose: true
55+
access_type: public_method
56+
serialized_name: isPaymentToken
57+
xml_element:
58+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
59+
accessor:
60+
getter: getIsPaymentToken
61+
setter: setIsPaymentToken
62+
type: boolean
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
net\authorize\api\contract\v1\CustomerProfileInfoExType:
2+
properties:
3+
profileType:
4+
expose: true
5+
access_type: public_method
6+
serialized_name: profileType
7+
xml_element:
8+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
9+
accessor:
10+
getter: getProfileType
11+
setter: setProfileType
12+
type: string

0 commit comments

Comments
 (0)