Skip to content

Commit 6eeaa2c

Browse files
authored
Merge pull request #352 from AuthorizeNet/Nov2018
Update to v1.9.9
2 parents 551bb3f + 6808106 commit 6eeaa2c

34 files changed

+2895
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ override the new secure-http default setting)*.
5757
{
5858
"require": {
5959
"php": ">=5.6",
60-
"authorizenet/authorizenet": "~1.9.8"
60+
"authorizenet/authorizenet": "~1.9.9"
6161
}
6262
}
6363
```

lib/deprecated/shared/AuthorizeNetRequest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ protected function _sendRequest()
102102
curl_setopt($curl_request, CURLOPT_SSL_VERIFYHOST, 2);
103103

104104
if ($this->VERIFY_PEER) {
105-
curl_setopt($curl_request, CURLOPT_CAINFO, dirname(dirname(__FILE__)) . '/ssl/cert.pem');
105+
curl_setopt($curl_request, CURLOPT_CAINFO, dirname(dirname(__FILE__)) . '../../ssl/cert.pem');
106106
} else {
107107
if ($this->_logger) {
108108
$this->_logger->error("----Request----\nInvalid SSL option\n");

lib/net/authorize/api/constants/ANetEnvironment.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ class ANetEnvironment
77
const SANDBOX = "https://apitest.authorize.net";
88
const PRODUCTION = "https://api2.authorize.net";
99

10-
const VERSION = "1.9.8";
10+
const VERSION = "1.9.9";
1111
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
<?php
2+
3+
namespace net\authorize\api\contract\v1;
4+
5+
/**
6+
* Class representing ContactDetailType
7+
*
8+
*
9+
* XSD Type: ContactDetailType
10+
*/
11+
class ContactDetailType
12+
{
13+
14+
/**
15+
* @property string $email
16+
*/
17+
private $email = null;
18+
19+
/**
20+
* @property string $firstName
21+
*/
22+
private $firstName = null;
23+
24+
/**
25+
* @property string $lastName
26+
*/
27+
private $lastName = null;
28+
29+
/**
30+
* Gets as email
31+
*
32+
* @return string
33+
*/
34+
public function getEmail()
35+
{
36+
return $this->email;
37+
}
38+
39+
/**
40+
* Sets a new email
41+
*
42+
* @param string $email
43+
* @return self
44+
*/
45+
public function setEmail($email)
46+
{
47+
$this->email = $email;
48+
return $this;
49+
}
50+
51+
/**
52+
* Gets as firstName
53+
*
54+
* @return string
55+
*/
56+
public function getFirstName()
57+
{
58+
return $this->firstName;
59+
}
60+
61+
/**
62+
* Sets a new firstName
63+
*
64+
* @param string $firstName
65+
* @return self
66+
*/
67+
public function setFirstName($firstName)
68+
{
69+
$this->firstName = $firstName;
70+
return $this;
71+
}
72+
73+
/**
74+
* Gets as lastName
75+
*
76+
* @return string
77+
*/
78+
public function getLastName()
79+
{
80+
return $this->lastName;
81+
}
82+
83+
/**
84+
* Sets a new lastName
85+
*
86+
* @param string $lastName
87+
* @return self
88+
*/
89+
public function setLastName($lastName)
90+
{
91+
$this->lastName = $lastName;
92+
return $this;
93+
}
94+
95+
96+
}
97+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<?php
2+
3+
namespace net\authorize\api\contract\v1;
4+
5+
/**
6+
* Class representing GetCustomerPaymentProfileNonceRequest
7+
*/
8+
class GetCustomerPaymentProfileNonceRequest extends ANetApiRequestType
9+
{
10+
11+
/**
12+
* @property string $connectedAccessToken
13+
*/
14+
private $connectedAccessToken = null;
15+
16+
/**
17+
* @property string $customerProfileId
18+
*/
19+
private $customerProfileId = null;
20+
21+
/**
22+
* @property string $customerPaymentProfileId
23+
*/
24+
private $customerPaymentProfileId = null;
25+
26+
/**
27+
* Gets as connectedAccessToken
28+
*
29+
* @return string
30+
*/
31+
public function getConnectedAccessToken()
32+
{
33+
return $this->connectedAccessToken;
34+
}
35+
36+
/**
37+
* Sets a new connectedAccessToken
38+
*
39+
* @param string $connectedAccessToken
40+
* @return self
41+
*/
42+
public function setConnectedAccessToken($connectedAccessToken)
43+
{
44+
$this->connectedAccessToken = $connectedAccessToken;
45+
return $this;
46+
}
47+
48+
/**
49+
* Gets as customerProfileId
50+
*
51+
* @return string
52+
*/
53+
public function getCustomerProfileId()
54+
{
55+
return $this->customerProfileId;
56+
}
57+
58+
/**
59+
* Sets a new customerProfileId
60+
*
61+
* @param string $customerProfileId
62+
* @return self
63+
*/
64+
public function setCustomerProfileId($customerProfileId)
65+
{
66+
$this->customerProfileId = $customerProfileId;
67+
return $this;
68+
}
69+
70+
/**
71+
* Gets as customerPaymentProfileId
72+
*
73+
* @return string
74+
*/
75+
public function getCustomerPaymentProfileId()
76+
{
77+
return $this->customerPaymentProfileId;
78+
}
79+
80+
/**
81+
* Sets a new customerPaymentProfileId
82+
*
83+
* @param string $customerPaymentProfileId
84+
* @return self
85+
*/
86+
public function setCustomerPaymentProfileId($customerPaymentProfileId)
87+
{
88+
$this->customerPaymentProfileId = $customerPaymentProfileId;
89+
return $this;
90+
}
91+
92+
93+
}
94+
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 GetCustomerPaymentProfileNonceResponse
7+
*/
8+
class GetCustomerPaymentProfileNonceResponse extends ANetApiResponseType
9+
{
10+
11+
/**
12+
* @property \net\authorize\api\contract\v1\OpaqueDataType $opaqueData
13+
*/
14+
private $opaqueData = null;
15+
16+
/**
17+
* Gets as opaqueData
18+
*
19+
* @return \net\authorize\api\contract\v1\OpaqueDataType
20+
*/
21+
public function getOpaqueData()
22+
{
23+
return $this->opaqueData;
24+
}
25+
26+
/**
27+
* Sets a new opaqueData
28+
*
29+
* @param \net\authorize\api\contract\v1\OpaqueDataType $opaqueData
30+
* @return self
31+
*/
32+
public function setOpaqueData(\net\authorize\api\contract\v1\OpaqueDataType $opaqueData)
33+
{
34+
$this->opaqueData = $opaqueData;
35+
return $this;
36+
}
37+
38+
39+
}
40+

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

+116
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,22 @@ class GetMerchantDetailsResponse extends ANetApiResponseType
5353
*/
5454
private $publicClientKey = null;
5555

56+
/**
57+
* @property \net\authorize\api\contract\v1\CustomerAddressType
58+
* $businessInformation
59+
*/
60+
private $businessInformation = null;
61+
62+
/**
63+
* @property string $merchantTimeZone
64+
*/
65+
private $merchantTimeZone = null;
66+
67+
/**
68+
* @property \net\authorize\api\contract\v1\ContactDetailType[] $contactDetails
69+
*/
70+
private $contactDetails = null;
71+
5672
/**
5773
* Gets as isTestMode
5874
*
@@ -421,6 +437,106 @@ public function setPublicClientKey($publicClientKey)
421437
return $this;
422438
}
423439

440+
/**
441+
* Gets as businessInformation
442+
*
443+
* @return \net\authorize\api\contract\v1\CustomerAddressType
444+
*/
445+
public function getBusinessInformation()
446+
{
447+
return $this->businessInformation;
448+
}
449+
450+
/**
451+
* Sets a new businessInformation
452+
*
453+
* @param \net\authorize\api\contract\v1\CustomerAddressType $businessInformation
454+
* @return self
455+
*/
456+
public function setBusinessInformation(\net\authorize\api\contract\v1\CustomerAddressType $businessInformation)
457+
{
458+
$this->businessInformation = $businessInformation;
459+
return $this;
460+
}
461+
462+
/**
463+
* Gets as merchantTimeZone
464+
*
465+
* @return string
466+
*/
467+
public function getMerchantTimeZone()
468+
{
469+
return $this->merchantTimeZone;
470+
}
471+
472+
/**
473+
* Sets a new merchantTimeZone
474+
*
475+
* @param string $merchantTimeZone
476+
* @return self
477+
*/
478+
public function setMerchantTimeZone($merchantTimeZone)
479+
{
480+
$this->merchantTimeZone = $merchantTimeZone;
481+
return $this;
482+
}
483+
484+
/**
485+
* Adds as contactDetail
486+
*
487+
* @return self
488+
* @param \net\authorize\api\contract\v1\ContactDetailType $contactDetail
489+
*/
490+
public function addToContactDetails(\net\authorize\api\contract\v1\ContactDetailType $contactDetail)
491+
{
492+
$this->contactDetails[] = $contactDetail;
493+
return $this;
494+
}
495+
496+
/**
497+
* isset contactDetails
498+
*
499+
* @param scalar $index
500+
* @return boolean
501+
*/
502+
public function issetContactDetails($index)
503+
{
504+
return isset($this->contactDetails[$index]);
505+
}
506+
507+
/**
508+
* unset contactDetails
509+
*
510+
* @param scalar $index
511+
* @return void
512+
*/
513+
public function unsetContactDetails($index)
514+
{
515+
unset($this->contactDetails[$index]);
516+
}
517+
518+
/**
519+
* Gets as contactDetails
520+
*
521+
* @return \net\authorize\api\contract\v1\ContactDetailType[]
522+
*/
523+
public function getContactDetails()
524+
{
525+
return $this->contactDetails;
526+
}
527+
528+
/**
529+
* Sets a new contactDetails
530+
*
531+
* @param \net\authorize\api\contract\v1\ContactDetailType[] $contactDetails
532+
* @return self
533+
*/
534+
public function setContactDetails(array $contactDetails)
535+
{
536+
$this->contactDetails = $contactDetails;
537+
return $this;
538+
}
539+
424540

425541
}
426542

0 commit comments

Comments
 (0)