moneris-checkout
Advanced tools
Comparing version 0.1.3 to 0.1.4
/// <reference types="node" /> | ||
import https from "https"; | ||
import { EnvironmentType } from "types/global"; | ||
import { OptionalPreloadRequestInterface } from "types/preload/request"; | ||
import PreloadResponseInterface from "types/preload/response"; | ||
import ReceiptResponseInterface from "types/receipt/response"; | ||
import { EnvironmentType } from "./types/global"; | ||
import { OptionalPreloadRequestInterface } from "./types/preload/request"; | ||
import PreloadResponseInterface from "./types/preload/response"; | ||
import ReceiptResponseInterface from "./types/receipt/response"; | ||
export default class MonerisCheckout { | ||
@@ -8,0 +8,0 @@ private storeID; |
@@ -16,3 +16,3 @@ "use strict"; | ||
const https_1 = __importDefault(require("https")); | ||
const global_1 = require("types/global"); | ||
const global_1 = require("./types/global"); | ||
class MonerisCheckout { | ||
@@ -19,0 +19,0 @@ constructor(storeID, apiToken, checkoutID, environment = global_1.EnvironmentType.TEST) { |
@@ -17,4 +17,4 @@ "use strict"; | ||
require("mocha"); | ||
const moneris_checkout_1 = __importDefault(require("moneris-checkout")); | ||
const global_1 = require("types/global"); | ||
const moneris_checkout_1 = __importDefault(require("../moneris-checkout")); | ||
const global_1 = require("../types/global"); | ||
describe("MonerisCheckout", () => { | ||
@@ -21,0 +21,0 @@ const moneris = new moneris_checkout_1.default("moneris", "hurgle", "chkt5BF66neris", global_1.EnvironmentType.TEST); |
import { RequiredPreloadRequestInterface, OptionalPreloadRequestInterface } from "./preload"; | ||
export * from "types/preload/request/billing"; | ||
export * from "types/preload/request/cart"; | ||
export * from "types/preload/request/contact"; | ||
export * from "types/preload/request/recur"; | ||
export * from "types/preload/request/shipping"; | ||
export * from "types/preload/request/preload"; | ||
export * from "./billing"; | ||
export * from "./cart"; | ||
export * from "./contact"; | ||
export * from "./recur"; | ||
export * from "./shipping"; | ||
export * from "./preload"; | ||
export default interface PreloadRequestInterface extends RequiredPreloadRequestInterface, OptionalPreloadRequestInterface { | ||
} |
@@ -13,8 +13,8 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("types/preload/request/billing"), exports); | ||
__exportStar(require("types/preload/request/cart"), exports); | ||
__exportStar(require("types/preload/request/contact"), exports); | ||
__exportStar(require("types/preload/request/recur"), exports); | ||
__exportStar(require("types/preload/request/shipping"), exports); | ||
__exportStar(require("types/preload/request/preload"), exports); | ||
__exportStar(require("./billing"), exports); | ||
__exportStar(require("./cart"), exports); | ||
__exportStar(require("./contact"), exports); | ||
__exportStar(require("./recur"), exports); | ||
__exportStar(require("./shipping"), exports); | ||
__exportStar(require("./preload"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,7 +0,7 @@ | ||
import { EnvironmentType, RequestType, LanguageType } from "types/global"; | ||
import { RecurringBillingInterface } from "types/preload/request/recur"; | ||
import { ShoppingCartInterface } from "types/preload/request/cart"; | ||
import { ContactDetailsInterface } from "types/preload/request/contact"; | ||
import { ShippingDetailsInterface } from "types/preload/request/shipping"; | ||
import { BillingDetailsInterface } from "types/preload/request/billing"; | ||
import { EnvironmentType, RequestType, LanguageType } from "../../global"; | ||
import { RecurringBillingInterface } from "./recur"; | ||
import { ShoppingCartInterface } from "./cart"; | ||
import { ContactDetailsInterface } from "./contact"; | ||
import { ShippingDetailsInterface } from "./shipping"; | ||
import { BillingDetailsInterface } from "./billing"; | ||
export interface RequiredPreloadRequestInterface { | ||
@@ -8,0 +8,0 @@ store_id: string; |
@@ -1,2 +0,2 @@ | ||
import { BooleanType } from "types/global"; | ||
import { BooleanType } from "../../global"; | ||
export declare enum RecurUnitType { | ||
@@ -3,0 +3,0 @@ DAY = "day", |
@@ -1,2 +0,2 @@ | ||
import { BooleanType } from "types/global"; | ||
import { BooleanType } from "../../global"; | ||
export default interface PreloadResponseInterface { | ||
@@ -3,0 +3,0 @@ response: { |
@@ -1,2 +0,2 @@ | ||
import { EnvironmentType, RequestType } from "types/global"; | ||
import { EnvironmentType, RequestType } from "../../global"; | ||
export default interface ReceiptRequestInterface { | ||
@@ -3,0 +3,0 @@ store_id: string; |
@@ -1,5 +0,5 @@ | ||
import { BooleanType } from "types/global"; | ||
import { BillingDetailsInterface } from "types/preload/request"; | ||
import { BooleanType } from "../../global"; | ||
import { BillingDetailsInterface } from "../../preload/request"; | ||
export interface BillingDetailResponseInterface extends BillingDetailsInterface { | ||
same_as_shipping: BooleanType; | ||
} |
@@ -1,4 +0,4 @@ | ||
import { EcommerceIndicatorType } from "types/receipt/response/eci"; | ||
import { BooleanType } from "types/global"; | ||
import { ReceiptResultType } from "./result"; | ||
import { EcommerceIndicatorType } from "../response/eci"; | ||
import { BooleanType } from "../../global"; | ||
import { ReceiptResultType } from "../response/result"; | ||
export interface CreditCardInterface { | ||
@@ -5,0 +5,0 @@ first6last4: string; |
@@ -1,4 +0,4 @@ | ||
import { ShoppingCartInterface } from "types/preload/request"; | ||
import { ShoppingCartInterface } from "../../preload/request"; | ||
export interface ShoppingCartResponseInterface extends ShoppingCartInterface { | ||
cc_total: string; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { BooleanType } from "types/global"; | ||
import { BooleanType } from "../../global"; | ||
export declare enum FraudDecisionOriginType { | ||
@@ -3,0 +3,0 @@ MONERIS = "Moneris", |
@@ -1,18 +0,18 @@ | ||
import { BooleanType } from "types/global"; | ||
import { ContactDetailsInterface, ShippingDetailsInterface, RecurringBillingInterface } from "types/preload/request"; | ||
import { CreditCardInterface, CreditCardResultInterface } from "types/receipt/response/card"; | ||
import { BillingDetailResponseInterface } from "types/receipt/response/billing"; | ||
import { ShoppingCartResponseInterface } from "types/receipt/response/cart"; | ||
import { WalletInterface } from "types/receipt/response/wallet"; | ||
import { EcommerceIndicatorType } from "types/receipt/response/eci"; | ||
import { ReceiptResultType } from "types/receipt/response/result"; | ||
import { GiftInterface } from "./gift"; | ||
import { TokenizationInterface } from "./tokenize"; | ||
export * from "types/receipt/response/billing"; | ||
export * from "types/receipt/response/card"; | ||
export * from "types/receipt/response/cart"; | ||
export * from "types/receipt/response/eci"; | ||
export * from "types/receipt/response/gift"; | ||
export * from "types/receipt/response/result"; | ||
export * from "types/receipt/response/wallet"; | ||
import { BooleanType } from "../../global"; | ||
import { ContactDetailsInterface, ShippingDetailsInterface, RecurringBillingInterface } from "../../preload/request"; | ||
import { CreditCardInterface, CreditCardResultInterface } from "../../receipt/response/card"; | ||
import { BillingDetailResponseInterface } from "../../receipt/response/billing"; | ||
import { ShoppingCartResponseInterface } from "../../receipt/response/cart"; | ||
import { WalletInterface } from "../../receipt/response/wallet"; | ||
import { EcommerceIndicatorType } from "../../receipt/response/eci"; | ||
import { ReceiptResultType } from "../../receipt/response/result"; | ||
import { GiftInterface } from "../../receipt/response/gift"; | ||
import { TokenizationInterface } from "../../receipt/response/tokenize"; | ||
export * from "../../receipt/response/billing"; | ||
export * from "../../receipt/response/card"; | ||
export * from "../../receipt/response/cart"; | ||
export * from "../../receipt/response/eci"; | ||
export * from "../../receipt/response/gift"; | ||
export * from "../../receipt/response/result"; | ||
export * from "../../receipt/response/wallet"; | ||
export default interface ReceiptResponseInterface { | ||
@@ -19,0 +19,0 @@ response: { |
@@ -13,9 +13,9 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("types/receipt/response/billing"), exports); | ||
__exportStar(require("types/receipt/response/card"), exports); | ||
__exportStar(require("types/receipt/response/cart"), exports); | ||
__exportStar(require("types/receipt/response/eci"), exports); | ||
__exportStar(require("types/receipt/response/gift"), exports); | ||
__exportStar(require("types/receipt/response/result"), exports); | ||
__exportStar(require("types/receipt/response/wallet"), exports); | ||
__exportStar(require("../../receipt/response/billing"), exports); | ||
__exportStar(require("../../receipt/response/card"), exports); | ||
__exportStar(require("../../receipt/response/cart"), exports); | ||
__exportStar(require("../../receipt/response/eci"), exports); | ||
__exportStar(require("../../receipt/response/gift"), exports); | ||
__exportStar(require("../../receipt/response/result"), exports); | ||
__exportStar(require("../../receipt/response/wallet"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import { BooleanType } from "types/global"; | ||
import { BooleanType } from "../../global"; | ||
export declare enum TokenizationStatusType { | ||
@@ -3,0 +3,0 @@ TEMPORARY_TOKEN_CREATED = "001", |
{ | ||
"name": "moneris-checkout", | ||
"homepage": "https://github.com/bravemaster619/moneris-checkout", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Moneris checkout", | ||
@@ -10,3 +10,3 @@ "main": "dist/moneris-checkout.js", | ||
"build": "tsc", | ||
"test": "mocha -r ts-node/register -r tsconfig-paths/register ./src/test/**/*.spec.ts --timeout 5000" | ||
"test": "mocha -r ts-node/register ./src/test/**/*.spec.ts --timeout 5000" | ||
}, | ||
@@ -20,15 +20,12 @@ "keywords": [ | ||
"devDependencies": { | ||
"@types/node": "^14.0.4", | ||
"@types/chai": "^4.2.11", | ||
"@types/mocha": "^7.0.2", | ||
"@types/node": "^14.0.4", | ||
"chai": "^4.2.0", | ||
"mocha": "^7.1.2", | ||
"ts-node": "^8.10.1", | ||
"tsconfig-paths": "^3.9.0", | ||
"tslint": "^6.1.2", | ||
"typescript": "^3.9.3" | ||
}, | ||
"dependencies": { | ||
}, | ||
"dependencies": {}, | ||
"repository": { | ||
@@ -35,0 +32,0 @@ "type": "git", |
@@ -11,2 +11,6 @@  | ||
```console | ||
npm i -S moneris-checkout | ||
``` | ||
```javascript | ||
@@ -13,0 +17,0 @@ import MonerisCheckout from "moneris-checkout"; |
import https from "https"; | ||
import { EnvironmentType, RequestType, Hosts, EndPoints } from "types/global"; | ||
import { OptionalPreloadRequestInterface } from "types/preload/request"; | ||
import ReceiptRequestInterface from "types/receipt/request"; | ||
import PreloadResponseInterface from "types/preload/response"; | ||
import ReceiptResponseInterface from "types/receipt/response"; | ||
import { EnvironmentType, RequestType, Hosts, EndPoints } from "./types/global"; | ||
import { OptionalPreloadRequestInterface } from "./types/preload/request"; | ||
import ReceiptRequestInterface from "./types/receipt/request"; | ||
import PreloadResponseInterface from "./types/preload/response"; | ||
import ReceiptResponseInterface from "./types/receipt/response"; | ||
@@ -8,0 +8,0 @@ export default class MonerisCheckout { |
import { expect } from "chai"; | ||
import "mocha"; | ||
import MonerisCheckout from "moneris-checkout"; | ||
import { EnvironmentType, BooleanType } from "types/global"; | ||
import MonerisCheckout from "../moneris-checkout"; | ||
import { EnvironmentType, BooleanType } from "../types/global"; | ||
describe("MonerisCheckout", () => { | ||
@@ -6,0 +6,0 @@ |
@@ -6,10 +6,10 @@ import { | ||
export * from "types/preload/request/billing"; | ||
export * from "types/preload/request/cart"; | ||
export * from "types/preload/request/contact"; | ||
export * from "types/preload/request/recur"; | ||
export * from "types/preload/request/shipping"; | ||
export * from "types/preload/request/preload"; | ||
export * from "./billing"; | ||
export * from "./cart"; | ||
export * from "./contact"; | ||
export * from "./recur"; | ||
export * from "./shipping"; | ||
export * from "./preload"; | ||
export default interface PreloadRequestInterface | ||
extends RequiredPreloadRequestInterface, OptionalPreloadRequestInterface {} |
@@ -1,7 +0,7 @@ | ||
import { EnvironmentType, RequestType, LanguageType } from "types/global"; | ||
import { RecurringBillingInterface } from "types/preload/request/recur"; | ||
import { ShoppingCartInterface } from "types/preload/request/cart"; | ||
import { ContactDetailsInterface } from "types/preload/request/contact"; | ||
import { ShippingDetailsInterface } from "types/preload/request/shipping"; | ||
import { BillingDetailsInterface } from "types/preload/request/billing"; | ||
import { EnvironmentType, RequestType, LanguageType } from "../../global"; | ||
import { RecurringBillingInterface } from "./recur"; | ||
import { ShoppingCartInterface } from "./cart"; | ||
import { ContactDetailsInterface } from "./contact"; | ||
import { ShippingDetailsInterface } from "./shipping"; | ||
import { BillingDetailsInterface } from "./billing"; | ||
@@ -8,0 +8,0 @@ export interface RequiredPreloadRequestInterface { |
@@ -1,2 +0,2 @@ | ||
import { BooleanType } from "types/global"; | ||
import { BooleanType } from "../../global"; | ||
@@ -3,0 +3,0 @@ export enum RecurUnitType { |
@@ -1,2 +0,2 @@ | ||
import { BooleanType } from "types/global"; | ||
import { BooleanType } from "../../global"; | ||
@@ -3,0 +3,0 @@ export default interface PreloadResponseInterface { |
@@ -1,2 +0,2 @@ | ||
import { EnvironmentType, RequestType } from "types/global"; | ||
import { EnvironmentType, RequestType } from "../../global"; | ||
@@ -3,0 +3,0 @@ export default interface ReceiptRequestInterface { |
@@ -1,3 +0,3 @@ | ||
import { BooleanType } from "types/global"; | ||
import { BillingDetailsInterface } from "types/preload/request"; | ||
import { BooleanType } from "../../global"; | ||
import { BillingDetailsInterface } from "../../preload/request"; | ||
@@ -4,0 +4,0 @@ export interface BillingDetailResponseInterface extends BillingDetailsInterface { |
@@ -1,4 +0,4 @@ | ||
import { EcommerceIndicatorType } from "types/receipt/response/eci"; | ||
import { BooleanType } from "types/global"; | ||
import { ReceiptResultType } from "./result"; | ||
import { EcommerceIndicatorType } from "../response/eci"; | ||
import { BooleanType } from "../../global"; | ||
import { ReceiptResultType } from "../response/result"; | ||
@@ -5,0 +5,0 @@ export interface CreditCardInterface { |
@@ -1,2 +0,2 @@ | ||
import { ShoppingCartInterface } from "types/preload/request"; | ||
import { ShoppingCartInterface } from "../../preload/request"; | ||
@@ -3,0 +3,0 @@ export interface ShoppingCartResponseInterface extends ShoppingCartInterface { |
@@ -1,2 +0,2 @@ | ||
import { BooleanType } from "types/global"; | ||
import { BooleanType } from "../../global"; | ||
@@ -3,0 +3,0 @@ export enum FraudDecisionOriginType { |
@@ -1,2 +0,2 @@ | ||
import { BooleanType } from "types/global"; | ||
import { BooleanType } from "../../global"; | ||
import { | ||
@@ -6,19 +6,19 @@ ContactDetailsInterface, | ||
RecurringBillingInterface, | ||
} from "types/preload/request"; | ||
import { CreditCardInterface, CreditCardResultInterface } from "types/receipt/response/card"; | ||
import { BillingDetailResponseInterface } from "types/receipt/response/billing"; | ||
import { ShoppingCartResponseInterface } from "types/receipt/response/cart"; | ||
import { WalletInterface } from "types/receipt/response/wallet"; | ||
import { EcommerceIndicatorType } from "types/receipt/response/eci"; | ||
import { ReceiptResultType } from "types/receipt/response/result"; | ||
import { GiftInterface } from "./gift"; | ||
import { TokenizationInterface } from "./tokenize"; | ||
} from "../../preload/request"; | ||
import { CreditCardInterface, CreditCardResultInterface } from "../../receipt/response/card"; | ||
import { BillingDetailResponseInterface } from "../../receipt/response/billing"; | ||
import { ShoppingCartResponseInterface } from "../../receipt/response/cart"; | ||
import { WalletInterface } from "../../receipt/response/wallet"; | ||
import { EcommerceIndicatorType } from "../../receipt/response/eci"; | ||
import { ReceiptResultType } from "../../receipt/response/result"; | ||
import { GiftInterface } from "../../receipt/response/gift"; | ||
import { TokenizationInterface } from "../../receipt/response/tokenize"; | ||
export * from "types/receipt/response/billing"; | ||
export * from "types/receipt/response/card"; | ||
export * from "types/receipt/response/cart"; | ||
export * from "types/receipt/response/eci"; | ||
export * from "types/receipt/response/gift"; | ||
export * from "types/receipt/response/result"; | ||
export * from "types/receipt/response/wallet"; | ||
export * from "../../receipt/response/billing"; | ||
export * from "../../receipt/response/card"; | ||
export * from "../../receipt/response/cart"; | ||
export * from "../../receipt/response/eci"; | ||
export * from "../../receipt/response/gift"; | ||
export * from "../../receipt/response/result"; | ||
export * from "../../receipt/response/wallet"; | ||
@@ -25,0 +25,0 @@ export default interface ReceiptResponseInterface { |
@@ -1,2 +0,2 @@ | ||
import { BooleanType } from "types/global"; | ||
import { BooleanType } from "../../global"; | ||
@@ -3,0 +3,0 @@ export enum TokenizationStatusType { |
@@ -8,7 +8,3 @@ { | ||
"sourceMap": true, | ||
"baseUrl": "./src", | ||
"rootDir": "./src", | ||
"paths": { | ||
"src/*": ["./src/*"] | ||
}, | ||
"baseUrl": ".", | ||
"outDir": "dist", | ||
@@ -15,0 +11,0 @@ "declaration": true |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
8
34
1
56238
91
1231