@houlak/plexo-sdk 0.1.47 → 0.1.48
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/lib/models/Authorization.d.ts +0 -2
- package/lib/models/IssuerProcessor.d.ts +4 -4
- package/lib/models/IssuerProcessor.js +4 -4
- package/lib/sdk/helpers/signature/signatureUtils.js +4 -1
- package/package.json +1 -1
- package/lib/models/BuiltInPagesOptionsDto.d.ts +0 -4
- package/lib/models/BuiltInPagesOptionsDto.js +0 -9
- package/lib/models/DisplayOptionsDto.d.ts +0 -7
- package/lib/models/DisplayOptionsDto.js +0 -9
- package/lib/models/ExpressCheckoutSettingsDto.d.ts +0 -6
- package/lib/models/ExpressCheckoutSettingsDto.js +0 -9
- package/lib/models/TokenizationSettingsDto.d.ts +0 -4
- package/lib/models/TokenizationSettingsDto.js +0 -9
- package/lib/models/UIOptionsDto.d.ts +0 -7
- package/lib/models/UIOptionsDto.js +0 -13
- package/lib/models/WebFormSettingsDto.d.ts +0 -8
- package/lib/models/WebFormSettingsDto.js +0 -9
|
@@ -2,7 +2,6 @@ import { ESMap } from 'typescript';
|
|
|
2
2
|
import { AuthorizationType } from '..';
|
|
3
3
|
import { ActionType } from './ActionType';
|
|
4
4
|
import { AuthorizationInfo } from './AuthorizationInfo';
|
|
5
|
-
import { WebFormSettingsDto } from './WebFormSettingsDto';
|
|
6
5
|
export declare class Authorization extends AuthorizationInfo {
|
|
7
6
|
action: ActionType;
|
|
8
7
|
redirectUri: string;
|
|
@@ -13,6 +12,5 @@ export declare class Authorization extends AuthorizationInfo {
|
|
|
13
12
|
optionalMetadata?: string;
|
|
14
13
|
promotionInfoIssuers?: ESMap<string, string>;
|
|
15
14
|
extendableInstrumentToken?: string;
|
|
16
|
-
webFormSettings?: WebFormSettingsDto;
|
|
17
15
|
constructor(action: ActionType, redirectUri: string, limitIssuers: string[], optionalCommerceId: number, type: AuthorizationType, metaReference: string);
|
|
18
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PaymentProcessor } from './PaymentProcessor';
|
|
2
2
|
export declare class IssuerProcessor {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
constructor(
|
|
3
|
+
IssuerId: number;
|
|
4
|
+
Name: string;
|
|
5
|
+
PaymentProcessors: PaymentProcessor[];
|
|
6
|
+
constructor(IssuerId: number, Name: string, PaymentProcessors: PaymentProcessor[]);
|
|
7
7
|
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IssuerProcessor = void 0;
|
|
4
4
|
var IssuerProcessor = /** @class */ (function () {
|
|
5
|
-
function IssuerProcessor(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
5
|
+
function IssuerProcessor(IssuerId, Name, PaymentProcessors) {
|
|
6
|
+
this.IssuerId = IssuerId;
|
|
7
|
+
this.Name = Name;
|
|
8
|
+
this.PaymentProcessors = PaymentProcessors;
|
|
9
9
|
}
|
|
10
10
|
return IssuerProcessor;
|
|
11
11
|
}());
|
|
@@ -48,6 +48,7 @@ var canonizeJson = function (object, keysToSkip) {
|
|
|
48
48
|
var cleanObject = deleteObjectUndefined(object, keysToSkip);
|
|
49
49
|
return sortObject(cleanObject);
|
|
50
50
|
};
|
|
51
|
+
var nonSortedObjects = ['metadata', 'Metadata'];
|
|
51
52
|
var sortObject = function (object) {
|
|
52
53
|
if (Array.isArray(object)) {
|
|
53
54
|
var newArray_1 = [];
|
|
@@ -58,7 +59,9 @@ var sortObject = function (object) {
|
|
|
58
59
|
var newObject_1 = {};
|
|
59
60
|
Object.keys(object)
|
|
60
61
|
.sort()
|
|
61
|
-
.map(function (key) {
|
|
62
|
+
.map(function (key) {
|
|
63
|
+
return (newObject_1[key] = nonSortedObjects.includes(key) ? object[key] : sortObject(object[key]));
|
|
64
|
+
});
|
|
62
65
|
return newObject_1;
|
|
63
66
|
}
|
|
64
67
|
return object;
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BuiltInPagesOptionsDto = void 0;
|
|
4
|
-
var BuiltInPagesOptionsDto = /** @class */ (function () {
|
|
5
|
-
function BuiltInPagesOptionsDto() {
|
|
6
|
-
}
|
|
7
|
-
return BuiltInPagesOptionsDto;
|
|
8
|
-
}());
|
|
9
|
-
exports.BuiltInPagesOptionsDto = BuiltInPagesOptionsDto;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DisplayOptionsDto = void 0;
|
|
4
|
-
var DisplayOptionsDto = /** @class */ (function () {
|
|
5
|
-
function DisplayOptionsDto() {
|
|
6
|
-
}
|
|
7
|
-
return DisplayOptionsDto;
|
|
8
|
-
}());
|
|
9
|
-
exports.DisplayOptionsDto = DisplayOptionsDto;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ExpressCheckoutSettingsDto = void 0;
|
|
4
|
-
var ExpressCheckoutSettingsDto = /** @class */ (function () {
|
|
5
|
-
function ExpressCheckoutSettingsDto() {
|
|
6
|
-
}
|
|
7
|
-
return ExpressCheckoutSettingsDto;
|
|
8
|
-
}());
|
|
9
|
-
exports.ExpressCheckoutSettingsDto = ExpressCheckoutSettingsDto;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TokenizationSettingsDto = void 0;
|
|
4
|
-
var TokenizationSettingsDto = /** @class */ (function () {
|
|
5
|
-
function TokenizationSettingsDto() {
|
|
6
|
-
}
|
|
7
|
-
return TokenizationSettingsDto;
|
|
8
|
-
}());
|
|
9
|
-
exports.TokenizationSettingsDto = TokenizationSettingsDto;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UIOptionsDto = void 0;
|
|
4
|
-
var UIOptionsDto = /** @class */ (function () {
|
|
5
|
-
function UIOptionsDto(colors, theme, autoDarkTheme, logoURL) {
|
|
6
|
-
this.colors = colors;
|
|
7
|
-
this.theme = theme;
|
|
8
|
-
this.autoDarkTheme = autoDarkTheme;
|
|
9
|
-
this.logoURL = logoURL;
|
|
10
|
-
}
|
|
11
|
-
return UIOptionsDto;
|
|
12
|
-
}());
|
|
13
|
-
exports.UIOptionsDto = UIOptionsDto;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ExpressCheckoutSettingsDto } from './ExpressCheckoutSettingsDto';
|
|
2
|
-
import { TokenizationSettingsDto } from './TokenizationSettingsDto';
|
|
3
|
-
import { UIOptionsDto } from './UIOptionsDto';
|
|
4
|
-
export declare class WebFormSettingsDto {
|
|
5
|
-
ui?: UIOptionsDto;
|
|
6
|
-
expressCheckout?: ExpressCheckoutSettingsDto;
|
|
7
|
-
tokenization?: TokenizationSettingsDto;
|
|
8
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebFormSettingsDto = void 0;
|
|
4
|
-
var WebFormSettingsDto = /** @class */ (function () {
|
|
5
|
-
function WebFormSettingsDto() {
|
|
6
|
-
}
|
|
7
|
-
return WebFormSettingsDto;
|
|
8
|
-
}());
|
|
9
|
-
exports.WebFormSettingsDto = WebFormSettingsDto;
|