Skip to content

Commit bd15ff9

Browse files
authored
Merge pull request #77 from AuthorizeNet/mandate
Changes for March 2021
2 parents aab2dac + d02bf09 commit bd15ff9

File tree

7 files changed

+2595
-2468
lines changed

7 files changed

+2595
-2468
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ node_js:
44
- "4"
55
- "6"
66
- "8"
7+
- "10"
8+
- "12"
9+
10+
matrix:
11+
allow_failures:
12+
- node_js: "4"
13+
- node_js: "6"
14+
- node_js: "8"
715

816
before_install:
917
# execute all of the commands which need to be executed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
## Requirements
8-
* Node.js version 4.8.4 or higher
8+
* Node.js version 10.0.0 or higher
99
* An Authorize.Net account (see _Registration & Configuration_ section below)
1010

1111
### Contribution

lib/apicontracts.js

Lines changed: 77 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@ class ANetApiRequest {
99
logger.debug('Enter ANetApiRequest constructor');
1010
if(arguments.length == 1) {
1111
if(('merchantAuthentication' in obj) && (obj.merchantAuthentication != null)) { this.setMerchantAuthentication(new MerchantAuthenticationType(obj.merchantAuthentication)); }
12-
else { this.setMerchantAuthentication(null); }
1312
if(('clientId' in obj) && (obj.clientId != null)) { this.setClientId(obj.clientId); }
14-
else { this.setClientId(null); }
1513
if(('refId' in obj) && (obj.refId != null)) { this.setRefId(obj.refId); }
16-
else { this.setRefId(null); }
1714
}
1815
else {
1916
this.setMerchantAuthentication(null);
@@ -797,6 +794,24 @@ class AuResponseType {
797794

798795
module.exports.AuResponseType = AuResponseType;
799796

797+
class AuthorizationIndicatorType {
798+
constructor(obj) {
799+
logger.debug('Enter AuthorizationIndicatorType constructor');
800+
if(arguments.length == 1) {
801+
if(('authorizationIndicator' in obj) && (obj.authorizationIndicator != null)) { this.setAuthorizationIndicator(obj.authorizationIndicator); }
802+
}
803+
else {
804+
this.setAuthorizationIndicator(null);
805+
}
806+
logger.debug('Exit AuthorizationIndicatorType constructor');
807+
}
808+
809+
setAuthorizationIndicator(p_authorizationIndicator) { this.authorizationIndicator = p_authorizationIndicator; }
810+
getAuthorizationIndicator() { if('authorizationIndicator' in this) {return this.authorizationIndicator;} }
811+
}
812+
813+
module.exports.AuthorizationIndicatorType = AuthorizationIndicatorType;
814+
800815
class BankAccountMaskedType {
801816
constructor(obj) {
802817
logger.debug('Enter BankAccountMaskedType constructor');
@@ -1280,13 +1295,17 @@ class CustomerPaymentProfileListItemType {
12801295
if(('customerProfileId' in obj) && (obj.customerProfileId != null)) { this.setCustomerProfileId(obj.customerProfileId); }
12811296
if(('billTo' in obj) && (obj.billTo != null)) { this.setBillTo(new CustomerAddressType(obj.billTo)); }
12821297
if(('payment' in obj) && (obj.payment != null)) { this.setPayment(new PaymentMaskedType(obj.payment)); }
1298+
if(('originalNetworkTransId' in obj) && (obj.originalNetworkTransId != null)) { this.setOriginalNetworkTransId(obj.originalNetworkTransId); }
1299+
if(('originalAuthAmount' in obj) && (obj.originalAuthAmount != null)) { this.setOriginalAuthAmount(obj.originalAuthAmount); }
12831300
}
12841301
else {
12851302
this.setDefaultPaymentProfile(null);
12861303
this.setCustomerPaymentProfileId(null);
12871304
this.setCustomerProfileId(null);
12881305
this.setBillTo(null);
12891306
this.setPayment(null);
1307+
this.setOriginalNetworkTransId(null);
1308+
this.setOriginalAuthAmount(null);
12901309
}
12911310
logger.debug('Exit CustomerPaymentProfileListItemType constructor');
12921311
}
@@ -1301,6 +1320,10 @@ class CustomerPaymentProfileListItemType {
13011320
getBillTo() { if('billTo' in this) {return this.billTo;} }
13021321
setPayment(p_payment) { this.payment = p_payment; }
13031322
getPayment() { if('payment' in this) {return this.payment;} }
1323+
setOriginalNetworkTransId(p_originalNetworkTransId) { this.originalNetworkTransId = p_originalNetworkTransId; }
1324+
getOriginalNetworkTransId() { if('originalNetworkTransId' in this) {return this.originalNetworkTransId;} }
1325+
setOriginalAuthAmount(p_originalAuthAmount) { this.originalAuthAmount = p_originalAuthAmount; }
1326+
getOriginalAuthAmount() { if('originalAuthAmount' in this) {return this.originalAuthAmount;} }
13041327
}
13051328

13061329
module.exports.CustomerPaymentProfileListItemType = CustomerPaymentProfileListItemType;
@@ -3114,17 +3137,21 @@ class SubsequentAuthInformation {
31143137
logger.debug('Enter SubsequentAuthInformation constructor');
31153138
if(arguments.length == 1) {
31163139
if(('originalNetworkTransId' in obj) && (obj.originalNetworkTransId != null)) { this.setOriginalNetworkTransId(obj.originalNetworkTransId); }
3140+
if(('originalAuthAmount' in obj) && (obj.originalAuthAmount != null)) { this.setOriginalAuthAmount(obj.originalAuthAmount); }
31173141
if(('reason' in obj) && (obj.reason != null)) { this.setReason(obj.reason); }
31183142
}
31193143
else {
31203144
this.setOriginalNetworkTransId(null);
3145+
this.setOriginalAuthAmount(null);
31213146
this.setReason(null);
31223147
}
31233148
logger.debug('Exit SubsequentAuthInformation constructor');
31243149
}
31253150

31263151
setOriginalNetworkTransId(p_originalNetworkTransId) { this.originalNetworkTransId = p_originalNetworkTransId; }
31273152
getOriginalNetworkTransId() { if('originalNetworkTransId' in this) {return this.originalNetworkTransId;} }
3153+
setOriginalAuthAmount(p_originalAuthAmount) { this.originalAuthAmount = p_originalAuthAmount; }
3154+
getOriginalAuthAmount() { if('originalAuthAmount' in this) {return this.originalAuthAmount;} }
31283155
setReason(p_reason) { this.reason = p_reason; }
31293156
getReason() { if('reason' in this) {return this.reason;} }
31303157
}
@@ -3243,6 +3270,10 @@ class TransactionDetailsType {
32433270
if(('tip' in obj) && (obj.tip != null)) { this.setTip(new ExtendedAmountType(obj.tip)); }
32443271
if(('otherTax' in obj) && (obj.otherTax != null)) { this.setOtherTax(new OtherTaxType(obj.otherTax)); }
32453272
if(('shipFrom' in obj) && (obj.shipFrom != null)) { this.setShipFrom(new NameAndAddressType(obj.shipFrom)); }
3273+
if(('networkTransId' in obj) && (obj.networkTransId != null)) { this.setNetworkTransId(obj.networkTransId); }
3274+
if(('originalNetworkTransId' in obj) && (obj.originalNetworkTransId != null)) { this.setOriginalNetworkTransId(obj.originalNetworkTransId); }
3275+
if(('originalAuthAmount' in obj) && (obj.originalAuthAmount != null)) { this.setOriginalAuthAmount(obj.originalAuthAmount); }
3276+
if(('authorizationIndicator' in obj) && (obj.authorizationIndicator != null)) { this.setAuthorizationIndicator(obj.authorizationIndicator); }
32463277
}
32473278
else {
32483279
this.setTransId(null);
@@ -3293,6 +3324,10 @@ class TransactionDetailsType {
32933324
this.setTip(null);
32943325
this.setOtherTax(null);
32953326
this.setShipFrom(null);
3327+
this.setNetworkTransId(null);
3328+
this.setOriginalNetworkTransId(null);
3329+
this.setOriginalAuthAmount(null);
3330+
this.setAuthorizationIndicator(null);
32963331
}
32973332
logger.debug('Exit TransactionDetailsType constructor');
32983333
}
@@ -3393,6 +3428,14 @@ class TransactionDetailsType {
33933428
getOtherTax() { if('otherTax' in this) {return this.otherTax;} }
33943429
setShipFrom(p_shipFrom) { this.shipFrom = p_shipFrom; }
33953430
getShipFrom() { if('shipFrom' in this) {return this.shipFrom;} }
3431+
setNetworkTransId(p_networkTransId) { this.networkTransId = p_networkTransId; }
3432+
getNetworkTransId() { if('networkTransId' in this) {return this.networkTransId;} }
3433+
setOriginalNetworkTransId(p_originalNetworkTransId) { this.originalNetworkTransId = p_originalNetworkTransId; }
3434+
getOriginalNetworkTransId() { if('originalNetworkTransId' in this) {return this.originalNetworkTransId;} }
3435+
setOriginalAuthAmount(p_originalAuthAmount) { this.originalAuthAmount = p_originalAuthAmount; }
3436+
getOriginalAuthAmount() { if('originalAuthAmount' in this) {return this.originalAuthAmount;} }
3437+
setAuthorizationIndicator(p_authorizationIndicator) { this.authorizationIndicator = p_authorizationIndicator; }
3438+
getAuthorizationIndicator() { if('authorizationIndicator' in this) {return this.authorizationIndicator;} }
33963439
}
33973440

33983441
module.exports.TransactionDetailsType = TransactionDetailsType;
@@ -3458,6 +3501,7 @@ class TransactionRequestType {
34583501
if(('subsequentAuthInformation' in obj) && (obj.subsequentAuthInformation != null)) { this.setSubsequentAuthInformation(new SubsequentAuthInformation(obj.subsequentAuthInformation)); }
34593502
if(('otherTax' in obj) && (obj.otherTax != null)) { this.setOtherTax(new OtherTaxType(obj.otherTax)); }
34603503
if(('shipFrom' in obj) && (obj.shipFrom != null)) { this.setShipFrom(new NameAndAddressType(obj.shipFrom)); }
3504+
if(('authorizationIndicatorType' in obj) && (obj.authorizationIndicatorType != null)) { this.setAuthorizationIndicatorType(new AuthorizationIndicatorType(obj.authorizationIndicatorType)); }
34613505
}
34623506
else {
34633507
this.setTransactionType(null);
@@ -3495,6 +3539,7 @@ class TransactionRequestType {
34953539
this.setSubsequentAuthInformation(null);
34963540
this.setOtherTax(null);
34973541
this.setShipFrom(null);
3542+
this.setAuthorizationIndicatorType(null);
34983543
}
34993544
logger.debug('Exit TransactionRequestType constructor');
35003545
}
@@ -3569,6 +3614,8 @@ class TransactionRequestType {
35693614
getOtherTax() { if('otherTax' in this) {return this.otherTax;} }
35703615
setShipFrom(p_shipFrom) { this.shipFrom = p_shipFrom; }
35713616
getShipFrom() { if('shipFrom' in this) {return this.shipFrom;} }
3617+
setAuthorizationIndicatorType(p_authorizationIndicatorType) { this.authorizationIndicatorType = p_authorizationIndicatorType; }
3618+
getAuthorizationIndicatorType() { if('authorizationIndicatorType' in this) {return this.authorizationIndicatorType;} }
35723619
}
35733620

35743621
module.exports.TransactionRequestType = TransactionRequestType;
@@ -5216,6 +5263,8 @@ class CustomerPaymentProfileMaskedType extends CustomerPaymentProfileBaseType {
52165263
if(('driversLicense' in obj) && (obj.driversLicense != null)) { this.setDriversLicense(new DriversLicenseMaskedType(obj.driversLicense)); }
52175264
if(('taxId' in obj) && (obj.taxId != null)) { this.setTaxId(obj.taxId); }
52185265
if(('subscriptionIds' in obj) && (obj.subscriptionIds != null)) { this.setSubscriptionIds(new SubscriptionIdList(obj.subscriptionIds)); }
5266+
if(('originalNetworkTransId' in obj) && (obj.originalNetworkTransId != null)) { this.setOriginalNetworkTransId(obj.originalNetworkTransId); }
5267+
if(('originalAuthAmount' in obj) && (obj.originalAuthAmount != null)) { this.setOriginalAuthAmount(obj.originalAuthAmount); }
52195268
}
52205269
else {
52215270
super();
@@ -5226,6 +5275,8 @@ class CustomerPaymentProfileMaskedType extends CustomerPaymentProfileBaseType {
52265275
this.setDriversLicense(null);
52275276
this.setTaxId(null);
52285277
this.setSubscriptionIds(null);
5278+
this.setOriginalNetworkTransId(null);
5279+
this.setOriginalAuthAmount(null);
52295280
}
52305281
logger.debug('Exit CustomerPaymentProfileMaskedType constructor');
52315282
}
@@ -5244,6 +5295,10 @@ class CustomerPaymentProfileMaskedType extends CustomerPaymentProfileBaseType {
52445295
getTaxId() { if('taxId' in this) {return this.taxId;} }
52455296
setSubscriptionIds(p_subscriptionIds) { this.subscriptionIds = p_subscriptionIds; }
52465297
getSubscriptionIds() { if('subscriptionIds' in this) {return this.subscriptionIds;} }
5298+
setOriginalNetworkTransId(p_originalNetworkTransId) { this.originalNetworkTransId = p_originalNetworkTransId; }
5299+
getOriginalNetworkTransId() { if('originalNetworkTransId' in this) {return this.originalNetworkTransId;} }
5300+
setOriginalAuthAmount(p_originalAuthAmount) { this.originalAuthAmount = p_originalAuthAmount; }
5301+
getOriginalAuthAmount() { if('originalAuthAmount' in this) {return this.originalAuthAmount;} }
52475302
}
52485303

52495304
module.exports.CustomerPaymentProfileMaskedType = CustomerPaymentProfileMaskedType;
@@ -5257,13 +5312,15 @@ class CustomerPaymentProfileType extends CustomerPaymentProfileBaseType {
52575312
if(('driversLicense' in obj) && (obj.driversLicense != null)) { this.setDriversLicense(new DriversLicenseType(obj.driversLicense)); }
52585313
if(('taxId' in obj) && (obj.taxId != null)) { this.setTaxId(obj.taxId); }
52595314
if(('defaultPaymentProfile' in obj) && (obj.defaultPaymentProfile != null)) { this.setDefaultPaymentProfile(obj.defaultPaymentProfile); }
5315+
if(('subsequentAuthInformation' in obj) && (obj.subsequentAuthInformation != null)) { this.setSubsequentAuthInformation(new SubsequentAuthInformation(obj.subsequentAuthInformation)); }
52605316
}
52615317
else {
52625318
super();
52635319
this.setPayment(null);
52645320
this.setDriversLicense(null);
52655321
this.setTaxId(null);
52665322
this.setDefaultPaymentProfile(null);
5323+
this.setSubsequentAuthInformation(null);
52675324
}
52685325
logger.debug('Exit CustomerPaymentProfileType constructor');
52695326
}
@@ -5276,6 +5333,8 @@ class CustomerPaymentProfileType extends CustomerPaymentProfileBaseType {
52765333
getTaxId() { if('taxId' in this) {return this.taxId;} }
52775334
setDefaultPaymentProfile(p_defaultPaymentProfile) { this.defaultPaymentProfile = p_defaultPaymentProfile; }
52785335
getDefaultPaymentProfile() { if('defaultPaymentProfile' in this) {return this.defaultPaymentProfile;} }
5336+
setSubsequentAuthInformation(p_subsequentAuthInformation) { this.subsequentAuthInformation = p_subsequentAuthInformation; }
5337+
getSubsequentAuthInformation() { if('subsequentAuthInformation' in this) {return this.subsequentAuthInformation;} }
52795338
}
52805339

52815340
module.exports.CustomerPaymentProfileType = CustomerPaymentProfileType;
@@ -6821,6 +6880,7 @@ class ProfileTransOrderType extends ProfileTransAmountType {
68216880
if(('splitTenderId' in obj) && (obj.splitTenderId != null)) { this.setSplitTenderId(obj.splitTenderId); }
68226881
if(('processingOptions' in obj) && (obj.processingOptions != null)) { this.setProcessingOptions(new ProcessingOptions(obj.processingOptions)); }
68236882
if(('subsequentAuthInformation' in obj) && (obj.subsequentAuthInformation != null)) { this.setSubsequentAuthInformation(new SubsequentAuthInformation(obj.subsequentAuthInformation)); }
6883+
if(('authorizationIndicatorType' in obj) && (obj.authorizationIndicatorType != null)) { this.setAuthorizationIndicatorType(new AuthorizationIndicatorType(obj.authorizationIndicatorType)); }
68246884
}
68256885
else {
68266886
super();
@@ -6834,6 +6894,7 @@ class ProfileTransOrderType extends ProfileTransAmountType {
68346894
this.setSplitTenderId(null);
68356895
this.setProcessingOptions(null);
68366896
this.setSubsequentAuthInformation(null);
6897+
this.setAuthorizationIndicatorType(null);
68376898
}
68386899
logger.debug('Exit ProfileTransOrderType constructor');
68396900
}
@@ -6858,6 +6919,8 @@ class ProfileTransOrderType extends ProfileTransAmountType {
68586919
getProcessingOptions() { if('processingOptions' in this) {return this.processingOptions;} }
68596920
setSubsequentAuthInformation(p_subsequentAuthInformation) { this.subsequentAuthInformation = p_subsequentAuthInformation; }
68606921
getSubsequentAuthInformation() { if('subsequentAuthInformation' in this) {return this.subsequentAuthInformation;} }
6922+
setAuthorizationIndicatorType(p_authorizationIndicatorType) { this.authorizationIndicatorType = p_authorizationIndicatorType; }
6923+
getAuthorizationIndicatorType() { if('authorizationIndicatorType' in this) {return this.authorizationIndicatorType;} }
68616924
}
68626925

68636926
module.exports.ProfileTransOrderType = ProfileTransOrderType;
@@ -7126,7 +7189,7 @@ class UpdateCustomerProfileRequest extends ANetApiRequest {
71267189
logger.debug('Enter UpdateCustomerProfileRequest constructor');
71277190
if(arguments.length == 1) {
71287191
super(obj);
7129-
if(('profile' in obj) && (obj.profile != null)) { this.setProfile(new CustomerProfileInfoExType(obj.profile)); }
7192+
if(('profile' in obj) && (obj.profile != null)) { this.setProfile(new CustomerProfileExType(obj.profile)); }
71307193
}
71317194
else {
71327195
super();
@@ -7639,6 +7702,12 @@ const AfdsTransactionEnum = {
76397702
};
76407703
module.exports.AfdsTransactionEnum = AfdsTransactionEnum;
76417704

7705+
const AuthIndicatorEnum = {
7706+
PRE : 'pre',
7707+
FINAL : 'final'
7708+
};
7709+
module.exports.AuthIndicatorEnum = AuthIndicatorEnum;
7710+
76427711
const BankAccountTypeEnum = {
76437712
CHECKING : 'checking',
76447713
SAVINGS : 'savings',
@@ -7754,7 +7823,8 @@ const PaymentMethodsTypeEnum = {
77547823
PAYPAL : 'Paypal',
77557824
VISACHECKOUT : 'VisaCheckout',
77567825
APPLEPAY : 'ApplePay',
7757-
ANDROIDPAY : 'AndroidPay'
7826+
ANDROIDPAY : 'AndroidPay',
7827+
GOOGLEPAY : 'GooglePay'
77587828
};
77597829
module.exports.PaymentMethodsTypeEnum = PaymentMethodsTypeEnum;
77607830

@@ -7798,7 +7868,8 @@ const SettingNameEnum = {
77987868
HOSTEDPAYMENTSTYLEOPTIONS : 'hostedPaymentStyleOptions',
77997869
TYPEEMAILRECEIPT : 'typeEmailReceipt',
78007870
HOSTEDPROFILEPAYMENTOPTIONS : 'hostedProfilePaymentOptions',
7801-
HOSTEDPROFILESAVEBUTTONTEXT : 'hostedProfileSaveButtonText'
7871+
HOSTEDPROFILESAVEBUTTONTEXT : 'hostedProfileSaveButtonText',
7872+
HOSTEDPAYMENTVISACHECKOUTOPTIONS : 'hostedPaymentVisaCheckoutOptions'
78027873
};
78037874
module.exports.SettingNameEnum = SettingNameEnum;
78047875

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy