Skip to content

Commit ff3951e

Browse files
authored
Merge pull request #6 from RichardCardGate/master
New payment methods: Gift Card, Paysafecash.
2 parents 24cc4ae + f85d9c7 commit ff3951e

61 files changed

Lines changed: 2318 additions & 382 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Address.php

100755100644
Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright (c) 2016 CardGate B.V.
3+
* Copyright (c) 2018 CardGate B.V.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy
66
* of this software and associated documentation files (the "Software"), to deal
@@ -32,54 +32,54 @@
3232
*
3333
* @method Address setFirstName( string $sFirstName_ ) Sets the first name.
3434
* @method string getFirstName() Returns the first name.
35-
* @method boolean hasFirstName() Checks for existence of first name.
35+
* @method bool hasFirstName() Checks for existence of first name.
3636
* @method Address unsetFirstName() Unsets the first name.
3737
*
3838
* @method Address setInitials( string $sInitials_ ) Sets the initials.
3939
* @method string getInitials() Returns the initials.
40-
* @method boolean hasInitials() Checks for the existence of initials.
40+
* @method bool hasInitials() Checks for the existence of initials.
4141
* @method Address unsetInitials() Unsets the initials.
4242
*
4343
* @method Address setLastName( string $sLastName_ ) Sets the last name.
4444
* @method string getLastName() Returns the last name.
45-
* @method boolean hasLastName() Checks for the existence of last name.
45+
* @method bool hasLastName() Checks for the existence of last name.
4646
* @method Address unsetLastName() Unsets the last name.
4747
*
4848
* @method string getGender() Returns the gender.
49-
* @method boolean hasGender() Checks for the existence of gender.
49+
* @method bool hasGender() Checks for the existence of gender.
5050
* @method Address unsetGender() Unsets the gender.
5151
*
5252
* @method string getDayOfBirth() Returns the day of birth.
53-
* @method boolean hasDayOfBirth() Checks for existence of day of birth.
53+
* @method bool hasDayOfBirth() Checks for existence of day of birth.
5454
* @method Address unsetDayOfBirth() Unsets the day of birth.
5555
*
5656
* @method Address setCompany( string $sCompany_ ) Sets the company.
5757
* @method string getCompany() Returns the company.
58-
* @method boolean hasCompany() Checks for the existence of company.
58+
* @method bool hasCompany() Checks for the existence of company.
5959
* @method Address unsetCompany() Unsets the company.
6060
*
6161
* @method Address setAddress( string $sAddress_ ) Sets the address.
6262
* @method string getAddress() Returns the address.
63-
* @method boolean hasAddress() Checks for the existence of address.
63+
* @method bool hasAddress() Checks for the existence of address.
6464
* @method Address unsetAddress() Unsets the address.
6565
*
6666
* @method Address setCity( string $sCity_ ) Sets the city.
6767
* @method string getCity() Returns the city.
68-
* @method boolean hasCity() Checks for the existence of city.
68+
* @method bool hasCity() Checks for the existence of city.
6969
* @method Address unsetCity() Unsets the city.
7070
*
7171
* @method Address setState( string $sState_ ) Sets the state.
7272
* @method string getState() Returns the state.
73-
* @method boolean hasState() Checks for the existence of state.
73+
* @method bool hasState() Checks for the existence of state.
7474
* @method Address unsetState() Unsets the state.
7575
*
7676
* @method Address setZipCode( string $sZipCode_ ) Sets the zipcode.
7777
* @method string getZipCode() Returns the zipcode.
78-
* @method boolean hasZipCode() Checks for existence of zipcode.
78+
* @method bool hasZipCode() Checks for existence of zipcode.
7979
* @method Address unsetZipCode() Unsets the zipcode.
8080
*
8181
* @method string getCountry() Returns the country.
82-
* @method boolean hasCountry() Checks for existence of country.
82+
* @method bool hasCountry() Checks for existence of country.
8383
* @method Address unsetCountry() Unsets the country.
8484
*/
8585
final class Address extends Entity {
@@ -89,22 +89,22 @@ final class Address extends Entity {
8989
* @internal The methods these fields expose are configured in the class phpdoc.
9090
*/
9191
static $_aFields = [
92-
'FirstName' => 'firstname',
93-
'Initials' => 'initials',
94-
'LastName' => 'lastname',
95-
'Gender' => 'gender',
96-
'DayOfBirth' => 'dob',
97-
'Company' => 'company',
98-
'Address' => 'address',
99-
'City' => 'city',
100-
'State' => 'state',
101-
'ZipCode' => 'zipcode',
102-
'Country' => 'country_id'
92+
'FirstName' => 'firstname',
93+
'Initials' => 'initials',
94+
'LastName' => 'lastname',
95+
'Gender' => 'gender',
96+
'DayOfBirth' => 'dob',
97+
'Company' => 'company',
98+
'Address' => 'address',
99+
'City' => 'city',
100+
'State' => 'state',
101+
'ZipCode' => 'zipcode',
102+
'Country' => 'country_id'
103103
];
104104

105105
/**
106-
* Set's the gender.
107-
* @param string $sGender The gender to set.
106+
* Sets the gender.
107+
* @param string $sGender_ The gender to set.
108108
* @return Address Returns this, makes the call chainable.
109109
* @throws Exception
110110
* @access public
@@ -121,7 +121,7 @@ function setGender( $sGender_ ) {
121121
}
122122

123123
/**
124-
* Set's the day of birth.
124+
* Sets the day of birth.
125125
* @param string $sDayOfBirth_ The day of birth to set.
126126
* @return Address Returns this, makes the call chainable.
127127
* @throws Exception
@@ -139,7 +139,7 @@ function setDayOfBirth( $sDayOfBirth_ ) {
139139
}
140140

141141
/**
142-
* Set's the country.
142+
* Sets the country.
143143
* @param string $sCountry_ The country to set (ISO 3166-1 alpha-2).
144144
* @return Address Returns this, makes the call chainable.
145145
* @throws Exception

xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Autoloader.php

100755100644
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright (c) 2016 CardGate B.V.
3+
* Copyright (c) 2018 CardGate B.V.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy
66
* of this software and associated documentation files (the "Software"), to deal
@@ -35,7 +35,7 @@ final class Autoloader {
3535

3636
/**
3737
* Load the class.
38-
* @param String $sClass_ The class to load
38+
* @param string $sClass_ The class to load
3939
* @access private
4040
*/
4141
private static function autoload( $sClass_ ) {

xtcommerce-cardgate-master/cardgate/classes/cardgate-clientlib-php/src/Cart.php

100755100644
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright (c) 2016 CardGate B.V.
3+
* Copyright (c) 2018 CardGate B.V.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy
66
* of this software and associated documentation files (the "Software"), to deal
@@ -41,13 +41,13 @@ final class Cart {
4141

4242
/**
4343
* Add a cart item to the cart.
44-
* @param integer $iType_ The cart item type.
44+
* @param int $iType_ The cart item type.
4545
* @param string $sSKU_ The SKU of the cart item.
4646
* @param string $sName_ The name of the cart item (productname).
4747
* @param string $iPrice_ The price of the cart item.
4848
* @param string $sLink_ An optional link to the product.
4949
* @return Item Returns the item that was added.
50-
* @throws Exception
50+
* @throws Exception|\ReflectionException
5151
* @access public
5252
* @api
5353
*/

0 commit comments

Comments
 (0)