@xoxno/types 1.0.337 → 1.0.338

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.
@@ -13,6 +13,14 @@ export declare class DigitalWalletDto {
13
13
  walletType: 'googlePay' | 'applePay';
14
14
  data?: unknown;
15
15
  }
16
+ export declare class CreditCardDto {
17
+ cardNumber?: string;
18
+ cardExpiryDate?: string;
19
+ cardCvv?: string;
20
+ cardHolderName?: string;
21
+ cardHolderCountry?: string;
22
+ saveCardId?: number;
23
+ }
16
24
  export declare class EventGuestRegistrationDto {
17
25
  email?: string;
18
26
  name?: string;
@@ -24,6 +32,7 @@ export declare class EventGuestRegistrationDto {
24
32
  questionAnswers?: EventQuestionAnswerDto[];
25
33
  callbackUrl?: CallbackUrl;
26
34
  digitalWallet?: DigitalWalletDto;
35
+ creditCard?: CreditCardDto;
27
36
  }
28
37
  declare type EventClaimInvitationDto_base = Pick<EventGuestRegistrationDto, "name" | "email" | "phone" | "questionAnswers">;
29
38
  export declare type EventClaimInvitationDto = EventClaimInvitationDto_base ;
@@ -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.EventClaimInvitationDto = exports.EventGuestRegistrationDto = exports.DigitalWalletDto = exports.TicketSelectionDto = void 0;
12
+ exports.EventClaimInvitationDto = exports.EventGuestRegistrationDto = exports.CreditCardDto = exports.DigitalWalletDto = exports.TicketSelectionDto = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  const class_validator_1 = require("class-validator");
@@ -102,6 +102,69 @@ __decorate([
102
102
  (0, class_validator_1.IsOptional)(),
103
103
  __metadata("design:type", Object)
104
104
  ], DigitalWalletDto.prototype, "data", void 0);
105
+ class CreditCardDto {
106
+ }
107
+ exports.CreditCardDto = CreditCardDto;
108
+ __decorate([
109
+ (0, swagger_1.ApiProperty)({
110
+ description: 'Credit card number',
111
+ type: String,
112
+ required: false,
113
+ }),
114
+ (0, class_validator_1.IsOptional)(),
115
+ (0, class_validator_1.IsString)(),
116
+ __metadata("design:type", String)
117
+ ], CreditCardDto.prototype, "cardNumber", void 0);
118
+ __decorate([
119
+ (0, swagger_1.ApiProperty)({
120
+ description: 'Credit card expiry date',
121
+ type: String,
122
+ required: false,
123
+ }),
124
+ (0, class_validator_1.IsOptional)(),
125
+ (0, class_validator_1.IsString)(),
126
+ __metadata("design:type", String)
127
+ ], CreditCardDto.prototype, "cardExpiryDate", void 0);
128
+ __decorate([
129
+ (0, swagger_1.ApiProperty)({
130
+ description: 'Credit card CVV',
131
+ type: String,
132
+ required: false,
133
+ }),
134
+ (0, class_validator_1.IsOptional)(),
135
+ (0, class_validator_1.IsString)(),
136
+ __metadata("design:type", String)
137
+ ], CreditCardDto.prototype, "cardCvv", void 0);
138
+ __decorate([
139
+ (0, swagger_1.ApiProperty)({
140
+ description: 'Credit card name',
141
+ type: String,
142
+ required: false,
143
+ }),
144
+ (0, class_validator_1.IsOptional)(),
145
+ (0, class_validator_1.IsString)(),
146
+ __metadata("design:type", String)
147
+ ], CreditCardDto.prototype, "cardHolderName", void 0);
148
+ __decorate([
149
+ (0, swagger_1.ApiProperty)({
150
+ description: 'Credit card country',
151
+ type: String,
152
+ required: false,
153
+ }),
154
+ (0, class_validator_1.IsOptional)(),
155
+ (0, class_validator_1.IsString)(),
156
+ __metadata("design:type", String)
157
+ ], CreditCardDto.prototype, "cardHolderCountry", void 0);
158
+ __decorate([
159
+ (0, swagger_1.ApiProperty)({
160
+ description: 'Save card ID',
161
+ type: Number,
162
+ required: false,
163
+ }),
164
+ (0, class_validator_1.IsNumber)(),
165
+ (0, class_validator_1.IsOptional)(),
166
+ __metadata("design:type", Number)
167
+ ], CreditCardDto.prototype, "saveCardId", void 0);
105
168
  class EventGuestRegistrationDto {
106
169
  }
107
170
  exports.EventGuestRegistrationDto = EventGuestRegistrationDto;
@@ -217,6 +280,17 @@ __decorate([
217
280
  (0, class_transformer_1.Type)(() => DigitalWalletDto),
218
281
  __metadata("design:type", DigitalWalletDto)
219
282
  ], EventGuestRegistrationDto.prototype, "digitalWallet", void 0);
283
+ __decorate([
284
+ (0, swagger_1.ApiPropertyOptional)({
285
+ description: 'Credit card payload used when completing fiat payments via credit card',
286
+ type: () => CreditCardDto,
287
+ required: false,
288
+ }),
289
+ (0, class_validator_1.IsOptional)(),
290
+ (0, class_validator_1.ValidateNested)(),
291
+ (0, class_transformer_1.Type)(() => CreditCardDto),
292
+ __metadata("design:type", CreditCardDto)
293
+ ], EventGuestRegistrationDto.prototype, "creditCard", void 0);
220
294
  class EventClaimInvitationDto extends (0, swagger_1.PickType)(EventGuestRegistrationDto, ['email', 'name', 'phone', 'questionAnswers']) {
221
295
  }
222
296
  exports.EventClaimInvitationDto = EventClaimInvitationDto;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.337",
3
+ "version": "1.0.338",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {