@xoxno/types 1.0.340 → 1.0.341

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.
@@ -18,9 +18,22 @@ declare class StripePaymentFormData {
18
18
  sessionId: string;
19
19
  publicKey: string;
20
20
  }
21
+ export declare class XMoneyRedirectParams {
22
+ url: string;
23
+ params: Record<string, string>;
24
+ formMethod?: string;
25
+ }
26
+ export declare class XMoneyPaymentFormData {
27
+ orderId: number;
28
+ transactionId: number;
29
+ cardId?: number;
30
+ is3d?: 0 | 1;
31
+ isRedirect?: boolean;
32
+ redirect?: XMoneyRedirectParams;
33
+ }
21
34
  declare class FiatPaymentForm {
22
35
  type: PaymentProvider;
23
- data: TwispayPaymentFormData | StripePaymentFormData | TwispayDigitalWalletPaymentData;
36
+ data: TwispayPaymentFormData | StripePaymentFormData | TwispayDigitalWalletPaymentData | XMoneyPaymentFormData;
24
37
  }
25
38
  declare class CryptoPaymentResult {
26
39
  signature: string;
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.EventRegistrationResponseDto = void 0;
12
+ exports.EventRegistrationResponseDto = exports.XMoneyPaymentFormData = exports.XMoneyRedirectParams = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const event_guest_doc_1 = require("./event-guest.doc");
15
15
  const payment_provider_enum_1 = require("../../../enums/payment-provider.enum");
@@ -83,6 +83,59 @@ __decorate([
83
83
  (0, swagger_1.ApiProperty)(),
84
84
  __metadata("design:type", String)
85
85
  ], StripePaymentFormData.prototype, "publicKey", void 0);
86
+ class XMoneyRedirectParams {
87
+ }
88
+ exports.XMoneyRedirectParams = XMoneyRedirectParams;
89
+ __decorate([
90
+ (0, swagger_1.ApiProperty)({ description: 'URL to redirect to for 3D Secure' }),
91
+ __metadata("design:type", String)
92
+ ], XMoneyRedirectParams.prototype, "url", void 0);
93
+ __decorate([
94
+ (0, swagger_1.ApiProperty)({
95
+ description: 'Parameters to send with the redirect',
96
+ type: 'object',
97
+ additionalProperties: true,
98
+ }),
99
+ __metadata("design:type", Object)
100
+ ], XMoneyRedirectParams.prototype, "params", void 0);
101
+ __decorate([
102
+ (0, swagger_1.ApiPropertyOptional)({
103
+ description: 'HTTP method for the redirect (POST or GET)',
104
+ }),
105
+ __metadata("design:type", String)
106
+ ], XMoneyRedirectParams.prototype, "formMethod", void 0);
107
+ class XMoneyPaymentFormData {
108
+ }
109
+ exports.XMoneyPaymentFormData = XMoneyPaymentFormData;
110
+ __decorate([
111
+ (0, swagger_1.ApiProperty)({ description: 'Order ID from xMoney' }),
112
+ __metadata("design:type", Number)
113
+ ], XMoneyPaymentFormData.prototype, "orderId", void 0);
114
+ __decorate([
115
+ (0, swagger_1.ApiProperty)({ description: 'Transaction ID from xMoney' }),
116
+ __metadata("design:type", Number)
117
+ ], XMoneyPaymentFormData.prototype, "transactionId", void 0);
118
+ __decorate([
119
+ (0, swagger_1.ApiPropertyOptional)({ description: 'Card ID if the card was saved' }),
120
+ __metadata("design:type", Number)
121
+ ], XMoneyPaymentFormData.prototype, "cardId", void 0);
122
+ __decorate([
123
+ (0, swagger_1.ApiPropertyOptional)({
124
+ description: 'Whether 3D Secure is required (0 or 1)',
125
+ }),
126
+ __metadata("design:type", Number)
127
+ ], XMoneyPaymentFormData.prototype, "is3d", void 0);
128
+ __decorate([
129
+ (0, swagger_1.ApiPropertyOptional)({ description: 'Whether a redirect is required' }),
130
+ __metadata("design:type", Boolean)
131
+ ], XMoneyPaymentFormData.prototype, "isRedirect", void 0);
132
+ __decorate([
133
+ (0, swagger_1.ApiPropertyOptional)({
134
+ description: 'Redirect data for 3D Secure',
135
+ type: () => XMoneyRedirectParams,
136
+ }),
137
+ __metadata("design:type", XMoneyRedirectParams)
138
+ ], XMoneyPaymentFormData.prototype, "redirect", void 0);
86
139
  let FiatPaymentForm = class FiatPaymentForm {
87
140
  };
88
141
  __decorate([
@@ -98,12 +151,13 @@ __decorate([
98
151
  { $ref: '#/components/schemas/TwispayPaymentFormData' },
99
152
  { $ref: '#/components/schemas/StripePaymentFormData' },
100
153
  { $ref: '#/components/schemas/TwispayDigitalWalletPaymentData' },
154
+ { $ref: '#/components/schemas/XMoneyPaymentFormData' },
101
155
  ],
102
156
  }),
103
157
  __metadata("design:type", Object)
104
158
  ], FiatPaymentForm.prototype, "data", void 0);
105
159
  FiatPaymentForm = __decorate([
106
- (0, swagger_1.ApiExtraModels)(TwispayPaymentFormData, StripePaymentFormData, TwispayDigitalWalletPaymentData)
160
+ (0, swagger_1.ApiExtraModels)(TwispayPaymentFormData, StripePaymentFormData, TwispayDigitalWalletPaymentData, XMoneyPaymentFormData)
107
161
  ], FiatPaymentForm);
108
162
  class CryptoPaymentResult {
109
163
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.340",
3
+ "version": "1.0.341",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {