@pixelpay/sdk-core 1.0.0-beta.0 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/launch.json +25 -0
- package/babel.config.js +6 -0
- package/index.html +454 -0
- package/jest.config.js +5 -0
- package/lib/base/Helpers.d.ts +17 -0
- package/lib/base/Helpers.js +43 -4
- package/lib/base/Helpers.js.map +1 -1
- package/lib/base/RequestBehaviour.d.ts +1 -1
- package/lib/base/RequestBehaviour.js +16 -0
- package/lib/base/RequestBehaviour.js.map +1 -1
- package/lib/base/Response.d.ts +1 -1
- package/lib/base/Response.js +20 -0
- package/lib/base/Response.js.map +1 -1
- package/lib/base/ServiceBehaviour.d.ts +16 -42
- package/lib/base/ServiceBehaviour.js +64 -73
- package/lib/base/ServiceBehaviour.js.map +1 -1
- package/lib/browser/index.js +18 -0
- package/lib/entities/CardResult.d.ts +74 -0
- package/lib/entities/CardResult.js +90 -0
- package/lib/entities/CardResult.js.map +1 -0
- package/lib/entities/TransactionResult.d.ts +97 -0
- package/lib/entities/TransactionResult.js +120 -0
- package/lib/entities/TransactionResult.js.map +1 -0
- package/lib/index.d.ts +41 -27
- package/lib/index.js +40 -28
- package/lib/index.js.map +1 -1
- package/lib/libraries/CardinalManager.d.ts +47 -0
- package/lib/libraries/CardinalManager.js +254 -0
- package/lib/libraries/CardinalManager.js.map +1 -0
- package/lib/libraries/PayloadManager.d.ts +26 -0
- package/lib/libraries/PayloadManager.js +106 -0
- package/lib/libraries/PayloadManager.js.map +1 -0
- package/lib/libraries/PixelPayLoading.d.ts +7 -0
- package/lib/libraries/PixelPayLoading.js +44 -0
- package/lib/libraries/PixelPayLoading.js.map +1 -0
- package/lib/libraries/PixelPayModal.d.ts +12 -0
- package/lib/libraries/PixelPayModal.js +72 -0
- package/lib/libraries/PixelPayModal.js.map +1 -0
- package/lib/models/Billing.js +24 -0
- package/lib/models/Billing.js.map +1 -1
- package/lib/models/Card.js +23 -0
- package/lib/models/Card.js.map +1 -1
- package/lib/models/Item.js +24 -0
- package/lib/models/Item.js.map +1 -1
- package/lib/models/Order.js +47 -0
- package/lib/models/Order.js.map +1 -1
- package/lib/models/Settings.d.ts +65 -0
- package/lib/models/Settings.js +90 -0
- package/lib/models/Settings.js.map +1 -0
- package/lib/requests/AuthTransaction.d.ts +3 -0
- package/lib/{mappings/VoidTransaction.js → requests/AuthTransaction.js} +7 -7
- package/lib/requests/AuthTransaction.js.map +1 -0
- package/lib/{mappings → requests}/CaptureTransaction.d.ts +2 -2
- package/lib/{mappings → requests}/CaptureTransaction.js +12 -3
- package/lib/requests/CaptureTransaction.js.map +1 -0
- package/lib/{mappings → requests}/CardTokenization.d.ts +0 -4
- package/lib/{mappings → requests}/CardTokenization.js +51 -2
- package/lib/requests/CardTokenization.js.map +1 -0
- package/lib/requests/LookupContinueTransaction.d.ts +11 -0
- package/lib/{mappings/CustomerTokenization.js → requests/LookupContinueTransaction.js} +18 -9
- package/lib/requests/LookupContinueTransaction.js.map +1 -0
- package/lib/requests/LookupTransaction.d.ts +68 -0
- package/lib/requests/LookupTransaction.js +107 -0
- package/lib/requests/LookupTransaction.js.map +1 -0
- package/lib/{mappings/AuthTransaction.d.ts → requests/PaymentTransaction.d.ts} +20 -5
- package/lib/requests/PaymentTransaction.js +190 -0
- package/lib/requests/PaymentTransaction.js.map +1 -0
- package/lib/requests/SaleTransaction.d.ts +3 -0
- package/lib/{mappings → requests}/SaleTransaction.js +2 -2
- package/lib/requests/SaleTransaction.js.map +1 -0
- package/lib/requests/StatusTransaction.d.ts +7 -0
- package/lib/{mappings → requests}/StatusTransaction.js +8 -3
- package/lib/requests/StatusTransaction.js.map +1 -0
- package/lib/{mappings → requests}/VoidTransaction.d.ts +2 -2
- package/lib/{base/PaymentTransaction.js → requests/VoidTransaction.js} +17 -8
- package/lib/requests/VoidTransaction.js.map +1 -0
- package/lib/resources/Environment.d.ts +6 -0
- package/lib/resources/Environment.js +13 -0
- package/lib/resources/Environment.js.map +1 -0
- package/lib/resources/Locations.d.ts +16 -0
- package/lib/resources/Locations.js +27 -0
- package/lib/resources/Locations.js.map +1 -0
- package/lib/{resources → responses}/ErrorResponse.d.ts +0 -0
- package/lib/{resources → responses}/ErrorResponse.js +0 -0
- package/lib/{resources → responses}/ErrorResponse.js.map +1 -1
- package/lib/{resources → responses}/FailureResponse.d.ts +0 -0
- package/lib/{resources → responses}/FailureResponse.js +0 -0
- package/lib/{resources → responses}/FailureResponse.js.map +1 -1
- package/lib/{resources → responses}/InputErrorResponse.d.ts +0 -0
- package/lib/{resources → responses}/InputErrorResponse.js +0 -0
- package/lib/{resources → responses}/InputErrorResponse.js.map +1 -1
- package/lib/{resources → responses}/NetworkFailureResponse.d.ts +0 -0
- package/lib/{resources → responses}/NetworkFailureResponse.js +0 -0
- package/lib/{resources → responses}/NetworkFailureResponse.js.map +1 -1
- package/lib/{resources → responses}/NoAccessResponse.d.ts +0 -0
- package/lib/{resources → responses}/NoAccessResponse.js +0 -0
- package/lib/{resources → responses}/NoAccessResponse.js.map +1 -1
- package/lib/{resources → responses}/NotFoundResponse.d.ts +0 -0
- package/lib/{resources → responses}/NotFoundResponse.js +0 -0
- package/lib/{resources → responses}/NotFoundResponse.js.map +1 -1
- package/lib/{resources → responses}/PayloadResponse.d.ts +0 -0
- package/lib/{resources → responses}/PayloadResponse.js +0 -0
- package/lib/{resources → responses}/PayloadResponse.js.map +1 -1
- package/lib/{resources → responses}/PaymentDeclinedResponse.d.ts +0 -0
- package/lib/{resources → responses}/PaymentDeclinedResponse.js +0 -0
- package/lib/{resources → responses}/PaymentDeclinedResponse.js.map +1 -1
- package/lib/{resources → responses}/PreconditionalResponse.d.ts +0 -0
- package/lib/{resources → responses}/PreconditionalResponse.js +0 -0
- package/lib/{resources → responses}/PreconditionalResponse.js.map +1 -1
- package/lib/{resources → responses}/SuccessResponse.d.ts +0 -0
- package/lib/{resources → responses}/SuccessResponse.js +0 -0
- package/lib/{resources → responses}/SuccessResponse.js.map +1 -1
- package/lib/responses/TimeoutResponse.d.ts +3 -0
- package/lib/responses/TimeoutResponse.js +27 -0
- package/lib/responses/TimeoutResponse.js.map +1 -0
- package/lib/services/CardinalAuthentication.d.ts +19 -0
- package/lib/services/CardinalAuthentication.js +56 -0
- package/lib/services/CardinalAuthentication.js.map +1 -0
- package/lib/services/Tokenization.d.ts +5 -14
- package/lib/services/Tokenization.js +87 -20
- package/lib/services/Tokenization.js.map +1 -1
- package/lib/services/Transaction.d.ts +54 -5
- package/lib/services/Transaction.js +193 -25
- package/lib/services/Transaction.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/web.d.ts +28 -0
- package/package.json +16 -5
- package/{test.js → test-node.js} +0 -0
- package/tests/Locations.test.ts +9 -0
- package/tests/Models/Card.test.ts +33 -0
- package/tests/Models/Order.test.ts +64 -0
- package/tests/Models/Settings.test.ts +65 -0
- package/tests/Tokenization.test.ts +229 -0
- package/tests/Transaction.test.ts +342 -0
- package/webpack.mix.js +12 -0
- package/lib/base/PaymentTransaction.d.ts +0 -3
- package/lib/base/PaymentTransaction.js.map +0 -1
- package/lib/mappings/AuthTransaction.js +0 -78
- package/lib/mappings/AuthTransaction.js.map +0 -1
- package/lib/mappings/CaptureTransaction.js.map +0 -1
- package/lib/mappings/CardTokenization.js.map +0 -1
- package/lib/mappings/CustomerTokenization.d.ts +0 -7
- package/lib/mappings/CustomerTokenization.js.map +0 -1
- package/lib/mappings/SaleTransaction.d.ts +0 -3
- package/lib/mappings/SaleTransaction.js.map +0 -1
- package/lib/mappings/StatusTransaction.d.ts +0 -7
- package/lib/mappings/StatusTransaction.js.map +0 -1
- package/lib/mappings/VoidTransaction.js.map +0 -1
- package/lib/models/CardToken.d.ts +0 -14
- package/lib/models/CardToken.js +0 -9
- package/lib/models/CardToken.js.map +0 -1
package/lib/models/Item.js
CHANGED
|
@@ -5,6 +5,30 @@ var Item = /** @class */ (function () {
|
|
|
5
5
|
* Initialize model
|
|
6
6
|
*/
|
|
7
7
|
function Item() {
|
|
8
|
+
/**
|
|
9
|
+
* Item indentifier code or UPC/EAN
|
|
10
|
+
*/
|
|
11
|
+
this.code = undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Item product title
|
|
14
|
+
*/
|
|
15
|
+
this.title = undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Item per unit price
|
|
18
|
+
*/
|
|
19
|
+
this.price = undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Item quantity
|
|
22
|
+
*/
|
|
23
|
+
this.qty = undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Item tax amount per unit
|
|
26
|
+
*/
|
|
27
|
+
this.tax = undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Item total value
|
|
30
|
+
*/
|
|
31
|
+
this.total = undefined;
|
|
8
32
|
this.price = 0.00;
|
|
9
33
|
this.qty = 1;
|
|
10
34
|
this.tax = 0.00;
|
package/lib/models/Item.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.js","sourceRoot":"","sources":["../../src/models/Item.ts"],"names":[],"mappings":";;AAAA;IA+BC;;OAEG;IACH;
|
|
1
|
+
{"version":3,"file":"Item.js","sourceRoot":"","sources":["../../src/models/Item.ts"],"names":[],"mappings":";;AAAA;IA+BC;;OAEG;IACH;QAjCA;;WAEG;QACH,SAAI,GAAW,SAAS,CAAC;QAEzB;;WAEG;QACH,UAAK,GAAW,SAAS,CAAC;QAE1B;;WAEG;QACH,UAAK,GAAW,SAAS,CAAC;QAE1B;;WAEG;QACH,QAAG,GAAW,SAAS,CAAC;QAExB;;WAEG;QACH,QAAG,GAAW,SAAS,CAAC;QAExB;;WAEG;QACH,UAAK,GAAW,SAAS,CAAC;QAMzB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;QACb,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;QAChB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACnB,CAAC;IAED;;;OAGG;IACH,uBAAQ,GAAR;QACC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC;QAEnC,OAAO,IAAI,CAAC;IACb,CAAC;IACF,WAAC;AAAD,CAAC,AAlDD,IAkDC"}
|
package/lib/models/Order.js
CHANGED
|
@@ -5,6 +5,50 @@ var Order = /** @class */ (function () {
|
|
|
5
5
|
* Initialize model
|
|
6
6
|
*/
|
|
7
7
|
function Order() {
|
|
8
|
+
/**
|
|
9
|
+
* Order ID
|
|
10
|
+
*/
|
|
11
|
+
this.id = undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Order currency code alpha-3
|
|
14
|
+
*/
|
|
15
|
+
this.currency = undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Order total amount
|
|
18
|
+
*/
|
|
19
|
+
this.amount = undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Order total tax amount
|
|
22
|
+
*/
|
|
23
|
+
this.tax_amount = undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Order total shipping amount
|
|
26
|
+
*/
|
|
27
|
+
this.shipping_amount = undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Order summary of items or products
|
|
30
|
+
*/
|
|
31
|
+
this.content = undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Order extra properties
|
|
34
|
+
*/
|
|
35
|
+
this.extras = undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Order note or aditional instructions
|
|
38
|
+
*/
|
|
39
|
+
this.note = undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Order calback webhook URL
|
|
42
|
+
*/
|
|
43
|
+
this.callback_url = undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Order customer name
|
|
46
|
+
*/
|
|
47
|
+
this.customer_name = undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Order customer email
|
|
50
|
+
*/
|
|
51
|
+
this.customer_email = undefined;
|
|
8
52
|
this.content = [];
|
|
9
53
|
this.extras = {};
|
|
10
54
|
}
|
|
@@ -37,6 +81,9 @@ var Order = /** @class */ (function () {
|
|
|
37
81
|
*/
|
|
38
82
|
Order.prototype.totalize = function () {
|
|
39
83
|
var _this = this;
|
|
84
|
+
if (!this.content.length) {
|
|
85
|
+
return this;
|
|
86
|
+
}
|
|
40
87
|
this.amount = 0.00;
|
|
41
88
|
this.tax_amount = 0.00;
|
|
42
89
|
this.content.forEach(function (item) {
|
package/lib/models/Order.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Order.js","sourceRoot":"","sources":["../../src/models/Order.ts"],"names":[],"mappings":";;AAEA;IAwDC;;OAEG;IACH;
|
|
1
|
+
{"version":3,"file":"Order.js","sourceRoot":"","sources":["../../src/models/Order.ts"],"names":[],"mappings":";;AAEA;IAwDC;;OAEG;IACH;QA1DA;;WAEG;QACH,OAAE,GAAW,SAAS,CAAC;QAEvB;;WAEG;QACH,aAAQ,GAAW,SAAS,CAAC;QAE7B;;WAEG;QACH,WAAM,GAAW,SAAS,CAAC;QAE3B;;WAEG;QACH,eAAU,GAAW,SAAS,CAAC;QAE/B;;WAEG;QACH,oBAAe,GAAW,SAAS,CAAC;QAEpC;;WAEG;QACH,YAAO,GAAgB,SAAS,CAAC;QAEjC;;WAEG;QACH,WAAM,GAAW,SAAS,CAAC;QAE3B;;WAEG;QACH,SAAI,GAAW,SAAS,CAAC;QAEzB;;WAEG;QACH,iBAAY,GAAW,SAAS,CAAC;QAEjC;;WAEG;QACH,kBAAa,GAAW,SAAS,CAAC;QAElC;;WAEG;QACH,mBAAc,GAAW,SAAS,CAAC;QAMlC,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;IAClB,CAAC;IAED;;;;;OAKG;IACH,uBAAO,GAAP,UAAQ,IAAU;QACjB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxB,IAAI,CAAC,QAAQ,EAAE,CAAC;QAEhB,OAAO,IAAI,CAAC;IACb,CAAC;IAED;;;;;;OAMG;IACH,wBAAQ,GAAR,UAAS,GAAW,EAAE,KAAU;QAC/B,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QAEzB,OAAO,IAAI,CAAC;IACb,CAAC;IAED;;;;OAIG;IACH,wBAAQ,GAAR;QAAA,iBAgBC;QAfA,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;YACzB,OAAO,IAAI,CAAC;SACZ;QAED,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QAEvB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,UAAA,IAAI;YACxB,IAAI,CAAC,QAAQ,EAAE,CAAC;YAEhB,KAAI,CAAC,MAAM,IAAI,IAAI,CAAC,KAAK,CAAC;YAC1B,KAAI,CAAC,UAAU,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC;IACb,CAAC;IACF,YAAC;AAAD,CAAC,AAhHD,IAgHC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export default class Settings {
|
|
2
|
+
/**
|
|
3
|
+
* Merchant API auth key
|
|
4
|
+
*/
|
|
5
|
+
auth_key: string;
|
|
6
|
+
/**
|
|
7
|
+
* Merchant API auth hash (MD5 of secret key)
|
|
8
|
+
*/
|
|
9
|
+
auth_hash: string;
|
|
10
|
+
/**
|
|
11
|
+
* Merchant API platform auth user (SHA-512 of user email)
|
|
12
|
+
*/
|
|
13
|
+
auth_user: string;
|
|
14
|
+
/**
|
|
15
|
+
* Merchant API endpoint URL
|
|
16
|
+
*/
|
|
17
|
+
endpoint: string;
|
|
18
|
+
/**
|
|
19
|
+
* Merchant API environment
|
|
20
|
+
*/
|
|
21
|
+
environment: string;
|
|
22
|
+
/**
|
|
23
|
+
* Settings response messages language
|
|
24
|
+
*/
|
|
25
|
+
lang: string;
|
|
26
|
+
/**
|
|
27
|
+
* Initialize service
|
|
28
|
+
*/
|
|
29
|
+
constructor();
|
|
30
|
+
/**
|
|
31
|
+
* Setup API endpoint URL
|
|
32
|
+
*
|
|
33
|
+
* @param endpoint
|
|
34
|
+
*/
|
|
35
|
+
setupEndpoint(endpoint: string): void;
|
|
36
|
+
/**
|
|
37
|
+
* Setup API credentials
|
|
38
|
+
*
|
|
39
|
+
* @param key
|
|
40
|
+
* @param hash
|
|
41
|
+
*/
|
|
42
|
+
setupCredentials(key: string, hash: string): void;
|
|
43
|
+
/**
|
|
44
|
+
* Setup API platform user
|
|
45
|
+
*
|
|
46
|
+
* @param hash
|
|
47
|
+
*/
|
|
48
|
+
setupPlatformUser(hash: string): void;
|
|
49
|
+
/**
|
|
50
|
+
* Setup API environment
|
|
51
|
+
*
|
|
52
|
+
* @param env
|
|
53
|
+
*/
|
|
54
|
+
setupEnvironment(env: string): void;
|
|
55
|
+
/**
|
|
56
|
+
* Setup defaults to Sandbox credentials
|
|
57
|
+
*/
|
|
58
|
+
setupSandbox(): void;
|
|
59
|
+
/**
|
|
60
|
+
* Setup response messages language
|
|
61
|
+
*
|
|
62
|
+
* @param lang
|
|
63
|
+
*/
|
|
64
|
+
setupLanguage(lang: string): void;
|
|
65
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var Helpers_1 = require("../base/Helpers");
|
|
4
|
+
var Environment_1 = require("../resources/Environment");
|
|
5
|
+
var Settings = /** @class */ (function () {
|
|
6
|
+
/**
|
|
7
|
+
* Initialize service
|
|
8
|
+
*/
|
|
9
|
+
function Settings() {
|
|
10
|
+
/**
|
|
11
|
+
* Merchant API auth key
|
|
12
|
+
*/
|
|
13
|
+
this.auth_key = undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Merchant API auth hash (MD5 of secret key)
|
|
16
|
+
*/
|
|
17
|
+
this.auth_hash = undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Merchant API platform auth user (SHA-512 of user email)
|
|
20
|
+
*/
|
|
21
|
+
this.auth_user = undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Merchant API endpoint URL
|
|
24
|
+
*/
|
|
25
|
+
this.endpoint = undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Merchant API environment
|
|
28
|
+
*/
|
|
29
|
+
this.environment = undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Settings response messages language
|
|
32
|
+
*/
|
|
33
|
+
this.lang = undefined;
|
|
34
|
+
this.endpoint = "https://pixelpay.app";
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Setup API endpoint URL
|
|
38
|
+
*
|
|
39
|
+
* @param endpoint
|
|
40
|
+
*/
|
|
41
|
+
Settings.prototype.setupEndpoint = function (endpoint) {
|
|
42
|
+
this.endpoint = endpoint;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Setup API credentials
|
|
46
|
+
*
|
|
47
|
+
* @param key
|
|
48
|
+
* @param hash
|
|
49
|
+
*/
|
|
50
|
+
Settings.prototype.setupCredentials = function (key, hash) {
|
|
51
|
+
this.auth_key = key;
|
|
52
|
+
this.auth_hash = hash;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Setup API platform user
|
|
56
|
+
*
|
|
57
|
+
* @param hash
|
|
58
|
+
*/
|
|
59
|
+
Settings.prototype.setupPlatformUser = function (hash) {
|
|
60
|
+
this.auth_user = hash;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Setup API environment
|
|
64
|
+
*
|
|
65
|
+
* @param env
|
|
66
|
+
*/
|
|
67
|
+
Settings.prototype.setupEnvironment = function (env) {
|
|
68
|
+
this.environment = env;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Setup defaults to Sandbox credentials
|
|
72
|
+
*/
|
|
73
|
+
Settings.prototype.setupSandbox = function () {
|
|
74
|
+
this.endpoint = "https://pixel-pay.com";
|
|
75
|
+
this.auth_key = "1234567890";
|
|
76
|
+
this.auth_hash = Helpers_1.default.hash("MD5", "@s4ndb0x-abcd-1234-n1l4-p1x3l");
|
|
77
|
+
this.environment = Environment_1.default.SANDBOX;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Setup response messages language
|
|
81
|
+
*
|
|
82
|
+
* @param lang
|
|
83
|
+
*/
|
|
84
|
+
Settings.prototype.setupLanguage = function (lang) {
|
|
85
|
+
this.lang = lang;
|
|
86
|
+
};
|
|
87
|
+
return Settings;
|
|
88
|
+
}());
|
|
89
|
+
exports.default = Settings;
|
|
90
|
+
//# sourceMappingURL=Settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Settings.js","sourceRoot":"","sources":["../../src/models/Settings.ts"],"names":[],"mappings":";;AAAA,2CAAsC;AACtC,wDAAmD;AAEnD;IA+BC;;OAEG;IACH;QAjCA;;WAEG;QACH,aAAQ,GAAW,SAAS,CAAC;QAE7B;;WAEG;QACH,cAAS,GAAW,SAAS,CAAC;QAE9B;;WAEG;QACH,cAAS,GAAW,SAAS,CAAC;QAE9B;;WAEG;QACH,aAAQ,GAAW,SAAS,CAAC;QAE7B;;WAEG;QACH,gBAAW,GAAW,SAAS,CAAC;QAEhC;;WAEG;QACH,SAAI,GAAW,SAAS,CAAC;QAMxB,IAAI,CAAC,QAAQ,GAAG,sBAAsB,CAAC;IACxC,CAAC;IAED;;;;OAIG;IACH,gCAAa,GAAb,UAAc,QAAgB;QAC7B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC1B,CAAC;IAED;;;;;OAKG;IACH,mCAAgB,GAAhB,UAAiB,GAAW,EAAE,IAAY;QACzC,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,oCAAiB,GAAjB,UAAkB,IAAY;QAC7B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,mCAAgB,GAAhB,UAAiB,GAAW;QAC3B,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC;IACxB,CAAC;IAED;;OAEG;IACH,+BAAY,GAAZ;QACC,IAAI,CAAC,QAAQ,GAAG,uBAAuB,CAAC;QACxC,IAAI,CAAC,QAAQ,GAAG,YAAY,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,iBAAO,CAAC,IAAI,CAAC,KAAK,EAAE,+BAA+B,CAAC,CAAC;QACtE,IAAI,CAAC,WAAW,GAAG,qBAAW,CAAC,OAAO,CAAC;IACxC,CAAC;IAED;;;;OAIG;IACH,gCAAa,GAAb,UAAc,IAAY;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IAClB,CAAC;IACF,eAAC;AAAD,CAAC,AA9FD,IA8FC"}
|
|
@@ -15,13 +15,13 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
var PaymentTransaction_1 = require("
|
|
19
|
-
var
|
|
20
|
-
__extends(
|
|
21
|
-
function
|
|
18
|
+
var PaymentTransaction_1 = require("./PaymentTransaction");
|
|
19
|
+
var AuthTransaction = /** @class */ (function (_super) {
|
|
20
|
+
__extends(AuthTransaction, _super);
|
|
21
|
+
function AuthTransaction() {
|
|
22
22
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return AuthTransaction;
|
|
25
25
|
}(PaymentTransaction_1.default));
|
|
26
|
-
exports.default =
|
|
27
|
-
//# sourceMappingURL=
|
|
26
|
+
exports.default = AuthTransaction;
|
|
27
|
+
//# sourceMappingURL=AuthTransaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthTransaction.js","sourceRoot":"","sources":["../../src/requests/AuthTransaction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2DAAsD;AAEtD;IAA6C,mCAAkB;IAA/D;;IAEA,CAAC;IAAD,sBAAC;AAAD,CAAC,AAFD,CAA6C,4BAAkB,GAE9D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default class CaptureTransaction extends
|
|
1
|
+
import RequestBehaviour from '../base/RequestBehaviour';
|
|
2
|
+
export default class CaptureTransaction extends RequestBehaviour {
|
|
3
3
|
/**
|
|
4
4
|
* Payment UUID
|
|
5
5
|
*/
|
|
@@ -15,13 +15,22 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
var
|
|
18
|
+
var RequestBehaviour_1 = require("../base/RequestBehaviour");
|
|
19
19
|
var CaptureTransaction = /** @class */ (function (_super) {
|
|
20
20
|
__extends(CaptureTransaction, _super);
|
|
21
21
|
function CaptureTransaction() {
|
|
22
|
-
|
|
22
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
23
|
+
/**
|
|
24
|
+
* Payment UUID
|
|
25
|
+
*/
|
|
26
|
+
_this.payment_uuid = null;
|
|
27
|
+
/**
|
|
28
|
+
* The total amount to capture, equal to or less than the authorized amount.
|
|
29
|
+
*/
|
|
30
|
+
_this.transaction_approved_amount = null;
|
|
31
|
+
return _this;
|
|
23
32
|
}
|
|
24
33
|
return CaptureTransaction;
|
|
25
|
-
}(
|
|
34
|
+
}(RequestBehaviour_1.default));
|
|
26
35
|
exports.default = CaptureTransaction;
|
|
27
36
|
//# sourceMappingURL=CaptureTransaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CaptureTransaction.js","sourceRoot":"","sources":["../../src/requests/CaptureTransaction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6DAAwD;AAExD;IAAgD,sCAAgB;IAAhE;QAAA,qEAUC;QATA;;WAEG;QACH,kBAAY,GAAW,IAAI,CAAC;QAE5B;;WAEG;QACH,iCAA2B,GAAW,IAAI,CAAC;;IAC5C,CAAC;IAAD,yBAAC;AAAD,CAAC,AAVD,CAAgD,0BAAgB,GAU/D"}
|
|
@@ -20,7 +20,56 @@ var Helpers_1 = require("../base/Helpers");
|
|
|
20
20
|
var CardTokenization = /** @class */ (function (_super) {
|
|
21
21
|
__extends(CardTokenization, _super);
|
|
22
22
|
function CardTokenization() {
|
|
23
|
-
|
|
23
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
+
/**
|
|
25
|
+
* Card number or PAN
|
|
26
|
+
*/
|
|
27
|
+
_this.number = null;
|
|
28
|
+
/**
|
|
29
|
+
* Card security code
|
|
30
|
+
*/
|
|
31
|
+
_this.cvv2 = null;
|
|
32
|
+
/**
|
|
33
|
+
* Card expire month date (MM)
|
|
34
|
+
*/
|
|
35
|
+
_this.expire_month = null;
|
|
36
|
+
/**
|
|
37
|
+
* Card expire year date (YYYY)
|
|
38
|
+
*/
|
|
39
|
+
_this.expire_year = null;
|
|
40
|
+
/**
|
|
41
|
+
* Cardholder name
|
|
42
|
+
*/
|
|
43
|
+
_this.cardholder = null;
|
|
44
|
+
/**
|
|
45
|
+
* Customer billing address
|
|
46
|
+
*/
|
|
47
|
+
_this.address = null;
|
|
48
|
+
/**
|
|
49
|
+
* Customer billing country alpha-2 code (ISO 3166-1)
|
|
50
|
+
*/
|
|
51
|
+
_this.country = null;
|
|
52
|
+
/**
|
|
53
|
+
* Customer billing state alpha code (ISO 3166-2)
|
|
54
|
+
*/
|
|
55
|
+
_this.state = null;
|
|
56
|
+
/**
|
|
57
|
+
* Customer billing city
|
|
58
|
+
*/
|
|
59
|
+
_this.city = null;
|
|
60
|
+
/**
|
|
61
|
+
* Customer billing postal code
|
|
62
|
+
*/
|
|
63
|
+
_this.zip = null;
|
|
64
|
+
/**
|
|
65
|
+
* Customer billing phone
|
|
66
|
+
*/
|
|
67
|
+
_this.phone = null;
|
|
68
|
+
/**
|
|
69
|
+
* Customer email
|
|
70
|
+
*/
|
|
71
|
+
_this.email = null;
|
|
72
|
+
return _this;
|
|
24
73
|
}
|
|
25
74
|
/**
|
|
26
75
|
* Associate and mapping Card model properties to transaction
|
|
@@ -28,7 +77,7 @@ var CardTokenization = /** @class */ (function (_super) {
|
|
|
28
77
|
* @param card
|
|
29
78
|
*/
|
|
30
79
|
CardTokenization.prototype.setCard = function (card) {
|
|
31
|
-
this.number = Helpers_1.default.
|
|
80
|
+
this.number = Helpers_1.default.cleanString(card.number);
|
|
32
81
|
this.cvv2 = card.cvv2;
|
|
33
82
|
this.expire_month = ('00' + card.expire_month).slice(-2);
|
|
34
83
|
this.expire_year = String(card.expire_year);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardTokenization.js","sourceRoot":"","sources":["../../src/requests/CardTokenization.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6DAAwD;AACxD,2CAAsC;AAItC;IAA8C,oCAAgB;IAA9D;QAAA,qEAuFC;QAtFA;;WAEG;QACH,YAAM,GAAW,IAAI,CAAC;QAEtB;;WAEG;QACH,UAAI,GAAW,IAAI,CAAC;QAEpB;;WAEG;QACH,kBAAY,GAAW,IAAI,CAAC;QAE5B;;WAEG;QACH,iBAAW,GAAW,IAAI,CAAC;QAE3B;;WAEG;QACH,gBAAU,GAAW,IAAI,CAAC;QAE1B;;WAEG;QACH,aAAO,GAAW,IAAI,CAAC;QAEvB;;WAEG;QACH,aAAO,GAAW,IAAI,CAAC;QAEvB;;WAEG;QACH,WAAK,GAAW,IAAI,CAAC;QAErB;;WAEG;QACH,UAAI,GAAW,IAAI,CAAC;QAEpB;;WAEG;QACH,SAAG,GAAW,IAAI,CAAC;QAEnB;;WAEG;QACH,WAAK,GAAW,IAAI,CAAC;QAErB;;WAEG;QACH,WAAK,GAAW,IAAI,CAAC;;IA4BtB,CAAC;IA1BA;;;;OAIG;IACH,kCAAO,GAAP,UAAQ,IAAU;QACjB,IAAI,CAAC,MAAM,GAAG,iBAAO,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC/C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,YAAY,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QACzD,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC5C,IAAI,CAAC,UAAU,GAAG,iBAAO,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACtD,CAAC;IAED;;;;OAIG;IACH,qCAAU,GAAV,UAAW,OAAgB;QAC1B,IAAI,CAAC,OAAO,GAAG,iBAAO,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAClD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QAC/B,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;QAC3B,IAAI,CAAC,IAAI,GAAG,iBAAO,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5C,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;QACvB,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;IAC5B,CAAC;IACF,uBAAC;AAAD,CAAC,AAvFD,CAA8C,0BAAgB,GAuF7D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import RequestBehaviour from '../base/RequestBehaviour';
|
|
2
|
+
export default class LookupContinueTransaction extends RequestBehaviour {
|
|
3
|
+
/**
|
|
4
|
+
* Cardinal transaction indentifier
|
|
5
|
+
*/
|
|
6
|
+
identifier: string;
|
|
7
|
+
/**
|
|
8
|
+
* Cardinal Validation JWT payload
|
|
9
|
+
*/
|
|
10
|
+
payload: string;
|
|
11
|
+
}
|
|
@@ -15,13 +15,22 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
__extends(
|
|
21
|
-
function
|
|
22
|
-
|
|
18
|
+
var RequestBehaviour_1 = require("../base/RequestBehaviour");
|
|
19
|
+
var LookupContinueTransaction = /** @class */ (function (_super) {
|
|
20
|
+
__extends(LookupContinueTransaction, _super);
|
|
21
|
+
function LookupContinueTransaction() {
|
|
22
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
23
|
+
/**
|
|
24
|
+
* Cardinal transaction indentifier
|
|
25
|
+
*/
|
|
26
|
+
_this.identifier = null;
|
|
27
|
+
/**
|
|
28
|
+
* Cardinal Validation JWT payload
|
|
29
|
+
*/
|
|
30
|
+
_this.payload = null;
|
|
31
|
+
return _this;
|
|
23
32
|
}
|
|
24
|
-
return
|
|
25
|
-
}(
|
|
26
|
-
exports.default =
|
|
27
|
-
//# sourceMappingURL=
|
|
33
|
+
return LookupContinueTransaction;
|
|
34
|
+
}(RequestBehaviour_1.default));
|
|
35
|
+
exports.default = LookupContinueTransaction;
|
|
36
|
+
//# sourceMappingURL=LookupContinueTransaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LookupContinueTransaction.js","sourceRoot":"","sources":["../../src/requests/LookupContinueTransaction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6DAAwD;AAExD;IAAuD,6CAAgB;IAAvE;QAAA,qEAUC;QATA;;WAEG;QACH,gBAAU,GAAW,IAAI,CAAC;QAE1B;;WAEG;QACH,aAAO,GAAW,IAAI,CAAC;;IACxB,CAAC;IAAD,gCAAC;AAAD,CAAC,AAVD,CAAuD,0BAAgB,GAUtE"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import RequestBehaviour from '../base/RequestBehaviour';
|
|
2
|
+
import PaymentTransaction from '../requests/PaymentTransaction';
|
|
3
|
+
export default class LookupTransaction extends RequestBehaviour {
|
|
4
|
+
/**
|
|
5
|
+
* Tokenized card identifier (T-* format)
|
|
6
|
+
*/
|
|
7
|
+
card_token: string;
|
|
8
|
+
/**
|
|
9
|
+
* Card number or PAN
|
|
10
|
+
*/
|
|
11
|
+
card_number: string;
|
|
12
|
+
/**
|
|
13
|
+
* Card expire year/month date (YYMM)
|
|
14
|
+
*/
|
|
15
|
+
card_expire: string;
|
|
16
|
+
/**
|
|
17
|
+
* Customer billing address
|
|
18
|
+
*/
|
|
19
|
+
billing_address: string;
|
|
20
|
+
/**
|
|
21
|
+
* Customer billing country alpha-2 code (ISO 3166-1)
|
|
22
|
+
*/
|
|
23
|
+
billing_country: string;
|
|
24
|
+
/**
|
|
25
|
+
* Customer billing state alpha code (ISO 3166-2)
|
|
26
|
+
*/
|
|
27
|
+
billing_state: string;
|
|
28
|
+
/**
|
|
29
|
+
* Customer billing city
|
|
30
|
+
*/
|
|
31
|
+
billing_city: string;
|
|
32
|
+
/**
|
|
33
|
+
* Customer billing postal code
|
|
34
|
+
*/
|
|
35
|
+
billing_zip: string;
|
|
36
|
+
/**
|
|
37
|
+
* Customer billing phone
|
|
38
|
+
*/
|
|
39
|
+
billing_phone: string;
|
|
40
|
+
/**
|
|
41
|
+
* Order customer name
|
|
42
|
+
*/
|
|
43
|
+
customer_name: string;
|
|
44
|
+
/**
|
|
45
|
+
* Order customer email
|
|
46
|
+
*/
|
|
47
|
+
customer_email: string;
|
|
48
|
+
/**
|
|
49
|
+
* Order ID
|
|
50
|
+
*/
|
|
51
|
+
order_id: string;
|
|
52
|
+
/**
|
|
53
|
+
* Order currency code alpha-3
|
|
54
|
+
*/
|
|
55
|
+
order_currency: string;
|
|
56
|
+
/**
|
|
57
|
+
* Order total amount
|
|
58
|
+
*/
|
|
59
|
+
order_amount: string;
|
|
60
|
+
/**
|
|
61
|
+
* Cardinal session reference
|
|
62
|
+
*/
|
|
63
|
+
reference: string;
|
|
64
|
+
/**
|
|
65
|
+
* Cast PaymentTransaction to LookupTransaction
|
|
66
|
+
*/
|
|
67
|
+
fromPaymentTransaction(request: PaymentTransaction): void;
|
|
68
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var RequestBehaviour_1 = require("../base/RequestBehaviour");
|
|
19
|
+
var LookupTransaction = /** @class */ (function (_super) {
|
|
20
|
+
__extends(LookupTransaction, _super);
|
|
21
|
+
function LookupTransaction() {
|
|
22
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
23
|
+
/**
|
|
24
|
+
* Tokenized card identifier (T-* format)
|
|
25
|
+
*/
|
|
26
|
+
_this.card_token = null;
|
|
27
|
+
/**
|
|
28
|
+
* Card number or PAN
|
|
29
|
+
*/
|
|
30
|
+
_this.card_number = null;
|
|
31
|
+
/**
|
|
32
|
+
* Card expire year/month date (YYMM)
|
|
33
|
+
*/
|
|
34
|
+
_this.card_expire = null;
|
|
35
|
+
/**
|
|
36
|
+
* Customer billing address
|
|
37
|
+
*/
|
|
38
|
+
_this.billing_address = null;
|
|
39
|
+
/**
|
|
40
|
+
* Customer billing country alpha-2 code (ISO 3166-1)
|
|
41
|
+
*/
|
|
42
|
+
_this.billing_country = null;
|
|
43
|
+
/**
|
|
44
|
+
* Customer billing state alpha code (ISO 3166-2)
|
|
45
|
+
*/
|
|
46
|
+
_this.billing_state = null;
|
|
47
|
+
/**
|
|
48
|
+
* Customer billing city
|
|
49
|
+
*/
|
|
50
|
+
_this.billing_city = null;
|
|
51
|
+
/**
|
|
52
|
+
* Customer billing postal code
|
|
53
|
+
*/
|
|
54
|
+
_this.billing_zip = null;
|
|
55
|
+
/**
|
|
56
|
+
* Customer billing phone
|
|
57
|
+
*/
|
|
58
|
+
_this.billing_phone = null;
|
|
59
|
+
/**
|
|
60
|
+
* Order customer name
|
|
61
|
+
*/
|
|
62
|
+
_this.customer_name = null;
|
|
63
|
+
/**
|
|
64
|
+
* Order customer email
|
|
65
|
+
*/
|
|
66
|
+
_this.customer_email = null;
|
|
67
|
+
/**
|
|
68
|
+
* Order ID
|
|
69
|
+
*/
|
|
70
|
+
_this.order_id = null;
|
|
71
|
+
/**
|
|
72
|
+
* Order currency code alpha-3
|
|
73
|
+
*/
|
|
74
|
+
_this.order_currency = null;
|
|
75
|
+
/**
|
|
76
|
+
* Order total amount
|
|
77
|
+
*/
|
|
78
|
+
_this.order_amount = null;
|
|
79
|
+
/**
|
|
80
|
+
* Cardinal session reference
|
|
81
|
+
*/
|
|
82
|
+
_this.reference = null;
|
|
83
|
+
return _this;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Cast PaymentTransaction to LookupTransaction
|
|
87
|
+
*/
|
|
88
|
+
LookupTransaction.prototype.fromPaymentTransaction = function (request) {
|
|
89
|
+
this.card_token = request.card_token;
|
|
90
|
+
this.card_number = request.card_number;
|
|
91
|
+
this.card_expire = request.card_expire;
|
|
92
|
+
this.billing_address = request.billing_address;
|
|
93
|
+
this.billing_country = request.billing_country;
|
|
94
|
+
this.billing_state = request.billing_state;
|
|
95
|
+
this.billing_city = request.billing_city;
|
|
96
|
+
this.billing_zip = request.billing_zip;
|
|
97
|
+
this.billing_phone = request.billing_phone;
|
|
98
|
+
this.customer_name = request.customer_name;
|
|
99
|
+
this.customer_email = request.customer_email;
|
|
100
|
+
this.order_id = request.order_id;
|
|
101
|
+
this.order_currency = request.order_currency;
|
|
102
|
+
this.order_amount = request.order_amount;
|
|
103
|
+
};
|
|
104
|
+
return LookupTransaction;
|
|
105
|
+
}(RequestBehaviour_1.default));
|
|
106
|
+
exports.default = LookupTransaction;
|
|
107
|
+
//# sourceMappingURL=LookupTransaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LookupTransaction.js","sourceRoot":"","sources":["../../src/requests/LookupTransaction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6DAAwD;AAGxD;IAA+C,qCAAgB;IAA/D;QAAA,qEAkGC;QAjGA;;WAEG;QACH,gBAAU,GAAW,IAAI,CAAC;QAE1B;;WAEG;QACH,iBAAW,GAAW,IAAI,CAAC;QAE3B;;WAEG;QACH,iBAAW,GAAW,IAAI,CAAC;QAE3B;;WAEG;QACH,qBAAe,GAAW,IAAI,CAAC;QAE/B;;WAEG;QACH,qBAAe,GAAW,IAAI,CAAC;QAE/B;;WAEG;QACH,mBAAa,GAAW,IAAI,CAAC;QAE7B;;WAEG;QACH,kBAAY,GAAW,IAAI,CAAC;QAE5B;;WAEG;QACH,iBAAW,GAAW,IAAI,CAAC;QAE3B;;WAEG;QACH,mBAAa,GAAW,IAAI,CAAC;QAE7B;;WAEG;QACH,mBAAa,GAAW,IAAI,CAAC;QAE7B;;WAEG;QACH,oBAAc,GAAW,IAAI,CAAC;QAE9B;;WAEG;QACH,cAAQ,GAAW,IAAI,CAAC;QAExB;;WAEG;QACH,oBAAc,GAAW,IAAI,CAAC;QAE9B;;WAEG;QACH,kBAAY,GAAW,IAAI,CAAC;QAE5B;;WAEG;QACH,eAAS,GAAW,IAAI,CAAC;;IAwB1B,CAAC;IAtBA;;OAEG;IACH,kDAAsB,GAAtB,UAAuB,OAA2B;QACjD,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;QACvC,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;QAEvC,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;QAC/C,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;QAC/C,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;QAC3C,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;QACzC,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;QACvC,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;QAE3C,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;QAC3C,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;QAE7C,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QACjC,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;QAC7C,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAC1C,CAAC;IACF,wBAAC;AAAD,CAAC,AAlGD,CAA+C,0BAAgB,GAkG9D"}
|