Skip to content

Commit

Permalink
Merge pull request #313 from ashtru/master
Browse files Browse the repository at this point in the history
**Api Updates June 2018**
- Network Token
  - isPaymentToken (true/false) field added to response of Customer Profile APIs
  - Can create customer profiles and subscriptions with tokenized payment methods. 

- Guest Profiles
  - profileType (regular/guest) functionality included
  • Loading branch information
ashtru authored Jun 14, 2018
2 parents 482d51e + c5db0bc commit e5d2c98
Show file tree
Hide file tree
Showing 102 changed files with 382 additions and 298 deletions.
2 changes: 1 addition & 1 deletion lib/net/authorize/api/contract/v1/ANetApiRequestType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing ANetApiRequestType
*
*
*
* XSD Type: ANetApiRequest
*/
class ANetApiRequestType
Expand Down
2 changes: 1 addition & 1 deletion lib/net/authorize/api/contract/v1/ANetApiResponseType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing ANetApiResponseType
*
*
*
* XSD Type: ANetApiResponse
*/
class ANetApiResponseType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing ARBGetSubscriptionListSortingType
*
*
*
* XSD Type: ARBGetSubscriptionListSorting
*/
class ARBGetSubscriptionListSortingType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing ARBSubscriptionMaskedType
*
*
*
* XSD Type: ARBSubscriptionMaskedType
*/
class ARBSubscriptionMaskedType
Expand Down
2 changes: 1 addition & 1 deletion lib/net/authorize/api/contract/v1/ARBSubscriptionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing ARBSubscriptionType
*
*
*
* XSD Type: ARBSubscriptionType
*/
class ARBSubscriptionType
Expand Down
2 changes: 1 addition & 1 deletion lib/net/authorize/api/contract/v1/ArbTransactionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing ArbTransactionType
*
*
*
* XSD Type: arbTransaction
*/
class ArbTransactionType
Expand Down
2 changes: 1 addition & 1 deletion lib/net/authorize/api/contract/v1/ArrayOfSettingType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing ArrayOfSettingType
*
*
*
* XSD Type: ArrayOfSetting
*/
class ArrayOfSettingType
Expand Down
2 changes: 1 addition & 1 deletion lib/net/authorize/api/contract/v1/AuDeleteType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing AuDeleteType
*
*
*
* XSD Type: auDeleteType
*/
class AuDeleteType extends AuDetailsType
Expand Down
2 changes: 1 addition & 1 deletion lib/net/authorize/api/contract/v1/AuDetailsType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing AuDetailsType
*
*
*
* XSD Type: auDetailsType
*/
class AuDetailsType
Expand Down
2 changes: 1 addition & 1 deletion lib/net/authorize/api/contract/v1/AuResponseType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing AuResponseType
*
*
*
* XSD Type: auResponseType
*/
class AuResponseType
Expand Down
2 changes: 1 addition & 1 deletion lib/net/authorize/api/contract/v1/AuUpdateType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing AuUpdateType
*
*
*
* XSD Type: auUpdateType
*/
class AuUpdateType extends AuDetailsType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing BankAccountMaskedType
*
*
*
* XSD Type: bankAccountMaskedType
*/
class BankAccountMaskedType
Expand Down
2 changes: 1 addition & 1 deletion lib/net/authorize/api/contract/v1/BankAccountType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing BankAccountType
*
*
*
* XSD Type: bankAccountType
*/
class BankAccountType
Expand Down
2 changes: 1 addition & 1 deletion lib/net/authorize/api/contract/v1/BatchDetailsType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing BatchDetailsType
*
*
*
* XSD Type: batchDetailsType
*/
class BatchDetailsType
Expand Down
2 changes: 1 addition & 1 deletion lib/net/authorize/api/contract/v1/BatchStatisticType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing BatchStatisticType
*
*
*
* XSD Type: batchStatisticType
*/
class BatchStatisticType
Expand Down
2 changes: 1 addition & 1 deletion lib/net/authorize/api/contract/v1/CardArtType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing CardArtType
*
*
*
* XSD Type: cardArt
*/
class CardArtType
Expand Down
2 changes: 1 addition & 1 deletion lib/net/authorize/api/contract/v1/CcAuthenticationType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing CcAuthenticationType
*
*
*
* XSD Type: ccAuthenticationType
*/
class CcAuthenticationType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ class CreateCustomerProfileFromTransactionRequest extends ANetApiRequestType
*/
private $defaultShippingAddress = null;

