diff --git a/.gitignore b/.gitignore index 6b7ba29..77a925b 100644 --- a/.gitignore +++ b/.gitignore @@ -62,5 +62,6 @@ typings/ .DS_Store .idea ts/**/*.js +js/ example.png diff --git a/js/index.d.ts b/js/index.d.ts deleted file mode 100644 index 62ccf50..0000000 --- a/js/index.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * @file Automatically generated by barrelsby. - */ -export * from './src/FormBuilder'; -export * from './src/FormContainer'; -export * from './src/PaymentAPI'; -export * from './src/PaymentHighwayUtility'; -export * from './src/model/Splitting'; -export * from './src/model/Token'; -export * from './src/model/request/AfterPayCommitTransactionRequest'; -export * from './src/model/request/AfterPayRevertTransactionRequest'; -export * from './src/model/request/ApplePayTransactionRequest'; -export * from './src/model/request/Card'; -export * from './src/model/request/ChargeCitRequest'; -export * from './src/model/request/ChargeMitRequest'; -export * from './src/model/request/CommitTransactionRequest'; -export * from './src/model/request/Customer'; -export * from './src/model/request/MobilePayInitRequest'; -export * from './src/model/request/PhRequest'; -export * from './src/model/request/PivoInitRequest'; -export * from './src/model/request/RevertPivoTransactionRequest'; -export * from './src/model/request/RevertTransactionRequest'; -export * from './src/model/request/TransactionRequest'; -export * from './src/model/request/applepay/PaymentData'; -export * from './src/model/request/applepay/PaymentDataHeader'; -export * from './src/model/request/sca/Address'; -export * from './src/model/request/sca/CustomerAccount'; -export * from './src/model/request/sca/CustomerAuthenticationInfo'; -export * from './src/model/request/sca/CustomerDetails'; -export * from './src/model/request/sca/PhoneNumber'; -export * from './src/model/request/sca/Purchase'; -export * from './src/model/request/sca/ReturnUrls'; -export * from './src/model/request/sca/StrongCustomerAuthentication'; -export * from './src/security/SecureSigner'; diff --git a/js/index.js b/js/index.js deleted file mode 100644 index 584796d..0000000 --- a/js/index.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -/** - * @file Automatically generated by barrelsby. - */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./src/FormBuilder"), exports); -__exportStar(require("./src/FormContainer"), exports); -__exportStar(require("./src/PaymentAPI"), exports); -__exportStar(require("./src/PaymentHighwayUtility"), exports); -__exportStar(require("./src/model/Splitting"), exports); -__exportStar(require("./src/model/Token"), exports); -__exportStar(require("./src/model/request/AfterPayCommitTransactionRequest"), exports); -__exportStar(require("./src/model/request/AfterPayRevertTransactionRequest"), exports); -__exportStar(require("./src/model/request/ApplePayTransactionRequest"), exports); -__exportStar(require("./src/model/request/Card"), exports); -__exportStar(require("./src/model/request/ChargeCitRequest"), exports); -__exportStar(require("./src/model/request/ChargeMitRequest"), exports); -__exportStar(require("./src/model/request/CommitTransactionRequest"), exports); -__exportStar(require("./src/model/request/Customer"), exports); -__exportStar(require("./src/model/request/MobilePayInitRequest"), exports); -__exportStar(require("./src/model/request/PhRequest"), exports); -__exportStar(require("./src/model/request/PivoInitRequest"), exports); -__exportStar(require("./src/model/request/RevertPivoTransactionRequest"), exports); -__exportStar(require("./src/model/request/RevertTransactionRequest"), exports); -__exportStar(require("./src/model/request/TransactionRequest"), exports); -__exportStar(require("./src/model/request/applepay/PaymentData"), exports); -__exportStar(require("./src/model/request/applepay/PaymentDataHeader"), exports); -__exportStar(require("./src/model/request/sca/Address"), exports); -__exportStar(require("./src/model/request/sca/CustomerAccount"), exports); -__exportStar(require("./src/model/request/sca/CustomerAuthenticationInfo"), exports); -__exportStar(require("./src/model/request/sca/CustomerDetails"), exports); -__exportStar(require("./src/model/request/sca/PhoneNumber"), exports); -__exportStar(require("./src/model/request/sca/Purchase"), exports); -__exportStar(require("./src/model/request/sca/ReturnUrls"), exports); -__exportStar(require("./src/model/request/sca/StrongCustomerAuthentication"), exports); -__exportStar(require("./src/security/SecureSigner"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/js/index.js.map b/js/index.js.map deleted file mode 100644 index 85caa11..0000000 --- a/js/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;AAEH,oDAAkC;AAClC,sDAAoC;AACpC,mDAAiC;AACjC,8DAA4C;AAC5C,wDAAsC;AACtC,oDAAkC;AAClC,uFAAqE;AACrE,uFAAqE;AACrE,iFAA+D;AAC/D,2DAAyC;AACzC,uEAAqD;AACrD,uEAAqD;AACrD,+EAA6D;AAC7D,+DAA6C;AAC7C,2EAAyD;AACzD,gEAA8C;AAC9C,sEAAoD;AACpD,mFAAiE;AACjE,+EAA6D;AAC7D,yEAAuD;AACvD,2EAAyD;AACzD,iFAA+D;AAC/D,kEAAgD;AAChD,0EAAwD;AACxD,qFAAmE;AACnE,0EAAwD;AACxD,sEAAoD;AACpD,mEAAiD;AACjD,qEAAmD;AACnD,uFAAqE;AACrE,8DAA4C"} \ No newline at end of file diff --git a/js/src/FormBuilder.d.ts b/js/src/FormBuilder.d.ts deleted file mode 100644 index 7087508..0000000 --- a/js/src/FormBuilder.d.ts +++ /dev/null @@ -1,276 +0,0 @@ -import { Method } from './util/Method'; -import { FormContainer } from './FormContainer'; -/** - * Creates parameters that can used on the form that sends them to - * Payment Highway. - * - * Creates a request id, timestamp and signature based on request parameters. - */ -export declare class FormBuilder { - private method; - private signatureKeyId; - private signatureSecret; - private account; - private merchant; - private baseUrl; - private static FORM_API_VERSION; - private static SPH_API_VERSION; - private static SPH_ACCEPT_CVC_REQUIRED; - private static SPH_ACCOUNT; - private static SPH_MERCHANT; - private static SPH_AMOUNT; - private static SPH_CURRENCY; - private static SPH_ORDER; - private static SPH_SUCCESS_URL; - private static SPH_FAILURE_URL; - private static SPH_CANCEL_URL; - private static SPH_REQUEST_ID; - private static SPH_TIMESTAMP; - private static SPH_TOKEN; - private static SPH_SKIP_FORM_NOTIFICATIONS; - private static SPH_EXIT_IFRAME_ON_RESULT; - private static SPH_EXIT_IFRAME_ON_THREE_D_SECURE; - private static SPH_USE_THREE_D_SECURE; - private static SPH_MOBILEPAY_PHONE_NUMBER; - private static SPH_MOBILEPAY_SHOP_NAME; - private static SPH_SUB_MERCHANT_NAME; - private static SPH_SUB_MERCHANT_ID; - private static SPH_SHOP_LOGO_URL; - private static SPH_WEBHOOK_SUCCESS_URL; - private static SPH_WEBHOOK_FAILURE_URL; - private static SPH_WEBHOOK_CANCEL_URL; - private static SPH_WEBHOOK_DELAY; - private static SPH_REQUEST_SHIPPING_ADDRESS; - private static SPH_PHONE_NUMBER; - private static SPH_REFERENCE_NUMBER; - private static SPH_APP_URL; - private static SPH_ORDER_DESCRIPTION; - private static SPH_SOCIAL_SECURITY_NUMBER; - private static SPH_EMAIL_ADDRESS; - private static SPH_SPLITTING_MERCHANT_ID; - private static SPH_SPLITTING_AMOUNT; - private static LANGUAGE; - private static DESCRIPTION; - private static SIGNATURE; - private secureSigner; - constructor(method: Method, signatureKeyId: string, signatureSecret: string, account: string, merchant: string, baseUrl: string); - /** - * Get parameters for Add Card request with the possibility to - *
  • accept cards that require CVC
  • - *
  • skip notifications displayed on the Payment Highway form
  • - *
  • exit from iframe after a result
  • - *
  • exit from iframe when redirecting the user to 3DS.
  • - *
  • force enable/disable 3ds
  • - * - * @param successUrl The URL the user is redirected after the transaction is handled. The payment itself may still be rejected. - * @param failureUrl The URL the user is redirected after a failure such as an authentication or connectivity error. - * @param cancelUrl The URL the user is redirected after cancelling the transaction (clicking on the cancel button). - * @param language The language the form is displayed in. - * @param acceptCvcRequired Accept a payment card token even if the card requires CVC for payments. May be null. - * @param skipFormNotifications Skip notifications displayed on the Payment Highway form. May be null. - * @param exitIframeOnResult Exit from iframe after a result. May be null. - * @param exitIframeOn3ds Exit from iframe when redirecting the user to 3DS. May be null. - * @param use3ds Force enable/disable 3ds. Null to use default configured parameter. - * @param webhookSuccessUrl The URL the PH server makes request after the transaction is handled. The payment itself may still be rejected. - * @param webhookFailureUrl The URL the PH server makes request after a failure such as an authentication or connectivity error. - * @param webhookCancelUrl The URL the PH server makes request after cancelling the transaction (clicking on the cancel button). - * @param webhookDelay Delay for webhook in seconds. Between 0-900 - * @returns {FormContainer} - */ - generateAddCardParameters(successUrl: string, failureUrl: string, cancelUrl: string, language: string, acceptCvcRequired?: boolean, skipFormNotifications?: boolean, exitIframeOnResult?: boolean, exitIframeOn3ds?: boolean, use3ds?: boolean, webhookSuccessUrl?: string, webhookFailureUrl?: string, webhookCancelUrl?: string, webhookDelay?: number): FormContainer; - /** - * Get parameters for Payment request with the possibility to - *
  • skip notifications displayed on the Payment Highway form
  • - *
  • exit from iframe after a result
  • - *
  • exit from iframe when redirecting the user to 3DS.
  • - *
  • force enable/disable 3ds
  • - * - * @param successUrl The URL the user is redirected after the transaction is handled. The payment itself may still be rejected. - * @param failureUrl The URL the user is redirected after a failure such as an authentication or connectivity error. - * @param cancelUrl The URL the user is redirected after cancelling the transaction (clicking on the cancel button). - * @param language The language the form is displayed in. - * @param amount The amount to pay. - * @param currency In which currency is the amount, e.g. "EUR" - * @param orderId A generated order ID, may for example be always unique or used multiple times for recurring transactions. - * @param description Description of the payment shown in the form. - * @param skipFormNotifications Skip notifications displayed on the Payment Highway form. May be null. - * @param exitIframeOnResult Exit from iframe after a result. May be null. - * @param exitIframeOn3ds Exit from iframe when redirecting the user to 3DS. May be null. - * @param use3ds Force enable/disable 3ds. Null to use default configured parameter. - * @param webhookSuccessUrl The URL the PH server makes request after the transaction is handled. The payment itself may still be rejected. - * @param webhookFailureUrl The URL the PH server makes request after a failure such as an authentication or connectivity error. - * @param webhookCancelUrl The URL the PH server makes request after cancelling the transaction (clicking on the cancel button). - * @param webhookDelay Delay for webhook in seconds. Between 0-900 - * @param referenceNumber Reference number in RF or Finnish reference format, used when settling the transaction to the merchant account. Only used if one-by-ony transaction settling is configured. - * @param splittingMerchantId Sub-merchant ID from the settlements provider. Not to be confused with the sph-merchant value. - * @param splittingAmount The amount settled to the sub-merchant's account. The rest will be considered as the main merchant's commission. In the smallest currency unit. E.g. 99.99 € = 9999. - * @returns {FormContainer} - */ - generatePaymentParameters(successUrl: string, failureUrl: string, cancelUrl: string, language: string, amount: number, currency: string, orderId: string, description: string, skipFormNotifications?: boolean, exitIframeOnResult?: boolean, exitIframeOn3ds?: boolean, use3ds?: boolean, webhookSuccessUrl?: string, webhookFailureUrl?: string, webhookCancelUrl?: string, webhookDelay?: number, referenceNumber?: string, splittingMerchantId?: number, splittingAmount?: number): FormContainer; - /** - * Get parameters for Add Card and Pay request with the possibility to - *
  • skip notifications displayed on the Payment Highway form
  • - *
  • exit from iframe after a result
  • - *
  • exit from iframe when redirecting the user to 3DS.
  • - *
  • force enable/disable 3ds
  • - * - * @param successUrl The URL the user is redirected after the transaction is handled. The payment itself may still be rejected. - * @param failureUrl The URL the user is redirected after a failure such as an authentication or connectivity error. - * @param cancelUrl The URL the user is redirected after cancelling the transaction (clicking on the cancel button). - * @param language The language the form is displayed in. - * @param amount The amount to pay. - * @param currency In which currency is the amount, e.g. "EUR" - * @param orderId A generated order ID, may for example be always unique or used multiple times for recurring transactions. - * @param description Description of the payment shown in the form. - * @param skipFormNotifications Skip notifications displayed on the Payment Highway form. May be null. - * @param exitIframeOnResult Exit from iframe after a result. May be null. - * @param exitIframeOn3ds Exit from iframe when redirecting the user to 3DS. May be null. - * @param use3ds Force enable/disable 3ds. Null to use default configured parameter. - * @param webhookSuccessUrl The URL the PH server makes request after the transaction is handled. The payment itself may still be rejected. - * @param webhookFailureUrl The URL the PH server makes request after a failure such as an authentication or connectivity error. - * @param webhookCancelUrl The URL the PH server makes request after cancelling the transaction (clicking on the cancel button). - * @param webhookDelay Delay for webhook in seconds. Between 0-900 - * @param referenceNumber Reference number in RF or Finnish reference format, used when settling the transaction to the merchant account. Only used if one-by-ony transaction settling is configured. - * @param splittingMerchantId Sub-merchant ID from the settlements provider. Not to be confused with the sph-merchant value. - * @param splittingAmount The amount settled to the sub-merchant's account. The rest will be considered as the main merchant's commission. In the smallest currency unit. E.g. 99.99 € = 9999. - * @return {FormContainer} - */ - generateAddCardAndPaymentParameters(successUrl: string, failureUrl: string, cancelUrl: string, language: string, amount: number, currency: string, orderId: string, description: string, skipFormNotifications?: boolean, exitIframeOnResult?: boolean, exitIframeOn3ds?: boolean, use3ds?: boolean, webhookSuccessUrl?: string, webhookFailureUrl?: string, webhookCancelUrl?: string, webhookDelay?: number, referenceNumber?: string, splittingMerchantId?: number, splittingAmount?: number): FormContainer; - /** - * Get parameters for Pay with Token and CVC request with the possibility to - *
  • skip notifications displayed on the Payment Highway form
  • - *
  • exit from iframe after a result
  • - *
  • exit from iframe when redirecting the user to 3DS.
  • - *
  • force enable/disable 3ds
  • - * - * @param token The card token to charge from. - * @param successUrl The URL the user is redirected after the transaction is handled. The payment itself may still be rejected. - * @param failureUrl The URL the user is redirected after a failure such as an authentication or connectivity error. - * @param cancelUrl The URL the user is redirected after cancelling the transaction (clicking on the cancel button). - * @param language The language the form is displayed in. - * @param amount The amount to pay. - * @param currency In which currency is the amount, e.g. "EUR" - * @param orderId A generated order ID, may for example be always unique or used multiple times for recurring transactions. - * @param description Description of the payment shown in the form. - * @param skipFormNotifications Skip notifications displayed on the Payment Highway form. May be null. - * @param exitIframeOnResult Exit from iframe after a result. May be null. - * @param exitIframeOn3ds Exit from iframe when redirecting the user to 3DS. May be null. - * @param use3ds Force enable/disable 3ds. Null to use default configured parameter. - * @param webhookSuccessUrl The URL the PH server makes request after the transaction is handled. The payment itself may still be rejected. - * @param webhookFailureUrl The URL the PH server makes request after a failure such as an authentication or connectivity error. - * @param webhookCancelUrl The URL the PH server makes request after cancelling the transaction (clicking on the cancel button). - * @param webhookDelay Delay for webhook in seconds. Between 0-900 - * @param referenceNumber Reference number in RF or Finnish reference format, used when settling the transaction to the merchant account. Only used if one-by-ony transaction settling is configured. - * @param splittingMerchantId Sub-merchant ID from the settlements provider. Not to be confused with the sph-merchant value. - * @param splittingAmount The amount settled to the sub-merchant's account. The rest will be considered as the main merchant's commission. In the smallest currency unit. E.g. 99.99 € = 9999. - * @returns {FormContainer} - */ - generatePayWithTokenAndCvcParameters(token: string, successUrl: string, failureUrl: string, cancelUrl: string, language: string, amount: number, currency: string, orderId: string, description: string, skipFormNotifications?: boolean, exitIframeOnResult?: boolean, exitIframeOn3ds?: boolean, use3ds?: boolean, webhookSuccessUrl?: string, webhookFailureUrl?: string, webhookCancelUrl?: string, webhookDelay?: number, referenceNumber?: string, splittingMerchantId?: number, splittingAmount?: number): FormContainer; - /** - * Get parameters for MobilePay request. - * - * @param successUrl The URL the user is redirected after the transaction is handled. The payment itself may still be rejected. - * @param failureUrl The URL the user is redirected after a failure such as an authentication or connectivity error. - * @param cancelUrl The URL the user is redirected after cancelling the transaction (clicking on the cancel button). - * @param language The language the form is displayed in. - * @param amount The amount to pay. - * @param currency In which currency is the amount, e.g. "EUR" - * @param orderId A generated order ID, may for example be always unique or used multiple times for recurring transactions. - * @param description Description of the payment shown in the form. - * @param exitIframeOnResult Exit from iframe after a result. May be null. - * @param shopLogoUrl The logo must be 250x250 pixel in .png format and must be hosted on a HTTPS (secure) server. Optional. - * @param phoneNumber User phone number with country code. Max AN 15. Optional. - * @param shopName Max 100 AN. Name of the shop/merchant. MobilePay app displays this under the shop logo. If omitted, the merchant name from PH is used. Optional. - * @param subMerchantId Max 15 AN. Should only be used by a Payment Facilitator customer - * @param subMerchantName Max 21 AN. Should only be used by a Payment Facilitator customer - * @param webhookSuccessUrl The URL the PH server makes request after the transaction is handled. The payment itself may still be rejected. - * @param webhookFailureUrl The URL the PH server makes request after a failure such as an authentication or connectivity error. - * @param webhookCancelUrl The URL the PH server makes request after cancelling the transaction (clicking on the cancel button). - * @param webhookDelay Delay for webhook in seconds. Between 0-900 - * @param referenceNumber Reference number in RF or Finnish reference format, used when settling the transaction to the merchant account. Only used if one-by-ony transaction settling is configured. - * @param splittingMerchantId Sub-merchant ID from the settlements provider. Not to be confused with the sph-merchant value. - * @param splittingAmount The amount settled to the sub-merchant's account. The rest will be considered as the main merchant's commission. In the smallest currency unit. E.g. 99.99 € = 9999. - * @return FormContainer - */ - generatePayWithMobilePayParameters(successUrl: string, failureUrl: string, cancelUrl: string, language: string, amount: number, currency: string, orderId: string, description: string, exitIframeOnResult?: boolean, shopLogoUrl?: string, phoneNumber?: string, shopName?: string, subMerchantId?: string, subMerchantName?: string, webhookSuccessUrl?: string, webhookFailureUrl?: string, webhookCancelUrl?: string, webhookDelay?: number, referenceNumber?: string, splittingMerchantId?: number, splittingAmount?: number): FormContainer; - /** - * Get parameters for Pivo request. - * - * @param successUrl The URL the user is redirected after the transaction is handled. The payment itself may still be rejected. - * @param failureUrl The URL the user is redirected after a failure such as an authentication or connectivity error. - * @param cancelUrl The URL the user is redirected after cancelling the transaction (clicking on the cancel button). - * @param language The language the form is displayed in. - * @param amount The amount to pay in euro cents. Pivo supports only euros. - * @param orderId A generated order ID, may for example be always unique or used multiple times for recurring transactions. - * @param description Description of the payment shown in the form. - * @param phoneNumber User phone number with country code. Max AN 15. Optional. - * @param referenceNumber Reference number for payment. Optional. - * @param appUrl When used, Pivo tries to open application with this url. Optional. - * @param exitIframeOnResult Exit from iframe after a result. May be null. - * @param webhookSuccessUrl The URL the PH server makes request after the transaction is handled. The payment itself may still be rejected. - * @param webhookFailureUrl The URL the PH server makes request after a failure such as an authentication or connectivity error. - * @param webhookCancelUrl The URL the PH server makes request after cancelling the transaction (clicking on the cancel button). - * @param splittingMerchantId Sub-merchant ID from the settlements provider. Not to be confused with the sph-merchant value. - * @param splittingAmount The amount settled to the sub-merchant's account. The rest will be considered as the main merchant's commission. In the smallest currency unit. E.g. 99.99 € = 9999. - * @param webhookDelay Delay for webhook in seconds. Between 0-900 - * @return FormContainer - */ - generatePivoParameters(successUrl: string, failureUrl: string, cancelUrl: string, language: string, amount: number, orderId: string, description: string, referenceNumber?: string, phoneNumber?: string, appUrl?: string, exitIframeOnResult?: boolean, webhookSuccessUrl?: string, webhookFailureUrl?: string, webhookCancelUrl?: string, webhookDelay?: number, splittingMerchantId?: number, splittingAmount?: number): FormContainer; - /** - * Get parameters for AfterPay form request. - * - * @param successUrl The URL the user is redirected after the transaction is handled. The payment itself may still be rejected. - * @param failureUrl The URL the user is redirected after a failure such as an authentication or connectivity error. - * @param cancelUrl The URL the user is redirected after cancelling the transaction (clicking on the cancel button). - * @param language The language the form is displayed in. - * @param amount The amount to pay in euro cents. - * @param orderId A generated order ID, may for example be always unique or used multiple times for recurring transactions. - * @param description Description of the payment shown in the form. - * @param orderDescription Description of the purchase. Will be shown on the customer's invoice. Max length 255. - * @param socialSecurityNumber The customer's social security number. If set, the value will be pre-filled on the form. - * @param emailAddress The customer's email address. If set, the value will be pre-filled on the form. - * @param exitIframeOnResult Exit from iframe after a result. May be null. - * @param webhookSuccessUrl The URL the PH server makes request after the transaction is handled. The payment itself may still be rejected. - * @param webhookFailureUrl The URL the PH server makes request after a failure such as an authentication or connectivity error. - * @param webhookCancelUrl The URL the PH server makes request after cancelling the transaction (clicking on the cancel button). - * @param webhookDelay Delay for webhook in seconds. Between 0-900 - * @param referenceNumber Reference number in RF or Finnish reference format, used when settling the transaction to the merchant account. Only used if one-by-ony transaction settling is configured. - * @param splittingMerchantId Sub-merchant ID from the settlements provider. Not to be confused with the sph-merchant value. - * @param splittingAmount The amount settled to the sub-merchant's account. The rest will be considered as the main merchant's commission. In the smallest currency unit. E.g. 99.99 € = 9999. - * @return FormContainer - */ - generateAfterPayParameters(successUrl: string, failureUrl: string, cancelUrl: string, language: string, amount: number, orderId: string, description: string, orderDescription: string, socialSecurityNumber?: string, emailAddress?: string, exitIframeOnResult?: boolean, webhookSuccessUrl?: string, webhookFailureUrl?: string, webhookCancelUrl?: string, webhookDelay?: number, referenceNumber?: string, splittingMerchantId?: number, splittingAmount?: number): FormContainer; - /** - * - * @param webhookSuccessUrl - * @param webhookFailureUrl - * @param webhookCancelUrl - * @param webhookDelay - * @returns {Array} - */ - private static createWebhookNameValuePairs; - /** - * - * @param successUrl - * @param failureUrl - * @param cancelUrl - * @param language - * @param requestId - * @returns {Pair[]} - */ - private createCommonNameValuePairs; - /** - * - * @param nameValuePairs - * @param splittingMerchantId - * @param splittingAmount - */ - private static addSplittingParameters; - /** - * - * @param uri - * @param nameValuePairs - * @returns {string} - */ - private createSignature; -} diff --git a/js/src/FormBuilder.js b/js/src/FormBuilder.js deleted file mode 100644 index 8984bfe..0000000 --- a/js/src/FormBuilder.js +++ /dev/null @@ -1,513 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FormBuilder = void 0; -const PaymentHighwayUtility_1 = require("./PaymentHighwayUtility"); -const Pair_1 = require("./util/Pair"); -const SecureSigner_1 = require("./security/SecureSigner"); -const FormContainer_1 = require("./FormContainer"); -/** - * Creates parameters that can used on the form that sends them to - * Payment Highway. - * - * Creates a request id, timestamp and signature based on request parameters. - */ -class FormBuilder { - constructor(method, signatureKeyId, signatureSecret, account, merchant, baseUrl) { - this.method = method; - this.signatureKeyId = signatureKeyId; - this.signatureSecret = signatureSecret; - this.account = account; - this.merchant = merchant; - this.baseUrl = baseUrl; - this.secureSigner = new SecureSigner_1.SecureSigner(this.signatureKeyId, this.signatureSecret); - } - /** - * Get parameters for Add Card request with the possibility to - *
  • accept cards that require CVC
  • - *
  • skip notifications displayed on the Payment Highway form
  • - *
  • exit from iframe after a result
  • - *
  • exit from iframe when redirecting the user to 3DS.
  • - *
  • force enable/disable 3ds
  • - * - * @param successUrl The URL the user is redirected after the transaction is handled. The payment itself may still be rejected. - * @param failureUrl The URL the user is redirected after a failure such as an authentication or connectivity error. - * @param cancelUrl The URL the user is redirected after cancelling the transaction (clicking on the cancel button). - * @param language The language the form is displayed in. - * @param acceptCvcRequired Accept a payment card token even if the card requires CVC for payments. May be null. - * @param skipFormNotifications Skip notifications displayed on the Payment Highway form. May be null. - * @param exitIframeOnResult Exit from iframe after a result. May be null. - * @param exitIframeOn3ds Exit from iframe when redirecting the user to 3DS. May be null. - * @param use3ds Force enable/disable 3ds. Null to use default configured parameter. - * @param webhookSuccessUrl The URL the PH server makes request after the transaction is handled. The payment itself may still be rejected. - * @param webhookFailureUrl The URL the PH server makes request after a failure such as an authentication or connectivity error. - * @param webhookCancelUrl The URL the PH server makes request after cancelling the transaction (clicking on the cancel button). - * @param webhookDelay Delay for webhook in seconds. Between 0-900 - * @returns {FormContainer} - */ - generateAddCardParameters(successUrl, failureUrl, cancelUrl, language, acceptCvcRequired, skipFormNotifications, exitIframeOnResult, exitIframeOn3ds, use3ds, webhookSuccessUrl, webhookFailureUrl, webhookCancelUrl, webhookDelay) { - const requestId = PaymentHighwayUtility_1.PaymentHighwayUtility.createRequestId(); - let nameValuePairs = this.createCommonNameValuePairs(successUrl, failureUrl, cancelUrl, language, requestId); - if (typeof acceptCvcRequired !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_ACCEPT_CVC_REQUIRED, acceptCvcRequired.toString())); - } - if (typeof skipFormNotifications !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_SKIP_FORM_NOTIFICATIONS, skipFormNotifications.toString())); - } - if (typeof exitIframeOnResult !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_EXIT_IFRAME_ON_RESULT, exitIframeOnResult.toString())); - } - if (typeof exitIframeOn3ds !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_EXIT_IFRAME_ON_THREE_D_SECURE, exitIframeOn3ds.toString())); - } - if (typeof use3ds !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_USE_THREE_D_SECURE, use3ds.toString())); - } - nameValuePairs = nameValuePairs.concat(FormBuilder.createWebhookNameValuePairs(webhookSuccessUrl, webhookFailureUrl, webhookCancelUrl, webhookDelay)); - const addCardUri = '/form/view/add_card'; - const signature = this.createSignature(addCardUri, nameValuePairs); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SIGNATURE, signature)); - return new FormContainer_1.FormContainer(this.method, this.baseUrl, addCardUri, nameValuePairs, requestId); - } - /** - * Get parameters for Payment request with the possibility to - *
  • skip notifications displayed on the Payment Highway form
  • - *
  • exit from iframe after a result
  • - *
  • exit from iframe when redirecting the user to 3DS.
  • - *
  • force enable/disable 3ds
  • - * - * @param successUrl The URL the user is redirected after the transaction is handled. The payment itself may still be rejected. - * @param failureUrl The URL the user is redirected after a failure such as an authentication or connectivity error. - * @param cancelUrl The URL the user is redirected after cancelling the transaction (clicking on the cancel button). - * @param language The language the form is displayed in. - * @param amount The amount to pay. - * @param currency In which currency is the amount, e.g. "EUR" - * @param orderId A generated order ID, may for example be always unique or used multiple times for recurring transactions. - * @param description Description of the payment shown in the form. - * @param skipFormNotifications Skip notifications displayed on the Payment Highway form. May be null. - * @param exitIframeOnResult Exit from iframe after a result. May be null. - * @param exitIframeOn3ds Exit from iframe when redirecting the user to 3DS. May be null. - * @param use3ds Force enable/disable 3ds. Null to use default configured parameter. - * @param webhookSuccessUrl The URL the PH server makes request after the transaction is handled. The payment itself may still be rejected. - * @param webhookFailureUrl The URL the PH server makes request after a failure such as an authentication or connectivity error. - * @param webhookCancelUrl The URL the PH server makes request after cancelling the transaction (clicking on the cancel button). - * @param webhookDelay Delay for webhook in seconds. Between 0-900 - * @param referenceNumber Reference number in RF or Finnish reference format, used when settling the transaction to the merchant account. Only used if one-by-ony transaction settling is configured. - * @param splittingMerchantId Sub-merchant ID from the settlements provider. Not to be confused with the sph-merchant value. - * @param splittingAmount The amount settled to the sub-merchant's account. The rest will be considered as the main merchant's commission. In the smallest currency unit. E.g. 99.99 € = 9999. - * @returns {FormContainer} - */ - generatePaymentParameters(successUrl, failureUrl, cancelUrl, language, amount, currency, orderId, description, skipFormNotifications, exitIframeOnResult, exitIframeOn3ds, use3ds, webhookSuccessUrl, webhookFailureUrl, webhookCancelUrl, webhookDelay, referenceNumber, splittingMerchantId, splittingAmount) { - const requestId = PaymentHighwayUtility_1.PaymentHighwayUtility.createRequestId(); - let nameValuePairs = this.createCommonNameValuePairs(successUrl, failureUrl, cancelUrl, language, requestId); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_AMOUNT, amount.toString())); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_CURRENCY, currency)); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_ORDER, orderId)); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.DESCRIPTION, description)); - FormBuilder.addSplittingParameters(nameValuePairs, splittingMerchantId, splittingAmount); - if (typeof skipFormNotifications !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_SKIP_FORM_NOTIFICATIONS, skipFormNotifications.toString())); - } - if (typeof exitIframeOnResult !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_EXIT_IFRAME_ON_RESULT, exitIframeOnResult.toString())); - } - if (typeof exitIframeOn3ds !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_EXIT_IFRAME_ON_THREE_D_SECURE, exitIframeOn3ds.toString())); - } - if (typeof use3ds !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_USE_THREE_D_SECURE, use3ds.toString())); - } - if (typeof referenceNumber !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_REFERENCE_NUMBER, referenceNumber)); - } - nameValuePairs = nameValuePairs.concat(FormBuilder.createWebhookNameValuePairs(webhookSuccessUrl, webhookFailureUrl, webhookCancelUrl, webhookDelay)); - const payWithCardUri = '/form/view/pay_with_card'; - const signature = this.createSignature(payWithCardUri, nameValuePairs); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SIGNATURE, signature)); - return new FormContainer_1.FormContainer(this.method, this.baseUrl, payWithCardUri, nameValuePairs, requestId); - } - /** - * Get parameters for Add Card and Pay request with the possibility to - *
  • skip notifications displayed on the Payment Highway form
  • - *
  • exit from iframe after a result
  • - *
  • exit from iframe when redirecting the user to 3DS.
  • - *
  • force enable/disable 3ds
  • - * - * @param successUrl The URL the user is redirected after the transaction is handled. The payment itself may still be rejected. - * @param failureUrl The URL the user is redirected after a failure such as an authentication or connectivity error. - * @param cancelUrl The URL the user is redirected after cancelling the transaction (clicking on the cancel button). - * @param language The language the form is displayed in. - * @param amount The amount to pay. - * @param currency In which currency is the amount, e.g. "EUR" - * @param orderId A generated order ID, may for example be always unique or used multiple times for recurring transactions. - * @param description Description of the payment shown in the form. - * @param skipFormNotifications Skip notifications displayed on the Payment Highway form. May be null. - * @param exitIframeOnResult Exit from iframe after a result. May be null. - * @param exitIframeOn3ds Exit from iframe when redirecting the user to 3DS. May be null. - * @param use3ds Force enable/disable 3ds. Null to use default configured parameter. - * @param webhookSuccessUrl The URL the PH server makes request after the transaction is handled. The payment itself may still be rejected. - * @param webhookFailureUrl The URL the PH server makes request after a failure such as an authentication or connectivity error. - * @param webhookCancelUrl The URL the PH server makes request after cancelling the transaction (clicking on the cancel button). - * @param webhookDelay Delay for webhook in seconds. Between 0-900 - * @param referenceNumber Reference number in RF or Finnish reference format, used when settling the transaction to the merchant account. Only used if one-by-ony transaction settling is configured. - * @param splittingMerchantId Sub-merchant ID from the settlements provider. Not to be confused with the sph-merchant value. - * @param splittingAmount The amount settled to the sub-merchant's account. The rest will be considered as the main merchant's commission. In the smallest currency unit. E.g. 99.99 € = 9999. - * @return {FormContainer} - */ - generateAddCardAndPaymentParameters(successUrl, failureUrl, cancelUrl, language, amount, currency, orderId, description, skipFormNotifications, exitIframeOnResult, exitIframeOn3ds, use3ds, webhookSuccessUrl, webhookFailureUrl, webhookCancelUrl, webhookDelay, referenceNumber, splittingMerchantId, splittingAmount) { - const requestId = PaymentHighwayUtility_1.PaymentHighwayUtility.createRequestId(); - let nameValuePairs = this.createCommonNameValuePairs(successUrl, failureUrl, cancelUrl, language, requestId); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_AMOUNT, amount.toString())); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_CURRENCY, currency)); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_ORDER, orderId)); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.DESCRIPTION, description)); - FormBuilder.addSplittingParameters(nameValuePairs, splittingMerchantId, splittingAmount); - if (typeof skipFormNotifications !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_SKIP_FORM_NOTIFICATIONS, skipFormNotifications.toString())); - } - if (typeof exitIframeOnResult !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_EXIT_IFRAME_ON_RESULT, exitIframeOnResult.toString())); - } - if (typeof exitIframeOn3ds !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_EXIT_IFRAME_ON_THREE_D_SECURE, exitIframeOn3ds.toString())); - } - if (typeof use3ds !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_USE_THREE_D_SECURE, use3ds.toString())); - } - if (typeof referenceNumber !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_REFERENCE_NUMBER, referenceNumber)); - } - nameValuePairs = nameValuePairs.concat(FormBuilder.createWebhookNameValuePairs(webhookSuccessUrl, webhookFailureUrl, webhookCancelUrl, webhookDelay)); - const addCardAndPayUri = '/form/view/add_and_pay_with_card'; - const signature = this.createSignature(addCardAndPayUri, nameValuePairs); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SIGNATURE, signature)); - return new FormContainer_1.FormContainer(this.method, this.baseUrl, addCardAndPayUri, nameValuePairs, requestId); - } - /** - * Get parameters for Pay with Token and CVC request with the possibility to - *
  • skip notifications displayed on the Payment Highway form
  • - *
  • exit from iframe after a result
  • - *
  • exit from iframe when redirecting the user to 3DS.
  • - *
  • force enable/disable 3ds
  • - * - * @param token The card token to charge from. - * @param successUrl The URL the user is redirected after the transaction is handled. The payment itself may still be rejected. - * @param failureUrl The URL the user is redirected after a failure such as an authentication or connectivity error. - * @param cancelUrl The URL the user is redirected after cancelling the transaction (clicking on the cancel button). - * @param language The language the form is displayed in. - * @param amount The amount to pay. - * @param currency In which currency is the amount, e.g. "EUR" - * @param orderId A generated order ID, may for example be always unique or used multiple times for recurring transactions. - * @param description Description of the payment shown in the form. - * @param skipFormNotifications Skip notifications displayed on the Payment Highway form. May be null. - * @param exitIframeOnResult Exit from iframe after a result. May be null. - * @param exitIframeOn3ds Exit from iframe when redirecting the user to 3DS. May be null. - * @param use3ds Force enable/disable 3ds. Null to use default configured parameter. - * @param webhookSuccessUrl The URL the PH server makes request after the transaction is handled. The payment itself may still be rejected. - * @param webhookFailureUrl The URL the PH server makes request after a failure such as an authentication or connectivity error. - * @param webhookCancelUrl The URL the PH server makes request after cancelling the transaction (clicking on the cancel button). - * @param webhookDelay Delay for webhook in seconds. Between 0-900 - * @param referenceNumber Reference number in RF or Finnish reference format, used when settling the transaction to the merchant account. Only used if one-by-ony transaction settling is configured. - * @param splittingMerchantId Sub-merchant ID from the settlements provider. Not to be confused with the sph-merchant value. - * @param splittingAmount The amount settled to the sub-merchant's account. The rest will be considered as the main merchant's commission. In the smallest currency unit. E.g. 99.99 € = 9999. - * @returns {FormContainer} - */ - generatePayWithTokenAndCvcParameters(token, successUrl, failureUrl, cancelUrl, language, amount, currency, orderId, description, skipFormNotifications, exitIframeOnResult, exitIframeOn3ds, use3ds, webhookSuccessUrl, webhookFailureUrl, webhookCancelUrl, webhookDelay, referenceNumber, splittingMerchantId, splittingAmount) { - const requestId = PaymentHighwayUtility_1.PaymentHighwayUtility.createRequestId(); - let nameValuePairs = this.createCommonNameValuePairs(successUrl, failureUrl, cancelUrl, language, requestId); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_AMOUNT, amount.toString())); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_CURRENCY, currency)); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_ORDER, orderId)); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_TOKEN, token)); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.DESCRIPTION, description)); - FormBuilder.addSplittingParameters(nameValuePairs, splittingMerchantId, splittingAmount); - if (typeof skipFormNotifications !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_SKIP_FORM_NOTIFICATIONS, skipFormNotifications.toString())); - } - if (typeof exitIframeOnResult !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_EXIT_IFRAME_ON_RESULT, exitIframeOnResult.toString())); - } - if (typeof exitIframeOn3ds !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_EXIT_IFRAME_ON_THREE_D_SECURE, exitIframeOn3ds.toString())); - } - if (typeof use3ds !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_USE_THREE_D_SECURE, use3ds.toString())); - } - if (typeof referenceNumber !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_REFERENCE_NUMBER, referenceNumber)); - } - nameValuePairs = nameValuePairs.concat(FormBuilder.createWebhookNameValuePairs(webhookSuccessUrl, webhookFailureUrl, webhookCancelUrl, webhookDelay)); - const payWithTokenAndCvcUri = '/form/view/pay_with_token_and_cvc'; - const signature = this.createSignature(payWithTokenAndCvcUri, nameValuePairs); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SIGNATURE, signature)); - return new FormContainer_1.FormContainer(this.method, this.baseUrl, payWithTokenAndCvcUri, nameValuePairs, requestId); - } - /** - * Get parameters for MobilePay request. - * - * @param successUrl The URL the user is redirected after the transaction is handled. The payment itself may still be rejected. - * @param failureUrl The URL the user is redirected after a failure such as an authentication or connectivity error. - * @param cancelUrl The URL the user is redirected after cancelling the transaction (clicking on the cancel button). - * @param language The language the form is displayed in. - * @param amount The amount to pay. - * @param currency In which currency is the amount, e.g. "EUR" - * @param orderId A generated order ID, may for example be always unique or used multiple times for recurring transactions. - * @param description Description of the payment shown in the form. - * @param exitIframeOnResult Exit from iframe after a result. May be null. - * @param shopLogoUrl The logo must be 250x250 pixel in .png format and must be hosted on a HTTPS (secure) server. Optional. - * @param phoneNumber User phone number with country code. Max AN 15. Optional. - * @param shopName Max 100 AN. Name of the shop/merchant. MobilePay app displays this under the shop logo. If omitted, the merchant name from PH is used. Optional. - * @param subMerchantId Max 15 AN. Should only be used by a Payment Facilitator customer - * @param subMerchantName Max 21 AN. Should only be used by a Payment Facilitator customer - * @param webhookSuccessUrl The URL the PH server makes request after the transaction is handled. The payment itself may still be rejected. - * @param webhookFailureUrl The URL the PH server makes request after a failure such as an authentication or connectivity error. - * @param webhookCancelUrl The URL the PH server makes request after cancelling the transaction (clicking on the cancel button). - * @param webhookDelay Delay for webhook in seconds. Between 0-900 - * @param referenceNumber Reference number in RF or Finnish reference format, used when settling the transaction to the merchant account. Only used if one-by-ony transaction settling is configured. - * @param splittingMerchantId Sub-merchant ID from the settlements provider. Not to be confused with the sph-merchant value. - * @param splittingAmount The amount settled to the sub-merchant's account. The rest will be considered as the main merchant's commission. In the smallest currency unit. E.g. 99.99 € = 9999. - * @return FormContainer - */ - generatePayWithMobilePayParameters(successUrl, failureUrl, cancelUrl, language, amount, currency, orderId, description, exitIframeOnResult, shopLogoUrl, phoneNumber, shopName, subMerchantId, subMerchantName, webhookSuccessUrl, webhookFailureUrl, webhookCancelUrl, webhookDelay, referenceNumber, splittingMerchantId, splittingAmount) { - const requestId = PaymentHighwayUtility_1.PaymentHighwayUtility.createRequestId(); - let nameValuePairs = this.createCommonNameValuePairs(successUrl, failureUrl, cancelUrl, language, requestId); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_AMOUNT, amount.toString())); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_CURRENCY, currency)); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_ORDER, orderId)); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.DESCRIPTION, description)); - FormBuilder.addSplittingParameters(nameValuePairs, splittingMerchantId, splittingAmount); - if (typeof exitIframeOnResult !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_EXIT_IFRAME_ON_RESULT, exitIframeOnResult.toString())); - } - if (typeof shopLogoUrl !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_SHOP_LOGO_URL, shopLogoUrl)); - } - if (typeof phoneNumber !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_MOBILEPAY_PHONE_NUMBER, phoneNumber)); - } - if (typeof shopName !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_MOBILEPAY_SHOP_NAME, shopName)); - } - if (typeof subMerchantId !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_SUB_MERCHANT_ID, subMerchantId)); - } - if (typeof subMerchantName !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_SUB_MERCHANT_NAME, subMerchantName)); - } - if (typeof referenceNumber !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_REFERENCE_NUMBER, referenceNumber)); - } - nameValuePairs = nameValuePairs.concat(FormBuilder.createWebhookNameValuePairs(webhookSuccessUrl, webhookFailureUrl, webhookCancelUrl, webhookDelay)); - const mobilePayUri = '/form/view/mobilepay'; - const signature = this.createSignature(mobilePayUri, nameValuePairs); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SIGNATURE, signature)); - return new FormContainer_1.FormContainer(this.method, this.baseUrl, mobilePayUri, nameValuePairs, requestId); - } - /** - * Get parameters for Pivo request. - * - * @param successUrl The URL the user is redirected after the transaction is handled. The payment itself may still be rejected. - * @param failureUrl The URL the user is redirected after a failure such as an authentication or connectivity error. - * @param cancelUrl The URL the user is redirected after cancelling the transaction (clicking on the cancel button). - * @param language The language the form is displayed in. - * @param amount The amount to pay in euro cents. Pivo supports only euros. - * @param orderId A generated order ID, may for example be always unique or used multiple times for recurring transactions. - * @param description Description of the payment shown in the form. - * @param phoneNumber User phone number with country code. Max AN 15. Optional. - * @param referenceNumber Reference number for payment. Optional. - * @param appUrl When used, Pivo tries to open application with this url. Optional. - * @param exitIframeOnResult Exit from iframe after a result. May be null. - * @param webhookSuccessUrl The URL the PH server makes request after the transaction is handled. The payment itself may still be rejected. - * @param webhookFailureUrl The URL the PH server makes request after a failure such as an authentication or connectivity error. - * @param webhookCancelUrl The URL the PH server makes request after cancelling the transaction (clicking on the cancel button). - * @param splittingMerchantId Sub-merchant ID from the settlements provider. Not to be confused with the sph-merchant value. - * @param splittingAmount The amount settled to the sub-merchant's account. The rest will be considered as the main merchant's commission. In the smallest currency unit. E.g. 99.99 € = 9999. - * @param webhookDelay Delay for webhook in seconds. Between 0-900 - * @return FormContainer - */ - generatePivoParameters(successUrl, failureUrl, cancelUrl, language, amount, orderId, description, referenceNumber, phoneNumber, appUrl, exitIframeOnResult, webhookSuccessUrl, webhookFailureUrl, webhookCancelUrl, webhookDelay, splittingMerchantId, splittingAmount) { - const requestId = PaymentHighwayUtility_1.PaymentHighwayUtility.createRequestId(); - let nameValuePairs = this.createCommonNameValuePairs(successUrl, failureUrl, cancelUrl, language, requestId); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_AMOUNT, amount.toString())); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_CURRENCY, 'EUR')); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_ORDER, orderId)); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.DESCRIPTION, description)); - FormBuilder.addSplittingParameters(nameValuePairs, splittingMerchantId, splittingAmount); - if (typeof exitIframeOnResult !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_EXIT_IFRAME_ON_RESULT, exitIframeOnResult.toString())); - } - if (typeof phoneNumber !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_PHONE_NUMBER, phoneNumber)); - } - if (typeof referenceNumber !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_REFERENCE_NUMBER, referenceNumber)); - } - if (typeof appUrl !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_APP_URL, appUrl)); - } - nameValuePairs = nameValuePairs.concat(FormBuilder.createWebhookNameValuePairs(webhookSuccessUrl, webhookFailureUrl, webhookCancelUrl, webhookDelay)); - const pivoUri = '/form/view/pivo'; - const signature = this.createSignature(pivoUri, nameValuePairs); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SIGNATURE, signature)); - return new FormContainer_1.FormContainer(this.method, this.baseUrl, pivoUri, nameValuePairs, requestId); - } - /** - * Get parameters for AfterPay form request. - * - * @param successUrl The URL the user is redirected after the transaction is handled. The payment itself may still be rejected. - * @param failureUrl The URL the user is redirected after a failure such as an authentication or connectivity error. - * @param cancelUrl The URL the user is redirected after cancelling the transaction (clicking on the cancel button). - * @param language The language the form is displayed in. - * @param amount The amount to pay in euro cents. - * @param orderId A generated order ID, may for example be always unique or used multiple times for recurring transactions. - * @param description Description of the payment shown in the form. - * @param orderDescription Description of the purchase. Will be shown on the customer's invoice. Max length 255. - * @param socialSecurityNumber The customer's social security number. If set, the value will be pre-filled on the form. - * @param emailAddress The customer's email address. If set, the value will be pre-filled on the form. - * @param exitIframeOnResult Exit from iframe after a result. May be null. - * @param webhookSuccessUrl The URL the PH server makes request after the transaction is handled. The payment itself may still be rejected. - * @param webhookFailureUrl The URL the PH server makes request after a failure such as an authentication or connectivity error. - * @param webhookCancelUrl The URL the PH server makes request after cancelling the transaction (clicking on the cancel button). - * @param webhookDelay Delay for webhook in seconds. Between 0-900 - * @param referenceNumber Reference number in RF or Finnish reference format, used when settling the transaction to the merchant account. Only used if one-by-ony transaction settling is configured. - * @param splittingMerchantId Sub-merchant ID from the settlements provider. Not to be confused with the sph-merchant value. - * @param splittingAmount The amount settled to the sub-merchant's account. The rest will be considered as the main merchant's commission. In the smallest currency unit. E.g. 99.99 € = 9999. - * @return FormContainer - */ - generateAfterPayParameters(successUrl, failureUrl, cancelUrl, language, amount, orderId, description, orderDescription, socialSecurityNumber, emailAddress, exitIframeOnResult, webhookSuccessUrl, webhookFailureUrl, webhookCancelUrl, webhookDelay, referenceNumber, splittingMerchantId, splittingAmount) { - const requestId = PaymentHighwayUtility_1.PaymentHighwayUtility.createRequestId(); - let nameValuePairs = this.createCommonNameValuePairs(successUrl, failureUrl, cancelUrl, language, requestId); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_AMOUNT, amount.toString())); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_CURRENCY, 'EUR')); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_ORDER, orderId)); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.DESCRIPTION, description)); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_ORDER_DESCRIPTION, orderDescription)); - FormBuilder.addSplittingParameters(nameValuePairs, splittingMerchantId, splittingAmount); - if (typeof exitIframeOnResult !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_EXIT_IFRAME_ON_RESULT, exitIframeOnResult.toString())); - } - if (typeof socialSecurityNumber !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_SOCIAL_SECURITY_NUMBER, socialSecurityNumber)); - } - if (typeof emailAddress !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_EMAIL_ADDRESS, emailAddress)); - } - if (typeof referenceNumber !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_REFERENCE_NUMBER, referenceNumber)); - } - nameValuePairs = nameValuePairs.concat(FormBuilder.createWebhookNameValuePairs(webhookSuccessUrl, webhookFailureUrl, webhookCancelUrl, webhookDelay)); - const uri = '/form/view/afterpay'; - const signature = this.createSignature(uri, nameValuePairs); - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SIGNATURE, signature)); - return new FormContainer_1.FormContainer(this.method, this.baseUrl, uri, nameValuePairs, requestId); - } - /** - * - * @param webhookSuccessUrl - * @param webhookFailureUrl - * @param webhookCancelUrl - * @param webhookDelay - * @returns {Array} - */ - static createWebhookNameValuePairs(webhookSuccessUrl, webhookFailureUrl, webhookCancelUrl, webhookDelay) { - let nameValuePairs = []; - if (typeof webhookSuccessUrl !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_WEBHOOK_SUCCESS_URL, webhookSuccessUrl)); - } - if (typeof webhookFailureUrl !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_WEBHOOK_FAILURE_URL, webhookFailureUrl)); - } - if (typeof webhookCancelUrl !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_WEBHOOK_CANCEL_URL, webhookCancelUrl)); - } - if (typeof webhookDelay !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_WEBHOOK_DELAY, webhookDelay.toString())); - } - return nameValuePairs; - } - /** - * - * @param successUrl - * @param failureUrl - * @param cancelUrl - * @param language - * @param requestId - * @returns {Pair[]} - */ - createCommonNameValuePairs(successUrl, failureUrl, cancelUrl, language, requestId) { - return [ - new Pair_1.Pair(FormBuilder.SPH_API_VERSION, FormBuilder.FORM_API_VERSION), - new Pair_1.Pair(FormBuilder.SPH_ACCOUNT, this.account), - new Pair_1.Pair(FormBuilder.SPH_MERCHANT, this.merchant), - new Pair_1.Pair(FormBuilder.SPH_TIMESTAMP, PaymentHighwayUtility_1.PaymentHighwayUtility.getUtcTimestamp()), - new Pair_1.Pair(FormBuilder.SPH_CANCEL_URL, cancelUrl), - new Pair_1.Pair(FormBuilder.SPH_FAILURE_URL, failureUrl), - new Pair_1.Pair(FormBuilder.SPH_SUCCESS_URL, successUrl), - new Pair_1.Pair(FormBuilder.SPH_REQUEST_ID, requestId), - new Pair_1.Pair(FormBuilder.LANGUAGE, language) - ]; - } - /** - * - * @param nameValuePairs - * @param splittingMerchantId - * @param splittingAmount - */ - static addSplittingParameters(nameValuePairs, splittingMerchantId, splittingAmount) { - if (typeof splittingMerchantId !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_SPLITTING_MERCHANT_ID, splittingMerchantId.toString())); - } - if (typeof splittingAmount !== 'undefined') { - nameValuePairs.push(new Pair_1.Pair(FormBuilder.SPH_SPLITTING_AMOUNT, splittingAmount.toString())); - } - } - /** - * - * @param uri - * @param nameValuePairs - * @returns {string} - */ - createSignature(uri, nameValuePairs) { - return this.secureSigner.createSignature(this.method, uri, nameValuePairs, ''); - } -} -exports.FormBuilder = FormBuilder; -FormBuilder.FORM_API_VERSION = '20200401'; -FormBuilder.SPH_API_VERSION = 'sph-api-version'; -FormBuilder.SPH_ACCEPT_CVC_REQUIRED = 'sph-accept-cvc-required'; -FormBuilder.SPH_ACCOUNT = 'sph-account'; -FormBuilder.SPH_MERCHANT = 'sph-merchant'; -FormBuilder.SPH_AMOUNT = 'sph-amount'; -FormBuilder.SPH_CURRENCY = 'sph-currency'; -FormBuilder.SPH_ORDER = 'sph-order'; -FormBuilder.SPH_SUCCESS_URL = 'sph-success-url'; -FormBuilder.SPH_FAILURE_URL = 'sph-failure-url'; -FormBuilder.SPH_CANCEL_URL = 'sph-cancel-url'; -FormBuilder.SPH_REQUEST_ID = 'sph-request-id'; -FormBuilder.SPH_TIMESTAMP = 'sph-timestamp'; -FormBuilder.SPH_TOKEN = 'sph-token'; -FormBuilder.SPH_SKIP_FORM_NOTIFICATIONS = 'sph-skip-form-notifications'; -FormBuilder.SPH_EXIT_IFRAME_ON_RESULT = 'sph-exit-iframe-on-result'; -FormBuilder.SPH_EXIT_IFRAME_ON_THREE_D_SECURE = 'sph-exit-iframe-on-three-d-secure'; -FormBuilder.SPH_USE_THREE_D_SECURE = 'sph-use-three-d-secure'; -FormBuilder.SPH_MOBILEPAY_PHONE_NUMBER = 'sph-mobilepay-phone-number'; -FormBuilder.SPH_MOBILEPAY_SHOP_NAME = 'sph-mobilepay-shop-name'; -FormBuilder.SPH_SUB_MERCHANT_NAME = 'sph-sub-merchant-name'; -FormBuilder.SPH_SUB_MERCHANT_ID = 'sph-sub-merchant-id'; -FormBuilder.SPH_SHOP_LOGO_URL = 'sph-shop-logo-url'; -FormBuilder.SPH_WEBHOOK_SUCCESS_URL = 'sph-webhook-success-url'; -FormBuilder.SPH_WEBHOOK_FAILURE_URL = 'sph-webhook-failure-url'; -FormBuilder.SPH_WEBHOOK_CANCEL_URL = 'sph-webhook-cancel-url'; -FormBuilder.SPH_WEBHOOK_DELAY = 'sph-webhook-delay'; -FormBuilder.SPH_REQUEST_SHIPPING_ADDRESS = 'sph-request-shipping-address'; -FormBuilder.SPH_PHONE_NUMBER = 'sph-phone-number'; -FormBuilder.SPH_REFERENCE_NUMBER = 'sph-reference-number'; -FormBuilder.SPH_APP_URL = 'sph-app-url'; -FormBuilder.SPH_ORDER_DESCRIPTION = 'sph-order-description'; -FormBuilder.SPH_SOCIAL_SECURITY_NUMBER = 'sph-social-security-number'; -FormBuilder.SPH_EMAIL_ADDRESS = 'sph-email-address'; -FormBuilder.SPH_SPLITTING_MERCHANT_ID = 'sph-splitting-merchant-id'; -FormBuilder.SPH_SPLITTING_AMOUNT = 'sph-splitting-amount'; -FormBuilder.LANGUAGE = 'language'; -FormBuilder.DESCRIPTION = 'description'; -FormBuilder.SIGNATURE = 'signature'; -//# sourceMappingURL=FormBuilder.js.map \ No newline at end of file diff --git a/js/src/FormBuilder.js.map b/js/src/FormBuilder.js.map deleted file mode 100644 index 7f15406..0000000 --- a/js/src/FormBuilder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FormBuilder.js","sourceRoot":"","sources":["../../ts/src/FormBuilder.ts"],"names":[],"mappings":";;;AACA,mEAA8D;AAC9D,sCAAiC;AACjC,0DAAqD;AACrD,mDAA8C;AAE9C;;;;;GAKG;AACH,MAAa,WAAW;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ChC,uCAA2B,GAAW,6BAA6B,CAAC;AACpE,qCAAyB,GAAW,2BAA2B,CAAC;AAChE,6CAAiC,GAAW,mCAAmC,CAAC;AAChF,kCAAsB,GAAW,wBAAwB,CAAC;AAC1D,sCAA0B,GAAW,4BAA4B,CAAC;AAClE,mCAAuB,GAAW,yBAAyB,CAAC;AAC5D,iCAAqB,GAAW,uBAAuB,CAAC;AACxD,+BAAmB,GAAW,qBAAqB,CAAC;AACpD,6BAAiB,GAAW,mBAAmB,CAAC;AAChD,mCAAuB,GAAW,yBAAyB,CAAC;AAC5D,mCAAuB,GAAW,yBAAyB,CAAC;AAC5D,kCAAsB,GAAW,wBAAwB,CAAC;AAC1D,6BAAiB,GAAW,mBAAmB,CAAC;AAChD,wCAA4B,GAAW,8BAA8B,CAAC;AACtE,4BAAgB,GAAW,kBAAkB,CAAC;AAC9C,gCAAoB,GAAW,sBAAsB,CAAC;AACtD,uBAAW,GAAW,aAAa,CAAC;AACpC,iCAAqB,GAAW,uBAAuB,CAAC;AACxD,sCAA0B,GAAW,4BAA4B,CAAC;AAClE,6BAAiB,GAAW,mBAAmB,CAAC;AAChD,qCAAyB,GAAW,2BAA2B,CAAC;AAChE,gCAAoB,GAAW,sBAAsB,CAAC;AACtD,oBAAQ,GAAW,UAAU,CAAC;AAC9B,uBAAW,GAAW,aAAa,CAAC;AACpC,qBAAS,GAAW,WAAW,CAAC"} \ No newline at end of file diff --git a/js/src/FormContainer.d.ts b/js/src/FormContainer.d.ts deleted file mode 100644 index 7a3b06b..0000000 --- a/js/src/FormContainer.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Method } from './util/Method'; -import { Pair } from './util/Pair'; -export declare class FormContainer { - method: Method; - baseUrl: string; - actionUrl: string; - nameValuePairs: Pair[]; - requestId: string; - constructor(method: Method, baseUrl: string, actionUrl: string, nameValuePairs: Pair[], requestId: string); - getAction(): string; -} diff --git a/js/src/FormContainer.js b/js/src/FormContainer.js deleted file mode 100644 index dfa146c..0000000 --- a/js/src/FormContainer.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FormContainer = void 0; -class FormContainer { - constructor(method, baseUrl, actionUrl, nameValuePairs, requestId) { - this.method = method; - this.baseUrl = baseUrl; - this.actionUrl = actionUrl; - this.nameValuePairs = nameValuePairs; - this.requestId = requestId; - } - getAction() { - return this.baseUrl + this.actionUrl; - } -} -exports.FormContainer = FormContainer; -//# sourceMappingURL=FormContainer.js.map \ No newline at end of file diff --git a/js/src/FormContainer.js.map b/js/src/FormContainer.js.map deleted file mode 100644 index 8ec1aa5..0000000 --- a/js/src/FormContainer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FormContainer.js","sourceRoot":"","sources":["../../ts/src/FormContainer.ts"],"names":[],"mappings":";;;AAGA,MAAa,aAAa;IACtB,YAAmB,MAAc,EACd,OAAe,EACf,SAAiB,EACjB,cAAsC,EACtC,SAAiB;QAJjB,WAAM,GAAN,MAAM,CAAQ;QACd,YAAO,GAAP,OAAO,CAAQ;QACf,cAAS,GAAT,SAAS,CAAQ;QACjB,mBAAc,GAAd,cAAc,CAAwB;QACtC,cAAS,GAAT,SAAS,CAAQ;IACpC,CAAC;IAEM,SAAS;QACZ,OAAO,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC;IACzC,CAAC;CACJ;AAXD,sCAWC"} \ No newline at end of file diff --git a/js/src/PaymentHighwayUtility.d.ts b/js/src/PaymentHighwayUtility.d.ts deleted file mode 100644 index 5d95be7..0000000 --- a/js/src/PaymentHighwayUtility.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export declare class PaymentHighwayUtility { - /** - * Cryptographically strong pseudo random number generator. - * - * @return String UUID. - */ - static createRequestId(): string; - /** - * Request timestamp in ISO 8601 combined date and time in UTC. - * - * @return String timestamp Example: 2014-09-18T10:32:59Z - */ - static getUtcTimestamp(): string; -} diff --git a/js/src/PaymentHighwayUtility.js b/js/src/PaymentHighwayUtility.js deleted file mode 100644 index 010d9c5..0000000 --- a/js/src/PaymentHighwayUtility.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PaymentHighwayUtility = void 0; -const Uuid = require("uuid"); -class PaymentHighwayUtility { - /** - * Cryptographically strong pseudo random number generator. - * - * @return String UUID. - */ - static createRequestId() { - return Uuid.v4(); - } - /** - * Request timestamp in ISO 8601 combined date and time in UTC. - * - * @return String timestamp Example: 2014-09-18T10:32:59Z - */ - static getUtcTimestamp() { - const date = new Date(); - return date.toISOString().replace(/\.[0-9]{3}/, ''); - } -} -exports.PaymentHighwayUtility = PaymentHighwayUtility; -//# sourceMappingURL=PaymentHighwayUtility.js.map \ No newline at end of file diff --git a/js/src/PaymentHighwayUtility.js.map b/js/src/PaymentHighwayUtility.js.map deleted file mode 100644 index 93b09d1..0000000 --- a/js/src/PaymentHighwayUtility.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PaymentHighwayUtility.js","sourceRoot":"","sources":["../../ts/src/PaymentHighwayUtility.ts"],"names":[],"mappings":";;;AAAA,6BAA6B;AAE7B,MAAa,qBAAqB;IAE9B;;;;OAIG;IACI,MAAM,CAAC,eAAe;QACzB,OAAO,IAAI,CAAC,EAAE,EAAE,CAAC;IACrB,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,eAAe;QACzB,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IACxD,CAAC;CACJ;AApBD,sDAoBC"} \ No newline at end of file diff --git a/js/src/model/Splitting.d.ts b/js/src/model/Splitting.d.ts deleted file mode 100644 index 33e1762..0000000 --- a/js/src/model/Splitting.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Class Splitting - * Splits the payment into sub-merchant settlement and the main merchant commission. Requires separate activation. - */ -export declare class Splitting { - merchant_id: string; - amount: number; - /** - * @param merchant_id Sub-merchant ID from the settlements provider. Not to be confused with the sph-merchant value. - * @param amount The amount settled to the sub-merchant's account. The rest will be considered as the main merchant's commission. In the smallest currency unit. E.g. 99.99 € = 9999. - */ - constructor(merchant_id: string, amount: number); -} diff --git a/js/src/model/Splitting.js b/js/src/model/Splitting.js deleted file mode 100644 index 221363a..0000000 --- a/js/src/model/Splitting.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Splitting = void 0; -/** - * Class Splitting - * Splits the payment into sub-merchant settlement and the main merchant commission. Requires separate activation. - */ -class Splitting { - /** - * @param merchant_id Sub-merchant ID from the settlements provider. Not to be confused with the sph-merchant value. - * @param amount The amount settled to the sub-merchant's account. The rest will be considered as the main merchant's commission. In the smallest currency unit. E.g. 99.99 € = 9999. - */ - constructor(merchant_id, amount) { - this.merchant_id = merchant_id; - this.amount = amount; - } -} -exports.Splitting = Splitting; -//# sourceMappingURL=Splitting.js.map \ No newline at end of file diff --git a/js/src/model/Splitting.js.map b/js/src/model/Splitting.js.map deleted file mode 100644 index 235e2b7..0000000 --- a/js/src/model/Splitting.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Splitting.js","sourceRoot":"","sources":["../../../ts/src/model/Splitting.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,MAAa,SAAS;IAClB;;;MAGE;IACF,YAAmB,WAAmB,EAAS,MAAc;QAA1C,gBAAW,GAAX,WAAW,CAAQ;QAAS,WAAM,GAAN,MAAM,CAAQ;IAC7D,CAAC;CACJ;AAPD,8BAOC"} \ No newline at end of file diff --git a/js/src/model/Token.d.ts b/js/src/model/Token.d.ts deleted file mode 100644 index 7c4ce50..0000000 --- a/js/src/model/Token.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare class Token { - id: string; - cvc?: string; - constructor(id: string, cvc?: string); -} diff --git a/js/src/model/Token.js b/js/src/model/Token.js deleted file mode 100644 index f9f968d..0000000 --- a/js/src/model/Token.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Token = void 0; -class Token { - constructor(id, cvc) { - this.id = id; - this.cvc = cvc; - } -} -exports.Token = Token; -//# sourceMappingURL=Token.js.map \ No newline at end of file diff --git a/js/src/model/Token.js.map b/js/src/model/Token.js.map deleted file mode 100644 index 4415b6d..0000000 --- a/js/src/model/Token.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Token.js","sourceRoot":"","sources":["../../../ts/src/model/Token.ts"],"names":[],"mappings":";;;AAAA,MAAa,KAAK;IACd,YAAmB,EAAU,EAAS,GAAY;QAA/B,OAAE,GAAF,EAAE,CAAQ;QAAS,QAAG,GAAH,GAAG,CAAS;IAClD,CAAC;CACJ;AAHD,sBAGC"} \ No newline at end of file diff --git a/js/src/model/request/AfterPayCommitTransactionRequest.d.ts b/js/src/model/request/AfterPayCommitTransactionRequest.d.ts deleted file mode 100644 index 36781c6..0000000 --- a/js/src/model/request/AfterPayCommitTransactionRequest.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Request } from './PhRequest'; -export declare class AfterPayCommitTransactionRequest extends Request { - amount: number; - constructor(amount: number); -} diff --git a/js/src/model/request/AfterPayCommitTransactionRequest.js b/js/src/model/request/AfterPayCommitTransactionRequest.js deleted file mode 100644 index 8f17ab5..0000000 --- a/js/src/model/request/AfterPayCommitTransactionRequest.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AfterPayCommitTransactionRequest = void 0; -const PhRequest_1 = require("./PhRequest"); -class AfterPayCommitTransactionRequest extends PhRequest_1.Request { - constructor(amount) { - super(); - this.amount = amount; - } -} -exports.AfterPayCommitTransactionRequest = AfterPayCommitTransactionRequest; -//# sourceMappingURL=AfterPayCommitTransactionRequest.js.map \ No newline at end of file diff --git a/js/src/model/request/AfterPayCommitTransactionRequest.js.map b/js/src/model/request/AfterPayCommitTransactionRequest.js.map deleted file mode 100644 index b9225b4..0000000 --- a/js/src/model/request/AfterPayCommitTransactionRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AfterPayCommitTransactionRequest.js","sourceRoot":"","sources":["../../../../ts/src/model/request/AfterPayCommitTransactionRequest.ts"],"names":[],"mappings":";;;AAAA,2CAAoC;AAEpC,MAAa,gCAAiC,SAAQ,mBAAO;IACzD,YAAmB,MAAc;QAC7B,KAAK,EAAE,CAAC;QADO,WAAM,GAAN,MAAM,CAAQ;IAEjC,CAAC;CACJ;AAJD,4EAIC"} \ No newline at end of file diff --git a/js/src/model/request/AfterPayRevertTransactionRequest.d.ts b/js/src/model/request/AfterPayRevertTransactionRequest.d.ts deleted file mode 100644 index ec32b55..0000000 --- a/js/src/model/request/AfterPayRevertTransactionRequest.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Request } from './PhRequest'; -/** - * When reverting without amount, - * entire amount will be reverted - */ -export declare class AfterPayRevertTransactionRequest extends Request { - amount?: number; - constructor(amount?: number); -} diff --git a/js/src/model/request/AfterPayRevertTransactionRequest.js b/js/src/model/request/AfterPayRevertTransactionRequest.js deleted file mode 100644 index 0d9e136..0000000 --- a/js/src/model/request/AfterPayRevertTransactionRequest.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AfterPayRevertTransactionRequest = void 0; -const PhRequest_1 = require("./PhRequest"); -/** - * When reverting without amount, - * entire amount will be reverted - */ -class AfterPayRevertTransactionRequest extends PhRequest_1.Request { - constructor(amount) { - super(); - this.amount = amount; - } -} -exports.AfterPayRevertTransactionRequest = AfterPayRevertTransactionRequest; -//# sourceMappingURL=AfterPayRevertTransactionRequest.js.map \ No newline at end of file diff --git a/js/src/model/request/AfterPayRevertTransactionRequest.js.map b/js/src/model/request/AfterPayRevertTransactionRequest.js.map deleted file mode 100644 index 1287be5..0000000 --- a/js/src/model/request/AfterPayRevertTransactionRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AfterPayRevertTransactionRequest.js","sourceRoot":"","sources":["../../../../ts/src/model/request/AfterPayRevertTransactionRequest.ts"],"names":[],"mappings":";;;AAAA,2CAAsC;AAEtC;;;GAGG;AACH,MAAa,gCAAiC,SAAQ,mBAAO;IACzD,YAAmB,MAAe;QAC9B,KAAK,EAAE,CAAC;QADO,WAAM,GAAN,MAAM,CAAS;IAElC,CAAC;CACJ;AAJD,4EAIC"} \ No newline at end of file diff --git a/js/src/model/request/ApplePayTransactionRequest.d.ts b/js/src/model/request/ApplePayTransactionRequest.d.ts deleted file mode 100644 index 27d5c66..0000000 --- a/js/src/model/request/ApplePayTransactionRequest.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { Customer } from './Customer'; -import { PaymentData } from './applepay/PaymentData'; -import { Request } from './PhRequest'; -import { Splitting } from '../Splitting'; -export declare class ApplePayTransactionRequest extends Request { - payment_data: PaymentData; - amount: number; - currency: string; - commit?: boolean; - order?: string; - customer?: Customer; - reference_number?: string; - splitting?: Splitting; - constructor(payment_data: PaymentData, amount: number, currency: string, commit?: boolean, order?: string, customer?: Customer, reference_number?: string, splitting?: Splitting); - static Builder(payment_data: PaymentData, amount: number, currency: string): ApplePayTransaction.RequestBuilder; -} -export declare namespace ApplePayTransaction { - class RequestBuilder { - private payment_data; - private amount; - private currency; - private commit?; - private order?; - private customer?; - private reference_number?; - private splitting?; - constructor(payment_data: PaymentData, amount: number, currency: string); - setCommit(commit: boolean): RequestBuilder; - setOrder(order: string): RequestBuilder; - setCustomer(customer: Customer): RequestBuilder; - setSplitting(splitting: Splitting): this; - /** - * Reference number used when settling the transaction to the merchant account. - * Only used if one-by-ony transaction settling is configured. - * @param referenceNumber In RF or Finnish reference number format. - */ - setReferenceNumber(referenceNumber: string): this; - build(): ApplePayTransactionRequest; - } -} diff --git a/js/src/model/request/ApplePayTransactionRequest.js b/js/src/model/request/ApplePayTransactionRequest.js deleted file mode 100644 index 9362a63..0000000 --- a/js/src/model/request/ApplePayTransactionRequest.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ApplePayTransaction = exports.ApplePayTransactionRequest = void 0; -const PhRequest_1 = require("./PhRequest"); -class ApplePayTransactionRequest extends PhRequest_1.Request { - constructor(payment_data, amount, currency, commit, order, customer, reference_number, splitting) { - super(); - this.payment_data = payment_data; - this.amount = amount; - this.currency = currency; - this.commit = commit; - this.order = order; - this.customer = customer; - this.reference_number = reference_number; - this.splitting = splitting; - } - static Builder(payment_data, amount, currency) { - return new ApplePayTransaction.RequestBuilder(payment_data, amount, currency); - } -} -exports.ApplePayTransactionRequest = ApplePayTransactionRequest; -var ApplePayTransaction; -(function (ApplePayTransaction) { - class RequestBuilder { - constructor(payment_data, amount, currency) { - this.payment_data = payment_data; - this.amount = amount; - this.currency = currency; - } - setCommit(commit) { - this.commit = commit; - return this; - } - setOrder(order) { - this.order = order; - return this; - } - setCustomer(customer) { - this.customer = customer; - return this; - } - setSplitting(splitting) { - this.splitting = splitting; - return this; - } - /** - * Reference number used when settling the transaction to the merchant account. - * Only used if one-by-ony transaction settling is configured. - * @param referenceNumber In RF or Finnish reference number format. - */ - setReferenceNumber(referenceNumber) { - this.reference_number = referenceNumber; - return this; - } - build() { - return new ApplePayTransactionRequest(this.payment_data, this.amount, this.currency, this.commit, this.order, this.customer, this.reference_number, this.splitting); - } - } - ApplePayTransaction.RequestBuilder = RequestBuilder; -})(ApplePayTransaction = exports.ApplePayTransaction || (exports.ApplePayTransaction = {})); -//# sourceMappingURL=ApplePayTransactionRequest.js.map \ No newline at end of file diff --git a/js/src/model/request/ApplePayTransactionRequest.js.map b/js/src/model/request/ApplePayTransactionRequest.js.map deleted file mode 100644 index 3771968..0000000 --- a/js/src/model/request/ApplePayTransactionRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ApplePayTransactionRequ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,CAAC;YACzB,OAAO,IAAI,CAAC;QAChB,CAAC;QACM,YAAY,CAAC,SAAoB;YACpC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;YAC3B,OAAO,IAAI,CAAC;QAChB,CAAC;QAED;;;;WAIG;QACI,kBAAkB,CAAC,eAAuB;YAC7C,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;YACxC,OAAO,IAAI,CAAC;QAChB,CAAC;QAEM,KAAK;YACR,OAAO,IAAI,0BAA0B,CACjC,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,SAAS,CACjB,CAAC;QACN,CAAC;KACJ;IAvDY,kCAAc,iBAuD1B,CAAA;AACL,CAAC,EAzDgB,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAyDnC"} \ No newline at end of file diff --git a/js/src/model/request/Card.d.ts b/js/src/model/request/Card.d.ts deleted file mode 100644 index 7ed89e8..0000000 --- a/js/src/model/request/Card.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export declare class Card { - pan: string; - expiry_year: string; - expiry_month: string; - cvc?: string; - verification?: string; - constructor(pan: string, expiry_year: string, expiry_month: string, cvc?: string, verification?: string); -} diff --git a/js/src/model/request/Card.js b/js/src/model/request/Card.js deleted file mode 100644 index 304550f..0000000 --- a/js/src/model/request/Card.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Card = void 0; -class Card { - constructor(pan, expiry_year, expiry_month, cvc, verification) { - this.pan = pan; - this.expiry_year = expiry_year; - this.expiry_month = expiry_month; - this.cvc = cvc; - this.verification = verification; - } -} -exports.Card = Card; -//# sourceMappingURL=Card.js.map \ No newline at end of file diff --git a/js/src/model/request/Card.js.map b/js/src/model/request/Card.js.map deleted file mode 100644 index 30f296c..0000000 --- a/js/src/model/request/Card.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../../ts/src/model/request/Card.ts"],"names":[],"mappings":";;;AAAA,MAAa,IAAI;IACb,YAAmB,GAAW,EACX,WAAmB,EACnB,YAAoB,EACpB,GAAY,EACZ,YAAqB;QAJrB,QAAG,GAAH,GAAG,CAAQ;QACX,gBAAW,GAAX,WAAW,CAAQ;QACnB,iBAAY,GAAZ,YAAY,CAAQ;QACpB,QAAG,GAAH,GAAG,CAAS;QACZ,iBAAY,GAAZ,YAAY,CAAS;IACxC,CAAC;CACJ;AAPD,oBAOC"} \ No newline at end of file diff --git a/js/src/model/request/ChargeCitRequest.d.ts b/js/src/model/request/ChargeCitRequest.d.ts deleted file mode 100644 index a9eb8d2..0000000 --- a/js/src/model/request/ChargeCitRequest.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { Card } from './Card'; -import { Token } from '../Token'; -import { Customer } from '../response/Customer'; -import { Splitting } from '../Splitting'; -import { StrongCustomerAuthentication } from './sca/StrongCustomerAuthentication'; -import { Request } from './PhRequest'; -export declare class ChargeCitRequest extends Request { - amount: number; - currency: string; - order: string; - strong_customer_authentication: StrongCustomerAuthentication; - card?: Card; - token?: Token; - customer?: Customer; - commit?: boolean; - splitting?: Splitting; - reference_number?: string; - constructor(amount: number, currency: string, order: string, strong_customer_authentication: StrongCustomerAuthentication, card?: Card, token?: Token, customer?: Customer, commit?: boolean, splitting?: Splitting, reference_number?: string); - /** - * Payment using a card token when the customer is participating in the payment flow. - * @param amount Payment amount - * @param currency Payment currency - * @param order Merchant-provided order ID for the purchase. Alphanumeric with dashes and underscores. Max length 254. - * @param strongCustomerAuthentication Information provided for the SCA in case of a soft decline response from the issuer - * @return Builder - */ - static Builder(amount: number, currency: string, order: string, strongCustomerAuthentication: StrongCustomerAuthentication): ChargeCitBuilder.RequestBuilder; -} -export declare namespace ChargeCitBuilder { - class RequestBuilder { - private readonly amount; - private readonly currency; - private readonly order; - private readonly strong_customer_authentication; - private card; - private token; - private customer; - private commit; - private splitting; - private reference_number; - constructor(amount: number, currency: string, order: string, strongCustomerAuthentication: StrongCustomerAuthentication); - /** - * @param card Card to charge (Only for PCI DSS certified parties!) - */ - setCard(card: Card): this; - /** - * @param token Card token to charge - */ - setToken(token: Token): this; - setCustomer(customer: Customer): this; - setCommit(commit: boolean): this; - setSplitting(splitting: Splitting): this; - /** - * Reference number used when settling the transaction to the merchant account. - * Only used if one-by-ony transaction settling is configured. - * @param referenceNumber In RF or Finnish reference number format. - */ - setReferenceNumber(referenceNumber: string): this; - build(): ChargeCitRequest; - } -} diff --git a/js/src/model/request/ChargeCitRequest.js b/js/src/model/request/ChargeCitRequest.js deleted file mode 100644 index f2d157d..0000000 --- a/js/src/model/request/ChargeCitRequest.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ChargeCitBuilder = exports.ChargeCitRequest = void 0; -const PhRequest_1 = require("./PhRequest"); -class ChargeCitRequest extends PhRequest_1.Request { - constructor(amount, currency, order, strong_customer_authentication, card, token, customer, commit, splitting, reference_number) { - super(); - this.amount = amount; - this.currency = currency; - this.order = order; - this.strong_customer_authentication = strong_customer_authentication; - this.card = card; - this.token = token; - this.customer = customer; - this.commit = commit; - this.splitting = splitting; - this.reference_number = reference_number; - } - /** - * Payment using a card token when the customer is participating in the payment flow. - * @param amount Payment amount - * @param currency Payment currency - * @param order Merchant-provided order ID for the purchase. Alphanumeric with dashes and underscores. Max length 254. - * @param strongCustomerAuthentication Information provided for the SCA in case of a soft decline response from the issuer - * @return Builder - */ - static Builder(amount, currency, order, strongCustomerAuthentication) { - return new ChargeCitBuilder.RequestBuilder(amount, currency, order, strongCustomerAuthentication); - } -} -exports.ChargeCitRequest = ChargeCitRequest; -var ChargeCitBuilder; -(function (ChargeCitBuilder) { - class RequestBuilder { - constructor(amount, currency, order, strongCustomerAuthentication) { - this.amount = amount; - this.currency = currency; - this.order = order; - this.strong_customer_authentication = strongCustomerAuthentication; - } - /** - * @param card Card to charge (Only for PCI DSS certified parties!) - */ - setCard(card) { - this.card = card; - return this; - } - /** - * @param token Card token to charge - */ - setToken(token) { - this.token = token; - return this; - } - setCustomer(customer) { - this.customer = customer; - return this; - } - setCommit(commit) { - this.commit = commit; - return this; - } - setSplitting(splitting) { - this.splitting = splitting; - return this; - } - /** - * Reference number used when settling the transaction to the merchant account. - * Only used if one-by-ony transaction settling is configured. - * @param referenceNumber In RF or Finnish reference number format. - */ - setReferenceNumber(referenceNumber) { - this.reference_number = referenceNumber; - return this; - } - build() { - if (!(this.card || this.token)) { - throw new Error('Either card or token must be defined'); - } - return new ChargeCitRequest(this.amount, this.currency, this.order, this.strong_customer_authentication, this.card, this.token, this.customer, this.commit, this.splitting, this.reference_number); - } - } - ChargeCitBuilder.RequestBuilder = RequestBuilder; -})(ChargeCitBuilder = exports.ChargeCitBuilder || (exports.ChargeCitBuilder = {})); -//# sourceMappingURL=ChargeCitRequest.js.map \ No newline at end of file diff --git a/js/src/model/request/ChargeCitRequest.js.map b/js/src/model/request/ChargeCitRequest.js.map deleted file mode 100644 index 010c62f..0000000 --- a/js/src/model/request/ChargeCitRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChargeCitRequest.js","sourceRoot":"","sources":["../../../../ts/src/model/request/ChargeCitRequest.ts"],"names":[],"mappings":";;;AAKA,2CAAoC;AAEpC,MAAa,gBAAiB,SAAQ,mBAAO;IAEzC,YACW,MAAc,EACd,QAAgB,EAChB,KAAa,EACb,8BAA4D,EAC5D,IAAW,EACX,KAAa,EACb,QAAmB,EACnB,MAAgB,EAChB,SAAqB,EACrB,gBAAyB;QAEhC,KAAK,EAAE,CAAC;QAXD,WAAM,GAAN,MAAM,CAAQ;QACd,aAAQ,GAAR,QAAQ,CAAQ;QAChB,UAAK,GAAL,KAAK,CAAQ;QACb,mCAA8B,GAA9B,8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,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;YAC3B,OAAO,IAAI,CAAC;QAChB,CAAC;QAED;;;;WAIG;QACI,kBAAkB,CAAC,eAAuB;YAC7C,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;YACxC,OAAO,IAAI,CAAC;QAChB,CAAC;QAEM,KAAK;YAER,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,EAAE;gBAC5B,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YAED,OAAO,IAAI,gBAAgB,CACvB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,8BAA8B,EACnC,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,gBAAgB,CACxB,CAAC;QACN,CAAC;KACJ;IA/EY,+BAAc,iBA+E1B,CAAA;AACL,CAAC,EAlFgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAkFhC"} \ No newline at end of file diff --git a/js/src/model/request/ChargeMitRequest.d.ts b/js/src/model/request/ChargeMitRequest.d.ts deleted file mode 100644 index 3e160ea..0000000 --- a/js/src/model/request/ChargeMitRequest.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { Card } from './Card'; -import { Token } from '../Token'; -import { Customer } from '../response/Customer'; -import { Splitting } from '../Splitting'; -import { Request } from './PhRequest'; -export declare class ChargeMitRequest extends Request { - amount: number; - currency: string; - order: string; - card?: Card; - token?: Token; - customer?: Customer; - commit?: boolean; - splitting?: Splitting; - reference_number?: string; - constructor(amount: number, currency: string, order: string, card?: Card, token?: Token, customer?: Customer, commit?: boolean, splitting?: Splitting, reference_number?: string); - /** - * Payment using a card token when the customer is not participating in the payment flow. - * A contract and understanding between the merchant and the customer must be established, allowing this kind of payments. - * @param amount Payment amount - * @param currency Payment currency - * @param order Merchant-provided order ID for the purchase. Alphanumeric with dashes and underscores. Max length 254. - * @return Builder - */ - static Builder(amount: number, currency: string, order: string): ChargeMitBuilder.RequestBuilder; -} -export declare namespace ChargeMitBuilder { - class RequestBuilder { - private readonly amount; - private readonly currency; - private readonly order; - private card; - private token; - private customer; - private commit; - private splitting; - private reference_number; - constructor(amount: number, currency: string, order: string); - /** - * @param card Card to charge (Only for PCI DSS certified parties!) - */ - setCard(card: Card): this; - /** - * @param token Card token to charge - */ - setToken(token: Token): this; - setCustomer(customer: Customer): this; - setCommit(commit: boolean): this; - setSplitting(splitting: Splitting): this; - /** - * Reference number used when settling the transaction to the merchant account. - * Only used if one-by-ony transaction settling is configured. - * @param referenceNumber In RF or Finnish reference number format. - */ - setReferenceNumber(referenceNumber: string): this; - build(): ChargeMitRequest; - } -} diff --git a/js/src/model/request/ChargeMitRequest.js b/js/src/model/request/ChargeMitRequest.js deleted file mode 100644 index 4fc6e58..0000000 --- a/js/src/model/request/ChargeMitRequest.js +++ /dev/null @@ -1,83 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ChargeMitBuilder = exports.ChargeMitRequest = void 0; -const PhRequest_1 = require("./PhRequest"); -class ChargeMitRequest extends PhRequest_1.Request { - constructor(amount, currency, order, card, token, customer, commit, splitting, reference_number) { - super(); - this.amount = amount; - this.currency = currency; - this.order = order; - this.card = card; - this.token = token; - this.customer = customer; - this.commit = commit; - this.splitting = splitting; - this.reference_number = reference_number; - } - /** - * Payment using a card token when the customer is not participating in the payment flow. - * A contract and understanding between the merchant and the customer must be established, allowing this kind of payments. - * @param amount Payment amount - * @param currency Payment currency - * @param order Merchant-provided order ID for the purchase. Alphanumeric with dashes and underscores. Max length 254. - * @return Builder - */ - static Builder(amount, currency, order) { - return new ChargeMitBuilder.RequestBuilder(amount, currency, order); - } -} -exports.ChargeMitRequest = ChargeMitRequest; -var ChargeMitBuilder; -(function (ChargeMitBuilder) { - class RequestBuilder { - constructor(amount, currency, order) { - this.amount = amount; - this.currency = currency; - this.order = order; - } - /** - * @param card Card to charge (Only for PCI DSS certified parties!) - */ - setCard(card) { - this.card = card; - return this; - } - /** - * @param token Card token to charge - */ - setToken(token) { - this.token = token; - return this; - } - setCustomer(customer) { - this.customer = customer; - return this; - } - setCommit(commit) { - this.commit = commit; - return this; - } - setSplitting(splitting) { - this.splitting = splitting; - return this; - } - /** - * Reference number used when settling the transaction to the merchant account. - * Only used if one-by-ony transaction settling is configured. - * @param referenceNumber In RF or Finnish reference number format. - */ - setReferenceNumber(referenceNumber) { - this.reference_number = referenceNumber; - return this; - } - build() { - if (!(this.card || this.token)) { - throw new Error('Either card or token must be defined'); - } - return new ChargeMitRequest(this.amount, this.currency, this.order, this.card, this.token, this.customer, this.commit, this.splitting, this.reference_number); - } - } - ChargeMitBuilder.RequestBuilder = RequestBuilder; -})(ChargeMitBuilder = exports.ChargeMitBuilder || (exports.ChargeMitBuilder = {})); -//# sourceMappingURL=ChargeMitRequest.js.map \ No newline at end of file diff --git a/js/src/model/request/ChargeMitRequest.js.map b/js/src/model/request/ChargeMitRequest.js.map deleted file mode 100644 index 5767dd4..0000000 --- a/js/src/model/request/ChargeMitRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChargeMitRequest.js","sourceRoot":"","sources":["../../../../ts/src/model/request/ChargeMitRequest.ts"],"names":[],"mappings":";;;AAIA,2CAAoC;AAEpC,MAAa,gBAAiB,SAAQ,mBAAO;IACzC,YACW,MAAc,EACd,QAAgB,EAChB,KAAa,EACb,IAAW,EACX,KAAa,EACb,QAAmB,EACnB,MAAgB,EAChB,SAAqB,EACrB,gBAAyB;QAEhC,KAAK,EAAE,CAAC;QAVD,WAAM,GAAN,MAAM,CAAQ;QACd,aAAQ,GAAR,QAAQ,CAAQ;QAChB,UAAK,GAAL,KAAK,CAAQ;QACb,SAAI,GAAJ,IAAI,CAAO;QACX,UAAK,GA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Ae,CAAC;YACxC,OAAO,IAAI,CAAC;QAChB,CAAC;QAEM,KAAK;YAER,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,EAAE;gBAC5B,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YAED,OAAO,IAAI,gBAAgB,CACvB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,gBAAgB,CACxB,CAAC;QACN,CAAC;KACJ;IA5EY,+BAAc,iBA4E1B,CAAA;AACL,CAAC,EA9EgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QA8EhC"} \ No newline at end of file diff --git a/js/src/model/request/CommitTransactionRequest.d.ts b/js/src/model/request/CommitTransactionRequest.d.ts deleted file mode 100644 index 4c598b0..0000000 --- a/js/src/model/request/CommitTransactionRequest.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Request } from './PhRequest'; -export declare class CommitTransactionRequest extends Request { - amount: number; - currency: string; - constructor(amount: number, currency: string); -} diff --git a/js/src/model/request/CommitTransactionRequest.js b/js/src/model/request/CommitTransactionRequest.js deleted file mode 100644 index 5daef50..0000000 --- a/js/src/model/request/CommitTransactionRequest.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CommitTransactionRequest = void 0; -const PhRequest_1 = require("./PhRequest"); -class CommitTransactionRequest extends PhRequest_1.Request { - constructor(amount, currency) { - super(); - this.amount = amount; - this.currency = currency; - } -} -exports.CommitTransactionRequest = CommitTransactionRequest; -//# sourceMappingURL=CommitTransactionRequest.js.map \ No newline at end of file diff --git a/js/src/model/request/CommitTransactionRequest.js.map b/js/src/model/request/CommitTransactionRequest.js.map deleted file mode 100644 index b641529..0000000 --- a/js/src/model/request/CommitTransactionRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CommitTransactionRequest.js","sourceRoot":"","sources":["../../../../ts/src/model/request/CommitTransactionRequest.ts"],"names":[],"mappings":";;;AAAA,2CAAsC;AAEtC,MAAa,wBAAyB,SAAQ,mBAAO;IACjD,YAAmB,MAAc,EAAS,QAAgB;QAAG,KAAK,EAAE,CAAC;QAAlD,WAAM,GAAN,MAAM,CAAQ;QAAS,aAAQ,GAAR,QAAQ,CAAQ;IAAW,CAAC;CACzE;AAFD,4DAEC"} \ No newline at end of file diff --git a/js/src/model/request/Customer.d.ts b/js/src/model/request/Customer.d.ts deleted file mode 100644 index 3b52263..0000000 --- a/js/src/model/request/Customer.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare class Customer { - network_address?: string; - constructor(network_address?: string); -} diff --git a/js/src/model/request/Customer.js b/js/src/model/request/Customer.js deleted file mode 100644 index ca7177f..0000000 --- a/js/src/model/request/Customer.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Customer = void 0; -class Customer { - constructor(network_address) { - this.network_address = network_address; - } -} -exports.Customer = Customer; -//# sourceMappingURL=Customer.js.map \ No newline at end of file diff --git a/js/src/model/request/Customer.js.map b/js/src/model/request/Customer.js.map deleted file mode 100644 index 0152d45..0000000 --- a/js/src/model/request/Customer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../../ts/src/model/request/Customer.ts"],"names":[],"mappings":";;;AAAA,MAAa,QAAQ;IACjB,YAAmB,eAAwB;QAAxB,oBAAe,GAAf,eAAe,CAAS;IAC3C,CAAC;CACJ;AAHD,4BAGC"} \ No newline at end of file diff --git a/js/src/model/request/MobilePayInitRequest.d.ts b/js/src/model/request/MobilePayInitRequest.d.ts deleted file mode 100644 index 1dab4c2..0000000 --- a/js/src/model/request/MobilePayInitRequest.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { Request } from './PhRequest'; -import { Splitting } from '../Splitting'; -export declare class MobilePayInitRequest extends Request { - amount: number; - currency: string; - order: string; - return_uri: string; - webhook_success_url: string; - webhook_cancel_url: string; - webhook_failure_url: string; - language?: string; - sub_merchant_name?: string; - sub_merchant_id?: string; - shop_name?: string; - shop_logo_url?: string; - reference_number?: string; - splitting?: Splitting; - constructor(amount: number, currency: string, order: string, return_uri: string, webhook_success_url: string, webhook_cancel_url: string, webhook_failure_url: string, language?: string, sub_merchant_name?: string, sub_merchant_id?: string, shop_name?: string, shop_logo_url?: string, reference_number?: string, splitting?: Splitting); - static Builder(amount: number, currency: string): MobilePayInit.RequestBuilder; -} -export declare namespace MobilePayInit { - class RequestBuilder { - private readonly amount; - private readonly currency; - private order; - private return_uri; - private language; - private webhook_success_url; - private webhook_cancel_url; - private webhook_failure_url; - private sub_merchant_name; - private sub_merchant_id; - private shop_name; - private shop_logo_url; - private reference_number; - private splitting; - constructor(amount: number, currency: string); - setOrder(order: string): this; - setReturnUri(uri: string): this; - setLanguage(language: string): this; - setWebhookSuccessUrl(url: string): this; - setWebhookCancelUrl(url: string): this; - setWebhookFailureUrl(url: string): this; - setSubMerchantName(name: string): this; - setSubMerchantId(id: string): this; - setShopName(name: string): this; - setShopLogoUrl(url: string): this; - setSplitting(splitting: Splitting): this; - /** - * Reference number used when settling the transaction to the merchant account. - * Only used if one-by-ony transaction settling is configured. - * @param referenceNumber In RF or Finnish reference number format. - */ - setReferenceNumber(referenceNumber: string): this; - build(): MobilePayInitRequest; - } -} diff --git a/js/src/model/request/MobilePayInitRequest.js b/js/src/model/request/MobilePayInitRequest.js deleted file mode 100644 index 7e78aa6..0000000 --- a/js/src/model/request/MobilePayInitRequest.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MobilePayInit = exports.MobilePayInitRequest = void 0; -const PhRequest_1 = require("./PhRequest"); -class MobilePayInitRequest extends PhRequest_1.Request { - constructor(amount, currency, order, return_uri, webhook_success_url, webhook_cancel_url, webhook_failure_url, language, sub_merchant_name, sub_merchant_id, shop_name, shop_logo_url, reference_number, splitting) { - super(); - this.amount = amount; - this.currency = currency; - this.order = order; - this.return_uri = return_uri; - this.webhook_success_url = webhook_success_url; - this.webhook_cancel_url = webhook_cancel_url; - this.webhook_failure_url = webhook_failure_url; - this.language = language; - this.sub_merchant_name = sub_merchant_name; - this.sub_merchant_id = sub_merchant_id; - this.shop_name = shop_name; - this.shop_logo_url = shop_logo_url; - this.reference_number = reference_number; - this.splitting = splitting; - } - static Builder(amount, currency) { - return new MobilePayInit.RequestBuilder(amount, currency); - } -} -exports.MobilePayInitRequest = MobilePayInitRequest; -var MobilePayInit; -(function (MobilePayInit) { - class RequestBuilder { - constructor(amount, currency) { - this.amount = amount; - this.currency = currency; - } - setOrder(order) { - this.order = order; - return this; - } - setReturnUri(uri) { - this.return_uri = uri; - return this; - } - setLanguage(language) { - this.language = language; - return this; - } - setWebhookSuccessUrl(url) { - this.webhook_success_url = url; - return this; - } - setWebhookCancelUrl(url) { - this.webhook_cancel_url = url; - return this; - } - setWebhookFailureUrl(url) { - this.webhook_failure_url = url; - return this; - } - setSubMerchantName(name) { - this.sub_merchant_name = name; - return this; - } - setSubMerchantId(id) { - this.sub_merchant_id = id; - return this; - } - setShopName(name) { - this.shop_name = name; - return this; - } - setShopLogoUrl(url) { - this.shop_logo_url = url; - return this; - } - setSplitting(splitting) { - this.splitting = splitting; - return this; - } - /** - * Reference number used when settling the transaction to the merchant account. - * Only used if one-by-ony transaction settling is configured. - * @param referenceNumber In RF or Finnish reference number format. - */ - setReferenceNumber(referenceNumber) { - this.reference_number = referenceNumber; - return this; - } - build() { - return new MobilePayInitRequest(this.amount, this.currency, this.order, this.return_uri, this.webhook_success_url, this.webhook_cancel_url, this.webhook_failure_url, this.language, this.sub_merchant_name, this.sub_merchant_id, this.shop_name, this.shop_logo_url, this.reference_number, this.splitting); - } - } - MobilePayInit.RequestBuilder = RequestBuilder; -})(MobilePayInit = exports.MobilePayInit || (exports.MobilePayInit = {})); -//# sourceMappingURL=MobilePayInitRequest.js.map \ No newline at end of file diff --git a/js/src/model/request/MobilePayInitRequest.js.map b/js/src/model/request/MobilePayInitRequest.js.map deleted file mode 100644 index 19dea95..0000000 --- a/js/src/model/request/MobilePayInitRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"MobilePayInitRequest.js","sourceRoot":"","sources":["../../../../ts/src/model/request/MobilePayInitRequest.ts"],"names":[],"mappings":";;;AAAA,2CAAsC;AAGtC,MAAa,oBAAqB,SAAQ,mBAAO;IAC7C,YACW,MAAc,EACd,QAAgB,EAChB,KAAa,EACb,UAAkB,EAClB,mBAA2B,EAC3B,kBAA0B,EAC1B,mBAA2B,EAC3B,QAAiB,EACjB,iBAA0B,EAC1B,eAAwB,EACxB,SAAkB,EAClB,aAAsB,EACtB,gBAAyB,EACzB,SAAqB;QAExB,KAAK,EAAE,CAAC;QAfL,WAAM,GAAN,MAAM,CAAQ;QACd,aAAQ,GAAR,QAAQ,CAAQ;QAChB,UAAK,GAAL,KAAK,CAAQ;QACb,eAAU,GAAV,UAAU,CAAQ;QAClB,wBAAmB,GAAnB,mBAAmB,CAAQ;QAC3B,uBAAkB,GAAlB,kBAAkB,CAAQ;QAC1B,wBAAmB,GAAnB,mBAAmB,CAAQ;QAC3B,aAAQ,GAAR,QAAQ,CAAS;QACjB,sBAAiB,GAAjB,iBAAiB,CAAS;QAC1B,oBAAe,GAAf,eAAe,CAAS;QACxB,cAAS,GAAT,SAAS,CAAS;QAClB,kBAAa,GAAb,aAAa,CAAS;QACtB,qBAAgB,GAAhB,gBAAgB,CAAS;QACzB,cAAS,GAAT,SAAS,CAAY;IAGhC,CAAC;IAEM,MAAM,CAAC,OAAO,CAAC,MAAc,EAAE,QAAgB;QAClD,OAAO,IAAI,aAAa,CAAC,cAAc,CAAC,MAA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CAAC,GAAW;YAC7B,IAAI,CAAC,aAAa,GAAG,GAAG,CAAC;YACzB,OAAO,IAAI,CAAC;QAChB,CAAC;QACM,YAAY,CAAC,SAAoB;YACpC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;YAC3B,OAAO,IAAI,CAAC;QAChB,CAAC;QAED;;;;WAIG;QACI,kBAAkB,CAAC,eAAuB;YAC7C,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;YACxC,OAAO,IAAI,CAAC;QAChB,CAAC;QAEM,KAAK;YACR,OAAO,IAAI,oBAAoB,CAC3B,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,mBAAmB,EACxB,IAAI,CAAC,kBAAkB,EACvB,IAAI,CAAC,mBAAmB,EACxB,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,iBAAiB,EACtB,IAAI,CAAC,eAAe,EACpB,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,SAAS,CACjB,CAAC;QACN,CAAC;KACJ;IAvGY,4BAAc,iBAuG1B,CAAA;AACL,CAAC,EAzGgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAyG7B"} \ No newline at end of file diff --git a/js/src/model/request/PhRequest.d.ts b/js/src/model/request/PhRequest.d.ts deleted file mode 100644 index 76cf439..0000000 --- a/js/src/model/request/PhRequest.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare class Request { - requestId: string; - constructor(); -} diff --git a/js/src/model/request/PhRequest.js b/js/src/model/request/PhRequest.js deleted file mode 100644 index 8a59ebe..0000000 --- a/js/src/model/request/PhRequest.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Request = void 0; -const PaymentHighwayUtility_1 = require("../../PaymentHighwayUtility"); -class Request { - constructor() { - this.requestId = PaymentHighwayUtility_1.PaymentHighwayUtility.createRequestId(); - } -} -exports.Request = Request; -//# sourceMappingURL=PhRequest.js.map \ No newline at end of file diff --git a/js/src/model/request/PhRequest.js.map b/js/src/model/request/PhRequest.js.map deleted file mode 100644 index 35a6eea..0000000 --- a/js/src/model/request/PhRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PhRequest.js","sourceRoot":"","sources":["../../../../ts/src/model/request/PhRequest.ts"],"names":[],"mappings":";;;AAAA,uEAAoE;AAEpE,MAAa,OAAO;IAGhB;QACI,IAAI,CAAC,SAAS,GAAG,6CAAqB,CAAC,eAAe,EAAE,CAAC;IAC7D,CAAC;CACJ;AAND,0BAMC"} \ No newline at end of file diff --git a/js/src/model/request/PivoInitRequest.d.ts b/js/src/model/request/PivoInitRequest.d.ts deleted file mode 100644 index 0cef617..0000000 --- a/js/src/model/request/PivoInitRequest.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { Splitting } from '../Splitting'; -import { Request } from './PhRequest'; -export declare class PivoInitRequest extends Request { - amount: number; - currency: string; - order: string; - description?: string; - app_url?: string; - reference_number?: string; - webhook_success_url?: string; - webhook_cancel_url?: string; - webhook_failure_url?: string; - language?: string; - phone_number?: string; - splitting?: Splitting; - constructor(amount: number, currency: string, order: string, description?: string, app_url?: string, reference_number?: string, webhook_success_url?: string, webhook_cancel_url?: string, webhook_failure_url?: string, language?: string, phone_number?: string, splitting?: Splitting); - static Builder(amount: number, currency?: string): PivoInit.RequestBuilder; -} -export declare namespace PivoInit { - class RequestBuilder { - private readonly amount; - private readonly currency; - private order; - private description; - private app_url; - private reference_number; - private language; - private webhook_success_url; - private webhook_cancel_url; - private webhook_failure_url; - private phone_number; - private splitting; - constructor(amount: number, currency: string); - setOrder(order: string): this; - setDescription(description: string): this; - setAppUrl(url: string): this; - setReferenceNumber(ref: string): this; - setPhoneNumber(phone_number: string): this; - setLanguage(language: string): this; - setWebhookSuccessUrl(url: string): this; - setWebhookCancelUrl(url: string): this; - setWebhookFailureUrl(url: string): this; - setSplitting(splitting: Splitting): this; - build(): PivoInitRequest; - } -} diff --git a/js/src/model/request/PivoInitRequest.js b/js/src/model/request/PivoInitRequest.js deleted file mode 100644 index 584ccbe..0000000 --- a/js/src/model/request/PivoInitRequest.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PivoInit = exports.PivoInitRequest = void 0; -const PhRequest_1 = require("./PhRequest"); -class PivoInitRequest extends PhRequest_1.Request { - constructor(amount, currency, order, description, app_url, reference_number, webhook_success_url, webhook_cancel_url, webhook_failure_url, language, phone_number, splitting) { - super(); - this.amount = amount; - this.currency = currency; - this.order = order; - this.description = description; - this.app_url = app_url; - this.reference_number = reference_number; - this.webhook_success_url = webhook_success_url; - this.webhook_cancel_url = webhook_cancel_url; - this.webhook_failure_url = webhook_failure_url; - this.language = language; - this.phone_number = phone_number; - this.splitting = splitting; - } - static Builder(amount, currency = 'EUR') { - return new PivoInit.RequestBuilder(amount, currency); - } -} -exports.PivoInitRequest = PivoInitRequest; -var PivoInit; -(function (PivoInit) { - class RequestBuilder { - constructor(amount, currency) { - this.amount = amount; - this.currency = currency; - } - setOrder(order) { - this.order = order; - return this; - } - setDescription(description) { - this.description = description; - return this; - } - setAppUrl(url) { - this.app_url = url; - return this; - } - setReferenceNumber(ref) { - this.reference_number = ref; - return this; - } - setPhoneNumber(phone_number) { - this.phone_number = phone_number; - return this; - } - setLanguage(language) { - this.language = language; - return this; - } - setWebhookSuccessUrl(url) { - this.webhook_success_url = url; - return this; - } - setWebhookCancelUrl(url) { - this.webhook_cancel_url = url; - return this; - } - setWebhookFailureUrl(url) { - this.webhook_failure_url = url; - return this; - } - setSplitting(splitting) { - this.splitting = splitting; - return this; - } - build() { - return new PivoInitRequest(this.amount, this.currency, this.order, this.description, this.app_url, this.reference_number, this.webhook_success_url, this.webhook_cancel_url, this.webhook_failure_url, this.language, this.phone_number, this.splitting); - } - } - PivoInit.RequestBuilder = RequestBuilder; -})(PivoInit = exports.PivoInit || (exports.PivoInit = {})); -//# sourceMappingURL=PivoInitRequest.js.map \ No newline at end of file diff --git a/js/src/model/request/PivoInitRequest.js.map b/js/src/model/request/PivoInitRequest.js.map deleted file mode 100644 index 61f052a..0000000 --- a/js/src/model/request/PivoInitRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PivoInitRequest.js","sourceRoot":"","sources":["../../../../ts/src/model/request/PivoInitRequest.ts"],"names":[],"mappings":";;;AACA,2CAAoC;AAEpC,MAAa,eAAgB,SAAQ,mBAAO;IACxC,YACW,MAAc,EACd,QAAgB,EAChB,KAAa,EACb,WAAoB,EACpB,OAAgB,EAChB,gBAAyB,EACzB,mBAA4B,EAC5B,kBAA2B,EAC3B,mBAA4B,EAC5B,QAAiB,EACjB,YAAqB,EACrB,SAAqB;QAE5B,KAAK,EAAE,CAAC;QAbD,WAAM,GAAN,MAAM,CAAQ;QACd,aAAQ,GAAR,QAAQ,CAAQ;QAChB,UAAK,GAAL,KAAK,CAAQ;QACb,gBAAW,GAAX,WAAW,CAAS;QACpB,YAAO,GAAP,OAAO,CAAS;QAChB,qBAAgB,GAAhB,gBAAgB,CAAS;QACzB,wBAAmB,GAAnB,mBAAmB,CAAS;QAC5B,uBAAkB,GAAlB,kBAAkB,CAAS;QAC3B,wBAAmB,GAAnB,mBAAmB,CAAS;QAC5B,aAAQ,GAAR,QAAQ,CAAS;QACjB,iBAAY,GAAZ,YAAY,CAAS;QACrB,cAAS,GAAT,SAAS,CAAY;IAGhC,CAAC;IAEM,MAAM,CAAC,OAAO,CAAC,MAAc,EAAE,WAAmB,KAAK;QAC1D,OAAO,IAAI,QAAQ,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACzD,CAAC;CACJ;AArBD,0CAqBC;AAED,IAAiB,QAAQ,CAuFxB;AAvFD,WAAiB,QAAQ;IACrB,MAAa,cAAc;QAcvB,YAAY,MAAc,EA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,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,mBAAmB,EACxB,IAAI,CAAC,kBAAkB,EACvB,IAAI,CAAC,mBAAmB,EACxB,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,SAAS,CACjB,CAAC;QACN,CAAC;KACJ;IArFY,uBAAc,iBAqF1B,CAAA;AACL,CAAC,EAvFgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAuFxB"} \ No newline at end of file diff --git a/js/src/model/request/RevertPivoTransactionRequest.d.ts b/js/src/model/request/RevertPivoTransactionRequest.d.ts deleted file mode 100644 index 84e2c99..0000000 --- a/js/src/model/request/RevertPivoTransactionRequest.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Request } from './PhRequest'; -/** - * When reverting without amount, - * entire amount will be reverted. - */ -export declare class RevertPivoTransactionRequest extends Request { - reference_number?: string; - amount?: number; - constructor(reference_number?: string, amount?: number); -} diff --git a/js/src/model/request/RevertPivoTransactionRequest.js b/js/src/model/request/RevertPivoTransactionRequest.js deleted file mode 100644 index f2abab2..0000000 --- a/js/src/model/request/RevertPivoTransactionRequest.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RevertPivoTransactionRequest = void 0; -const PhRequest_1 = require("./PhRequest"); -/** - * When reverting without amount, - * entire amount will be reverted. - */ -class RevertPivoTransactionRequest extends PhRequest_1.Request { - constructor(reference_number, amount) { - super(); - this.reference_number = reference_number; - this.amount = amount; - } -} -exports.RevertPivoTransactionRequest = RevertPivoTransactionRequest; -//# sourceMappingURL=RevertPivoTransactionRequest.js.map \ No newline at end of file diff --git a/js/src/model/request/RevertPivoTransactionRequest.js.map b/js/src/model/request/RevertPivoTransactionRequest.js.map deleted file mode 100644 index d3a8708..0000000 --- a/js/src/model/request/RevertPivoTransactionRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RevertPivoTransactionRequest.js","sourceRoot":"","sources":["../../../../ts/src/model/request/RevertPivoTransactionRequest.ts"],"names":[],"mappings":";;;AAAA,2CAAsC;AAEtC;;;GAGG;AACH,MAAa,4BAA6B,SAAQ,mBAAO;IACrD,YAAmB,gBAAyB,EAAS,MAAe;QAChE,KAAK,EAAE,CAAC;QADO,qBAAgB,GAAhB,gBAAgB,CAAS;QAAS,WAAM,GAAN,MAAM,CAAS;IAEpE,CAAC;CACJ;AAJD,oEAIC"} \ No newline at end of file diff --git a/js/src/model/request/RevertTransactionRequest.d.ts b/js/src/model/request/RevertTransactionRequest.d.ts deleted file mode 100644 index 5f48a03..0000000 --- a/js/src/model/request/RevertTransactionRequest.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Request } from './PhRequest'; -/** - * When reverting without amount, - * entire amount will be reverted - */ -export declare class RevertTransactionRequest extends Request { - amount?: number; - constructor(amount?: number); -} diff --git a/js/src/model/request/RevertTransactionRequest.js b/js/src/model/request/RevertTransactionRequest.js deleted file mode 100644 index d08c7f0..0000000 --- a/js/src/model/request/RevertTransactionRequest.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RevertTransactionRequest = void 0; -const PhRequest_1 = require("./PhRequest"); -/** - * When reverting without amount, - * entire amount will be reverted - */ -class RevertTransactionRequest extends PhRequest_1.Request { - constructor(amount) { - super(); - this.amount = amount; - } -} -exports.RevertTransactionRequest = RevertTransactionRequest; -//# sourceMappingURL=RevertTransactionRequest.js.map \ No newline at end of file diff --git a/js/src/model/request/RevertTransactionRequest.js.map b/js/src/model/request/RevertTransactionRequest.js.map deleted file mode 100644 index a691b50..0000000 --- a/js/src/model/request/RevertTransactionRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RevertTransactionRequest.js","sourceRoot":"","sources":["../../../../ts/src/model/request/RevertTransactionRequest.ts"],"names":[],"mappings":";;;AAAA,2CAAsC;AAEtC;;;GAGG;AACH,MAAa,wBAAyB,SAAQ,mBAAO;IACjD,YAAmB,MAAe;QAC9B,KAAK,EAAE,CAAC;QADO,WAAM,GAAN,MAAM,CAAS;IAElC,CAAC;CACJ;AAJD,4DAIC"} \ No newline at end of file diff --git a/js/src/model/request/TransactionRequest.d.ts b/js/src/model/request/TransactionRequest.d.ts deleted file mode 100644 index e5cb2bf..0000000 --- a/js/src/model/request/TransactionRequest.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Card } from './Card'; -import { Token } from '../Token'; -import { Customer } from '../response/Customer'; -import { Splitting } from '../Splitting'; -import { Request } from './PhRequest'; -export declare class TransactionRequest extends Request { - card: Card; - amount: number; - currency: string; - token: Token; - order: string; - customer: Customer; - commit: boolean; - splitting: Splitting; - reference_number?: string; - constructor(cardOrToken: Card | Token, amount: number, currency: string, order?: string, customer?: Customer, commit?: boolean, splitting?: Splitting, referenceNumber?: string); -} diff --git a/js/src/model/request/TransactionRequest.js b/js/src/model/request/TransactionRequest.js deleted file mode 100644 index 5f42e68..0000000 --- a/js/src/model/request/TransactionRequest.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TransactionRequest = void 0; -const Card_1 = require("./Card"); -const PhRequest_1 = require("./PhRequest"); -class TransactionRequest extends PhRequest_1.Request { - constructor(cardOrToken, amount, currency, order, customer, commit, splitting, referenceNumber) { - super(); - if (cardOrToken instanceof Card_1.Card) { - this.card = cardOrToken; - } - else { - this.token = cardOrToken; - } - this.amount = amount; - this.currency = currency; - this.order = order; - this.customer = customer; - this.commit = commit; - this.splitting = splitting; - this.reference_number = referenceNumber; - } -} -exports.TransactionRequest = TransactionRequest; -//# sourceMappingURL=TransactionRequest.js.map \ No newline at end of file diff --git a/js/src/model/request/TransactionRequest.js.map b/js/src/model/request/TransactionRequest.js.map deleted file mode 100644 index cd186ce..0000000 --- a/js/src/model/request/TransactionRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TransactionRequest.js","sourceRoot":"","sources":["../../../../ts/src/model/request/TransactionRequest.ts"],"names":[],"mappings":";;;AAAA,iCAA4B;AAI5B,2CAAsC;AAEtC,MAAa,kBAAmB,SAAQ,mBAAO;IAW3C,YAAY,WAAuB,EAAE,MAAc,EAAE,QAAgB,EAAE,KAAc,EAAE,QAAmB,EAAE,MAAgB,EAAE,SAAqB,EAAE,eAAwB;QACzK,KAAK,EAAE,CAAC;QAER,IAAI,WAAW,YAAY,WAAI,EAAE;YAC7B,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;SAC3B;aAAM;YACH,IAAI,CAAC,KAAK,GAAG,WAAW,CAAC;SAC5B;QACD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;IAC5C,CAAC;CACJ;AA3BD,gDA2BC"} \ No newline at end of file diff --git a/js/src/model/request/applepay/PaymentData.d.ts b/js/src/model/request/applepay/PaymentData.d.ts deleted file mode 100644 index 330213d..0000000 --- a/js/src/model/request/applepay/PaymentData.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { PaymentDataHeader } from './PaymentDataHeader'; -export declare class PaymentData { - data: string; - header: PaymentDataHeader; - signature: string; - version: string; - constructor(data: string, header: PaymentDataHeader, signature: string, version: string); -} diff --git a/js/src/model/request/applepay/PaymentData.js b/js/src/model/request/applepay/PaymentData.js deleted file mode 100644 index d2320f1..0000000 --- a/js/src/model/request/applepay/PaymentData.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PaymentData = void 0; -class PaymentData { - constructor(data, header, signature, version) { - this.data = data; - this.header = header; - this.signature = signature; - this.version = version; - } -} -exports.PaymentData = PaymentData; -//# sourceMappingURL=PaymentData.js.map \ No newline at end of file diff --git a/js/src/model/request/applepay/PaymentData.js.map b/js/src/model/request/applepay/PaymentData.js.map deleted file mode 100644 index 2b65af8..0000000 --- a/js/src/model/request/applepay/PaymentData.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PaymentData.js","sourceRoot":"","sources":["../../../../../ts/src/model/request/applepay/PaymentData.ts"],"names":[],"mappings":";;;AAEA,MAAa,WAAW;IACpB,YAAmB,IAAY,EACZ,MAAyB,EACzB,SAAiB,EACjB,OAAe;QAHf,SAAI,GAAJ,IAAI,CAAQ;QACZ,WAAM,GAAN,MAAM,CAAmB;QACzB,cAAS,GAAT,SAAS,CAAQ;QACjB,YAAO,GAAP,OAAO,CAAQ;IAClC,CAAC;CACJ;AAND,kCAMC"} \ No newline at end of file diff --git a/js/src/model/request/applepay/PaymentDataHeader.d.ts b/js/src/model/request/applepay/PaymentDataHeader.d.ts deleted file mode 100644 index 7518358..0000000 --- a/js/src/model/request/applepay/PaymentDataHeader.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export declare class PaymentDataHeader { - ephemeralPublicKey: string; - publicKeyHash: string; - transactionId: string; - applicationData?: string; - constructor(ephemeralPublicKey: string, publicKeyHash: string, transactionId: string, applicationData?: string); -} diff --git a/js/src/model/request/applepay/PaymentDataHeader.js b/js/src/model/request/applepay/PaymentDataHeader.js deleted file mode 100644 index 64f78b5..0000000 --- a/js/src/model/request/applepay/PaymentDataHeader.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PaymentDataHeader = void 0; -class PaymentDataHeader { - constructor(ephemeralPublicKey, publicKeyHash, transactionId, applicationData) { - this.ephemeralPublicKey = ephemeralPublicKey; - this.publicKeyHash = publicKeyHash; - this.transactionId = transactionId; - this.applicationData = applicationData; - } -} -exports.PaymentDataHeader = PaymentDataHeader; -//# sourceMappingURL=PaymentDataHeader.js.map \ No newline at end of file diff --git a/js/src/model/request/applepay/PaymentDataHeader.js.map b/js/src/model/request/applepay/PaymentDataHeader.js.map deleted file mode 100644 index 2718f1d..0000000 --- a/js/src/model/request/applepay/PaymentDataHeader.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PaymentDataHeader.js","sourceRoot":"","sources":["../../../../../ts/src/model/request/applepay/PaymentDataHeader.ts"],"names":[],"mappings":";;;AAAA,MAAa,iBAAiB;IAC1B,YAAmB,kBAA0B,EAC1B,aAAqB,EACrB,aAAqB,EACrB,eAAwB;QAHxB,uBAAkB,GAAlB,kBAAkB,CAAQ;QAC1B,kBAAa,GAAb,aAAa,CAAQ;QACrB,kBAAa,GAAb,aAAa,CAAQ;QACrB,oBAAe,GAAf,eAAe,CAAS;IAC3C,CAAC;CACJ;AAND,8CAMC"} \ No newline at end of file diff --git a/js/src/model/request/sca/Address.d.ts b/js/src/model/request/sca/Address.d.ts deleted file mode 100644 index 8de98e4..0000000 --- a/js/src/model/request/sca/Address.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -export declare class Address { - city?: string; - country?: string; - address_line_1?: string; - address_line_2?: string; - address_line_3?: string; - post_code?: string; - state?: string; - constructor(city?: string, country?: string, address_line_1?: string, address_line_2?: string, address_line_3?: string, post_code?: string, state?: string); - static Builder(): AddressBuilder.RequestBuilder; -} -export declare namespace AddressBuilder { - class RequestBuilder { - private city; - private country; - private address_line_1; - private address_line_2; - private address_line_3; - private post_code; - private state; - /** - * @param city max length 50, City name - */ - setCity(city: string): this; - /** - * 3 digit country code, ISO 3166-1 - * For example: - * Canada: 124 - * China: 156 - * Denmark: 208 - * Estonia: 233 - * Finland: 246 - * France: 250 - * Germany: 276 - * Japan: 392 - * Netherlands: 528 - * Norway: 578 - * Poland: 616 - * Russia: 643 - * Spain: 724 - * Sweden: 752 - * Switzerland: 756 - * United Kingdom: 826 - * United States of America: 840 - * - * @see https://www.iso.org/obp/ui/#search/code/ - * @see https://en.wikipedia.org/wiki/ISO_3166-1_numeric - * - * @param country 3 digits country code, ISO 3166-1 numeric - */ - setCountry(country: string): this; - /** - * @param addressLine1 max length 50, Address line 1 - */ - setAddressLine1(addressLine1: string): this; - /** - * @param addressLine2 max length 50, Address line 2 - */ - setAddressLine2(addressLine2: string): this; - /** - * @param addressLine3 max length 50, Address line 3 - */ - setAddressLine3(addressLine3: string): this; - /** - * @param postCode max length 16, Zip code - */ - setPostCode(postCode: string): this; - /** - * @param state String length 2, ISO 3166-2 country subdivision code (eg. Uusimaa = "18") - */ - setState(state: string): this; - build(): Address; - } -} diff --git a/js/src/model/request/sca/Address.js b/js/src/model/request/sca/Address.js deleted file mode 100644 index 539a102..0000000 --- a/js/src/model/request/sca/Address.js +++ /dev/null @@ -1,100 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AddressBuilder = exports.Address = void 0; -class Address { - constructor(city, country, address_line_1, address_line_2, address_line_3, post_code, state) { - this.city = city; - this.country = country; - this.address_line_1 = address_line_1; - this.address_line_2 = address_line_2; - this.address_line_3 = address_line_3; - this.post_code = post_code; - this.state = state; - } - static Builder() { - return new AddressBuilder.RequestBuilder(); - } -} -exports.Address = Address; -var AddressBuilder; -(function (AddressBuilder) { - class RequestBuilder { - /** - * @param city max length 50, City name - */ - setCity(city) { - this.city = city; - return this; - } - /** - * 3 digit country code, ISO 3166-1 - * For example: - * Canada: 124 - * China: 156 - * Denmark: 208 - * Estonia: 233 - * Finland: 246 - * France: 250 - * Germany: 276 - * Japan: 392 - * Netherlands: 528 - * Norway: 578 - * Poland: 616 - * Russia: 643 - * Spain: 724 - * Sweden: 752 - * Switzerland: 756 - * United Kingdom: 826 - * United States of America: 840 - * - * @see https://www.iso.org/obp/ui/#search/code/ - * @see https://en.wikipedia.org/wiki/ISO_3166-1_numeric - * - * @param country 3 digits country code, ISO 3166-1 numeric - */ - setCountry(country) { - this.country = country; - return this; - } - /** - * @param addressLine1 max length 50, Address line 1 - */ - setAddressLine1(addressLine1) { - this.address_line_1 = addressLine1; - return this; - } - /** - * @param addressLine2 max length 50, Address line 2 - */ - setAddressLine2(addressLine2) { - this.address_line_2 = addressLine2; - return this; - } - /** - * @param addressLine3 max length 50, Address line 3 - */ - setAddressLine3(addressLine3) { - this.address_line_3 = addressLine3; - return this; - } - /** - * @param postCode max length 16, Zip code - */ - setPostCode(postCode) { - this.post_code = postCode; - return this; - } - /** - * @param state String length 2, ISO 3166-2 country subdivision code (eg. Uusimaa = "18") - */ - setState(state) { - this.state = state; - return this; - } - build() { - return new Address(this.city, this.country, this.address_line_1, this.address_line_2, this.address_line_3, this.post_code, this.state); - } - } - AddressBuilder.RequestBuilder = RequestBuilder; -})(AddressBuilder = exports.AddressBuilder || (exports.AddressBuilder = {})); -//# sourceMappingURL=Address.js.map \ No newline at end of file diff --git a/js/src/model/request/sca/Address.js.map b/js/src/model/request/sca/Address.js.map deleted file mode 100644 index 1af1bf2..0000000 --- a/js/src/model/request/sca/Address.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Address.js","sourceRoot":"","sources":["../../../../../ts/src/model/request/sca/Address.ts"],"names":[],"mappings":";;;AAAA,MAAa,OAAO;IAChB,YACW,IAAa,EACb,OAAgB,EAChB,cAAuB,EACvB,cAAuB,EACvB,cAAuB,EACvB,SAAkB,EAClB,KAAc;QANd,SAAI,GAAJ,IAAI,CAAS;QACb,YAAO,GAAP,OAAO,CAAS;QAChB,mBAAc,GAAd,cAAc,CAAS;QACvB,mBAAc,GAAd,cAAc,CAAS;QACvB,mBAAc,GAAd,cAAc,CAAS;QACvB,cAAS,GAAT,SAAS,CAAS;QAClB,UAAK,GAAL,KAAK,CAAS;IAEzB,CAAC;IAEM,MAAM,CAAC,OAAO;QACjB,OAAO,IAAI,cAAc,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Ac,GAAd,sBAAc,KAAd,sBAAc,QAqG9B"} \ No newline at end of file diff --git a/js/src/model/request/sca/CustomerAccount.d.ts b/js/src/model/request/sca/CustomerAccount.d.ts deleted file mode 100644 index c435692..0000000 --- a/js/src/model/request/sca/CustomerAccount.d.ts +++ /dev/null @@ -1,177 +0,0 @@ -export declare class CustomerAccount { - account_age_indicator?: AccountAgeIndicator; - account_date?: string; - change_indicator?: AccountInformationChangeIndicator; - change_date?: string; - password_change_indicator?: AccountPasswordChangeIndicator; - password_change_date?: string; - number_of_recent_purchases?: number; - number_of_add_card_attempts_day?: number; - number_of_transaction_activity_day?: number; - number_of_transaction_activity_year?: number; - shipping_address_indicator?: ShippingAddressFirstUsedIndicator; - shipping_address_usage_date?: string; - suspicious_activity?: SuspiciousActivityIndicator; - constructor(account_age_indicator?: AccountAgeIndicator, account_date?: string, change_indicator?: AccountInformationChangeIndicator, change_date?: string, password_change_indicator?: AccountPasswordChangeIndicator, password_change_date?: string, number_of_recent_purchases?: number, number_of_add_card_attempts_day?: number, number_of_transaction_activity_day?: number, number_of_transaction_activity_year?: number, shipping_address_indicator?: ShippingAddressFirstUsedIndicator, shipping_address_usage_date?: string, suspicious_activity?: SuspiciousActivityIndicator); - static Builder(): CustomerAccountBuilder.RequestBuilder; -} -export declare namespace CustomerAccountBuilder { - class RequestBuilder { - private account_age_indicator; - private account_date; - private change_indicator; - private change_date; - private password_change_indicator; - private password_change_date; - private number_of_recent_purchases; - private number_of_add_card_attempts_day; - private number_of_transaction_activity_day; - private number_of_transaction_activity_year; - private shipping_address_indicator; - private shipping_address_usage_date; - private suspicious_activity; - /** - * Length of time that the cardholder has had the account with the 3DS Requestor. - * @param accountAgeIndicator 01 = No account (guest check-out), 02 = Created during this transaction, 03 = Less than 30 days, 04 = 30−60 days, 05 = More than 60 days - * @return Builder - */ - setAccountAgeIndicator(accountAgeIndicator: AccountAgeIndicator): this; - /** - * Date that the cardholder opened the account at merchant - * @param accountDate Date format: yyyy-MM-dd - * @return Builder - */ - setAccountDate(accountDate: string): this; - /** - * Length of time since the cardholder’s account information with the 3DS Requestor was last changed. Including Billing or Shipping address, new payment account, or new user(s) added. - * @param changeIndicator 01 = Changed during this transaction, 02 = Less than 30 days, 03 = 30−60 days, 04 = More than 60 days - * @return Builder - */ - setChangeIndicator(changeIndicator: AccountInformationChangeIndicator): this; - /** - * Date that the cardholder’s account with the 3DS Requestor was last changed. Including Billing or Shipping address - * @param changeDate Date format: yyyy-MM-dd - * @return Builder - */ - setChangeDate(changeDate: string): this; - /** - * Length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. - * @param accountPasswordChangeIndicator 01 = No change, 02 = Changed during this transaction, 03 = Less than 30 days, 04 = 30−60 days, 05 = More than 60 days - * @return Builder - */ - setPasswordChangeIndicator(accountPasswordChangeIndicator: AccountPasswordChangeIndicator): this; - /** - * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. - * @param passwordChangeDate Date format: yyyy-MM-dd - * @return Builder - */ - setPasswordChangeDate(passwordChangeDate: string): this; - /** - * Number of purchases with this cardholder account during the previous six months. - * @param numberOfRecentPurchases Max value: 9999 - * @return Builder - */ - setNumberOfRecentPurchases(numberOfRecentPurchases: number): this; - /** - * Number of Add Card attempts in the last 24 hours. - * @param numberOfAddCardAttemptsDay Max value: 999 - * @return Builder - */ - setNumberOfAddCardAttemptsDay(numberOfAddCardAttemptsDay: number): this; - /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. - * @param numberOfTransactionActivityDay Max value: 999 - * @return Builder - */ - setNumberOfTransactionActivityDay(numberOfTransactionActivityDay: number): this; - /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. - * @param numberOfTransactionActivityYear Max value: 999 - * @return Builder - */ - setNumberOfTransactionActivityYear(numberOfTransactionActivityYear: number): this; - /** - * Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. - * @param shippingAddressIndicator 01 = This transaction, 02 = Less than 30 days, 03 = 30−60 days, 04 = More than 60 days - * @return Builder - */ - setShippingAddressIndicator(shippingAddressIndicator: ShippingAddressFirstUsedIndicator): this; - /** - * Date when the shipping address used for this transaction was first used with the 3DS Requestor - * @param shippingAddressUsageDate Date format: yyyy-MM-dd - * @return Builder - */ - setShippingAddressUsageDate(shippingAddressUsageDate: string): this; - /** Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. - * @param suspiciousActivity 01 = No suspicious activity has been observed, 02 = Suspicious activity has been observed - * @return Builder - */ - setSuspiciousActivity(suspiciousActivity: SuspiciousActivityIndicator): this; - build(): CustomerAccount; - } -} -/** - * Length of time that the cardholder has had the account. - * 01 = No account (guest check-out) - * 02 = Created during this transaction - * 03 = Less than 30 days - * 04 = 30−60 days - * 05 = More than 60 days - */ -export declare enum AccountAgeIndicator { - NoAccount = "01", - CreatedDuringTransaction = "02", - LessThan30Days = "03", - Between30And60Days = "04", - MoreThan60Days = "05" -} -/** - * Length of time since the cardholder’s account information was last changed. Including Billing or Shipping address, new payment account, or new user(s) added. - * 01 = Changed during this transaction - * 02 = Less than 30 days - * 03 = 30−60 days - * 04 = More than 60 days - */ -export declare enum AccountInformationChangeIndicator { - ChangedDuringTransaction = "01", - LessThan30Days = "02", - Between30And60Days = "03", - MoreThan60Days = "04" -} -/** - * Length of time since the cardholder’s account had a password change or account reset. - * 01 = No change - * 02 = Changed during this transaction - * 03 = Less than 30 days - * 04 = 30−60 days - * 05 = More than 60 days - */ -export declare enum AccountPasswordChangeIndicator { - NoChange = "01", - ChangedDuringTransaction = "02", - LessThan30Days = "03", - Between30And60Days = "04", - MoreThan60Days = "05" -} -/** - * Indicates when the shipping address used for this transaction was first used. - * 01 = This transaction - * 02 = Less than 30 days - * 03 = 30−60 days - * 04 = More than 60 days - */ -export declare enum ShippingAddressFirstUsedIndicator { - ThisTransaction = "01", - LessThan30Days = "02", - Between30And60Days = "03", - MoreThan60Days = "04" -} -/** - * Indicates whether suspicious activity has been experienced (including previous fraud) on the cardholder account. - * 01 = No suspicious activity has been observed - * 02 = Suspicious activity has been observed - */ -export declare enum SuspiciousActivityIndicator { - NoSuspiciousActivity = "01", - SuspiciousActivityObserved = "02" -} diff --git a/js/src/model/request/sca/CustomerAccount.js b/js/src/model/request/sca/CustomerAccount.js deleted file mode 100644 index 2399ae4..0000000 --- a/js/src/model/request/sca/CustomerAccount.js +++ /dev/null @@ -1,220 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SuspiciousActivityIndicator = exports.ShippingAddressFirstUsedIndicator = exports.AccountPasswordChangeIndicator = exports.AccountInformationChangeIndicator = exports.AccountAgeIndicator = exports.CustomerAccountBuilder = exports.CustomerAccount = void 0; -class CustomerAccount { - constructor(account_age_indicator, account_date, change_indicator, change_date, password_change_indicator, password_change_date, number_of_recent_purchases, number_of_add_card_attempts_day, number_of_transaction_activity_day, number_of_transaction_activity_year, shipping_address_indicator, shipping_address_usage_date, suspicious_activity) { - this.account_age_indicator = account_age_indicator; - this.account_date = account_date; - this.change_indicator = change_indicator; - this.change_date = change_date; - this.password_change_indicator = password_change_indicator; - this.password_change_date = password_change_date; - this.number_of_recent_purchases = number_of_recent_purchases; - this.number_of_add_card_attempts_day = number_of_add_card_attempts_day; - this.number_of_transaction_activity_day = number_of_transaction_activity_day; - this.number_of_transaction_activity_year = number_of_transaction_activity_year; - this.shipping_address_indicator = shipping_address_indicator; - this.shipping_address_usage_date = shipping_address_usage_date; - this.suspicious_activity = suspicious_activity; - } - static Builder() { - return new CustomerAccountBuilder.RequestBuilder(); - } -} -exports.CustomerAccount = CustomerAccount; -var CustomerAccountBuilder; -(function (CustomerAccountBuilder) { - class RequestBuilder { - /** - * Length of time that the cardholder has had the account with the 3DS Requestor. - * @param accountAgeIndicator 01 = No account (guest check-out), 02 = Created during this transaction, 03 = Less than 30 days, 04 = 30−60 days, 05 = More than 60 days - * @return Builder - */ - setAccountAgeIndicator(accountAgeIndicator) { - this.account_age_indicator = accountAgeIndicator; - return this; - } - /** - * Date that the cardholder opened the account at merchant - * @param accountDate Date format: yyyy-MM-dd - * @return Builder - */ - setAccountDate(accountDate) { - this.account_date = accountDate; - return this; - } - /** - * Length of time since the cardholder’s account information with the 3DS Requestor was last changed. Including Billing or Shipping address, new payment account, or new user(s) added. - * @param changeIndicator 01 = Changed during this transaction, 02 = Less than 30 days, 03 = 30−60 days, 04 = More than 60 days - * @return Builder - */ - setChangeIndicator(changeIndicator) { - this.change_indicator = changeIndicator; - return this; - } - /** - * Date that the cardholder’s account with the 3DS Requestor was last changed. Including Billing or Shipping address - * @param changeDate Date format: yyyy-MM-dd - * @return Builder - */ - setChangeDate(changeDate) { - this.change_date = changeDate; - return this; - } - /** - * Length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. - * @param accountPasswordChangeIndicator 01 = No change, 02 = Changed during this transaction, 03 = Less than 30 days, 04 = 30−60 days, 05 = More than 60 days - * @return Builder - */ - setPasswordChangeIndicator(accountPasswordChangeIndicator) { - this.password_change_indicator = accountPasswordChangeIndicator; - return this; - } - /** - * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. - * @param passwordChangeDate Date format: yyyy-MM-dd - * @return Builder - */ - setPasswordChangeDate(passwordChangeDate) { - this.password_change_date = passwordChangeDate; - return this; - } - /** - * Number of purchases with this cardholder account during the previous six months. - * @param numberOfRecentPurchases Max value: 9999 - * @return Builder - */ - setNumberOfRecentPurchases(numberOfRecentPurchases) { - this.number_of_recent_purchases = numberOfRecentPurchases; - return this; - } - /** - * Number of Add Card attempts in the last 24 hours. - * @param numberOfAddCardAttemptsDay Max value: 999 - * @return Builder - */ - setNumberOfAddCardAttemptsDay(numberOfAddCardAttemptsDay) { - this.number_of_add_card_attempts_day = numberOfAddCardAttemptsDay; - return this; - } - /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. - * @param numberOfTransactionActivityDay Max value: 999 - * @return Builder - */ - setNumberOfTransactionActivityDay(numberOfTransactionActivityDay) { - this.number_of_transaction_activity_day = numberOfTransactionActivityDay; - return this; - } - /** - * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. - * @param numberOfTransactionActivityYear Max value: 999 - * @return Builder - */ - setNumberOfTransactionActivityYear(numberOfTransactionActivityYear) { - this.number_of_transaction_activity_year = numberOfTransactionActivityYear; - return this; - } - /** - * Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. - * @param shippingAddressIndicator 01 = This transaction, 02 = Less than 30 days, 03 = 30−60 days, 04 = More than 60 days - * @return Builder - */ - setShippingAddressIndicator(shippingAddressIndicator) { - this.shipping_address_indicator = shippingAddressIndicator; - return this; - } - /** - * Date when the shipping address used for this transaction was first used with the 3DS Requestor - * @param shippingAddressUsageDate Date format: yyyy-MM-dd - * @return Builder - */ - setShippingAddressUsageDate(shippingAddressUsageDate) { - this.shipping_address_usage_date = shippingAddressUsageDate; - return this; - } - /** Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. - * @param suspiciousActivity 01 = No suspicious activity has been observed, 02 = Suspicious activity has been observed - * @return Builder - */ - setSuspiciousActivity(suspiciousActivity) { - this.suspicious_activity = suspiciousActivity; - return this; - } - build() { - return new CustomerAccount(this.account_age_indicator, this.account_date, this.change_indicator, this.change_date, this.password_change_indicator, this.password_change_date, this.number_of_recent_purchases, this.number_of_add_card_attempts_day, this.number_of_transaction_activity_day, this.number_of_transaction_activity_year, this.shipping_address_indicator, this.shipping_address_usage_date, this.suspicious_activity); - } - } - CustomerAccountBuilder.RequestBuilder = RequestBuilder; -})(CustomerAccountBuilder = exports.CustomerAccountBuilder || (exports.CustomerAccountBuilder = {})); -/** - * Length of time that the cardholder has had the account. - * 01 = No account (guest check-out) - * 02 = Created during this transaction - * 03 = Less than 30 days - * 04 = 30−60 days - * 05 = More than 60 days - */ -var AccountAgeIndicator; -(function (AccountAgeIndicator) { - AccountAgeIndicator["NoAccount"] = "01"; - AccountAgeIndicator["CreatedDuringTransaction"] = "02"; - AccountAgeIndicator["LessThan30Days"] = "03"; - AccountAgeIndicator["Between30And60Days"] = "04"; - AccountAgeIndicator["MoreThan60Days"] = "05"; -})(AccountAgeIndicator = exports.AccountAgeIndicator || (exports.AccountAgeIndicator = {})); -/** - * Length of time since the cardholder’s account information was last changed. Including Billing or Shipping address, new payment account, or new user(s) added. - * 01 = Changed during this transaction - * 02 = Less than 30 days - * 03 = 30−60 days - * 04 = More than 60 days - */ -var AccountInformationChangeIndicator; -(function (AccountInformationChangeIndicator) { - AccountInformationChangeIndicator["ChangedDuringTransaction"] = "01"; - AccountInformationChangeIndicator["LessThan30Days"] = "02"; - AccountInformationChangeIndicator["Between30And60Days"] = "03"; - AccountInformationChangeIndicator["MoreThan60Days"] = "04"; -})(AccountInformationChangeIndicator = exports.AccountInformationChangeIndicator || (exports.AccountInformationChangeIndicator = {})); -/** - * Length of time since the cardholder’s account had a password change or account reset. - * 01 = No change - * 02 = Changed during this transaction - * 03 = Less than 30 days - * 04 = 30−60 days - * 05 = More than 60 days - */ -var AccountPasswordChangeIndicator; -(function (AccountPasswordChangeIndicator) { - AccountPasswordChangeIndicator["NoChange"] = "01"; - AccountPasswordChangeIndicator["ChangedDuringTransaction"] = "02"; - AccountPasswordChangeIndicator["LessThan30Days"] = "03"; - AccountPasswordChangeIndicator["Between30And60Days"] = "04"; - AccountPasswordChangeIndicator["MoreThan60Days"] = "05"; -})(AccountPasswordChangeIndicator = exports.AccountPasswordChangeIndicator || (exports.AccountPasswordChangeIndicator = {})); -/** - * Indicates when the shipping address used for this transaction was first used. - * 01 = This transaction - * 02 = Less than 30 days - * 03 = 30−60 days - * 04 = More than 60 days - */ -var ShippingAddressFirstUsedIndicator; -(function (ShippingAddressFirstUsedIndicator) { - ShippingAddressFirstUsedIndicator["ThisTransaction"] = "01"; - ShippingAddressFirstUsedIndicator["LessThan30Days"] = "02"; - ShippingAddressFirstUsedIndicator["Between30And60Days"] = "03"; - ShippingAddressFirstUsedIndicator["MoreThan60Days"] = "04"; -})(ShippingAddressFirstUsedIndicator = exports.ShippingAddressFirstUsedIndicator || (exports.ShippingAddressFirstUsedIndicator = {})); -/** - * Indicates whether suspicious activity has been experienced (including previous fraud) on the cardholder account. - * 01 = No suspicious activity has been observed - * 02 = Suspicious activity has been observed - */ -var SuspiciousActivityIndicator; -(function (SuspiciousActivityIndicator) { - SuspiciousActivityIndicator["NoSuspiciousActivity"] = "01"; - SuspiciousActivityIndicator["SuspiciousActivityObserved"] = "02"; -})(SuspiciousActivityIndicator = exports.SuspiciousActivityIndicator || (exports.SuspiciousActivityIndicator = {})); -//# sourceMappingURL=CustomerAccount.js.map \ No newline at end of file diff --git a/js/src/model/request/sca/CustomerAccount.js.map b/js/src/model/request/sca/CustomerAccount.js.map deleted file mode 100644 index 294807c..0000000 --- a/js/src/model/request/sca/CustomerAccount.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CustomerAccount.js","sourceRoot":"","sources":["../../../../../ts/src/model/request/sca/CustomerAccount.ts"],"names":[],"mappings":";;;AAAA,MAAa,eAAe;IACxB,YACW,qBAA2C,EAC3C,YAAqB,EACrB,gBAAoD,EACpD,WAAoB,EACpB,yBAA0D,EAC1D,oBAA6B,EAC7B,0BAAmC,EACnC,+BAAwC,EACxC,kCAA2C,EAC3C,mCAA4C,EAC5C,0BAA8D,EAC9D,2BAAoC,EACpC,mBAAiD;QAZjD,0BAAqB,GAArB,qBAAqB,CAAsB;QAC3C,iBAAY,GAAZ,YAAY,CAAS;QACrB,qBAAgB,GAAhB,gBAAgB,CAAoC;QACpD,gBAAW,GAAX,WAAW,CAAS;QACpB,8BAAyB,GAAzB,yBAAyB,CAAiC;QAC1D,yBAAoB,GAApB,oBAAoB,CAAS;QAC7B,+BAA0B,GAA1B,0BAA0B,CAAS;QACnC,oCAA+B,GAA/B,+BAA+B,CAAS;QACxC,uCAAkC,GAAlC,kCAAkC,CAAS;QAC3C,wCAAmC,GAAnC,mCAAmC,CA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mBAMX;AAND,WAAY,mBAAmB;IAC3B,uCAAgB,CAAA;IAChB,sDAA+B,CAAA;IAC/B,4CAAqB,CAAA;IACrB,gDAAyB,CAAA;IACzB,4CAAqB,CAAA;AACzB,CAAC,EANW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAM9B;AAED;;;;;;GAMG;AACH,IAAY,iCAKX;AALD,WAAY,iCAAiC;IACzC,oEAA+B,CAAA;IAC/B,0DAAqB,CAAA;IACrB,8DAAyB,CAAA;IACzB,0DAAqB,CAAA;AACzB,CAAC,EALW,iCAAiC,GAAjC,yCAAiC,KAAjC,yCAAiC,QAK5C;AAED;;;;;;;GAOG;AACH,IAAY,8BAMX;AAND,WAAY,8BAA8B;IACtC,iDAAe,CAAA;IACf,iEAA+B,CAAA;IAC/B,uDAAqB,CAAA;IACrB,2DAAyB,CAAA;IACzB,uDAAqB,CAAA;AACzB,CAAC,EANW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAMzC;AAED;;;;;;GAMG;AACH,IAAY,iCAKX;AALD,WAAY,iCAAiC;IACzC,2DAAsB,CAAA;IACtB,0DAAqB,CAAA;IACrB,8DAAyB,CAAA;IACzB,0DAAqB,CAAA;AACzB,CAAC,EALW,iCAAiC,GAAjC,yCAAiC,KAAjC,yCAAiC,QAK5C;AAED;;;;GAIG;AACH,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACnC,0DAA2B,CAAA;IAC3B,gEAAiC,CAAA;AACrC,CAAC,EAHW,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAGtC"} \ No newline at end of file diff --git a/js/src/model/request/sca/CustomerAuthenticationInfo.d.ts b/js/src/model/request/sca/CustomerAuthenticationInfo.d.ts deleted file mode 100644 index 66beeb8..0000000 --- a/js/src/model/request/sca/CustomerAuthenticationInfo.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -export declare class CustomerAuthenticationInfo { - method?: Method; - timestamp?: string; - data?: string; - /** - * @param method Information about how the cardholder is authenticated before or during the transaction. - * @param timestamp Date and time in UTC of the cardholder authentication. Date format: "yyyy-MM-dd'T'HH:mm:ss'Z'", e.g. 2019-08-27T09:22:52Z - * @param data Data that documents and supports a specific authentication process. Only populate if instructed to do so. Max length 2048 - */ - constructor(method?: Method, timestamp?: string, data?: string); - static Builder(): CustomerAuthenticationInfoBuilder.RequestBuilder; -} -export declare namespace CustomerAuthenticationInfoBuilder { - class RequestBuilder { - private method; - private timestamp; - private data; - setMethod(method: Method): this; - setTimestamp(timestamp: string): this; - setData(data: string): this; - build(): CustomerAuthenticationInfo; - } -} -/** - * Information about how the cardholder is authenticated before or during the transaction. - * - * 01 = No 3DS Requestor authentication occurred (i.e. cardholder “logged in” as guest) - * 02 = Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials - * 03 = Login to the cardholder account at the 3DS Requestor system using federated ID - * 04 = Login to the cardholder account at the 3DS Requestor system using issuer credentials - * 05 = Login to the cardholder account at the 3DS Requestor system using third-party authentication - * 06 = Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator - * 07 = Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator (FIDO assurance data signed) - * 08 = SRC Assurance Data - */ -export declare enum Method { - NoAuthentication = "01", - OwnCredentials = "02", - FederatedId = "03", - IssuerCredentials = "04", - ThirdPartyAuthentication = "05", - FidoAuthenticator = "06", - FidoAuthenticatorWithAssuranceDataSigned = "07", - SrcAssuranceData = "08" -} diff --git a/js/src/model/request/sca/CustomerAuthenticationInfo.js b/js/src/model/request/sca/CustomerAuthenticationInfo.js deleted file mode 100644 index 1c4f879..0000000 --- a/js/src/model/request/sca/CustomerAuthenticationInfo.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Method = exports.CustomerAuthenticationInfoBuilder = exports.CustomerAuthenticationInfo = void 0; -class CustomerAuthenticationInfo { - /** - * @param method Information about how the cardholder is authenticated before or during the transaction. - * @param timestamp Date and time in UTC of the cardholder authentication. Date format: "yyyy-MM-dd'T'HH:mm:ss'Z'", e.g. 2019-08-27T09:22:52Z - * @param data Data that documents and supports a specific authentication process. Only populate if instructed to do so. Max length 2048 - */ - constructor(method, timestamp, data) { - this.method = method; - this.timestamp = timestamp; - this.data = data; - } - static Builder() { - return new CustomerAuthenticationInfoBuilder.RequestBuilder(); - } -} -exports.CustomerAuthenticationInfo = CustomerAuthenticationInfo; -var CustomerAuthenticationInfoBuilder; -(function (CustomerAuthenticationInfoBuilder) { - class RequestBuilder { - setMethod(method) { - this.method = method; - return this; - } - setTimestamp(timestamp) { - this.timestamp = timestamp; - return this; - } - setData(data) { - this.data = data; - return this; - } - build() { - return new CustomerAuthenticationInfo(this.method, this.timestamp, this.data); - } - } - CustomerAuthenticationInfoBuilder.RequestBuilder = RequestBuilder; -})(CustomerAuthenticationInfoBuilder = exports.CustomerAuthenticationInfoBuilder || (exports.CustomerAuthenticationInfoBuilder = {})); -/** - * Information about how the cardholder is authenticated before or during the transaction. - * - * 01 = No 3DS Requestor authentication occurred (i.e. cardholder “logged in” as guest) - * 02 = Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials - * 03 = Login to the cardholder account at the 3DS Requestor system using federated ID - * 04 = Login to the cardholder account at the 3DS Requestor system using issuer credentials - * 05 = Login to the cardholder account at the 3DS Requestor system using third-party authentication - * 06 = Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator - * 07 = Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator (FIDO assurance data signed) - * 08 = SRC Assurance Data - */ -var Method; -(function (Method) { - Method["NoAuthentication"] = "01"; - Method["OwnCredentials"] = "02"; - Method["FederatedId"] = "03"; - Method["IssuerCredentials"] = "04"; - Method["ThirdPartyAuthentication"] = "05"; - Method["FidoAuthenticator"] = "06"; - Method["FidoAuthenticatorWithAssuranceDataSigned"] = "07"; - Method["SrcAssuranceData"] = "08"; -})(Method = exports.Method || (exports.Method = {})); -//# sourceMappingURL=CustomerAuthenticationInfo.js.map \ No newline at end of file diff --git a/js/src/model/request/sca/CustomerAuthenticationInfo.js.map b/js/src/model/request/sca/CustomerAuthenticationInfo.js.map deleted file mode 100644 index eaeee93..0000000 --- a/js/src/model/request/sca/CustomerAuthenticationInfo.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CustomerAuthenticationInfo.js","sourceRoot":"","sources":["../../../../../ts/src/model/request/sca/CustomerAuthenticationInfo.ts"],"names":[],"mappings":";;;AAAA,MAAa,0BAA0B;IAEnC;;;;OAIG;IACH,YACW,MAAe,EACf,SAAkB,EAClB,IAAa;QAFb,WAAM,GAAN,MAAM,CAAS;QACf,cAAS,GAAT,SAAS,CAAS;QAClB,SAAI,GAAJ,IAAI,CAAS;IAExB,CAAC;IAEM,MAAM,CAAC,OAAO;QACjB,OAAO,IAAI,iCAAiC,CAAC,cAAc,EAAE,CAAC;IAClE,CAAC;CACJ;AAjBD,gEAiBC;AAED,IAAiB,iCAAiC,CA6BjD;AA7BD,WAAiB,iCAAiC;IAC9C,MAAa,cAAc;QAKhB,SAAS,CAAC,MAAc;YAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;YACrB,OAAO,IAAI,CAAC;QAChB,CAAC;QAEM,YAAY,CAAC,SAAiB;YACjC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;YAC3B,OAAO,IAAI,CAAC;QAChB,CAAC;QAEM,OAAO,CAAC,IAAY;YACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;YACjB,OAAO,IAAI,CAAC;QAChB,CAAC;QAEM,KAAK;YACR,OAAO,IAAI,0BAA0B,CACjC,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,IAAI,CACZ,CAAC;QACN,CAAC;KACJ;IA3BY,gDAAc,iBA2B1B,CAAA;AACL,CAAC,EA7BgB,iCAAiC,GAAjC,yCAAiC,KAAjC,yCAAiC,QA6BjD;AAED;;;;;;;;;;;GAWG;AACH,IAAY,MASX;AATD,WAAY,MAAM;IACd,iCAAuB,CAAA;IACvB,+BAAqB,CAAA;IACrB,4BAAkB,CAAA;IAClB,kCAAwB,CAAA;IACxB,yCAA+B,CAAA;IAC/B,kCAAwB,CAAA;IACxB,yDAA+C,CAAA;IAC/C,iCAAuB,CAAA;AAC3B,CAAC,EATW,MAAM,GAAN,cAAM,KAAN,cAAM,QASjB"} \ No newline at end of file diff --git a/js/src/model/request/sca/CustomerDetails.d.ts b/js/src/model/request/sca/CustomerDetails.d.ts deleted file mode 100644 index 320bb34..0000000 --- a/js/src/model/request/sca/CustomerDetails.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { PhoneNumber } from './PhoneNumber'; -export declare class CustomerDetails { - shipping_address_matches_billing_address?: boolean; - name?: string; - email?: string; - home_phone?: PhoneNumber; - mobile_phone?: PhoneNumber; - work_phone?: PhoneNumber; - constructor(shipping_address_matches_billing_address?: boolean, name?: string, email?: string, home_phone?: PhoneNumber, mobile_phone?: PhoneNumber, work_phone?: PhoneNumber); - static Builder(): CustomerDetailsBuilder.RequestBuilder; -} -export declare namespace CustomerDetailsBuilder { - class RequestBuilder { - private shipping_address_matches_billing_address; - private name; - private email; - private home_phone; - private mobile_phone; - private work_phone; - /** - * @param shippingAddressMatchesBillingAddress Does the shipping address matches the billing address - */ - setShippingAddressMatchesBillingAddress(shippingAddressMatchesBillingAddress: boolean): this; - /** - * @param name Customer name. max length 45 - */ - setName(name: string): this; - /** - * @param email Customer email. max length 254 - */ - setEmail(email: string): this; - /** - * @param phoneNumber Home phone number - */ - setHomePhone(phoneNumber: PhoneNumber): this; - /** - * @param phoneNumber Mobile phone number - */ - setMobilePhone(phoneNumber: PhoneNumber): this; - /** - * @param phoneNumber Work phone number - */ - setWorkPhone(phoneNumber: PhoneNumber): this; - build(): CustomerDetails; - } -} diff --git a/js/src/model/request/sca/CustomerDetails.js b/js/src/model/request/sca/CustomerDetails.js deleted file mode 100644 index 1928c65..0000000 --- a/js/src/model/request/sca/CustomerDetails.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CustomerDetailsBuilder = exports.CustomerDetails = void 0; -class CustomerDetails { - constructor(shipping_address_matches_billing_address, name, email, home_phone, mobile_phone, work_phone) { - this.shipping_address_matches_billing_address = shipping_address_matches_billing_address; - this.name = name; - this.email = email; - this.home_phone = home_phone; - this.mobile_phone = mobile_phone; - this.work_phone = work_phone; - } - static Builder() { - return new CustomerDetailsBuilder.RequestBuilder(); - } -} -exports.CustomerDetails = CustomerDetails; -var CustomerDetailsBuilder; -(function (CustomerDetailsBuilder) { - class RequestBuilder { - /** - * @param shippingAddressMatchesBillingAddress Does the shipping address matches the billing address - */ - setShippingAddressMatchesBillingAddress(shippingAddressMatchesBillingAddress) { - this.shipping_address_matches_billing_address = shippingAddressMatchesBillingAddress; - return this; - } - /** - * @param name Customer name. max length 45 - */ - setName(name) { - this.name = name; - return this; - } - /** - * @param email Customer email. max length 254 - */ - setEmail(email) { - this.email = email; - return this; - } - /** - * @param phoneNumber Home phone number - */ - setHomePhone(phoneNumber) { - this.home_phone = phoneNumber; - return this; - } - /** - * @param phoneNumber Mobile phone number - */ - setMobilePhone(phoneNumber) { - this.mobile_phone = phoneNumber; - return this; - } - /** - * @param phoneNumber Work phone number - */ - setWorkPhone(phoneNumber) { - this.work_phone = phoneNumber; - return this; - } - build() { - return new CustomerDetails(this.shipping_address_matches_billing_address, this.name, this.email, this.home_phone, this.mobile_phone, this.work_phone); - } - } - CustomerDetailsBuilder.RequestBuilder = RequestBuilder; -})(CustomerDetailsBuilder = exports.CustomerDetailsBuilder || (exports.CustomerDetailsBuilder = {})); -//# sourceMappingURL=CustomerDetails.js.map \ No newline at end of file diff --git a/js/src/model/request/sca/CustomerDetails.js.map b/js/src/model/request/sca/CustomerDetails.js.map deleted file mode 100644 index 8b8e8ed..0000000 --- a/js/src/model/request/sca/CustomerDetails.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CustomerDetails.js","sourceRoot":"","sources":["../../../../../ts/src/model/request/sca/CustomerDetails.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;IACxB,YACW,wCAAkD,EAClD,IAAa,EACb,KAAc,EACd,UAAwB,EACxB,YAA0B,EAC1B,UAAwB;QALxB,6CAAwC,GAAxC,wCAAwC,CAAU;QAClD,SAAI,GAAJ,IAAI,CAAS;QACb,UAAK,GAAL,KAAK,CAAS;QACd,eAAU,GAAV,UAAU,CAAc;QACxB,iBAAY,GAAZ,YAAY,CAAc;QAC1B,eAAU,GAAV,UAAU,CAAc;IAEnC,CAAC;IAEM,MAAM,CAAC,OAAO;QACjB,OAAO,IAAI,sBAAsB,CAAC,cAAc,EAAE,CAAC;IACvD,CAAC;CACJ;AAdD,0CAcC;AAED,IAAiB,sBAAsB,CAoEtC;AApED,WAAiB,sBAAsB;IACnC,MAAa,cAAc;QAQvB;;WAEG;QACI,uCAAuC,CAAC,oCAA6C;YACxF,IAAI,CAAC,wCAAwC,GAAG,oCAAoC,CAAC;YACrF,OAAO,IAAI,CAAC;QAChB,CAAC;QAED;;WAEG;QACI,OAAO,CAAC,IAAY;YACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;YACjB,OAAO,IAAI,CAAC;QAChB,CAAC;QAED;;WAEG;QACI,QAAQ,CAAC,KAAa;YACzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YACnB,OAAO,IAAI,CAAC;QAChB,CAAC;QAED;;WAEG;QACI,YAAY,CAAC,WAAwB;YACxC,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC;YAC9B,OAAO,IAAI,CAAC;QAChB,CAAC;QAED;;WAEG;QACI,cAAc,CAAC,WAAwB;YAC1C,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;YAChC,OAAO,IAAI,CAAC;QAChB,CAAC;QAED;;WAEG;QACI,YAAY,CAAC,WAAwB;YACxC,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC;YAC9B,OAAO,IAAI,CAAC;QAChB,CAAC;QAEM,KAAK;YACR,OAAO,IAAI,eAAe,CACtB,IAAI,CAAC,wCAAwC,EAC7C,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,UAAU,CAClB,CAAC;QACN,CAAC;KACJ;IAlEY,qCAAc,iBAkE1B,CAAA;AACL,CAAC,EApEgB,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAoEtC"} \ No newline at end of file diff --git a/js/src/model/request/sca/PhoneNumber.d.ts b/js/src/model/request/sca/PhoneNumber.d.ts deleted file mode 100644 index d6d7f1f..0000000 --- a/js/src/model/request/sca/PhoneNumber.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export declare class PhoneNumber { - country_code: string; - number: string; - /** - * @param country_code 1-3 digits country code (ITU-E.164) - * @param number 1-15 digits phone number - */ - constructor(country_code: string, number: string); -} diff --git a/js/src/model/request/sca/PhoneNumber.js b/js/src/model/request/sca/PhoneNumber.js deleted file mode 100644 index 8041a3c..0000000 --- a/js/src/model/request/sca/PhoneNumber.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PhoneNumber = void 0; -class PhoneNumber { - /** - * @param country_code 1-3 digits country code (ITU-E.164) - * @param number 1-15 digits phone number - */ - constructor(country_code, number) { - this.country_code = country_code; - this.number = number; - } -} -exports.PhoneNumber = PhoneNumber; -//# sourceMappingURL=PhoneNumber.js.map \ No newline at end of file diff --git a/js/src/model/request/sca/PhoneNumber.js.map b/js/src/model/request/sca/PhoneNumber.js.map deleted file mode 100644 index 741ea38..0000000 --- a/js/src/model/request/sca/PhoneNumber.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PhoneNumber.js","sourceRoot":"","sources":["../../../../../ts/src/model/request/sca/PhoneNumber.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;IAEpB;;;OAGG;IACH,YACW,YAAoB,EACpB,MAAc;QADd,iBAAY,GAAZ,YAAY,CAAQ;QACpB,WAAM,GAAN,MAAM,CAAQ;IAEzB,CAAC;CACJ;AAXD,kCAWC"} \ No newline at end of file diff --git a/js/src/model/request/sca/Purchase.d.ts b/js/src/model/request/sca/Purchase.d.ts deleted file mode 100644 index b837367..0000000 --- a/js/src/model/request/sca/Purchase.d.ts +++ /dev/null @@ -1,124 +0,0 @@ -export declare class Purchase { - shipping_indicator?: ShippingIndicator; - delivery_time_frame?: DeliveryTimeFrame; - delivery_email?: string; - reorder_items_indicator?: ReorderItemsIndicator; - pre_order_purchase_indicator?: PreOrderPurchaseIndicator; - pre_order_date?: string; - shipping_name_indicator?: ShippingNameIndicator; - gift_card_amount?: number; - gift_card_count?: number; - constructor(shipping_indicator?: ShippingIndicator, delivery_time_frame?: DeliveryTimeFrame, delivery_email?: string, reorder_items_indicator?: ReorderItemsIndicator, pre_order_purchase_indicator?: PreOrderPurchaseIndicator, pre_order_date?: string, shipping_name_indicator?: ShippingNameIndicator, gift_card_amount?: number, gift_card_count?: number); - static Builder(): PurchaseBuilder.RequestBuilder; -} -export declare namespace PurchaseBuilder { - class RequestBuilder { - private shipping_indicator; - private delivery_time_frame; - private delivery_email; - private reorder_items_indicator; - private pre_order_purchase_indicator; - private pre_order_date; - private shipping_name_indicator; - private gift_card_amount; - private gift_card_count; - /** - * Merchants must choose the Shipping Indicator code that most accurately describes the cardholder’s specific transaction, not their general business. - * If one or more items are included in the sale, use the Shipping Indicator code for the physical goods, or if all digital goods, use the Shipping Indicator code that describes the most expensive item. - * @param shippingIndicator Indicates shipping method chosen for the transaction. - * @return Builder - */ - setShippingIndicator(shippingIndicator: ShippingIndicator): this; - /** - * @param deliveryTimeFrame Indicates the merchandise delivery timeframe. - * @return Builder - */ - setDeliveryTimeFrame(deliveryTimeFrame: DeliveryTimeFrame): this; - /** - * @param deliveryEmail For Electronic delivery, the email address to which the merchandise was delivered. Max length: 254 - * @return Builder - */ - setDeliveryEmail(deliveryEmail: string): this; - /** - * @param reorderItemsIndicator Indicates whether the cardholder is reordering previously purchased merchandise. - * @return Builder - */ - setReorderItemsIndicator(reorderItemsIndicator: ReorderItemsIndicator): this; - /** - * @param preOrderPurchaseIndicator Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. - * @return Builder - */ - setPreOrderPurchaseIndicator(preOrderPurchaseIndicator: PreOrderPurchaseIndicator): this; - /** - * For a pre-ordered purchase, the expected date that the merchandise will be available - * @param preOrderDate Date format: yyyy-MM-dd - * @return Builder - */ - setPreOrderDate(preOrderDate: string): this; - /** - * @param shippingNameIndicator Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. - * @return Builder - */ - setShippingNameIndicator(shippingNameIndicator: ShippingNameIndicator): this; - /** - * For prepaid or gift card purchase, the purchase amount total of prepaid or gift card(s) - * @param giftCardAmount Amount in the minor currency units. Max value: 999999999999999 - * @return Builder - */ - setGiftCardAmount(giftCardAmount: number): this; - /** - * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. - * @param giftCardCount Max value: 99 - * @return Builder - */ - setGiftCardCount(giftCardCount: number): this; - build(): Purchase; - } -} -/** - * 01 = Ship to cardholder’s billing address, - * 02 = Ship to another verified address on file with merchant - * 03 = Ship to address that is different than the cardholder’s billing address - * 04 = “Ship to Store” / Pick-up at local store (Store address shall be populated in shipping address fields) - * 05 = Digital goods (includes online services, electronic gift cards and redemption codes) - * 06 = Travel and Event tickets, not shipped - * 07 = Other (for example, Gaming, digital services not shipped, emedia subscriptions, etc.) - */ -export declare enum ShippingIndicator { - ShipToCardholdersAddress = "01", - ShipToVerifiedAddress = "02", - ShipToDifferentAddress = "03", - ShipToStore = "04", - DigitalGoods = "05", - TravelAndEventTickets = "06", - Other = "07" -} -/** - * Indicates the merchandise delivery timeframe. - * 01 = Electronic Delivery - * 02 = Same day shipping - * 03 = Overnight shipping - * 04 = Two-day or more shipping - */ -export declare enum DeliveryTimeFrame { - ElectronicDelivery = "01", - SameDayShipping = "02", - OvernightShipping = "03", - TwoDarOrMoreShipping = "04" -} -export declare enum ReorderItemsIndicator { - FirstTimeOrdered = "01", - Reorder = "02" -} -export declare enum PreOrderPurchaseIndicator { - MerchandiseAvailable = "01", - FutureAvailability = "02" -} -/** - * 01 = Account Name identical to shipping Name - * 02 = Account Name different than shipping Name - */ -export declare enum ShippingNameIndicator { - AccountNameMatchesShippingName = "01", - AccountNameDifferentThanShippingName = "02" -} diff --git a/js/src/model/request/sca/Purchase.js b/js/src/model/request/sca/Purchase.js deleted file mode 100644 index 49ba8a0..0000000 --- a/js/src/model/request/sca/Purchase.js +++ /dev/null @@ -1,159 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ShippingNameIndicator = exports.PreOrderPurchaseIndicator = exports.ReorderItemsIndicator = exports.DeliveryTimeFrame = exports.ShippingIndicator = exports.PurchaseBuilder = exports.Purchase = void 0; -class Purchase { - constructor(shipping_indicator, delivery_time_frame, delivery_email, reorder_items_indicator, pre_order_purchase_indicator, pre_order_date, shipping_name_indicator, gift_card_amount, gift_card_count) { - this.shipping_indicator = shipping_indicator; - this.delivery_time_frame = delivery_time_frame; - this.delivery_email = delivery_email; - this.reorder_items_indicator = reorder_items_indicator; - this.pre_order_purchase_indicator = pre_order_purchase_indicator; - this.pre_order_date = pre_order_date; - this.shipping_name_indicator = shipping_name_indicator; - this.gift_card_amount = gift_card_amount; - this.gift_card_count = gift_card_count; - } - static Builder() { - return new PurchaseBuilder.RequestBuilder(); - } -} -exports.Purchase = Purchase; -var PurchaseBuilder; -(function (PurchaseBuilder) { - class RequestBuilder { - /** - * Merchants must choose the Shipping Indicator code that most accurately describes the cardholder’s specific transaction, not their general business. - * If one or more items are included in the sale, use the Shipping Indicator code for the physical goods, or if all digital goods, use the Shipping Indicator code that describes the most expensive item. - * @param shippingIndicator Indicates shipping method chosen for the transaction. - * @return Builder - */ - setShippingIndicator(shippingIndicator) { - this.shipping_indicator = shippingIndicator; - return this; - } - /** - * @param deliveryTimeFrame Indicates the merchandise delivery timeframe. - * @return Builder - */ - setDeliveryTimeFrame(deliveryTimeFrame) { - this.delivery_time_frame = deliveryTimeFrame; - return this; - } - /** - * @param deliveryEmail For Electronic delivery, the email address to which the merchandise was delivered. Max length: 254 - * @return Builder - */ - setDeliveryEmail(deliveryEmail) { - this.delivery_email = deliveryEmail; - return this; - } - /** - * @param reorderItemsIndicator Indicates whether the cardholder is reordering previously purchased merchandise. - * @return Builder - */ - setReorderItemsIndicator(reorderItemsIndicator) { - this.reorder_items_indicator = reorderItemsIndicator; - return this; - } - /** - * @param preOrderPurchaseIndicator Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. - * @return Builder - */ - setPreOrderPurchaseIndicator(preOrderPurchaseIndicator) { - this.pre_order_purchase_indicator = preOrderPurchaseIndicator; - return this; - } - /** - * For a pre-ordered purchase, the expected date that the merchandise will be available - * @param preOrderDate Date format: yyyy-MM-dd - * @return Builder - */ - setPreOrderDate(preOrderDate) { - this.pre_order_date = preOrderDate; - return this; - } - /** - * @param shippingNameIndicator Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. - * @return Builder - */ - setShippingNameIndicator(shippingNameIndicator) { - this.shipping_name_indicator = shippingNameIndicator; - return this; - } - /** - * For prepaid or gift card purchase, the purchase amount total of prepaid or gift card(s) - * @param giftCardAmount Amount in the minor currency units. Max value: 999999999999999 - * @return Builder - */ - setGiftCardAmount(giftCardAmount) { - this.gift_card_amount = giftCardAmount; - return this; - } - /** - * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. - * @param giftCardCount Max value: 99 - * @return Builder - */ - setGiftCardCount(giftCardCount) { - this.gift_card_count = giftCardCount; - return this; - } - build() { - return new Purchase(this.shipping_indicator, this.delivery_time_frame, this.delivery_email, this.reorder_items_indicator, this.pre_order_purchase_indicator, this.pre_order_date, this.shipping_name_indicator, this.gift_card_amount, this.gift_card_count); - } - } - PurchaseBuilder.RequestBuilder = RequestBuilder; -})(PurchaseBuilder = exports.PurchaseBuilder || (exports.PurchaseBuilder = {})); -/** - * 01 = Ship to cardholder’s billing address, - * 02 = Ship to another verified address on file with merchant - * 03 = Ship to address that is different than the cardholder’s billing address - * 04 = “Ship to Store” / Pick-up at local store (Store address shall be populated in shipping address fields) - * 05 = Digital goods (includes online services, electronic gift cards and redemption codes) - * 06 = Travel and Event tickets, not shipped - * 07 = Other (for example, Gaming, digital services not shipped, emedia subscriptions, etc.) - */ -var ShippingIndicator; -(function (ShippingIndicator) { - ShippingIndicator["ShipToCardholdersAddress"] = "01"; - ShippingIndicator["ShipToVerifiedAddress"] = "02"; - ShippingIndicator["ShipToDifferentAddress"] = "03"; - ShippingIndicator["ShipToStore"] = "04"; - ShippingIndicator["DigitalGoods"] = "05"; - ShippingIndicator["TravelAndEventTickets"] = "06"; - ShippingIndicator["Other"] = "07"; -})(ShippingIndicator = exports.ShippingIndicator || (exports.ShippingIndicator = {})); -/** - * Indicates the merchandise delivery timeframe. - * 01 = Electronic Delivery - * 02 = Same day shipping - * 03 = Overnight shipping - * 04 = Two-day or more shipping - */ -var DeliveryTimeFrame; -(function (DeliveryTimeFrame) { - DeliveryTimeFrame["ElectronicDelivery"] = "01"; - DeliveryTimeFrame["SameDayShipping"] = "02"; - DeliveryTimeFrame["OvernightShipping"] = "03"; - DeliveryTimeFrame["TwoDarOrMoreShipping"] = "04"; -})(DeliveryTimeFrame = exports.DeliveryTimeFrame || (exports.DeliveryTimeFrame = {})); -var ReorderItemsIndicator; -(function (ReorderItemsIndicator) { - ReorderItemsIndicator["FirstTimeOrdered"] = "01"; - ReorderItemsIndicator["Reorder"] = "02"; -})(ReorderItemsIndicator = exports.ReorderItemsIndicator || (exports.ReorderItemsIndicator = {})); -var PreOrderPurchaseIndicator; -(function (PreOrderPurchaseIndicator) { - PreOrderPurchaseIndicator["MerchandiseAvailable"] = "01"; - PreOrderPurchaseIndicator["FutureAvailability"] = "02"; -})(PreOrderPurchaseIndicator = exports.PreOrderPurchaseIndicator || (exports.PreOrderPurchaseIndicator = {})); -/** - * 01 = Account Name identical to shipping Name - * 02 = Account Name different than shipping Name - */ -var ShippingNameIndicator; -(function (ShippingNameIndicator) { - ShippingNameIndicator["AccountNameMatchesShippingName"] = "01"; - ShippingNameIndicator["AccountNameDifferentThanShippingName"] = "02"; -})(ShippingNameIndicator = exports.ShippingNameIndicator || (exports.ShippingNameIndicator = {})); -//# sourceMappingURL=Purchase.js.map \ No newline at end of file diff --git a/js/src/model/request/sca/Purchase.js.map b/js/src/model/request/sca/Purchase.js.map deleted file mode 100644 index 703a5e2..0000000 --- a/js/src/model/request/sca/Purchase.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Purchase.js","sourceRoot":"","sources":["../../../../../ts/src/model/request/sca/Purchase.ts"],"names":[],"mappings":";;;AAAA,MAAa,QAAQ;IACjB,YACW,kBAAsC,EACtC,mBAAuC,EACvC,cAAuB,EACvB,uBAA+C,EAC/C,4BAAwD,EACxD,cAAuB,EACvB,uBAA+C,EAC/C,gBAAyB,EACzB,eAAwB;QARxB,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,wBAAmB,GAAnB,mBAAmB,CAAoB;QACvC,mBAAc,GAAd,cAAc,CAAS;QACvB,4BAAuB,GAAvB,uBAAuB,CAAwB;QAC/C,iCAA4B,GAA5B,4BAA4B,CAA4B;QACxD,mBAAc,GAAd,cAAc,CAAS;QACvB,4BAAuB,GAAvB,uBAAuB,CAAwB;QAC/C,qBAAgB,GAAhB,gBAAgB,CAAS;QACzB,oBAAe,GAAf,eAAe,CAAS;IAEnC,CAAC;IAEM,MAAM,CAAC,OAAO;QACjB,OAAO,IAAI,eAAe,CAAC,cAAc,EAAE,CAAC;IAChD,CAAC;CACJ;AAjBD,4BAiBC;AAED,IAAiB,eAAe,CAgH/B;AAhHD,WAAiB,eAAe;IAC5B,MAAa,cAAc;QAWvB;;;;;WAKG;QACI,oBAAoB,CAAC,iBAAoC;YAC5D,IAAI,C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AAc,EACnB,IAAI,CAAC,uBAAuB,EAC5B,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,eAAe,CACvB,CAAC;QACN,CAAC;KACJ;IA9GY,8BAAc,iBA8G1B,CAAA;AACL,CAAC,EAhHgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAgH/B;AAED;;;;;;;;GAQG;AACH,IAAY,iBAQX;AARD,WAAY,iBAAiB;IACzB,oDAA+B,CAAA;IAC/B,iDAA4B,CAAA;IAC5B,kDAA6B,CAAA;IAC7B,uCAAkB,CAAA;IAClB,wCAAmB,CAAA;IACnB,iDAA4B,CAAA;IAC5B,iCAAY,CAAA;AAChB,CAAC,EARW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAQ5B;AAED;;;;;;GAMG;AACH,IAAY,iBAKX;AALD,WAAY,iBAAiB;IACzB,8CAAyB,CAAA;IACzB,2CAAsB,CAAA;IACtB,6CAAwB,CAAA;IACxB,gDAA2B,CAAA;AAC/B,CAAC,EALW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAK5B;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,gDAAuB,CAAA;IACvB,uCAAc,CAAA;AAClB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC;AAED,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACjC,wDAA2B,CAAA;IAC3B,sDAAyB,CAAA;AAC7B,CAAC,EAHW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAGpC;AAED;;;GAGG;AACH,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,8DAAqC,CAAA;IACrC,oEAA2C,CAAA;AAC/C,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC"} \ No newline at end of file diff --git a/js/src/model/request/sca/ReturnUrls.d.ts b/js/src/model/request/sca/ReturnUrls.d.ts deleted file mode 100644 index 5a4db3a..0000000 --- a/js/src/model/request/sca/ReturnUrls.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -export declare class ReturnUrls { - success_url: string; - cancel_url: string; - failure_url: string; - webhook_success_url?: string; - webhook_cancel_url?: string; - webhook_failure_url?: string; - webhook_delay?: number; - constructor(success_url: string, cancel_url: string, failure_url: string, webhook_success_url?: string, webhook_cancel_url?: string, webhook_failure_url?: string, webhook_delay?: number); - /** - * @param successUrl The URL the user is redirected after the transaction is handled. The payment itself may still be rejected. - * @param failureUrl The URL the user is redirected after a failure such as an authentication or connectivity error. - * @param cancelUrl The URL the user is redirected after cancelling the transaction (clicking on the cancel button). - */ - static Builder(successUrl: string, cancelUrl: string, failureUrl: string): ReturnUrlsBuilder.RequestBuilder; -} -export declare namespace ReturnUrlsBuilder { - class RequestBuilder { - private readonly success_url; - private readonly cancel_url; - private readonly failure_url; - private webhook_success_url; - private webhook_cancel_url; - private webhook_failure_url; - private webhook_delay; - constructor(success_url: string, cancel_url: string, failure_url: string); - /** - /** - * The URL the PH server makes request to after the transaction is handled. The payment itself may still be rejected. - * - * @param webhookSuccessUrl Webhook url to call when request is successfully handled - * @return a reference to this Builder - */ - setWebhookSuccessUrl(webhookSuccessUrl: string): this; - /** - * The URL the PH server makes request to after a failure such as an authentication or connectivity error. - * - * @param webhookFailureUrl Webhook url to call when request failed - * @return a reference to this Builder - */ - setWebhookFailureUrl(webhookFailureUrl: string): this; - /** - * The URL the PH server makes request to after cancelling the transaction (clicking on the cancel button). - * - * @param webhookCancelUrl Webhook url to call when user cancels request - * @return a reference to this Builder - */ - setWebhookCancelUrl(webhookCancelUrl: string): this; - /** - * Delay for webhook in seconds. Between 0-900 - * - * @param webhookDelay Webhook triggering delay in seconds - * @return a reference to this Builder - */ - setWebhookDelay(webhookDelay: number): this; - build(): ReturnUrls; - } -} diff --git a/js/src/model/request/sca/ReturnUrls.js b/js/src/model/request/sca/ReturnUrls.js deleted file mode 100644 index 02d58bc..0000000 --- a/js/src/model/request/sca/ReturnUrls.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ReturnUrlsBuilder = exports.ReturnUrls = void 0; -class ReturnUrls { - constructor(success_url, cancel_url, failure_url, webhook_success_url, webhook_cancel_url, webhook_failure_url, webhook_delay) { - this.success_url = success_url; - this.cancel_url = cancel_url; - this.failure_url = failure_url; - this.webhook_success_url = webhook_success_url; - this.webhook_cancel_url = webhook_cancel_url; - this.webhook_failure_url = webhook_failure_url; - this.webhook_delay = webhook_delay; - } - /** - * @param successUrl The URL the user is redirected after the transaction is handled. The payment itself may still be rejected. - * @param failureUrl The URL the user is redirected after a failure such as an authentication or connectivity error. - * @param cancelUrl The URL the user is redirected after cancelling the transaction (clicking on the cancel button). - */ - static Builder(successUrl, cancelUrl, failureUrl) { - return new ReturnUrlsBuilder.RequestBuilder(successUrl, cancelUrl, failureUrl); - } -} -exports.ReturnUrls = ReturnUrls; -var ReturnUrlsBuilder; -(function (ReturnUrlsBuilder) { - class RequestBuilder { - constructor(success_url, cancel_url, failure_url) { - this.success_url = success_url; - this.cancel_url = cancel_url; - this.failure_url = failure_url; - } - /** - /** - * The URL the PH server makes request to after the transaction is handled. The payment itself may still be rejected. - * - * @param webhookSuccessUrl Webhook url to call when request is successfully handled - * @return a reference to this Builder - */ - setWebhookSuccessUrl(webhookSuccessUrl) { - this.webhook_success_url = webhookSuccessUrl; - return this; - } - /** - * The URL the PH server makes request to after a failure such as an authentication or connectivity error. - * - * @param webhookFailureUrl Webhook url to call when request failed - * @return a reference to this Builder - */ - setWebhookFailureUrl(webhookFailureUrl) { - this.webhook_failure_url = webhookFailureUrl; - return this; - } - /** - * The URL the PH server makes request to after cancelling the transaction (clicking on the cancel button). - * - * @param webhookCancelUrl Webhook url to call when user cancels request - * @return a reference to this Builder - */ - setWebhookCancelUrl(webhookCancelUrl) { - this.webhook_cancel_url = webhookCancelUrl; - return this; - } - /** - * Delay for webhook in seconds. Between 0-900 - * - * @param webhookDelay Webhook triggering delay in seconds - * @return a reference to this Builder - */ - setWebhookDelay(webhookDelay) { - this.webhook_delay = webhookDelay; - return this; - } - build() { - return new ReturnUrls(this.success_url, this.cancel_url, this.failure_url, this.webhook_success_url, this.webhook_cancel_url, this.webhook_failure_url, this.webhook_delay); - } - } - ReturnUrlsBuilder.RequestBuilder = RequestBuilder; -})(ReturnUrlsBuilder = exports.ReturnUrlsBuilder || (exports.ReturnUrlsBuilder = {})); -//# sourceMappingURL=ReturnUrls.js.map \ No newline at end of file diff --git a/js/src/model/request/sca/ReturnUrls.js.map b/js/src/model/request/sca/ReturnUrls.js.map deleted file mode 100644 index a57e95a..0000000 --- a/js/src/model/request/sca/ReturnUrls.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ReturnUrls.js","sourceRoot":"","sources":["../../../../../ts/src/model/request/sca/ReturnUrls.ts"],"names":[],"mappings":";;;AAAA,MAAa,UAAU;IACnB,YACW,WAAmB,EACnB,UAAkB,EAClB,WAAmB,EACnB,mBAA4B,EAC5B,kBAA2B,EAC3B,mBAA4B,EAC5B,aAAsB;QANtB,gBAAW,GAAX,WAAW,CAAQ;QACnB,eAAU,GAAV,UAAU,CAAQ;QAClB,gBAAW,GAAX,WAAW,CAAQ;QACnB,wBAAmB,GAAnB,mBAAmB,CAAS;QAC5B,uBAAkB,GAAlB,kBAAkB,CAAS;QAC3B,wBAAmB,GAAnB,mBAAmB,CAAS;QAC5B,kBAAa,GAAb,aAAa,CAAS;IAEjC,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,OAAO,CACjB,UAAkB,EAClB,SAAiB,EACjB,UAAkB;QAElB,OAAO,IAAI,iBAAiB,CAAC,cAAc,CACvC,UAAU,EACV,SAAS,EACT,UAAU,CACb,CAAC;IACN,CAAC;CACJ;AA5BD,gCA4BC;AAED,IAAiB,iBAAiB,CAyEjC;AAzED,WAAiB,iBAAiB;IAC9B,MAAa,cAAc;QASvB,YAAY,WAAmB,EAAE,UAAkB,EAAE,WAAmB;YACpE,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;YAC/B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;YAC7B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QACnC,CAAC;QAED;;;;;;WAMG;QACI,oBAAoB,CAAC,iBAAyB;YACjD,IAAI,CAAC,mBAAmB,GAAG,iBAAiB,CAAC;YAC7C,OAAO,IAAI,CAAC;QAChB,CAAC;QAED;;;;;WAKG;QACI,oBAAoB,CAAC,iBAAyB;YACjD,IAAI,CAAC,mBAAmB,GAAG,iBAAiB,CAAC;YAC7C,OAAO,IAAI,CAAC;QAChB,CAAC;QAED;;;;;WAKG;QACI,mBAAmB,CAAC,gBAAwB;YAC/C,IAAI,CAAC,kBAAkB,GAAG,gBAAgB,CAAC;YAC3C,OAAO,IAAI,CAAC;QAChB,CAAC;QAED;;;;;WAKG;QACI,eAAe,CAAC,YAAoB;YACvC,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;YAClC,OAAO,IAAI,CAAC;QAChB,CAAC;QAEM,KAAK;YACR,OAAO,IAAI,UAAU,CACjB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,mBAAmB,EACxB,IAAI,CAAC,kBAAkB,EACvB,IAAI,CAAC,mBAAmB,EACxB,IAAI,CAAC,aAAa,CACrB,CAAC;QACN,CAAC;KACJ;IAvEY,gCAAc,iBAuE1B,CAAA;AACL,CAAC,EAzEgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAyEjC"} \ No newline at end of file diff --git a/js/src/model/request/sca/StrongCustomerAuthentication.d.ts b/js/src/model/request/sca/StrongCustomerAuthentication.d.ts deleted file mode 100644 index 11f8885..0000000 --- a/js/src/model/request/sca/StrongCustomerAuthentication.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { ReturnUrls } from './ReturnUrls'; -import { CustomerDetails } from './CustomerDetails'; -import { CustomerAccount } from './CustomerAccount'; -import { Purchase } from './Purchase'; -import { Address } from './Address'; -import { CustomerAuthenticationInfo } from './CustomerAuthenticationInfo'; -export declare class StrongCustomerAuthentication { - return_urls: ReturnUrls; - customer_details?: CustomerDetails; - customer_account?: CustomerAccount; - purchase?: Purchase; - billing_address?: Address; - shipping_address?: Address; - customer_authentication_info?: CustomerAuthenticationInfo; - desired_challenge_window_size?: ChallengeWindowSize; - exit_iframe_on_result?: boolean; - exit_iframe_on_three_d_secure?: boolean; - constructor(return_urls: ReturnUrls, customer_details?: CustomerDetails, customer_account?: CustomerAccount, purchase?: Purchase, billing_address?: Address, shipping_address?: Address, customer_authentication_info?: CustomerAuthenticationInfo, desired_challenge_window_size?: ChallengeWindowSize, exit_iframe_on_result?: boolean, exit_iframe_on_three_d_secure?: boolean); - static Builder(returnUrls: ReturnUrls): StrongCustomerAuthenticationBuilder.RequestBuilder; -} -export declare namespace StrongCustomerAuthenticationBuilder { - class RequestBuilder { - private readonly return_urls; - private customer_details; - private customer_account; - private purchase; - private billing_address; - private shipping_address; - private customer_authentication_info; - private desired_challenge_window_size; - private exit_iframe_on_result; - private exit_iframe_on_three_d_secure; - constructor(returnUrls: ReturnUrls); - setCustomerDetails(customerDetails: CustomerDetails): this; - setCustomerAccount(customerAccount: CustomerAccount): this; - setPurchase(purchase: Purchase): this; - setBillingAddress(billingAddress: Address): this; - setShippingAddress(shippingAddress: Address): this; - setCustomerAuthenticationInfo(customerAuthenticationInfo: CustomerAuthenticationInfo): this; - /** - * Dimensions of the challenge window that has been displayed to the Cardholder. - * The ACS shall reply with content that is formatted to appropriately render in this window to provide the best possible user experience. - * @param desiredChallengeWindowSize Desired challenge window size for 3DS 2.x. - * @return Builder - */ - setDesiredChallengeWindowSize(desiredChallengeWindowSize: ChallengeWindowSize): this; - /** - * @param exitIframeOnResult Exit form iframe when redirecting user back to success, failure or cancel URLs. - * @return Builder - */ - setExitIframeOnResult(exitIframeOnResult: boolean): this; - /** - * @param exitIframeOnThreeDSecure Exit from iframe when redirecting the user to 3DS. - * @return Builder - */ - setExitIframeOnThreeDSecure(exitIframeOnThreeDSecure: boolean): this; - build(): StrongCustomerAuthentication; - } -} -/** - * Desired challenge window size for 3DS 2.x. - * 01 = 250 x 400 - * 02 = 390 x 400 - * 03 = 500 x 600 - * 04 = 600 x 400 - * 05 = Full screen - */ -export declare enum ChallengeWindowSize { - Window250x400 = "01", - Window390x400 = "02", - Window500x600 = "03", - Window600x400 = "04", - FullScreen = "05" -} diff --git a/js/src/model/request/sca/StrongCustomerAuthentication.js b/js/src/model/request/sca/StrongCustomerAuthentication.js deleted file mode 100644 index fa9edd1..0000000 --- a/js/src/model/request/sca/StrongCustomerAuthentication.js +++ /dev/null @@ -1,100 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ChallengeWindowSize = exports.StrongCustomerAuthenticationBuilder = exports.StrongCustomerAuthentication = void 0; -class StrongCustomerAuthentication { - constructor(return_urls, customer_details, customer_account, purchase, billing_address, shipping_address, customer_authentication_info, desired_challenge_window_size, exit_iframe_on_result, exit_iframe_on_three_d_secure) { - this.return_urls = return_urls; - this.customer_details = customer_details; - this.customer_account = customer_account; - this.purchase = purchase; - this.billing_address = billing_address; - this.shipping_address = shipping_address; - this.customer_authentication_info = customer_authentication_info; - this.desired_challenge_window_size = desired_challenge_window_size; - this.exit_iframe_on_result = exit_iframe_on_result; - this.exit_iframe_on_three_d_secure = exit_iframe_on_three_d_secure; - } - static Builder(returnUrls) { - return new StrongCustomerAuthenticationBuilder.RequestBuilder(returnUrls); - } -} -exports.StrongCustomerAuthentication = StrongCustomerAuthentication; -var StrongCustomerAuthenticationBuilder; -(function (StrongCustomerAuthenticationBuilder) { - class RequestBuilder { - constructor(returnUrls) { - this.return_urls = returnUrls; - } - setCustomerDetails(customerDetails) { - this.customer_details = customerDetails; - return this; - } - setCustomerAccount(customerAccount) { - this.customer_account = customerAccount; - return this; - } - setPurchase(purchase) { - this.purchase = purchase; - return this; - } - setBillingAddress(billingAddress) { - this.billing_address = billingAddress; - return this; - } - setShippingAddress(shippingAddress) { - this.shipping_address = shippingAddress; - return this; - } - setCustomerAuthenticationInfo(customerAuthenticationInfo) { - this.customer_authentication_info = customerAuthenticationInfo; - return this; - } - /** - * Dimensions of the challenge window that has been displayed to the Cardholder. - * The ACS shall reply with content that is formatted to appropriately render in this window to provide the best possible user experience. - * @param desiredChallengeWindowSize Desired challenge window size for 3DS 2.x. - * @return Builder - */ - setDesiredChallengeWindowSize(desiredChallengeWindowSize) { - this.desired_challenge_window_size = desiredChallengeWindowSize; - return this; - } - /** - * @param exitIframeOnResult Exit form iframe when redirecting user back to success, failure or cancel URLs. - * @return Builder - */ - setExitIframeOnResult(exitIframeOnResult) { - this.exit_iframe_on_result = exitIframeOnResult; - return this; - } - /** - * @param exitIframeOnThreeDSecure Exit from iframe when redirecting the user to 3DS. - * @return Builder - */ - setExitIframeOnThreeDSecure(exitIframeOnThreeDSecure) { - this.exit_iframe_on_three_d_secure = exitIframeOnThreeDSecure; - return this; - } - build() { - return new StrongCustomerAuthentication(this.return_urls, this.customer_details, this.customer_account, this.purchase, this.billing_address, this.shipping_address, this.customer_authentication_info, this.desired_challenge_window_size, this.exit_iframe_on_result, this.exit_iframe_on_three_d_secure); - } - } - StrongCustomerAuthenticationBuilder.RequestBuilder = RequestBuilder; -})(StrongCustomerAuthenticationBuilder = exports.StrongCustomerAuthenticationBuilder || (exports.StrongCustomerAuthenticationBuilder = {})); -/** - * Desired challenge window size for 3DS 2.x. - * 01 = 250 x 400 - * 02 = 390 x 400 - * 03 = 500 x 600 - * 04 = 600 x 400 - * 05 = Full screen - */ -var ChallengeWindowSize; -(function (ChallengeWindowSize) { - ChallengeWindowSize["Window250x400"] = "01"; - ChallengeWindowSize["Window390x400"] = "02"; - ChallengeWindowSize["Window500x600"] = "03"; - ChallengeWindowSize["Window600x400"] = "04"; - ChallengeWindowSize["FullScreen"] = "05"; -})(ChallengeWindowSize = exports.ChallengeWindowSize || (exports.ChallengeWindowSize = {})); -//# sourceMappingURL=StrongCustomerAuthentication.js.map \ No newline at end of file diff --git a/js/src/model/request/sca/StrongCustomerAuthentication.js.map b/js/src/model/request/sca/StrongCustomerAuthentication.js.map deleted file mode 100644 index 492e1b6..0000000 --- a/js/src/model/request/sca/StrongCustomerAuthentication.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StrongCustomerAuthentication.js","sourceRoot":"","sources":["../../../../../ts/src/model/request/sca/StrongCustomerAuthentication.ts"],"names":[],"mappings":";;;AAOA,MAAa,4BAA4B;IACrC,YACW,WAAuB,EACvB,gBAAkC,EAClC,gBAAkC,EAClC,QAAmB,EACnB,eAAyB,EACzB,gBAA0B,EAC1B,4BAAyD,EACzD,6BAAmD,EACnD,qBAA+B,EAC/B,6BAAuC;QATvC,gBAAW,GAAX,WAAW,CAAY;QACvB,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,aAAQ,GAAR,QAAQ,CAAW;QACnB,oBAAe,GAAf,eAAe,CAAU;QACzB,qBAAgB,GAAhB,gBAAgB,CAAU;QAC1B,iCAA4B,GAA5B,4BAA4B,CAA6B;QACzD,kCAA6B,GAA7B,6BAA6B,CAAsB;QACnD,0BAAqB,GAArB,qBAAqB,CAAU;QAC/B,kCAA6B,GAA7B,6BAA6B,CAAU;IAElD,CAAC;IAEM,MAAM,CAAC,OAAO,CAAC,UAAsB;QACxC,OAAO,IAAI,mCAAmC,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IAC9E,CAAC;CACJ;AAlBD,oEAkBC;AAED,IAAiB,mCAAmC,CA2FnD;AA3FD,WAAiB,mCAAmC;IAChD,MAAa,cAAc;QAYvB,YAAY,UAAsB;YAC9B,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAClC,CAAC;QAEM,kBAAkB,CAAC,eAAgC;YACtD,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;YACxC,OAAO,IAAI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B,CACrC,CAAC;QACN,CAAC;KACJ;IAzFY,kDAAc,iBAyF1B,CAAA;AACL,CAAC,EA3FgB,mCAAmC,GAAnC,2CAAmC,KAAnC,2CAAmC,QA2FnD;AAED;;;;;;;GAOG;AACH,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC3B,2CAAoB,CAAA;IACpB,2CAAoB,CAAA;IACpB,2CAAoB,CAAA;IACpB,2CAAoB,CAAA;IACpB,wCAAiB,CAAA;AACrB,CAAC,EANW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAM9B"} \ No newline at end of file diff --git a/js/src/model/response/Acquirer.d.ts b/js/src/model/response/Acquirer.d.ts deleted file mode 100644 index a382cbb..0000000 --- a/js/src/model/response/Acquirer.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface Acquirer { - id: string; - name: string; -} diff --git a/js/src/model/response/Acquirer.js b/js/src/model/response/Acquirer.js deleted file mode 100644 index ecb4919..0000000 --- a/js/src/model/response/Acquirer.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Acquirer.js.map \ No newline at end of file diff --git a/js/src/model/response/Acquirer.js.map b/js/src/model/response/Acquirer.js.map deleted file mode 100644 index 36eaafa..0000000 --- a/js/src/model/response/Acquirer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Acquirer.js","sourceRoot":"","sources":["../../../../ts/src/model/response/Acquirer.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/AcquirerInfoResponse.d.ts b/js/src/model/response/AcquirerInfoResponse.d.ts deleted file mode 100644 index 75c60cf..0000000 --- a/js/src/model/response/AcquirerInfoResponse.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Acquirer } from './Acquirer'; -export interface AcquirerInfoResponse { - acquirer?: Acquirer; - acquirer_response_code?: string; - authorizer?: string; -} diff --git a/js/src/model/response/AcquirerInfoResponse.js b/js/src/model/response/AcquirerInfoResponse.js deleted file mode 100644 index 63abb5b..0000000 --- a/js/src/model/response/AcquirerInfoResponse.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=AcquirerInfoResponse.js.map \ No newline at end of file diff --git a/js/src/model/response/AcquirerInfoResponse.js.map b/js/src/model/response/AcquirerInfoResponse.js.map deleted file mode 100644 index 720fc06..0000000 --- a/js/src/model/response/AcquirerInfoResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AcquirerInfoResponse.js","sourceRoot":"","sources":["../../../../ts/src/model/response/AcquirerInfoResponse.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/Address.d.ts b/js/src/model/response/Address.d.ts deleted file mode 100644 index 07e9562..0000000 --- a/js/src/model/response/Address.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export interface Address { - line1: string; - line2?: string; - line3?: string; - postal_code?: string; - city: string; - country_subdivision?: string; - country: string; -} diff --git a/js/src/model/response/Address.js b/js/src/model/response/Address.js deleted file mode 100644 index 2e7ef1e..0000000 --- a/js/src/model/response/Address.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Address.js.map \ No newline at end of file diff --git a/js/src/model/response/Address.js.map b/js/src/model/response/Address.js.map deleted file mode 100644 index e627871..0000000 --- a/js/src/model/response/Address.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Address.js","sourceRoot":"","sources":["../../../../ts/src/model/response/Address.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/AfterPayRevert.d.ts b/js/src/model/response/AfterPayRevert.d.ts deleted file mode 100644 index de1ce20..0000000 --- a/js/src/model/response/AfterPayRevert.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Status } from './Status'; -export interface AfterPayRevert { - type: string; - status: Status; - amount: string; - timestamp: string; - afterpay_refund_type?: string; - afterpay_refund_number?: string; -} diff --git a/js/src/model/response/AfterPayRevert.js b/js/src/model/response/AfterPayRevert.js deleted file mode 100644 index 7393ef4..0000000 --- a/js/src/model/response/AfterPayRevert.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=AfterPayRevert.js.map \ No newline at end of file diff --git a/js/src/model/response/AfterPayRevert.js.map b/js/src/model/response/AfterPayRevert.js.map deleted file mode 100644 index ece0784..0000000 --- a/js/src/model/response/AfterPayRevert.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AfterPayRevert.js","sourceRoot":"","sources":["../../../../ts/src/model/response/AfterPayRevert.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/AfterPayTransactionStatus.d.ts b/js/src/model/response/AfterPayTransactionStatus.d.ts deleted file mode 100644 index 9ca04ec..0000000 --- a/js/src/model/response/AfterPayTransactionStatus.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Status } from './Status'; -import { Customer } from './Customer'; -import { AfterPayRevert } from './AfterPayRevert'; -import { Splitting } from '../Splitting'; -export interface AfterPayTransactionStatus { - id: string; - type: string; - amount: number; - current_amount: number; - currency: string; - timestamp: string; - modified: string; - status: Status; - reverts?: AfterPayRevert[]; - customer?: Customer; - order?: string; - committed: boolean; - committed_amount?: string; - afterpay_payment_type: string; - afterpay_checkout_id?: string; - afterpay_reservation_id?: string; - afterpay_customer_number?: string; - afterpay_capture_number?: string; - afterpay_outcome?: string; - reference_number?: string; - splitting?: Splitting; -} diff --git a/js/src/model/response/AfterPayTransactionStatus.js b/js/src/model/response/AfterPayTransactionStatus.js deleted file mode 100644 index b76d64a..0000000 --- a/js/src/model/response/AfterPayTransactionStatus.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=AfterPayTransactionStatus.js.map \ No newline at end of file diff --git a/js/src/model/response/AfterPayTransactionStatus.js.map b/js/src/model/response/AfterPayTransactionStatus.js.map deleted file mode 100644 index 1622556..0000000 --- a/js/src/model/response/AfterPayTransactionStatus.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AfterPayTransactionStatus.js","sourceRoot":"","sources":["../../../../ts/src/model/response/AfterPayTransactionStatus.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/AfterPayTransactionStatusResponse.d.ts b/js/src/model/response/AfterPayTransactionStatusResponse.d.ts deleted file mode 100644 index c67b3e0..0000000 --- a/js/src/model/response/AfterPayTransactionStatusResponse.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Response } from './Response'; -import { AfterPayTransactionStatus } from './AfterPayTransactionStatus'; -export interface AfterPayTransactionStatusResponse extends Response { - transaction: AfterPayTransactionStatus; -} diff --git a/js/src/model/response/AfterPayTransactionStatusResponse.js b/js/src/model/response/AfterPayTransactionStatusResponse.js deleted file mode 100644 index 59ce614..0000000 --- a/js/src/model/response/AfterPayTransactionStatusResponse.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=AfterPayTransactionStatusResponse.js.map \ No newline at end of file diff --git a/js/src/model/response/AfterPayTransactionStatusResponse.js.map b/js/src/model/response/AfterPayTransactionStatusResponse.js.map deleted file mode 100644 index 9392007..0000000 --- a/js/src/model/response/AfterPayTransactionStatusResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AfterPayTransactionStatusResponse.js","sourceRoot":"","sources":["../../../../ts/src/model/response/AfterPayTransactionStatusResponse.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/CardResponse.d.ts b/js/src/model/response/CardResponse.d.ts deleted file mode 100644 index 2d90373..0000000 --- a/js/src/model/response/CardResponse.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export interface CardResponse { - partial_pan: string; - type: string; - expire_year: string; - expire_month: string; - cvc_required: string; - bin: string; - funding: string; - category: string; - country_code?: string; - card_fingerprint?: string; - pan_fingerprint?: string; -} diff --git a/js/src/model/response/CardResponse.js b/js/src/model/response/CardResponse.js deleted file mode 100644 index 2c13d95..0000000 --- a/js/src/model/response/CardResponse.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=CardResponse.js.map \ No newline at end of file diff --git a/js/src/model/response/CardResponse.js.map b/js/src/model/response/CardResponse.js.map deleted file mode 100644 index 67925e3..0000000 --- a/js/src/model/response/CardResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CardResponse.js","sourceRoot":"","sources":["../../../../ts/src/model/response/CardResponse.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/ChargeCitResponse.d.ts b/js/src/model/response/ChargeCitResponse.d.ts deleted file mode 100644 index 1f14fb3..0000000 --- a/js/src/model/response/ChargeCitResponse.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { DebitResponse } from './DebitResponse'; -export interface ChargeCitResponse extends DebitResponse { - three_d_secure_url?: string; -} diff --git a/js/src/model/response/ChargeCitResponse.js b/js/src/model/response/ChargeCitResponse.js deleted file mode 100644 index b6cc668..0000000 --- a/js/src/model/response/ChargeCitResponse.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ChargeCitResponse.js.map \ No newline at end of file diff --git a/js/src/model/response/ChargeCitResponse.js.map b/js/src/model/response/ChargeCitResponse.js.map deleted file mode 100644 index f6f4a19..0000000 --- a/js/src/model/response/ChargeCitResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChargeCitResponse.js","sourceRoot":"","sources":["../../../../ts/src/model/response/ChargeCitResponse.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/CommissionSettlement.d.ts b/js/src/model/response/CommissionSettlement.d.ts deleted file mode 100644 index 50d5bf7..0000000 --- a/js/src/model/response/CommissionSettlement.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Acquirer } from './Acquirer'; -export interface CommissionSettlement { - acquirer_batch_id: string; - batch: string; - date_processed: string; - reference: string; - acquirer: Acquirer; - amount: string; - currency: string; - main_acquirer_merchant_id: string; -} diff --git a/js/src/model/response/CommissionSettlement.js b/js/src/model/response/CommissionSettlement.js deleted file mode 100644 index a4b3234..0000000 --- a/js/src/model/response/CommissionSettlement.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=CommissionSettlement.js.map \ No newline at end of file diff --git a/js/src/model/response/CommissionSettlement.js.map b/js/src/model/response/CommissionSettlement.js.map deleted file mode 100644 index e3a11b4..0000000 --- a/js/src/model/response/CommissionSettlement.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CommissionSettlement.js","sourceRoot":"","sources":["../../../../ts/src/model/response/CommissionSettlement.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/Customer.d.ts b/js/src/model/response/Customer.d.ts deleted file mode 100644 index ca36946..0000000 --- a/js/src/model/response/Customer.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface Customer { - network_address?: string; - country_code?: string; -} diff --git a/js/src/model/response/Customer.js b/js/src/model/response/Customer.js deleted file mode 100644 index 1123aca..0000000 --- a/js/src/model/response/Customer.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Customer.js.map \ No newline at end of file diff --git a/js/src/model/response/Customer.js.map b/js/src/model/response/Customer.js.map deleted file mode 100644 index bfcb43b..0000000 --- a/js/src/model/response/Customer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../../ts/src/model/response/Customer.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/DateOfBirth.d.ts b/js/src/model/response/DateOfBirth.d.ts deleted file mode 100644 index 9ae6795..0000000 --- a/js/src/model/response/DateOfBirth.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export interface DateOfBirth { - year: string; - month: string; - day: string; -} diff --git a/js/src/model/response/DateOfBirth.js b/js/src/model/response/DateOfBirth.js deleted file mode 100644 index fcecfe9..0000000 --- a/js/src/model/response/DateOfBirth.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=DateOfBirth.js.map \ No newline at end of file diff --git a/js/src/model/response/DateOfBirth.js.map b/js/src/model/response/DateOfBirth.js.map deleted file mode 100644 index 8c2150c..0000000 --- a/js/src/model/response/DateOfBirth.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DateOfBirth.js","sourceRoot":"","sources":["../../../../ts/src/model/response/DateOfBirth.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/DebitResponse.d.ts b/js/src/model/response/DebitResponse.d.ts deleted file mode 100644 index f6b79bd..0000000 --- a/js/src/model/response/DebitResponse.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Result } from './Result'; -import { AcquirerInfoResponse } from './AcquirerInfoResponse'; -export interface DebitResponse extends AcquirerInfoResponse { - result: Result; - filing_code?: string; -} diff --git a/js/src/model/response/DebitResponse.js b/js/src/model/response/DebitResponse.js deleted file mode 100644 index deb09bc..0000000 --- a/js/src/model/response/DebitResponse.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=DebitResponse.js.map \ No newline at end of file diff --git a/js/src/model/response/DebitResponse.js.map b/js/src/model/response/DebitResponse.js.map deleted file mode 100644 index e92b27d..0000000 --- a/js/src/model/response/DebitResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DebitResponse.js","sourceRoot":"","sources":["../../../../ts/src/model/response/DebitResponse.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/Merchant.d.ts b/js/src/model/response/Merchant.d.ts deleted file mode 100644 index ea3c85d..0000000 --- a/js/src/model/response/Merchant.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export interface Merchant { - id: string; - name: string; - acquirer_merchant_id: string; -} diff --git a/js/src/model/response/Merchant.js b/js/src/model/response/Merchant.js deleted file mode 100644 index e4168ab..0000000 --- a/js/src/model/response/Merchant.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Merchant.js.map \ No newline at end of file diff --git a/js/src/model/response/Merchant.js.map b/js/src/model/response/Merchant.js.map deleted file mode 100644 index 13c2ed4..0000000 --- a/js/src/model/response/Merchant.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Merchant.js","sourceRoot":"","sources":["../../../../ts/src/model/response/Merchant.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/MobilePayInitResponse.d.ts b/js/src/model/response/MobilePayInitResponse.d.ts deleted file mode 100644 index 8f003f5..0000000 --- a/js/src/model/response/MobilePayInitResponse.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Response } from './Response'; -export interface MobilePayInitResponse extends Response { - session_token: string; - uri: string; - valid_until: string; -} diff --git a/js/src/model/response/MobilePayInitResponse.js b/js/src/model/response/MobilePayInitResponse.js deleted file mode 100644 index 3bf6afa..0000000 --- a/js/src/model/response/MobilePayInitResponse.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=MobilePayInitResponse.js.map \ No newline at end of file diff --git a/js/src/model/response/MobilePayInitResponse.js.map b/js/src/model/response/MobilePayInitResponse.js.map deleted file mode 100644 index e31d561..0000000 --- a/js/src/model/response/MobilePayInitResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"MobilePayInitResponse.js","sourceRoot":"","sources":["../../../../ts/src/model/response/MobilePayInitResponse.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/MobilePayStatusResponse.d.ts b/js/src/model/response/MobilePayStatusResponse.d.ts deleted file mode 100644 index 457385c..0000000 --- a/js/src/model/response/MobilePayStatusResponse.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Response } from './Response'; -export interface MobilePayStatusResponse extends Response { - status: string; - transaction_id?: string; - valid_until?: string; -} diff --git a/js/src/model/response/MobilePayStatusResponse.js b/js/src/model/response/MobilePayStatusResponse.js deleted file mode 100644 index 6ca55db..0000000 --- a/js/src/model/response/MobilePayStatusResponse.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=MobilePayStatusResponse.js.map \ No newline at end of file diff --git a/js/src/model/response/MobilePayStatusResponse.js.map b/js/src/model/response/MobilePayStatusResponse.js.map deleted file mode 100644 index c645782..0000000 --- a/js/src/model/response/MobilePayStatusResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"MobilePayStatusResponse.js","sourceRoot":"","sources":["../../../../ts/src/model/response/MobilePayStatusResponse.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/OrderSearchResponse.d.ts b/js/src/model/response/OrderSearchResponse.d.ts deleted file mode 100644 index e5c149f..0000000 --- a/js/src/model/response/OrderSearchResponse.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Response } from './Response'; -import { TransactionStatus } from './TransactionStatus'; -import { PivoTransactionStatus } from './PivoTransactionStatus'; -import { AfterPayTransactionStatus } from './AfterPayTransactionStatus'; -export interface OrderSearchResponse extends Response { - transactions: TransactionStatus[]; - pivo_transactions: PivoTransactionStatus[]; - afterpay_transactions: AfterPayTransactionStatus[]; -} diff --git a/js/src/model/response/OrderSearchResponse.js b/js/src/model/response/OrderSearchResponse.js deleted file mode 100644 index 5762d45..0000000 --- a/js/src/model/response/OrderSearchResponse.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=OrderSearchResponse.js.map \ No newline at end of file diff --git a/js/src/model/response/OrderSearchResponse.js.map b/js/src/model/response/OrderSearchResponse.js.map deleted file mode 100644 index fd14f66..0000000 --- a/js/src/model/response/OrderSearchResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"OrderSearchResponse.js","sourceRoot":"","sources":["../../../../ts/src/model/response/OrderSearchResponse.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/PivoInitResponse.d.ts b/js/src/model/response/PivoInitResponse.d.ts deleted file mode 100644 index 54f2539..0000000 --- a/js/src/model/response/PivoInitResponse.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Response } from './Response'; -export interface PivoInitResponse extends Response { - transaction_id: string; - uri: string; - valid_until: string; -} diff --git a/js/src/model/response/PivoInitResponse.js b/js/src/model/response/PivoInitResponse.js deleted file mode 100644 index d8fbbe1..0000000 --- a/js/src/model/response/PivoInitResponse.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=PivoInitResponse.js.map \ No newline at end of file diff --git a/js/src/model/response/PivoInitResponse.js.map b/js/src/model/response/PivoInitResponse.js.map deleted file mode 100644 index c176573..0000000 --- a/js/src/model/response/PivoInitResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PivoInitResponse.js","sourceRoot":"","sources":["../../../../ts/src/model/response/PivoInitResponse.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/PivoRefund.d.ts b/js/src/model/response/PivoRefund.d.ts deleted file mode 100644 index 272543d..0000000 --- a/js/src/model/response/PivoRefund.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Status } from './Status'; -export interface PivoRefund { - refund_requestequest_id: string; - amount: Status; - timestamp: string; - reference_number: string; -} diff --git a/js/src/model/response/PivoRefund.js b/js/src/model/response/PivoRefund.js deleted file mode 100644 index 77e9e8e..0000000 --- a/js/src/model/response/PivoRefund.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=PivoRefund.js.map \ No newline at end of file diff --git a/js/src/model/response/PivoRefund.js.map b/js/src/model/response/PivoRefund.js.map deleted file mode 100644 index d8e7ee8..0000000 --- a/js/src/model/response/PivoRefund.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PivoRefund.js","sourceRoot":"","sources":["../../../../ts/src/model/response/PivoRefund.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/PivoTransactionResultResponse.d.ts b/js/src/model/response/PivoTransactionResultResponse.d.ts deleted file mode 100644 index 0e42335..0000000 --- a/js/src/model/response/PivoTransactionResultResponse.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Result } from './Result'; -import { Customer } from './Customer'; -export interface PivoTransactionResultResponse { - state: string; - customer?: Customer; - amount: number; - current_amount: number; - reference_number: string; - archive_id: string; - payment_type: string; - result: Result; -} diff --git a/js/src/model/response/PivoTransactionResultResponse.js b/js/src/model/response/PivoTransactionResultResponse.js deleted file mode 100644 index 91a4ed4..0000000 --- a/js/src/model/response/PivoTransactionResultResponse.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=PivoTransactionResultResponse.js.map \ No newline at end of file diff --git a/js/src/model/response/PivoTransactionResultResponse.js.map b/js/src/model/response/PivoTransactionResultResponse.js.map deleted file mode 100644 index 3d322ae..0000000 --- a/js/src/model/response/PivoTransactionResultResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PivoTransactionResultResponse.js","sourceRoot":"","sources":["../../../../ts/src/model/response/PivoTransactionResultResponse.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/PivoTransactionStatus.d.ts b/js/src/model/response/PivoTransactionStatus.d.ts deleted file mode 100644 index 2f89967..0000000 --- a/js/src/model/response/PivoTransactionStatus.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Status } from './Status'; -import { Customer } from './Customer'; -import { PivoRefund } from './PivoRefund'; -import { Splitting } from '../Splitting'; -export interface PivoTransactionStatus { - id: string; - type: string; - amount: string; - current_amount: string; - currency: string; - timestamp: string; - status: Status; - reference_number: string; - customer: Customer; - order: string; - pivo_payment_id: string; - phone: string; - payment_type: string; - archive_id: string; - modified: string; - refunds: PivoRefund[]; - splitting?: Splitting; -} diff --git a/js/src/model/response/PivoTransactionStatus.js b/js/src/model/response/PivoTransactionStatus.js deleted file mode 100644 index ee46b06..0000000 --- a/js/src/model/response/PivoTransactionStatus.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=PivoTransactionStatus.js.map \ No newline at end of file diff --git a/js/src/model/response/PivoTransactionStatus.js.map b/js/src/model/response/PivoTransactionStatus.js.map deleted file mode 100644 index ff58e41..0000000 --- a/js/src/model/response/PivoTransactionStatus.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PivoTransactionStatus.js","sourceRoot":"","sources":["../../../../ts/src/model/response/PivoTransactionStatus.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/PivoTransactionStatusResponse.d.ts b/js/src/model/response/PivoTransactionStatusResponse.d.ts deleted file mode 100644 index ecf6cd0..0000000 --- a/js/src/model/response/PivoTransactionStatusResponse.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { PivoTransactionStatus } from './PivoTransactionStatus'; -import { Response } from './Response'; -export interface PivoTransactionStatusResponse extends Response { - transaction: PivoTransactionStatus; -} diff --git a/js/src/model/response/PivoTransactionStatusResponse.js b/js/src/model/response/PivoTransactionStatusResponse.js deleted file mode 100644 index b20a7f5..0000000 --- a/js/src/model/response/PivoTransactionStatusResponse.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=PivoTransactionStatusResponse.js.map \ No newline at end of file diff --git a/js/src/model/response/PivoTransactionStatusResponse.js.map b/js/src/model/response/PivoTransactionStatusResponse.js.map deleted file mode 100644 index dcc1d45..0000000 --- a/js/src/model/response/PivoTransactionStatusResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PivoTransactionStatusResponse.js","sourceRoot":"","sources":["../../../../ts/src/model/response/PivoTransactionStatusResponse.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/ProfileInfo.d.ts b/js/src/model/response/ProfileInfo.d.ts deleted file mode 100644 index b584402..0000000 --- a/js/src/model/response/ProfileInfo.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { DateOfBirth } from './DateOfBirth'; -import { Address } from './Address'; -import { ShippingAddress } from './ShippingAddress'; -export interface ProfileInfo { - first_name?: string; - middle_name?: string; - last_name?: string; - gender?: string; - date_of_birth?: DateOfBirth; - national_id?: string; - country?: string; - email_address?: string; - phone_number?: string; - billing_address?: Address; - shipping_address?: ShippingAddress; -} diff --git a/js/src/model/response/ProfileInfo.js b/js/src/model/response/ProfileInfo.js deleted file mode 100644 index 4e9b933..0000000 --- a/js/src/model/response/ProfileInfo.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ProfileInfo.js.map \ No newline at end of file diff --git a/js/src/model/response/ProfileInfo.js.map b/js/src/model/response/ProfileInfo.js.map deleted file mode 100644 index aa5273b..0000000 --- a/js/src/model/response/ProfileInfo.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ProfileInfo.js","sourceRoot":"","sources":["../../../../ts/src/model/response/ProfileInfo.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/ReconciliationReportResponse.d.ts b/js/src/model/response/ReconciliationReportResponse.d.ts deleted file mode 100644 index d21778b..0000000 --- a/js/src/model/response/ReconciliationReportResponse.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Response } from './Response'; -import { ReconciliationSettlement } from './ReconciliationSettlement'; -import { CommissionSettlement } from './CommissionSettlement'; -export interface ReconciliationReportResponse extends Response { - settlements: ReconciliationSettlement[]; - commission_settlements: CommissionSettlement[]; -} diff --git a/js/src/model/response/ReconciliationReportResponse.js b/js/src/model/response/ReconciliationReportResponse.js deleted file mode 100644 index 6578c5e..0000000 --- a/js/src/model/response/ReconciliationReportResponse.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ReconciliationReportResponse.js.map \ No newline at end of file diff --git a/js/src/model/response/ReconciliationReportResponse.js.map b/js/src/model/response/ReconciliationReportResponse.js.map deleted file mode 100644 index d282362..0000000 --- a/js/src/model/response/ReconciliationReportResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ReconciliationReportResponse.js","sourceRoot":"","sources":["../../../../ts/src/model/response/ReconciliationReportResponse.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/ReconciliationSettlement.d.ts b/js/src/model/response/ReconciliationSettlement.d.ts deleted file mode 100644 index 8ffaa15..0000000 --- a/js/src/model/response/ReconciliationSettlement.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Status } from './Status'; -import { Acquirer } from './Acquirer'; -import { ReconciliationTransaction } from './ReconciliationTransaction'; -import { UnallocatedTransaction } from './UnallocatedTransaction'; -export interface ReconciliationSettlement { - acquirer_batch_id: string; - status: Status; - batch: string; - date_processed: string; - reference: string; - acquirer: Acquirer; - transaction_count: string; - net_amount: string; - currency: string; - transactions: ReconciliationTransaction[]; - main_acquirer_merchant_id: string; - unallocated_transactions_count: string; - unallocated_transactions: UnallocatedTransaction[]; -} diff --git a/js/src/model/response/ReconciliationSettlement.js b/js/src/model/response/ReconciliationSettlement.js deleted file mode 100644 index 7df7afe..0000000 --- a/js/src/model/response/ReconciliationSettlement.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ReconciliationSettlement.js.map \ No newline at end of file diff --git a/js/src/model/response/ReconciliationSettlement.js.map b/js/src/model/response/ReconciliationSettlement.js.map deleted file mode 100644 index b805056..0000000 --- a/js/src/model/response/ReconciliationSettlement.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ReconciliationSettlement.js","sourceRoot":"","sources":["../../../../ts/src/model/response/ReconciliationSettlement.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/ReconciliationTransaction.d.ts b/js/src/model/response/ReconciliationTransaction.d.ts deleted file mode 100644 index 0f35047..0000000 --- a/js/src/model/response/ReconciliationTransaction.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Merchant } from './Merchant'; -export interface ReconciliationTransaction { - merchant: Merchant; - acquirer_amount_presented: string; - acquirer_amount_presented_currency: string; - acquirer_estimated_settlement_value: string; - acquirer_estimated_settlement_value_currency: string; - acquirer_exchange_rate: string; - acquirer_discount_rate: string; - acquirer_transaction_fee: string; - acquirer_transaction_fee_currency: string; - acquirer_commission: string; - acquirer_commission_currency: string; -} diff --git a/js/src/model/response/ReconciliationTransaction.js b/js/src/model/response/ReconciliationTransaction.js deleted file mode 100644 index 5f6d4a7..0000000 --- a/js/src/model/response/ReconciliationTransaction.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ReconciliationTransaction.js.map \ No newline at end of file diff --git a/js/src/model/response/ReconciliationTransaction.js.map b/js/src/model/response/ReconciliationTransaction.js.map deleted file mode 100644 index 5e1b384..0000000 --- a/js/src/model/response/ReconciliationTransaction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ReconciliationTransaction.js","sourceRoot":"","sources":["../../../../ts/src/model/response/ReconciliationTransaction.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/ReportResponse.d.ts b/js/src/model/response/ReportResponse.d.ts deleted file mode 100644 index 55c580c..0000000 --- a/js/src/model/response/ReportResponse.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Response } from './Response'; -import { Settlement } from './Settlement'; -export interface ReportResponse extends Response { - settlements: Settlement[]; -} diff --git a/js/src/model/response/ReportResponse.js b/js/src/model/response/ReportResponse.js deleted file mode 100644 index f41f220..0000000 --- a/js/src/model/response/ReportResponse.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ReportResponse.js.map \ No newline at end of file diff --git a/js/src/model/response/ReportResponse.js.map b/js/src/model/response/ReportResponse.js.map deleted file mode 100644 index e92845e..0000000 --- a/js/src/model/response/ReportResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ReportResponse.js","sourceRoot":"","sources":["../../../../ts/src/model/response/ReportResponse.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/Response.d.ts b/js/src/model/response/Response.d.ts deleted file mode 100644 index e149201..0000000 --- a/js/src/model/response/Response.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { Result } from './Result'; -export interface Response { - result: Result; -} diff --git a/js/src/model/response/Response.js b/js/src/model/response/Response.js deleted file mode 100644 index 050f012..0000000 --- a/js/src/model/response/Response.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Response.js.map \ No newline at end of file diff --git a/js/src/model/response/Response.js.map b/js/src/model/response/Response.js.map deleted file mode 100644 index 99f4e53..0000000 --- a/js/src/model/response/Response.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../ts/src/model/response/Response.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/Result.d.ts b/js/src/model/response/Result.d.ts deleted file mode 100644 index 69202cd..0000000 --- a/js/src/model/response/Result.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface Result { - code: number; - message: string; -} diff --git a/js/src/model/response/Result.js b/js/src/model/response/Result.js deleted file mode 100644 index e344c30..0000000 --- a/js/src/model/response/Result.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Result.js.map \ No newline at end of file diff --git a/js/src/model/response/Result.js.map b/js/src/model/response/Result.js.map deleted file mode 100644 index ba74a79..0000000 --- a/js/src/model/response/Result.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Result.js","sourceRoot":"","sources":["../../../../ts/src/model/response/Result.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/Revert.d.ts b/js/src/model/response/Revert.d.ts deleted file mode 100644 index 3ba4ae2..0000000 --- a/js/src/model/response/Revert.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Status } from './Status'; -export interface Revert { - type: string; - status: Status; - amount: string; - timestamp: string; - modified: string; - filing_code?: string; -} diff --git a/js/src/model/response/Revert.js b/js/src/model/response/Revert.js deleted file mode 100644 index 6d79f7a..0000000 --- a/js/src/model/response/Revert.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Revert.js.map \ No newline at end of file diff --git a/js/src/model/response/Revert.js.map b/js/src/model/response/Revert.js.map deleted file mode 100644 index 3567500..0000000 --- a/js/src/model/response/Revert.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Revert.js","sourceRoot":"","sources":["../../../../ts/src/model/response/Revert.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/Settlement.d.ts b/js/src/model/response/Settlement.d.ts deleted file mode 100644 index 1873c9e..0000000 --- a/js/src/model/response/Settlement.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Merchant } from './Merchant'; -import { Acquirer } from './Acquirer'; -import { Transaction } from './Transaction'; -export interface Settlement { - status: string; - id: string; - batch: string; - timestamp: string; - reference: string; - merchant: Merchant; - acquirer: Acquirer; - transaction_count: string; - net_amount: number; - currency: string; - transactions: Transaction[]; -} diff --git a/js/src/model/response/Settlement.js b/js/src/model/response/Settlement.js deleted file mode 100644 index 0c8cc94..0000000 --- a/js/src/model/response/Settlement.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Settlement.js.map \ No newline at end of file diff --git a/js/src/model/response/Settlement.js.map b/js/src/model/response/Settlement.js.map deleted file mode 100644 index 1b26ec4..0000000 --- a/js/src/model/response/Settlement.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Settlement.js","sourceRoot":"","sources":["../../../../ts/src/model/response/Settlement.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/ShippingAddress.d.ts b/js/src/model/response/ShippingAddress.d.ts deleted file mode 100644 index a809a53..0000000 --- a/js/src/model/response/ShippingAddress.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { Address } from './Address'; -export interface ShippingAddress extends Address { - recipient_name?: string; -} diff --git a/js/src/model/response/ShippingAddress.js b/js/src/model/response/ShippingAddress.js deleted file mode 100644 index 1b2731e..0000000 --- a/js/src/model/response/ShippingAddress.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ShippingAddress.js.map \ No newline at end of file diff --git a/js/src/model/response/ShippingAddress.js.map b/js/src/model/response/ShippingAddress.js.map deleted file mode 100644 index ab0c1b8..0000000 --- a/js/src/model/response/ShippingAddress.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ShippingAddress.js","sourceRoot":"","sources":["../../../../ts/src/model/response/ShippingAddress.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/Status.d.ts b/js/src/model/response/Status.d.ts deleted file mode 100644 index a566369..0000000 --- a/js/src/model/response/Status.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export interface Status { - state: string; - code: string; - message?: string; -} diff --git a/js/src/model/response/Status.js b/js/src/model/response/Status.js deleted file mode 100644 index f7c0753..0000000 --- a/js/src/model/response/Status.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Status.js.map \ No newline at end of file diff --git a/js/src/model/response/Status.js.map b/js/src/model/response/Status.js.map deleted file mode 100644 index 2958764..0000000 --- a/js/src/model/response/Status.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Status.js","sourceRoot":"","sources":["../../../../ts/src/model/response/Status.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/TokenizationResponse.d.ts b/js/src/model/response/TokenizationResponse.d.ts deleted file mode 100644 index b55f6a5..0000000 --- a/js/src/model/response/TokenizationResponse.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Response } from './Response'; -import { CardResponse } from './CardResponse'; -import { Customer } from './Customer'; -import { AcquirerInfoResponse } from './AcquirerInfoResponse'; -export interface TokenizationResponse extends Response, AcquirerInfoResponse { - card_token: string; - card: CardResponse; - customer: Customer; - cardholder_authentication: string; - recurring: boolean; -} diff --git a/js/src/model/response/TokenizationResponse.js b/js/src/model/response/TokenizationResponse.js deleted file mode 100644 index a85e9b9..0000000 --- a/js/src/model/response/TokenizationResponse.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=TokenizationResponse.js.map \ No newline at end of file diff --git a/js/src/model/response/TokenizationResponse.js.map b/js/src/model/response/TokenizationResponse.js.map deleted file mode 100644 index 9b18cbc..0000000 --- a/js/src/model/response/TokenizationResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TokenizationResponse.js","sourceRoot":"","sources":["../../../../ts/src/model/response/TokenizationResponse.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/Transaction.d.ts b/js/src/model/response/Transaction.d.ts deleted file mode 100644 index df868e0..0000000 --- a/js/src/model/response/Transaction.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Status } from './Status'; -export interface Transaction { - id: string; - timestamp: string; - type: string; - partial_pan: string; - amount: string; - currency: string; - filing_code: string; - authorization_code: string; - status: Status; - cardholder_authentication: string; - order: string; - recurring: boolean; -} diff --git a/js/src/model/response/Transaction.js b/js/src/model/response/Transaction.js deleted file mode 100644 index 32f19b6..0000000 --- a/js/src/model/response/Transaction.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Transaction.js.map \ No newline at end of file diff --git a/js/src/model/response/Transaction.js.map b/js/src/model/response/Transaction.js.map deleted file mode 100644 index 75bca2f..0000000 --- a/js/src/model/response/Transaction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Transaction.js","sourceRoot":"","sources":["../../../../ts/src/model/response/Transaction.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/TransactionResponse.d.ts b/js/src/model/response/TransactionResponse.d.ts deleted file mode 100644 index f3ea770..0000000 --- a/js/src/model/response/TransactionResponse.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { Response } from './Response'; -export interface TransactionResponse extends Response { - id: string; -} diff --git a/js/src/model/response/TransactionResponse.js b/js/src/model/response/TransactionResponse.js deleted file mode 100644 index 0d6fbde..0000000 --- a/js/src/model/response/TransactionResponse.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=TransactionResponse.js.map \ No newline at end of file diff --git a/js/src/model/response/TransactionResponse.js.map b/js/src/model/response/TransactionResponse.js.map deleted file mode 100644 index 2ffce20..0000000 --- a/js/src/model/response/TransactionResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TransactionResponse.js","sourceRoot":"","sources":["../../../../ts/src/model/response/TransactionResponse.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/TransactionResultResponse.d.ts b/js/src/model/response/TransactionResultResponse.d.ts deleted file mode 100644 index cc253e0..0000000 --- a/js/src/model/response/TransactionResultResponse.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { CardResponse } from './CardResponse'; -import { Result } from './Result'; -import { Customer } from './Customer'; -import { AcquirerInfoResponse } from './AcquirerInfoResponse'; -export interface TransactionResultResponse extends AcquirerInfoResponse { - card_token?: string; - card?: CardResponse; - customer?: Customer; - cardholder_authentication: string; - result: Result; - committed: boolean; - committed_amount?: number; - filing_code: string; - recurring: boolean; - reference_number?: string; -} diff --git a/js/src/model/response/TransactionResultResponse.js b/js/src/model/response/TransactionResultResponse.js deleted file mode 100644 index 1e4f1ad..0000000 --- a/js/src/model/response/TransactionResultResponse.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=TransactionResultResponse.js.map \ No newline at end of file diff --git a/js/src/model/response/TransactionResultResponse.js.map b/js/src/model/response/TransactionResultResponse.js.map deleted file mode 100644 index 122cf01..0000000 --- a/js/src/model/response/TransactionResultResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TransactionResultResponse.js","sourceRoot":"","sources":["../../../../ts/src/model/response/TransactionResultResponse.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/TransactionStatus.d.ts b/js/src/model/response/TransactionStatus.d.ts deleted file mode 100644 index 14ebf61..0000000 --- a/js/src/model/response/TransactionStatus.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { CardResponse } from './CardResponse'; -import { Status } from './Status'; -import { Revert } from './Revert'; -import { Customer } from './Customer'; -import { Splitting } from '../Splitting'; -import { AcquirerInfoResponse } from './AcquirerInfoResponse'; -export interface TransactionStatus extends AcquirerInfoResponse { - id: string; - type: string; - amount: number; - current_amount: number; - currency: string; - timestamp: string; - modified: string; - filing_code: string; - authorization_code?: string; - token?: string; - status: Status; - card: CardResponse; - reverts?: Revert[]; - customer?: Customer; - cardholder_authentication: string; - order?: string; - committed: boolean; - committed_amount?: string; - recurring: boolean; - splitting?: Splitting; - reference_number?: string; -} diff --git a/js/src/model/response/TransactionStatus.js b/js/src/model/response/TransactionStatus.js deleted file mode 100644 index a895e10..0000000 --- a/js/src/model/response/TransactionStatus.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=TransactionStatus.js.map \ No newline at end of file diff --git a/js/src/model/response/TransactionStatus.js.map b/js/src/model/response/TransactionStatus.js.map deleted file mode 100644 index acd8b7e..0000000 --- a/js/src/model/response/TransactionStatus.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TransactionStatus.js","sourceRoot":"","sources":["../../../../ts/src/model/response/TransactionStatus.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/TransactionStatusResponse.d.ts b/js/src/model/response/TransactionStatusResponse.d.ts deleted file mode 100644 index 7d95aa3..0000000 --- a/js/src/model/response/TransactionStatusResponse.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { TransactionStatus } from './TransactionStatus'; -import { Response } from './Response'; -export interface TransactionStatusResponse extends Response { - transaction: TransactionStatus; -} diff --git a/js/src/model/response/TransactionStatusResponse.js b/js/src/model/response/TransactionStatusResponse.js deleted file mode 100644 index 1b3800f..0000000 --- a/js/src/model/response/TransactionStatusResponse.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=TransactionStatusResponse.js.map \ No newline at end of file diff --git a/js/src/model/response/TransactionStatusResponse.js.map b/js/src/model/response/TransactionStatusResponse.js.map deleted file mode 100644 index dcc7eab..0000000 --- a/js/src/model/response/TransactionStatusResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TransactionStatusResponse.js","sourceRoot":"","sources":["../../../../ts/src/model/response/TransactionStatusResponse.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/model/response/UnallocatedTransaction.d.ts b/js/src/model/response/UnallocatedTransaction.d.ts deleted file mode 100644 index cc248d0..0000000 --- a/js/src/model/response/UnallocatedTransaction.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -export interface UnallocatedTransaction { - filing_code: string; - acquirer_amount_presented: string; - acquirer_amount_presented_currency: string; - acquirer_estimated_settlement_value: string; - acquirer_estimated_settlement_value_currency: string; - acquirer_exchange_rate: string; - acquirer_discount_rate: string; - acquirer_transaction_fee: string; - acquirer_transaction_fee_currency: string; - acquirer_commission: string; - acquirer_commission_currency: string; - partial_pan: string; - card_type: string; - transaction_date: string; -} diff --git a/js/src/model/response/UnallocatedTransaction.js b/js/src/model/response/UnallocatedTransaction.js deleted file mode 100644 index e39d8e7..0000000 --- a/js/src/model/response/UnallocatedTransaction.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=UnallocatedTransaction.js.map \ No newline at end of file diff --git a/js/src/model/response/UnallocatedTransaction.js.map b/js/src/model/response/UnallocatedTransaction.js.map deleted file mode 100644 index 9402c3e..0000000 --- a/js/src/model/response/UnallocatedTransaction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UnallocatedTransaction.js","sourceRoot":"","sources":["../../../../ts/src/model/response/UnallocatedTransaction.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/security/SecureSigner.d.ts b/js/src/security/SecureSigner.d.ts deleted file mode 100644 index d5f7c1a..0000000 --- a/js/src/security/SecureSigner.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { Pair } from '../util/Pair'; -import { Method } from '../util/Method'; -import { Dictionary } from 'lodash'; -/** - * Creates a signature for PaymentHighway messages - */ -export declare class SecureSigner { - private secretKeyId; - private secretKey; - private signatureScheme; - private algorithm; - constructor(secretKeyId: string, secretKey: string); - /** - * Create signature - * - * @param method - * @param uri - * @param keyValues - * @param body - * @return String eg: - * "SPH1 testKey 51dcbaf5a9323daed24c0cdc5bb5d344f321aa84435b64e5da3d8f6c49370532" - */ - createSignature(method: Method, uri: string, keyValues: Pair[], body: string): string; - /** - * Create signature String from the actual parameters - * - * @param method - * @param uri - * @param keyValues - * @param body - * @return String signature - */ - private sign; - /** - * Signature is formed from parameters that start with "sph-" Therefore we - * remove other parameters from the signature param set. - * - * @param keyValues - * @returns string - */ - private createKeyValString; - /** - * Validates the response by checking the provided signature against the calculated one. - * - * @param method HTTP METHOD e.g. POST or GET - * @param uri The request URI - * @param keyValues The key value pairs of headers or request parameters - * @param content The body content - * @return boolean true if signature is found and matches the calculated one - */ - validateSignature(method: Method, uri: string, keyValues: Dictionary, content: string): boolean; - /** - * Validates the response redirection by checking the provided signature against the calculated one. - * @param keyValues The request parameters from the redirection - * @return boolean - */ - validateFormRedirect(keyValues: Dictionary): boolean; - private parseKeyValues; -} diff --git a/js/src/security/SecureSigner.js b/js/src/security/SecureSigner.js deleted file mode 100644 index a3c0d60..0000000 --- a/js/src/security/SecureSigner.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SecureSigner = void 0; -const Crypto = require("crypto"); -const Pair_1 = require("../util/Pair"); -const _ = require("lodash"); -/** - * Creates a signature for PaymentHighway messages - */ -class SecureSigner { - constructor(secretKeyId, secretKey) { - this.secretKeyId = secretKeyId; - this.secretKey = secretKey; - this.signatureScheme = 'SPH1'; - this.algorithm = 'sha256'; - } - /** - * Create signature - * - * @param method - * @param uri - * @param keyValues - * @param body - * @return String eg: - * "SPH1 testKey 51dcbaf5a9323daed24c0cdc5bb5d344f321aa84435b64e5da3d8f6c49370532" - */ - createSignature(method, uri, keyValues, body) { - return this.signatureScheme + ' ' + this.secretKeyId + ' ' + this.sign(method, uri, keyValues, body); - } - /** - * Create signature String from the actual parameters - * - * @param method - * @param uri - * @param keyValues - * @param body - * @return String signature - */ - sign(method, uri, keyValues, body) { - const stringToSign = method + '\n' + uri + '\n' + this.createKeyValString(keyValues) + '\n' + body.trim(); - const hmac = Crypto.createHmac(this.algorithm, this.secretKey).update(stringToSign).digest('hex'); - return hmac.toLowerCase(); - } - /** - * Signature is formed from parameters that start with "sph-" Therefore we - * remove other parameters from the signature param set. - * - * @param keyValues - * @returns string - */ - createKeyValString(keyValues) { - return keyValues.filter((x) => { - return x.first.toLowerCase().startsWith('sph-'); - }).sort((k1, k2) => { - if (k1.first > k2.first) { - return 1; - } - if (k1.first < k2.first) { - return -1; - } - return 0; - }).map((x) => { - return x.first.toLowerCase() + ':' + x.second; - }).join('\n'); - } - /** - * Validates the response by checking the provided signature against the calculated one. - * - * @param method HTTP METHOD e.g. POST or GET - * @param uri The request URI - * @param keyValues The key value pairs of headers or request parameters - * @param content The body content - * @return boolean true if signature is found and matches the calculated one - */ - validateSignature(method, uri, keyValues, content) { - const keyValArray = this.parseKeyValues(keyValues); - const receivedSignature = keyValArray.find((x) => { - return x.first.toLowerCase() === 'signature'; - }).second; - if (typeof receivedSignature === 'undefined') { - return false; - } - const createdSignature = this.createSignature(method, uri, keyValArray, content); - return receivedSignature === createdSignature; - } - /** - * Validates the response redirection by checking the provided signature against the calculated one. - * @param keyValues The request parameters from the redirection - * @return boolean - */ - validateFormRedirect(keyValues) { - return this.validateSignature('GET', '', keyValues, ''); - } - parseKeyValues(keyValues) { - return _.transform(keyValues, (result, value, key) => { - result.push(new Pair_1.Pair(key, value)); - return result; - }, []); - } -} -exports.SecureSigner = SecureSigner; -//# sourceMappingURL=SecureSigner.js.map \ No newline at end of file diff --git a/js/src/security/SecureSigner.js.map b/js/src/security/SecureSigner.js.map deleted file mode 100644 index b79806c..0000000 --- a/js/src/security/SecureSigner.js.map +++ /dev/null @@ -1 +0,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B;QAChD,OAAO,CAAC,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC,MAA8B,EAAE,KAAa,EAAE,GAAW,EAAE,EAAE;YACzF,MAAM,CAAC,IAAI,CAAC,IAAI,WAAI,CAAiB,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;YAClD,OAAO,MAAM,CAAC;QAClB,CAAC,EAAE,EAAE,CAAC,CAAC;IACX,CAAC;CAEJ;AAnGD,oCAmGC"} \ No newline at end of file diff --git a/js/src/util/Header.d.ts b/js/src/util/Header.d.ts deleted file mode 100644 index 38afded..0000000 --- a/js/src/util/Header.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -interface Header { - [key: string]: any; -} diff --git a/js/src/util/Header.js b/js/src/util/Header.js deleted file mode 100644 index 20eabdf..0000000 --- a/js/src/util/Header.js +++ /dev/null @@ -1 +0,0 @@ -//# sourceMappingURL=Header.js.map \ No newline at end of file diff --git a/js/src/util/Header.js.map b/js/src/util/Header.js.map deleted file mode 100644 index 61266d4..0000000 --- a/js/src/util/Header.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../ts/src/util/Header.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/util/Method.d.ts b/js/src/util/Method.d.ts deleted file mode 100644 index 0b35b24..0000000 --- a/js/src/util/Method.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare type Method = 'POST' | 'GET'; diff --git a/js/src/util/Method.js b/js/src/util/Method.js deleted file mode 100644 index bdb7559..0000000 --- a/js/src/util/Method.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Method.js.map \ No newline at end of file diff --git a/js/src/util/Method.js.map b/js/src/util/Method.js.map deleted file mode 100644 index a47f9a6..0000000 --- a/js/src/util/Method.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Method.js","sourceRoot":"","sources":["../../../ts/src/util/Method.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/js/src/util/Pair.d.ts b/js/src/util/Pair.d.ts deleted file mode 100644 index 46c92ec..0000000 --- a/js/src/util/Pair.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare class Pair { - first: T1; - second: T2; - constructor(first: T1, second: T2); -} diff --git a/js/src/util/Pair.js b/js/src/util/Pair.js deleted file mode 100644 index 9875b47..0000000 --- a/js/src/util/Pair.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Pair = void 0; -class Pair { - constructor(first, second) { - this.first = first; - this.second = second; - } -} -exports.Pair = Pair; -//# sourceMappingURL=Pair.js.map \ No newline at end of file diff --git a/js/src/util/Pair.js.map b/js/src/util/Pair.js.map deleted file mode 100644 index 5664ffd..0000000 --- a/js/src/util/Pair.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Pair.js","sourceRoot":"","sources":["../../../ts/src/util/Pair.ts"],"names":[],"mappings":";;;AAAA,MAAa,IAAI;IACb,YAAmB,KAAS,EAAS,MAAU;QAA5B,UAAK,GAAL,KAAK,CAAI;QAAS,WAAM,GAAN,MAAM,CAAI;IAC/C,CAAC;CACJ;AAHD,oBAGC"} \ No newline at end of file diff --git a/js/tests/FormBuilderTest.d.ts b/js/tests/FormBuilderTest.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/js/tests/FormBuilderTest.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/js/tests/FormBuilderTest.js b/js/tests/FormBuilderTest.js deleted file mode 100644 index e9f0d6f..0000000 --- a/js/tests/FormBuilderTest.js +++ /dev/null @@ -1,441 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chai_1 = require("chai"); -const __1 = require(".."); -const FormConnection_1 = require("./helpers/FormConnection"); -const __2 = require(".."); -const URI = require("urijs"); -const __3 = require(".."); -const __4 = require(".."); -const __5 = require(".."); -const puppeteer = require("puppeteer"); -chai_1.use(require('chai-string')); -const method = 'POST'; -const signatureKeyId = 'testKey'; -const signatureSecret = 'testSecret'; -const account = 'test'; -const merchant = 'test_merchantId'; -const baseUrl = 'https://v1-hub-staging.sph-test-solinor.com'; -const successUrl = 'https://example.com/success'; -const failureUrl = 'https://example.com/failure'; -const cancelUrl = 'https://example.com/cancel'; -const language = 'EN'; -const amount = 9999; -const currency = 'EUR'; -const orderId = '1000123A'; -const description = 'order description'; -const sphAccount = 'test'; -const sphMerchant = 'test_merchantId'; -const webhookSuccessUrl = 'http://example.com/?q=success'; -const webhookFailureUrl = 'http://example.com/?q=failure'; -const webhookCancelUrl = 'http://example.com/?q=cancel'; -const webhookDelay = 0; -let formBuilder; -let ss; -let cardToken; -beforeEach(() => { - ss = new __3.SecureSigner(signatureKeyId, signatureSecret); - formBuilder = new __1.FormBuilder(method, signatureKeyId, signatureSecret, account, merchant, baseUrl); -}); -function testRedirectResponse(response, locationEndsWith) { - chai_1.assert(response.statusCode === 303, 'Response status code should be 303, got ' + response.statusCode); - chai_1.assert.endsWith(response.headers.location, locationEndsWith, 'Response should return location to form.'); -} -function testNameValuePairs(nameValuePairs, rightAmount) { - chai_1.assert(nameValuePairs.length === rightAmount, 'Should have ' + rightAmount + ' name value pairs. Got ' + nameValuePairs.length); -} -function testWebhookNameValuePairs(nameValuePairs, skipDelayTest) { - const testSuccessUrl = nameValuePairs.find((x) => x.first === 'sph-webhook-success-url').second; - chai_1.assert(testSuccessUrl === webhookSuccessUrl, 'sph-webhook-success-url should be ' + webhookSuccessUrl + 'got ' + testSuccessUrl); - const testFailureUrl = nameValuePairs.find((x) => x.first === 'sph-webhook-failure-url').second; - chai_1.assert(testFailureUrl === webhookFailureUrl, 'sph-webhook-failure-url should be ' + webhookFailureUrl + 'got ' + testFailureUrl); - const testCancelUrl = nameValuePairs.find((x) => x.first === 'sph-webhook-cancel-url').second; - chai_1.assert(testCancelUrl === webhookCancelUrl, 'sph-webhook-cancel-url should be ' + webhookCancelUrl + 'got ' + testCancelUrl); - if (typeof skipDelayTest === 'undefined') { - const testDelay = nameValuePairs.find((x) => x.first === 'sph-webhook-delay').second; - chai_1.assert(testDelay === webhookDelay.toString(), 'sph-webhook-delay should be ' + webhookDelay + 'got ' + testDelay); - } -} -function assertNameValuePair(nameValuePairs, key, value) { - const element = nameValuePairs.find((pair) => { - return pair.first === key; - }); - chai_1.assert(element.second === value); -} -const hubHostname = URI.parse(baseUrl).hostname; -let hubServerRegexp; -describe('Form builder', () => { - before(() => { - hubServerRegexp = new RegExp('^https:\\/\\/(([^.]+).cloudfront.net|' + hubHostname + ').*'); - }); - it('Should have instance of FormBuilder', () => { - chai_1.assert.instanceOf(formBuilder, __1.FormBuilder, 'Was not instance of FormBuilder'); - }); - it('Should have right parameters', () => { - const formContainer = formBuilder.generateAddCardParameters(successUrl, failureUrl, cancelUrl, language); - testNameValuePairs(formContainer.nameValuePairs, 10); - chai_1.assert(formContainer.getAction() === baseUrl + '/form/view/add_card', 'Action url should be ' + baseUrl + '/form/view/add_card' + - ' got ' + formContainer.getAction()); - }); - const abortWhenNonHubUrl = (request) => { - if (hubServerRegexp.test(request.url())) { - return request.continue(); - } - else { - return request.abort(); - } - }; - const emptyOkWhenNonHubUrl = (request) => { - if (hubServerRegexp.test(request.url())) { - return request.continue(); - } - else { - return request.respond({ - status: 200, - contentType: 'text/plain', - body: 'OK (empty body does not work!)' - }); - } - }; - it('Test tokenize', (done) => { - const formContainer = formBuilder.generateAddCardParameters(successUrl, failureUrl, cancelUrl, language); - const paymentAPI = new __2.PaymentAPI(baseUrl, signatureKeyId, signatureSecret, sphAccount, sphMerchant); - FormConnection_1.FormConnection.postForm(formContainer) - .then((response) => { - chai_1.assert(response.statusCode === 303, 'Response status code should be 303, got ' + response.statusCode); - return puppeteer - .launch({ args: ['--no-sandbox'] }) - .then((browser) => { - return browser.newPage().then((page) => { - return page.setRequestInterception(true) - .then(() => page.on('request', abortWhenNonHubUrl)) - .then(() => Promise.all([ - page.waitForNavigation({ waitUntil: 'networkidle0' }), - page.goto(baseUrl + response.headers.location, { waitUntil: 'load' }) - ])) - .then(() => Promise.all([ - page.type('input[name=card_number_formatted]', '4153 0139 9970 0024') - .then(() => page.type('input[name=expiry]', '11 / 23')) - .then(() => page.type('input[name=cvv]', '024')), - // Waiting card logo!!! - page.waitForResponse(response => response.url().includes('visa_pos_fc.png') && response.status() === 200) - ])) - .then(() => page.screenshot({ path: 'example.png' })) - .then(() => page.removeListener('request', abortWhenNonHubUrl) - // required for page.click and returning non 404 - .on('request', emptyOkWhenNonHubUrl)) - .then(() => { - return Promise - .all([ - page.waitForRequest(request => { - return request.url().startsWith('https://example.com'); - }), - page.click('button[type=submit]') - ]).then(([request, _]) => { - chai_1.assert.isTrue(request.url().startsWith(successUrl), 'Final request url didn\'t start with ' + successUrl); - const uri = URI.parse(request.url()); - const parameters = URI.parseQuery(uri.query); - chai_1.assert.isTrue(ss.validateFormRedirect(parameters), 'Validate redirect should return true'); - return paymentAPI - .tokenization(parameters['sph-tokenization-id']) - .then((tokenResponse) => { - chai_1.assert(tokenResponse.card.expire_year === '2023', 'Expire year should be 2023'); - chai_1.assert(tokenResponse.card.expire_month === '11', 'Expire month should be 11'); - chai_1.assert(tokenResponse.card.type === 'Visa', 'Card type should be Visa'); - chai_1.assert(tokenResponse.card.cvc_required === 'no', 'Should not require CVC'); - cardToken = tokenResponse.card_token; - return cardToken; - }); - }); - }); - }).then(result => { - return browser.close().then(() => result); - }, error => { - return browser.close().then(() => chai_1.assert.ifError(error)); - }); - }); - }) - .then(() => { done(); }, error => { - done(error); - }); - }); - it('Test with acceptCvcRequired set to false.', () => { - const acceptCvcRequired = false; - const formContainer = formBuilder.generateAddCardParameters(successUrl, failureUrl, cancelUrl, language, acceptCvcRequired); - const signature = formContainer.nameValuePairs.find((x) => x.first === 'signature'); - chai_1.assert.isNotNull(signature, 'Form signature should not be null'); - chai_1.assert.startsWith(signature.second, 'SPH1', 'Signature should start with "SPH1"'); - return FormConnection_1.FormConnection.postForm(formContainer) - .then((response) => { - testRedirectResponse(response, '/tokenize'); - }); - }); - it('Test with acceptCvcRequired set to true.', () => { - const acceptCvcRequired = false; - const formContainer = formBuilder.generateAddCardParameters(successUrl, failureUrl, cancelUrl, language, acceptCvcRequired); - const signature = formContainer.nameValuePairs.find((x) => x.first === 'signature'); - chai_1.assert.isNotNull(signature, 'Form signature should not be null'); - chai_1.assert.startsWith(signature.second, 'SPH1', 'Signature should start with "SPH1"'); - return FormConnection_1.FormConnection.postForm(formContainer) - .then((response) => { - testRedirectResponse(response, '/tokenize'); - }); - }); - it('Test add card with all parameters', () => { - const acceptCvcRequired = true; - const skipFormNotifications = true; - const exitIframeOnResult = true; - const exitIframeOn3ds = true; - const use3ds = true; - const formContainer = formBuilder.generateAddCardParameters(successUrl, failureUrl, cancelUrl, language, acceptCvcRequired, skipFormNotifications, exitIframeOnResult, exitIframeOn3ds, use3ds); - testNameValuePairs(formContainer.nameValuePairs, 15); - return FormConnection_1.FormConnection.postForm(formContainer) - .then((response) => { - testRedirectResponse(response, '/tokenize'); - }); - }); - it('Test add card with only 3ds', () => { - const acceptCvcRequired = undefined; - const skipFormNotifications = undefined; - const exitIframeOnResult = undefined; - const exitIframeOn3ds = undefined; - const use3ds = true; - const formContainer = formBuilder.generateAddCardParameters(successUrl, failureUrl, cancelUrl, language, acceptCvcRequired, skipFormNotifications, exitIframeOnResult, exitIframeOn3ds, use3ds); - testNameValuePairs(formContainer.nameValuePairs, 11); - chai_1.assert(formContainer.nameValuePairs.find((x) => x.first === 'sph-use-three-d-secure').second === 'true', 'sph-use-three-d-secure should be true'); - return FormConnection_1.FormConnection.postForm(formContainer) - .then((response) => { - testRedirectResponse(response, '/tokenize'); - }); - }); - it('Test mandatory payment parameters ', () => { - const formContainer = formBuilder.generatePaymentParameters(successUrl, failureUrl, cancelUrl, language, amount, currency, orderId, description); - testNameValuePairs(formContainer.nameValuePairs, 14); - chai_1.assert(formContainer.nameValuePairs.find((x) => x.first === 'description').second === description, 'Description should be same than given description'); - return FormConnection_1.FormConnection.postForm(formContainer) - .then((response) => { - testRedirectResponse(response, '/payment'); - }); - }); - it('Test optional payment parameters', () => { - const skipFormNotifications = true; - const exitIframeOnResult = true; - const exitIframeOn3ds = true; - const use3ds = true; - const referenceNumber = '1313'; - const formContainer = formBuilder.generatePaymentParameters(successUrl, failureUrl, cancelUrl, language, amount, currency, orderId, description, skipFormNotifications, exitIframeOnResult, exitIframeOn3ds, use3ds, undefined, undefined, undefined, undefined, referenceNumber); - testNameValuePairs(formContainer.nameValuePairs, 19); - return FormConnection_1.FormConnection.postForm(formContainer) - .then((response) => { - testRedirectResponse(response, '/payment'); - }); - }); - it('Test splitting parameters for pay single', () => { - const splittingMerchant = 123; - const splittingAmount = 20; - const formContainer = formBuilder.generatePaymentParameters(successUrl, failureUrl, cancelUrl, language, amount, currency, orderId, description, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, splittingMerchant, splittingAmount); - testNameValuePairs(formContainer.nameValuePairs, 16); - }); - it('Test mandatory PayWithTokenAndCvc parameters', () => { - chai_1.assert(cardToken !== undefined, 'Token isn\'t resolved yet'); - const formContainer = formBuilder.generatePayWithTokenAndCvcParameters(cardToken, successUrl, failureUrl, cancelUrl, language, amount, currency, orderId, description); - testNameValuePairs(formContainer.nameValuePairs, 15); - return FormConnection_1.FormConnection.postForm(formContainer) - .then((response) => { - testRedirectResponse(response, '/payment_with_token_and_cvc'); - }); - }); - it('Test optional PayWithTokenAndCvc parameters', () => { - chai_1.assert(cardToken !== undefined, 'Token isn\'t resolved yet'); - const skipFormNotifications = true; - const exitIframeOnResult = true; - const exitIframeOn3ds = true; - const use3ds = true; - const formContainer = formBuilder.generatePayWithTokenAndCvcParameters(cardToken, successUrl, failureUrl, cancelUrl, language, amount, currency, orderId, description, skipFormNotifications, exitIframeOnResult, exitIframeOn3ds, use3ds); - testNameValuePairs(formContainer.nameValuePairs, 19); - return FormConnection_1.FormConnection.postForm(formContainer) - .then((response) => { - testRedirectResponse(response, '/payment_with_token_and_cvc'); - }); - }); - it('Test splitting parameters for PayWithTokenAndCvc', () => { - const splittingMerchant = 123; - const splittingAmount = 20; - const formContainer = formBuilder.generatePayWithTokenAndCvcParameters(cardToken, successUrl, failureUrl, cancelUrl, language, amount, currency, orderId, description, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, splittingMerchant, splittingAmount); - testNameValuePairs(formContainer.nameValuePairs, 17); - }); - it('Test add card and payment parameters with mandatory parameters', () => { - const formContainer = formBuilder.generateAddCardAndPaymentParameters(successUrl, failureUrl, cancelUrl, language, amount, currency, orderId, description); - testNameValuePairs(formContainer.nameValuePairs, 14); - return FormConnection_1.FormConnection.postForm(formContainer) - .then((response) => { - testRedirectResponse(response, '/payment'); - }); - }); - it('Test add card and payment parameters with optional parameters', () => { - const skipFormNotifications = true; - const exitIframeOnResult = true; - const exitIframeOn3ds = true; - const use3ds = true; - const formContainer = formBuilder.generateAddCardAndPaymentParameters(successUrl, failureUrl, cancelUrl, language, amount, currency, orderId, description, skipFormNotifications, exitIframeOnResult, exitIframeOn3ds, use3ds); - testNameValuePairs(formContainer.nameValuePairs, 18); - return FormConnection_1.FormConnection.postForm(formContainer) - .then((response) => { - testRedirectResponse(response, '/payment'); - }); - }); - it('Test splitting parameters for add card and payment', () => { - const splittingMerchant = 123; - const splittingAmount = 20; - const formContainer = formBuilder.generateAddCardAndPaymentParameters(successUrl, failureUrl, cancelUrl, language, amount, currency, orderId, description, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, splittingMerchant, splittingAmount); - testNameValuePairs(formContainer.nameValuePairs, 16); - }); - it('Test mobilepay form with mandatory parameters', () => { - const formContainer = formBuilder.generatePayWithMobilePayParameters(successUrl, failureUrl, cancelUrl, language, amount, currency, orderId, description); - testNameValuePairs(formContainer.nameValuePairs, 14); - return FormConnection_1.FormConnection.postForm(formContainer) - .then((response) => { - chai_1.assert(response.statusCode === 303, 'Response status code should be 303, got ' + response.statusCode); - chai_1.assert.match(response.headers.location, /https:\/\/sandprod-products.mobilepay.dk.*/, 'unexpected redirect location ' + response.headers.location); - }); - }); - it('Test MobilePay form with optional parameters', () => { - const formContainer = formBuilder.generatePayWithMobilePayParameters(successUrl, failureUrl, cancelUrl, language, amount, currency, orderId, description, true, 'https://foo.bar', '+35844123465', 'Jaskan kello', '12345678', 'submerchantName'); - testNameValuePairs(formContainer.nameValuePairs, 20); - return FormConnection_1.FormConnection.postForm(formContainer).then((response) => { - chai_1.assert(response.statusCode === 303, 'Response status code should be 303, got ' + response.statusCode); - chai_1.assert.match(response.headers.location, /https:\/\/sandprod-products.mobilepay.dk.*/, 'unexpected redirect location ' + response.headers.location); - }); - }); - it('Test splitting parameters for MobilePay', () => { - const splittingMerchant = 123; - const splittingAmount = 20; - const formContainer = formBuilder.generatePayWithMobilePayParameters(successUrl, failureUrl, cancelUrl, language, amount, currency, orderId, description, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, splittingMerchant, splittingAmount); - testNameValuePairs(formContainer.nameValuePairs, 16); - }); - it('Test 3ds PayWithTokenAndCvc parameters', () => { - chai_1.assert(cardToken !== undefined, 'Token isn\'t resolved yet'); - const skipFormNotifications = false; - const exitIframeOnResult = undefined; - const exitIframeOn3ds = false; - const use3ds = true; - const formContainer = formBuilder.generatePayWithTokenAndCvcParameters(cardToken, successUrl, failureUrl, cancelUrl, language, amount, currency, orderId, description, skipFormNotifications, exitIframeOnResult, exitIframeOn3ds, use3ds); - testNameValuePairs(formContainer.nameValuePairs, 18); - return FormConnection_1.FormConnection.postForm(formContainer) - .then((response) => { - testRedirectResponse(response, '/payment_with_token_and_cvc'); - }); - }); - it('Test token debit', () => { - chai_1.assert(cardToken !== undefined, 'Token isn\'t resolved yet'); - const paymentAPI = new __2.PaymentAPI(baseUrl, signatureKeyId, signatureSecret, sphAccount, sphMerchant); - let initResponse; - const testCardToken = new __5.Token(cardToken); - return paymentAPI.initTransaction().then((response) => { - initResponse = response; - const transactionRequest = new __4.TransactionRequest(testCardToken, 9999, 'USD', orderId); - return paymentAPI.debitTransaction(initResponse.id, transactionRequest); - }).then((debitResponse) => { - chai_1.assert(debitResponse.result.code === 100, 'Request should succeed with code 100, complete response was: ' + JSON.stringify(debitResponse)); - chai_1.assert(debitResponse.result.message === 'OK', 'Request should succeed with message "OK", complete response was: ' + JSON.stringify(debitResponse)); - }); - }); - it('Test add card webhook parameters', () => { - const formContainer = formBuilder.generateAddCardParameters(successUrl, failureUrl, cancelUrl, language, undefined, undefined, undefined, undefined, undefined, webhookSuccessUrl, webhookFailureUrl, webhookCancelUrl, webhookDelay); - testNameValuePairs(formContainer.nameValuePairs, 14); - testWebhookNameValuePairs(formContainer.nameValuePairs); - }); - it('Test payment webhook parameters', () => { - const formContainer = formBuilder.generatePaymentParameters(successUrl, failureUrl, cancelUrl, language, amount, currency, orderId, description, undefined, undefined, undefined, undefined, webhookSuccessUrl, webhookFailureUrl, webhookCancelUrl, webhookDelay); - testNameValuePairs(formContainer.nameValuePairs, 18); - testWebhookNameValuePairs(formContainer.nameValuePairs); - }); - it('Test add card and payment webhook parameters', () => { - const formContainer = formBuilder.generateAddCardAndPaymentParameters(successUrl, failureUrl, cancelUrl, language, amount, currency, orderId, description, undefined, undefined, undefined, undefined, webhookSuccessUrl, webhookFailureUrl, webhookCancelUrl, webhookDelay); - testNameValuePairs(formContainer.nameValuePairs, 18); - testWebhookNameValuePairs(formContainer.nameValuePairs); - }); - it('Test pay with token and cvc webhook parameters', () => { - const token = '123'; - const formContainer = formBuilder.generatePayWithTokenAndCvcParameters(token, successUrl, failureUrl, cancelUrl, language, amount, currency, orderId, description, undefined, undefined, undefined, undefined, webhookSuccessUrl, webhookFailureUrl, webhookCancelUrl, webhookDelay); - testNameValuePairs(formContainer.nameValuePairs, 19); - testWebhookNameValuePairs(formContainer.nameValuePairs); - }); - it('Test mobilepay webhook parameters', () => { - const formContainer = formBuilder.generatePayWithMobilePayParameters(successUrl, failureUrl, cancelUrl, language, amount, currency, orderId, description, undefined, undefined, undefined, undefined, undefined, undefined, webhookSuccessUrl, webhookFailureUrl, webhookCancelUrl, webhookDelay); - testNameValuePairs(formContainer.nameValuePairs, 18); - testWebhookNameValuePairs(formContainer.nameValuePairs); - }); - it('Test webhook parameters without delay', () => { - const formContainer = formBuilder.generatePaymentParameters(successUrl, failureUrl, cancelUrl, language, amount, currency, orderId, description, undefined, undefined, undefined, undefined, webhookSuccessUrl, webhookFailureUrl, webhookCancelUrl); - testNameValuePairs(formContainer.nameValuePairs, 17); - testWebhookNameValuePairs(formContainer.nameValuePairs, true); - }); - it('Test pivo mandatory parameters', () => { - const formContainer = formBuilder.generatePivoParameters(successUrl, failureUrl, cancelUrl, language, amount, orderId, description); - testNameValuePairs(formContainer.nameValuePairs, 14); - return FormConnection_1.FormConnection.postForm(formContainer) - .then((response) => { - chai_1.assert(response.statusCode === 303, 'Response status code should be 303, got ' + response.statusCode); - chai_1.assert.match(response.headers.location, /https:\/\/qa-maksu.pivo.fi\/api\/payments\//, 'unexpected redirect location ' + response.headers.location); - }); - }); - it('Test pivo optional parameters', () => { - const phoneNumber = '+358444160589'; - const referenceNumber = '1313'; - const appUrl = 'myapp://url'; - const formContainer = formBuilder.generatePivoParameters(successUrl, failureUrl, cancelUrl, language, amount, orderId, description, referenceNumber, phoneNumber, appUrl); - testNameValuePairs(formContainer.nameValuePairs, 17); - assertNameValuePair(formContainer.nameValuePairs, 'sph-phone-number', phoneNumber); - assertNameValuePair(formContainer.nameValuePairs, 'sph-reference-number', referenceNumber); - assertNameValuePair(formContainer.nameValuePairs, 'sph-app-url', appUrl); - return FormConnection_1.FormConnection.postForm(formContainer) - .then((response) => { - chai_1.assert(response.statusCode === 303, 'Response status code should be 303, got ' + response.statusCode); - chai_1.assert.match(response.headers.location, /https:\/\/qa-maksu.pivo.fi\/api\/payments\//, 'unexpected redirect location: ' + response.headers.location); - }); - }); - it('Test splitting parameters for Pivo', () => { - const splittingMerchant = 123; - const splittingAmount = 20; - const formContainer = formBuilder.generatePivoParameters(successUrl, failureUrl, cancelUrl, language, amount, orderId, description, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, splittingMerchant, splittingAmount); - testNameValuePairs(formContainer.nameValuePairs, 16); - }); - it('Test pivo app url', () => { - const formContainer = formBuilder.generatePivoParameters(successUrl, failureUrl, cancelUrl, language, amount, orderId, description, '+358444160589', undefined, 'myapp://url'); - testNameValuePairs(formContainer.nameValuePairs, 16); - const actionUrl = '/form/view/pivo'; - chai_1.assert(formContainer.actionUrl === actionUrl, 'action url should be ' + actionUrl + 'got ' + formContainer.actionUrl); - }); - it('Test AfterPay mandatory parameters (API GONE)', () => { - const orderDescription = 'A walrus'; - const formContainer = formBuilder.generateAfterPayParameters(successUrl, failureUrl, cancelUrl, language, amount, orderId, description, orderDescription); - testNameValuePairs(formContainer.nameValuePairs, 15); - return FormConnection_1.FormConnection.postForm(formContainer) - .then((response) => { - chai_1.assert(response.statusCode === 303, 'Response status code should be 303, got ' + response.statusCode); - chai_1.assert.match(response.headers.location, /\.*failure.*API_IS_GONE.*/, 'unexpected redirect location ' + response.headers.location); - }); - }); - it('Test AfterPay with optional parameters (API GONE)', () => { - const orderDescription = 'A walrus'; - const socialSecurityNumber = '010868-998U'; - const emailAddress = 'test@testasdff.com'; - const referenceNumber = '1313'; - const formContainer = formBuilder.generateAfterPayParameters(successUrl, failureUrl, cancelUrl, language, amount, orderId, description, orderDescription, socialSecurityNumber, emailAddress, true, successUrl, failureUrl, cancelUrl, 0, referenceNumber); - testNameValuePairs(formContainer.nameValuePairs, 23); - return FormConnection_1.FormConnection.postForm(formContainer) - .then((response) => { - chai_1.assert(response.statusCode === 303, 'Response status code should be 303, got ' + response.statusCode); - chai_1.assert.match(response.headers.location, /\.*failure.*API_IS_GONE.*/, 'unexpected redirect location ' + response.headers.location); - }); - }); - it('Test splitting parameters for AfterPay', () => { - const orderDescription = 'A walrus'; - const splittingMerchant = 123; - const splittingAmount = 20; - const formContainer = formBuilder.generateAfterPayParameters(successUrl, failureUrl, cancelUrl, language, amount, orderId, description, orderDescription, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, splittingMerchant, splittingAmount); - testNameValuePairs(formContainer.nameValuePairs, 17); - }); -}); -//# sourceMappingURL=FormBuilderTest.js.map \ No newline at end of file diff --git a/js/tests/FormBuilderTest.js.map b/js/tests/FormBuilderTest.js.map deleted file mode 100644 index 19f1ab2..0000000 --- a/js/tests/FormBuilderTest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FormBuilderTest.js","sourceRoot":"","sources":["../../ts/tests/FormBuilderTest.ts"],"names":[],"mappings":";;AACA,+BAAiC;AACjC,0BAA+B;AAG/B,6DAAwD;AACxD,0BAA8B;AAC9B,6BAA6B;AAC7B,0BAAgC;AAEhC,0BAAsC;AACtC,0BAAyB;AAEzB,uCAAuC;AAEvC,UAAG,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;AAE5B,MAAM,MAAM,GAAW,MAAM,CAAC;AAC9B,MAAM,cAAc,GAAG,SAAS,CAAC;AACjC,MAAM,eAAe,GAAG,YAAY,CAAC;AACrC,MAAM,OAAO,GAAG,MAAM,CAAC;AACvB,MAAM,QAAQ,GAAG,iBAAiB,CAAC;AACnC,MAAM,OAAO,GAAG,6CAA6C,CAAC;AAC9D,MAAM,UAAU,GAAG,6BAA6B,CAAC;AACjD,MAAM,UAAU,GAAG,6BAA6B,CAAC;AACjD,MAAM,SAAS,GAAG,4BAA4B,CAAC;AAC/C,MAAM,QAAQ,GAAG,IAAI,CAAC;AACtB,MAAM,MAAM,GAAG,IAAI,CAAC;AACpB,MAAM,QAAQ,GAAG,KAAK,CAAC;AACvB,MAAM,OAAO,GAAG,UAAU,CAAC;AAC3B,MAAM,WAAW,GAAG,mBAAmB,CAAC;AACxC,MAAM,UAAU,GAAG,MAAM,CAAC;AAC1B,MAAM,WAAW,GAAG,iBAAiB,CAAC;AACtC,MAAM,iBAAiB,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Q,EAAE,2BAA2B,EAAE,+BAA+B,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QACtI,CAAC,CAAC,CAAC;IACX,CAAC,CAAC,CAAC;IAEH,EAAE,CAAE,wCAAwC,EAAE,GAAG,EAAE;QAC/C,MAAM,gBAAgB,GAAG,UAAU,CAAC;QACpC,MAAM,iBAAiB,GAAG,GAAG,CAAC;QAC9B,MAAM,eAAe,GAAG,EAAE,CAAC;QAC3B,MAAM,aAAa,GAAG,WAAW,CAAC,0BAA0B,CACxD,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAC3F,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAC1C,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,iBAAiB,EAAE,eAAe,CACjF,CAAC;QACF,kBAAkB,CAAC,aAAa,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;IACzD,CAAC,CAAC,CAAC;AAEP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/js/tests/PaymentAPITest.d.ts b/js/tests/PaymentAPITest.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/js/tests/PaymentAPITest.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/js/tests/SecureSignerTest.d.ts b/js/tests/SecureSignerTest.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/js/tests/SecureSignerTest.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/js/tests/SecureSignerTest.js b/js/tests/SecureSignerTest.js deleted file mode 100644 index ef6e031..0000000 --- a/js/tests/SecureSignerTest.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chai_1 = require("chai"); -const SecureSigner_1 = require("../src/security/SecureSigner"); -const Pair_1 = require("../src/util/Pair"); -const PaymentHighwayUtility_1 = require("../src/PaymentHighwayUtility"); -describe('Secure signer', () => { - it('Test create signature', () => { - const secretKeyId = 'account001-key001'; - const secretKey = 'account001-shared-secret001'; - const ss = new SecureSigner_1.SecureSigner(secretKeyId, secretKey); - const nameValuePairs = [ - new Pair_1.Pair('sph-api-version', '20151028'), - new Pair_1.Pair('sph-account', 'sampleAccount001'), - new Pair_1.Pair('sph-amount', '990'), - new Pair_1.Pair('sph-cancel-url', 'https://merchant.example.com/payment/cancel'), - new Pair_1.Pair('sph-currency', 'EUR'), - new Pair_1.Pair('sph-failure-url', 'https://merchant.example.com/payment/failure'), - new Pair_1.Pair('sph-merchant', 'sampleMerchant001'), - new Pair_1.Pair('sph-order', '1000123A'), - new Pair_1.Pair('sph-request-id', 'f47ac10b-58cc-4372-a567-0e02b2c3d479'), - new Pair_1.Pair('sph-success-url', 'https://merchant.example.com/payment/success'), - new Pair_1.Pair('sph-timestamp', PaymentHighwayUtility_1.PaymentHighwayUtility.getUtcTimestamp()), - new Pair_1.Pair('language', 'EN'), - new Pair_1.Pair('description', 'this is a description') - ]; - const formPaymentMethod = 'POST'; - const formPaymentUri = '/form/view/payment'; - const formPaymentBody = ''; - const sig = ss.createSignature(formPaymentMethod, formPaymentUri, nameValuePairs, formPaymentBody); - chai_1.assert(sig.indexOf(secretKeyId) !== -1, 'signature does not contain secret key id'); - }); -}); -//# sourceMappingURL=SecureSignerTest.js.map \ No newline at end of file diff --git a/js/tests/SecureSignerTest.js.map b/js/tests/SecureSignerTest.js.map deleted file mode 100644 index a7eed8f..0000000 --- a/js/tests/SecureSignerTest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SecureSignerTest.js","sourceRoot":"","sources":["../../ts/tests/SecureSignerTest.ts"],"names":[],"mappings":";;AAAA,+BAA4B;AAC5B,+DAA0D;AAC1D,2CAAsC;AACtC,wEAAmE;AAGnE,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,uBAAuB,EAAE,GAAG,EAA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CAAC"} \ No newline at end of file diff --git a/js/tests/helpers/FormConnection.d.ts b/js/tests/helpers/FormConnection.d.ts deleted file mode 100644 index 891cf88..0000000 --- a/js/tests/helpers/FormConnection.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { CancelableRequest, Response as GotResponse } from 'got'; -import { FormContainer } from '../../src/FormContainer'; -export declare class FormConnection { - static postForm(container: FormContainer): CancelableRequest>; -} diff --git a/js/tests/helpers/FormConnection.js b/js/tests/helpers/FormConnection.js deleted file mode 100644 index d3bd580..0000000 --- a/js/tests/helpers/FormConnection.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FormConnection = void 0; -const got_1 = require("got"); -const PaymentAPI_1 = require("../../src/PaymentAPI"); -class FormConnection { - static postForm(container) { - let method = 'POST'; - const options = { - method: method, - url: container.getAction(), - followRedirect: false, - form: container.nameValuePairs.reduce((prev, cur) => { - prev[cur.first] = cur.second; - return prev; - }, {}), - headers: { - 'User-Agent': PaymentAPI_1.PaymentAPI.USER_AGENT - }, - timeout: { - request: 30000 - } - }; - return got_1.default(options); - } -} -exports.FormConnection = FormConnection; -//# sourceMappingURL=FormConnection.js.map \ No newline at end of file diff --git a/js/tests/helpers/FormConnection.js.map b/js/tests/helpers/FormConnection.js.map deleted file mode 100644 index ff45957..0000000 --- a/js/tests/helpers/FormConnection.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FormConnection.js","sourceRoot":"","sources":["../../../ts/tests/helpers/FormConnection.ts"],"names":[],"mappings":";;;AAAA,6BAAoE;AAEpE,qDAAgD;AAIhD,MAAa,cAAc;IAEhB,MAAM,CAAC,QAAQ,CAAC,SAAwB;QAC3C,IAAI,MAAM,GAAW,MAAM,CAAC;QAE5B,MAAM,OAAO,GAAG;YACZ,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,SAAS,CAAC,SAAS,EAAE;YAC1B,cAAc,EAAE,KAAK;YACrB,IAAI,EAAE,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,IAAS,EAAE,GAAyB,EAAE,EAAE;gBAC3E,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC;gBAC7B,OAAO,IAAI,CAAC;YAChB,CAAC,EAAE,EAAE,CAAC;YACN,OAAO,EAAE;gBACL,YAAY,EAAE,uBAAU,CAAC,UAAU;aACtC;YACD,OAAO,EAAE;gBACL,OAAO,EAAE,KAAK;aACjB;SACJ,CAAC;QAEF,OAAO,aAAG,CAAC,OAAO,CAAC,CAAC;IACxB,CAAC;CACJ;AAvBD,wCAuBC"} \ No newline at end of file diff --git a/package.json b/package.json index dd4dc48..430b0a9 100644 --- a/package.json +++ b/package.json @@ -6,13 +6,14 @@ "main": "./js/index.js", "types": "./js/index.d.ts", "scripts": { - "preversion": "npm run generate-barrels && npm run compile && npm test", - "precompile": "npm run clean", "compile": "tsc", - "test": "set NODE_ENV=test && mocha -t 20000 -R spec js/tests --grep @external --invert", - "test-all": "set NODE_ENV=test && mocha -t 20000 -R spec js/tests", - "coverage": "nyc mocha -t 20000 -R spec js/tests", + "test": "set NODE_ENV=test && mocha -t 20000 -R spec -r ts-node/register ts/tests/**/*Test.ts --grep @external --invert", + "test-all": "set NODE_ENV=test && mocha -t 20000 -R spec -r ts-node/register ts/tests/**/*Test.ts", + "coverage": "nyc mocha -t 20000 -R spec -r ts-node/register ts/tests/**/*Test.ts", "clean": "rm -rf js/", + "prebuild": "npm run clean", + "build": "tsc", + "prepublish": "npm run generate-barrels && npm run build && npm test", "lint": "tslint ts/**/*.ts", "pre-commit": "npm run lint", "generate-barrels": "barrelsby --delete -d ts -q -e response/* -e tests/* -e util/*" @@ -32,9 +33,9 @@ "@types/node": "^16.4.5", "@types/urijs": "^1.19.16", "@types/uuid": "^8.3.1", + "got": "^11.8.2", "lodash": "^4.17.21", "moment": "^2.29.1", - "got": "^11.8.2", "uuid": "^8.3.2" }, "engines": { @@ -52,6 +53,7 @@ "mocha": "^9.0.3", "nyc": "^15.1.0", "puppeteer": "5.5.0", + "ts-node": "^10.9.1", "tslint": "^5.20.1", "tslint-microsoft-contrib": "^5.2.1", "typescript": "^3.8.3", diff --git a/ts/src/PaymentAPI.ts b/ts/src/PaymentAPI.ts index 7386a32..78a8b95 100644 --- a/ts/src/PaymentAPI.ts +++ b/ts/src/PaymentAPI.ts @@ -31,6 +31,7 @@ import {Request} from './model/request/PhRequest'; import {PivoInitRequest} from './model/request/PivoInitRequest'; import {PivoInitResponse} from './model/response/PivoInitResponse'; import {FormSessionStatusResponse} from './model/response/FormSessionStatusResponse'; +import {Header} from './util/Header'; /** * Payment Highway Payment API Service. diff --git a/ts/src/util/Header.ts b/ts/src/util/Header.ts index 38afded..4cd5d2d 100644 --- a/ts/src/util/Header.ts +++ b/ts/src/util/Header.ts @@ -1,3 +1,3 @@ -interface Header { +export interface Header { [key: string]: any; }