Skip to content

Commit 249ec72

Browse files
authored
Merge pull request #288 from ashtru/master
Add includeTransactions in ARBGetSubscription API
2 parents 46df374 + 403a505 commit 249ec72

8 files changed

Lines changed: 344 additions & 0 deletions

classmap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@
261261
'net\authorize\api\contract\v1\ARBGetSubscriptionStatusResponse' => $libDir . 'net/authorize/api/contract/v1/ARBGetSubscriptionStatusResponse.php',
262262
'net\authorize\api\contract\v1\ARBSubscriptionMaskedType' => $libDir . 'net/authorize/api/contract/v1/ARBSubscriptionMaskedType.php',
263263
'net\authorize\api\contract\v1\ARBSubscriptionType' => $libDir . 'net/authorize/api/contract/v1/ARBSubscriptionType.php',
264+
'net\authorize\api\contract\v1\ArbTransactionType' => $libDir . 'net/authorize/api/contract/v1/ArbTransactionType.php',
264265
'net\authorize\api\contract\v1\ARBUpdateSubscriptionRequest' => $libDir . 'net/authorize/api/contract/v1/ARBUpdateSubscriptionRequest.php',
265266
'net\authorize\api\contract\v1\ARBUpdateSubscriptionResponse' => $libDir . 'net/authorize/api/contract/v1/ARBUpdateSubscriptionResponse.php',
266267
'net\authorize\api\contract\v1\ArrayOfSettingType' => $libDir . 'net/authorize/api/contract/v1/ArrayOfSettingType.php',

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ class ARBGetSubscriptionRequest extends ANetApiRequestType
1313
*/
1414
private $subscriptionId = null;
1515

16+
/**
17+
* @property boolean $includeTransactions
18+
*/
19+
private $includeTransactions = null;
20+
1621
/**
1722
* Gets as subscriptionId
1823
*
@@ -35,6 +40,28 @@ public function setSubscriptionId($subscriptionId)
3540
return $this;
3641
}
3742

43+
/**
44+
* Gets as includeTransactions
45+
*
46+
* @return boolean
47+
*/
48+
public function getIncludeTransactions()
49+
{
50+
return $this->includeTransactions;
51+
}
52+
53+
/**
54+
* Sets a new includeTransactions
55+
*
56+
* @param boolean $includeTransactions
57+
* @return self
58+
*/
59+
public function setIncludeTransactions($includeTransactions)
60+
{
61+
$this->includeTransactions = $includeTransactions;
62+
return $this;
63+
}
64+
3865

3966
}
4067

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

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ class ARBSubscriptionMaskedType
4747
*/
4848
private $order = null;
4949

50+
/**
51+
* @property \net\authorize\api\contract\v1\ArbTransactionType[] $arbTransactions
52+
*/
53+
private $arbTransactions = null;
54+
5055
/**
5156
* Gets as name
5257
*
@@ -201,6 +206,62 @@ public function setOrder(\net\authorize\api\contract\v1\OrderType $order)
201206
return $this;
202207
}
203208

209+
/**
210+
* Adds as arbTransaction
211+
*
212+
* @return self
213+
* @param \net\authorize\api\contract\v1\ArbTransactionType $arbTransaction
214+
*/
215+
public function addToArbTransactions(\net\authorize\api\contract\v1\ArbTransactionType $arbTransaction)
216+
{
217+
$this->arbTransactions[] = $arbTransaction;
218+
return $this;
219+
}
220+
221+
/**
222+
* isset arbTransactions
223+
*
224+
* @param scalar $index
225+
* @return boolean
226+
*/
227+
public function issetArbTransactions($index)
228+
{
229+
return isset($this->arbTransactions[$index]);
230+
}
231+
232+
/**
233+
* unset arbTransactions
234+
*
235+
* @param scalar $index
236+
* @return void
237+
*/
238+
public function unsetArbTransactions($index)
239+
{
240+
unset($this->arbTransactions[$index]);
241+
}
242+
243+
/**
244+
* Gets as arbTransactions
245+
*
246+
* @return \net\authorize\api\contract\v1\ArbTransactionType[]
247+
*/
248+
public function getArbTransactions()
249+
{
250+
return $this->arbTransactions;
251+
}
252+
253+
/**
254+
* Sets a new arbTransactions
255+
*
256+
* @param \net\authorize\api\contract\v1\ArbTransactionType[] $arbTransactions
257+
* @return self
258+
*/
259+
public function setArbTransactions(array $arbTransactions)
260+
{
261+
$this->arbTransactions = $arbTransactions;
262+
return $this;
263+
}
264+
204265

