@postpaybr/protos 1.1.11 → 1.1.14

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.
Files changed (105) hide show
  1. package/dist/typescript/account-entry.d.ts +4 -15
  2. package/dist/typescript/account-entry.js +11 -11
  3. package/dist/typescript/address.d.ts +1 -1
  4. package/dist/typescript/address.js +8 -13
  5. package/dist/typescript/admin-card-verification.d.ts +16 -19
  6. package/dist/typescript/admin-card-verification.js +12 -11
  7. package/dist/typescript/administrator.d.ts +10 -17
  8. package/dist/typescript/administrator.js +21 -20
  9. package/dist/typescript/anticipation.d.ts +7 -7
  10. package/dist/typescript/anticipation.js +14 -13
  11. package/dist/typescript/asset.d.ts +3 -3
  12. package/dist/typescript/asset.js +8 -13
  13. package/dist/typescript/auth.d.ts +2 -2
  14. package/dist/typescript/auth.js +8 -8
  15. package/dist/typescript/bank-account.d.ts +5 -8
  16. package/dist/typescript/bank-account.js +12 -12
  17. package/dist/typescript/card-vault.d.ts +1 -1
  18. package/dist/typescript/card-vault.js +8 -8
  19. package/dist/typescript/card-verification.d.ts +1 -1
  20. package/dist/typescript/card-verification.js +8 -11
  21. package/dist/typescript/card.d.ts +5 -20
  22. package/dist/typescript/card.js +17 -16
  23. package/dist/typescript/charge-schedule.d.ts +4 -16
  24. package/dist/typescript/charge-schedule.js +8 -8
  25. package/dist/typescript/charge.d.ts +112 -100
  26. package/dist/typescript/charge.js +38 -38
  27. package/dist/typescript/common.d.ts +122 -0
  28. package/dist/typescript/common.js +11 -0
  29. package/dist/typescript/context.d.ts +16 -46
  30. package/dist/typescript/context.js +16 -15
  31. package/dist/typescript/customer.d.ts +6 -15
  32. package/dist/typescript/customer.js +21 -21
  33. package/dist/typescript/daily-balance.d.ts +5 -8
  34. package/dist/typescript/daily-balance.js +8 -8
  35. package/dist/typescript/document-verification.d.ts +18 -20
  36. package/dist/typescript/document-verification.js +14 -13
  37. package/dist/typescript/email.d.ts +2 -2
  38. package/dist/typescript/email.js +13 -13
  39. package/dist/typescript/expo-push.d.ts +2 -3
  40. package/dist/typescript/expo-push.js +8 -8
  41. package/dist/typescript/fee.d.ts +6 -7
  42. package/dist/typescript/fee.js +11 -11
  43. package/dist/typescript/location.d.ts +1 -1
  44. package/dist/typescript/location.js +8 -8
  45. package/dist/typescript/notification.d.ts +39 -48
  46. package/dist/typescript/notification.js +19 -18
  47. package/dist/typescript/order.d.ts +38 -36
  48. package/dist/typescript/order.js +18 -17
  49. package/dist/typescript/payable.d.ts +39 -40
  50. package/dist/typescript/payable.js +21 -20
  51. package/dist/typescript/payer.d.ts +1 -1
  52. package/dist/typescript/payer.js +8 -8
  53. package/dist/typescript/payment-calculator.d.ts +7 -60
  54. package/dist/typescript/payment-calculator.js +13 -12
  55. package/dist/typescript/payment-card.d.ts +25 -81
  56. package/dist/typescript/payment-card.js +9 -12
  57. package/dist/typescript/payment-gateway.d.ts +9 -19
  58. package/dist/typescript/payment-gateway.js +15 -14
  59. package/dist/typescript/payment-pix.d.ts +3 -78
  60. package/dist/typescript/payment-pix.js +10 -10
  61. package/dist/typescript/receipt.d.ts +20 -43
  62. package/dist/typescript/receipt.js +17 -16
  63. package/dist/typescript/recipient-payment-gateway.d.ts +14 -23
  64. package/dist/typescript/recipient-payment-gateway.js +14 -13
  65. package/dist/typescript/recipient.d.ts +18 -25
  66. package/dist/typescript/recipient.js +20 -19
  67. package/dist/typescript/role.d.ts +3 -9
  68. package/dist/typescript/role.js +14 -13
  69. package/dist/typescript/sms.d.ts +1 -1
  70. package/dist/typescript/sms.js +8 -8
  71. package/dist/typescript/tax.d.ts +38 -60
  72. package/dist/typescript/tax.js +20 -19
  73. package/dist/typescript/transfer.d.ts +38 -19
  74. package/dist/typescript/transfer.js +9 -8
  75. package/dist/typescript/two-factor.d.ts +7 -8
  76. package/dist/typescript/two-factor.js +14 -13
  77. package/dist/typescript/user.d.ts +16 -19
  78. package/dist/typescript/user.js +24 -24
  79. package/dist/typescript/wallet.d.ts +1 -1
  80. package/dist/typescript/wallet.js +8 -8
  81. package/package.json +3 -2
  82. package/src/protos/account-entry.proto +3 -15
  83. package/src/protos/admin-card-verification.proto +0 -2
  84. package/src/protos/administrator.proto +4 -11
  85. package/src/protos/bank-account.proto +4 -5
  86. package/src/protos/charge.proto +12 -47
  87. package/src/protos/common.proto +140 -0
  88. package/src/protos/context.proto +8 -49
  89. package/src/protos/customer.proto +5 -15
  90. package/src/protos/daily-balance.proto +3 -6
  91. package/src/protos/document-verification.proto +5 -6
  92. package/src/protos/expo-push.proto +3 -3
  93. package/src/protos/fee.proto +3 -3
  94. package/src/protos/notification.proto +4 -12
  95. package/src/protos/order.proto +6 -16
  96. package/src/protos/payment-calculator.proto +11 -87
  97. package/src/protos/payment-card.proto +7 -90
  98. package/src/protos/payment-gateway.proto +4 -14
  99. package/src/protos/payment-pix.proto +5 -95
  100. package/src/protos/receipt.proto +7 -44
  101. package/src/protos/recipient-payment-gateway.proto +5 -15
  102. package/src/protos/recipient.proto +4 -9
  103. package/src/protos/role.proto +6 -11
  104. package/src/protos/tax.proto +12 -41
  105. package/src/protos/user.proto +4 -9
@@ -1,32 +1,32 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.6.0
5
- // protoc v3.20.3
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc v6.33.5
6
6
  // source: fee.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.FEE_SERVICE_NAME = exports.FEE_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.FeeServiceControllerMethods = FeeServiceControllerMethods;
10
10
  const microservices_1 = require("@nestjs/microservices");
11
- exports.protobufPackage = 'fee';
12
- exports.FEE_PACKAGE_NAME = 'fee';
11
+ exports.protobufPackage = "fee";
12
+ exports.FEE_PACKAGE_NAME = "fee";
13
13
  function FeeServiceControllerMethods() {
14
14
  return function (constructor) {
15
15
  const grpcMethods = [
16
- 'createFee',
17
- 'updateRecipientFee',
18
- 'getAllDefaultFees',
19
- 'getFeeForRecipientAndMethod',
16
+ "createFee",
17
+ "updateRecipientFee",
18
+ "getAllDefaultFees",
19
+ "getFeeForRecipientAndMethod",
20
20
  ];
21
21
  for (const method of grpcMethods) {
22
22
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
23
- (0, microservices_1.GrpcMethod)('FeeService', method)(constructor.prototype[method], method, descriptor);
23
+ (0, microservices_1.GrpcMethod)("FeeService", method)(constructor.prototype[method], method, descriptor);
24
24
  }
25
25
  const grpcStreamMethods = [];
26
26
  for (const method of grpcStreamMethods) {
27
27
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
28
- (0, microservices_1.GrpcStreamMethod)('FeeService', method)(constructor.prototype[method], method, descriptor);
28
+ (0, microservices_1.GrpcStreamMethod)("FeeService", method)(constructor.prototype[method], method, descriptor);
29
29
  }
30
30
  };
31
31
  }
