cybersource-rest-client 0.0.36 → 0.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/misc.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/workspace.xml +162 -0
- package/Logging.md +65 -65
- package/README.md +69 -69
- package/cybersource-rest-client-0.0.38.tgz +0 -0
- package/docs/AccessTokenResponse.md +14 -14
- package/docs/AddNegativeListRequest.md +13 -13
- package/docs/AsymmetricKeyManagementApi.md +149 -149
- package/docs/AuthReversalRequest.md +12 -12
- package/docs/BadRequestError.md +9 -9
- package/docs/CaptureApi.md +58 -58
- package/docs/CapturePaymentRequest.md +20 -20
- package/docs/ChargebackDetailsApi.md +62 -62
- package/docs/ChargebackSummariesApi.md +62 -62
- package/docs/CheckPayerAuthEnrollmentRequest.md +21 -21
- package/docs/ConversionDetailsApi.md +62 -62
- package/docs/CreateAccessTokenRequest.md +12 -12
- package/docs/CreateAdhocReportRequest.md +18 -18
- package/docs/CreateBundledDecisionManagerCaseRequest.md +21 -21
- package/docs/CreateCreditRequest.md +20 -20
- package/docs/CreateInvoiceRequest.md +10 -10
- package/docs/CreateP12KeysRequest.md +9 -9
- package/docs/CreatePaymentRequest.md +30 -30
- package/docs/CreateReportSubscriptionRequest.md +20 -20
- package/docs/CreateSearchRequest.md +14 -14
- package/docs/CreateSharedSecretKeysRequest.md +9 -9
- package/docs/CreateSharedSecretKeysVerifiRequest.md +9 -0
- package/docs/CreditApi.md +55 -55
- package/docs/CustomerApi.md +209 -209
- package/docs/CustomerPaymentInstrumentApi.md +276 -276
- package/docs/CustomerShippingAddressApi.md +276 -276
- package/docs/DecisionManagerApi.md +155 -155
- package/docs/DeleteBulkP12KeysRequest.md +9 -9
- package/docs/DeleteBulkSymmetricKeysRequest.md +9 -9
- package/docs/DownloadDTDApi.md +55 -55
- package/docs/DownloadXSDApi.md +55 -55
- package/docs/FlexV1KeysPost200Response.md +10 -10
- package/docs/FlexV1KeysPost200ResponseDer.md +10 -10
- package/docs/FlexV1KeysPost200ResponseJwk.md +12 -12
- package/docs/FlexV1TokensPost200Response.md +15 -15
- package/docs/Flexv1tokensCardInfo.md +11 -11
- package/docs/FraudMarkingActionRequest.md +9 -9
- package/docs/GeneratePublicKeyRequest.md +9 -9
- package/docs/IncrementAuthRequest.md +12 -12
- package/docs/InlineResponse400.md +8 -8
- package/docs/InlineResponse4001.md +13 -13
- package/docs/InlineResponse4001Fields.md +10 -10
- package/docs/InlineResponse4002.md +11 -11
- package/docs/InlineResponse400Details.md +9 -9
- package/docs/InlineResponse400Errors.md +10 -10
- package/docs/InlineResponseDefault.md +9 -9
- package/docs/InlineResponseDefaultLinks.md +10 -10
- package/docs/InlineResponseDefaultLinksNext.md +10 -10
- package/docs/InlineResponseDefaultResponseStatus.md +12 -12
- package/docs/InlineResponseDefaultResponseStatusDetails.md +9 -9
- package/docs/InstrumentIdentifierApi.md +314 -314
- package/docs/InterchangeClearingLevelDetailsApi.md +62 -62
- package/docs/InvoiceSettingsApi.md +96 -96
- package/docs/InvoiceSettingsRequest.md +8 -8
- package/docs/InvoicesApi.md +300 -300
- package/docs/InvoicingV2InvoiceSettingsGet200Response.md +9 -9
- package/docs/InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformation.md +15 -15
- package/docs/InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformationHeaderStyle.md +9 -9
- package/docs/InvoicingV2InvoicesAllGet200Response.md +11 -11
- package/docs/InvoicingV2InvoicesAllGet200ResponseCustomerInformation.md +9 -9
- package/docs/InvoicingV2InvoicesAllGet200ResponseInvoiceInformation.md +8 -8
- package/docs/InvoicingV2InvoicesAllGet200ResponseInvoices.md +13 -13
- package/docs/InvoicingV2InvoicesAllGet200ResponseLinks.md +10 -10
- package/docs/InvoicingV2InvoicesAllGet200ResponseLinks1.md +11 -11
- package/docs/InvoicingV2InvoicesAllGet200ResponseOrderInformation.md +8 -8
- package/docs/InvoicingV2InvoicesAllGet200ResponseOrderInformationAmountDetails.md +9 -9
- package/docs/InvoicingV2InvoicesAllGet400Response.md +12 -12
- package/docs/InvoicingV2InvoicesAllGet404Response.md +12 -12
- package/docs/InvoicingV2InvoicesAllGet502Response.md +11 -11
- package/docs/InvoicingV2InvoicesGet200Response.md +15 -15
- package/docs/InvoicingV2InvoicesGet200ResponseInvoiceHistory.md +10 -10
- package/docs/InvoicingV2InvoicesGet200ResponseTransactionDetails.md +9 -9
- package/docs/InvoicingV2InvoicesPost201Response.md +14 -14
- package/docs/InvoicingV2InvoicesPost201ResponseInvoiceInformation.md +13 -13
- package/docs/InvoicingV2InvoicesPost201ResponseOrderInformation.md +9 -9
- package/docs/InvoicingV2InvoicesPost201ResponseOrderInformationAmountDetails.md +16 -16
- package/docs/InvoicingV2InvoicesPost202Response.md +12 -12
- package/docs/Invoicingv2invoiceSettingsInvoiceSettingsInformation.md +15 -15
- package/docs/Invoicingv2invoicesCustomerInformation.md +10 -10
- package/docs/Invoicingv2invoicesInvoiceInformation.md +13 -13
- package/docs/Invoicingv2invoicesOrderInformation.md +9 -9
- package/docs/Invoicingv2invoicesOrderInformationAmountDetails.md +15 -15
- package/docs/Invoicingv2invoicesOrderInformationAmountDetailsFreight.md +9 -9
- package/docs/Invoicingv2invoicesOrderInformationAmountDetailsTaxDetails.md +10 -10
- package/docs/Invoicingv2invoicesOrderInformationLineItems.md +11 -11
- package/docs/Invoicingv2invoicesidInvoiceInformation.md +11 -11
- package/docs/KeyGenerationApi.md +58 -58
- package/docs/KmsV2KeysAsymDeletesPost200Response.md +10 -10
- package/docs/KmsV2KeysAsymDeletesPost200ResponseKeyInformation.md +13 -13
- package/docs/KmsV2KeysAsymGet200Response.md +9 -9
- package/docs/KmsV2KeysAsymGet200ResponseKeyInformation.md +15 -15
- package/docs/KmsV2KeysAsymPost201Response.md +12 -12
- package/docs/KmsV2KeysAsymPost201ResponseCertificateInformation.md +11 -11
- package/docs/KmsV2KeysAsymPost201ResponseKeyInformation.md +16 -16
- package/docs/KmsV2KeysSymDeletesPost200Response.md +11 -11
- package/docs/KmsV2KeysSymDeletesPost200ResponseKeyInformation.md +12 -12
- package/docs/KmsV2KeysSymGet200Response.md +10 -10
- package/docs/KmsV2KeysSymGet200ResponseKeyInformation.md +13 -13
- package/docs/KmsV2KeysSymPost201Response.md +11 -11
- package/docs/KmsV2KeysSymPost201ResponseErrorInformation.md +9 -9
- package/docs/KmsV2KeysSymPost201ResponseKeyInformation.md +15 -15
- package/docs/Kmsv2keysasymKeyInformation.md +10 -10
- package/docs/Kmsv2keyssymClientReferenceInformation.md +10 -10
- package/docs/Kmsv2keyssymKeyInformation.md +9 -9
- package/docs/Kmsv2keyssymdeletesKeyInformation.md +10 -10
- package/docs/Kmsv2keyssymverifiKeyInformation.md +21 -0
- package/docs/MitReversalRequest.md +12 -12
- package/docs/MitVoidRequest.md +9 -9
- package/docs/NetFundingsApi.md +64 -64
- package/docs/NotificationOfChangesApi.md +58 -58
- package/docs/OAuthApi.md +59 -59
- package/docs/OctCreatePaymentRequest.md +14 -14
- package/docs/PatchCustomerPaymentInstrumentRequest.md +21 -21
- package/docs/PatchCustomerRequest.md +17 -17
- package/docs/PatchCustomerShippingAddressRequest.md +12 -12
- package/docs/PatchInstrumentIdentifierRequest.md +19 -19
- package/docs/PatchPaymentInstrumentRequest.md +21 -21
- package/docs/PayerAuthSetupRequest.md +11 -11
- package/docs/PayerAuthenticationApi.md +149 -149
- package/docs/PaymentBatchSummariesApi.md +68 -68
- package/docs/PaymentInstrumentApi.md +211 -211
- package/docs/PaymentInstrumentList.md +13 -13
- package/docs/PaymentInstrumentListEmbedded.md +8 -8
- package/docs/PaymentInstrumentListLinks.md +12 -12
- package/docs/PaymentInstrumentListLinksFirst.md +8 -8
- package/docs/PaymentInstrumentListLinksLast.md +8 -8
- package/docs/PaymentInstrumentListLinksNext.md +8 -8
- package/docs/PaymentInstrumentListLinksPrev.md +8 -8
- package/docs/PaymentInstrumentListLinksSelf.md +8 -8
- package/docs/PaymentsApi.md +105 -105
- package/docs/PayoutsApi.md +55 -55
- package/docs/PostCustomerPaymentInstrumentRequest.md +21 -21
- package/docs/PostCustomerRequest.md +17 -17
- package/docs/PostCustomerShippingAddressRequest.md +12 -12
- package/docs/PostInstrumentIdentifierEnrollmentRequest.md +19 -19
- package/docs/PostInstrumentIdentifierRequest.md +19 -19
- package/docs/PostPaymentInstrumentRequest.md +21 -21
- package/docs/PredefinedSubscriptionRequestBean.md +17 -17
- package/docs/PtsV1TransactionBatchesGet200Response.md +10 -10
- package/docs/PtsV1TransactionBatchesGet200ResponseLinks.md +8 -8
- package/docs/PtsV1TransactionBatchesGet200ResponseLinksSelf.md +9 -9
- package/docs/PtsV1TransactionBatchesGet200ResponseTransactionBatches.md +14 -14
- package/docs/PtsV1TransactionBatchesGet400Response.md +9 -9
- package/docs/PtsV1TransactionBatchesGet400ResponseErrorInformation.md +10 -10
- package/docs/PtsV1TransactionBatchesGet400ResponseErrorInformationDetails.md +9 -9
- package/docs/PtsV1TransactionBatchesGet500Response.md +9 -9
- package/docs/PtsV1TransactionBatchesGet500ResponseErrorInformation.md +9 -9
- package/docs/PtsV1TransactionBatchesIdGet200Response.md +15 -15
- package/docs/PtsV1TransactionBatchesIdGet200ResponseLinks.md +8 -8
- package/docs/PtsV1TransactionBatchesIdGet200ResponseLinksTransactions.md +9 -9
- package/docs/PtsV2CreditsPost201Response.md +19 -19
- package/docs/PtsV2CreditsPost201ResponseCreditAmountDetails.md +9 -9
- package/docs/PtsV2CreditsPost201ResponsePaymentInformation.md +12 -12
- package/docs/PtsV2CreditsPost201ResponseProcessingInformation.md +9 -9
- package/docs/PtsV2CreditsPost201ResponseProcessingInformationBankTransferOptions.md +8 -8
- package/docs/PtsV2IncrementalAuthorizationPatch201Response.md +17 -17
- package/docs/PtsV2IncrementalAuthorizationPatch201ResponseClientReferenceInformation.md +8 -8
- package/docs/PtsV2IncrementalAuthorizationPatch201ResponseErrorInformation.md +10 -10
- package/docs/PtsV2IncrementalAuthorizationPatch201ResponseLinks.md +8 -8
- package/docs/PtsV2IncrementalAuthorizationPatch201ResponseOrderInformation.md +8 -8
- package/docs/PtsV2IncrementalAuthorizationPatch201ResponsePaymentInformation.md +8 -8
- package/docs/PtsV2IncrementalAuthorizationPatch201ResponsePaymentInformationAccountFeatures.md +8 -8
- package/docs/PtsV2IncrementalAuthorizationPatch201ResponseProcessorInformation.md +13 -13
- package/docs/PtsV2IncrementalAuthorizationPatch400Response.md +12 -12
- package/docs/PtsV2PaymentsCapturesPost201Response.md +17 -17
- package/docs/PtsV2PaymentsCapturesPost201ResponseLinks.md +10 -10
- package/docs/PtsV2PaymentsCapturesPost201ResponseOrderInformation.md +9 -9
- package/docs/PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails.md +10 -10
- package/docs/PtsV2PaymentsCapturesPost201ResponseOrderInformationInvoiceDetails.md +8 -8
- package/docs/PtsV2PaymentsCapturesPost201ResponsePointOfSaleInformation.md +8 -8
- package/docs/PtsV2PaymentsCapturesPost201ResponseProcessingInformation.md +8 -8
- package/docs/PtsV2PaymentsCapturesPost201ResponseProcessorInformation.md +8 -8
- package/docs/PtsV2PaymentsCapturesPost400Response.md +12 -12
- package/docs/PtsV2PaymentsPost201Response.md +27 -26
- package/docs/PtsV2PaymentsPost201ResponseBuyerInformation.md +12 -12
- package/docs/PtsV2PaymentsPost201ResponseClientReferenceInformation.md +10 -10
- package/docs/PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation.md +49 -49
- package/docs/PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationIvr.md +14 -14
- package/docs/PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationStrongAuthentication.md +8 -8
- package/docs/PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationStrongAuthenticationIssuerInformation.md +9 -9
- package/docs/PtsV2PaymentsPost201ResponseErrorInformation.md +10 -10
- package/docs/PtsV2PaymentsPost201ResponseErrorInformationDetails.md +9 -9
- package/docs/PtsV2PaymentsPost201ResponseInstallmentInformation.md +33 -33
- package/docs/PtsV2PaymentsPost201ResponseIssuerInformation.md +12 -11
- package/docs/PtsV2PaymentsPost201ResponseLinks.md +14 -14
- package/docs/PtsV2PaymentsPost201ResponseLinksSelf.md +9 -9
- package/docs/PtsV2PaymentsPost201ResponseOrderInformation.md +10 -10
- package/docs/PtsV2PaymentsPost201ResponseOrderInformationAmountDetails.md +10 -10
- package/docs/PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails.md +9 -9
- package/docs/PtsV2PaymentsPost201ResponseOrderInformationRewardPointsDetails.md +13 -13
- package/docs/PtsV2PaymentsPost201ResponsePaymentAccountInformation.md +8 -8
- package/docs/PtsV2PaymentsPost201ResponsePaymentAccountInformationCard.md +13 -12
- package/docs/PtsV2PaymentsPost201ResponsePaymentInformation.md +20 -20
- package/docs/PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.md +25 -25
- package/docs/PtsV2PaymentsPost201ResponsePaymentInformationAccountFeaturesBalances.md +11 -11
- package/docs/PtsV2PaymentsPost201ResponsePaymentInformationBank.md +9 -9
- package/docs/PtsV2PaymentsPost201ResponsePaymentInformationBankAccount.md +8 -8
- package/docs/PtsV2PaymentsPost201ResponsePaymentInformationInstrumentIdentifier.md +9 -9
- package/docs/PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard.md +14 -14
- package/docs/PtsV2PaymentsPost201ResponsePaymentInsightsInformation.md +8 -0
- package/docs/PtsV2PaymentsPost201ResponsePaymentInsightsInformationResponseInsights.md +9 -0
- package/docs/PtsV2PaymentsPost201ResponsePointOfSaleInformation.md +10 -10
- package/docs/PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv.md +10 -10
- package/docs/PtsV2PaymentsPost201ResponseProcessingInformation.md +10 -10
- package/docs/PtsV2PaymentsPost201ResponseProcessingInformationBankTransferOptions.md +9 -9
- package/docs/PtsV2PaymentsPost201ResponseProcessorInformation.md +37 -37
- package/docs/PtsV2PaymentsPost201ResponseProcessorInformationAchVerification.md +9 -9
- package/docs/PtsV2PaymentsPost201ResponseProcessorInformationAvs.md +9 -9
- package/docs/PtsV2PaymentsPost201ResponseProcessorInformationCardVerification.md +9 -9
- package/docs/PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse.md +9 -9
- package/docs/PtsV2PaymentsPost201ResponseProcessorInformationCustomer.md +8 -8
- package/docs/PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.md +19 -19
- package/docs/PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice.md +10 -9
- package/docs/PtsV2PaymentsPost201ResponseProcessorInformationRouting.md +10 -10
- package/docs/PtsV2PaymentsPost201ResponseRiskInformation.md +17 -17
- package/docs/PtsV2PaymentsPost201ResponseRiskInformationInfoCodes.md +16 -16
- package/docs/PtsV2PaymentsPost201ResponseRiskInformationIpAddress.md +14 -14
- package/docs/PtsV2PaymentsPost201ResponseRiskInformationProfile.md +10 -10
- package/docs/PtsV2PaymentsPost201ResponseRiskInformationProviders.md +8 -8
- package/docs/PtsV2PaymentsPost201ResponseRiskInformationProvidersProviderName.md +9 -9
- package/docs/PtsV2PaymentsPost201ResponseRiskInformationRules.md +9 -9
- package/docs/PtsV2PaymentsPost201ResponseRiskInformationScore.md +10 -10
- package/docs/PtsV2PaymentsPost201ResponseRiskInformationTravel.md +11 -11
- package/docs/PtsV2PaymentsPost201ResponseRiskInformationTravelActualFinalDestination.md +11 -11
- package/docs/PtsV2PaymentsPost201ResponseRiskInformationTravelFirstDeparture.md +11 -11
- package/docs/PtsV2PaymentsPost201ResponseRiskInformationTravelFirstDestination.md +11 -11
- package/docs/PtsV2PaymentsPost201ResponseRiskInformationTravelLastDestination.md +11 -11
- package/docs/PtsV2PaymentsPost201ResponseRiskInformationVelocity.md +9 -9
- package/docs/PtsV2PaymentsPost201ResponseRiskInformationVelocityMorphing.md +10 -10
- package/docs/PtsV2PaymentsPost201ResponseTokenInformation.md +12 -12
- package/docs/PtsV2PaymentsPost201ResponseTokenInformationCustomer.md +8 -8
- package/docs/PtsV2PaymentsPost201ResponseTokenInformationInstrumentIdentifier.md +9 -9
- package/docs/PtsV2PaymentsPost201ResponseTokenInformationPaymentInstrument.md +8 -8
- package/docs/PtsV2PaymentsPost201ResponseTokenInformationShippingAddress.md +8 -8
- package/docs/PtsV2PaymentsPost400Response.md +12 -12
- package/docs/PtsV2PaymentsPost502Response.md +11 -11
- package/docs/PtsV2PaymentsRefundPost201Response.md +17 -17
- package/docs/PtsV2PaymentsRefundPost201ResponseLinks.md +9 -9
- package/docs/PtsV2PaymentsRefundPost201ResponseOrderInformation.md +8 -8
- package/docs/PtsV2PaymentsRefundPost201ResponseProcessorInformation.md +13 -13
- package/docs/PtsV2PaymentsRefundPost201ResponseRefundAmountDetails.md +9 -9
- package/docs/PtsV2PaymentsRefundPost400Response.md +12 -12
- package/docs/PtsV2PaymentsReversalsPost201Response.md +18 -18
- package/docs/PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation.md +10 -10
- package/docs/PtsV2PaymentsReversalsPost201ResponseIssuerInformation.md +8 -8
- package/docs/PtsV2PaymentsReversalsPost201ResponseProcessorInformation.md +13 -13
- package/docs/PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails.md +10 -10
- package/docs/PtsV2PaymentsReversalsPost400Response.md +12 -12
- package/docs/PtsV2PaymentsVoidsPost201Response.md +14 -14
- package/docs/PtsV2PaymentsVoidsPost201ResponseProcessorInformation.md +8 -8
- package/docs/PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails.md +10 -10
- package/docs/PtsV2PaymentsVoidsPost400Response.md +12 -12
- package/docs/PtsV2PayoutsPost201Response.md +18 -18
- package/docs/PtsV2PayoutsPost201ResponseErrorInformation.md +10 -10
- package/docs/PtsV2PayoutsPost201ResponseMerchantInformation.md +8 -8
- package/docs/PtsV2PayoutsPost201ResponseMerchantInformationMerchantDescriptor.md +10 -10
- package/docs/PtsV2PayoutsPost201ResponseOrderInformation.md +8 -8
- package/docs/PtsV2PayoutsPost201ResponseOrderInformationAmountDetails.md +11 -11
- package/docs/PtsV2PayoutsPost201ResponseProcessorInformation.md +12 -12
- package/docs/PtsV2PayoutsPost201ResponseRecipientInformation.md +8 -8
- package/docs/PtsV2PayoutsPost201ResponseRecipientInformationCard.md +9 -9
- package/docs/PtsV2PayoutsPost400Response.md +12 -12
- package/docs/Ptsv2creditsInstallmentInformation.md +8 -8
- package/docs/Ptsv2creditsProcessingInformation.md +25 -25
- package/docs/Ptsv2creditsProcessingInformationBankTransferOptions.md +14 -14
- package/docs/Ptsv2creditsProcessingInformationElectronicBenefitsTransfer.md +8 -8
- package/docs/Ptsv2creditsProcessingInformationJapanPaymentOptions.md +9 -9
- package/docs/Ptsv2creditsProcessingInformationPurchaseOptions.md +8 -8
- package/docs/Ptsv2paymentsAcquirerInformation.md +11 -11
- package/docs/Ptsv2paymentsAggregatorInformation.md +10 -10
- package/docs/Ptsv2paymentsAggregatorInformationSubMerchant.md +18 -18
- package/docs/Ptsv2paymentsBuyerInformation.md +16 -16
- package/docs/Ptsv2paymentsBuyerInformationPersonalIdentification.md +11 -11
- package/docs/Ptsv2paymentsClientReferenceInformation.md +16 -16
- package/docs/Ptsv2paymentsClientReferenceInformationPartner.md +11 -11
- package/docs/Ptsv2paymentsConsumerAuthenticationInformation.md +63 -63
- package/docs/Ptsv2paymentsConsumerAuthenticationInformationStrongAuthentication.md +14 -14
- package/docs/Ptsv2paymentsDeviceInformation.md +25 -25
- package/docs/Ptsv2paymentsDeviceInformationRawData.md +9 -9
- package/docs/Ptsv2paymentsHealthCareInformation.md +8 -8
- package/docs/Ptsv2paymentsHealthCareInformationAmountDetails.md +9 -9
- package/docs/Ptsv2paymentsInstallmentInformation.md +22 -22
- package/docs/Ptsv2paymentsInvoiceDetails.md +8 -8
- package/docs/Ptsv2paymentsIssuerInformation.md +8 -8
- package/docs/Ptsv2paymentsMerchantDefinedInformation.md +9 -9
- package/docs/Ptsv2paymentsMerchantInformation.md +21 -21
- package/docs/Ptsv2paymentsMerchantInformationMerchantDescriptor.md +18 -17
- package/docs/Ptsv2paymentsMerchantInformationServiceFeeDescriptor.md +10 -10
- package/docs/Ptsv2paymentsOrderInformation.md +19 -18
- package/docs/Ptsv2paymentsOrderInformationAmountDetails.md +33 -33
- package/docs/Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.md +9 -9
- package/docs/Ptsv2paymentsOrderInformationAmountDetailsCurrencyConversion.md +10 -10
- package/docs/Ptsv2paymentsOrderInformationAmountDetailsSurcharge.md +9 -9
- package/docs/Ptsv2paymentsOrderInformationAmountDetailsTaxDetails.md +14 -14
- package/docs/Ptsv2paymentsOrderInformationBillTo.md +27 -27
- package/docs/Ptsv2paymentsOrderInformationBillToCompany.md +14 -14
- package/docs/Ptsv2paymentsOrderInformationInvoiceDetails.md +24 -23
- package/docs/Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.md +8 -8
- package/docs/Ptsv2paymentsOrderInformationLineItems.md +38 -38
- package/docs/Ptsv2paymentsOrderInformationPassenger.md +15 -15
- package/docs/Ptsv2paymentsOrderInformationShipTo.md +24 -24
- package/docs/Ptsv2paymentsOrderInformationShippingDetails.md +10 -10
- package/docs/Ptsv2paymentsPaymentInformation.md +19 -19
- package/docs/Ptsv2paymentsPaymentInformationBank.md +11 -11
- package/docs/Ptsv2paymentsPaymentInformationBankAccount.md +12 -12
- package/docs/Ptsv2paymentsPaymentInformationCard.md +22 -21
- package/docs/Ptsv2paymentsPaymentInformationCustomer.md +9 -9
- package/docs/Ptsv2paymentsPaymentInformationEWallet.md +8 -8
- package/docs/Ptsv2paymentsPaymentInformationFluidData.md +11 -11
- package/docs/Ptsv2paymentsPaymentInformationInstrumentIdentifier.md +8 -8
- package/docs/Ptsv2paymentsPaymentInformationLegacyToken.md +8 -8
- package/docs/Ptsv2paymentsPaymentInformationPaymentInstrument.md +8 -8
- package/docs/Ptsv2paymentsPaymentInformationPaymentType.md +10 -10
- package/docs/Ptsv2paymentsPaymentInformationPaymentTypeMethod.md +8 -8
- package/docs/Ptsv2paymentsPaymentInformationShippingAddress.md +8 -8
- package/docs/Ptsv2paymentsPaymentInformationTokenizedCard.md +18 -17
- package/docs/Ptsv2paymentsPointOfSaleInformation.md +34 -33
- package/docs/Ptsv2paymentsPointOfSaleInformationEmv.md +13 -12
- package/docs/Ptsv2paymentsProcessingInformation.md +35 -34
- package/docs/Ptsv2paymentsProcessingInformationAuthorizationOptions.md +25 -24
- package/docs/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator.md +11 -11
- package/docs/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.md +10 -10
- package/docs/Ptsv2paymentsProcessingInformationBankTransferOptions.md +18 -18
- package/docs/Ptsv2paymentsProcessingInformationCaptureOptions.md +10 -10
- package/docs/Ptsv2paymentsProcessingInformationElectronicBenefitsTransfer.md +9 -9
- package/docs/Ptsv2paymentsProcessingInformationJapanPaymentOptions.md +15 -15
- package/docs/Ptsv2paymentsProcessingInformationLoanOptions.md +9 -9
- package/docs/Ptsv2paymentsProcessingInformationPurchaseOptions.md +9 -9
- package/docs/Ptsv2paymentsProcessingInformationRecurringOptions.md +9 -9
- package/docs/Ptsv2paymentsProcessorInformation.md +9 -8
- package/docs/Ptsv2paymentsProcessorInformationAuthorizationOptions.md +8 -0
- package/docs/Ptsv2paymentsPromotionInformation.md +9 -9
- package/docs/Ptsv2paymentsRecipientInformation.md +11 -11
- package/docs/Ptsv2paymentsRecurringPaymentInformation.md +12 -12
- package/docs/Ptsv2paymentsRiskInformation.md +11 -11
- package/docs/Ptsv2paymentsRiskInformationAuxiliaryData.md +9 -9
- package/docs/Ptsv2paymentsRiskInformationBuyerHistory.md +16 -16
- package/docs/Ptsv2paymentsRiskInformationBuyerHistoryAccountHistory.md +9 -9
- package/docs/Ptsv2paymentsRiskInformationBuyerHistoryCustomerAccount.md +13 -13
- package/docs/Ptsv2paymentsRiskInformationProfile.md +8 -8
- package/docs/Ptsv2paymentsTokenInformation.md +12 -12
- package/docs/Ptsv2paymentsTokenInformationPaymentInstrument.md +8 -8
- package/docs/Ptsv2paymentsTokenInformationShippingAddress.md +8 -8
- package/docs/Ptsv2paymentsTravelInformation.md +12 -12
- package/docs/Ptsv2paymentsTravelInformationAgency.md +9 -9
- package/docs/Ptsv2paymentsTravelInformationAutoRental.md +49 -49
- package/docs/Ptsv2paymentsTravelInformationAutoRentalRentalAddress.md +14 -14
- package/docs/Ptsv2paymentsTravelInformationAutoRentalReturnAddress.md +12 -12
- package/docs/Ptsv2paymentsTravelInformationAutoRentalTaxDetails.md +13 -13
- package/docs/Ptsv2paymentsTravelInformationLodging.md +49 -49
- package/docs/Ptsv2paymentsTravelInformationLodgingRoom.md +9 -9
- package/docs/Ptsv2paymentsTravelInformationTransit.md +8 -8
- package/docs/Ptsv2paymentsTravelInformationTransitAirline.md +45 -45
- package/docs/Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformation.md +12 -12
- package/docs/Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformationService.md +9 -9
- package/docs/Ptsv2paymentsTravelInformationTransitAirlineLegs.md +27 -27
- package/docs/Ptsv2paymentsTravelInformationTransitAirlineTicketIssuer.md +14 -14
- package/docs/Ptsv2paymentsidClientReferenceInformation.md +12 -12
- package/docs/Ptsv2paymentsidClientReferenceInformationPartner.md +10 -10
- package/docs/Ptsv2paymentsidMerchantInformation.md +8 -8
- package/docs/Ptsv2paymentsidOrderInformation.md +8 -8
- package/docs/Ptsv2paymentsidOrderInformationAmountDetails.md +9 -9
- package/docs/Ptsv2paymentsidProcessingInformation.md +8 -8
- package/docs/Ptsv2paymentsidProcessingInformationAuthorizationOptions.md +8 -8
- package/docs/Ptsv2paymentsidProcessingInformationAuthorizationOptionsInitiator.md +8 -8
- package/docs/Ptsv2paymentsidTravelInformation.md +8 -8
- package/docs/Ptsv2paymentsidcapturesAggregatorInformation.md +10 -10
- package/docs/Ptsv2paymentsidcapturesAggregatorInformationSubMerchant.md +16 -16
- package/docs/Ptsv2paymentsidcapturesBuyerInformation.md +9 -9
- package/docs/Ptsv2paymentsidcapturesDeviceInformation.md +10 -10
- package/docs/Ptsv2paymentsidcapturesInstallmentInformation.md +32 -32
- package/docs/Ptsv2paymentsidcapturesMerchantInformation.md +13 -13
- package/docs/Ptsv2paymentsidcapturesOrderInformation.md +13 -13
- package/docs/Ptsv2paymentsidcapturesOrderInformationAmountDetails.md +27 -27
- package/docs/Ptsv2paymentsidcapturesOrderInformationBillTo.md +18 -18
- package/docs/Ptsv2paymentsidcapturesOrderInformationInvoiceDetails.md +14 -14
- package/docs/Ptsv2paymentsidcapturesOrderInformationShipTo.md +10 -10
- package/docs/Ptsv2paymentsidcapturesOrderInformationShippingDetails.md +8 -8
- package/docs/Ptsv2paymentsidcapturesPaymentInformation.md +9 -9
- package/docs/Ptsv2paymentsidcapturesPaymentInformationCard.md +9 -9
- package/docs/Ptsv2paymentsidcapturesPointOfSaleInformation.md +9 -9
- package/docs/Ptsv2paymentsidcapturesPointOfSaleInformationEmv.md +9 -9
- package/docs/Ptsv2paymentsidcapturesProcessingInformation.md +19 -19
- package/docs/Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions.md +10 -10
- package/docs/Ptsv2paymentsidcapturesProcessingInformationCaptureOptions.md +9 -9
- package/docs/Ptsv2paymentsidrefundsMerchantInformation.md +12 -12
- package/docs/Ptsv2paymentsidrefundsOrderInformation.md +13 -13
- package/docs/Ptsv2paymentsidrefundsOrderInformationLineItems.md +27 -27
- package/docs/Ptsv2paymentsidrefundsPaymentInformation.md +18 -18
- package/docs/Ptsv2paymentsidrefundsPaymentInformationBank.md +10 -10
- package/docs/Ptsv2paymentsidrefundsPaymentInformationCard.md +17 -17
- package/docs/Ptsv2paymentsidrefundsPointOfSaleInformation.md +8 -8
- package/docs/Ptsv2paymentsidrefundsProcessingInformation.md +15 -15
- package/docs/Ptsv2paymentsidrefundsProcessingInformationRecurringOptions.md +8 -8
- package/docs/Ptsv2paymentsidreversalsClientReferenceInformation.md +14 -14
- package/docs/Ptsv2paymentsidreversalsClientReferenceInformationPartner.md +10 -10
- package/docs/Ptsv2paymentsidreversalsOrderInformation.md +9 -9
- package/docs/Ptsv2paymentsidreversalsOrderInformationAmountDetails.md +8 -8
- package/docs/Ptsv2paymentsidreversalsOrderInformationLineItems.md +9 -9
- package/docs/Ptsv2paymentsidreversalsPointOfSaleInformation.md +8 -8
- package/docs/Ptsv2paymentsidreversalsPointOfSaleInformationEmv.md +8 -8
- package/docs/Ptsv2paymentsidreversalsProcessingInformation.md +13 -13
- package/docs/Ptsv2paymentsidreversalsReversalInformation.md +9 -9
- package/docs/Ptsv2paymentsidreversalsReversalInformationAmountDetails.md +9 -9
- package/docs/Ptsv2paymentsidvoidsOrderInformation.md +8 -0
- package/docs/Ptsv2paymentsidvoidsPaymentInformation.md +8 -8
- package/docs/Ptsv2payoutsClientReferenceInformation.md +11 -11
- package/docs/Ptsv2payoutsMerchantInformation.md +11 -11
- package/docs/Ptsv2payoutsMerchantInformationMerchantDescriptor.md +13 -13
- package/docs/Ptsv2payoutsOrderInformation.md +10 -9
- package/docs/Ptsv2payoutsOrderInformationAmountDetails.md +10 -10
- package/docs/Ptsv2payoutsOrderInformationAmountDetailsSurcharge.md +8 -8
- package/docs/Ptsv2payoutsOrderInformationBillTo.md +17 -17
- package/docs/Ptsv2payoutsPaymentInformation.md +9 -9
- package/docs/Ptsv2payoutsPaymentInformationCard.md +12 -12
- package/docs/Ptsv2payoutsProcessingInformation.md +15 -14
- package/docs/Ptsv2payoutsProcessingInformationFundingOptions.md +8 -0
- package/docs/Ptsv2payoutsProcessingInformationFundingOptionsInitiator.md +8 -0
- package/docs/Ptsv2payoutsProcessingInformationPayoutsOptions.md +11 -11
- package/docs/Ptsv2payoutsRecipientInformation.md +18 -18
- package/docs/Ptsv2payoutsSenderInformation.md +25 -22
- package/docs/Ptsv2payoutsSenderInformationAccount.md +9 -9
- package/docs/PurchaseAndRefundDetailsApi.md +72 -72
- package/docs/RefundApi.md +108 -108
- package/docs/RefundCaptureRequest.md +19 -19
- package/docs/RefundPaymentRequest.md +19 -19
- package/docs/ReportDefinitionsApi.md +113 -113
- package/docs/ReportDownloadsApi.md +62 -62
- package/docs/ReportSubscriptionsApi.md +260 -260
- package/docs/ReportingV3ChargebackDetailsGet200Response.md +11 -11
- package/docs/ReportingV3ChargebackDetailsGet200ResponseChargebackDetails.md +30 -29
- package/docs/ReportingV3ChargebackSummariesGet200Response.md +11 -11
- package/docs/ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries.md +10 -10
- package/docs/ReportingV3ConversionDetailsGet200Response.md +11 -11
- package/docs/ReportingV3ConversionDetailsGet200ResponseConversionDetails.md +17 -17
- package/docs/ReportingV3ConversionDetailsGet200ResponseNotes.md +10 -10
- package/docs/ReportingV3InterchangeClearingLevelDetailsGet200Response.md +10 -10
- package/docs/ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails.md +58 -58
- package/docs/ReportingV3NetFundingsGet200Response.md +15 -15
- package/docs/ReportingV3NetFundingsGet200ResponseNetFundingSummaries.md +15 -15
- package/docs/ReportingV3NetFundingsGet200ResponseTotalPurchases.md +9 -9
- package/docs/ReportingV3NotificationofChangesGet200Response.md +8 -8
- package/docs/ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges.md +15 -15
- package/docs/ReportingV3PaymentBatchSummariesGet200Response.md +10 -10
- package/docs/ReportingV3PaymentBatchSummariesGet200ResponsePaymentBatchSummaries.md +19 -19
- package/docs/ReportingV3PurchaseRefundDetailsGet200Response.md +16 -16
- package/docs/ReportingV3PurchaseRefundDetailsGet200ResponseAuthorizations.md +15 -15
- package/docs/ReportingV3PurchaseRefundDetailsGet200ResponseFeeAndFundingDetails.md +20 -20
- package/docs/ReportingV3PurchaseRefundDetailsGet200ResponseOthers.md +14 -14
- package/docs/ReportingV3PurchaseRefundDetailsGet200ResponseRequestDetails.md +13 -13
- package/docs/ReportingV3PurchaseRefundDetailsGet200ResponseSettlementStatuses.md +12 -12
- package/docs/ReportingV3PurchaseRefundDetailsGet200ResponseSettlements.md +20 -20
- package/docs/ReportingV3ReportDefinitionsGet200Response.md +8 -8
- package/docs/ReportingV3ReportDefinitionsGet200ResponseReportDefinitions.md +14 -14
- package/docs/ReportingV3ReportDefinitionsNameGet200Response.md +15 -15
- package/docs/ReportingV3ReportDefinitionsNameGet200ResponseAttributes.md +14 -14
- package/docs/ReportingV3ReportDefinitionsNameGet200ResponseDefaultSettings.md +15 -15
- package/docs/ReportingV3ReportSubscriptionsGet200Response.md +8 -8
- package/docs/ReportingV3ReportSubscriptionsGet200ResponseSubscriptions.md +21 -21
- package/docs/ReportingV3ReportsGet200Response.md +8 -8
- package/docs/ReportingV3ReportsGet200ResponseLink.md +8 -8
- package/docs/ReportingV3ReportsGet200ResponseLinkReportDownload.md +9 -9
- package/docs/ReportingV3ReportsGet200ResponseReportSearchResults.md +23 -23
- package/docs/ReportingV3ReportsIdGet200Response.md +21 -21
- package/docs/ReportingV3RetrievalDetailsGet200Response.md +11 -11
- package/docs/ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails.md +29 -29
- package/docs/ReportingV3RetrievalSummariesGet200Response.md +11 -11
- package/docs/Reportingv3ReportDownloadsGet400Response.md +11 -11
- package/docs/Reportingv3ReportDownloadsGet400ResponseDetails.md +9 -9
- package/docs/Reportingv3reportsReportFilters.md +11 -11
- package/docs/Reportingv3reportsReportPreferences.md +9 -9
- package/docs/ReportsApi.md +177 -177
- package/docs/ResourceNotFoundError.md +9 -9
- package/docs/RetrievalDetailsApi.md +62 -62
- package/docs/RetrievalSummariesApi.md +62 -62
- package/docs/ReversalApi.md +105 -105
- package/docs/RiskV1AddressVerificationsPost201Response.md +16 -16
- package/docs/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformation.md +15 -15
- package/docs/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformationBarCode.md +9 -9
- package/docs/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformationStandardAddress.md +18 -18
- package/docs/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformationStandardAddressAddress1.md +9 -9
- package/docs/RiskV1AddressVerificationsPost201ResponseErrorInformation.md +10 -10
- package/docs/RiskV1AuthenticationResultsPost201Response.md +16 -16
- package/docs/RiskV1AuthenticationResultsPost201ResponseConsumerAuthenticationInformation.md +33 -30
- package/docs/RiskV1AuthenticationSetupsPost201Response.md +14 -14
- package/docs/RiskV1AuthenticationSetupsPost201ResponseConsumerAuthenticationInformation.md +10 -10
- package/docs/RiskV1AuthenticationSetupsPost201ResponseErrorInformation.md +10 -10
- package/docs/RiskV1AuthenticationsPost201Response.md +17 -17
- package/docs/RiskV1AuthenticationsPost201ResponseErrorInformation.md +10 -10
- package/docs/RiskV1AuthenticationsPost400Response.md +12 -12
- package/docs/RiskV1AuthenticationsPost400Response1.md +12 -12
- package/docs/RiskV1DecisionsPost201Response.md +18 -18
- package/docs/RiskV1DecisionsPost201ResponseClientReferenceInformation.md +10 -10
- package/docs/RiskV1DecisionsPost201ResponseConsumerAuthenticationInformation.md +46 -43
- package/docs/RiskV1DecisionsPost201ResponseErrorInformation.md +10 -10
- package/docs/RiskV1DecisionsPost201ResponseOrderInformation.md +8 -8
- package/docs/RiskV1DecisionsPost201ResponseOrderInformationAmountDetails.md +8 -8
- package/docs/RiskV1DecisionsPost201ResponsePaymentInformation.md +12 -12
- package/docs/RiskV1DecisionsPost400Response.md +12 -12
- package/docs/RiskV1DecisionsPost400Response1.md +12 -12
- package/docs/RiskV1ExportComplianceInquiriesPost201Response.md +16 -16
- package/docs/RiskV1ExportComplianceInquiriesPost201ResponseErrorInformation.md +10 -10
- package/docs/RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformation.md +10 -10
- package/docs/RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformationWatchList.md +8 -8
- package/docs/RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformationWatchListMatches.md +11 -11
- package/docs/RiskV1UpdatePost201Response.md +12 -12
- package/docs/Riskv1addressverificationsBuyerInformation.md +8 -8
- package/docs/Riskv1addressverificationsOrderInformation.md +10 -10
- package/docs/Riskv1addressverificationsOrderInformationBillTo.md +15 -15
- package/docs/Riskv1addressverificationsOrderInformationLineItems.md +13 -13
- package/docs/Riskv1addressverificationsOrderInformationShipTo.md +15 -15
- package/docs/Riskv1authenticationresultsConsumerAuthenticationInformation.md +16 -14
- package/docs/{TssV2TransactionsPost201ResponseEmbeddedDeviceInformation.md → Riskv1authenticationresultsDeviceInformation.md} +8 -8
- package/docs/Riskv1authenticationresultsOrderInformation.md +9 -9
- package/docs/Riskv1authenticationresultsOrderInformationAmountDetails.md +9 -9
- package/docs/Riskv1authenticationresultsOrderInformationLineItems.md +10 -10
- package/docs/Riskv1authenticationresultsPaymentInformation.md +11 -11
- package/docs/Riskv1authenticationresultsPaymentInformationCard.md +12 -12
- package/docs/Riskv1authenticationresultsPaymentInformationFluidData.md +11 -11
- package/docs/Riskv1authenticationresultsPaymentInformationTokenizedCard.md +12 -12
- package/docs/Riskv1authenticationsBuyerInformation.md +10 -10
- package/docs/Riskv1authenticationsDeviceInformation.md +19 -19
- package/docs/Riskv1authenticationsOrderInformation.md +15 -15
- package/docs/Riskv1authenticationsOrderInformationAmountDetails.md +9 -9
- package/docs/Riskv1authenticationsOrderInformationBillTo.md +17 -17
- package/docs/Riskv1authenticationsOrderInformationLineItems.md +17 -17
- package/docs/Riskv1authenticationsPaymentInformation.md +11 -11
- package/docs/Riskv1authenticationsPaymentInformationCard.md +12 -12
- package/docs/Riskv1authenticationsPaymentInformationTokenizedCard.md +14 -12
- package/docs/Riskv1authenticationsRiskInformation.md +8 -8
- package/docs/Riskv1authenticationsTravelInformation.md +10 -10
- package/docs/Riskv1authenticationsetupsPaymentInformation.md +11 -11
- package/docs/Riskv1authenticationsetupsPaymentInformationCard.md +11 -11
- package/docs/Riskv1authenticationsetupsPaymentInformationCustomer.md +8 -8
- package/docs/Riskv1authenticationsetupsPaymentInformationFluidData.md +11 -11
- package/docs/Riskv1authenticationsetupsPaymentInformationTokenizedCard.md +12 -12
- package/docs/Riskv1authenticationsetupsProcessingInformation.md +9 -9
- package/docs/Riskv1authenticationsetupsTokenInformation.md +8 -8
- package/docs/Riskv1decisionsBuyerInformation.md +12 -12
- package/docs/Riskv1decisionsClientReferenceInformation.md +11 -11
- package/docs/Riskv1decisionsClientReferenceInformationPartner.md +9 -9
- package/docs/Riskv1decisionsConsumerAuthenticationInformation.md +48 -47
- package/docs/Riskv1decisionsConsumerAuthenticationInformationStrongAuthentication.md +8 -8
- package/docs/Riskv1decisionsDeviceInformation.md +24 -24
- package/docs/Riskv1decisionsMerchantDefinedInformation.md +9 -9
- package/docs/Riskv1decisionsMerchantInformation.md +9 -9
- package/docs/Riskv1decisionsMerchantInformationMerchantDescriptor.md +9 -9
- package/docs/Riskv1decisionsOrderInformation.md +17 -17
- package/docs/Riskv1decisionsOrderInformationAmountDetails.md +9 -9
- package/docs/Riskv1decisionsOrderInformationBillTo.md +17 -17
- package/docs/Riskv1decisionsOrderInformationLineItems.md +21 -21
- package/docs/Riskv1decisionsOrderInformationShipTo.md +19 -19
- package/docs/Riskv1decisionsOrderInformationShippingDetails.md +9 -9
- package/docs/Riskv1decisionsPaymentInformation.md +12 -12
- package/docs/Riskv1decisionsPaymentInformationCard.md +12 -12
- package/docs/Riskv1decisionsPaymentInformationTokenizedCard.md +12 -12
- package/docs/Riskv1decisionsProcessingInformation.md +8 -8
- package/docs/Riskv1decisionsProcessorInformation.md +9 -9
- package/docs/Riskv1decisionsProcessorInformationAvs.md +8 -8
- package/docs/Riskv1decisionsProcessorInformationCardVerification.md +8 -8
- package/docs/Riskv1decisionsRiskInformation.md +11 -11
- package/docs/Riskv1decisionsTravelInformation.md +14 -14
- package/docs/Riskv1decisionsTravelInformationLegs.md +11 -11
- package/docs/Riskv1decisionsTravelInformationPassengers.md +9 -9
- package/docs/Riskv1decisionsidmarkingRiskInformation.md +8 -8
- package/docs/Riskv1decisionsidmarkingRiskInformationMarkingDetails.md +11 -11
- package/docs/Riskv1exportcomplianceinquiriesDeviceInformation.md +9 -9
- package/docs/Riskv1exportcomplianceinquiriesExportComplianceInformation.md +10 -10
- package/docs/Riskv1exportcomplianceinquiriesExportComplianceInformationWeights.md +10 -10
- package/docs/Riskv1exportcomplianceinquiriesOrderInformation.md +10 -10
- package/docs/Riskv1exportcomplianceinquiriesOrderInformationBillTo.md +19 -19
- package/docs/Riskv1exportcomplianceinquiriesOrderInformationBillToCompany.md +8 -8
- package/docs/Riskv1exportcomplianceinquiriesOrderInformationLineItems.md +15 -15
- package/docs/Riskv1exportcomplianceinquiriesOrderInformationShipTo.md +10 -10
- package/docs/Riskv1liststypeentriesBuyerInformation.md +8 -8
- package/docs/Riskv1liststypeentriesClientReferenceInformation.md +10 -10
- package/docs/Riskv1liststypeentriesDeviceInformation.md +9 -9
- package/docs/Riskv1liststypeentriesOrderInformation.md +11 -11
- package/docs/Riskv1liststypeentriesOrderInformationAddress.md +13 -13
- package/docs/Riskv1liststypeentriesOrderInformationBillTo.md +18 -18
- package/docs/Riskv1liststypeentriesOrderInformationLineItems.md +8 -8
- package/docs/Riskv1liststypeentriesOrderInformationShipTo.md +13 -13
- package/docs/Riskv1liststypeentriesPaymentInformation.md +9 -9
- package/docs/Riskv1liststypeentriesPaymentInformationBank.md +11 -11
- package/docs/Riskv1liststypeentriesPaymentInformationCard.md +10 -10
- package/docs/Riskv1liststypeentriesRiskInformation.md +8 -8
- package/docs/Riskv1liststypeentriesRiskInformationMarkingDetails.md +11 -11
- package/docs/SearchRequest.md +11 -11
- package/docs/SearchTransactionsApi.md +102 -102
- package/docs/SecureFileShareApi.md +115 -115
- package/docs/ShippingAddressListForCustomer.md +13 -13
- package/docs/ShippingAddressListForCustomerEmbedded.md +8 -8
- package/docs/ShippingAddressListForCustomerLinks.md +12 -12
- package/docs/ShippingAddressListForCustomerLinksFirst.md +8 -8
- package/docs/ShippingAddressListForCustomerLinksLast.md +8 -8
- package/docs/ShippingAddressListForCustomerLinksNext.md +8 -8
- package/docs/ShippingAddressListForCustomerLinksPrev.md +8 -8
- package/docs/ShippingAddressListForCustomerLinksSelf.md +8 -8
- package/docs/SymmetricKeyManagementApi.md +199 -149
- package/docs/TaxRequest.md +12 -12
- package/docs/TaxesApi.md +105 -105
- package/docs/TmsV2CustomersResponse.md +17 -17
- package/docs/Tmsv2customersBuyerInformation.md +9 -9
- package/docs/Tmsv2customersClientReferenceInformation.md +8 -8
- package/docs/Tmsv2customersDefaultPaymentInstrument.md +8 -8
- package/docs/Tmsv2customersDefaultShippingAddress.md +8 -8
- package/docs/Tmsv2customersEmbedded.md +9 -9
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrument.md +21 -21
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount.md +8 -8
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo.md +18 -18
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation.md +11 -11
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.md +8 -8
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.md +10 -10
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentCard.md +15 -15
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.md +9 -9
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded.md +8 -8
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifier.md +19 -19
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierBankAccount.md +9 -9
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierBillTo.md +13 -13
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierCard.md +11 -11
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierIssuer.md +8 -8
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierLinks.md +9 -9
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierLinksPaymentInstruments.md +8 -8
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierLinksSelf.md +8 -8
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierMetadata.md +8 -8
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierProcessingInformation.md +8 -8
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierProcessingInformationAuthorizationOptions.md +8 -8
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierProcessingInformationAuthorizationOptionsInitiator.md +8 -8
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.md +8 -8
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierTokenizedCard.md +14 -14
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierTokenizedCardCard.md +10 -10
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md +8 -8
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks.md +9 -9
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentLinksSelf.md +8 -8
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation.md +8 -8
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor.md +8 -8
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata.md +8 -8
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentProcessingInformation.md +9 -9
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentProcessingInformationBankTransferOptions.md +8 -8
- package/docs/Tmsv2customersEmbeddedDefaultShippingAddress.md +12 -12
- package/docs/Tmsv2customersEmbeddedDefaultShippingAddressLinks.md +9 -9
- package/docs/Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer.md +8 -8
- package/docs/Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf.md +8 -8
- package/docs/Tmsv2customersEmbeddedDefaultShippingAddressMetadata.md +8 -8
- package/docs/Tmsv2customersEmbeddedDefaultShippingAddressShipTo.md +18 -18
- package/docs/Tmsv2customersLinks.md +10 -10
- package/docs/Tmsv2customersLinksPaymentInstruments.md +8 -8
- package/docs/Tmsv2customersLinksSelf.md +8 -8
- package/docs/Tmsv2customersLinksShippingAddress.md +8 -8
- package/docs/Tmsv2customersMerchantDefinedInformation.md +9 -9
- package/docs/Tmsv2customersMetadata.md +8 -8
- package/docs/Tmsv2customersObjectInformation.md +9 -9
- package/docs/TokenizationApi.md +55 -55
- package/docs/TokenizeRequest.md +9 -9
- package/docs/TransactionBatchesApi.md +158 -158
- package/docs/TransactionDetailsApi.md +55 -55
- package/docs/TssV2TransactionsGet200Response.md +33 -32
- package/docs/TssV2TransactionsGet200ResponseApplicationInformation.md +12 -12
- package/docs/TssV2TransactionsGet200ResponseApplicationInformationApplications.md +15 -15
- package/docs/TssV2TransactionsGet200ResponseBuyerInformation.md +9 -9
- package/docs/TssV2TransactionsGet200ResponseClientReferenceInformation.md +13 -13
- package/docs/TssV2TransactionsGet200ResponseClientReferenceInformationPartner.md +8 -8
- package/docs/TssV2TransactionsGet200ResponseConsumerAuthenticationInformation.md +12 -12
- package/docs/TssV2TransactionsGet200ResponseConsumerAuthenticationInformationStrongAuthentication.md +12 -12
- package/docs/TssV2TransactionsGet200ResponseDeviceInformation.md +10 -10
- package/docs/TssV2TransactionsGet200ResponseErrorInformation.md +10 -10
- package/docs/TssV2TransactionsGet200ResponseFraudMarkingInformation.md +8 -8
- package/docs/TssV2TransactionsGet200ResponseInstallmentInformation.md +9 -9
- package/docs/TssV2TransactionsGet200ResponseLinks.md +9 -9
- package/docs/TssV2TransactionsGet200ResponseMerchantInformation.md +8 -8
- package/docs/TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor.md +8 -8
- package/docs/TssV2TransactionsGet200ResponseOrderInformation.md +13 -13
- package/docs/TssV2TransactionsGet200ResponseOrderInformationAmountDetails.md +14 -14
- package/docs/TssV2TransactionsGet200ResponseOrderInformationBillTo.md +21 -21
- package/docs/TssV2TransactionsGet200ResponseOrderInformationInvoiceDetails.md +8 -8
- package/docs/TssV2TransactionsGet200ResponseOrderInformationLineItems.md +14 -14
- package/docs/TssV2TransactionsGet200ResponseOrderInformationShipTo.md +17 -17
- package/docs/TssV2TransactionsGet200ResponseOrderInformationShippingDetails.md +9 -9
- package/docs/TssV2TransactionsGet200ResponsePaymentInformation.md +16 -16
- package/docs/TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures.md +10 -10
- package/docs/TssV2TransactionsGet200ResponsePaymentInformationBank.md +14 -14
- package/docs/TssV2TransactionsGet200ResponsePaymentInformationBankAccount.md +14 -14
- package/docs/TssV2TransactionsGet200ResponsePaymentInformationBankMandate.md +10 -10
- package/docs/TssV2TransactionsGet200ResponsePaymentInformationCard.md +17 -17
- package/docs/TssV2TransactionsGet200ResponsePaymentInformationCustomer.md +9 -9
- package/docs/TssV2TransactionsGet200ResponsePaymentInformationInstrumentIdentifier.md +8 -8
- package/docs/TssV2TransactionsGet200ResponsePaymentInformationInvoice.md +10 -10
- package/docs/TssV2TransactionsGet200ResponsePaymentInformationPaymentType.md +10 -10
- package/docs/TssV2TransactionsGet200ResponsePointOfSaleInformation.md +11 -11
- package/docs/TssV2TransactionsGet200ResponseProcessingInformation.md +14 -14
- package/docs/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions.md +9 -9
- package/docs/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptionsInitiator.md +11 -0
- package/docs/TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions.md +8 -8
- package/docs/TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions.md +11 -11
- package/docs/TssV2TransactionsGet200ResponseProcessorInformation.md +22 -22
- package/docs/TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.md +17 -17
- package/docs/TssV2TransactionsGet200ResponseProcessorInformationMultiProcessorRouting.md +11 -11
- package/docs/TssV2TransactionsGet200ResponseProcessorInformationProcessor.md +8 -8
- package/docs/TssV2TransactionsGet200ResponseRiskInformation.md +13 -13
- package/docs/TssV2TransactionsGet200ResponseRiskInformationProfile.md +9 -9
- package/docs/TssV2TransactionsGet200ResponseRiskInformationRules.md +9 -9
- package/docs/TssV2TransactionsGet200ResponseRiskInformationScore.md +9 -9
- package/docs/TssV2TransactionsGet200ResponseSenderInformation.md +8 -8
- package/docs/TssV2TransactionsGet200ResponseTokenInformation.md +11 -11
- package/docs/TssV2TransactionsPost201Response.md +21 -21
- package/docs/TssV2TransactionsPost201ResponseEmbedded.md +8 -8
- package/docs/TssV2TransactionsPost201ResponseEmbeddedApplicationInformation.md +12 -12
- package/docs/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.md +14 -14
- package/docs/TssV2TransactionsPost201ResponseEmbeddedBuyerInformation.md +8 -8
- package/docs/TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation.md +11 -11
- package/docs/TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation.md +10 -10
- package/docs/TssV2TransactionsPost201ResponseEmbeddedLinks.md +8 -8
- package/docs/TssV2TransactionsPost201ResponseEmbeddedMerchantInformation.md +8 -8
- package/docs/TssV2TransactionsPost201ResponseEmbeddedOrderInformation.md +10 -10
- package/docs/TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo.md +13 -13
- package/docs/TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo.md +12 -12
- package/docs/TssV2TransactionsPost201ResponseEmbeddedPaymentInformation.md +11 -10
- package/docs/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBank.md +8 -0
- package/docs/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBankAccount.md +9 -0
- package/docs/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard.md +10 -10
- package/docs/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCustomer.md +8 -0
- package/docs/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentType.md +9 -9
- package/docs/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation.md +11 -11
- package/docs/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner.md +8 -8
- package/docs/TssV2TransactionsPost201ResponseEmbeddedProcessingInformation.md +10 -10
- package/docs/TssV2TransactionsPost201ResponseEmbeddedProcessorInformation.md +9 -9
- package/docs/TssV2TransactionsPost201ResponseEmbeddedRiskInformation.md +8 -8
- package/docs/TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders.md +8 -8
- package/docs/TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint.md +10 -10
- package/docs/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.md +25 -25
- package/docs/TssV2TransactionsPost400Response.md +11 -11
- package/docs/UmsV1UsersGet200Response.md +8 -8
- package/docs/UmsV1UsersGet200ResponseAccountInformation.md +15 -15
- package/docs/UmsV1UsersGet200ResponseContactInformation.md +11 -11
- package/docs/UmsV1UsersGet200ResponseOrganizationInformation.md +8 -8
- package/docs/UmsV1UsersGet200ResponseUsers.md +10 -10
- package/docs/UnauthorizedClientError.md +9 -9
- package/docs/UpdateInvoiceRequest.md +10 -10
- package/docs/UserManagementApi.md +62 -62
- package/docs/UserManagementSearchApi.md +55 -55
- package/docs/V1FileDetailsGet200Response.md +9 -9
- package/docs/V1FileDetailsGet200ResponseFileDetails.md +14 -14
- package/docs/V1FileDetailsGet200ResponseLinks.md +9 -9
- package/docs/V1FileDetailsGet200ResponseLinksFiles.md +10 -10
- package/docs/V1FileDetailsGet200ResponseLinksSelf.md +9 -9
- package/docs/ValidateExportComplianceRequest.md +12 -12
- package/docs/ValidateRequest.md +13 -12
- package/docs/VasV2PaymentsPost201Response.md +14 -14
- package/docs/VasV2PaymentsPost201ResponseLinks.md +8 -8
- package/docs/VasV2PaymentsPost201ResponseOrderInformation.md +13 -13
- package/docs/VasV2PaymentsPost201ResponseOrderInformationJurisdiction.md +16 -16
- package/docs/VasV2PaymentsPost201ResponseOrderInformationLineItems.md +12 -12
- package/docs/VasV2PaymentsPost201ResponseOrderInformationTaxDetails.md +9 -9
- package/docs/VasV2PaymentsPost201ResponseTaxInformation.md +9 -9
- package/docs/VasV2PaymentsPost400Response.md +12 -12
- package/docs/VasV2TaxVoid200Response.md +12 -12
- package/docs/VasV2TaxVoid200ResponseVoidAmountDetails.md +9 -9
- package/docs/VasV2TaxVoidsPost400Response.md +12 -12
- package/docs/Vasv2taxBuyerInformation.md +8 -8
- package/docs/Vasv2taxClientReferenceInformation.md +10 -10
- package/docs/Vasv2taxMerchantInformation.md +8 -8
- package/docs/Vasv2taxOrderInformation.md +15 -15
- package/docs/Vasv2taxOrderInformationBillTo.md +13 -13
- package/docs/Vasv2taxOrderInformationInvoiceDetails.md +8 -8
- package/docs/Vasv2taxOrderInformationLineItems.md +21 -21
- package/docs/Vasv2taxOrderInformationOrderAcceptance.md +11 -11
- package/docs/Vasv2taxOrderInformationOrderOrigin.md +11 -11
- package/docs/Vasv2taxOrderInformationShipTo.md +14 -14
- package/docs/Vasv2taxOrderInformationShippingDetails.md +11 -11
- package/docs/Vasv2taxTaxInformation.md +14 -14
- package/docs/Vasv2taxidClientReferenceInformation.md +10 -10
- package/docs/Vasv2taxidClientReferenceInformationPartner.md +9 -9
- package/docs/VerificationApi.md +102 -102
- package/docs/VerifyCustomerAddressRequest.md +10 -10
- package/docs/VoidApi.md +255 -255
- package/docs/VoidCaptureRequest.md +10 -9
- package/docs/VoidCreditRequest.md +10 -9
- package/docs/VoidPaymentRequest.md +10 -9
- package/docs/VoidRefundRequest.md +10 -9
- package/docs/VoidTaxRequest.md +8 -8
- package/license.txt +57 -57
- package/package.json +40 -39
- package/src/ApiClient.js +769 -769
- package/src/api/AsymmetricKeyManagementApi.js +193 -190
- package/src/api/CaptureApi.js +106 -106
- package/src/api/ChargebackDetailsApi.js +114 -111
- package/src/api/ChargebackSummariesApi.js +114 -111
- package/src/api/ConversionDetailsApi.js +114 -111
- package/src/api/CreditApi.js +99 -99
- package/src/api/CustomerApi.js +262 -256
- package/src/api/CustomerPaymentInstrumentApi.js +347 -338
- package/src/api/CustomerShippingAddressApi.js +347 -338
- package/src/api/DecisionManagerApi.js +203 -203
- package/src/api/DownloadDTDApi.js +102 -99
- package/src/api/DownloadXSDApi.js +102 -99
- package/src/api/InstrumentIdentifierApi.js +372 -363
- package/src/api/InterchangeClearingLevelDetailsApi.js +114 -111
- package/src/api/InvoiceSettingsApi.js +141 -138
- package/src/api/InvoicesApi.js +358 -346
- package/src/api/KeyGenerationApi.js +106 -106
- package/src/api/NetFundingsApi.js +116 -113
- package/src/api/NotificationOfChangesApi.js +110 -107
- package/src/api/OAuthApi.js +103 -103
- package/src/api/PayerAuthenticationApi.js +189 -189
- package/src/api/PaymentBatchSummariesApi.js +120 -117
- package/src/api/PaymentInstrumentApi.js +263 -257
- package/src/api/PaymentsApi.js +151 -151
- package/src/api/PayoutsApi.js +99 -99
- package/src/api/PurchaseAndRefundDetailsApi.js +124 -121
- package/src/api/RefundApi.js +158 -158
- package/src/api/ReportDefinitionsApi.js +159 -153
- package/src/api/ReportDownloadsApi.js +113 -110
- package/src/api/ReportSubscriptionsApi.js +301 -292
- package/src/api/ReportsApi.js +232 -226
- package/src/api/RetrievalDetailsApi.js +114 -111
- package/src/api/RetrievalSummariesApi.js +114 -111
- package/src/api/ReversalApi.js +151 -151
- package/src/api/SearchTransactionsApi.js +148 -145
- package/src/api/SecureFileShareApi.js +8 -2
- package/src/api/SymmetricKeyManagementApi.js +245 -190
- package/src/api/TaxesApi.js +151 -151
- package/src/api/TokenizationApi.js +99 -99
- package/src/api/TransactionBatchesApi.js +213 -204
- package/src/api/TransactionDetailsApi.js +103 -100
- package/src/api/UserManagementApi.js +106 -103
- package/src/api/UserManagementSearchApi.js +99 -99
- package/src/api/VerificationApi.js +144 -144
- package/src/api/VoidApi.js +307 -307
- package/src/authentication/core/Authorization.js +34 -34
- package/src/authentication/core/MerchantConfig.js +532 -532
- package/src/authentication/http/HTTPSigToken.js +55 -55
- package/src/authentication/http/SignatureParameterGenerator.js +81 -81
- package/src/authentication/jwt/JWTSigToken.js +54 -54
- package/src/authentication/jwt/KeyCertificateGenerator.js +50 -50
- package/src/authentication/logging/LogConfiguration.js +155 -155
- package/src/authentication/logging/Logger.js +71 -71
- package/src/authentication/logging/SensitiveDataMasker.js +25 -25
- package/src/authentication/logging/SensitiveDataTags.js +38 -36
- package/src/authentication/oauth/OAuthToken.js +16 -16
- package/src/authentication/payloadDigest/DigestGenerator.js +20 -20
- package/src/authentication/util/ApiException.js +14 -14
- package/src/authentication/util/Cache.js +58 -58
- package/src/authentication/util/Constants.js +102 -102
- package/src/authentication/util/PropertiesUtil.js +47 -47
- package/src/authentication/util/Utility.js +44 -44
- package/src/index.js +3977 -3917
- package/src/model/AccessTokenResponse.js +136 -136
- package/src/model/AddNegativeListRequest.js +121 -121
- package/src/model/AuthReversalRequest.js +113 -113
- package/src/model/BadRequestError.js +89 -89
- package/src/model/CapturePaymentRequest.js +178 -178
- package/src/model/CheckPayerAuthEnrollmentRequest.js +185 -185
- package/src/model/CreateAccessTokenRequest.js +120 -120
- package/src/model/CreateAdhocReportRequest.js +169 -169
- package/src/model/CreateBundledDecisionManagerCaseRequest.js +186 -186
- package/src/model/CreateCreditRequest.js +178 -178
- package/src/model/CreateInvoiceRequest.js +97 -97
- package/src/model/CreateP12KeysRequest.js +89 -89
- package/src/model/CreatePaymentRequest.js +258 -258
- package/src/model/CreateReportSubscriptionRequest.js +193 -193
- package/src/model/CreateSearchRequest.js +136 -136
- package/src/model/CreateSharedSecretKeysRequest.js +89 -89
- package/src/model/CreateSharedSecretKeysVerifiRequest.js +89 -0
- package/src/model/DeleteBulkP12KeysRequest.js +89 -89
- package/src/model/DeleteBulkSymmetricKeysRequest.js +89 -89
- package/src/model/FlexV1KeysPost200Response.js +98 -98
- package/src/model/FlexV1KeysPost200ResponseDer.js +101 -101
- package/src/model/FlexV1KeysPost200ResponseJwk.js +119 -119
- package/src/model/FlexV1TokensPost200Response.js +144 -144
- package/src/model/Flexv1tokensCardInfo.js +111 -111
- package/src/model/FraudMarkingActionRequest.js +90 -90
- package/src/model/GeneratePublicKeyRequest.js +92 -92
- package/src/model/IncrementAuthRequest.js +113 -113
- package/src/model/InlineResponse400.js +81 -81
- package/src/model/InlineResponse4001.js +130 -130
- package/src/model/InlineResponse4001Fields.js +101 -101
- package/src/model/InlineResponse4002.js +109 -109
- package/src/model/InlineResponse400Details.js +91 -91
- package/src/model/InlineResponse400Errors.js +99 -99
- package/src/model/InlineResponseDefault.js +89 -89
- package/src/model/InlineResponseDefaultLinks.js +97 -97
- package/src/model/InlineResponseDefaultLinksNext.js +100 -100
- package/src/model/InlineResponseDefaultResponseStatus.js +117 -117
- package/src/model/InlineResponseDefaultResponseStatusDetails.js +91 -91
- package/src/model/InvoiceSettingsRequest.js +81 -81
- package/src/model/InvoicingV2InvoiceSettingsGet200Response.js +90 -90
- package/src/model/InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformation.js +144 -144
- package/src/model/InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformationHeaderStyle.js +91 -91
- package/src/model/InvoicingV2InvoicesAllGet200Response.js +106 -106
- package/src/model/InvoicingV2InvoicesAllGet200ResponseCustomerInformation.js +91 -91
- package/src/model/InvoicingV2InvoicesAllGet200ResponseInvoiceInformation.js +82 -82
- package/src/model/InvoicingV2InvoicesAllGet200ResponseInvoices.js +124 -124
- package/src/model/InvoicingV2InvoicesAllGet200ResponseLinks.js +97 -97
- package/src/model/InvoicingV2InvoicesAllGet200ResponseLinks1.js +105 -105
- package/src/model/InvoicingV2InvoicesAllGet200ResponseOrderInformation.js +81 -81
- package/src/model/InvoicingV2InvoicesAllGet200ResponseOrderInformationAmountDetails.js +92 -92
- package/src/model/InvoicingV2InvoicesAllGet400Response.js +117 -117
- package/src/model/InvoicingV2InvoicesAllGet404Response.js +117 -117
- package/src/model/InvoicingV2InvoicesAllGet502Response.js +109 -109
- package/src/model/InvoicingV2InvoicesGet200Response.js +140 -140
- package/src/model/InvoicingV2InvoicesGet200ResponseInvoiceHistory.js +99 -99
- package/src/model/InvoicingV2InvoicesGet200ResponseTransactionDetails.js +92 -92
- package/src/model/InvoicingV2InvoicesPost201Response.js +132 -132
- package/src/model/InvoicingV2InvoicesPost201ResponseInvoiceInformation.js +128 -128
- package/src/model/InvoicingV2InvoicesPost201ResponseOrderInformation.js +90 -90
- package/src/model/InvoicingV2InvoicesPost201ResponseOrderInformationAmountDetails.js +153 -153
- package/src/model/InvoicingV2InvoicesPost202Response.js +117 -117
- package/src/model/Invoicingv2invoiceSettingsInvoiceSettingsInformation.js +144 -144
- package/src/model/Invoicingv2invoicesCustomerInformation.js +101 -101
- package/src/model/Invoicingv2invoicesInvoiceInformation.js +128 -128
- package/src/model/Invoicingv2invoicesOrderInformation.js +90 -90
- package/src/model/Invoicingv2invoicesOrderInformationAmountDetails.js +144 -144
- package/src/model/Invoicingv2invoicesOrderInformationAmountDetailsFreight.js +92 -92
- package/src/model/Invoicingv2invoicesOrderInformationAmountDetailsTaxDetails.js +101 -101
- package/src/model/Invoicingv2invoicesOrderInformationLineItems.js +110 -110
- package/src/model/Invoicingv2invoicesidInvoiceInformation.js +110 -110
- package/src/model/KmsV2KeysAsymDeletesPost200Response.js +98 -98
- package/src/model/KmsV2KeysAsymDeletesPost200ResponseKeyInformation.js +127 -127
- package/src/model/KmsV2KeysAsymGet200Response.js +90 -90
- package/src/model/KmsV2KeysAsymGet200ResponseKeyInformation.js +145 -145
- package/src/model/KmsV2KeysAsymPost201Response.js +115 -115
- package/src/model/KmsV2KeysAsymPost201ResponseCertificateInformation.js +109 -109
- package/src/model/KmsV2KeysAsymPost201ResponseKeyInformation.js +154 -154
- package/src/model/KmsV2KeysSymDeletesPost200Response.js +107 -107
- package/src/model/KmsV2KeysSymDeletesPost200ResponseKeyInformation.js +118 -118
- package/src/model/KmsV2KeysSymGet200Response.js +99 -99
- package/src/model/KmsV2KeysSymGet200ResponseKeyInformation.js +127 -127
- package/src/model/KmsV2KeysSymPost201Response.js +107 -107
- package/src/model/KmsV2KeysSymPost201ResponseErrorInformation.js +90 -90
- package/src/model/KmsV2KeysSymPost201ResponseKeyInformation.js +145 -145
- package/src/model/Kmsv2keysasymKeyInformation.js +103 -103
- package/src/model/Kmsv2keyssymClientReferenceInformation.js +99 -99
- package/src/model/Kmsv2keyssymKeyInformation.js +93 -93
- package/src/model/Kmsv2keyssymdeletesKeyInformation.js +103 -103
- package/src/model/Kmsv2keyssymverifiKeyInformation.js +120 -0
- package/src/model/MitReversalRequest.js +113 -113
- package/src/model/MitVoidRequest.js +89 -89
- package/src/model/OctCreatePaymentRequest.js +129 -129
- package/src/model/PatchCustomerPaymentInstrumentRequest.js +189 -189
- package/src/model/PatchCustomerRequest.js +155 -155
- package/src/model/PatchCustomerShippingAddressRequest.js +115 -115
- package/src/model/PatchInstrumentIdentifierRequest.js +173 -173
- package/src/model/PatchPaymentInstrumentRequest.js +189 -189
- package/src/model/PayerAuthSetupRequest.js +105 -105
- package/src/model/PaymentInstrumentList.js +125 -125
- package/src/model/PaymentInstrumentListEmbedded.js +82 -82
- package/src/model/PaymentInstrumentListLinks.js +113 -113
- package/src/model/PaymentInstrumentListLinksFirst.js +82 -82
- package/src/model/PaymentInstrumentListLinksLast.js +82 -82
- package/src/model/PaymentInstrumentListLinksNext.js +82 -82
- package/src/model/PaymentInstrumentListLinksPrev.js +82 -82
- package/src/model/PaymentInstrumentListLinksSelf.js +82 -82
- package/src/model/PostCustomerPaymentInstrumentRequest.js +189 -189
- package/src/model/PostCustomerRequest.js +155 -155
- package/src/model/PostCustomerShippingAddressRequest.js +115 -115
- package/src/model/PostInstrumentIdentifierEnrollmentRequest.js +173 -173
- package/src/model/PostInstrumentIdentifierRequest.js +173 -173
- package/src/model/PostPaymentInstrumentRequest.js +189 -189
- package/src/model/PredefinedSubscriptionRequestBean.js +164 -164
- package/src/model/PtsV1TransactionBatchesGet200Response.js +98 -98
- package/src/model/PtsV1TransactionBatchesGet200ResponseLinks.js +81 -81
- package/src/model/PtsV1TransactionBatchesGet200ResponseLinksSelf.js +89 -89
- package/src/model/PtsV1TransactionBatchesGet200ResponseTransactionBatches.js +136 -136
- package/src/model/PtsV1TransactionBatchesGet400Response.js +90 -90
- package/src/model/PtsV1TransactionBatchesGet400ResponseErrorInformation.js +97 -97
- package/src/model/PtsV1TransactionBatchesGet400ResponseErrorInformationDetails.js +91 -91
- package/src/model/PtsV1TransactionBatchesGet500Response.js +90 -90
- package/src/model/PtsV1TransactionBatchesGet500ResponseErrorInformation.js +91 -91
- package/src/model/PtsV1TransactionBatchesIdGet200Response.js +144 -144
- package/src/model/PtsV1TransactionBatchesIdGet200ResponseLinks.js +81 -81
- package/src/model/PtsV1TransactionBatchesIdGet200ResponseLinksTransactions.js +90 -90
- package/src/model/PtsV2CreditsPost201Response.js +173 -173
- package/src/model/PtsV2CreditsPost201ResponseCreditAmountDetails.js +91 -91
- package/src/model/PtsV2CreditsPost201ResponsePaymentInformation.js +113 -113
- package/src/model/PtsV2CreditsPost201ResponseProcessingInformation.js +90 -90
- package/src/model/PtsV2CreditsPost201ResponseProcessingInformationBankTransferOptions.js +82 -82
- package/src/model/PtsV2IncrementalAuthorizationPatch201Response.js +157 -157
- package/src/model/PtsV2IncrementalAuthorizationPatch201ResponseClientReferenceInformation.js +82 -82
- package/src/model/PtsV2IncrementalAuthorizationPatch201ResponseErrorInformation.js +99 -99
- package/src/model/PtsV2IncrementalAuthorizationPatch201ResponseLinks.js +81 -81
- package/src/model/PtsV2IncrementalAuthorizationPatch201ResponseOrderInformation.js +81 -81
- package/src/model/PtsV2IncrementalAuthorizationPatch201ResponsePaymentInformation.js +81 -81
- package/src/model/PtsV2IncrementalAuthorizationPatch201ResponsePaymentInformationAccountFeatures.js +82 -82
- package/src/model/PtsV2IncrementalAuthorizationPatch201ResponseProcessorInformation.js +126 -126
- package/src/model/PtsV2IncrementalAuthorizationPatch400Response.js +117 -117
- package/src/model/PtsV2PaymentsCapturesPost201Response.js +157 -157
- package/src/model/PtsV2PaymentsCapturesPost201ResponseLinks.js +97 -97
- package/src/model/PtsV2PaymentsCapturesPost201ResponseOrderInformation.js +89 -89
- package/src/model/PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails.js +100 -100
- package/src/model/PtsV2PaymentsCapturesPost201ResponseOrderInformationInvoiceDetails.js +82 -82
- package/src/model/PtsV2PaymentsCapturesPost201ResponsePointOfSaleInformation.js +82 -82
- package/src/model/PtsV2PaymentsCapturesPost201ResponseProcessingInformation.js +82 -82
- package/src/model/PtsV2PaymentsCapturesPost201ResponseProcessorInformation.js +82 -82
- package/src/model/PtsV2PaymentsCapturesPost400Response.js +117 -117
- package/src/model/PtsV2PaymentsPost201Response.js +237 -229
- package/src/model/PtsV2PaymentsPost201ResponseBuyerInformation.js +117 -117
- package/src/model/PtsV2PaymentsPost201ResponseClientReferenceInformation.js +100 -100
- package/src/model/PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation.js +449 -449
- package/src/model/PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationIvr.js +136 -136
- package/src/model/PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationStrongAuthentication.js +81 -81
- package/src/model/PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationStrongAuthenticationIssuerInformation.js +91 -91
- package/src/model/PtsV2PaymentsPost201ResponseErrorInformation.js +99 -99
- package/src/model/PtsV2PaymentsPost201ResponseErrorInformationDetails.js +91 -91
- package/src/model/PtsV2PaymentsPost201ResponseInstallmentInformation.js +307 -307
- package/src/model/PtsV2PaymentsPost201ResponseIssuerInformation.js +118 -109
- package/src/model/PtsV2PaymentsPost201ResponseLinks.js +129 -129
- package/src/model/PtsV2PaymentsPost201ResponseLinksSelf.js +91 -91
- package/src/model/PtsV2PaymentsPost201ResponseOrderInformation.js +97 -97
- package/src/model/PtsV2PaymentsPost201ResponseOrderInformationAmountDetails.js +100 -100
- package/src/model/PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails.js +91 -91
- package/src/model/PtsV2PaymentsPost201ResponseOrderInformationRewardPointsDetails.js +127 -127
- package/src/model/PtsV2PaymentsPost201ResponsePaymentAccountInformation.js +81 -81
- package/src/model/PtsV2PaymentsPost201ResponsePaymentAccountInformationCard.js +127 -118
- package/src/model/PtsV2PaymentsPost201ResponsePaymentInformation.js +182 -182
- package/src/model/PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures.js +235 -235
- package/src/model/PtsV2PaymentsPost201ResponsePaymentInformationAccountFeaturesBalances.js +109 -109
- package/src/model/PtsV2PaymentsPost201ResponsePaymentInformationBank.js +90 -90
- package/src/model/PtsV2PaymentsPost201ResponsePaymentInformationBankAccount.js +82 -82
- package/src/model/PtsV2PaymentsPost201ResponsePaymentInformationInstrumentIdentifier.js +91 -91
- package/src/model/PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard.js +136 -136
- package/src/model/PtsV2PaymentsPost201ResponsePaymentInsightsInformation.js +81 -0
- package/src/model/PtsV2PaymentsPost201ResponsePaymentInsightsInformationResponseInsights.js +91 -0
- package/src/model/PtsV2PaymentsPost201ResponsePointOfSaleInformation.js +99 -99
- package/src/model/PtsV2PaymentsPost201ResponsePointOfSaleInformationEmv.js +100 -100
- package/src/model/PtsV2PaymentsPost201ResponseProcessingInformation.js +99 -99
- package/src/model/PtsV2PaymentsPost201ResponseProcessingInformationBankTransferOptions.js +91 -91
- package/src/model/PtsV2PaymentsPost201ResponseProcessorInformation.js +335 -335
- package/src/model/PtsV2PaymentsPost201ResponseProcessorInformationAchVerification.js +91 -91
- package/src/model/PtsV2PaymentsPost201ResponseProcessorInformationAvs.js +91 -91
- package/src/model/PtsV2PaymentsPost201ResponseProcessorInformationCardVerification.js +91 -91
- package/src/model/PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse.js +91 -91
- package/src/model/PtsV2PaymentsPost201ResponseProcessorInformationCustomer.js +82 -82
- package/src/model/PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults.js +181 -181
- package/src/model/PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice.js +100 -91
- package/src/model/PtsV2PaymentsPost201ResponseProcessorInformationRouting.js +100 -100
- package/src/model/PtsV2PaymentsPost201ResponseRiskInformation.js +156 -156
- package/src/model/PtsV2PaymentsPost201ResponseRiskInformationInfoCodes.js +154 -154
- package/src/model/PtsV2PaymentsPost201ResponseRiskInformationIpAddress.js +137 -137
- package/src/model/PtsV2PaymentsPost201ResponseRiskInformationProfile.js +100 -100
- package/src/model/PtsV2PaymentsPost201ResponseRiskInformationProviders.js +81 -81
- package/src/model/PtsV2PaymentsPost201ResponseRiskInformationProvidersProviderName.js +90 -90
- package/src/model/PtsV2PaymentsPost201ResponseRiskInformationRules.js +91 -91
- package/src/model/PtsV2PaymentsPost201ResponseRiskInformationScore.js +99 -99
- package/src/model/PtsV2PaymentsPost201ResponseRiskInformationTravel.js +105 -105
- package/src/model/PtsV2PaymentsPost201ResponseRiskInformationTravelActualFinalDestination.js +109 -109
- package/src/model/PtsV2PaymentsPost201ResponseRiskInformationTravelFirstDeparture.js +109 -109
- package/src/model/PtsV2PaymentsPost201ResponseRiskInformationTravelFirstDestination.js +109 -109
- package/src/model/PtsV2PaymentsPost201ResponseRiskInformationTravelLastDestination.js +109 -109
- package/src/model/PtsV2PaymentsPost201ResponseRiskInformationVelocity.js +90 -90
- package/src/model/PtsV2PaymentsPost201ResponseRiskInformationVelocityMorphing.js +100 -100
- package/src/model/PtsV2PaymentsPost201ResponseTokenInformation.js +114 -114
- package/src/model/PtsV2PaymentsPost201ResponseTokenInformationCustomer.js +82 -82
- package/src/model/PtsV2PaymentsPost201ResponseTokenInformationInstrumentIdentifier.js +91 -91
- package/src/model/PtsV2PaymentsPost201ResponseTokenInformationPaymentInstrument.js +82 -82
- package/src/model/PtsV2PaymentsPost201ResponseTokenInformationShippingAddress.js +82 -82
- package/src/model/PtsV2PaymentsPost400Response.js +117 -117
- package/src/model/PtsV2PaymentsPost502Response.js +109 -109
- package/src/model/PtsV2PaymentsRefundPost201Response.js +157 -157
- package/src/model/PtsV2PaymentsRefundPost201ResponseLinks.js +89 -89
- package/src/model/PtsV2PaymentsRefundPost201ResponseOrderInformation.js +81 -81
- package/src/model/PtsV2PaymentsRefundPost201ResponseProcessorInformation.js +126 -126
- package/src/model/PtsV2PaymentsRefundPost201ResponseRefundAmountDetails.js +91 -91
- package/src/model/PtsV2PaymentsRefundPost400Response.js +117 -117
- package/src/model/PtsV2PaymentsReversalsPost201Response.js +165 -165
- package/src/model/PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation.js +100 -100
- package/src/model/PtsV2PaymentsReversalsPost201ResponseIssuerInformation.js +82 -82
- package/src/model/PtsV2PaymentsReversalsPost201ResponseProcessorInformation.js +127 -127
- package/src/model/PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails.js +100 -100
- package/src/model/PtsV2PaymentsReversalsPost400Response.js +117 -117
- package/src/model/PtsV2PaymentsVoidsPost201Response.js +132 -132
- package/src/model/PtsV2PaymentsVoidsPost201ResponseProcessorInformation.js +82 -82
- package/src/model/PtsV2PaymentsVoidsPost201ResponseVoidAmountDetails.js +100 -100
- package/src/model/PtsV2PaymentsVoidsPost400Response.js +117 -117
- package/src/model/PtsV2PayoutsPost201Response.js +165 -165
- package/src/model/PtsV2PayoutsPost201ResponseErrorInformation.js +99 -99
- package/src/model/PtsV2PayoutsPost201ResponseMerchantInformation.js +81 -81
- package/src/model/PtsV2PayoutsPost201ResponseMerchantInformationMerchantDescriptor.js +100 -100
- package/src/model/PtsV2PayoutsPost201ResponseOrderInformation.js +81 -81
- package/src/model/PtsV2PayoutsPost201ResponseOrderInformationAmountDetails.js +109 -109
- package/src/model/PtsV2PayoutsPost201ResponseProcessorInformation.js +118 -118
- package/src/model/PtsV2PayoutsPost201ResponseRecipientInformation.js +81 -81
- package/src/model/PtsV2PayoutsPost201ResponseRecipientInformationCard.js +91 -91
- package/src/model/PtsV2PayoutsPost400Response.js +117 -117
- package/src/model/Ptsv2creditsInstallmentInformation.js +82 -82
- package/src/model/Ptsv2creditsProcessingInformation.js +229 -229
- package/src/model/Ptsv2creditsProcessingInformationBankTransferOptions.js +136 -136
- package/src/model/Ptsv2creditsProcessingInformationElectronicBenefitsTransfer.js +82 -82
- package/src/model/Ptsv2creditsProcessingInformationJapanPaymentOptions.js +91 -91
- package/src/model/Ptsv2creditsProcessingInformationPurchaseOptions.js +82 -82
- package/src/model/Ptsv2paymentsAcquirerInformation.js +109 -109
- package/src/model/Ptsv2paymentsAggregatorInformation.js +99 -99
- package/src/model/Ptsv2paymentsAggregatorInformationSubMerchant.js +172 -172
- package/src/model/Ptsv2paymentsBuyerInformation.js +153 -153
- package/src/model/Ptsv2paymentsBuyerInformationPersonalIdentification.js +109 -109
- package/src/model/Ptsv2paymentsClientReferenceInformation.js +153 -153
- package/src/model/Ptsv2paymentsClientReferenceInformationPartner.js +109 -109
- package/src/model/Ptsv2paymentsConsumerAuthenticationInformation.js +576 -576
- package/src/model/Ptsv2paymentsConsumerAuthenticationInformationStrongAuthentication.js +136 -136
- package/src/model/Ptsv2paymentsDeviceInformation.js +234 -234
- package/src/model/Ptsv2paymentsDeviceInformationRawData.js +91 -91
- package/src/model/Ptsv2paymentsHealthCareInformation.js +82 -82
- package/src/model/Ptsv2paymentsHealthCareInformationAmountDetails.js +91 -91
- package/src/model/Ptsv2paymentsInstallmentInformation.js +208 -208
- package/src/model/Ptsv2paymentsInvoiceDetails.js +83 -83
- package/src/model/Ptsv2paymentsIssuerInformation.js +82 -82
- package/src/model/Ptsv2paymentsMerchantDefinedInformation.js +91 -91
- package/src/model/Ptsv2paymentsMerchantInformation.js +197 -197
- package/src/model/Ptsv2paymentsMerchantInformationMerchantDescriptor.js +172 -163
- package/src/model/Ptsv2paymentsMerchantInformationServiceFeeDescriptor.js +100 -100
- package/src/model/Ptsv2paymentsOrderInformation.js +175 -166
- package/src/model/Ptsv2paymentsOrderInformationAmountDetails.js +303 -303
- package/src/model/Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts.js +91 -91
- package/src/model/Ptsv2paymentsOrderInformationAmountDetailsCurrencyConversion.js +100 -100
- package/src/model/Ptsv2paymentsOrderInformationAmountDetailsSurcharge.js +91 -91
- package/src/model/Ptsv2paymentsOrderInformationAmountDetailsTaxDetails.js +136 -136
- package/src/model/Ptsv2paymentsOrderInformationBillTo.js +252 -252
- package/src/model/Ptsv2paymentsOrderInformationBillToCompany.js +136 -136
- package/src/model/Ptsv2paymentsOrderInformationInvoiceDetails.js +225 -216
- package/src/model/Ptsv2paymentsOrderInformationInvoiceDetailsTransactionAdviceAddendum.js +82 -82
- package/src/model/Ptsv2paymentsOrderInformationLineItems.js +350 -350
- package/src/model/Ptsv2paymentsOrderInformationPassenger.js +146 -146
- package/src/model/Ptsv2paymentsOrderInformationShipTo.js +226 -226
- package/src/model/Ptsv2paymentsOrderInformationShippingDetails.js +101 -101
- package/src/model/Ptsv2paymentsPaymentInformation.js +170 -170
- package/src/model/Ptsv2paymentsPaymentInformationBank.js +108 -108
- package/src/model/Ptsv2paymentsPaymentInformationBankAccount.js +118 -118
- package/src/model/Ptsv2paymentsPaymentInformationCard.js +208 -199
- package/src/model/Ptsv2paymentsPaymentInformationCustomer.js +91 -91
- package/src/model/Ptsv2paymentsPaymentInformationEWallet.js +82 -82
- package/src/model/Ptsv2paymentsPaymentInformationFluidData.js +109 -109
- package/src/model/Ptsv2paymentsPaymentInformationInstrumentIdentifier.js +82 -82
- package/src/model/Ptsv2paymentsPaymentInformationLegacyToken.js +82 -82
- package/src/model/Ptsv2paymentsPaymentInformationPaymentInstrument.js +82 -82
- package/src/model/Ptsv2paymentsPaymentInformationPaymentType.js +99 -99
- package/src/model/Ptsv2paymentsPaymentInformationPaymentTypeMethod.js +82 -82
- package/src/model/Ptsv2paymentsPaymentInformationShippingAddress.js +82 -82
- package/src/model/Ptsv2paymentsPaymentInformationTokenizedCard.js +172 -163
- package/src/model/Ptsv2paymentsPointOfSaleInformation.js +315 -306
- package/src/model/Ptsv2paymentsPointOfSaleInformationEmv.js +127 -119
- package/src/model/Ptsv2paymentsProcessingInformation.js +318 -309
- package/src/model/Ptsv2paymentsProcessingInformationAuthorizationOptions.js +236 -227
- package/src/model/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator.js +108 -108
- package/src/model/Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.js +100 -100
- package/src/model/Ptsv2paymentsProcessingInformationBankTransferOptions.js +172 -172
- package/src/model/Ptsv2paymentsProcessingInformationCaptureOptions.js +100 -100
- package/src/model/Ptsv2paymentsProcessingInformationElectronicBenefitsTransfer.js +91 -91
- package/src/model/Ptsv2paymentsProcessingInformationJapanPaymentOptions.js +145 -145
- package/src/model/Ptsv2paymentsProcessingInformationLoanOptions.js +91 -91
- package/src/model/Ptsv2paymentsProcessingInformationPurchaseOptions.js +91 -91
- package/src/model/Ptsv2paymentsProcessingInformationRecurringOptions.js +93 -93
- package/src/model/Ptsv2paymentsProcessorInformation.js +91 -83
- package/src/model/Ptsv2paymentsProcessorInformationAuthorizationOptions.js +82 -0
- package/src/model/Ptsv2paymentsPromotionInformation.js +91 -91
- package/src/model/Ptsv2paymentsRecipientInformation.js +109 -109
- package/src/model/Ptsv2paymentsRecurringPaymentInformation.js +119 -119
- package/src/model/Ptsv2paymentsRiskInformation.js +107 -107
- package/src/model/Ptsv2paymentsRiskInformationAuxiliaryData.js +92 -92
- package/src/model/Ptsv2paymentsRiskInformationBuyerHistory.js +152 -152
- package/src/model/Ptsv2paymentsRiskInformationBuyerHistoryAccountHistory.js +91 -91
- package/src/model/Ptsv2paymentsRiskInformationBuyerHistoryCustomerAccount.js +127 -127
- package/src/model/Ptsv2paymentsRiskInformationProfile.js +83 -83
- package/src/model/Ptsv2paymentsTokenInformation.js +116 -116
- package/src/model/Ptsv2paymentsTokenInformationPaymentInstrument.js +83 -83
- package/src/model/Ptsv2paymentsTokenInformationShippingAddress.js +83 -83
- package/src/model/Ptsv2paymentsTravelInformation.js +114 -114
- package/src/model/Ptsv2paymentsTravelInformationAgency.js +91 -91
- package/src/model/Ptsv2paymentsTravelInformationAutoRental.js +448 -448
- package/src/model/Ptsv2paymentsTravelInformationAutoRentalRentalAddress.js +136 -136
- package/src/model/Ptsv2paymentsTravelInformationAutoRentalReturnAddress.js +118 -118
- package/src/model/Ptsv2paymentsTravelInformationAutoRentalTaxDetails.js +127 -127
- package/src/model/Ptsv2paymentsTravelInformationLodging.js +451 -451
- package/src/model/Ptsv2paymentsTravelInformationLodgingRoom.js +91 -91
- package/src/model/Ptsv2paymentsTravelInformationTransit.js +81 -81
- package/src/model/Ptsv2paymentsTravelInformationTransitAirline.js +412 -412
- package/src/model/Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformation.js +117 -117
- package/src/model/Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformationService.js +91 -91
- package/src/model/Ptsv2paymentsTravelInformationTransitAirlineLegs.js +253 -253
- package/src/model/Ptsv2paymentsTravelInformationTransitAirlineTicketIssuer.js +136 -136
- package/src/model/Ptsv2paymentsidClientReferenceInformation.js +117 -117
- package/src/model/Ptsv2paymentsidClientReferenceInformationPartner.js +100 -100
- package/src/model/Ptsv2paymentsidMerchantInformation.js +82 -82
- package/src/model/Ptsv2paymentsidOrderInformation.js +81 -81
- package/src/model/Ptsv2paymentsidOrderInformationAmountDetails.js +91 -91
- package/src/model/Ptsv2paymentsidProcessingInformation.js +81 -81
- package/src/model/Ptsv2paymentsidProcessingInformationAuthorizationOptions.js +81 -81
- package/src/model/Ptsv2paymentsidProcessingInformationAuthorizationOptionsInitiator.js +82 -82
- package/src/model/Ptsv2paymentsidTravelInformation.js +82 -82
- package/src/model/Ptsv2paymentsidcapturesAggregatorInformation.js +99 -99
- package/src/model/Ptsv2paymentsidcapturesAggregatorInformationSubMerchant.js +154 -154
- package/src/model/Ptsv2paymentsidcapturesBuyerInformation.js +91 -91
- package/src/model/Ptsv2paymentsidcapturesDeviceInformation.js +100 -100
- package/src/model/Ptsv2paymentsidcapturesInstallmentInformation.js +298 -298
- package/src/model/Ptsv2paymentsidcapturesMerchantInformation.js +125 -125
- package/src/model/Ptsv2paymentsidcapturesOrderInformation.js +121 -121
- package/src/model/Ptsv2paymentsidcapturesOrderInformationAmountDetails.js +251 -251
- package/src/model/Ptsv2paymentsidcapturesOrderInformationBillTo.js +171 -171
- package/src/model/Ptsv2paymentsidcapturesOrderInformationInvoiceDetails.js +135 -135
- package/src/model/Ptsv2paymentsidcapturesOrderInformationShipTo.js +100 -100
- package/src/model/Ptsv2paymentsidcapturesOrderInformationShippingDetails.js +82 -82
- package/src/model/Ptsv2paymentsidcapturesPaymentInformation.js +89 -89
- package/src/model/Ptsv2paymentsidcapturesPaymentInformationCard.js +91 -91
- package/src/model/Ptsv2paymentsidcapturesPointOfSaleInformation.js +90 -90
- package/src/model/Ptsv2paymentsidcapturesPointOfSaleInformationEmv.js +91 -92
- package/src/model/Ptsv2paymentsidcapturesProcessingInformation.js +177 -177
- package/src/model/Ptsv2paymentsidcapturesProcessingInformationAuthorizationOptions.js +100 -100
- package/src/model/Ptsv2paymentsidcapturesProcessingInformationCaptureOptions.js +91 -91
- package/src/model/Ptsv2paymentsidrefundsMerchantInformation.js +117 -117
- package/src/model/Ptsv2paymentsidrefundsOrderInformation.js +121 -121
- package/src/model/Ptsv2paymentsidrefundsOrderInformationLineItems.js +252 -252
- package/src/model/Ptsv2paymentsidrefundsPaymentInformation.js +161 -161
- package/src/model/Ptsv2paymentsidrefundsPaymentInformationBank.js +99 -99
- package/src/model/Ptsv2paymentsidrefundsPaymentInformationCard.js +163 -163
- package/src/model/Ptsv2paymentsidrefundsPointOfSaleInformation.js +81 -81
- package/src/model/Ptsv2paymentsidrefundsProcessingInformation.js +144 -144
- package/src/model/Ptsv2paymentsidrefundsProcessingInformationRecurringOptions.js +83 -83
- package/src/model/Ptsv2paymentsidreversalsClientReferenceInformation.js +135 -135
- package/src/model/Ptsv2paymentsidreversalsClientReferenceInformationPartner.js +100 -100
- package/src/model/Ptsv2paymentsidreversalsOrderInformation.js +89 -89
- package/src/model/Ptsv2paymentsidreversalsOrderInformationAmountDetails.js +82 -82
- package/src/model/Ptsv2paymentsidreversalsOrderInformationLineItems.js +91 -91
- package/src/model/Ptsv2paymentsidreversalsPointOfSaleInformation.js +81 -81
- package/src/model/Ptsv2paymentsidreversalsPointOfSaleInformationEmv.js +82 -82
- package/src/model/Ptsv2paymentsidreversalsProcessingInformation.js +126 -126
- package/src/model/Ptsv2paymentsidreversalsReversalInformation.js +90 -90
- package/src/model/Ptsv2paymentsidreversalsReversalInformationAmountDetails.js +91 -91
- package/src/model/Ptsv2paymentsidvoidsOrderInformation.js +81 -0
- package/src/model/Ptsv2paymentsidvoidsPaymentInformation.js +81 -81
- package/src/model/Ptsv2payoutsClientReferenceInformation.js +109 -109
- package/src/model/Ptsv2payoutsMerchantInformation.js +108 -108
- package/src/model/Ptsv2payoutsMerchantInformationMerchantDescriptor.js +127 -127
- package/src/model/Ptsv2payoutsOrderInformation.js +98 -89
- package/src/model/Ptsv2payoutsOrderInformationAmountDetails.js +99 -99
- package/src/model/Ptsv2payoutsOrderInformationAmountDetailsSurcharge.js +82 -82
- package/src/model/Ptsv2payoutsOrderInformationBillTo.js +163 -163
- package/src/model/Ptsv2payoutsPaymentInformation.js +89 -89
- package/src/model/Ptsv2payoutsPaymentInformationCard.js +118 -118
- package/src/model/Ptsv2payoutsProcessingInformation.js +143 -135
- package/src/model/Ptsv2payoutsProcessingInformationFundingOptions.js +81 -0
- package/src/model/Ptsv2payoutsProcessingInformationFundingOptionsInitiator.js +82 -0
- package/src/model/Ptsv2payoutsProcessingInformationPayoutsOptions.js +109 -109
- package/src/model/Ptsv2payoutsRecipientInformation.js +172 -172
- package/src/model/Ptsv2payoutsSenderInformation.js +234 -207
- package/src/model/Ptsv2payoutsSenderInformationAccount.js +91 -91
- package/src/model/RefundCaptureRequest.js +170 -170
- package/src/model/RefundPaymentRequest.js +170 -170
- package/src/model/ReportingV3ChargebackDetailsGet200Response.js +109 -109
- package/src/model/ReportingV3ChargebackDetailsGet200ResponseChargebackDetails.js +280 -271
- package/src/model/ReportingV3ChargebackSummariesGet200Response.js +109 -109
- package/src/model/ReportingV3ChargebackSummariesGet200ResponseChargebackSummaries.js +100 -100
- package/src/model/ReportingV3ConversionDetailsGet200Response.js +106 -106
- package/src/model/ReportingV3ConversionDetailsGet200ResponseConversionDetails.js +162 -162
- package/src/model/ReportingV3ConversionDetailsGet200ResponseNotes.js +100 -100
- package/src/model/ReportingV3InterchangeClearingLevelDetailsGet200Response.js +100 -100
- package/src/model/ReportingV3InterchangeClearingLevelDetailsGet200ResponseInterchangeClearingLevelDetails.js +485 -485
- package/src/model/ReportingV3NetFundingsGet200Response.js +145 -145
- package/src/model/ReportingV3NetFundingsGet200ResponseNetFundingSummaries.js +139 -139
- package/src/model/ReportingV3NetFundingsGet200ResponseTotalPurchases.js +92 -92
- package/src/model/ReportingV3NotificationofChangesGet200Response.js +82 -82
- package/src/model/ReportingV3NotificationofChangesGet200ResponseNotificationOfChanges.js +146 -146
- package/src/model/ReportingV3PaymentBatchSummariesGet200Response.js +97 -97
- package/src/model/ReportingV3PaymentBatchSummariesGet200ResponsePaymentBatchSummaries.js +169 -169
- package/src/model/ReportingV3PurchaseRefundDetailsGet200Response.js +151 -151
- package/src/model/ReportingV3PurchaseRefundDetailsGet200ResponseAuthorizations.js +146 -146
- package/src/model/ReportingV3PurchaseRefundDetailsGet200ResponseFeeAndFundingDetails.js +191 -191
- package/src/model/ReportingV3PurchaseRefundDetailsGet200ResponseOthers.js +137 -137
- package/src/model/ReportingV3PurchaseRefundDetailsGet200ResponseRequestDetails.js +128 -128
- package/src/model/ReportingV3PurchaseRefundDetailsGet200ResponseSettlementStatuses.js +119 -119
- package/src/model/ReportingV3PurchaseRefundDetailsGet200ResponseSettlements.js +190 -190
- package/src/model/ReportingV3ReportDefinitionsGet200Response.js +81 -81
- package/src/model/ReportingV3ReportDefinitionsGet200ResponseReportDefinitions.js +131 -131
- package/src/model/ReportingV3ReportDefinitionsNameGet200Response.js +138 -138
- package/src/model/ReportingV3ReportDefinitionsNameGet200ResponseAttributes.js +131 -131
- package/src/model/ReportingV3ReportDefinitionsNameGet200ResponseDefaultSettings.js +144 -144
- package/src/model/ReportingV3ReportSubscriptionsGet200Response.js +81 -81
- package/src/model/ReportingV3ReportSubscriptionsGet200ResponseSubscriptions.js +199 -199
- package/src/model/ReportingV3ReportsGet200Response.js +81 -81
- package/src/model/ReportingV3ReportsGet200ResponseLink.js +81 -81
- package/src/model/ReportingV3ReportsGet200ResponseLinkReportDownload.js +89 -89
- package/src/model/ReportingV3ReportsGet200ResponseReportSearchResults.js +217 -217
- package/src/model/ReportingV3ReportsIdGet200Response.js +199 -199
- package/src/model/ReportingV3RetrievalDetailsGet200Response.js +109 -109
- package/src/model/ReportingV3RetrievalDetailsGet200ResponseRetrievalDetails.js +271 -271
- package/src/model/ReportingV3RetrievalSummariesGet200Response.js +109 -109
- package/src/model/Reportingv3ReportDownloadsGet400Response.js +114 -114
- package/src/model/Reportingv3ReportDownloadsGet400ResponseDetails.js +92 -92
- package/src/model/Reportingv3reportsReportFilters.js +105 -105
- package/src/model/Reportingv3reportsReportPreferences.js +92 -92
- package/src/model/ResourceNotFoundError.js +89 -89
- package/src/model/RiskV1AddressVerificationsPost201Response.js +150 -150
- package/src/model/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformation.js +143 -143
- package/src/model/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformationBarCode.js +91 -91
- package/src/model/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformationStandardAddress.js +171 -171
- package/src/model/RiskV1AddressVerificationsPost201ResponseAddressVerificationInformationStandardAddressAddress1.js +91 -91
- package/src/model/RiskV1AddressVerificationsPost201ResponseErrorInformation.js +99 -99
- package/src/model/RiskV1AuthenticationResultsPost201Response.js +150 -150
- package/src/model/RiskV1AuthenticationResultsPost201ResponseConsumerAuthenticationInformation.js +307 -280
- package/src/model/RiskV1AuthenticationSetupsPost201Response.js +132 -132
- package/src/model/RiskV1AuthenticationSetupsPost201ResponseConsumerAuthenticationInformation.js +100 -100
- package/src/model/RiskV1AuthenticationSetupsPost201ResponseErrorInformation.js +99 -99
- package/src/model/RiskV1AuthenticationsPost201Response.js +158 -158
- package/src/model/RiskV1AuthenticationsPost201ResponseErrorInformation.js +99 -99
- package/src/model/RiskV1AuthenticationsPost400Response.js +117 -117
- package/src/model/RiskV1AuthenticationsPost400Response1.js +117 -117
- package/src/model/RiskV1DecisionsPost201Response.js +165 -165
- package/src/model/RiskV1DecisionsPost201ResponseClientReferenceInformation.js +99 -99
- package/src/model/RiskV1DecisionsPost201ResponseConsumerAuthenticationInformation.js +423 -396
- package/src/model/RiskV1DecisionsPost201ResponseErrorInformation.js +99 -99
- package/src/model/RiskV1DecisionsPost201ResponseOrderInformation.js +81 -81
- package/src/model/RiskV1DecisionsPost201ResponseOrderInformationAmountDetails.js +82 -82
- package/src/model/RiskV1DecisionsPost201ResponsePaymentInformation.js +119 -119
- package/src/model/RiskV1DecisionsPost400Response.js +117 -117
- package/src/model/RiskV1DecisionsPost400Response1.js +117 -117
- package/src/model/RiskV1ExportComplianceInquiriesPost201Response.js +150 -150
- package/src/model/RiskV1ExportComplianceInquiriesPost201ResponseErrorInformation.js +99 -99
- package/src/model/RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformation.js +99 -99
- package/src/model/RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformationWatchList.js +81 -81
- package/src/model/RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformationWatchListMatches.js +109 -109
- package/src/model/RiskV1UpdatePost201Response.js +116 -116
- package/src/model/Riskv1addressverificationsBuyerInformation.js +82 -82
- package/src/model/Riskv1addressverificationsOrderInformation.js +97 -97
- package/src/model/Riskv1addressverificationsOrderInformationBillTo.js +149 -149
- package/src/model/Riskv1addressverificationsOrderInformationLineItems.js +128 -128
- package/src/model/Riskv1addressverificationsOrderInformationShipTo.js +147 -147
- package/src/model/Riskv1authenticationresultsConsumerAuthenticationInformation.js +154 -136
- package/src/model/{TssV2TransactionsPost201ResponseEmbeddedDeviceInformation.js → Riskv1authenticationresultsDeviceInformation.js} +82 -82
- package/src/model/Riskv1authenticationresultsOrderInformation.js +89 -89
- package/src/model/Riskv1authenticationresultsOrderInformationAmountDetails.js +92 -92
- package/src/model/Riskv1authenticationresultsOrderInformationLineItems.js +101 -101
- package/src/model/Riskv1authenticationresultsPaymentInformation.js +105 -105
- package/src/model/Riskv1authenticationresultsPaymentInformationCard.js +118 -118
- package/src/model/Riskv1authenticationresultsPaymentInformationFluidData.js +109 -109
- package/src/model/Riskv1authenticationresultsPaymentInformationTokenizedCard.js +118 -118
- package/src/model/Riskv1authenticationsBuyerInformation.js +101 -101
- package/src/model/Riskv1authenticationsDeviceInformation.js +180 -180
- package/src/model/Riskv1authenticationsOrderInformation.js +142 -142
- package/src/model/Riskv1authenticationsOrderInformationAmountDetails.js +94 -94
- package/src/model/Riskv1authenticationsOrderInformationBillTo.js +170 -170
- package/src/model/Riskv1authenticationsOrderInformationLineItems.js +163 -163
- package/src/model/Riskv1authenticationsPaymentInformation.js +105 -105
- package/src/model/Riskv1authenticationsPaymentInformationCard.js +122 -122
- package/src/model/Riskv1authenticationsPaymentInformationTokenizedCard.js +143 -122
- package/src/model/Riskv1authenticationsRiskInformation.js +81 -81
- package/src/model/Riskv1authenticationsTravelInformation.js +98 -98
- package/src/model/Riskv1authenticationsetupsPaymentInformation.js +105 -105
- package/src/model/Riskv1authenticationsetupsPaymentInformationCard.js +112 -112
- package/src/model/Riskv1authenticationsetupsPaymentInformationCustomer.js +82 -82
- package/src/model/Riskv1authenticationsetupsPaymentInformationFluidData.js +110 -110
- package/src/model/Riskv1authenticationsetupsPaymentInformationTokenizedCard.js +123 -123
- package/src/model/Riskv1authenticationsetupsProcessingInformation.js +91 -91
- package/src/model/Riskv1authenticationsetupsTokenInformation.js +82 -82
- package/src/model/Riskv1decisionsBuyerInformation.js +118 -118
- package/src/model/Riskv1decisionsClientReferenceInformation.js +109 -109
- package/src/model/Riskv1decisionsClientReferenceInformationPartner.js +91 -91
- package/src/model/Riskv1decisionsConsumerAuthenticationInformation.js +441 -432
- package/src/model/Riskv1decisionsConsumerAuthenticationInformationStrongAuthentication.js +82 -82
- package/src/model/Riskv1decisionsDeviceInformation.js +225 -225
- package/src/model/Riskv1decisionsMerchantDefinedInformation.js +92 -92
- package/src/model/Riskv1decisionsMerchantInformation.js +90 -90
- package/src/model/Riskv1decisionsMerchantInformationMerchantDescriptor.js +91 -91
- package/src/model/Riskv1decisionsOrderInformation.js +160 -160
- package/src/model/Riskv1decisionsOrderInformationAmountDetails.js +93 -93
- package/src/model/Riskv1decisionsOrderInformationBillTo.js +163 -163
- package/src/model/Riskv1decisionsOrderInformationLineItems.js +198 -198
- package/src/model/Riskv1decisionsOrderInformationShipTo.js +181 -181
- package/src/model/Riskv1decisionsOrderInformationShippingDetails.js +92 -92
- package/src/model/Riskv1decisionsPaymentInformation.js +115 -115
- package/src/model/Riskv1decisionsPaymentInformationCard.js +119 -119
- package/src/model/Riskv1decisionsPaymentInformationTokenizedCard.js +119 -119
- package/src/model/Riskv1decisionsProcessingInformation.js +83 -83
- package/src/model/Riskv1decisionsProcessorInformation.js +90 -90
- package/src/model/Riskv1decisionsProcessorInformationAvs.js +83 -83
- package/src/model/Riskv1decisionsProcessorInformationCardVerification.js +82 -82
- package/src/model/Riskv1decisionsRiskInformation.js +106 -106
- package/src/model/Riskv1decisionsTravelInformation.js +134 -134
- package/src/model/Riskv1decisionsTravelInformationLegs.js +109 -109
- package/src/model/Riskv1decisionsTravelInformationPassengers.js +91 -91
- package/src/model/Riskv1decisionsidmarkingRiskInformation.js +81 -81
- package/src/model/Riskv1decisionsidmarkingRiskInformationMarkingDetails.js +110 -110
- package/src/model/Riskv1exportcomplianceinquiriesDeviceInformation.js +91 -91
- package/src/model/Riskv1exportcomplianceinquiriesExportComplianceInformation.js +99 -99
- package/src/model/Riskv1exportcomplianceinquiriesExportComplianceInformationWeights.js +100 -100
- package/src/model/Riskv1exportcomplianceinquiriesOrderInformation.js +97 -97
- package/src/model/Riskv1exportcomplianceinquiriesOrderInformationBillTo.js +185 -185
- package/src/model/Riskv1exportcomplianceinquiriesOrderInformationBillToCompany.js +82 -82
- package/src/model/Riskv1exportcomplianceinquiriesOrderInformationLineItems.js +144 -144
- package/src/model/Riskv1exportcomplianceinquiriesOrderInformationShipTo.js +100 -100
- package/src/model/Riskv1liststypeentriesBuyerInformation.js +82 -82
- package/src/model/Riskv1liststypeentriesClientReferenceInformation.js +100 -100
- package/src/model/Riskv1liststypeentriesDeviceInformation.js +91 -91
- package/src/model/Riskv1liststypeentriesOrderInformation.js +106 -106
- package/src/model/Riskv1liststypeentriesOrderInformationAddress.js +128 -128
- package/src/model/Riskv1liststypeentriesOrderInformationBillTo.js +172 -172
- package/src/model/Riskv1liststypeentriesOrderInformationLineItems.js +82 -82
- package/src/model/Riskv1liststypeentriesOrderInformationShipTo.js +128 -128
- package/src/model/Riskv1liststypeentriesPaymentInformation.js +90 -90
- package/src/model/Riskv1liststypeentriesPaymentInformationBank.js +110 -110
- package/src/model/Riskv1liststypeentriesPaymentInformationCard.js +100 -100
- package/src/model/Riskv1liststypeentriesRiskInformation.js +81 -81
- package/src/model/Riskv1liststypeentriesRiskInformationMarkingDetails.js +110 -110
- package/src/model/SearchRequest.js +109 -109
- package/src/model/ShippingAddressListForCustomer.js +126 -126
- package/src/model/ShippingAddressListForCustomerEmbedded.js +82 -82
- package/src/model/ShippingAddressListForCustomerLinks.js +113 -113
- package/src/model/ShippingAddressListForCustomerLinksFirst.js +82 -82
- package/src/model/ShippingAddressListForCustomerLinksLast.js +82 -82
- package/src/model/ShippingAddressListForCustomerLinksNext.js +82 -82
- package/src/model/ShippingAddressListForCustomerLinksPrev.js +82 -82
- package/src/model/ShippingAddressListForCustomerLinksSelf.js +82 -82
- package/src/model/TaxRequest.js +113 -113
- package/src/model/TmsV2CustomersResponse.js +155 -155
- package/src/model/Tmsv2customersBuyerInformation.js +91 -91
- package/src/model/Tmsv2customersClientReferenceInformation.js +82 -82
- package/src/model/Tmsv2customersDefaultPaymentInstrument.js +82 -82
- package/src/model/Tmsv2customersDefaultShippingAddress.js +82 -82
- package/src/model/Tmsv2customersEmbedded.js +90 -90
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrument.js +189 -189
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount.js +82 -82
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo.js +172 -172
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation.js +108 -108
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.js +82 -82
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.js +99 -99
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentCard.js +144 -144
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.js +91 -91
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded.js +82 -82
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifier.js +173 -173
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierBankAccount.js +91 -91
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierBillTo.js +128 -128
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierCard.js +110 -110
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierIssuer.js +82 -82
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierLinks.js +89 -89
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierLinksPaymentInstruments.js +82 -82
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierLinksSelf.js +82 -82
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierMetadata.js +82 -82
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierProcessingInformation.js +81 -81
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierProcessingInformationAuthorizationOptions.js +81 -81
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierProcessingInformationAuthorizationOptionsInitiator.js +81 -81
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierProcessingInformationAuthorizationOptionsInitiatorMerchantInitiatedTransaction.js +82 -82
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierTokenizedCard.js +135 -135
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierTokenizedCardCard.js +101 -101
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.js +82 -82
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks.js +89 -89
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentLinksSelf.js +82 -82
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation.js +81 -81
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor.js +82 -82
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata.js +82 -82
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentProcessingInformation.js +90 -90
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentProcessingInformationBankTransferOptions.js +82 -82
- package/src/model/Tmsv2customersEmbeddedDefaultShippingAddress.js +115 -115
- package/src/model/Tmsv2customersEmbeddedDefaultShippingAddressLinks.js +89 -89
- package/src/model/Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer.js +82 -82
- package/src/model/Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf.js +82 -82
- package/src/model/Tmsv2customersEmbeddedDefaultShippingAddressMetadata.js +82 -82
- package/src/model/Tmsv2customersEmbeddedDefaultShippingAddressShipTo.js +172 -172
- package/src/model/Tmsv2customersLinks.js +97 -97
- package/src/model/Tmsv2customersLinksPaymentInstruments.js +82 -82
- package/src/model/Tmsv2customersLinksSelf.js +82 -82
- package/src/model/Tmsv2customersLinksShippingAddress.js +82 -82
- package/src/model/Tmsv2customersMerchantDefinedInformation.js +91 -91
- package/src/model/Tmsv2customersMetadata.js +82 -82
- package/src/model/Tmsv2customersObjectInformation.js +91 -91
- package/src/model/TokenizeRequest.js +91 -91
- package/src/model/TssV2TransactionsGet200Response.js +287 -279
- package/src/model/TssV2TransactionsGet200ResponseApplicationInformation.js +117 -117
- package/src/model/TssV2TransactionsGet200ResponseApplicationInformationApplications.js +145 -145
- package/src/model/TssV2TransactionsGet200ResponseBuyerInformation.js +91 -91
- package/src/model/TssV2TransactionsGet200ResponseClientReferenceInformation.js +126 -126
- package/src/model/TssV2TransactionsGet200ResponseClientReferenceInformationPartner.js +82 -82
- package/src/model/TssV2TransactionsGet200ResponseConsumerAuthenticationInformation.js +117 -117
- package/src/model/TssV2TransactionsGet200ResponseConsumerAuthenticationInformationStrongAuthentication.js +118 -118
- package/src/model/TssV2TransactionsGet200ResponseDeviceInformation.js +100 -100
- package/src/model/TssV2TransactionsGet200ResponseErrorInformation.js +99 -99
- package/src/model/TssV2TransactionsGet200ResponseFraudMarkingInformation.js +82 -82
- package/src/model/TssV2TransactionsGet200ResponseInstallmentInformation.js +91 -91
- package/src/model/TssV2TransactionsGet200ResponseLinks.js +89 -89
- package/src/model/TssV2TransactionsGet200ResponseMerchantInformation.js +81 -81
- package/src/model/TssV2TransactionsGet200ResponseMerchantInformationMerchantDescriptor.js +82 -82
- package/src/model/TssV2TransactionsGet200ResponseOrderInformation.js +122 -122
- package/src/model/TssV2TransactionsGet200ResponseOrderInformationAmountDetails.js +135 -135
- package/src/model/TssV2TransactionsGet200ResponseOrderInformationBillTo.js +199 -199
- package/src/model/TssV2TransactionsGet200ResponseOrderInformationInvoiceDetails.js +82 -82
- package/src/model/TssV2TransactionsGet200ResponseOrderInformationLineItems.js +136 -136
- package/src/model/TssV2TransactionsGet200ResponseOrderInformationShipTo.js +163 -163
- package/src/model/TssV2TransactionsGet200ResponseOrderInformationShippingDetails.js +91 -91
- package/src/model/TssV2TransactionsGet200ResponsePaymentInformation.js +145 -145
- package/src/model/TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures.js +100 -100
- package/src/model/TssV2TransactionsGet200ResponsePaymentInformationBank.js +134 -134
- package/src/model/TssV2TransactionsGet200ResponsePaymentInformationBankAccount.js +136 -136
- package/src/model/TssV2TransactionsGet200ResponsePaymentInformationBankMandate.js +100 -100
- package/src/model/TssV2TransactionsGet200ResponsePaymentInformationCard.js +163 -163
- package/src/model/TssV2TransactionsGet200ResponsePaymentInformationCustomer.js +91 -91
- package/src/model/TssV2TransactionsGet200ResponsePaymentInformationInstrumentIdentifier.js +82 -82
- package/src/model/TssV2TransactionsGet200ResponsePaymentInformationInvoice.js +100 -100
- package/src/model/TssV2TransactionsGet200ResponsePaymentInformationPaymentType.js +100 -100
- package/src/model/TssV2TransactionsGet200ResponsePointOfSaleInformation.js +108 -108
- package/src/model/TssV2TransactionsGet200ResponseProcessingInformation.js +133 -133
- package/src/model/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptions.js +90 -90
- package/src/model/TssV2TransactionsGet200ResponseProcessingInformationAuthorizationOptionsInitiator.js +108 -0
- package/src/model/TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions.js +82 -82
- package/src/model/TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions.js +109 -109
- package/src/model/TssV2TransactionsGet200ResponseProcessorInformation.js +203 -203
- package/src/model/TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.js +163 -163
- package/src/model/TssV2TransactionsGet200ResponseProcessorInformationMultiProcessorRouting.js +109 -109
- package/src/model/TssV2TransactionsGet200ResponseProcessorInformationProcessor.js +82 -82
- package/src/model/TssV2TransactionsGet200ResponseRiskInformation.js +122 -122
- package/src/model/TssV2TransactionsGet200ResponseRiskInformationProfile.js +91 -91
- package/src/model/TssV2TransactionsGet200ResponseRiskInformationRules.js +92 -92
- package/src/model/TssV2TransactionsGet200ResponseRiskInformationScore.js +91 -91
- package/src/model/TssV2TransactionsGet200ResponseSenderInformation.js +82 -82
- package/src/model/TssV2TransactionsGet200ResponseTokenInformation.js +105 -105
- package/src/model/TssV2TransactionsPost201Response.js +197 -197
- package/src/model/TssV2TransactionsPost201ResponseEmbedded.js +82 -82
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedApplicationInformation.js +117 -117
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.js +136 -136
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedBuyerInformation.js +82 -82
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation.js +108 -108
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation.js +100 -100
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedLinks.js +81 -81
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedMerchantInformation.js +82 -82
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedOrderInformation.js +97 -97
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedOrderInformationBillTo.js +127 -127
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedOrderInformationShipTo.js +118 -118
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformation.js +105 -97
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBank.js +81 -0
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationBankAccount.js +91 -0
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard.js +100 -100
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCustomer.js +82 -0
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedPaymentInformationPaymentType.js +91 -91
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation.js +108 -108
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformationPartner.js +82 -82
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedProcessingInformation.js +100 -100
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedProcessorInformation.js +90 -90
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedRiskInformation.js +81 -81
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedRiskInformationProviders.js +81 -81
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedRiskInformationProvidersFingerprint.js +100 -100
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.js +221 -221
- package/src/model/TssV2TransactionsPost400Response.js +108 -108
- package/src/model/UmsV1UsersGet200Response.js +81 -81
- package/src/model/UmsV1UsersGet200ResponseAccountInformation.js +138 -138
- package/src/model/UmsV1UsersGet200ResponseContactInformation.js +105 -105
- package/src/model/UmsV1UsersGet200ResponseOrganizationInformation.js +81 -81
- package/src/model/UmsV1UsersGet200ResponseUsers.js +97 -97
- package/src/model/UnauthorizedClientError.js +89 -89
- package/src/model/UpdateInvoiceRequest.js +97 -97
- package/src/model/V1FileDetailsGet200Response.js +89 -89
- package/src/model/V1FileDetailsGet200ResponseFileDetails.js +136 -136
- package/src/model/V1FileDetailsGet200ResponseLinks.js +89 -89
- package/src/model/V1FileDetailsGet200ResponseLinksFiles.js +98 -98
- package/src/model/V1FileDetailsGet200ResponseLinksSelf.js +89 -89
- package/src/model/ValidateExportComplianceRequest.js +113 -113
- package/src/model/ValidateRequest.js +121 -113
- package/src/model/VasV2PaymentsPost201Response.js +132 -132
- package/src/model/VasV2PaymentsPost201ResponseLinks.js +81 -81
- package/src/model/VasV2PaymentsPost201ResponseOrderInformation.js +124 -124
- package/src/model/VasV2PaymentsPost201ResponseOrderInformationJurisdiction.js +154 -154
- package/src/model/VasV2PaymentsPost201ResponseOrderInformationLineItems.js +116 -116
- package/src/model/VasV2PaymentsPost201ResponseOrderInformationTaxDetails.js +91 -91
- package/src/model/VasV2PaymentsPost201ResponseTaxInformation.js +91 -91
- package/src/model/VasV2PaymentsPost400Response.js +117 -117
- package/src/model/VasV2TaxVoid200Response.js +116 -116
- package/src/model/VasV2TaxVoid200ResponseVoidAmountDetails.js +91 -91
- package/src/model/VasV2TaxVoidsPost400Response.js +117 -117
- package/src/model/Vasv2taxBuyerInformation.js +82 -82
- package/src/model/Vasv2taxClientReferenceInformation.js +99 -99
- package/src/model/Vasv2taxMerchantInformation.js +82 -82
- package/src/model/Vasv2taxOrderInformation.js +137 -137
- package/src/model/Vasv2taxOrderInformationBillTo.js +127 -127
- package/src/model/Vasv2taxOrderInformationInvoiceDetails.js +82 -82
- package/src/model/Vasv2taxOrderInformationLineItems.js +197 -197
- package/src/model/Vasv2taxOrderInformationOrderAcceptance.js +110 -110
- package/src/model/Vasv2taxOrderInformationOrderOrigin.js +110 -110
- package/src/model/Vasv2taxOrderInformationShipTo.js +136 -136
- package/src/model/Vasv2taxOrderInformationShippingDetails.js +109 -109
- package/src/model/Vasv2taxTaxInformation.js +136 -136
- package/src/model/Vasv2taxidClientReferenceInformation.js +99 -99
- package/src/model/Vasv2taxidClientReferenceInformationPartner.js +91 -91
- package/src/model/VerifyCustomerAddressRequest.js +97 -97
- package/src/model/VoidCaptureRequest.js +97 -89
- package/src/model/VoidCreditRequest.js +97 -89
- package/src/model/VoidPaymentRequest.js +97 -89
- package/src/model/VoidRefundRequest.js +97 -89
- package/src/model/VoidTaxRequest.js +81 -81
- package/src/utilities/flex/TokenVerification.js +50 -50
package/src/ApiClient.js
CHANGED
|
@@ -1,769 +1,769 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CyberSource Merged Spec
|
|
3
|
-
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: 0.0.1
|
|
6
|
-
*
|
|
7
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
8
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
*
|
|
10
|
-
* Swagger Codegen version: 2.3.0
|
|
11
|
-
*
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
(function(root, factory) {
|
|
17
|
-
if (typeof define === 'function' && define.amd) {
|
|
18
|
-
// AMD. Register as an anonymous module.
|
|
19
|
-
define(['superagent', 'superagent-proxy', 'querystring', 'Authentication/MerchantConfig', 'Authentication/Logger', 'Authentication/Constants', 'Authentication/Authorization', 'Authentication/PayloadDigest'], factory);
|
|
20
|
-
} else if (typeof module === 'object' && module.exports) {
|
|
21
|
-
// CommonJS-like environments that support module.exports, like Node.
|
|
22
|
-
module.exports = factory(require('superagent'), require('superagent-proxy'), require('querystring'), require('./authentication/core/MerchantConfig'), require('./authentication/logging/Logger'), require('./authentication/util/Constants'), require('./authentication/core/Authorization'), require('./authentication/payloadDigest/DigestGenerator'));
|
|
23
|
-
} else {
|
|
24
|
-
// Browser globals (root is window)
|
|
25
|
-
if (!root.CyberSource) {
|
|
26
|
-
root.CyberSource = {};
|
|
27
|
-
}
|
|
28
|
-
root.CyberSource.ApiClient = factory(root.superagent, root.superagent_proxy, root.querystring, root.Authentication.MerchantConfig, root.Authentication.Logger, root.Authentication.Constants, root.Authentication.Authorization, root.Authentication.PayloadDigest);
|
|
29
|
-
}
|
|
30
|
-
}(this, function(superagent, superagent_proxy, querystring, MerchantConfig, Logger, Constants, Authorization, PayloadDigest) {
|
|
31
|
-
'use strict';
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @module ApiClient
|
|
35
|
-
* @version 0.0.1
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
40
|
-
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
41
|
-
* contents of this file should be regarded as internal but are documented for completeness.
|
|
42
|
-
* @alias module:ApiClient
|
|
43
|
-
* @class
|
|
44
|
-
*/
|
|
45
|
-
var exports = function() {
|
|
46
|
-
/**
|
|
47
|
-
* The base URL against which to resolve every API call's (relative) path.
|
|
48
|
-
* @type {String}
|
|
49
|
-
* @default https://apitest.cybersource.com
|
|
50
|
-
*/
|
|
51
|
-
this.basePath = 'https://apitest.cybersource.com'.replace(/\/+$/, '');
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* The authentication methods to be included for all API calls.
|
|
55
|
-
* @type {Array.<String>}
|
|
56
|
-
*/
|
|
57
|
-
this.authentications = {
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* The default HTTP headers to be included for all API calls.
|
|
61
|
-
* @type {Array.<String>}
|
|
62
|
-
* @default {}
|
|
63
|
-
*/
|
|
64
|
-
this.defaultHeaders = {};
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* The default HTTP timeout for all API calls.
|
|
68
|
-
* @type {Number}
|
|
69
|
-
* @default 60000
|
|
70
|
-
*/
|
|
71
|
-
this.timeout = 60000;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* If set to false an additional timestamp parameter is added to all API GET calls to
|
|
75
|
-
* prevent browser caching
|
|
76
|
-
* @type {Boolean}
|
|
77
|
-
* @default true
|
|
78
|
-
*/
|
|
79
|
-
this.cache = true;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* If set to true, the client will save the cookies from each server
|
|
83
|
-
* response, and return them in the next request.
|
|
84
|
-
* @default false
|
|
85
|
-
*/
|
|
86
|
-
this.enableCookies = false;
|
|
87
|
-
|
|
88
|
-
/*
|
|
89
|
-
* Used to save and return cookies in a node.js (non-browser) setting,
|
|
90
|
-
* if this.enableCookies is set to true.
|
|
91
|
-
*/
|
|
92
|
-
if (typeof window === 'undefined') {
|
|
93
|
-
this.agent = new superagent.agent();
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* The filepath where reports are downloaded
|
|
98
|
-
*/
|
|
99
|
-
this.downloadFilePath = '';
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* The user-defined Accept Header Type
|
|
103
|
-
*/
|
|
104
|
-
this.acceptHeader = '';
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Returns a string representation for an actual parameter.
|
|
109
|
-
* @param param The actual parameter.
|
|
110
|
-
* @returns {String} The string representation of <code>param</code>.
|
|
111
|
-
*/
|
|
112
|
-
exports.prototype.paramToString = function(param) {
|
|
113
|
-
if (param == undefined || param == null) {
|
|
114
|
-
return '';
|
|
115
|
-
}
|
|
116
|
-
if (param instanceof Date) {
|
|
117
|
-
return param.toJSON();
|
|
118
|
-
}
|
|
119
|
-
return param.toString();
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values.
|
|
124
|
-
* NOTE: query parameters are not handled here.
|
|
125
|
-
* @param {String} path The path to append to the base URL.
|
|
126
|
-
* @param {Object} pathParams The parameter values to append.
|
|
127
|
-
* @returns {String} The encoded path with parameter values substituted.
|
|
128
|
-
*/
|
|
129
|
-
exports.prototype.buildUrl = function(path, pathParams) {
|
|
130
|
-
if (!path.match(/^\//)) {
|
|
131
|
-
path = '/' + path;
|
|
132
|
-
}
|
|
133
|
-
var url = this.basePath + path;
|
|
134
|
-
var _this = this;
|
|
135
|
-
url = url.replace(/\{([\w-]+)\}/g, function(fullMatch, key) {
|
|
136
|
-
var value;
|
|
137
|
-
if (pathParams.hasOwnProperty(key)) {
|
|
138
|
-
value = _this.paramToString(pathParams[key]);
|
|
139
|
-
} else {
|
|
140
|
-
value = fullMatch;
|
|
141
|
-
}
|
|
142
|
-
return encodeURIComponent(value);
|
|
143
|
-
});
|
|
144
|
-
return url;
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Checks whether the given content type represents JSON.<br>
|
|
149
|
-
* JSON content type examples:<br>
|
|
150
|
-
* <ul>
|
|
151
|
-
* <li>application/json</li>
|
|
152
|
-
* <li>application/json; charset=UTF8</li>
|
|
153
|
-
* <li>APPLICATION/JSON</li>
|
|
154
|
-
* </ul>
|
|
155
|
-
* @param {String} contentType The MIME content type to check.
|
|
156
|
-
* @returns {Boolean} <code>true</code> if <code>contentType</code> represents JSON, otherwise <code>false</code>.
|
|
157
|
-
*/
|
|
158
|
-
exports.prototype.isJsonMime = function(contentType) {
|
|
159
|
-
return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i));
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.
|
|
164
|
-
* @param {Array.<String>} contentTypes
|
|
165
|
-
* @returns {String} The chosen content type, preferring JSON.
|
|
166
|
-
*/
|
|
167
|
-
exports.prototype.jsonPreferredMime = function(contentTypes) {
|
|
168
|
-
for (var i = 0; i < contentTypes.length; i++) {
|
|
169
|
-
if (this.isJsonMime(contentTypes[i])) {
|
|
170
|
-
return contentTypes[i];
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
return contentTypes[0];
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Checks whether the given parameter value represents file-like content.
|
|
178
|
-
* @param param The parameter to check.
|
|
179
|
-
* @returns {Boolean} <code>true</code> if <code>param</code> represents a file.
|
|
180
|
-
*/
|
|
181
|
-
exports.prototype.isFileParam = function(param) {
|
|
182
|
-
// fs.ReadStream in Node.js and Electron (but not in runtime like browserify)
|
|
183
|
-
if (typeof require === 'function') {
|
|
184
|
-
var fs;
|
|
185
|
-
try {
|
|
186
|
-
fs = require('fs');
|
|
187
|
-
} catch (err) {}
|
|
188
|
-
if (fs && fs.ReadStream && param instanceof fs.ReadStream) {
|
|
189
|
-
return true;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
// Buffer in Node.js
|
|
193
|
-
if (typeof Buffer === 'function' && param instanceof Buffer) {
|
|
194
|
-
return true;
|
|
195
|
-
}
|
|
196
|
-
// Blob in browser
|
|
197
|
-
if (typeof Blob === 'function' && param instanceof Blob) {
|
|
198
|
-
return true;
|
|
199
|
-
}
|
|
200
|
-
// File in browser (it seems File object is also instance of Blob, but keep this for safe)
|
|
201
|
-
if (typeof File === 'function' && param instanceof File) {
|
|
202
|
-
return true;
|
|
203
|
-
}
|
|
204
|
-
return false;
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Normalizes parameter values:
|
|
209
|
-
* <ul>
|
|
210
|
-
* <li>remove nils</li>
|
|
211
|
-
* <li>keep files and arrays</li>
|
|
212
|
-
* <li>format to string with `paramToString` for other cases</li>
|
|
213
|
-
* </ul>
|
|
214
|
-
* @param {Object.<String, Object>} params The parameters as object properties.
|
|
215
|
-
* @returns {Object.<String, Object>} normalized parameters.
|
|
216
|
-
*/
|
|
217
|
-
exports.prototype.normalizeParams = function(params) {
|
|
218
|
-
var newParams = {};
|
|
219
|
-
for (var key in params) {
|
|
220
|
-
if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) {
|
|
221
|
-
var value = params[key];
|
|
222
|
-
if (this.isFileParam(value) || Array.isArray(value)) {
|
|
223
|
-
newParams[key] = value;
|
|
224
|
-
} else {
|
|
225
|
-
newParams[key] = this.paramToString(value);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
return newParams;
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Enumeration of collection format separator strategies.
|
|
234
|
-
* @enum {String}
|
|
235
|
-
* @readonly
|
|
236
|
-
*/
|
|
237
|
-
exports.CollectionFormatEnum = {
|
|
238
|
-
/**
|
|
239
|
-
* Comma-separated values. Value: <code>csv</code>
|
|
240
|
-
* @const
|
|
241
|
-
*/
|
|
242
|
-
CSV: ',',
|
|
243
|
-
/**
|
|
244
|
-
* Space-separated values. Value: <code>ssv</code>
|
|
245
|
-
* @const
|
|
246
|
-
*/
|
|
247
|
-
SSV: ' ',
|
|
248
|
-
/**
|
|
249
|
-
* Tab-separated values. Value: <code>tsv</code>
|
|
250
|
-
* @const
|
|
251
|
-
*/
|
|
252
|
-
TSV: '\t',
|
|
253
|
-
/**
|
|
254
|
-
* Pipe(|)-separated values. Value: <code>pipes</code>
|
|
255
|
-
* @const
|
|
256
|
-
*/
|
|
257
|
-
PIPES: '|',
|
|
258
|
-
/**
|
|
259
|
-
* Native array. Value: <code>multi</code>
|
|
260
|
-
* @const
|
|
261
|
-
*/
|
|
262
|
-
MULTI: 'multi'
|
|
263
|
-
};
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* Builds a string representation of an array-type actual parameter, according to the given collection format.
|
|
267
|
-
* @param {Array} param An array parameter.
|
|
268
|
-
* @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy.
|
|
269
|
-
* @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns
|
|
270
|
-
* <code>param</code> as is if <code>collectionFormat</code> is <code>multi</code>.
|
|
271
|
-
*/
|
|
272
|
-
exports.prototype.buildCollectionParam = function buildCollectionParam(param, collectionFormat) {
|
|
273
|
-
if (param == null) {
|
|
274
|
-
return null;
|
|
275
|
-
}
|
|
276
|
-
switch (collectionFormat) {
|
|
277
|
-
case 'csv':
|
|
278
|
-
return param.map(this.paramToString).join(',');
|
|
279
|
-
case 'ssv':
|
|
280
|
-
return param.map(this.paramToString).join(' ');
|
|
281
|
-
case 'tsv':
|
|
282
|
-
return param.map(this.paramToString).join('\t');
|
|
283
|
-
case 'pipes':
|
|
284
|
-
return param.map(this.paramToString).join('|');
|
|
285
|
-
case 'multi':
|
|
286
|
-
// return the array directly as SuperAgent will handle it as expected
|
|
287
|
-
return param.map(this.paramToString);
|
|
288
|
-
default:
|
|
289
|
-
throw new Error('Unknown collection format: ' + collectionFormat);
|
|
290
|
-
}
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* Applies authentication headers to the request.
|
|
295
|
-
* @param {Object} request The request object created by a <code>superagent()</code> call.
|
|
296
|
-
* @param {Array.<String>} authNames An array of authentication method names.
|
|
297
|
-
*/
|
|
298
|
-
exports.prototype.applyAuthToRequest = function(request, authNames) {
|
|
299
|
-
var _this = this;
|
|
300
|
-
authNames.forEach(function(authName) {
|
|
301
|
-
var auth = _this.authentications[authName];
|
|
302
|
-
switch (auth.type) {
|
|
303
|
-
case 'basic':
|
|
304
|
-
if (auth.username || auth.password) {
|
|
305
|
-
request.auth(auth.username || '', auth.password || '');
|
|
306
|
-
}
|
|
307
|
-
break;
|
|
308
|
-
case 'apiKey':
|
|
309
|
-
if (auth.apiKey) {
|
|
310
|
-
var data = {};
|
|
311
|
-
if (auth.apiKeyPrefix) {
|
|
312
|
-
data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey;
|
|
313
|
-
} else {
|
|
314
|
-
data[auth.name] = auth.apiKey;
|
|
315
|
-
}
|
|
316
|
-
if (auth['in'] === 'header') {
|
|
317
|
-
request.set(data);
|
|
318
|
-
} else {
|
|
319
|
-
request.query(data);
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
break;
|
|
323
|
-
case 'oauth2':
|
|
324
|
-
if (auth.accessToken) {
|
|
325
|
-
request.set({'Authorization': 'Bearer ' + auth.accessToken});
|
|
326
|
-
}
|
|
327
|
-
break;
|
|
328
|
-
default:
|
|
329
|
-
throw new Error('Unknown authentication type: ' + auth.type);
|
|
330
|
-
}
|
|
331
|
-
});
|
|
332
|
-
};
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* Deserializes an HTTP response body into a value of the specified type.
|
|
336
|
-
* @param {Object} response A SuperAgent response object.
|
|
337
|
-
* @param {(String|Array.<String>|Object.<String, Object>|Function)} returnType The type to return. Pass a string for simple types
|
|
338
|
-
* or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To
|
|
339
|
-
* return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:
|
|
340
|
-
* all properties on <code>data<code> will be converted to this type.
|
|
341
|
-
* @returns A value of the specified type.
|
|
342
|
-
*/
|
|
343
|
-
exports.prototype.deserialize = function deserialize(response, returnType) {
|
|
344
|
-
if (response == null || returnType == null || response.status == 204) {
|
|
345
|
-
return null;
|
|
346
|
-
}
|
|
347
|
-
// Rely on SuperAgent for parsing response body.
|
|
348
|
-
// See http://visionmedia.github.io/superagent/#parsing-response-bodies
|
|
349
|
-
var data = response.body;
|
|
350
|
-
if (data == null || (typeof data === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length)) {
|
|
351
|
-
// SuperAgent does not always produce a body; use the unparsed response as a fallback
|
|
352
|
-
data = response.text;
|
|
353
|
-
}
|
|
354
|
-
return exports.convertToType(data, returnType);
|
|
355
|
-
};
|
|
356
|
-
|
|
357
|
-
// Code added by Infosys dev team
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* This method will set the merchantConfig object global
|
|
361
|
-
*
|
|
362
|
-
* @param {Configuration} configObject merchantConfiguration properties.
|
|
363
|
-
*/
|
|
364
|
-
exports.prototype.setConfiguration = function (configObject) {
|
|
365
|
-
|
|
366
|
-
this.merchantConfig = new MerchantConfig(configObject);
|
|
367
|
-
this.constants = Constants;
|
|
368
|
-
this.basePath = this.constants.HTTP_URL_PREFIX + this.merchantConfig.getRequestHost();
|
|
369
|
-
this.logger = Logger.getLogger(this.merchantConfig, 'ApiClient');
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* This method is to generate headers for http and jwt authentication.
|
|
374
|
-
*
|
|
375
|
-
* @param {String} httpMethod
|
|
376
|
-
* @param {String} requestTarget
|
|
377
|
-
* @param {String} requestBody
|
|
378
|
-
*/
|
|
379
|
-
exports.prototype.callAuthenticationHeader = function (httpMethod, requestTarget, requestBody, headerParams) {
|
|
380
|
-
|
|
381
|
-
this.merchantConfig.setRequestTarget(requestTarget);
|
|
382
|
-
this.merchantConfig.setRequestType(httpMethod)
|
|
383
|
-
this.merchantConfig.setRequestJsonData(requestBody);
|
|
384
|
-
|
|
385
|
-
this.logger.info('Authentication Type : ' + this.merchantConfig.getAuthenticationType());
|
|
386
|
-
this.logger.info(this.constants.REQUEST_TYPE + ' : ' + httpMethod.toUpperCase());
|
|
387
|
-
|
|
388
|
-
var token = Authorization.getToken(this.merchantConfig, this.logger);
|
|
389
|
-
|
|
390
|
-
// var clientId = getClientId();
|
|
391
|
-
|
|
392
|
-
// headerParams['v-c-client-id'] = clientId;
|
|
393
|
-
|
|
394
|
-
// if (this.merchantConfig.getSolutionId() != null && this.merchantConfig.getSolutionId() != '') {
|
|
395
|
-
// headerParams['v-c-solution-id'] = this.merchantConfig.getSolutionId();
|
|
396
|
-
// }
|
|
397
|
-
|
|
398
|
-
if (this.merchantConfig.getAuthenticationType().toLowerCase() === this.constants.JWT) {
|
|
399
|
-
token = 'Bearer ' + token;
|
|
400
|
-
headerParams['Authorization'] = token;
|
|
401
|
-
this.logger.info(this.constants.AUTHORIZATION + ' : ' + token);
|
|
402
|
-
}
|
|
403
|
-
else if (this.merchantConfig.getAuthenticationType().toLowerCase() === this.constants.HTTP) {
|
|
404
|
-
var date = new Date(Date.now()).toUTCString();
|
|
405
|
-
|
|
406
|
-
if (httpMethod.toLowerCase() === this.constants.POST
|
|
407
|
-
|| httpMethod.toLowerCase() === this.constants.PATCH
|
|
408
|
-
|| httpMethod.toLowerCase() === this.constants.PUT) {
|
|
409
|
-
var digest = PayloadDigest.generateDigest(this.merchantConfig, this.logger);
|
|
410
|
-
digest = this.constants.SIGNATURE_ALGORITHAM + digest;
|
|
411
|
-
this.logger.info(this.constants.DIGEST + " : " + digest);
|
|
412
|
-
headerParams['digest'] = digest;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
headerParams['v-c-merchant-id'] = this.merchantConfig.getMerchantID();
|
|
416
|
-
headerParams['date'] = date;
|
|
417
|
-
headerParams['host'] = this.merchantConfig.getRequestHost();
|
|
418
|
-
headerParams['signature'] = token;
|
|
419
|
-
headerParams['User-Agent'] = this.constants.USER_AGENT_VALUE;
|
|
420
|
-
|
|
421
|
-
this.logger.info('v-c-merchant-id : ' + this.merchantConfig.getMerchantID());
|
|
422
|
-
this.logger.info('date : ' + date);
|
|
423
|
-
this.logger.info('host : ' + this.merchantConfig.getRequestHost());
|
|
424
|
-
this.logger.info('signature : ' + token);
|
|
425
|
-
this.logger.info('User-Agent : ' + headerParams['User-Agent']);
|
|
426
|
-
this.logger.info(this.constants.END_TRANSACTION);
|
|
427
|
-
}
|
|
428
|
-
else if (this.merchantConfig.getAuthenticationType().toLowerCase() === this.constants.OAUTH) {
|
|
429
|
-
token = 'Bearer ' + token;
|
|
430
|
-
headerParams['Authorization'] = token;
|
|
431
|
-
// this.logger.info(this.constants.AUTHORIZATION + ' : ' + token);
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
return headerParams;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
function getClientId() {
|
|
438
|
-
var packageInfo = require('./../package.json');
|
|
439
|
-
return "cybs-rest-sdk-node-" + packageInfo.version;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
* Callback function to receive the result of the operation.
|
|
444
|
-
* @callback module:ApiClient~callApiCallback
|
|
445
|
-
* @param {String} error Error message, if any.
|
|
446
|
-
* @param data The data returned by the service call.
|
|
447
|
-
* @param {String} response The complete HTTP response.
|
|
448
|
-
*/
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* Invokes the REST service using the supplied settings and parameters.
|
|
452
|
-
* @param {String} path The base URL to invoke.
|
|
453
|
-
* @param {String} httpMethod The HTTP method to use.
|
|
454
|
-
* @param {Object.<String, String>} pathParams A map of path parameters and their values.
|
|
455
|
-
* @param {Object.<String, Object>} queryParams A map of query parameters and their values.
|
|
456
|
-
* @param {Object.<String, Object>} headerParams A map of header parameters and their values.
|
|
457
|
-
* @param {Object.<String, Object>} formParams A map of form parameters and their values.
|
|
458
|
-
* @param {Object} bodyParam The value to pass as the request body.
|
|
459
|
-
* @param {Array.<String>} authNames An array of authentication type names.
|
|
460
|
-
* @param {Array.<String>} contentTypes An array of request MIME types.
|
|
461
|
-
* @param {Array.<String>} accepts An array of acceptable response MIME types.
|
|
462
|
-
* @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the
|
|
463
|
-
* constructor for a complex type.
|
|
464
|
-
* @param {module:ApiClient~callApiCallback} callback The callback function.
|
|
465
|
-
* @returns {Object} The SuperAgent request object.
|
|
466
|
-
*/
|
|
467
|
-
exports.prototype.callApi = function callApi(path, httpMethod, pathParams,
|
|
468
|
-
queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts,
|
|
469
|
-
returnType, callback) {
|
|
470
|
-
|
|
471
|
-
var _this = this;
|
|
472
|
-
var url = this.buildUrl(path, pathParams);
|
|
473
|
-
var useProxy = this.merchantConfig.getUseProxy();
|
|
474
|
-
var proxyAddress = this.merchantConfig.getProxyAddress();
|
|
475
|
-
var proxyPort = this.merchantConfig.getProxyPort();
|
|
476
|
-
var proxyUser = this.merchantConfig.getProxyUser();
|
|
477
|
-
var proxyPassword = this.merchantConfig.getProxyPassword();
|
|
478
|
-
var enableClientCert = this.merchantConfig.getEnableClientCert();
|
|
479
|
-
|
|
480
|
-
var request = superagent(httpMethod, url);
|
|
481
|
-
|
|
482
|
-
if (useProxy && (proxyAddress != null && proxyAddress != '')) {
|
|
483
|
-
require('superagent-proxy')(require('superagent'));
|
|
484
|
-
var request = superagent(httpMethod, url);
|
|
485
|
-
if ((proxyUser != null && proxyUser != '') && (proxyPassword!= null && proxyPassword != '')) {
|
|
486
|
-
var proxy = process.env.http_proxy || 'http://' + proxyUser + ':' + proxyPassword + '@' + proxyAddress + ':' + proxyPort;
|
|
487
|
-
}
|
|
488
|
-
else {
|
|
489
|
-
var proxy = process.env.http_proxy || 'http://' + proxyAddress + ':' + proxyPort;
|
|
490
|
-
}
|
|
491
|
-
request.proxy(proxy);
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
var fslib = require('fs');
|
|
495
|
-
var pathlib = require('path');
|
|
496
|
-
|
|
497
|
-
if(enableClientCert)
|
|
498
|
-
{
|
|
499
|
-
var certFile = pathlib.resolve(pathlib.join(this.merchantConfig.getClientCertDir(), this.merchantConfig.getSSLClientCert()));
|
|
500
|
-
var keyFile = pathlib.resolve(pathlib.join(this.merchantConfig.getClientCertDir(), this.merchantConfig.getPrivateKey()));
|
|
501
|
-
request.cert(fslib.readFileSync(certFile));
|
|
502
|
-
request.key(fslib.readFileSync(keyFile));
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
// apply authentications
|
|
506
|
-
this.applyAuthToRequest(request, authNames);
|
|
507
|
-
|
|
508
|
-
// set query parameters
|
|
509
|
-
if (httpMethod.toLowerCase() === this.constants.GET && this.cache === false) {
|
|
510
|
-
queryParams['_'] = new Date().getTime();
|
|
511
|
-
}
|
|
512
|
-
request.query(this.normalizeParams(queryParams));
|
|
513
|
-
|
|
514
|
-
/**
|
|
515
|
-
*added by infosys team, to generate requestTarget with pathParam
|
|
516
|
-
*/
|
|
517
|
-
var requestTarget = this.buildRequestTarget(path, pathParams, queryParams);
|
|
518
|
-
|
|
519
|
-
if (httpMethod.toLowerCase() === this.constants.POST
|
|
520
|
-
|| httpMethod.toLowerCase() === this.constants.PATCH
|
|
521
|
-
|| httpMethod.toLowerCase() === this.constants.PUT) {
|
|
522
|
-
bodyParam = JSON.stringify(bodyParam, null, 0);
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
if (this.merchantConfig.getAuthenticationType().toLowerCase() !== this.constants.MUTUAL_AUTH)
|
|
526
|
-
{
|
|
527
|
-
headerParams = this.callAuthenticationHeader(httpMethod, requestTarget, bodyParam, headerParams);
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
// set header parameters
|
|
531
|
-
request.set(this.defaultHeaders).set(this.normalizeParams(headerParams));
|
|
532
|
-
|
|
533
|
-
// set request timeout
|
|
534
|
-
request.timeout(this.timeout);
|
|
535
|
-
|
|
536
|
-
var contentType = this.jsonPreferredMime(contentTypes);
|
|
537
|
-
if (contentType) {
|
|
538
|
-
// Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746)
|
|
539
|
-
if(contentType != 'multipart/form-data') {
|
|
540
|
-
request.type(contentType);
|
|
541
|
-
}
|
|
542
|
-
} else if (!request.header['Content-Type']) {
|
|
543
|
-
request.type('application/json');
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
if (contentType === 'application/x-www-form-urlencoded') {
|
|
547
|
-
request.type('form');
|
|
548
|
-
formParams = bodyParam
|
|
549
|
-
request.send(JSON.parse(formParams));
|
|
550
|
-
} else if (contentType == 'multipart/form-data') {
|
|
551
|
-
var _formParams = this.normalizeParams(formParams);
|
|
552
|
-
for (var key in _formParams) {
|
|
553
|
-
if (_formParams.hasOwnProperty(key)) {
|
|
554
|
-
if (this.isFileParam(_formParams[key])) {
|
|
555
|
-
// file field
|
|
556
|
-
request.attach(key, _formParams[key]);
|
|
557
|
-
} else {
|
|
558
|
-
request.field(key, _formParams[key]);
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
} else if (bodyParam) {
|
|
563
|
-
request.send(bodyParam);
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
var accept = this.jsonPreferredMime(accepts);
|
|
567
|
-
|
|
568
|
-
if (this.acceptHeader) {
|
|
569
|
-
accept = this.acceptHeader;
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
if (accept) {
|
|
573
|
-
request.accept(accept);
|
|
574
|
-
/* Code for downloading file from stream */
|
|
575
|
-
if (accept === 'application/xml' || accept === 'text/csv') {
|
|
576
|
-
if (accept === 'application/xml') {
|
|
577
|
-
this.downloadFilePath = this.downloadFilePath + '.xml';
|
|
578
|
-
} else {
|
|
579
|
-
this.downloadFilePath = this.downloadFilePath + '.csv';
|
|
580
|
-
}
|
|
581
|
-
var fs = require('fs');
|
|
582
|
-
var stream = fs.createWriteStream(this.downloadFilePath);
|
|
583
|
-
request.send().pipe(stream);
|
|
584
|
-
request._endCalled = false;
|
|
585
|
-
// to create event for callback after write stream finishes
|
|
586
|
-
stream.on('finish',function(error)
|
|
587
|
-
{
|
|
588
|
-
callback(error);
|
|
589
|
-
});
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
if (returnType === 'Blob') {
|
|
594
|
-
request.responseType('blob');
|
|
595
|
-
} else if (returnType === 'String') {
|
|
596
|
-
request.responseType('string');
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
// Attach previously saved cookies, if enabled
|
|
600
|
-
if (this.enableCookies){
|
|
601
|
-
if (typeof window === 'undefined') {
|
|
602
|
-
this.agent.attachCookies(request);
|
|
603
|
-
}
|
|
604
|
-
else {
|
|
605
|
-
request.withCredentials();
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
request.end(function(error, response) {
|
|
611
|
-
if (callback) {
|
|
612
|
-
var data = null;
|
|
613
|
-
if (!error) {
|
|
614
|
-
try {
|
|
615
|
-
data = _this.deserialize(response, returnType);
|
|
616
|
-
if (_this.enableCookies && typeof window === 'undefined'){
|
|
617
|
-
_this.agent.saveCookies(response);
|
|
618
|
-
}
|
|
619
|
-
} catch (err) {
|
|
620
|
-
error = err;
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
callback(error, data, response);
|
|
624
|
-
}
|
|
625
|
-
});
|
|
626
|
-
|
|
627
|
-
return request;
|
|
628
|
-
};
|
|
629
|
-
|
|
630
|
-
/**
|
|
631
|
-
* Build request target required for the signature generation
|
|
632
|
-
* @param {String} path
|
|
633
|
-
* @param {Object} pathParams
|
|
634
|
-
*/
|
|
635
|
-
exports.prototype.buildRequestTarget = function (path, pathParams, queryParams) {
|
|
636
|
-
if (!path.match(/^\//)) {
|
|
637
|
-
path = '/' + path;
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
var _this = this;
|
|
641
|
-
var requestTarget = path.replace(/\{([\w-]+)\}/g, function (fullMatch, key) {
|
|
642
|
-
var value;
|
|
643
|
-
if (pathParams.hasOwnProperty(key)) {
|
|
644
|
-
value = _this.paramToString(pathParams[key]);
|
|
645
|
-
} else {
|
|
646
|
-
value = fullMatch;
|
|
647
|
-
}
|
|
648
|
-
return encodeURIComponent(value);
|
|
649
|
-
});
|
|
650
|
-
|
|
651
|
-
// added by infosys team, to generate requestTarget with queryParams
|
|
652
|
-
if (Object.keys(queryParams).length !== 0) {
|
|
653
|
-
var queryFlag = false;
|
|
654
|
-
var queryArray = [];
|
|
655
|
-
Object.keys(queryParams).forEach(function (prop) {
|
|
656
|
-
var val = queryParams[prop];
|
|
657
|
-
|
|
658
|
-
if (val !== undefined) {
|
|
659
|
-
queryArray[prop] = val;
|
|
660
|
-
queryFlag = true;
|
|
661
|
-
}
|
|
662
|
-
});
|
|
663
|
-
if (queryFlag)
|
|
664
|
-
requestTarget = requestTarget + '?' + querystring.stringify(queryArray);
|
|
665
|
-
}
|
|
666
|
-
return requestTarget;
|
|
667
|
-
};
|
|
668
|
-
|
|
669
|
-
/**
|
|
670
|
-
* Parses an ISO-8601 string representation of a date value.
|
|
671
|
-
* @param {String} str The date value as a string.
|
|
672
|
-
* @returns {Date} The parsed date object.
|
|
673
|
-
*/
|
|
674
|
-
exports.parseDate = function(str) {
|
|
675
|
-
return new Date(str.replace(/T/i, ' '));
|
|
676
|
-
};
|
|
677
|
-
|
|
678
|
-
/**
|
|
679
|
-
* Converts a value to the specified type.
|
|
680
|
-
* @param {(String|Object)} data The data to convert, as a string or object.
|
|
681
|
-
* @param {(String|Array.<String>|Object.<String, Object>|Function)} type The type to return. Pass a string for simple types
|
|
682
|
-
* or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To
|
|
683
|
-
* return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:
|
|
684
|
-
* all properties on <code>data<code> will be converted to this type.
|
|
685
|
-
* @returns An instance of the specified type or null or undefined if data is null or undefined.
|
|
686
|
-
*/
|
|
687
|
-
exports.convertToType = function(data, type) {
|
|
688
|
-
if (data === null || data === undefined)
|
|
689
|
-
return data
|
|
690
|
-
|
|
691
|
-
switch (type) {
|
|
692
|
-
case 'Boolean':
|
|
693
|
-
return Boolean(data);
|
|
694
|
-
case 'Integer':
|
|
695
|
-
return parseInt(data, 10);
|
|
696
|
-
case 'Number':
|
|
697
|
-
return parseFloat(data);
|
|
698
|
-
case 'String':
|
|
699
|
-
return String(data);
|
|
700
|
-
case 'Date':
|
|
701
|
-
return this.parseDate(String(data));
|
|
702
|
-
case 'Blob':
|
|
703
|
-
return data;
|
|
704
|
-
default:
|
|
705
|
-
if (type === Object) {
|
|
706
|
-
// generic object, return directly
|
|
707
|
-
return data;
|
|
708
|
-
} else if (typeof type === 'function') {
|
|
709
|
-
// for model type like: User
|
|
710
|
-
return type.constructFromObject(data);
|
|
711
|
-
} else if (Array.isArray(type)) {
|
|
712
|
-
// for array type like: ['String']
|
|
713
|
-
var itemType = type[0];
|
|
714
|
-
return data.map(function(item) {
|
|
715
|
-
return exports.convertToType(item, itemType);
|
|
716
|
-
});
|
|
717
|
-
} else if (typeof type === 'object') {
|
|
718
|
-
// for plain object type like: {'String': 'Integer'}
|
|
719
|
-
var keyType, valueType;
|
|
720
|
-
for (var k in type) {
|
|
721
|
-
if (type.hasOwnProperty(k)) {
|
|
722
|
-
keyType = k;
|
|
723
|
-
valueType = type[k];
|
|
724
|
-
break;
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
var result = {};
|
|
728
|
-
for (var k in data) {
|
|
729
|
-
if (data.hasOwnProperty(k)) {
|
|
730
|
-
var key = exports.convertToType(k, keyType);
|
|
731
|
-
var value = exports.convertToType(data[k], valueType);
|
|
732
|
-
result[key] = value;
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
return result;
|
|
736
|
-
} else {
|
|
737
|
-
// for unknown type, return the data directly
|
|
738
|
-
return data;
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
};
|
|
742
|
-
|
|
743
|
-
/**
|
|
744
|
-
* Constructs a new map or array model from REST data.
|
|
745
|
-
* @param data {Object|Array} The REST data.
|
|
746
|
-
* @param obj {Object|Array} The target object or array.
|
|
747
|
-
*/
|
|
748
|
-
exports.constructFromObject = function(data, obj, itemType) {
|
|
749
|
-
if (Array.isArray(data)) {
|
|
750
|
-
for (var i = 0; i < data.length; i++) {
|
|
751
|
-
if (data.hasOwnProperty(i))
|
|
752
|
-
obj[i] = exports.convertToType(data[i], itemType);
|
|
753
|
-
}
|
|
754
|
-
} else {
|
|
755
|
-
for (var k in data) {
|
|
756
|
-
if (data.hasOwnProperty(k))
|
|
757
|
-
obj[k] = exports.convertToType(data[k], itemType);
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
};
|
|
761
|
-
|
|
762
|
-
/**
|
|
763
|
-
* The default API client implementation.
|
|
764
|
-
* @type {module:ApiClient}
|
|
765
|
-
*/
|
|
766
|
-
exports.instance = new exports();
|
|
767
|
-
|
|
768
|
-
return exports;
|
|
769
|
-
}));
|
|
1
|
+
/**
|
|
2
|
+
* CyberSource Merged Spec
|
|
3
|
+
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 0.0.1
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
8
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
*
|
|
10
|
+
* Swagger Codegen version: 2.3.0
|
|
11
|
+
*
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
(function(root, factory) {
|
|
17
|
+
if (typeof define === 'function' && define.amd) {
|
|
18
|
+
// AMD. Register as an anonymous module.
|
|
19
|
+
define(['superagent', 'superagent-proxy', 'querystring', 'Authentication/MerchantConfig', 'Authentication/Logger', 'Authentication/Constants', 'Authentication/Authorization', 'Authentication/PayloadDigest'], factory);
|
|
20
|
+
} else if (typeof module === 'object' && module.exports) {
|
|
21
|
+
// CommonJS-like environments that support module.exports, like Node.
|
|
22
|
+
module.exports = factory(require('superagent'), require('superagent-proxy'), require('querystring'), require('./authentication/core/MerchantConfig'), require('./authentication/logging/Logger'), require('./authentication/util/Constants'), require('./authentication/core/Authorization'), require('./authentication/payloadDigest/DigestGenerator'));
|
|
23
|
+
} else {
|
|
24
|
+
// Browser globals (root is window)
|
|
25
|
+
if (!root.CyberSource) {
|
|
26
|
+
root.CyberSource = {};
|
|
27
|
+
}
|
|
28
|
+
root.CyberSource.ApiClient = factory(root.superagent, root.superagent_proxy, root.querystring, root.Authentication.MerchantConfig, root.Authentication.Logger, root.Authentication.Constants, root.Authentication.Authorization, root.Authentication.PayloadDigest);
|
|
29
|
+
}
|
|
30
|
+
}(this, function(superagent, superagent_proxy, querystring, MerchantConfig, Logger, Constants, Authorization, PayloadDigest) {
|
|
31
|
+
'use strict';
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @module ApiClient
|
|
35
|
+
* @version 0.0.1
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
40
|
+
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
41
|
+
* contents of this file should be regarded as internal but are documented for completeness.
|
|
42
|
+
* @alias module:ApiClient
|
|
43
|
+
* @class
|
|
44
|
+
*/
|
|
45
|
+
var exports = function() {
|
|
46
|
+
/**
|
|
47
|
+
* The base URL against which to resolve every API call's (relative) path.
|
|
48
|
+
* @type {String}
|
|
49
|
+
* @default https://apitest.cybersource.com
|
|
50
|
+
*/
|
|
51
|
+
this.basePath = 'https://apitest.cybersource.com'.replace(/\/+$/, '');
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* The authentication methods to be included for all API calls.
|
|
55
|
+
* @type {Array.<String>}
|
|
56
|
+
*/
|
|
57
|
+
this.authentications = {
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* The default HTTP headers to be included for all API calls.
|
|
61
|
+
* @type {Array.<String>}
|
|
62
|
+
* @default {}
|
|
63
|
+
*/
|
|
64
|
+
this.defaultHeaders = {};
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* The default HTTP timeout for all API calls.
|
|
68
|
+
* @type {Number}
|
|
69
|
+
* @default 60000
|
|
70
|
+
*/
|
|
71
|
+
this.timeout = 60000;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* If set to false an additional timestamp parameter is added to all API GET calls to
|
|
75
|
+
* prevent browser caching
|
|
76
|
+
* @type {Boolean}
|
|
77
|
+
* @default true
|
|
78
|
+
*/
|
|
79
|
+
this.cache = true;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* If set to true, the client will save the cookies from each server
|
|
83
|
+
* response, and return them in the next request.
|
|
84
|
+
* @default false
|
|
85
|
+
*/
|
|
86
|
+
this.enableCookies = false;
|
|
87
|
+
|
|
88
|
+
/*
|
|
89
|
+
* Used to save and return cookies in a node.js (non-browser) setting,
|
|
90
|
+
* if this.enableCookies is set to true.
|
|
91
|
+
*/
|
|
92
|
+
if (typeof window === 'undefined') {
|
|
93
|
+
this.agent = new superagent.agent();
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* The filepath where reports are downloaded
|
|
98
|
+
*/
|
|
99
|
+
this.downloadFilePath = '';
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* The user-defined Accept Header Type
|
|
103
|
+
*/
|
|
104
|
+
this.acceptHeader = '';
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Returns a string representation for an actual parameter.
|
|
109
|
+
* @param param The actual parameter.
|
|
110
|
+
* @returns {String} The string representation of <code>param</code>.
|
|
111
|
+
*/
|
|
112
|
+
exports.prototype.paramToString = function(param) {
|
|
113
|
+
if (param == undefined || param == null) {
|
|
114
|
+
return '';
|
|
115
|
+
}
|
|
116
|
+
if (param instanceof Date) {
|
|
117
|
+
return param.toJSON();
|
|
118
|
+
}
|
|
119
|
+
return param.toString();
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values.
|
|
124
|
+
* NOTE: query parameters are not handled here.
|
|
125
|
+
* @param {String} path The path to append to the base URL.
|
|
126
|
+
* @param {Object} pathParams The parameter values to append.
|
|
127
|
+
* @returns {String} The encoded path with parameter values substituted.
|
|
128
|
+
*/
|
|
129
|
+
exports.prototype.buildUrl = function(path, pathParams) {
|
|
130
|
+
if (!path.match(/^\//)) {
|
|
131
|
+
path = '/' + path;
|
|
132
|
+
}
|
|
133
|
+
var url = this.basePath + path;
|
|
134
|
+
var _this = this;
|
|
135
|
+
url = url.replace(/\{([\w-]+)\}/g, function(fullMatch, key) {
|
|
136
|
+
var value;
|
|
137
|
+
if (pathParams.hasOwnProperty(key)) {
|
|
138
|
+
value = _this.paramToString(pathParams[key]);
|
|
139
|
+
} else {
|
|
140
|
+
value = fullMatch;
|
|
141
|
+
}
|
|
142
|
+
return encodeURIComponent(value);
|
|
143
|
+
});
|
|
144
|
+
return url;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Checks whether the given content type represents JSON.<br>
|
|
149
|
+
* JSON content type examples:<br>
|
|
150
|
+
* <ul>
|
|
151
|
+
* <li>application/json</li>
|
|
152
|
+
* <li>application/json; charset=UTF8</li>
|
|
153
|
+
* <li>APPLICATION/JSON</li>
|
|
154
|
+
* </ul>
|
|
155
|
+
* @param {String} contentType The MIME content type to check.
|
|
156
|
+
* @returns {Boolean} <code>true</code> if <code>contentType</code> represents JSON, otherwise <code>false</code>.
|
|
157
|
+
*/
|
|
158
|
+
exports.prototype.isJsonMime = function(contentType) {
|
|
159
|
+
return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i));
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.
|
|
164
|
+
* @param {Array.<String>} contentTypes
|
|
165
|
+
* @returns {String} The chosen content type, preferring JSON.
|
|
166
|
+
*/
|
|
167
|
+
exports.prototype.jsonPreferredMime = function(contentTypes) {
|
|
168
|
+
for (var i = 0; i < contentTypes.length; i++) {
|
|
169
|
+
if (this.isJsonMime(contentTypes[i])) {
|
|
170
|
+
return contentTypes[i];
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return contentTypes[0];
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Checks whether the given parameter value represents file-like content.
|
|
178
|
+
* @param param The parameter to check.
|
|
179
|
+
* @returns {Boolean} <code>true</code> if <code>param</code> represents a file.
|
|
180
|
+
*/
|
|
181
|
+
exports.prototype.isFileParam = function(param) {
|
|
182
|
+
// fs.ReadStream in Node.js and Electron (but not in runtime like browserify)
|
|
183
|
+
if (typeof require === 'function') {
|
|
184
|
+
var fs;
|
|
185
|
+
try {
|
|
186
|
+
fs = require('fs');
|
|
187
|
+
} catch (err) {}
|
|
188
|
+
if (fs && fs.ReadStream && param instanceof fs.ReadStream) {
|
|
189
|
+
return true;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
// Buffer in Node.js
|
|
193
|
+
if (typeof Buffer === 'function' && param instanceof Buffer) {
|
|
194
|
+
return true;
|
|
195
|
+
}
|
|
196
|
+
// Blob in browser
|
|
197
|
+
if (typeof Blob === 'function' && param instanceof Blob) {
|
|
198
|
+
return true;
|
|
199
|
+
}
|
|
200
|
+
// File in browser (it seems File object is also instance of Blob, but keep this for safe)
|
|
201
|
+
if (typeof File === 'function' && param instanceof File) {
|
|
202
|
+
return true;
|
|
203
|
+
}
|
|
204
|
+
return false;
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Normalizes parameter values:
|
|
209
|
+
* <ul>
|
|
210
|
+
* <li>remove nils</li>
|
|
211
|
+
* <li>keep files and arrays</li>
|
|
212
|
+
* <li>format to string with `paramToString` for other cases</li>
|
|
213
|
+
* </ul>
|
|
214
|
+
* @param {Object.<String, Object>} params The parameters as object properties.
|
|
215
|
+
* @returns {Object.<String, Object>} normalized parameters.
|
|
216
|
+
*/
|
|
217
|
+
exports.prototype.normalizeParams = function(params) {
|
|
218
|
+
var newParams = {};
|
|
219
|
+
for (var key in params) {
|
|
220
|
+
if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) {
|
|
221
|
+
var value = params[key];
|
|
222
|
+
if (this.isFileParam(value) || Array.isArray(value)) {
|
|
223
|
+
newParams[key] = value;
|
|
224
|
+
} else {
|
|
225
|
+
newParams[key] = this.paramToString(value);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
return newParams;
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Enumeration of collection format separator strategies.
|
|
234
|
+
* @enum {String}
|
|
235
|
+
* @readonly
|
|
236
|
+
*/
|
|
237
|
+
exports.CollectionFormatEnum = {
|
|
238
|
+
/**
|
|
239
|
+
* Comma-separated values. Value: <code>csv</code>
|
|
240
|
+
* @const
|
|
241
|
+
*/
|
|
242
|
+
CSV: ',',
|
|
243
|
+
/**
|
|
244
|
+
* Space-separated values. Value: <code>ssv</code>
|
|
245
|
+
* @const
|
|
246
|
+
*/
|
|
247
|
+
SSV: ' ',
|
|
248
|
+
/**
|
|
249
|
+
* Tab-separated values. Value: <code>tsv</code>
|
|
250
|
+
* @const
|
|
251
|
+
*/
|
|
252
|
+
TSV: '\t',
|
|
253
|
+
/**
|
|
254
|
+
* Pipe(|)-separated values. Value: <code>pipes</code>
|
|
255
|
+
* @const
|
|
256
|
+
*/
|
|
257
|
+
PIPES: '|',
|
|
258
|
+
/**
|
|
259
|
+
* Native array. Value: <code>multi</code>
|
|
260
|
+
* @const
|
|
261
|
+
*/
|
|
262
|
+
MULTI: 'multi'
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Builds a string representation of an array-type actual parameter, according to the given collection format.
|
|
267
|
+
* @param {Array} param An array parameter.
|
|
268
|
+
* @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy.
|
|
269
|
+
* @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns
|
|
270
|
+
* <code>param</code> as is if <code>collectionFormat</code> is <code>multi</code>.
|
|
271
|
+
*/
|
|
272
|
+
exports.prototype.buildCollectionParam = function buildCollectionParam(param, collectionFormat) {
|
|
273
|
+
if (param == null) {
|
|
274
|
+
return null;
|
|
275
|
+
}
|
|
276
|
+
switch (collectionFormat) {
|
|
277
|
+
case 'csv':
|
|
278
|
+
return param.map(this.paramToString).join(',');
|
|
279
|
+
case 'ssv':
|
|
280
|
+
return param.map(this.paramToString).join(' ');
|
|
281
|
+
case 'tsv':
|
|
282
|
+
return param.map(this.paramToString).join('\t');
|
|
283
|
+
case 'pipes':
|
|
284
|
+
return param.map(this.paramToString).join('|');
|
|
285
|
+
case 'multi':
|
|
286
|
+
// return the array directly as SuperAgent will handle it as expected
|
|
287
|
+
return param.map(this.paramToString);
|
|
288
|
+
default:
|
|
289
|
+
throw new Error('Unknown collection format: ' + collectionFormat);
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Applies authentication headers to the request.
|
|
295
|
+
* @param {Object} request The request object created by a <code>superagent()</code> call.
|
|
296
|
+
* @param {Array.<String>} authNames An array of authentication method names.
|
|
297
|
+
*/
|
|
298
|
+
exports.prototype.applyAuthToRequest = function(request, authNames) {
|
|
299
|
+
var _this = this;
|
|
300
|
+
authNames.forEach(function(authName) {
|
|
301
|
+
var auth = _this.authentications[authName];
|
|
302
|
+
switch (auth.type) {
|
|
303
|
+
case 'basic':
|
|
304
|
+
if (auth.username || auth.password) {
|
|
305
|
+
request.auth(auth.username || '', auth.password || '');
|
|
306
|
+
}
|
|
307
|
+
break;
|
|
308
|
+
case 'apiKey':
|
|
309
|
+
if (auth.apiKey) {
|
|
310
|
+
var data = {};
|
|
311
|
+
if (auth.apiKeyPrefix) {
|
|
312
|
+
data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey;
|
|
313
|
+
} else {
|
|
314
|
+
data[auth.name] = auth.apiKey;
|
|
315
|
+
}
|
|
316
|
+
if (auth['in'] === 'header') {
|
|
317
|
+
request.set(data);
|
|
318
|
+
} else {
|
|
319
|
+
request.query(data);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
break;
|
|
323
|
+
case 'oauth2':
|
|
324
|
+
if (auth.accessToken) {
|
|
325
|
+
request.set({'Authorization': 'Bearer ' + auth.accessToken});
|
|
326
|
+
}
|
|
327
|
+
break;
|
|
328
|
+
default:
|
|
329
|
+
throw new Error('Unknown authentication type: ' + auth.type);
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Deserializes an HTTP response body into a value of the specified type.
|
|
336
|
+
* @param {Object} response A SuperAgent response object.
|
|
337
|
+
* @param {(String|Array.<String>|Object.<String, Object>|Function)} returnType The type to return. Pass a string for simple types
|
|
338
|
+
* or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To
|
|
339
|
+
* return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:
|
|
340
|
+
* all properties on <code>data<code> will be converted to this type.
|
|
341
|
+
* @returns A value of the specified type.
|
|
342
|
+
*/
|
|
343
|
+
exports.prototype.deserialize = function deserialize(response, returnType) {
|
|
344
|
+
if (response == null || returnType == null || response.status == 204) {
|
|
345
|
+
return null;
|
|
346
|
+
}
|
|
347
|
+
// Rely on SuperAgent for parsing response body.
|
|
348
|
+
// See http://visionmedia.github.io/superagent/#parsing-response-bodies
|
|
349
|
+
var data = response.body;
|
|
350
|
+
if (data == null || (typeof data === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length)) {
|
|
351
|
+
// SuperAgent does not always produce a body; use the unparsed response as a fallback
|
|
352
|
+
data = response.text;
|
|
353
|
+
}
|
|
354
|
+
return exports.convertToType(data, returnType);
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
// Code added by Infosys dev team
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* This method will set the merchantConfig object global
|
|
361
|
+
*
|
|
362
|
+
* @param {Configuration} configObject merchantConfiguration properties.
|
|
363
|
+
*/
|
|
364
|
+
exports.prototype.setConfiguration = function (configObject) {
|
|
365
|
+
|
|
366
|
+
this.merchantConfig = new MerchantConfig(configObject);
|
|
367
|
+
this.constants = Constants;
|
|
368
|
+
this.basePath = this.constants.HTTP_URL_PREFIX + this.merchantConfig.getRequestHost();
|
|
369
|
+
this.logger = Logger.getLogger(this.merchantConfig, 'ApiClient');
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* This method is to generate headers for http and jwt authentication.
|
|
374
|
+
*
|
|
375
|
+
* @param {String} httpMethod
|
|
376
|
+
* @param {String} requestTarget
|
|
377
|
+
* @param {String} requestBody
|
|
378
|
+
*/
|
|
379
|
+
exports.prototype.callAuthenticationHeader = function (httpMethod, requestTarget, requestBody, headerParams) {
|
|
380
|
+
|
|
381
|
+
this.merchantConfig.setRequestTarget(requestTarget);
|
|
382
|
+
this.merchantConfig.setRequestType(httpMethod)
|
|
383
|
+
this.merchantConfig.setRequestJsonData(requestBody);
|
|
384
|
+
|
|
385
|
+
this.logger.info('Authentication Type : ' + this.merchantConfig.getAuthenticationType());
|
|
386
|
+
this.logger.info(this.constants.REQUEST_TYPE + ' : ' + httpMethod.toUpperCase());
|
|
387
|
+
|
|
388
|
+
var token = Authorization.getToken(this.merchantConfig, this.logger);
|
|
389
|
+
|
|
390
|
+
// var clientId = getClientId();
|
|
391
|
+
|
|
392
|
+
// headerParams['v-c-client-id'] = clientId;
|
|
393
|
+
|
|
394
|
+
// if (this.merchantConfig.getSolutionId() != null && this.merchantConfig.getSolutionId() != '') {
|
|
395
|
+
// headerParams['v-c-solution-id'] = this.merchantConfig.getSolutionId();
|
|
396
|
+
// }
|
|
397
|
+
|
|
398
|
+
if (this.merchantConfig.getAuthenticationType().toLowerCase() === this.constants.JWT) {
|
|
399
|
+
token = 'Bearer ' + token;
|
|
400
|
+
headerParams['Authorization'] = token;
|
|
401
|
+
this.logger.info(this.constants.AUTHORIZATION + ' : ' + token);
|
|
402
|
+
}
|
|
403
|
+
else if (this.merchantConfig.getAuthenticationType().toLowerCase() === this.constants.HTTP) {
|
|
404
|
+
var date = new Date(Date.now()).toUTCString();
|
|
405
|
+
|
|
406
|
+
if (httpMethod.toLowerCase() === this.constants.POST
|
|
407
|
+
|| httpMethod.toLowerCase() === this.constants.PATCH
|
|
408
|
+
|| httpMethod.toLowerCase() === this.constants.PUT) {
|
|
409
|
+
var digest = PayloadDigest.generateDigest(this.merchantConfig, this.logger);
|
|
410
|
+
digest = this.constants.SIGNATURE_ALGORITHAM + digest;
|
|
411
|
+
this.logger.info(this.constants.DIGEST + " : " + digest);
|
|
412
|
+
headerParams['digest'] = digest;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
headerParams['v-c-merchant-id'] = this.merchantConfig.getMerchantID();
|
|
416
|
+
headerParams['date'] = date;
|
|
417
|
+
headerParams['host'] = this.merchantConfig.getRequestHost();
|
|
418
|
+
headerParams['signature'] = token;
|
|
419
|
+
headerParams['User-Agent'] = this.constants.USER_AGENT_VALUE;
|
|
420
|
+
|
|
421
|
+
this.logger.info('v-c-merchant-id : ' + this.merchantConfig.getMerchantID());
|
|
422
|
+
this.logger.info('date : ' + date);
|
|
423
|
+
this.logger.info('host : ' + this.merchantConfig.getRequestHost());
|
|
424
|
+
this.logger.info('signature : ' + token);
|
|
425
|
+
this.logger.info('User-Agent : ' + headerParams['User-Agent']);
|
|
426
|
+
this.logger.info(this.constants.END_TRANSACTION);
|
|
427
|
+
}
|
|
428
|
+
else if (this.merchantConfig.getAuthenticationType().toLowerCase() === this.constants.OAUTH) {
|
|
429
|
+
token = 'Bearer ' + token;
|
|
430
|
+
headerParams['Authorization'] = token;
|
|
431
|
+
// this.logger.info(this.constants.AUTHORIZATION + ' : ' + token);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
return headerParams;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
function getClientId() {
|
|
438
|
+
var packageInfo = require('./../package.json');
|
|
439
|
+
return "cybs-rest-sdk-node-" + packageInfo.version;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Callback function to receive the result of the operation.
|
|
444
|
+
* @callback module:ApiClient~callApiCallback
|
|
445
|
+
* @param {String} error Error message, if any.
|
|
446
|
+
* @param data The data returned by the service call.
|
|
447
|
+
* @param {String} response The complete HTTP response.
|
|
448
|
+
*/
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Invokes the REST service using the supplied settings and parameters.
|
|
452
|
+
* @param {String} path The base URL to invoke.
|
|
453
|
+
* @param {String} httpMethod The HTTP method to use.
|
|
454
|
+
* @param {Object.<String, String>} pathParams A map of path parameters and their values.
|
|
455
|
+
* @param {Object.<String, Object>} queryParams A map of query parameters and their values.
|
|
456
|
+
* @param {Object.<String, Object>} headerParams A map of header parameters and their values.
|
|
457
|
+
* @param {Object.<String, Object>} formParams A map of form parameters and their values.
|
|
458
|
+
* @param {Object} bodyParam The value to pass as the request body.
|
|
459
|
+
* @param {Array.<String>} authNames An array of authentication type names.
|
|
460
|
+
* @param {Array.<String>} contentTypes An array of request MIME types.
|
|
461
|
+
* @param {Array.<String>} accepts An array of acceptable response MIME types.
|
|
462
|
+
* @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the
|
|
463
|
+
* constructor for a complex type.
|
|
464
|
+
* @param {module:ApiClient~callApiCallback} callback The callback function.
|
|
465
|
+
* @returns {Object} The SuperAgent request object.
|
|
466
|
+
*/
|
|
467
|
+
exports.prototype.callApi = function callApi(path, httpMethod, pathParams,
|
|
468
|
+
queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts,
|
|
469
|
+
returnType, callback) {
|
|
470
|
+
|
|
471
|
+
var _this = this;
|
|
472
|
+
var url = this.buildUrl(path, pathParams);
|
|
473
|
+
var useProxy = this.merchantConfig.getUseProxy();
|
|
474
|
+
var proxyAddress = this.merchantConfig.getProxyAddress();
|
|
475
|
+
var proxyPort = this.merchantConfig.getProxyPort();
|
|
476
|
+
var proxyUser = this.merchantConfig.getProxyUser();
|
|
477
|
+
var proxyPassword = this.merchantConfig.getProxyPassword();
|
|
478
|
+
var enableClientCert = this.merchantConfig.getEnableClientCert();
|
|
479
|
+
|
|
480
|
+
var request = superagent(httpMethod, url);
|
|
481
|
+
|
|
482
|
+
if (useProxy && (proxyAddress != null && proxyAddress != '')) {
|
|
483
|
+
require('superagent-proxy')(require('superagent'));
|
|
484
|
+
var request = superagent(httpMethod, url);
|
|
485
|
+
if ((proxyUser != null && proxyUser != '') && (proxyPassword!= null && proxyPassword != '')) {
|
|
486
|
+
var proxy = process.env.http_proxy || 'http://' + proxyUser + ':' + proxyPassword + '@' + proxyAddress + ':' + proxyPort;
|
|
487
|
+
}
|
|
488
|
+
else {
|
|
489
|
+
var proxy = process.env.http_proxy || 'http://' + proxyAddress + ':' + proxyPort;
|
|
490
|
+
}
|
|
491
|
+
request.proxy(proxy);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
var fslib = require('fs');
|
|
495
|
+
var pathlib = require('path');
|
|
496
|
+
|
|
497
|
+
if(enableClientCert)
|
|
498
|
+
{
|
|
499
|
+
var certFile = pathlib.resolve(pathlib.join(this.merchantConfig.getClientCertDir(), this.merchantConfig.getSSLClientCert()));
|
|
500
|
+
var keyFile = pathlib.resolve(pathlib.join(this.merchantConfig.getClientCertDir(), this.merchantConfig.getPrivateKey()));
|
|
501
|
+
request.cert(fslib.readFileSync(certFile));
|
|
502
|
+
request.key(fslib.readFileSync(keyFile));
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
// apply authentications
|
|
506
|
+
this.applyAuthToRequest(request, authNames);
|
|
507
|
+
|
|
508
|
+
// set query parameters
|
|
509
|
+
if (httpMethod.toLowerCase() === this.constants.GET && this.cache === false) {
|
|
510
|
+
queryParams['_'] = new Date().getTime();
|
|
511
|
+
}
|
|
512
|
+
request.query(this.normalizeParams(queryParams));
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
*added by infosys team, to generate requestTarget with pathParam
|
|
516
|
+
*/
|
|
517
|
+
var requestTarget = this.buildRequestTarget(path, pathParams, queryParams);
|
|
518
|
+
|
|
519
|
+
if (httpMethod.toLowerCase() === this.constants.POST
|
|
520
|
+
|| httpMethod.toLowerCase() === this.constants.PATCH
|
|
521
|
+
|| httpMethod.toLowerCase() === this.constants.PUT) {
|
|
522
|
+
bodyParam = JSON.stringify(bodyParam, null, 0);
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
if (this.merchantConfig.getAuthenticationType().toLowerCase() !== this.constants.MUTUAL_AUTH)
|
|
526
|
+
{
|
|
527
|
+
headerParams = this.callAuthenticationHeader(httpMethod, requestTarget, bodyParam, headerParams);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
// set header parameters
|
|
531
|
+
request.set(this.defaultHeaders).set(this.normalizeParams(headerParams));
|
|
532
|
+
|
|
533
|
+
// set request timeout
|
|
534
|
+
request.timeout(this.timeout);
|
|
535
|
+
|
|
536
|
+
var contentType = this.jsonPreferredMime(contentTypes);
|
|
537
|
+
if (contentType) {
|
|
538
|
+
// Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746)
|
|
539
|
+
if(contentType != 'multipart/form-data') {
|
|
540
|
+
request.type(contentType);
|
|
541
|
+
}
|
|
542
|
+
} else if (!request.header['Content-Type']) {
|
|
543
|
+
request.type('application/json');
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
if (contentType === 'application/x-www-form-urlencoded') {
|
|
547
|
+
request.type('form');
|
|
548
|
+
formParams = bodyParam
|
|
549
|
+
request.send(JSON.parse(formParams));
|
|
550
|
+
} else if (contentType == 'multipart/form-data') {
|
|
551
|
+
var _formParams = this.normalizeParams(formParams);
|
|
552
|
+
for (var key in _formParams) {
|
|
553
|
+
if (_formParams.hasOwnProperty(key)) {
|
|
554
|
+
if (this.isFileParam(_formParams[key])) {
|
|
555
|
+
// file field
|
|
556
|
+
request.attach(key, _formParams[key]);
|
|
557
|
+
} else {
|
|
558
|
+
request.field(key, _formParams[key]);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
} else if (bodyParam) {
|
|
563
|
+
request.send(bodyParam);
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
var accept = this.jsonPreferredMime(accepts);
|
|
567
|
+
|
|
568
|
+
if (this.acceptHeader) {
|
|
569
|
+
accept = this.acceptHeader;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
if (accept) {
|
|
573
|
+
request.accept(accept);
|
|
574
|
+
/* Code for downloading file from stream */
|
|
575
|
+
if (accept === 'application/xml' || accept === 'text/csv') {
|
|
576
|
+
if (accept === 'application/xml') {
|
|
577
|
+
this.downloadFilePath = this.downloadFilePath + '.xml';
|
|
578
|
+
} else {
|
|
579
|
+
this.downloadFilePath = this.downloadFilePath + '.csv';
|
|
580
|
+
}
|
|
581
|
+
var fs = require('fs');
|
|
582
|
+
var stream = fs.createWriteStream(this.downloadFilePath);
|
|
583
|
+
request.send().pipe(stream);
|
|
584
|
+
request._endCalled = false;
|
|
585
|
+
// to create event for callback after write stream finishes
|
|
586
|
+
stream.on('finish',function(error)
|
|
587
|
+
{
|
|
588
|
+
callback(error);
|
|
589
|
+
});
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
if (returnType === 'Blob') {
|
|
594
|
+
request.responseType('blob');
|
|
595
|
+
} else if (returnType === 'String') {
|
|
596
|
+
request.responseType('string');
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
// Attach previously saved cookies, if enabled
|
|
600
|
+
if (this.enableCookies){
|
|
601
|
+
if (typeof window === 'undefined') {
|
|
602
|
+
this.agent.attachCookies(request);
|
|
603
|
+
}
|
|
604
|
+
else {
|
|
605
|
+
request.withCredentials();
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
request.end(function(error, response) {
|
|
611
|
+
if (callback) {
|
|
612
|
+
var data = null;
|
|
613
|
+
if (!error) {
|
|
614
|
+
try {
|
|
615
|
+
data = _this.deserialize(response, returnType);
|
|
616
|
+
if (_this.enableCookies && typeof window === 'undefined'){
|
|
617
|
+
_this.agent.saveCookies(response);
|
|
618
|
+
}
|
|
619
|
+
} catch (err) {
|
|
620
|
+
error = err;
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
callback(error, data, response);
|
|
624
|
+
}
|
|
625
|
+
});
|
|
626
|
+
|
|
627
|
+
return request;
|
|
628
|
+
};
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Build request target required for the signature generation
|
|
632
|
+
* @param {String} path
|
|
633
|
+
* @param {Object} pathParams
|
|
634
|
+
*/
|
|
635
|
+
exports.prototype.buildRequestTarget = function (path, pathParams, queryParams) {
|
|
636
|
+
if (!path.match(/^\//)) {
|
|
637
|
+
path = '/' + path;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
var _this = this;
|
|
641
|
+
var requestTarget = path.replace(/\{([\w-]+)\}/g, function (fullMatch, key) {
|
|
642
|
+
var value;
|
|
643
|
+
if (pathParams.hasOwnProperty(key)) {
|
|
644
|
+
value = _this.paramToString(pathParams[key]);
|
|
645
|
+
} else {
|
|
646
|
+
value = fullMatch;
|
|
647
|
+
}
|
|
648
|
+
return encodeURIComponent(value);
|
|
649
|
+
});
|
|
650
|
+
|
|
651
|
+
// added by infosys team, to generate requestTarget with queryParams
|
|
652
|
+
if (Object.keys(queryParams).length !== 0) {
|
|
653
|
+
var queryFlag = false;
|
|
654
|
+
var queryArray = [];
|
|
655
|
+
Object.keys(queryParams).forEach(function (prop) {
|
|
656
|
+
var val = queryParams[prop];
|
|
657
|
+
|
|
658
|
+
if (val !== undefined) {
|
|
659
|
+
queryArray[prop] = val;
|
|
660
|
+
queryFlag = true;
|
|
661
|
+
}
|
|
662
|
+
});
|
|
663
|
+
if (queryFlag)
|
|
664
|
+
requestTarget = requestTarget + '?' + querystring.stringify(queryArray);
|
|
665
|
+
}
|
|
666
|
+
return requestTarget;
|
|
667
|
+
};
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* Parses an ISO-8601 string representation of a date value.
|
|
671
|
+
* @param {String} str The date value as a string.
|
|
672
|
+
* @returns {Date} The parsed date object.
|
|
673
|
+
*/
|
|
674
|
+
exports.parseDate = function(str) {
|
|
675
|
+
return new Date(str.replace(/T/i, ' '));
|
|
676
|
+
};
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Converts a value to the specified type.
|
|
680
|
+
* @param {(String|Object)} data The data to convert, as a string or object.
|
|
681
|
+
* @param {(String|Array.<String>|Object.<String, Object>|Function)} type The type to return. Pass a string for simple types
|
|
682
|
+
* or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To
|
|
683
|
+
* return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:
|
|
684
|
+
* all properties on <code>data<code> will be converted to this type.
|
|
685
|
+
* @returns An instance of the specified type or null or undefined if data is null or undefined.
|
|
686
|
+
*/
|
|
687
|
+
exports.convertToType = function(data, type) {
|
|
688
|
+
if (data === null || data === undefined)
|
|
689
|
+
return data
|
|
690
|
+
|
|
691
|
+
switch (type) {
|
|
692
|
+
case 'Boolean':
|
|
693
|
+
return Boolean(data);
|
|
694
|
+
case 'Integer':
|
|
695
|
+
return parseInt(data, 10);
|
|
696
|
+
case 'Number':
|
|
697
|
+
return parseFloat(data);
|
|
698
|
+
case 'String':
|
|
699
|
+
return String(data);
|
|
700
|
+
case 'Date':
|
|
701
|
+
return this.parseDate(String(data));
|
|
702
|
+
case 'Blob':
|
|
703
|
+
return data;
|
|
704
|
+
default:
|
|
705
|
+
if (type === Object) {
|
|
706
|
+
// generic object, return directly
|
|
707
|
+
return data;
|
|
708
|
+
} else if (typeof type === 'function') {
|
|
709
|
+
// for model type like: User
|
|
710
|
+
return type.constructFromObject(data);
|
|
711
|
+
} else if (Array.isArray(type)) {
|
|
712
|
+
// for array type like: ['String']
|
|
713
|
+
var itemType = type[0];
|
|
714
|
+
return data.map(function(item) {
|
|
715
|
+
return exports.convertToType(item, itemType);
|
|
716
|
+
});
|
|
717
|
+
} else if (typeof type === 'object') {
|
|
718
|
+
// for plain object type like: {'String': 'Integer'}
|
|
719
|
+
var keyType, valueType;
|
|
720
|
+
for (var k in type) {
|
|
721
|
+
if (type.hasOwnProperty(k)) {
|
|
722
|
+
keyType = k;
|
|
723
|
+
valueType = type[k];
|
|
724
|
+
break;
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
var result = {};
|
|
728
|
+
for (var k in data) {
|
|
729
|
+
if (data.hasOwnProperty(k)) {
|
|
730
|
+
var key = exports.convertToType(k, keyType);
|
|
731
|
+
var value = exports.convertToType(data[k], valueType);
|
|
732
|
+
result[key] = value;
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
return result;
|
|
736
|
+
} else {
|
|
737
|
+
// for unknown type, return the data directly
|
|
738
|
+
return data;
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
};
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* Constructs a new map or array model from REST data.
|
|
745
|
+
* @param data {Object|Array} The REST data.
|
|
746
|
+
* @param obj {Object|Array} The target object or array.
|
|
747
|
+
*/
|
|
748
|
+
exports.constructFromObject = function(data, obj, itemType) {
|
|
749
|
+
if (Array.isArray(data)) {
|
|
750
|
+
for (var i = 0; i < data.length; i++) {
|
|
751
|
+
if (data.hasOwnProperty(i))
|
|
752
|
+
obj[i] = exports.convertToType(data[i], itemType);
|
|
753
|
+
}
|
|
754
|
+
} else {
|
|
755
|
+
for (var k in data) {
|
|
756
|
+
if (data.hasOwnProperty(k))
|
|
757
|
+
obj[k] = exports.convertToType(data[k], itemType);
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
};
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* The default API client implementation.
|
|
764
|
+
* @type {module:ApiClient}
|
|
765
|
+
*/
|
|
766
|
+
exports.instance = new exports();
|
|
767
|
+
|
|
768
|
+
return exports;
|
|
769
|
+
}));
|