205266
}
206267

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
<?php
2+
3+
namespace net\authorize\api\contract\v1;
4+
5+
/**
6+
* Class representing ArbTransactionType
7+
*
8+
*
9+
* XSD Type: arbTransaction
10+
*/
11+
class ArbTransactionType
12+
{
13+
14+
/**
15+
* @property string $transId
16+
*/
17+
private $transId = null;
18+
19+
/**
20+
* @property string $response
21+
*/
22+
private $response = null;
23+
24+
/**
25+
* @property \DateTime $submitTimeUTC
26+
*/
27+
private $submitTimeUTC = null;
28+
29+
/**
30+
* @property integer $payNum
31+
*/
32+
private $payNum = null;
33+
34+
/**
35+
* @property integer $attemptNum
36+
*/
37+
private $attemptNum = null;
38+
39+
/**
40+
* Gets as transId
41+
*
42+
* @return string
43+
*/
44+
public function getTransId()
45+
{
46+
return $this->transId;
47+
}
48+
49+
/**
50+
* Sets a new transId
51+
*
52+
* @param string $transId
53+
* @return self
54+
*/
55+
public function setTransId($transId)
56+
{
57+
$this->transId = $transId;
58+
return $this;
59+
}
60+
61+
/**
62+
* Gets as response
63+
*
64+
* @return string
65+
*/
66+
public function getResponse()
67+
{
68+
return $this->response;
69+
}
70+
71+
/**
72+
* Sets a new response
73+
*
74+
* @param string $response
75+
* @return self
76+
*/
77+
public function setResponse($response)
78+
{
79+
$this->response = $response;
80+
return $this;
81+
}
82+
83+
/**
84+
* Gets as submitTimeUTC
85+
*
86+
* @return \DateTime
87+
*/
88+
public function getSubmitTimeUTC()
89+
{
90+
return $this->submitTimeUTC;
91+
}
92+
93+
/**
94+
* Sets a new submitTimeUTC
95+
*
96+
* @param \DateTime $submitTimeUTC
97+
* @return self
98+
*/
99+
public function setSubmitTimeUTC(\DateTime $submitTimeUTC)
100+
{
101+
$this->submitTimeUTC = $submitTimeUTC;
102+
return $this;
103+
}
104+
105+
/**
106+
* Gets as payNum
107+
*
108+
* @return integer
109+
*/
110+
public function getPayNum()
111+
{
112+
return $this->payNum;
113+
}
114+
115+
/**
116+
* Sets a new payNum
117+
*
118+
* @param integer $payNum
119+
* @return self
120+
*/
121+
public function setPayNum($payNum)
122+
{
123+
$this->payNum = $payNum;
124+
return $this;
125+
}
126+
127+
/**
128+
* Gets as attemptNum
129+
*
130+
* @return integer
131+
*/
132+
public function getAttemptNum()
133+
{
134+
return $this->attemptNum;
135+
}
136+
137+
/**
138+
* Sets a new attemptNum
139+
*
140+
* @param integer $attemptNum
141+
* @return self
142+
*/
143+
public function setAttemptNum($attemptNum)
144+
{
145+
$this->attemptNum = $attemptNum;
146+
return $this;
147+
}
148+
149+
150+
}
151+

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,13 @@ net\authorize\api\contract\v1\ARBGetSubscriptionRequest:
1212
getter: getSubscriptionId
1313
setter: setSubscriptionId
1414
type: string
15+
includeTransactions:
16+
expose: true
17+
access_type: public_method
18+
serialized_name: includeTransactions
19+
xml_element:
20+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
21+
accessor:
22+
getter: getIncludeTransactions
23+
setter: setIncludeTransactions
24+
type: boolean

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,18 @@ net\authorize\api\contract\v1\ARBSubscriptionMaskedType:
7070
getter: getOrder
7171
setter: setOrder
7272
type: net\authorize\api\contract\v1\OrderType
73+
arbTransactions:
74+
expose: true
75+
access_type: public_method
76+
serialized_name: arbTransactions
77+
xml_element:
78+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
79+
accessor:
80+
getter: getArbTransactions
81+
setter: setArbTransactions
82+
type: array<net\authorize\api\contract\v1\ArbTransactionType>
83+
xml_list:
84+
inline: false
85+
skip_when_empty: true
86+
entry_name: arbTransaction
87+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
net\authorize\api\contract\v1\ArbTransactionType:
2+
properties:
3+
transId:
4+
expose: true
5+
access_type: public_method
6+
serialized_name: transId
7+
xml_element:
8+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
9+
accessor:
10+
getter: getTransId
11+
setter: setTransId
12+
type: string
13+
response:
14+
expose: true
15+
access_type: public_method
16+
serialized_name: response
17+
xml_element:
18+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
19+
accessor:
20+
getter: getResponse
21+
setter: setResponse
22+
type: string
23+
submitTimeUTC:
24+
expose: true
25+
access_type: public_method
26+
serialized_name: submitTimeUTC
27+
xml_element:
28+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
29+
accessor:
30+
getter: getSubmitTimeUTC
31+
setter: setSubmitTimeUTC
32+
type: GoetasWebservices\Xsd\XsdToPhp\XMLSchema\DateTime
33+
payNum:
34+
expose: true
35+
access_type: public_method
36+
serialized_name: payNum
37+
xml_element:
38+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
39+
accessor:
40+
getter: getPayNum
41+
setter: setPayNum
42+
type: integer
43+
attemptNum:
44+
expose: true
45+
access_type: public_method
46+
serialized_name: attemptNum
47+
xml_element:
48+
namespace: AnetApi/xml/v1/schema/AnetApiSchema.xsd
49+
accessor:
50+
getter: getAttemptNum
51+
setter: setAttemptNum
52+
type: integer

scripts/composer.json.masterUpdate

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "authorizenet/authorizenet",
3+
"type": "library",
4+
"description": "Official PHP SDK for Authorize.Net",
5+
"keywords": ["authorizenet", "authorize.net", "payment", "ecommerce"],
6+
"license": "proprietary",
7+
"homepage": "http://developer.authorize.net",
8+
"require": {
9+
"php": ">=5.6",
10+
"ext-curl": "*",
11+
"ext-json": "*",
12+
"ext-simplexml": "*",
13+
"ext-xmlwriter": "*",
14+
"goetas-webservices/xsd2php-runtime":"^0.2.2",
15+
"goetas/xsd2php": "^2.0"
16+
},
17+
"require-dev": {
18+
"phpunit/phpunit": "~4.0",
19+
"phpmd/phpmd": "~2.0"
20+
},
21+
"autoload": {
22+
"classmap": ["lib"]
23+
},
24+
"autoload-dev": {
25+
"classmap": ["tests"]
26+
}
27+
}

0 commit comments

Comments
 (0)