resurgence-data 1.1.13 → 1.1.16

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.
@@ -229,6 +229,7 @@ export declare class UpdateBillerItemDto extends BaseDTO {
229
229
  export declare class EnrollBillerDto extends CreateBillerDto {
230
230
  id: string;
231
231
  chargeConfigurations?: CreateBillerChargeConfigurationDto[];
232
+ contact?: CreateBillerContactDto;
232
233
  apiKeys?: BillerApiKeyDto[];
233
234
  }
234
235
  export declare class EnrollBillerSettlementAccount extends CreateSettlementAccountDto {
@@ -7,6 +7,7 @@ export declare class TransactionSplitDto {
7
7
  }
8
8
  export declare class PaymentRequestDto {
9
9
  billerId: string;
10
+ apiKey?: string;
10
11
  customerId?: string;
11
12
  invoiceId?: string;
12
13
  paymentPageId?: string;
@@ -23,6 +24,7 @@ export declare class PaymentRequestDto {
23
24
  }
24
25
  export declare class APIPaymentRequestDto {
25
26
  billerId?: string;
27
+ apiKey?: string;
26
28
  customerId?: string;
27
29
  invoiceId?: string;
28
30
  paymentPageId?: string;
@@ -63,6 +63,12 @@ __decorate([
63
63
  (0, class_validator_1.IsNotEmpty)({ message: "Biller ID is required" }),
64
64
  __metadata("design:type", String)
65
65
  ], PaymentRequestDto.prototype, "billerId", void 0);
66
+ __decorate([
67
+ (0, swagger_1.ApiProperty)({ description: "API Key for the biller" }),
68
+ (0, class_validator_1.IsString)({ message: "API key is not provided" }),
69
+ (0, class_validator_2.IsOptional)(),
70
+ __metadata("design:type", String)
71
+ ], PaymentRequestDto.prototype, "apiKey", void 0);
66
72
  __decorate([
67
73
  (0, swagger_1.ApiProperty)({ description: "Unique identifier for the customer", required: false }),
68
74
  (0, class_validator_2.IsOptional)(),
@@ -149,6 +155,12 @@ __decorate([
149
155
  (0, class_validator_2.IsOptional)(),
150
156
  __metadata("design:type", String)
151
157
  ], APIPaymentRequestDto.prototype, "billerId", void 0);
158
+ __decorate([
159
+ (0, swagger_1.ApiProperty)({ description: "API Key for the biller" }),
160
+ (0, class_validator_1.IsString)({ message: "API key is not provided" }),
161
+ (0, class_validator_2.IsOptional)(),
162
+ __metadata("design:type", String)
163
+ ], APIPaymentRequestDto.prototype, "apiKey", void 0);
152
164
  __decorate([
153
165
  (0, swagger_1.ApiProperty)({ description: "Unique identifier for the customer", required: false }),
154
166
  (0, class_validator_2.IsOptional)(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resurgence-data",
3
- "version": "1.1.13",
3
+ "version": "1.1.16",
4
4
  "description": "DTOs and shareable resources",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -1332,6 +1332,7 @@ export class UpdateBillerItemDto extends BaseDTO {
1332
1332
  export class EnrollBillerDto extends CreateBillerDto {
1333
1333
  id: string;
1334
1334
  chargeConfigurations?: CreateBillerChargeConfigurationDto[];
1335
+ contact?: CreateBillerContactDto;
1335
1336
  apiKeys?: BillerApiKeyDto[];
1336
1337
  }
1337
1338
 
@@ -43,6 +43,11 @@ export class PaymentRequestDto {
43
43
  @IsNotEmpty({ message: "Biller ID is required" })
44
44
  billerId: string;
45
45
 
46
+ @ApiProperty({ description: "API Key for the biller" })
47
+ @IsString({ message: "API key is not provided" })
48
+ @IsOptional()
49
+ apiKey?: string;
50
+
46
51
  @ApiProperty({ description: "Unique identifier for the customer", required: false })
47
52
  @IsOptional()
48
53
  @IsUUID("4", { message: "Customer ID must be a valid UUID" })
@@ -114,6 +119,11 @@ export class APIPaymentRequestDto {
114
119
  @IsOptional()
115
120
  billerId?: string;
116
121
 
122
+ @ApiProperty({ description: "API Key for the biller" })
123
+ @IsString({ message: "API key is not provided" })
124
+ @IsOptional()
125
+ apiKey?: string;
126
+
117
127
  @ApiProperty({ description: "Unique identifier for the customer", required: false })
118
128
  @IsOptional()
119
129
  @IsUUID("4", { message: "Customer ID must be a valid UUID" })