@platfformx/proto-contracts 1.6.4 → 1.6.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.
|
@@ -3,6 +3,9 @@ export declare const protobufPackage = "order.v1";
|
|
|
3
3
|
export interface CreateOrderRequest {
|
|
4
4
|
userId: string;
|
|
5
5
|
items: OrderItem[];
|
|
6
|
+
promocodeCode?: string | undefined;
|
|
7
|
+
targetId?: string | undefined;
|
|
8
|
+
targetSum?: string | undefined;
|
|
6
9
|
}
|
|
7
10
|
export interface CreateOrderResponse {
|
|
8
11
|
orderId: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
|
-
import { Timestamp } from "../google/protobuf/timestamp";
|
|
3
2
|
export declare const protobufPackage = "promo.v1";
|
|
4
3
|
export declare enum TargetType {
|
|
5
4
|
TARGET_TYPE_UNSPECIFIED = 0,
|
|
@@ -32,8 +31,8 @@ export interface CreatePromocodeRequest {
|
|
|
32
31
|
discountValue: string;
|
|
33
32
|
promocodeType: PromocodeType;
|
|
34
33
|
maxUses: number;
|
|
35
|
-
startDate:
|
|
36
|
-
endDate:
|
|
34
|
+
startDate: string;
|
|
35
|
+
endDate: string;
|
|
37
36
|
}
|
|
38
37
|
export interface CreatePromocodeResponse {
|
|
39
38
|
promocodeId: string;
|
package/package.json
CHANGED
|
@@ -11,6 +11,9 @@ service OrderService {
|
|
|
11
11
|
message CreateOrderRequest {
|
|
12
12
|
string user_id = 1;
|
|
13
13
|
repeated OrderItem items = 2;
|
|
14
|
+
optional string promocode_code = 3;
|
|
15
|
+
optional string target_id = 4;
|
|
16
|
+
optional string target_sum = 5;
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
message CreateOrderResponse {
|
|
@@ -2,7 +2,6 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package promo.v1;
|
|
4
4
|
|
|
5
|
-
import "google/protobuf/timestamp.proto";
|
|
6
5
|
|
|
7
6
|
service PromoService {
|
|
8
7
|
rpc CreatePromocode (CreatePromocodeRequest) returns (CreatePromocodeResponse);
|
|
@@ -21,8 +20,8 @@ message CreatePromocodeRequest {
|
|
|
21
20
|
string discount_value = 6;
|
|
22
21
|
PromocodeType promocode_type = 7;
|
|
23
22
|
int32 max_uses = 8;
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
string start_date = 9;
|
|
24
|
+
string end_date = 10;
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
|