@houlak/plexo-sdk 0.1.0 → 0.1.1

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.
@@ -2,6 +2,7 @@ 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';
5
6
  export declare class Authorization extends AuthorizationInfo {
6
7
  action: ActionType;
7
8
  redirectUri: string;
@@ -12,5 +13,6 @@ export declare class Authorization extends AuthorizationInfo {
12
13
  optionalMetadata?: string;
13
14
  promotionInfoIssuers?: ESMap<string, string>;
14
15
  extendableInstrumentToken?: string;
16
+ webFormSettings?: WebFormSettingsDto;
15
17
  constructor(action: ActionType, redirectUri: string, limitIssuers: string[], optionalCommerceId: number, type: AuthorizationType, metaReference: string);
16
18
  }
@@ -0,0 +1,4 @@
1
+ export declare class BuiltInPagesOptionsDto {
2
+ checkoutSuccessPage?: boolean;
3
+ checkoutErrorPage?: boolean;
4
+ }
@@ -0,0 +1,9 @@
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;
@@ -0,0 +1,7 @@
1
+ export declare class DisplayOptionsDto {
2
+ titles?: boolean;
3
+ details?: boolean;
4
+ footer?: boolean;
5
+ logo?: boolean;
6
+ accessibility?: boolean;
7
+ }
@@ -0,0 +1,9 @@
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;
@@ -0,0 +1,6 @@
1
+ import { BuiltInPagesOptionsDto } from './BuiltInPagesOptionsDto';
2
+ import { DisplayOptionsDto } from './DisplayOptionsDto';
3
+ export declare class ExpressCheckoutSettingsDto {
4
+ displayOptionsDto?: DisplayOptionsDto;
5
+ builtInPages?: BuiltInPagesOptionsDto;
6
+ }
@@ -0,0 +1,9 @@
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,7 +1,7 @@
1
1
  import { PaymentProcessor } from './PaymentProcessor';
2
2
  export declare class IssuerProcessor {
3
- IssuerId: number;
4
- Name: string;
5
- PaymentProcessors: PaymentProcessor[];
6
- constructor(IssuerId: number, Name: string, PaymentProcessors: PaymentProcessor[]);
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(IssuerId, Name, PaymentProcessors) {
6
- this.IssuerId = IssuerId;
7
- this.Name = Name;
8
- this.PaymentProcessors = PaymentProcessors;
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
  }());
@@ -0,0 +1,4 @@
1
+ import { DisplayOptionsDto } from './DisplayOptionsDto';
2
+ export declare class TokenizationSettingsDto {
3
+ display?: DisplayOptionsDto;
4
+ }
@@ -0,0 +1,9 @@
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;
@@ -0,0 +1,7 @@
1
+ export declare class UIOptionsDto {
2
+ colors: any;
3
+ theme: string;
4
+ autoDarkTheme: boolean;
5
+ logoURL: string;
6
+ constructor(colors: any, theme: string, autoDarkTheme: boolean, logoURL: string);
7
+ }
@@ -0,0 +1,13 @@
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;
@@ -0,0 +1,8 @@
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
+ }
@@ -0,0 +1,9 @@
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;
@@ -150,6 +150,13 @@ var getCertificate = function () { return __awaiter(void 0, void 0, void 0, func
150
150
  case 0:
151
151
  pathPfx = config_1.config.plexoClient.certificatePath;
152
152
  pfx = fs.readFileSync(pathPfx);
153
+ logger_lib_1.default.info(pathPfx, 'certificate path');
154
+ if (pfx.byteLength > 0) {
155
+ logger_lib_1.default.info(pfx, 'certificate is not empty');
156
+ }
157
+ else {
158
+ logger_lib_1.default.info(pfx, 'certificate is empty');
159
+ }
153
160
  return [4 /*yield*/, new Promise(function (resolve, reject) { return __awaiter(void 0, void 0, void 0, function () {
154
161
  return __generator(this, function (_a) {
155
162
  switch (_a.label) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@houlak/plexo-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Node SDK for Plexo payment services",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",