/**
* @property string $profileType
*/
private $profileType = null;

/**
* Gets as transId
*
Expand Down Expand Up @@ -143,6 +148,28 @@ public function setDefaultShippingAddress($defaultShippingAddress)
return $this;
}

/**
* Gets as profileType
*
* @return string
*/
public function getProfileType()
{
return $this->profileType;
}

/**
* Sets a new profileType
*
* @param string $profileType
* @return self
*/
public function setProfileType($profileType)
{
$this->profileType = $profileType;
return $this;
}


}

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing CreateProfileResponseType
*
*
*
* XSD Type: createProfileResponse
*/
class CreateProfileResponseType
Expand Down
27 changes: 27 additions & 0 deletions lib/net/authorize/api/contract/v1/CreditCardMaskedType.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ class CreditCardMaskedType
*/
private $issuerNumber = null;

/**
* @property boolean $isPaymentToken
*/
private $isPaymentToken = null;

/**
* Gets as cardNumber
*
Expand Down Expand Up @@ -146,6 +151,28 @@ public function setIssuerNumber($issuerNumber)
return $this;
}

/**
* Gets as isPaymentToken
*
* @return boolean
*/
public function getIsPaymentToken()
{
return $this->isPaymentToken;
}

/**
* Sets a new isPaymentToken
*
* @param boolean $isPaymentToken
* @return self
*/
public function setIsPaymentToken($isPaymentToken)
{
$this->isPaymentToken = $isPaymentToken;
return $this;
}


}

2 changes: 1 addition & 1 deletion lib/net/authorize/api/contract/v1/CreditCardSimpleType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing CreditCardSimpleType
*
*
*
* XSD Type: creditCardSimpleType
*/
class CreditCardSimpleType
Expand Down
2 changes: 1 addition & 1 deletion lib/net/authorize/api/contract/v1/CreditCardTrackType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing CreditCardTrackType
*
*
*
* XSD Type: creditCardTrackType
*/
class CreditCardTrackType
Expand Down
2 changes: 1 addition & 1 deletion lib/net/authorize/api/contract/v1/CreditCardType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing CreditCardType
*
*
*
* XSD Type: creditCardType
*/
class CreditCardType extends CreditCardSimpleType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing CustomerAddressExType
*
*
*
* XSD Type: customerAddressExType
*/
class CustomerAddressExType extends CustomerAddressType
Expand Down
2 changes: 1 addition & 1 deletion lib/net/authorize/api/contract/v1/CustomerAddressType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing CustomerAddressType
*
*
*
* XSD Type: customerAddressType
*/
class CustomerAddressType extends NameAndAddressType
Expand Down
2 changes: 1 addition & 1 deletion lib/net/authorize/api/contract/v1/CustomerDataType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing CustomerDataType
*
*
*
* XSD Type: customerDataType
*/
class CustomerDataType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing CustomerPaymentProfileBaseType
*
*
*
* XSD Type: customerPaymentProfileBaseType
*/
class CustomerPaymentProfileBaseType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing CustomerPaymentProfileExType
*
*
*
* XSD Type: customerPaymentProfileExType
*/
class CustomerPaymentProfileExType extends CustomerPaymentProfileType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing CustomerPaymentProfileListItemType
*
*
*
* XSD Type: customerPaymentProfileListItemType
*/
class CustomerPaymentProfileListItemType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing CustomerPaymentProfileMaskedType
*
*
*
* XSD Type: customerPaymentProfileMaskedType
*/
class CustomerPaymentProfileMaskedType extends CustomerPaymentProfileBaseType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing CustomerPaymentProfileSortingType
*
*
*
* XSD Type: CustomerPaymentProfileSorting
*/
class CustomerPaymentProfileSortingType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing CustomerPaymentProfileType
*
*
*
* XSD Type: customerPaymentProfileType
*/
class CustomerPaymentProfileType extends CustomerPaymentProfileBaseType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing CustomerProfileBaseType
*
*
*
* XSD Type: customerProfileBaseType
*/
class CustomerProfileBaseType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing CustomerProfileExType
*
*
*
* XSD Type: customerProfileExType
*/
class CustomerProfileExType extends CustomerProfileBaseType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Class representing CustomerProfileIdType
*
*
*
* XSD Type: customerProfileIdType
*/
class CustomerProfileIdType
Expand Down
Loading

0 comments on commit e5d2c98

Please sign in to comment.