@nomalism-com/types 0.14.5 → 0.14.7

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.
@@ -84,10 +84,15 @@ export interface IProviderPaymentRequest {
84
84
  export interface IPaymentsNotExportedResponse {
85
85
  iban: string;
86
86
  payment_ids: string[];
87
+ documents: {
88
+ name: string;
89
+ pdf_link: string | null;
90
+ total: number;
91
+ }[];
87
92
  provider: string;
88
93
  value: number;
89
94
  }
90
- export type IExportPaymentsRequest = IPaymentsNotExportedResponse;
95
+ export type IExportPaymentsRequest = Pick<IPaymentsNotExportedResponse, 'provider' | 'value'>;
91
96
  export type IBatchType = 'national' | 'international' | 'null';
92
97
  export interface IPaymentsBatchResponse {
93
98
  batch_id: string;
@@ -95,6 +100,11 @@ export interface IPaymentsBatchResponse {
95
100
  batch_type: IBatchType | null;
96
101
  multimedia_id: string | null;
97
102
  times_downloaded: number;
103
+ documents: {
104
+ name: string;
105
+ pdf_link: string | null;
106
+ total: number;
107
+ }[];
98
108
  updated_at: Date;
99
109
  updated_by: string;
100
110
  created_by: string;
@@ -51,8 +51,6 @@ exports.providerPaymentBody = joi_1.default
51
51
  .messages(messages_1.messages);
52
52
  var exportPaymentsBodyKeys = {
53
53
  value: joi_1.default.number().positive().required(),
54
- iban: joi_1.default.string().required(),
55
- payment_ids: joi_1.default.array().items(joi_1.default.string().uuid().required()),
56
54
  provider: joi_1.default.string().required(),
57
55
  };
58
56
  exports.exportPaymentsBody = joi_1.default
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.14.5",
12
+ "version": "0.14.7",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [