Skip to content

Commit 0923b26

Browse files
author
Sunny Raj Rathod
authored
Merge pull request #273 from AuthorizeNet/master
Sync future with master branch.
2 parents f982112 + 4851e9b commit 0923b26

25 files changed

Lines changed: 724 additions & 534 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ vendor
44
phpunit.xml
55
tests/log
66
build
7+
phplog
78

89
# Ignore eclipse project files
910
.buildpath

.travis.yml

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,37 @@
11
language: php
22

3+
sudo: false
4+
5+
env:
6+
- TEST_SUITE=samples
7+
- TEST_SUITE=coverage
8+
39
php:
4-
- 5.5
510
- 5.6
611
- 7.0
12+
- 7.1
713

8-
sudo: false
14+
before_install:
15+
# execute all of the commands which need to be executed
16+
# before installing dependencies
17+
- composer validate # make sure that our composer.json file is valid for packaging
918

10-
before_script:
19+
install:
20+
# install all of the dependencies we need here
1121
- pecl install xmldiff
12-
- composer install --prefer-dist --ignore-platform-reqs
22+
- composer install --prefer-dist
23+
24+
before_script:
25+
# execute all of the commands which need to be executed
26+
# before running actual tests
1327
- git submodule update --remote --recursive
1428

1529
script:
16-
- vendor/phpunit/phpunit/phpunit --coverage-clover=coverage.clover
17-
- cd sample-code-php
18-
- composer install --prefer-dist --ignore-platform-reqs
19-
- vendor/phpunit/phpunit/phpunit test-runner.php .
30+
# execute all of the tests or other commands to determine
31+
# whether the build will pass or fail
32+
- if [[ "$TEST_SUITE" == "coverage" ]]; then vendor/phpunit/phpunit/phpunit --coverage-clover=coverage.clover; fi
33+
- if [[ "$TEST_SUITE" == "samples" ]]; then phpenv config-rm xdebug.ini; cd sample-code-php; composer install --prefer-dist; vendor/phpunit/phpunit/phpunit test-runner.php .; fi
2034

2135
after_script:
22-
- wget https://scrutinizer-ci.com/ocular.phar
23-
# - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
36+
# - if [[ "$TEST_SUITE" == "coverage" ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
37+
# - if [[ "$TEST_SUITE" == "coverage" ]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

LICENSE.txt

Lines changed: 41 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 100 additions & 141 deletions
Large diffs are not rendered by default.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "proprietary",
77
"homepage": "http://developer.authorize.net",
88
"require": {
9-
"php": ">=5.5",
9+
"php": ">=5.6",
1010
"ext-curl": "*",
1111
"ext-json": "*",
1212
"ext-simplexml": "*",

doc/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This documentation and the objects it documents have been deprecated
2+
3+
For the README for this repository, see README.md in the root level of the repository. For examples of how to interact with the current Authorize.Net API, see our new sample code GitHub repository at https://github.com/AuthorizeNet/sample-code-php.

doc/readme.md

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
Old Usage Examples (Of Deprecated SDK Functionality)
22
=======================================
33

4-
**PLEASE NOTE: These examples are for deprecated functionality. Refer to the [README](/README.md) in root folder of the SDK for the new examples.**
4+
# This documentation in this directoary and the objects it documents have been deprecated
5+
6+
**For the README for this repository, see `[README.md]`(/README.md) in the root level of the repository. For examples of how to interact with the current Authorize.Net API, see our new sample code GitHub repository at https://github.com/AuthorizeNet/sample-code-php.**
7+
8+
**What follows is the old README pertaining to this deprecated functionality:**
59

610
## Requirements
711

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

Lines changed: 1 addition & 1 deletion
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.1";
10+
const VERSION = "1.9.3";
1111
}

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

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ class GetCustomerProfileRequest extends ANetApiRequestType
1313
*/
1414
private $customerProfileId = null;
1515

16+
/**
17+
* @property string $merchantCustomerId
18+
*/
19+
private $merchantCustomerId = null;
20+
21+
/**
22+
* @property string $email
23+
*/
24+
private $email = null;
25+
1626
/**
1727
* @property boolean $unmaskExpirationDate
1828
*/
@@ -36,7 +46,51 @@ public function getCustomerProfileId()
3646
*/
3747
public function setCustomerProfileId($customerProfileId)
3848
{
39-
$this->customerProfileId = $customerProfileId;
49+
$this->customerProfileId = $customerProfileId;
50+
return $this;
51+
}
52+
53+
/**
54+
* Gets as merchantCustomerId
55+
*
56+
* @return string
57+
*/
58+
public function getMerchantCustomerId()
59+
{
60+
return $this->merchantCustomerId;
61+
}
62+
63+
/**
64+
* Sets a new merchantCustomerId
65+
*
66+
* @param string $merchantCustomerId
67+
* @return self
68+
*/
69+
public function setMerchantCustomerId($merchantCustomerId)
70+
{
71+
$this->merchantCustomerId = $merchantCustomerId;
72+
return $this;
73+
}
74+
75+
/**
76+
* Gets as email
77+
*
78+
* @return string
79+
*/
80+
public function getEmail()
81+
{
82+
return $this->email;
83+
}
84+
85+
/**
86+
* Sets a new email
87+
*
88+
* @param string $email
89+
* @return self
90+
*/
91+
public function setEmail($email)
92+
{
93+
$this->email = $email;
4094
return $this;
4195
}
4296

@@ -58,7 +112,7 @@ public function getUnmaskExpirationDate()
58112
*/
59113
public function setUnmaskExpirationDate($unmaskExpirationDate)
60114
{
61-
$this->unmaskExpirationDate = $unmaskExpirationDate;
115+
$this->unmaskExpirationDate = $unmaskExpirationDate;
62116
return $this;
63117
}
64118

0 commit comments

Comments
 (0)