@exclusive-website/types 2.6.0 → 2.6.2

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.
@@ -251,8 +251,8 @@ export declare enum ApprovedState {
251
251
  DISCARDED = "DISCARDED"
252
252
  }
253
253
  export declare enum TransactionStatus {
254
+ PENDING = "PENDING",
254
255
  PAID = "PAID",
255
- UNPAID = "UNPAID",
256
256
  CANCELLED = "CANCELLED",
257
257
  NONE = "NONE"
258
258
  }
@@ -298,8 +298,8 @@ var ApprovedState;
298
298
  })(ApprovedState = exports.ApprovedState || (exports.ApprovedState = {}));
299
299
  var TransactionStatus;
300
300
  (function (TransactionStatus) {
301
+ TransactionStatus["PENDING"] = "PENDING";
301
302
  TransactionStatus["PAID"] = "PAID";
302
- TransactionStatus["UNPAID"] = "UNPAID";
303
303
  TransactionStatus["CANCELLED"] = "CANCELLED";
304
304
  TransactionStatus["NONE"] = "NONE";
305
305
  })(TransactionStatus = exports.TransactionStatus || (exports.TransactionStatus = {}));
package/dist/types.d.ts CHANGED
@@ -313,6 +313,16 @@ export interface TransactionSummaryReadDto {
313
313
  currency: Currency;
314
314
  items: TransactionReadItemDto[];
315
315
  }
316
+ export interface PaymentTransactionReadDto {
317
+ qrCode: MediaDto;
318
+ iban: string;
319
+ currency: Currency;
320
+ }
321
+ export interface PaymentTransactionWriteDto {
322
+ qrCode: MediaDto;
323
+ iban: string;
324
+ currency: Currency;
325
+ }
316
326
  export interface TransactionReadItemDto {
317
327
  category: PricingCategory;
318
328
  durationDays: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exclusive-website/types",
3
- "version": "2.6.0",
3
+ "version": "2.6.2",
4
4
  "description": "A collection of shared types (DTOs and DBEs) for the organization",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -302,8 +302,8 @@ export enum ApprovedState {
302
302
  }
303
303
 
304
304
  export enum TransactionStatus {
305
+ PENDING = "PENDING",
305
306
  PAID = "PAID",
306
- UNPAID = "UNPAID",
307
307
  CANCELLED = "CANCELLED",
308
308
  NONE = "NONE",
309
309
  }
package/src/types.ts CHANGED
@@ -373,6 +373,18 @@ export interface TransactionSummaryReadDto{
373
373
  items: TransactionReadItemDto[];
374
374
  }
375
375
 
376
+ export interface PaymentTransactionReadDto {
377
+ qrCode: MediaDto;
378
+ iban: string;
379
+ currency: Currency;
380
+ }
381
+
382
+ export interface PaymentTransactionWriteDto {
383
+ qrCode: MediaDto;
384
+ iban: string;
385
+ currency: Currency;
386
+ }
387
+
376
388
  export interface TransactionReadItemDto {
377
389
  category: PricingCategory
378
390
  durationDays: number;