@@ -9,11 +9,8 @@ class ANetApiRequest {
9
9
logger . debug ( 'Enter ANetApiRequest constructor' ) ;
10
10
if ( arguments . length == 1 ) {
11
11
if ( ( 'merchantAuthentication' in obj ) && ( obj . merchantAuthentication != null ) ) { this . setMerchantAuthentication ( new MerchantAuthenticationType ( obj . merchantAuthentication ) ) ; }
12
- else { this . setMerchantAuthentication ( null ) ; }
13
12
if ( ( 'clientId' in obj ) && ( obj . clientId != null ) ) { this . setClientId ( obj . clientId ) ; }
14
- else { this . setClientId ( null ) ; }
15
13
if ( ( 'refId' in obj ) && ( obj . refId != null ) ) { this . setRefId ( obj . refId ) ; }
16
- else { this . setRefId ( null ) ; }
17
14
}
18
15
else {
19
16
this . setMerchantAuthentication ( null ) ;
@@ -797,6 +794,24 @@ class AuResponseType {
797
794
798
795
module . exports . AuResponseType = AuResponseType ;
799
796
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
+
800
815
class BankAccountMaskedType {
801
816
constructor ( obj ) {
802
817
logger . debug ( 'Enter BankAccountMaskedType constructor' ) ;
@@ -1280,13 +1295,17 @@ class CustomerPaymentProfileListItemType {
1280
1295
if ( ( 'customerProfileId' in obj ) && ( obj . customerProfileId != null ) ) { this . setCustomerProfileId ( obj . customerProfileId ) ; }
1281
1296
if ( ( 'billTo' in obj ) && ( obj . billTo != null ) ) { this . setBillTo ( new CustomerAddressType ( obj . billTo ) ) ; }
1282
1297
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 ) ; }
1283
1300
}
1284
1301
else {
1285
1302
this . setDefaultPaymentProfile ( null ) ;
1286
1303
this . setCustomerPaymentProfileId ( null ) ;
1287
1304
this . setCustomerProfileId ( null ) ;
1288
1305
this . setBillTo ( null ) ;
1289
1306
this . setPayment ( null ) ;
1307
+ this . setOriginalNetworkTransId ( null ) ;
1308
+ this . setOriginalAuthAmount ( null ) ;
1290
1309
}
1291
1310
logger . debug ( 'Exit CustomerPaymentProfileListItemType constructor' ) ;
1292
1311
}
@@ -1301,6 +1320,10 @@ class CustomerPaymentProfileListItemType {
1301
1320
getBillTo ( ) { if ( 'billTo' in this ) { return this . billTo ; } }
1302
1321
setPayment ( p_payment ) { this . payment = p_payment ; }
1303
1322
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 ; } }
1304
1327
}
1305
1328
1306
1329
module . exports . CustomerPaymentProfileListItemType = CustomerPaymentProfileListItemType ;
@@ -3114,17 +3137,21 @@ class SubsequentAuthInformation {
3114
3137
logger . debug ( 'Enter SubsequentAuthInformation constructor' ) ;
3115
3138
if ( arguments . length == 1 ) {
3116
3139
if ( ( 'originalNetworkTransId' in obj ) && ( obj . originalNetworkTransId != null ) ) { this . setOriginalNetworkTransId ( obj . originalNetworkTransId ) ; }
3140
+ if ( ( 'originalAuthAmount' in obj ) && ( obj . originalAuthAmount != null ) ) { this . setOriginalAuthAmount ( obj . originalAuthAmount ) ; }
3117
3141
if ( ( 'reason' in obj ) && ( obj . reason != null ) ) { this . setReason ( obj . reason ) ; }
3118
3142
}
3119
3143
else {
3120
3144
this . setOriginalNetworkTransId ( null ) ;
3145
+ this . setOriginalAuthAmount ( null ) ;
3121
3146
this . setReason ( null ) ;
3122
3147
}
3123
3148
logger . debug ( 'Exit SubsequentAuthInformation constructor' ) ;
3124
3149
}
3125
3150
3126
3151
setOriginalNetworkTransId ( p_originalNetworkTransId ) { this . originalNetworkTransId = p_originalNetworkTransId ; }
3127
3152
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 ; } }
3128
3155
setReason ( p_reason ) { this . reason = p_reason ; }
3129
3156
getReason ( ) { if ( 'reason' in this ) { return this . reason ; } }
3130
3157
}
@@ -3243,6 +3270,10 @@ class TransactionDetailsType {
3243
3270
if ( ( 'tip' in obj ) && ( obj . tip != null ) ) { this . setTip ( new ExtendedAmountType ( obj . tip ) ) ; }
3244
3271
if ( ( 'otherTax' in obj ) && ( obj . otherTax != null ) ) { this . setOtherTax ( new OtherTaxType ( obj . otherTax ) ) ; }
3245
3272
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 ) ; }
3246
3277
}
3247
3278
else {
3248
3279
this . setTransId ( null ) ;
@@ -3293,6 +3324,10 @@ class TransactionDetailsType {
3293
3324
this . setTip ( null ) ;
3294
3325
this . setOtherTax ( null ) ;
3295
3326
this . setShipFrom ( null ) ;
3327
+ this . setNetworkTransId ( null ) ;
3328
+ this . setOriginalNetworkTransId ( null ) ;
3329
+ this . setOriginalAuthAmount ( null ) ;
3330
+ this . setAuthorizationIndicator ( null ) ;
3296
3331
}
3297
3332
logger . debug ( 'Exit TransactionDetailsType constructor' ) ;
3298
3333
}
@@ -3393,6 +3428,14 @@ class TransactionDetailsType {
3393
3428
getOtherTax ( ) { if ( 'otherTax' in this ) { return this . otherTax ; } }
3394
3429
setShipFrom ( p_shipFrom ) { this . shipFrom = p_shipFrom ; }
3395
3430
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 ; } }
3396
3439
}
3397
3440
3398
3441
module . exports . TransactionDetailsType = TransactionDetailsType ;
@@ -3458,6 +3501,7 @@ class TransactionRequestType {
3458
3501
if ( ( 'subsequentAuthInformation' in obj ) && ( obj . subsequentAuthInformation != null ) ) { this . setSubsequentAuthInformation ( new SubsequentAuthInformation ( obj . subsequentAuthInformation ) ) ; }
3459
3502
if ( ( 'otherTax' in obj ) && ( obj . otherTax != null ) ) { this . setOtherTax ( new OtherTaxType ( obj . otherTax ) ) ; }
3460
3503
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 ) ) ; }
3461
3505
}
3462
3506
else {
3463
3507
this . setTransactionType ( null ) ;
@@ -3495,6 +3539,7 @@ class TransactionRequestType {
3495
3539
this . setSubsequentAuthInformation ( null ) ;
3496
3540
this . setOtherTax ( null ) ;
3497
3541
this . setShipFrom ( null ) ;
3542
+ this . setAuthorizationIndicatorType ( null ) ;
3498
3543
}
3499
3544
logger . debug ( 'Exit TransactionRequestType constructor' ) ;
3500
3545
}
@@ -3569,6 +3614,8 @@ class TransactionRequestType {
3569
3614
getOtherTax ( ) { if ( 'otherTax' in this ) { return this . otherTax ; } }
3570
3615
setShipFrom ( p_shipFrom ) { this . shipFrom = p_shipFrom ; }
3571
3616
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 ; } }
3572
3619
}
3573
3620
3574
3621
module . exports . TransactionRequestType = TransactionRequestType ;
@@ -5216,6 +5263,8 @@ class CustomerPaymentProfileMaskedType extends CustomerPaymentProfileBaseType {
5216
5263
if ( ( 'driversLicense' in obj ) && ( obj . driversLicense != null ) ) { this . setDriversLicense ( new DriversLicenseMaskedType ( obj . driversLicense ) ) ; }
5217
5264
if ( ( 'taxId' in obj ) && ( obj . taxId != null ) ) { this . setTaxId ( obj . taxId ) ; }
5218
5265
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 ) ; }
5219
5268
}
5220
5269
else {
5221
5270
super ( ) ;
@@ -5226,6 +5275,8 @@ class CustomerPaymentProfileMaskedType extends CustomerPaymentProfileBaseType {
5226
5275
this . setDriversLicense ( null ) ;
5227
5276
this . setTaxId ( null ) ;
5228
5277
this . setSubscriptionIds ( null ) ;
5278
+ this . setOriginalNetworkTransId ( null ) ;
5279
+ this . setOriginalAuthAmount ( null ) ;
5229
5280
}
5230
5281
logger . debug ( 'Exit CustomerPaymentProfileMaskedType constructor' ) ;
5231
5282
}
@@ -5244,6 +5295,10 @@ class CustomerPaymentProfileMaskedType extends CustomerPaymentProfileBaseType {
5244
5295
getTaxId ( ) { if ( 'taxId' in this ) { return this . taxId ; } }
5245
5296
setSubscriptionIds ( p_subscriptionIds ) { this . subscriptionIds = p_subscriptionIds ; }
5246
5297
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 ; } }
5247
5302
}
5248
5303
5249
5304
module . exports . CustomerPaymentProfileMaskedType = CustomerPaymentProfileMaskedType ;
@@ -5257,13 +5312,15 @@ class CustomerPaymentProfileType extends CustomerPaymentProfileBaseType {
5257
5312
if ( ( 'driversLicense' in obj ) && ( obj . driversLicense != null ) ) { this . setDriversLicense ( new DriversLicenseType ( obj . driversLicense ) ) ; }
5258
5313
if ( ( 'taxId' in obj ) && ( obj . taxId != null ) ) { this . setTaxId ( obj . taxId ) ; }
5259
5314
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 ) ) ; }
5260
5316
}
5261
5317
else {
5262
5318
super ( ) ;
5263
5319
this . setPayment ( null ) ;
5264
5320
this . setDriversLicense ( null ) ;
5265
5321
this . setTaxId ( null ) ;
5266
5322
this . setDefaultPaymentProfile ( null ) ;
5323
+ this . setSubsequentAuthInformation ( null ) ;
5267
5324
}
5268
5325
logger . debug ( 'Exit CustomerPaymentProfileType constructor' ) ;
5269
5326
}
@@ -5276,6 +5333,8 @@ class CustomerPaymentProfileType extends CustomerPaymentProfileBaseType {
5276
5333
getTaxId ( ) { if ( 'taxId' in this ) { return this . taxId ; } }
5277
5334
setDefaultPaymentProfile ( p_defaultPaymentProfile ) { this . defaultPaymentProfile = p_defaultPaymentProfile ; }
5278
5335
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 ; } }
5279
5338
}
5280
5339
5281
5340
module . exports . CustomerPaymentProfileType = CustomerPaymentProfileType ;
@@ -6821,6 +6880,7 @@ class ProfileTransOrderType extends ProfileTransAmountType {
6821
6880
if ( ( 'splitTenderId' in obj ) && ( obj . splitTenderId != null ) ) { this . setSplitTenderId ( obj . splitTenderId ) ; }
6822
6881
if ( ( 'processingOptions' in obj ) && ( obj . processingOptions != null ) ) { this . setProcessingOptions ( new ProcessingOptions ( obj . processingOptions ) ) ; }
6823
6882
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 ) ) ; }
6824
6884
}
6825
6885
else {
6826
6886
super ( ) ;
@@ -6834,6 +6894,7 @@ class ProfileTransOrderType extends ProfileTransAmountType {
6834
6894
this . setSplitTenderId ( null ) ;
6835
6895
this . setProcessingOptions ( null ) ;
6836
6896
this . setSubsequentAuthInformation ( null ) ;
6897
+ this . setAuthorizationIndicatorType ( null ) ;
6837
6898
}
6838
6899
logger . debug ( 'Exit ProfileTransOrderType constructor' ) ;
6839
6900
}
@@ -6858,6 +6919,8 @@ class ProfileTransOrderType extends ProfileTransAmountType {
6858
6919
getProcessingOptions ( ) { if ( 'processingOptions' in this ) { return this . processingOptions ; } }
6859
6920
setSubsequentAuthInformation ( p_subsequentAuthInformation ) { this . subsequentAuthInformation = p_subsequentAuthInformation ; }
6860
6921
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 ; } }
6861
6924
}
6862
6925
6863
6926
module . exports . ProfileTransOrderType = ProfileTransOrderType ;
@@ -7126,7 +7189,7 @@ class UpdateCustomerProfileRequest extends ANetApiRequest {
7126
7189
logger . debug ( 'Enter UpdateCustomerProfileRequest constructor' ) ;
7127
7190
if ( arguments . length == 1 ) {
7128
7191
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 ) ) ; }
7130
7193
}
7131
7194
else {
7132
7195
super ( ) ;
@@ -7639,6 +7702,12 @@ const AfdsTransactionEnum = {
7639
7702
} ;
7640
7703
module . exports . AfdsTransactionEnum = AfdsTransactionEnum ;
7641
7704
7705
+ const AuthIndicatorEnum = {
7706
+ PRE : 'pre' ,
7707
+ FINAL : 'final'
7708
+ } ;
7709
+ module . exports . AuthIndicatorEnum = AuthIndicatorEnum ;
7710
+
7642
7711
const BankAccountTypeEnum = {
7643
7712
CHECKING : 'checking' ,
7644
7713
SAVINGS : 'savings' ,
@@ -7754,7 +7823,8 @@ const PaymentMethodsTypeEnum = {
7754
7823
PAYPAL : 'Paypal' ,
7755
7824
VISACHECKOUT : 'VisaCheckout' ,
7756
7825
APPLEPAY : 'ApplePay' ,
7757
- ANDROIDPAY : 'AndroidPay'
7826
+ ANDROIDPAY : 'AndroidPay' ,
7827
+ GOOGLEPAY : 'GooglePay'
7758
7828
} ;
7759
7829
module . exports . PaymentMethodsTypeEnum = PaymentMethodsTypeEnum ;
7760
7830
@@ -7798,7 +7868,8 @@ const SettingNameEnum = {
7798
7868
HOSTEDPAYMENTSTYLEOPTIONS : 'hostedPaymentStyleOptions' ,
7799
7869
TYPEEMAILRECEIPT : 'typeEmailReceipt' ,
7800
7870
HOSTEDPROFILEPAYMENTOPTIONS : 'hostedProfilePaymentOptions' ,
7801
- HOSTEDPROFILESAVEBUTTONTEXT : 'hostedProfileSaveButtonText'
7871
+ HOSTEDPROFILESAVEBUTTONTEXT : 'hostedProfileSaveButtonText' ,
7872
+ HOSTEDPAYMENTVISACHECKOUTOPTIONS : 'hostedPaymentVisaCheckoutOptions'
7802
7873
} ;
7803
7874
module . exports . SettingNameEnum = SettingNameEnum ;
7804
7875
0 commit comments