@houlak/plexo-sdk 0.1.55 → 0.1.57

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.
@@ -8,11 +8,11 @@ export declare class Authorization extends AuthorizationInfo {
8
8
  redirectUri: string;
9
9
  limitIssuers: string[];
10
10
  optionalCommerceId: number;
11
+ webFormSettings: WebFormSettings;
11
12
  doNotUseCallback?: boolean;
12
13
  clientInformation?: any;
13
14
  optionalMetadata?: string;
14
15
  promotionInfoIssuers?: ESMap<string, string>;
15
16
  extendableInstrumentToken?: string;
16
- webFormSettings?: WebFormSettings;
17
- constructor(action: ActionType, redirectUri: string, limitIssuers: string[], optionalCommerceId: number, type: AuthorizationType, metaReference: string);
17
+ constructor(action: ActionType, redirectUri: string, limitIssuers: string[], optionalCommerceId: number, type: AuthorizationType, metaReference: string, webFormSettings: WebFormSettings);
18
18
  }
@@ -19,12 +19,13 @@ exports.Authorization = void 0;
19
19
  var AuthorizationInfo_1 = require("./AuthorizationInfo");
20
20
  var Authorization = /** @class */ (function (_super) {
21
21
  __extends(Authorization, _super);
22
- function Authorization(action, redirectUri, limitIssuers, optionalCommerceId, type, metaReference) {
22
+ function Authorization(action, redirectUri, limitIssuers, optionalCommerceId, type, metaReference, webFormSettings) {
23
23
  var _this = _super.call(this, type, metaReference) || this;
24
24
  _this.action = action;
25
25
  _this.redirectUri = redirectUri;
26
26
  _this.limitIssuers = limitIssuers;
27
27
  _this.optionalCommerceId = optionalCommerceId;
28
+ _this.webFormSettings = webFormSettings || null;
28
29
  return _this;
29
30
  }
30
31
  return Authorization;
@@ -1,4 +1,5 @@
1
1
  export declare class BuiltInPagesOptions {
2
- checkoutSuccessPage?: boolean;
3
- checkoutErrorPage?: boolean;
2
+ checkoutSuccessPage: boolean;
3
+ checkoutErrorPage: boolean;
4
+ constructor(checkoutSuccessPage: boolean, checkoutErrorPage: boolean);
4
5
  }
@@ -2,7 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BuiltInPagesOptions = void 0;
4
4
  var BuiltInPagesOptions = /** @class */ (function () {
5
- function BuiltInPagesOptions() {
5
+ function BuiltInPagesOptions(checkoutSuccessPage, checkoutErrorPage) {
6
+ this.checkoutSuccessPage = checkoutSuccessPage;
7
+ this.checkoutErrorPage = checkoutErrorPage;
6
8
  }
7
9
  return BuiltInPagesOptions;
8
10
  }());
@@ -1,7 +1,8 @@
1
1
  export declare class DisplayOptions {
2
- titles?: boolean;
3
- details?: boolean;
4
- footer?: boolean;
5
- logo?: boolean;
6
- accessibility?: boolean;
2
+ titles: boolean;
3
+ details: boolean;
4
+ footer: boolean;
5
+ logo: boolean;
6
+ accessibility: boolean;
7
+ constructor(titles: boolean, details: boolean, footer: boolean, logo: boolean, accessibility: boolean);
7
8
  }
@@ -2,7 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DisplayOptions = void 0;
4
4
  var DisplayOptions = /** @class */ (function () {
5
- function DisplayOptions() {
5
+ function DisplayOptions(titles, details, footer, logo, accessibility) {
6
+ this.titles = titles;
7
+ this.details = details;
8
+ this.footer = footer;
9
+ this.logo = logo;
10
+ this.accessibility = accessibility;
6
11
  }
7
12
  return DisplayOptions;
8
13
  }());
@@ -1,6 +1,7 @@
1
1
  import { BuiltInPagesOptions } from './BuiltInPagesOptions';
2
2
  import { DisplayOptions } from './DisplayOptions';
3
3
  export declare class ExpressCheckoutSettingsDto {
4
- displayOptions?: DisplayOptions;
5
- builtInPages?: BuiltInPagesOptions;
4
+ displayOptions: DisplayOptions;
5
+ builtInPages: BuiltInPagesOptions;
6
+ constructor(displayOptions: DisplayOptions, builtInPages: BuiltInPagesOptions);
6
7
  }
@@ -2,7 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ExpressCheckoutSettingsDto = void 0;
4
4
  var ExpressCheckoutSettingsDto = /** @class */ (function () {
5
- function ExpressCheckoutSettingsDto() {
5
+ function ExpressCheckoutSettingsDto(displayOptions, builtInPages) {
6
+ this.displayOptions = displayOptions;
7
+ this.builtInPages = builtInPages;
6
8
  }
7
9
  return ExpressCheckoutSettingsDto;
8
10
  }());
@@ -81,6 +81,6 @@ export { TransactionQuery } from './TransactionQuery';
81
81
  export { TransactionResult } from './TransactionResult';
82
82
  export { TransactionType } from './TransactionType';
83
83
  export { TransactionsCSV } from './TransactionsCSV';
84
- export { UIOptionsDto } from './UIOptionsDto';
84
+ export { UIOptions } from './UIOptions';
85
85
  export { WebFormSettings } from './WebFormSettings';
86
86
  export { PlexoErrorEnum } from '../enums/plexo-error-enum';
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TransactionCallback = exports.Transaction = exports.TokenizationSettings = exports.StateObject = exports.SignedObject = exports.ServerSignedResponse = exports.ServerSignedRequest = exports.ServerSignedCallback = exports.ServerResponse = exports.ResultCodes = exports.ReserveRequest = exports.Reserve = exports.ReferenceType = exports.Reference = exports.PaymentRequest = exports.PaymentProcessor = exports.IssuerSignedRequest = exports.IssuerRequest = exports.IssuerProcessor = exports.InstrumentWithMetadata = exports.InstrumentCallback = exports.InclusionType = exports.IdentificationType = exports.GenericStateObject = exports.GenericSignedObject = exports.GenericServerSignedResponse = exports.GenericIssuerSignedRequest = exports.GenericIssuerRequest = exports.GenericClientSignedRequest = exports.GenericClientRequest = exports.FieldType = exports.FieldInfoPaymentProcessors = exports.ExpressCheckoutSettingsDto = exports.DisplayOptions = exports.DeleteInstrumentRequest = exports.CodeAction = exports.ClientSignedResponse = exports.ClientSignedRequest = exports.ClientResponse = exports.ClientRequest = exports.CardTypes = exports.CardStatus = exports.CancelRequest = exports.BuiltInPagesOptions = exports.BaseServerResponse = exports.AuthorizationType = exports.AuthorizationInfo = exports.Authorization = exports.ActionType = exports.BaseResponse = void 0;
4
- exports.PlexoErrorEnum = exports.WebFormSettings = exports.UIOptionsDto = exports.TransactionType = exports.TransactionResult = void 0;
4
+ exports.PlexoErrorEnum = exports.WebFormSettings = exports.UIOptions = exports.TransactionType = exports.TransactionResult = void 0;
5
5
  var BaseResponse_1 = require("../../handler/types/BaseResponse");
6
6
  Object.defineProperty(exports, "BaseResponse", { enumerable: true, get: function () { return BaseResponse_1.BaseResponse; } });
7
7
  var ActionType_1 = require("./ActionType");
@@ -106,8 +106,8 @@ var TransactionResult_1 = require("./TransactionResult");
106
106
  Object.defineProperty(exports, "TransactionResult", { enumerable: true, get: function () { return TransactionResult_1.TransactionResult; } });
107
107
  var TransactionType_1 = require("./TransactionType");
108
108
  Object.defineProperty(exports, "TransactionType", { enumerable: true, get: function () { return TransactionType_1.TransactionType; } });
109
- var UIOptionsDto_1 = require("./UIOptionsDto");
110
- Object.defineProperty(exports, "UIOptionsDto", { enumerable: true, get: function () { return UIOptionsDto_1.UIOptionsDto; } });
109
+ var UIOptions_1 = require("./UIOptions");
110
+ Object.defineProperty(exports, "UIOptions", { enumerable: true, get: function () { return UIOptions_1.UIOptions; } });
111
111
  var WebFormSettings_1 = require("./WebFormSettings");
112
112
  Object.defineProperty(exports, "WebFormSettings", { enumerable: true, get: function () { return WebFormSettings_1.WebFormSettings; } });
113
113
  var plexo_error_enum_1 = require("../enums/plexo-error-enum");
@@ -1,4 +1,5 @@
1
1
  import { DisplayOptions } from './DisplayOptions';
2
2
  export declare class TokenizationSettings {
3
- display?: DisplayOptions;
3
+ display: DisplayOptions;
4
+ constructor(display: DisplayOptions);
4
5
  }
@@ -2,7 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TokenizationSettings = void 0;
4
4
  var TokenizationSettings = /** @class */ (function () {
5
- function TokenizationSettings() {
5
+ function TokenizationSettings(display) {
6
+ this.display = display;
6
7
  }
7
8
  return TokenizationSettings;
8
9
  }());
@@ -0,0 +1,8 @@
1
+ import { Colors } from '../types/ui_options_dto.type';
2
+ export declare class UIOptions {
3
+ colors: Colors;
4
+ theme: string;
5
+ autoDarkTheme: boolean;
6
+ logoURL: string;
7
+ constructor(colors: Colors, theme: string, autoDarkTheme: boolean, logoURL: string);
8
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UIOptions = void 0;
4
+ var UIOptions = /** @class */ (function () {
5
+ function UIOptions(colors, theme, autoDarkTheme, logoURL) {
6
+ this.colors = colors;
7
+ this.theme = theme;
8
+ this.autoDarkTheme = autoDarkTheme;
9
+ this.logoURL = logoURL;
10
+ }
11
+ return UIOptions;
12
+ }());
13
+ exports.UIOptions = UIOptions;
@@ -1,8 +1,9 @@
1
1
  import { ExpressCheckoutSettingsDto } from './ExpressCheckoutSettings';
2
2
  import { TokenizationSettings } from './TokenizationSettings';
3
- import { UIOptionsDto } from './UIOptionsDto';
3
+ import { UIOptions } from './UIOptions';
4
4
  export declare class WebFormSettings {
5
- ui?: UIOptionsDto;
6
- expressCheckout?: ExpressCheckoutSettingsDto;
7
- tokenization?: TokenizationSettings;
5
+ ui: UIOptions;
6
+ expressCheckout: ExpressCheckoutSettingsDto;
7
+ tokenization: TokenizationSettings;
8
+ constructor(ui: UIOptions, expressCheckout: ExpressCheckoutSettingsDto, tokenization: TokenizationSettings);
8
9
  }
@@ -2,7 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WebFormSettings = void 0;
4
4
  var WebFormSettings = /** @class */ (function () {
5
- function WebFormSettings() {
5
+ function WebFormSettings(ui, expressCheckout, tokenization) {
6
+ this.ui = ui;
7
+ this.expressCheckout = expressCheckout;
8
+ this.tokenization = tokenization;
6
9
  }
7
10
  return WebFormSettings;
8
11
  }());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@houlak/plexo-sdk",
3
- "version": "0.1.55",
3
+ "version": "0.1.57",
4
4
  "description": "Node SDK for Plexo payment services",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",