32
- exports.FEE_SERVICE_NAME = 'FeeService';
32
+ exports.FEE_SERVICE_NAME = "FeeService";
@@ -1,4 +1,4 @@
1
- import { Observable } from 'rxjs';
1
+ import { Observable } from "rxjs";
2
2
  export declare const protobufPackage = "location";
3
3
  export interface State {
4
4
  id: string;
@@ -1,28 +1,28 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.6.0
5
- // protoc v3.20.3
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc v6.33.5
6
6
  // source: location.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.LOCATION_SERVICE_NAME = exports.LOCATION_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.LocationServiceControllerMethods = LocationServiceControllerMethods;
10
10
  /* eslint-disable */
11
11
  const microservices_1 = require("@nestjs/microservices");
12
- exports.protobufPackage = 'location';
13
- exports.LOCATION_PACKAGE_NAME = 'location';
12
+ exports.protobufPackage = "location";
13
+ exports.LOCATION_PACKAGE_NAME = "location";
14
14
  function LocationServiceControllerMethods() {
15
15
  return function (constructor) {
16
- const grpcMethods = ['getCities', 'getStates'];
16
+ const grpcMethods = ["getCities", "getStates"];
17
17
  for (const method of grpcMethods) {
18
18
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
19
- (0, microservices_1.GrpcMethod)('LocationService', method)(constructor.prototype[method], method, descriptor);
19
+ (0, microservices_1.GrpcMethod)("LocationService", method)(constructor.prototype[method], method, descriptor);
20
20
  }
21
21
  const grpcStreamMethods = [];
22
22
  for (const method of grpcStreamMethods) {
23
23
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
24
- (0, microservices_1.GrpcStreamMethod)('LocationService', method)(constructor.prototype[method], method, descriptor);
24
+ (0, microservices_1.GrpcStreamMethod)("LocationService", method)(constructor.prototype[method], method, descriptor);
25
25
  }
26
26
  };
27
27
  }
28
- exports.LOCATION_SERVICE_NAME = 'LocationService';
28
+ exports.LOCATION_SERVICE_NAME = "LocationService";
@@ -1,23 +1,14 @@
1
- import { RecipientType } from '@postpaybr/contracts/enums';
2
- import { ChangesFieldType, NotificationCategory, NotificationImageType } from '@postpaybr/contracts/types';
3
- import { Observable } from 'rxjs';
1
+ import { Observable } from "rxjs";
2
+ import { DateFilter, PaginationFilter } from "./common";
4
3
  export declare const protobufPackage = "notification";
5
4
  export interface GetAllNotificationsDto {
6
5
  recipientId: string;
7
- recipientType: RecipientType;
8
- severities?: number[];
6
+ recipientType: string;
7
+ severities: number[];
9
8
  isRead?: boolean | undefined;
10
9
  }
11
- export interface DateFilter {
12
- startDate?: Date | undefined;
13
- endDate?: Date | undefined;
14
- }
15
- export interface PaginationFilter {
16
- limit?: number | undefined;
17
- offset?: number | undefined;
18
- }
19
10
  export interface NotificationChange {
20
- field: ChangesFieldType;
11
+ field: string;
21
12
  oldValue: string;
22
13
  newValue: string;
23
14
  }
@@ -30,26 +21,26 @@ export interface NotificationMetadata {
30
21
  url?: string | undefined;
31
22
  deviceInfo?: string | undefined;
32
23
  location?: string | undefined;
33
- eventDate?: Date | undefined;
24
+ eventDate?: string | undefined;
34
25
  securityAction?: string | undefined;
35
- changes?: NotificationChange[];
36
- startDate?: Date | undefined;
37
- endDate?: Date | undefined;
26
+ changes: NotificationChange[];
27
+ startDate?: string | undefined;
28
+ endDate?: string | undefined;
38
29
  impactDescription?: string | undefined;
39
30
  updateReason?: string | undefined;
40
- changePoints?: ChangePoint[];
31
+ changePoints: ChangePoint[];
41
32
  userId?: string | undefined;
42
- scheduledPaymentDate?: Date | undefined;
33
+ scheduledPaymentDate?: string | undefined;
43
34
  paymentAmount?: number | undefined;
44
35
  paymentStatus?: string | undefined;
45
36
  paymentMethod?: string | undefined;
46
37
  chargeId?: string | undefined;
47
38
  receiptId?: string | undefined;
48
39
  taxId?: string | undefined;
49
- params?: {
40
+ params: {
50
41
  [key: string]: string;
51
42
  };
52
- actionButtonVariant?: 'default' | 'ghost' | undefined;
43
+ actionButtonVariant?: string | undefined;
53
44
  callToAction?: string | undefined;
54
45
  }
55
46
  export interface NotificationMetadata_ParamsEntry {
@@ -62,33 +53,33 @@ export interface Notification {
62
53
  description: string;
63
54
  isRead: boolean;
64
55
  severity: number;
65
- createdAt: Date;
66
- updatedAt: Date;
67
- category: NotificationCategory;
68
- recipientType: RecipientType;
56
+ createdAt: string;
57
+ updatedAt: string;
58
+ category: string;
59
+ recipientType: string;
69
60
  recipientId: string;
70
61
  imageUrl?: string | undefined;
71
- imageType?: NotificationImageType | undefined;
62
+ imageType?: string | undefined;
72
63
  meta?: NotificationMetadata | undefined;
73
64
  }
74
65
  export interface CreateNotificationRequest {
75
66
  recipientId: string;
76
- recipientType: RecipientType;
67
+ recipientType: string;
77
68
  title: string;
78
69
  description: string;
79
70
  severity?: number | undefined;
80
- category?: NotificationCategory | undefined;
71
+ category?: string | undefined;
81
72
  meta?: NotificationMetadata | undefined;
82
73
  isRead?: boolean | undefined;
83
74
  imageUrl?: string | undefined;
84
- imageType?: NotificationImageType | undefined;
75
+ imageType?: string | undefined;
85
76
  }
86
77
  export interface NotificationResponse {
87
78
  notification: Notification | undefined;
88
79
  }
89
80
  export interface GetNotificationByIdRequest {
90
81
  recipientId: string;
91
- recipientType: RecipientType;
82
+ recipientType: string;
92
83
  id: string;
93
84
  }
94
85
  export interface GetAllNotificationsRequest {
@@ -102,14 +93,14 @@ export interface NotificationsResponse {
102
93
  }
103
94
  export interface CountUnreadNotificationsRequest {
104
95
  recipientId: string;
105
- recipientType: RecipientType;
96
+ recipientType: string;
106
97
  }
107
98
  export interface CountUnreadNotificationsResponse {
108
99
  countNotRead: number;
109
100
  }
110
101
  export interface MarkAsReadRequest {
111
102
  recipientId: string;
112
- recipientType: RecipientType;
103
+ recipientType: string;
113
104
  notificationId: string;
114
105
  }
115
106
  export interface MarkAsReadResponse {
@@ -117,49 +108,49 @@ export interface MarkAsReadResponse {
117
108
  }
118
109
  export interface CreateSecurityNotificationRequest {
119
110
  recipientId: string;
120
- recipientType: RecipientType;
111
+ recipientType: string;
121
112
  deviceInfo?: string | undefined;
122
113
  location?: string | undefined;
123
- eventDate: Date;
114
+ eventDate: string;
124
115
  imageUrl?: string | undefined;
125
- imageType?: NotificationImageType | undefined;
116
+ imageType?: string | undefined;
126
117
  }
127
118
  export interface CreatePasswordChangedNotificationRequest {
128
119
  recipientId: string;
129
- recipientType: RecipientType;
120
+ recipientType: string;
130
121
  deviceInfo?: string | undefined;
131
122
  location?: string | undefined;
132
- eventDate: Date;
123
+ eventDate: string;
133
124
  imageUrl?: string | undefined;
134
- imageType?: NotificationImageType | undefined;
125
+ imageType?: string | undefined;
135
126
  }
136
127
  export interface CreateMaintenanceNotificationRequest {
137
128
  recipientId: string;
138
- recipientType: RecipientType;
139
- startDate: Date;
140
- endDate: Date;
129
+ recipientType: string;
130
+ startDate: string;
131
+ endDate: string;
141
132
  impactDescription: string;
142
133
  imageUrl?: string | undefined;
143
- imageType?: NotificationImageType | undefined;
134
+ imageType?: string | undefined;
144
135
  }
145
136
  export interface CreateTermsUpdatedNotificationRequest {
146
137
  recipientId: string;
147
- recipientType: RecipientType;
138
+ recipientType: string;
148
139
  updateReason: string;
149
140
  changePoints: ChangePoint[];
150
141
  imageUrl?: string | undefined;
151
- imageType?: NotificationImageType | undefined;
142
+ imageType?: string | undefined;
152
143
  }
153
144
  export interface CreateProfileUpdatedNotificationRequest {
154
145
  recipientId: string;
155
- recipientType: RecipientType;
146
+ recipientType: string;
156
147
  changes: NotificationChange[];
157
148
  imageUrl?: string | undefined;
158
- imageType?: NotificationImageType | undefined;
149
+ imageType?: string | undefined;
159
150
  }
160
151
  export interface GetNotificationStatusRequest {
161
152
  recipientId: string;
162
- recipientType: RecipientType;
153
+ recipientType: string;
163
154
  }
164
155
  export interface GetNotificationStatusResponse {
165
156
  hasCritical: boolean;
@@ -1,39 +1,40 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.0
5
- // protoc v3.20.3
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc v6.33.5
6
6
  // source: notification.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.NOTIFICATION_SERVICE_NAME = exports.NOTIFICATION_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.NotificationServiceControllerMethods = NotificationServiceControllerMethods;
10
+ /* eslint-disable */
10
11
  const microservices_1 = require("@nestjs/microservices");
11
- exports.protobufPackage = 'notification';
12
- exports.NOTIFICATION_PACKAGE_NAME = 'notification';
12
+ exports.protobufPackage = "notification";
13
+ exports.NOTIFICATION_PACKAGE_NAME = "notification";
13
14
  function NotificationServiceControllerMethods() {
14
15
  return function (constructor) {
15
16
  const grpcMethods = [
16
- 'createNotification',
17
- 'getNotificationById',
18
- 'getAllNotifications',
19
- 'countUnreadNotifications',
20
- 'markAsRead',
21
- 'createSecurityNotification',
22
- 'createPasswordChangedNotification',
23
- 'createMaintenanceNotification',
24
- 'createTermsUpdatedNotification',
25
- 'createProfileUpdatedNotification',
26
- 'getNotificationStatus',
17
+ "createNotification",
18
+ "getNotificationById",
19
+ "getAllNotifications",
20
+ "countUnreadNotifications",
21
+ "markAsRead",
22
+ "createSecurityNotification",
23
+ "createPasswordChangedNotification",
24
+ "createMaintenanceNotification",
25
+ "createTermsUpdatedNotification",
26
+ "createProfileUpdatedNotification",
27
+ "getNotificationStatus",
27
28
  ];
28
29
  for (const method of grpcMethods) {
29
30
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
30
- (0, microservices_1.GrpcMethod)('NotificationService', method)(constructor.prototype[method], method, descriptor);
31
+ (0, microservices_1.GrpcMethod)("NotificationService", method)(constructor.prototype[method], method, descriptor);
31
32
  }
32
33
  const grpcStreamMethods = [];
33
34
  for (const method of grpcStreamMethods) {
34
35
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
35
- (0, microservices_1.GrpcStreamMethod)('NotificationService', method)(constructor.prototype[method], method, descriptor);
36
+ (0, microservices_1.GrpcStreamMethod)("NotificationService", method)(constructor.prototype[method], method, descriptor);
36
37
  }
37
38
  };
38
39
  }
39
- exports.NOTIFICATION_SERVICE_NAME = 'NotificationService';
40
+ exports.NOTIFICATION_SERVICE_NAME = "NotificationService";
@@ -1,30 +1,22 @@
1
- import { OrderStatus, OrderType, PaymentMethods } from '@postpaybr/contracts/types';
2
- import { Observable } from 'rxjs';
1
+ import { Observable } from "rxjs";
2
+ import { DateFilter, PaginationFilter, Void } from "./common";
3
3
  export declare const protobufPackage = "order";
4
4
  export interface CreateOrderRequest {
5
5
  customerId: string;
6
6
  totalAmount: number;
7
- orderType: OrderType;
7
+ orderType: string;
8
8
  }
9
9
  export interface GetOrderByIdRequest {
10
10
  id: string;
11
- orderType?: OrderType;
11
+ orderType?: string | undefined;
12
12
  }
13
13
  export interface GetAllOrdersRequest {
14
14
  recipientId?: string | undefined;
15
- statuses?: OrderStatus[];
16
- orderType?: OrderType | undefined;
15
+ statuses: string[];
16
+ orderType?: string | undefined;
17
17
  pagination: PaginationFilter | undefined;
18
18
  date: DateFilter | undefined;
19
19
  }
20
- export interface PaginationFilter {
21
- limit?: number | undefined;
22
- offset?: number | undefined;
23
- }
24
- export interface DateFilter {
25
- startDate?: Date | undefined;
26
- endDate?: Date | undefined;
27
- }
28
20
  export interface GetAllOrdersResponse {
29
21
  orders: Order[];
30
22
  count: number;
@@ -32,40 +24,50 @@ export interface GetAllOrdersResponse {
32
24
  export interface CreateOrderItemsRequest {
33
25
  order: Order | undefined;
34
26
  taxIds: string[];
35
- orderType: OrderType;
27
+ orderType: string;
36
28
  }
37
29
  export interface GetReceiptsByOrderIdRequest {
38
30
  orderId: string;
39
- orderType: OrderType;
31
+ orderType: string;
40
32
  }
41
33
  export interface GetReceiptsByOrderIdResponse {
42
34
  receipts: ReceiptEntity[];
43
35
  }
44
36
  export interface updateOrderStatusRequest {
45
37
  orderId: string;
46
- orderStatus: OrderStatus;
47
- orderType: OrderType;
38
+ orderStatus: string;
39
+ orderType: string;
40
+ }
41
+ export interface HealthCheckRequest {
48
42
  }
49
- export interface Void {
43
+ export interface HealthCheckResponse {
44
+ status: string;
45
+ details: {
46
+ [key: string]: string;
47
+ };
48
+ }
49
+ export interface HealthCheckResponse_DetailsEntry {
50
+ key: string;
51
+ value: string;
50
52
  }
51
53
  export interface Order {
52
54
  id: string;
53
55
  totalAmount: number;
54
- status: OrderStatus;
55
- createdAt: Date;
56
- updatedAt: Date;
56
+ status: string;
57
+ createdAt: string;
58
+ updatedAt: string;
57
59
  chargeIds: string[];
58
60
  customerId: string;
59
61
  items: OrderItem[];
60
62
  orderSchedule: OrderSchedule | undefined;
61
- type?: OrderType | undefined;
63
+ type?: string | undefined;
62
64
  }
63
65
  export interface OrderSchedule {
64
66
  id: string;
65
67
  totalAmount: number;
66
- status: OrderStatus;
67
- createdAt: Date;
68
- updatedAt: Date;
68
+ status: string;
69
+ createdAt: string;
70
+ updatedAt: string;
69
71
  chargeIds: string[];
70
72
  customerId: string;
71
73
  items: OrderItem[];
@@ -84,7 +86,7 @@ export interface ReceiptEntity {
84
86
  amount: number;
85
87
  protocol: string;
86
88
  txid?: string | undefined;
87
- createdAt: Date;
89
+ createdAt: string;
88
90
  }
89
91
  export interface GetOrderCustomerNameResponse {
90
92
  customerName: string;
@@ -92,29 +94,29 @@ export interface GetOrderCustomerNameResponse {
92
94
  export interface updateOrderWithChargeIdRequest {
93
95
  orderId: string;
94
96
  chargeId: string;
95
- orderType: OrderType;
97
+ orderType: string;
96
98
  }
97
99
  export interface UpdateOrderAmountAndStatusRequest {
98
100
  id: string;
99
- orderType: OrderType;
101
+ orderType: string;
100
102
  totalAmount: number;
101
- status?: OrderStatus;
103
+ status?: string | undefined;
102
104
  }
103
105
  export interface OrderDetail {
104
106
  id: string;
105
107
  totalAmount: number;
106
- status: OrderStatus;
107
- createdAt: Date;
108
- updatedAt: Date;
108
+ status: string;
109
+ createdAt: string;
110
+ updatedAt: string;
109
111
  chargeIds: string[];
110
112
  customerId: string;
111
- type: OrderType;
113
+ type: string;
112
114
  }
113
115
  export interface OrderPayments {
114
116
  totalPaid: number;
115
117
  totalPending: number;
116
- nextPaymentDate?: Date | undefined;
117
- paymentMethod?: PaymentMethods | undefined;
118
+ nextPaymentDate?: string | undefined;
119
+ paymentMethod?: string | undefined;
118
120
  customerName: string;
119
121
  }
120
122
  export interface DetailedTax {
@@ -1,38 +1,39 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.7
5
- // protoc v6.33.0
4
+ // protoc-gen-ts_proto v2.11.2
5
+ // protoc v6.33.5
6
6
  // source: order.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.ORDER_SERVICE_NAME = exports.ORDER_PACKAGE_NAME = exports.protobufPackage = void 0;
9
9
  exports.OrderServiceControllerMethods = OrderServiceControllerMethods;
10
+ /* eslint-disable */
10
11
  const microservices_1 = require("@nestjs/microservices");
11
- exports.protobufPackage = 'order';
12
- exports.ORDER_PACKAGE_NAME = 'order';
12
+ exports.protobufPackage = "order";
13
+ exports.ORDER_PACKAGE_NAME = "order";
13
14
  function OrderServiceControllerMethods() {
14
15
  return function (constructor) {
15
16
  const grpcMethods = [
16
- 'createOrder',
17
- 'getOrderById',
18
- 'getAllOrders',
19
- 'createOrderItems',
20
- 'getReceiptsByOrderId',
21
- 'updateOrderStatus',
22
- 'getOrderCustomerName',
23
- 'updateOrderWithChargeId',
24
- 'updateOrderAmountAndStatus',
25
- 'getDetailedOrder',
17
+ "createOrder",
18
+ "getOrderById",
19
+ "getAllOrders",
20
+ "createOrderItems",
21
+ "getReceiptsByOrderId",
22
+ "updateOrderStatus",
23
+ "getOrderCustomerName",
24
+ "updateOrderWithChargeId",
25
+ "updateOrderAmountAndStatus",
26
+ "getDetailedOrder",
26
27
  ];
27
28
  for (const method of grpcMethods) {
28
29
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
29
- (0, microservices_1.GrpcMethod)('OrderService', method)(constructor.prototype[method], method, descriptor);
30
+ (0, microservices_1.GrpcMethod)("OrderService", method)(constructor.prototype[method], method, descriptor);
30
31
  }
31
32
  const grpcStreamMethods = [];
32
33
  for (const method of grpcStreamMethods) {
33
34
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
34
- (0, microservices_1.GrpcStreamMethod)('OrderService', method)(constructor.prototype[method], method, descriptor);
35
+ (0, microservices_1.GrpcStreamMethod)("OrderService", method)(constructor.prototype[method], method, descriptor);
35
36
  }
36
37
  };
37
38
  }
38
- exports.ORDER_SERVICE_NAME = 'OrderService';
39
+ exports.ORDER_SERVICE_NAME = "OrderService";