@paakd/api 0.0.2 → 0.0.4
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.
- package/package.json +11 -9
- package/buf/validate/validate_pb.ts +0 -5001
- package/gen/buf/validate/validate_pb.ts +0 -4799
- package/gen/src/proto/auth/v1/authv1connect/service.connect.go +0 -454
- package/gen/src/proto/auth/v1/entities/auth.pb.go +0 -818
- package/gen/src/proto/auth/v1/entities/auth_pb.ts +0 -348
- package/gen/src/proto/auth/v1/entities/policy.pb.go +0 -727
- package/gen/src/proto/auth/v1/entities/policy_pb.ts +0 -306
- package/gen/src/proto/auth/v1/service-AuthService_connectquery.ts +0 -70
- package/gen/src/proto/auth/v1/service.pb.go +0 -119
- package/gen/src/proto/auth/v1/service_pb.ts +0 -152
- package/gen/src/proto/customers/v1/customersv1connect/service.connect.go +0 -358
- package/gen/src/proto/customers/v1/entities/address.pb.go +0 -1073
- package/gen/src/proto/customers/v1/entities/address_pb.ts +0 -478
- package/gen/src/proto/customers/v1/entities/profile.pb.go +0 -633
- package/gen/src/proto/customers/v1/entities/profile_pb.ts +0 -252
- package/gen/src/proto/customers/v1/service-CustomerService_connectquery.ts +0 -50
- package/gen/src/proto/customers/v1/service.pb.go +0 -110
- package/gen/src/proto/customers/v1/service_pb.ts +0 -121
- package/gen/src/proto/files/v1/entities/file.pb.go +0 -669
- package/gen/src/proto/files/v1/entities/file_pb.ts +0 -265
- package/gen/src/proto/files/v1/filesv1connect/service.connect.go +0 -200
- package/gen/src/proto/files/v1/service-FileService_connectquery.ts +0 -25
- package/gen/src/proto/files/v1/service.pb.go +0 -85
- package/gen/src/proto/files/v1/service_pb.ts +0 -65
- package/gen/src/proto/products/v1/entities/category.pb.go +0 -744
- package/gen/src/proto/products/v1/entities/category_pb.ts +0 -318
- package/gen/src/proto/products/v1/entities/collection.pb.go +0 -528
- package/gen/src/proto/products/v1/entities/collection_pb.ts +0 -214
- package/gen/src/proto/products/v1/entities/product/create.pb.go +0 -453
- package/gen/src/proto/products/v1/entities/product/create_pb.ts +0 -199
- package/gen/src/proto/products/v1/entities/product/option.pb.go +0 -206
- package/gen/src/proto/products/v1/entities/product/option_pb.ts +0 -74
- package/gen/src/proto/products/v1/entities/product/shared.pb.go +0 -2890
- package/gen/src/proto/products/v1/entities/product/shared_pb.ts +0 -1317
- package/gen/src/proto/products/v1/entities/product/update.pb.go +0 -794
- package/gen/src/proto/products/v1/entities/product/update_pb.ts +0 -325
- package/gen/src/proto/products/v1/entities/tag.pb.go +0 -610
- package/gen/src/proto/products/v1/entities/tag_pb.ts +0 -233
- package/gen/src/proto/products/v1/entities/taxonomy.pb.go +0 -1352
- package/gen/src/proto/products/v1/entities/taxonomy_pb.ts +0 -606
- package/gen/src/proto/products/v1/entities/type.pb.go +0 -553
- package/gen/src/proto/products/v1/entities/type_pb.ts +0 -215
- package/gen/src/proto/products/v1/entities/variant.pb.go +0 -1474
- package/gen/src/proto/products/v1/entities/variant_pb.ts +0 -629
- package/gen/src/proto/products/v1/productsv1connect/service.connect.go +0 -1195
- package/gen/src/proto/products/v1/service-ProductsService_connectquery.ts +0 -199
- package/gen/src/proto/products/v1/service.pb.go +0 -250
- package/gen/src/proto/products/v1/service_pb.ts +0 -429
- package/gen/src/proto/promotions/v1/entities/campaign.pb.go +0 -1229
- package/gen/src/proto/promotions/v1/entities/campaign_pb.ts +0 -511
- package/gen/src/proto/promotions/v1/promotionsv1connect/service.connect.go +0 -289
- package/gen/src/proto/promotions/v1/service-CampaignService_connectquery.ts +0 -42
- package/gen/src/proto/promotions/v1/service.pb.go +0 -98
- package/gen/src/proto/promotions/v1/service_pb.ts +0 -95
- package/gen/src/proto/stocknodes/v1/entities/stocknode.pb.go +0 -1499
- package/gen/src/proto/stocknodes/v1/entities/stocknode_pb.ts +0 -655
- package/gen/src/proto/stocknodes/v1/service-StockNodesService_connectquery.ts +0 -41
- package/gen/src/proto/stocknodes/v1/service.pb.go +0 -98
- package/gen/src/proto/stocknodes/v1/service_pb.ts +0 -95
- package/gen/src/proto/stocknodes/v1/stocknodesv1connect/service.connect.go +0 -297
|
@@ -1,1474 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-go v1.36.6
|
|
4
|
-
// protoc (unknown)
|
|
5
|
-
// source: src/proto/products/v1/entities/variant.proto
|
|
6
|
-
|
|
7
|
-
package entities
|
|
8
|
-
|
|
9
|
-
import (
|
|
10
|
-
_ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
|
|
11
|
-
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
12
|
-
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
13
|
-
product "paakd.com/packages/api/gen/src/proto/products/v1/entities/product"
|
|
14
|
-
reflect "reflect"
|
|
15
|
-
sync "sync"
|
|
16
|
-
unsafe "unsafe"
|
|
17
|
-
)
|
|
18
|
-
|
|
19
|
-
const (
|
|
20
|
-
// Verify that this generated code is sufficiently up-to-date.
|
|
21
|
-
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
22
|
-
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
23
|
-
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
type CreateVariantRequest_Price_Rule_Type int32
|
|
27
|
-
|
|
28
|
-
const (
|
|
29
|
-
CreateVariantRequest_Price_Rule_TYPE_UNSPECIFIED CreateVariantRequest_Price_Rule_Type = 0
|
|
30
|
-
CreateVariantRequest_Price_Rule_TYPE_REGION CreateVariantRequest_Price_Rule_Type = 1
|
|
31
|
-
CreateVariantRequest_Price_Rule_TYPE_CUSTOMER_GROUP CreateVariantRequest_Price_Rule_Type = 2
|
|
32
|
-
)
|
|
33
|
-
|
|
34
|
-
// Enum value maps for CreateVariantRequest_Price_Rule_Type.
|
|
35
|
-
var (
|
|
36
|
-
CreateVariantRequest_Price_Rule_Type_name = map[int32]string{
|
|
37
|
-
0: "TYPE_UNSPECIFIED",
|
|
38
|
-
1: "TYPE_REGION",
|
|
39
|
-
2: "TYPE_CUSTOMER_GROUP",
|
|
40
|
-
}
|
|
41
|
-
CreateVariantRequest_Price_Rule_Type_value = map[string]int32{
|
|
42
|
-
"TYPE_UNSPECIFIED": 0,
|
|
43
|
-
"TYPE_REGION": 1,
|
|
44
|
-
"TYPE_CUSTOMER_GROUP": 2,
|
|
45
|
-
}
|
|
46
|
-
)
|
|
47
|
-
|
|
48
|
-
func (x CreateVariantRequest_Price_Rule_Type) Enum() *CreateVariantRequest_Price_Rule_Type {
|
|
49
|
-
p := new(CreateVariantRequest_Price_Rule_Type)
|
|
50
|
-
*p = x
|
|
51
|
-
return p
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
func (x CreateVariantRequest_Price_Rule_Type) String() string {
|
|
55
|
-
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
func (CreateVariantRequest_Price_Rule_Type) Descriptor() protoreflect.EnumDescriptor {
|
|
59
|
-
return file_src_proto_products_v1_entities_variant_proto_enumTypes[0].Descriptor()
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
func (CreateVariantRequest_Price_Rule_Type) Type() protoreflect.EnumType {
|
|
63
|
-
return &file_src_proto_products_v1_entities_variant_proto_enumTypes[0]
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
func (x CreateVariantRequest_Price_Rule_Type) Number() protoreflect.EnumNumber {
|
|
67
|
-
return protoreflect.EnumNumber(x)
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// Deprecated: Use CreateVariantRequest_Price_Rule_Type.Descriptor instead.
|
|
71
|
-
func (CreateVariantRequest_Price_Rule_Type) EnumDescriptor() ([]byte, []int) {
|
|
72
|
-
return file_src_proto_products_v1_entities_variant_proto_rawDescGZIP(), []int{2, 0, 0, 0}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
type AssociateVariantToInventoryRequest struct {
|
|
76
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
77
|
-
VariantId string `protobuf:"bytes,1,opt,name=variant_id,json=variantId,proto3" json:"variant_id,omitempty"`
|
|
78
|
-
InventoryId string `protobuf:"bytes,2,opt,name=inventory_id,json=inventoryId,proto3" json:"inventory_id,omitempty"`
|
|
79
|
-
ProductId string `protobuf:"bytes,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
|
|
80
|
-
RequiredQuantity int32 `protobuf:"varint,4,opt,name=required_quantity,json=requiredQuantity,proto3" json:"required_quantity,omitempty"`
|
|
81
|
-
unknownFields protoimpl.UnknownFields
|
|
82
|
-
sizeCache protoimpl.SizeCache
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
func (x *AssociateVariantToInventoryRequest) Reset() {
|
|
86
|
-
*x = AssociateVariantToInventoryRequest{}
|
|
87
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[0]
|
|
88
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
89
|
-
ms.StoreMessageInfo(mi)
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
func (x *AssociateVariantToInventoryRequest) String() string {
|
|
93
|
-
return protoimpl.X.MessageStringOf(x)
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
func (*AssociateVariantToInventoryRequest) ProtoMessage() {}
|
|
97
|
-
|
|
98
|
-
func (x *AssociateVariantToInventoryRequest) ProtoReflect() protoreflect.Message {
|
|
99
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[0]
|
|
100
|
-
if x != nil {
|
|
101
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
102
|
-
if ms.LoadMessageInfo() == nil {
|
|
103
|
-
ms.StoreMessageInfo(mi)
|
|
104
|
-
}
|
|
105
|
-
return ms
|
|
106
|
-
}
|
|
107
|
-
return mi.MessageOf(x)
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// Deprecated: Use AssociateVariantToInventoryRequest.ProtoReflect.Descriptor instead.
|
|
111
|
-
func (*AssociateVariantToInventoryRequest) Descriptor() ([]byte, []int) {
|
|
112
|
-
return file_src_proto_products_v1_entities_variant_proto_rawDescGZIP(), []int{0}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
func (x *AssociateVariantToInventoryRequest) GetVariantId() string {
|
|
116
|
-
if x != nil {
|
|
117
|
-
return x.VariantId
|
|
118
|
-
}
|
|
119
|
-
return ""
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
func (x *AssociateVariantToInventoryRequest) GetInventoryId() string {
|
|
123
|
-
if x != nil {
|
|
124
|
-
return x.InventoryId
|
|
125
|
-
}
|
|
126
|
-
return ""
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
func (x *AssociateVariantToInventoryRequest) GetProductId() string {
|
|
130
|
-
if x != nil {
|
|
131
|
-
return x.ProductId
|
|
132
|
-
}
|
|
133
|
-
return ""
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
func (x *AssociateVariantToInventoryRequest) GetRequiredQuantity() int32 {
|
|
137
|
-
if x != nil {
|
|
138
|
-
return x.RequiredQuantity
|
|
139
|
-
}
|
|
140
|
-
return 0
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
type AssociateVariantToInventoryResponse struct {
|
|
144
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
145
|
-
Variant *product.Variant `protobuf:"bytes,1,opt,name=variant,proto3" json:"variant,omitempty"`
|
|
146
|
-
unknownFields protoimpl.UnknownFields
|
|
147
|
-
sizeCache protoimpl.SizeCache
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
func (x *AssociateVariantToInventoryResponse) Reset() {
|
|
151
|
-
*x = AssociateVariantToInventoryResponse{}
|
|
152
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[1]
|
|
153
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
154
|
-
ms.StoreMessageInfo(mi)
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
func (x *AssociateVariantToInventoryResponse) String() string {
|
|
158
|
-
return protoimpl.X.MessageStringOf(x)
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
func (*AssociateVariantToInventoryResponse) ProtoMessage() {}
|
|
162
|
-
|
|
163
|
-
func (x *AssociateVariantToInventoryResponse) ProtoReflect() protoreflect.Message {
|
|
164
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[1]
|
|
165
|
-
if x != nil {
|
|
166
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
167
|
-
if ms.LoadMessageInfo() == nil {
|
|
168
|
-
ms.StoreMessageInfo(mi)
|
|
169
|
-
}
|
|
170
|
-
return ms
|
|
171
|
-
}
|
|
172
|
-
return mi.MessageOf(x)
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
// Deprecated: Use AssociateVariantToInventoryResponse.ProtoReflect.Descriptor instead.
|
|
176
|
-
func (*AssociateVariantToInventoryResponse) Descriptor() ([]byte, []int) {
|
|
177
|
-
return file_src_proto_products_v1_entities_variant_proto_rawDescGZIP(), []int{1}
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
func (x *AssociateVariantToInventoryResponse) GetVariant() *product.Variant {
|
|
181
|
-
if x != nil {
|
|
182
|
-
return x.Variant
|
|
183
|
-
}
|
|
184
|
-
return nil
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
type CreateVariantRequest struct {
|
|
188
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
189
|
-
ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
|
|
190
|
-
Sku *string `protobuf:"bytes,2,opt,name=sku,proto3,oneof" json:"sku,omitempty"`
|
|
191
|
-
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
|
|
192
|
-
Ean *string `protobuf:"bytes,4,opt,name=ean,proto3,oneof" json:"ean,omitempty"`
|
|
193
|
-
Upc *string `protobuf:"bytes,5,opt,name=upc,proto3,oneof" json:"upc,omitempty"`
|
|
194
|
-
Barcode *string `protobuf:"bytes,6,opt,name=barcode,proto3,oneof" json:"barcode,omitempty"`
|
|
195
|
-
HsCode *string `protobuf:"bytes,7,opt,name=hs_code,json=hsCode,proto3,oneof" json:"hs_code,omitempty"`
|
|
196
|
-
MidCode *string `protobuf:"bytes,8,opt,name=mid_code,json=midCode,proto3,oneof" json:"mid_code,omitempty"`
|
|
197
|
-
AllowBackorder *bool `protobuf:"varint,9,opt,name=allow_backorder,json=allowBackorder,proto3,oneof" json:"allow_backorder,omitempty"`
|
|
198
|
-
IsManagedInventory *bool `protobuf:"varint,10,opt,name=is_managed_inventory,json=isManagedInventory,proto3,oneof" json:"is_managed_inventory,omitempty"`
|
|
199
|
-
Rank *int32 `protobuf:"varint,11,opt,name=rank,proto3,oneof" json:"rank,omitempty"`
|
|
200
|
-
Weight *float32 `protobuf:"fixed32,12,opt,name=weight,proto3,oneof" json:"weight,omitempty"`
|
|
201
|
-
Length *float32 `protobuf:"fixed32,13,opt,name=length,proto3,oneof" json:"length,omitempty"`
|
|
202
|
-
Height *float32 `protobuf:"fixed32,14,opt,name=height,proto3,oneof" json:"height,omitempty"`
|
|
203
|
-
Width *float32 `protobuf:"fixed32,15,opt,name=width,proto3,oneof" json:"width,omitempty"`
|
|
204
|
-
OriginCountry *string `protobuf:"bytes,16,opt,name=origin_country,json=originCountry,proto3,oneof" json:"origin_country,omitempty"`
|
|
205
|
-
Material *string `protobuf:"bytes,17,opt,name=material,proto3,oneof" json:"material,omitempty"`
|
|
206
|
-
Options map[string]string `protobuf:"bytes,18,rep,name=options,proto3" json:"options,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
207
|
-
Metadata map[string]string `protobuf:"bytes,19,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
208
|
-
Prices []*CreateVariantRequest_Price `protobuf:"bytes,20,rep,name=prices,proto3" json:"prices,omitempty"`
|
|
209
|
-
InventoryItems []*CreateVariantRequest_InventoryItem `protobuf:"bytes,21,rep,name=inventory_items,json=inventoryItems,proto3" json:"inventory_items,omitempty"`
|
|
210
|
-
unknownFields protoimpl.UnknownFields
|
|
211
|
-
sizeCache protoimpl.SizeCache
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
func (x *CreateVariantRequest) Reset() {
|
|
215
|
-
*x = CreateVariantRequest{}
|
|
216
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[2]
|
|
217
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
218
|
-
ms.StoreMessageInfo(mi)
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
func (x *CreateVariantRequest) String() string {
|
|
222
|
-
return protoimpl.X.MessageStringOf(x)
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
func (*CreateVariantRequest) ProtoMessage() {}
|
|
226
|
-
|
|
227
|
-
func (x *CreateVariantRequest) ProtoReflect() protoreflect.Message {
|
|
228
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[2]
|
|
229
|
-
if x != nil {
|
|
230
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
231
|
-
if ms.LoadMessageInfo() == nil {
|
|
232
|
-
ms.StoreMessageInfo(mi)
|
|
233
|
-
}
|
|
234
|
-
return ms
|
|
235
|
-
}
|
|
236
|
-
return mi.MessageOf(x)
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
// Deprecated: Use CreateVariantRequest.ProtoReflect.Descriptor instead.
|
|
240
|
-
func (*CreateVariantRequest) Descriptor() ([]byte, []int) {
|
|
241
|
-
return file_src_proto_products_v1_entities_variant_proto_rawDescGZIP(), []int{2}
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
func (x *CreateVariantRequest) GetProductId() string {
|
|
245
|
-
if x != nil {
|
|
246
|
-
return x.ProductId
|
|
247
|
-
}
|
|
248
|
-
return ""
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
func (x *CreateVariantRequest) GetSku() string {
|
|
252
|
-
if x != nil && x.Sku != nil {
|
|
253
|
-
return *x.Sku
|
|
254
|
-
}
|
|
255
|
-
return ""
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
func (x *CreateVariantRequest) GetTitle() string {
|
|
259
|
-
if x != nil {
|
|
260
|
-
return x.Title
|
|
261
|
-
}
|
|
262
|
-
return ""
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
func (x *CreateVariantRequest) GetEan() string {
|
|
266
|
-
if x != nil && x.Ean != nil {
|
|
267
|
-
return *x.Ean
|
|
268
|
-
}
|
|
269
|
-
return ""
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
func (x *CreateVariantRequest) GetUpc() string {
|
|
273
|
-
if x != nil && x.Upc != nil {
|
|
274
|
-
return *x.Upc
|
|
275
|
-
}
|
|
276
|
-
return ""
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
func (x *CreateVariantRequest) GetBarcode() string {
|
|
280
|
-
if x != nil && x.Barcode != nil {
|
|
281
|
-
return *x.Barcode
|
|
282
|
-
}
|
|
283
|
-
return ""
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
func (x *CreateVariantRequest) GetHsCode() string {
|
|
287
|
-
if x != nil && x.HsCode != nil {
|
|
288
|
-
return *x.HsCode
|
|
289
|
-
}
|
|
290
|
-
return ""
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
func (x *CreateVariantRequest) GetMidCode() string {
|
|
294
|
-
if x != nil && x.MidCode != nil {
|
|
295
|
-
return *x.MidCode
|
|
296
|
-
}
|
|
297
|
-
return ""
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
func (x *CreateVariantRequest) GetAllowBackorder() bool {
|
|
301
|
-
if x != nil && x.AllowBackorder != nil {
|
|
302
|
-
return *x.AllowBackorder
|
|
303
|
-
}
|
|
304
|
-
return false
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
func (x *CreateVariantRequest) GetIsManagedInventory() bool {
|
|
308
|
-
if x != nil && x.IsManagedInventory != nil {
|
|
309
|
-
return *x.IsManagedInventory
|
|
310
|
-
}
|
|
311
|
-
return false
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
func (x *CreateVariantRequest) GetRank() int32 {
|
|
315
|
-
if x != nil && x.Rank != nil {
|
|
316
|
-
return *x.Rank
|
|
317
|
-
}
|
|
318
|
-
return 0
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
func (x *CreateVariantRequest) GetWeight() float32 {
|
|
322
|
-
if x != nil && x.Weight != nil {
|
|
323
|
-
return *x.Weight
|
|
324
|
-
}
|
|
325
|
-
return 0
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
func (x *CreateVariantRequest) GetLength() float32 {
|
|
329
|
-
if x != nil && x.Length != nil {
|
|
330
|
-
return *x.Length
|
|
331
|
-
}
|
|
332
|
-
return 0
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
func (x *CreateVariantRequest) GetHeight() float32 {
|
|
336
|
-
if x != nil && x.Height != nil {
|
|
337
|
-
return *x.Height
|
|
338
|
-
}
|
|
339
|
-
return 0
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
func (x *CreateVariantRequest) GetWidth() float32 {
|
|
343
|
-
if x != nil && x.Width != nil {
|
|
344
|
-
return *x.Width
|
|
345
|
-
}
|
|
346
|
-
return 0
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
func (x *CreateVariantRequest) GetOriginCountry() string {
|
|
350
|
-
if x != nil && x.OriginCountry != nil {
|
|
351
|
-
return *x.OriginCountry
|
|
352
|
-
}
|
|
353
|
-
return ""
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
func (x *CreateVariantRequest) GetMaterial() string {
|
|
357
|
-
if x != nil && x.Material != nil {
|
|
358
|
-
return *x.Material
|
|
359
|
-
}
|
|
360
|
-
return ""
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
func (x *CreateVariantRequest) GetOptions() map[string]string {
|
|
364
|
-
if x != nil {
|
|
365
|
-
return x.Options
|
|
366
|
-
}
|
|
367
|
-
return nil
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
func (x *CreateVariantRequest) GetMetadata() map[string]string {
|
|
371
|
-
if x != nil {
|
|
372
|
-
return x.Metadata
|
|
373
|
-
}
|
|
374
|
-
return nil
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
func (x *CreateVariantRequest) GetPrices() []*CreateVariantRequest_Price {
|
|
378
|
-
if x != nil {
|
|
379
|
-
return x.Prices
|
|
380
|
-
}
|
|
381
|
-
return nil
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
func (x *CreateVariantRequest) GetInventoryItems() []*CreateVariantRequest_InventoryItem {
|
|
385
|
-
if x != nil {
|
|
386
|
-
return x.InventoryItems
|
|
387
|
-
}
|
|
388
|
-
return nil
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
type CreateVariantResponse struct {
|
|
392
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
393
|
-
Product *product.ProductResponse `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
|
|
394
|
-
unknownFields protoimpl.UnknownFields
|
|
395
|
-
sizeCache protoimpl.SizeCache
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
func (x *CreateVariantResponse) Reset() {
|
|
399
|
-
*x = CreateVariantResponse{}
|
|
400
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[3]
|
|
401
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
402
|
-
ms.StoreMessageInfo(mi)
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
func (x *CreateVariantResponse) String() string {
|
|
406
|
-
return protoimpl.X.MessageStringOf(x)
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
func (*CreateVariantResponse) ProtoMessage() {}
|
|
410
|
-
|
|
411
|
-
func (x *CreateVariantResponse) ProtoReflect() protoreflect.Message {
|
|
412
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[3]
|
|
413
|
-
if x != nil {
|
|
414
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
415
|
-
if ms.LoadMessageInfo() == nil {
|
|
416
|
-
ms.StoreMessageInfo(mi)
|
|
417
|
-
}
|
|
418
|
-
return ms
|
|
419
|
-
}
|
|
420
|
-
return mi.MessageOf(x)
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
// Deprecated: Use CreateVariantResponse.ProtoReflect.Descriptor instead.
|
|
424
|
-
func (*CreateVariantResponse) Descriptor() ([]byte, []int) {
|
|
425
|
-
return file_src_proto_products_v1_entities_variant_proto_rawDescGZIP(), []int{3}
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
func (x *CreateVariantResponse) GetProduct() *product.ProductResponse {
|
|
429
|
-
if x != nil {
|
|
430
|
-
return x.Product
|
|
431
|
-
}
|
|
432
|
-
return nil
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
type PatchVariantImageRequest struct {
|
|
436
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
437
|
-
ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
|
|
438
|
-
VariantId string `protobuf:"bytes,2,opt,name=variant_id,json=variantId,proto3" json:"variant_id,omitempty"`
|
|
439
|
-
SavedImages []string `protobuf:"bytes,3,rep,name=saved_images,json=savedImages,proto3" json:"saved_images,omitempty"`
|
|
440
|
-
DeletedImages []string `protobuf:"bytes,4,rep,name=deleted_images,json=deletedImages,proto3" json:"deleted_images,omitempty"`
|
|
441
|
-
unknownFields protoimpl.UnknownFields
|
|
442
|
-
sizeCache protoimpl.SizeCache
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
func (x *PatchVariantImageRequest) Reset() {
|
|
446
|
-
*x = PatchVariantImageRequest{}
|
|
447
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[4]
|
|
448
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
449
|
-
ms.StoreMessageInfo(mi)
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
func (x *PatchVariantImageRequest) String() string {
|
|
453
|
-
return protoimpl.X.MessageStringOf(x)
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
func (*PatchVariantImageRequest) ProtoMessage() {}
|
|
457
|
-
|
|
458
|
-
func (x *PatchVariantImageRequest) ProtoReflect() protoreflect.Message {
|
|
459
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[4]
|
|
460
|
-
if x != nil {
|
|
461
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
462
|
-
if ms.LoadMessageInfo() == nil {
|
|
463
|
-
ms.StoreMessageInfo(mi)
|
|
464
|
-
}
|
|
465
|
-
return ms
|
|
466
|
-
}
|
|
467
|
-
return mi.MessageOf(x)
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
// Deprecated: Use PatchVariantImageRequest.ProtoReflect.Descriptor instead.
|
|
471
|
-
func (*PatchVariantImageRequest) Descriptor() ([]byte, []int) {
|
|
472
|
-
return file_src_proto_products_v1_entities_variant_proto_rawDescGZIP(), []int{4}
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
func (x *PatchVariantImageRequest) GetProductId() string {
|
|
476
|
-
if x != nil {
|
|
477
|
-
return x.ProductId
|
|
478
|
-
}
|
|
479
|
-
return ""
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
func (x *PatchVariantImageRequest) GetVariantId() string {
|
|
483
|
-
if x != nil {
|
|
484
|
-
return x.VariantId
|
|
485
|
-
}
|
|
486
|
-
return ""
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
func (x *PatchVariantImageRequest) GetSavedImages() []string {
|
|
490
|
-
if x != nil {
|
|
491
|
-
return x.SavedImages
|
|
492
|
-
}
|
|
493
|
-
return nil
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
func (x *PatchVariantImageRequest) GetDeletedImages() []string {
|
|
497
|
-
if x != nil {
|
|
498
|
-
return x.DeletedImages
|
|
499
|
-
}
|
|
500
|
-
return nil
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
type PatchVariantImageResponse struct {
|
|
504
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
505
|
-
SavedImages []string `protobuf:"bytes,3,rep,name=saved_images,json=savedImages,proto3" json:"saved_images,omitempty"`
|
|
506
|
-
DeletedImages []string `protobuf:"bytes,4,rep,name=deleted_images,json=deletedImages,proto3" json:"deleted_images,omitempty"`
|
|
507
|
-
unknownFields protoimpl.UnknownFields
|
|
508
|
-
sizeCache protoimpl.SizeCache
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
func (x *PatchVariantImageResponse) Reset() {
|
|
512
|
-
*x = PatchVariantImageResponse{}
|
|
513
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[5]
|
|
514
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
515
|
-
ms.StoreMessageInfo(mi)
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
func (x *PatchVariantImageResponse) String() string {
|
|
519
|
-
return protoimpl.X.MessageStringOf(x)
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
func (*PatchVariantImageResponse) ProtoMessage() {}
|
|
523
|
-
|
|
524
|
-
func (x *PatchVariantImageResponse) ProtoReflect() protoreflect.Message {
|
|
525
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[5]
|
|
526
|
-
if x != nil {
|
|
527
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
528
|
-
if ms.LoadMessageInfo() == nil {
|
|
529
|
-
ms.StoreMessageInfo(mi)
|
|
530
|
-
}
|
|
531
|
-
return ms
|
|
532
|
-
}
|
|
533
|
-
return mi.MessageOf(x)
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
// Deprecated: Use PatchVariantImageResponse.ProtoReflect.Descriptor instead.
|
|
537
|
-
func (*PatchVariantImageResponse) Descriptor() ([]byte, []int) {
|
|
538
|
-
return file_src_proto_products_v1_entities_variant_proto_rawDescGZIP(), []int{5}
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
func (x *PatchVariantImageResponse) GetSavedImages() []string {
|
|
542
|
-
if x != nil {
|
|
543
|
-
return x.SavedImages
|
|
544
|
-
}
|
|
545
|
-
return nil
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
func (x *PatchVariantImageResponse) GetDeletedImages() []string {
|
|
549
|
-
if x != nil {
|
|
550
|
-
return x.DeletedImages
|
|
551
|
-
}
|
|
552
|
-
return nil
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
type UpdateProductOptionRequest struct {
|
|
556
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
557
|
-
ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
|
|
558
|
-
OptionId string `protobuf:"bytes,2,opt,name=option_id,json=optionId,proto3" json:"option_id,omitempty"`
|
|
559
|
-
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
|
|
560
|
-
Values []string `protobuf:"bytes,4,rep,name=values,proto3" json:"values,omitempty"`
|
|
561
|
-
Metadata map[string]string `protobuf:"bytes,5,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
562
|
-
unknownFields protoimpl.UnknownFields
|
|
563
|
-
sizeCache protoimpl.SizeCache
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
func (x *UpdateProductOptionRequest) Reset() {
|
|
567
|
-
*x = UpdateProductOptionRequest{}
|
|
568
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[6]
|
|
569
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
570
|
-
ms.StoreMessageInfo(mi)
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
func (x *UpdateProductOptionRequest) String() string {
|
|
574
|
-
return protoimpl.X.MessageStringOf(x)
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
func (*UpdateProductOptionRequest) ProtoMessage() {}
|
|
578
|
-
|
|
579
|
-
func (x *UpdateProductOptionRequest) ProtoReflect() protoreflect.Message {
|
|
580
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[6]
|
|
581
|
-
if x != nil {
|
|
582
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
583
|
-
if ms.LoadMessageInfo() == nil {
|
|
584
|
-
ms.StoreMessageInfo(mi)
|
|
585
|
-
}
|
|
586
|
-
return ms
|
|
587
|
-
}
|
|
588
|
-
return mi.MessageOf(x)
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
// Deprecated: Use UpdateProductOptionRequest.ProtoReflect.Descriptor instead.
|
|
592
|
-
func (*UpdateProductOptionRequest) Descriptor() ([]byte, []int) {
|
|
593
|
-
return file_src_proto_products_v1_entities_variant_proto_rawDescGZIP(), []int{6}
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
func (x *UpdateProductOptionRequest) GetProductId() string {
|
|
597
|
-
if x != nil {
|
|
598
|
-
return x.ProductId
|
|
599
|
-
}
|
|
600
|
-
return ""
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
func (x *UpdateProductOptionRequest) GetOptionId() string {
|
|
604
|
-
if x != nil {
|
|
605
|
-
return x.OptionId
|
|
606
|
-
}
|
|
607
|
-
return ""
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
func (x *UpdateProductOptionRequest) GetTitle() string {
|
|
611
|
-
if x != nil {
|
|
612
|
-
return x.Title
|
|
613
|
-
}
|
|
614
|
-
return ""
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
func (x *UpdateProductOptionRequest) GetValues() []string {
|
|
618
|
-
if x != nil {
|
|
619
|
-
return x.Values
|
|
620
|
-
}
|
|
621
|
-
return nil
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
func (x *UpdateProductOptionRequest) GetMetadata() map[string]string {
|
|
625
|
-
if x != nil {
|
|
626
|
-
return x.Metadata
|
|
627
|
-
}
|
|
628
|
-
return nil
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
type UpdateProductOptionResponse struct {
|
|
632
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
633
|
-
Product *product.ProductResponse `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
|
|
634
|
-
unknownFields protoimpl.UnknownFields
|
|
635
|
-
sizeCache protoimpl.SizeCache
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
func (x *UpdateProductOptionResponse) Reset() {
|
|
639
|
-
*x = UpdateProductOptionResponse{}
|
|
640
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[7]
|
|
641
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
642
|
-
ms.StoreMessageInfo(mi)
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
func (x *UpdateProductOptionResponse) String() string {
|
|
646
|
-
return protoimpl.X.MessageStringOf(x)
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
func (*UpdateProductOptionResponse) ProtoMessage() {}
|
|
650
|
-
|
|
651
|
-
func (x *UpdateProductOptionResponse) ProtoReflect() protoreflect.Message {
|
|
652
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[7]
|
|
653
|
-
if x != nil {
|
|
654
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
655
|
-
if ms.LoadMessageInfo() == nil {
|
|
656
|
-
ms.StoreMessageInfo(mi)
|
|
657
|
-
}
|
|
658
|
-
return ms
|
|
659
|
-
}
|
|
660
|
-
return mi.MessageOf(x)
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
// Deprecated: Use UpdateProductOptionResponse.ProtoReflect.Descriptor instead.
|
|
664
|
-
func (*UpdateProductOptionResponse) Descriptor() ([]byte, []int) {
|
|
665
|
-
return file_src_proto_products_v1_entities_variant_proto_rawDescGZIP(), []int{7}
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
func (x *UpdateProductOptionResponse) GetProduct() *product.ProductResponse {
|
|
669
|
-
if x != nil {
|
|
670
|
-
return x.Product
|
|
671
|
-
}
|
|
672
|
-
return nil
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
type UpdateVariantInventoryRequest struct {
|
|
676
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
677
|
-
ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
|
|
678
|
-
VariantId string `protobuf:"bytes,2,opt,name=variant_id,json=variantId,proto3" json:"variant_id,omitempty"`
|
|
679
|
-
InventoryItemId string `protobuf:"bytes,3,opt,name=inventory_item_id,json=inventoryItemId,proto3" json:"inventory_item_id,omitempty"`
|
|
680
|
-
RequiredQuantity int32 `protobuf:"varint,4,opt,name=required_quantity,json=requiredQuantity,proto3" json:"required_quantity,omitempty"`
|
|
681
|
-
unknownFields protoimpl.UnknownFields
|
|
682
|
-
sizeCache protoimpl.SizeCache
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
func (x *UpdateVariantInventoryRequest) Reset() {
|
|
686
|
-
*x = UpdateVariantInventoryRequest{}
|
|
687
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[8]
|
|
688
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
689
|
-
ms.StoreMessageInfo(mi)
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
func (x *UpdateVariantInventoryRequest) String() string {
|
|
693
|
-
return protoimpl.X.MessageStringOf(x)
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
func (*UpdateVariantInventoryRequest) ProtoMessage() {}
|
|
697
|
-
|
|
698
|
-
func (x *UpdateVariantInventoryRequest) ProtoReflect() protoreflect.Message {
|
|
699
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[8]
|
|
700
|
-
if x != nil {
|
|
701
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
702
|
-
if ms.LoadMessageInfo() == nil {
|
|
703
|
-
ms.StoreMessageInfo(mi)
|
|
704
|
-
}
|
|
705
|
-
return ms
|
|
706
|
-
}
|
|
707
|
-
return mi.MessageOf(x)
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
// Deprecated: Use UpdateVariantInventoryRequest.ProtoReflect.Descriptor instead.
|
|
711
|
-
func (*UpdateVariantInventoryRequest) Descriptor() ([]byte, []int) {
|
|
712
|
-
return file_src_proto_products_v1_entities_variant_proto_rawDescGZIP(), []int{8}
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
func (x *UpdateVariantInventoryRequest) GetProductId() string {
|
|
716
|
-
if x != nil {
|
|
717
|
-
return x.ProductId
|
|
718
|
-
}
|
|
719
|
-
return ""
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
func (x *UpdateVariantInventoryRequest) GetVariantId() string {
|
|
723
|
-
if x != nil {
|
|
724
|
-
return x.VariantId
|
|
725
|
-
}
|
|
726
|
-
return ""
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
func (x *UpdateVariantInventoryRequest) GetInventoryItemId() string {
|
|
730
|
-
if x != nil {
|
|
731
|
-
return x.InventoryItemId
|
|
732
|
-
}
|
|
733
|
-
return ""
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
func (x *UpdateVariantInventoryRequest) GetRequiredQuantity() int32 {
|
|
737
|
-
if x != nil {
|
|
738
|
-
return x.RequiredQuantity
|
|
739
|
-
}
|
|
740
|
-
return 0
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
type UpdateVariantInventoryResponse struct {
|
|
744
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
745
|
-
ProductVariant *product.Variant `protobuf:"bytes,1,opt,name=product_variant,json=productVariant,proto3" json:"product_variant,omitempty"`
|
|
746
|
-
unknownFields protoimpl.UnknownFields
|
|
747
|
-
sizeCache protoimpl.SizeCache
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
func (x *UpdateVariantInventoryResponse) Reset() {
|
|
751
|
-
*x = UpdateVariantInventoryResponse{}
|
|
752
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[9]
|
|
753
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
754
|
-
ms.StoreMessageInfo(mi)
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
func (x *UpdateVariantInventoryResponse) String() string {
|
|
758
|
-
return protoimpl.X.MessageStringOf(x)
|
|
759
|
-
}
|
|
760
|
-
|
|
761
|
-
func (*UpdateVariantInventoryResponse) ProtoMessage() {}
|
|
762
|
-
|
|
763
|
-
func (x *UpdateVariantInventoryResponse) ProtoReflect() protoreflect.Message {
|
|
764
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[9]
|
|
765
|
-
if x != nil {
|
|
766
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
767
|
-
if ms.LoadMessageInfo() == nil {
|
|
768
|
-
ms.StoreMessageInfo(mi)
|
|
769
|
-
}
|
|
770
|
-
return ms
|
|
771
|
-
}
|
|
772
|
-
return mi.MessageOf(x)
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
// Deprecated: Use UpdateVariantInventoryResponse.ProtoReflect.Descriptor instead.
|
|
776
|
-
func (*UpdateVariantInventoryResponse) Descriptor() ([]byte, []int) {
|
|
777
|
-
return file_src_proto_products_v1_entities_variant_proto_rawDescGZIP(), []int{9}
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
func (x *UpdateVariantInventoryResponse) GetProductVariant() *product.Variant {
|
|
781
|
-
if x != nil {
|
|
782
|
-
return x.ProductVariant
|
|
783
|
-
}
|
|
784
|
-
return nil
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
type UpdateVariantRequest struct {
|
|
788
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
789
|
-
ProductId *string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3,oneof" json:"product_id,omitempty"`
|
|
790
|
-
VariantId *string `protobuf:"bytes,2,opt,name=variant_id,json=variantId,proto3,oneof" json:"variant_id,omitempty"`
|
|
791
|
-
Title *string `protobuf:"bytes,3,opt,name=title,proto3,oneof" json:"title,omitempty"`
|
|
792
|
-
Ean *string `protobuf:"bytes,4,opt,name=ean,proto3,oneof" json:"ean,omitempty"`
|
|
793
|
-
Upc *string `protobuf:"bytes,5,opt,name=upc,proto3,oneof" json:"upc,omitempty"`
|
|
794
|
-
Barcode *string `protobuf:"bytes,6,opt,name=barcode,proto3,oneof" json:"barcode,omitempty"`
|
|
795
|
-
HsCode *string `protobuf:"bytes,7,opt,name=hs_code,json=hsCode,proto3,oneof" json:"hs_code,omitempty"`
|
|
796
|
-
MidCode *string `protobuf:"bytes,8,opt,name=mid_code,json=midCode,proto3,oneof" json:"mid_code,omitempty"`
|
|
797
|
-
AllowBackorder *bool `protobuf:"varint,9,opt,name=allow_backorder,json=allowBackorder,proto3,oneof" json:"allow_backorder,omitempty"`
|
|
798
|
-
IsManagedInventory *bool `protobuf:"varint,10,opt,name=is_managed_inventory,json=isManagedInventory,proto3,oneof" json:"is_managed_inventory,omitempty"`
|
|
799
|
-
Rank *int32 `protobuf:"varint,11,opt,name=rank,proto3,oneof" json:"rank,omitempty"`
|
|
800
|
-
Weight *float32 `protobuf:"fixed32,12,opt,name=weight,proto3,oneof" json:"weight,omitempty"`
|
|
801
|
-
Length *float32 `protobuf:"fixed32,13,opt,name=length,proto3,oneof" json:"length,omitempty"`
|
|
802
|
-
Height *float32 `protobuf:"fixed32,14,opt,name=height,proto3,oneof" json:"height,omitempty"`
|
|
803
|
-
Width *float32 `protobuf:"fixed32,15,opt,name=width,proto3,oneof" json:"width,omitempty"`
|
|
804
|
-
OriginCountry *string `protobuf:"bytes,16,opt,name=origin_country,json=originCountry,proto3,oneof" json:"origin_country,omitempty"`
|
|
805
|
-
Material *string `protobuf:"bytes,17,opt,name=material,proto3,oneof" json:"material,omitempty"`
|
|
806
|
-
Options map[string]string `protobuf:"bytes,18,rep,name=options,proto3" json:"options,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
807
|
-
Metadata map[string]string `protobuf:"bytes,19,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
808
|
-
Prices []*CreateVariantRequest_Price `protobuf:"bytes,20,rep,name=prices,proto3" json:"prices,omitempty"`
|
|
809
|
-
InventoryItems []*CreateVariantRequest_InventoryItem `protobuf:"bytes,21,rep,name=inventory_items,json=inventoryItems,proto3" json:"inventory_items,omitempty"`
|
|
810
|
-
unknownFields protoimpl.UnknownFields
|
|
811
|
-
sizeCache protoimpl.SizeCache
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
func (x *UpdateVariantRequest) Reset() {
|
|
815
|
-
*x = UpdateVariantRequest{}
|
|
816
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[10]
|
|
817
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
818
|
-
ms.StoreMessageInfo(mi)
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
func (x *UpdateVariantRequest) String() string {
|
|
822
|
-
return protoimpl.X.MessageStringOf(x)
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
func (*UpdateVariantRequest) ProtoMessage() {}
|
|
826
|
-
|
|
827
|
-
func (x *UpdateVariantRequest) ProtoReflect() protoreflect.Message {
|
|
828
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[10]
|
|
829
|
-
if x != nil {
|
|
830
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
831
|
-
if ms.LoadMessageInfo() == nil {
|
|
832
|
-
ms.StoreMessageInfo(mi)
|
|
833
|
-
}
|
|
834
|
-
return ms
|
|
835
|
-
}
|
|
836
|
-
return mi.MessageOf(x)
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
// Deprecated: Use UpdateVariantRequest.ProtoReflect.Descriptor instead.
|
|
840
|
-
func (*UpdateVariantRequest) Descriptor() ([]byte, []int) {
|
|
841
|
-
return file_src_proto_products_v1_entities_variant_proto_rawDescGZIP(), []int{10}
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
func (x *UpdateVariantRequest) GetProductId() string {
|
|
845
|
-
if x != nil && x.ProductId != nil {
|
|
846
|
-
return *x.ProductId
|
|
847
|
-
}
|
|
848
|
-
return ""
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
func (x *UpdateVariantRequest) GetVariantId() string {
|
|
852
|
-
if x != nil && x.VariantId != nil {
|
|
853
|
-
return *x.VariantId
|
|
854
|
-
}
|
|
855
|
-
return ""
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
func (x *UpdateVariantRequest) GetTitle() string {
|
|
859
|
-
if x != nil && x.Title != nil {
|
|
860
|
-
return *x.Title
|
|
861
|
-
}
|
|
862
|
-
return ""
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
func (x *UpdateVariantRequest) GetEan() string {
|
|
866
|
-
if x != nil && x.Ean != nil {
|
|
867
|
-
return *x.Ean
|
|
868
|
-
}
|
|
869
|
-
return ""
|
|
870
|
-
}
|
|
871
|
-
|
|
872
|
-
func (x *UpdateVariantRequest) GetUpc() string {
|
|
873
|
-
if x != nil && x.Upc != nil {
|
|
874
|
-
return *x.Upc
|
|
875
|
-
}
|
|
876
|
-
return ""
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
func (x *UpdateVariantRequest) GetBarcode() string {
|
|
880
|
-
if x != nil && x.Barcode != nil {
|
|
881
|
-
return *x.Barcode
|
|
882
|
-
}
|
|
883
|
-
return ""
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
func (x *UpdateVariantRequest) GetHsCode() string {
|
|
887
|
-
if x != nil && x.HsCode != nil {
|
|
888
|
-
return *x.HsCode
|
|
889
|
-
}
|
|
890
|
-
return ""
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
func (x *UpdateVariantRequest) GetMidCode() string {
|
|
894
|
-
if x != nil && x.MidCode != nil {
|
|
895
|
-
return *x.MidCode
|
|
896
|
-
}
|
|
897
|
-
return ""
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
func (x *UpdateVariantRequest) GetAllowBackorder() bool {
|
|
901
|
-
if x != nil && x.AllowBackorder != nil {
|
|
902
|
-
return *x.AllowBackorder
|
|
903
|
-
}
|
|
904
|
-
return false
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
func (x *UpdateVariantRequest) GetIsManagedInventory() bool {
|
|
908
|
-
if x != nil && x.IsManagedInventory != nil {
|
|
909
|
-
return *x.IsManagedInventory
|
|
910
|
-
}
|
|
911
|
-
return false
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
func (x *UpdateVariantRequest) GetRank() int32 {
|
|
915
|
-
if x != nil && x.Rank != nil {
|
|
916
|
-
return *x.Rank
|
|
917
|
-
}
|
|
918
|
-
return 0
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
func (x *UpdateVariantRequest) GetWeight() float32 {
|
|
922
|
-
if x != nil && x.Weight != nil {
|
|
923
|
-
return *x.Weight
|
|
924
|
-
}
|
|
925
|
-
return 0
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
func (x *UpdateVariantRequest) GetLength() float32 {
|
|
929
|
-
if x != nil && x.Length != nil {
|
|
930
|
-
return *x.Length
|
|
931
|
-
}
|
|
932
|
-
return 0
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
func (x *UpdateVariantRequest) GetHeight() float32 {
|
|
936
|
-
if x != nil && x.Height != nil {
|
|
937
|
-
return *x.Height
|
|
938
|
-
}
|
|
939
|
-
return 0
|
|
940
|
-
}
|
|
941
|
-
|
|
942
|
-
func (x *UpdateVariantRequest) GetWidth() float32 {
|
|
943
|
-
if x != nil && x.Width != nil {
|
|
944
|
-
return *x.Width
|
|
945
|
-
}
|
|
946
|
-
return 0
|
|
947
|
-
}
|
|
948
|
-
|
|
949
|
-
func (x *UpdateVariantRequest) GetOriginCountry() string {
|
|
950
|
-
if x != nil && x.OriginCountry != nil {
|
|
951
|
-
return *x.OriginCountry
|
|
952
|
-
}
|
|
953
|
-
return ""
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
func (x *UpdateVariantRequest) GetMaterial() string {
|
|
957
|
-
if x != nil && x.Material != nil {
|
|
958
|
-
return *x.Material
|
|
959
|
-
}
|
|
960
|
-
return ""
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
func (x *UpdateVariantRequest) GetOptions() map[string]string {
|
|
964
|
-
if x != nil {
|
|
965
|
-
return x.Options
|
|
966
|
-
}
|
|
967
|
-
return nil
|
|
968
|
-
}
|
|
969
|
-
|
|
970
|
-
func (x *UpdateVariantRequest) GetMetadata() map[string]string {
|
|
971
|
-
if x != nil {
|
|
972
|
-
return x.Metadata
|
|
973
|
-
}
|
|
974
|
-
return nil
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
func (x *UpdateVariantRequest) GetPrices() []*CreateVariantRequest_Price {
|
|
978
|
-
if x != nil {
|
|
979
|
-
return x.Prices
|
|
980
|
-
}
|
|
981
|
-
return nil
|
|
982
|
-
}
|
|
983
|
-
|
|
984
|
-
func (x *UpdateVariantRequest) GetInventoryItems() []*CreateVariantRequest_InventoryItem {
|
|
985
|
-
if x != nil {
|
|
986
|
-
return x.InventoryItems
|
|
987
|
-
}
|
|
988
|
-
return nil
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
type UpdateVariantResponse struct {
|
|
992
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
993
|
-
Product *product.ProductResponse `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
|
|
994
|
-
unknownFields protoimpl.UnknownFields
|
|
995
|
-
sizeCache protoimpl.SizeCache
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
func (x *UpdateVariantResponse) Reset() {
|
|
999
|
-
*x = UpdateVariantResponse{}
|
|
1000
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[11]
|
|
1001
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
1002
|
-
ms.StoreMessageInfo(mi)
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
func (x *UpdateVariantResponse) String() string {
|
|
1006
|
-
return protoimpl.X.MessageStringOf(x)
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
|
-
func (*UpdateVariantResponse) ProtoMessage() {}
|
|
1010
|
-
|
|
1011
|
-
func (x *UpdateVariantResponse) ProtoReflect() protoreflect.Message {
|
|
1012
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[11]
|
|
1013
|
-
if x != nil {
|
|
1014
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
1015
|
-
if ms.LoadMessageInfo() == nil {
|
|
1016
|
-
ms.StoreMessageInfo(mi)
|
|
1017
|
-
}
|
|
1018
|
-
return ms
|
|
1019
|
-
}
|
|
1020
|
-
return mi.MessageOf(x)
|
|
1021
|
-
}
|
|
1022
|
-
|
|
1023
|
-
// Deprecated: Use UpdateVariantResponse.ProtoReflect.Descriptor instead.
|
|
1024
|
-
func (*UpdateVariantResponse) Descriptor() ([]byte, []int) {
|
|
1025
|
-
return file_src_proto_products_v1_entities_variant_proto_rawDescGZIP(), []int{11}
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
func (x *UpdateVariantResponse) GetProduct() *product.ProductResponse {
|
|
1029
|
-
if x != nil {
|
|
1030
|
-
return x.Product
|
|
1031
|
-
}
|
|
1032
|
-
return nil
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
type CreateVariantRequest_Price struct {
|
|
1036
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
1037
|
-
CurrencyCode string `protobuf:"bytes,1,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
|
|
1038
|
-
Amount float32 `protobuf:"fixed32,2,opt,name=amount,proto3" json:"amount,omitempty"`
|
|
1039
|
-
MinQuantity *int32 `protobuf:"varint,3,opt,name=min_quantity,json=minQuantity,proto3,oneof" json:"min_quantity,omitempty"`
|
|
1040
|
-
MaxQuantity *int32 `protobuf:"varint,4,opt,name=max_quantity,json=maxQuantity,proto3,oneof" json:"max_quantity,omitempty"`
|
|
1041
|
-
Rules []*CreateVariantRequest_Price_Rule `protobuf:"bytes,5,rep,name=rules,proto3" json:"rules,omitempty"`
|
|
1042
|
-
unknownFields protoimpl.UnknownFields
|
|
1043
|
-
sizeCache protoimpl.SizeCache
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
func (x *CreateVariantRequest_Price) Reset() {
|
|
1047
|
-
*x = CreateVariantRequest_Price{}
|
|
1048
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[12]
|
|
1049
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
1050
|
-
ms.StoreMessageInfo(mi)
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
func (x *CreateVariantRequest_Price) String() string {
|
|
1054
|
-
return protoimpl.X.MessageStringOf(x)
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
func (*CreateVariantRequest_Price) ProtoMessage() {}
|
|
1058
|
-
|
|
1059
|
-
func (x *CreateVariantRequest_Price) ProtoReflect() protoreflect.Message {
|
|
1060
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[12]
|
|
1061
|
-
if x != nil {
|
|
1062
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
1063
|
-
if ms.LoadMessageInfo() == nil {
|
|
1064
|
-
ms.StoreMessageInfo(mi)
|
|
1065
|
-
}
|
|
1066
|
-
return ms
|
|
1067
|
-
}
|
|
1068
|
-
return mi.MessageOf(x)
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
// Deprecated: Use CreateVariantRequest_Price.ProtoReflect.Descriptor instead.
|
|
1072
|
-
func (*CreateVariantRequest_Price) Descriptor() ([]byte, []int) {
|
|
1073
|
-
return file_src_proto_products_v1_entities_variant_proto_rawDescGZIP(), []int{2, 0}
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
func (x *CreateVariantRequest_Price) GetCurrencyCode() string {
|
|
1077
|
-
if x != nil {
|
|
1078
|
-
return x.CurrencyCode
|
|
1079
|
-
}
|
|
1080
|
-
return ""
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
func (x *CreateVariantRequest_Price) GetAmount() float32 {
|
|
1084
|
-
if x != nil {
|
|
1085
|
-
return x.Amount
|
|
1086
|
-
}
|
|
1087
|
-
return 0
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
func (x *CreateVariantRequest_Price) GetMinQuantity() int32 {
|
|
1091
|
-
if x != nil && x.MinQuantity != nil {
|
|
1092
|
-
return *x.MinQuantity
|
|
1093
|
-
}
|
|
1094
|
-
return 0
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
func (x *CreateVariantRequest_Price) GetMaxQuantity() int32 {
|
|
1098
|
-
if x != nil && x.MaxQuantity != nil {
|
|
1099
|
-
return *x.MaxQuantity
|
|
1100
|
-
}
|
|
1101
|
-
return 0
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
func (x *CreateVariantRequest_Price) GetRules() []*CreateVariantRequest_Price_Rule {
|
|
1105
|
-
if x != nil {
|
|
1106
|
-
return x.Rules
|
|
1107
|
-
}
|
|
1108
|
-
return nil
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
type CreateVariantRequest_InventoryItem struct {
|
|
1112
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
1113
|
-
InventoryItemId string `protobuf:"bytes,1,opt,name=inventory_item_id,json=inventoryItemId,proto3" json:"inventory_item_id,omitempty"`
|
|
1114
|
-
RequiredQuantity *int32 `protobuf:"varint,2,opt,name=required_quantity,json=requiredQuantity,proto3,oneof" json:"required_quantity,omitempty"`
|
|
1115
|
-
unknownFields protoimpl.UnknownFields
|
|
1116
|
-
sizeCache protoimpl.SizeCache
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
func (x *CreateVariantRequest_InventoryItem) Reset() {
|
|
1120
|
-
*x = CreateVariantRequest_InventoryItem{}
|
|
1121
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[13]
|
|
1122
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
1123
|
-
ms.StoreMessageInfo(mi)
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
func (x *CreateVariantRequest_InventoryItem) String() string {
|
|
1127
|
-
return protoimpl.X.MessageStringOf(x)
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
func (*CreateVariantRequest_InventoryItem) ProtoMessage() {}
|
|
1131
|
-
|
|
1132
|
-
func (x *CreateVariantRequest_InventoryItem) ProtoReflect() protoreflect.Message {
|
|
1133
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[13]
|
|
1134
|
-
if x != nil {
|
|
1135
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
1136
|
-
if ms.LoadMessageInfo() == nil {
|
|
1137
|
-
ms.StoreMessageInfo(mi)
|
|
1138
|
-
}
|
|
1139
|
-
return ms
|
|
1140
|
-
}
|
|
1141
|
-
return mi.MessageOf(x)
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
// Deprecated: Use CreateVariantRequest_InventoryItem.ProtoReflect.Descriptor instead.
|
|
1145
|
-
func (*CreateVariantRequest_InventoryItem) Descriptor() ([]byte, []int) {
|
|
1146
|
-
return file_src_proto_products_v1_entities_variant_proto_rawDescGZIP(), []int{2, 1}
|
|
1147
|
-
}
|
|
1148
|
-
|
|
1149
|
-
func (x *CreateVariantRequest_InventoryItem) GetInventoryItemId() string {
|
|
1150
|
-
if x != nil {
|
|
1151
|
-
return x.InventoryItemId
|
|
1152
|
-
}
|
|
1153
|
-
return ""
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
func (x *CreateVariantRequest_InventoryItem) GetRequiredQuantity() int32 {
|
|
1157
|
-
if x != nil && x.RequiredQuantity != nil {
|
|
1158
|
-
return *x.RequiredQuantity
|
|
1159
|
-
}
|
|
1160
|
-
return 0
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
type CreateVariantRequest_Price_Rule struct {
|
|
1164
|
-
state protoimpl.MessageState `protogen:"open.v1"`
|
|
1165
|
-
EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
|
|
1166
|
-
EntityType CreateVariantRequest_Price_Rule_Type `protobuf:"varint,2,opt,name=entity_type,json=entityType,proto3,enum=CreateVariantRequest_Price_Rule_Type" json:"entity_type,omitempty"`
|
|
1167
|
-
unknownFields protoimpl.UnknownFields
|
|
1168
|
-
sizeCache protoimpl.SizeCache
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
func (x *CreateVariantRequest_Price_Rule) Reset() {
|
|
1172
|
-
*x = CreateVariantRequest_Price_Rule{}
|
|
1173
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[16]
|
|
1174
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
1175
|
-
ms.StoreMessageInfo(mi)
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
|
-
func (x *CreateVariantRequest_Price_Rule) String() string {
|
|
1179
|
-
return protoimpl.X.MessageStringOf(x)
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
func (*CreateVariantRequest_Price_Rule) ProtoMessage() {}
|
|
1183
|
-
|
|
1184
|
-
func (x *CreateVariantRequest_Price_Rule) ProtoReflect() protoreflect.Message {
|
|
1185
|
-
mi := &file_src_proto_products_v1_entities_variant_proto_msgTypes[16]
|
|
1186
|
-
if x != nil {
|
|
1187
|
-
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
1188
|
-
if ms.LoadMessageInfo() == nil {
|
|
1189
|
-
ms.StoreMessageInfo(mi)
|
|
1190
|
-
}
|
|
1191
|
-
return ms
|
|
1192
|
-
}
|
|
1193
|
-
return mi.MessageOf(x)
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
// Deprecated: Use CreateVariantRequest_Price_Rule.ProtoReflect.Descriptor instead.
|
|
1197
|
-
func (*CreateVariantRequest_Price_Rule) Descriptor() ([]byte, []int) {
|
|
1198
|
-
return file_src_proto_products_v1_entities_variant_proto_rawDescGZIP(), []int{2, 0, 0}
|
|
1199
|
-
}
|
|
1200
|
-
|
|
1201
|
-
func (x *CreateVariantRequest_Price_Rule) GetEntityId() string {
|
|
1202
|
-
if x != nil {
|
|
1203
|
-
return x.EntityId
|
|
1204
|
-
}
|
|
1205
|
-
return ""
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
func (x *CreateVariantRequest_Price_Rule) GetEntityType() CreateVariantRequest_Price_Rule_Type {
|
|
1209
|
-
if x != nil {
|
|
1210
|
-
return x.EntityType
|
|
1211
|
-
}
|
|
1212
|
-
return CreateVariantRequest_Price_Rule_TYPE_UNSPECIFIED
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
|
-
var File_src_proto_products_v1_entities_variant_proto protoreflect.FileDescriptor
|
|
1216
|
-
|
|
1217
|
-
const file_src_proto_products_v1_entities_variant_proto_rawDesc = "" +
|
|
1218
|
-
"\n" +
|
|
1219
|
-
",src/proto/products/v1/entities/variant.proto\x1a\x1bbuf/validate/validate.proto\x1a3src/proto/products/v1/entities/product/shared.proto\"\xb2\x01\n" +
|
|
1220
|
-
"\"AssociateVariantToInventoryRequest\x12\x1d\n" +
|
|
1221
|
-
"\n" +
|
|
1222
|
-
"variant_id\x18\x01 \x01(\tR\tvariantId\x12!\n" +
|
|
1223
|
-
"\finventory_id\x18\x02 \x01(\tR\vinventoryId\x12\x1d\n" +
|
|
1224
|
-
"\n" +
|
|
1225
|
-
"product_id\x18\x03 \x01(\tR\tproductId\x12+\n" +
|
|
1226
|
-
"\x11required_quantity\x18\x04 \x01(\x05R\x10requiredQuantity\"I\n" +
|
|
1227
|
-
"#AssociateVariantToInventoryResponse\x12\"\n" +
|
|
1228
|
-
"\avariant\x18\x01 \x01(\v2\b.VariantR\avariant\"\x90\r\n" +
|
|
1229
|
-
"\x14CreateVariantRequest\x12\x1d\n" +
|
|
1230
|
-
"\n" +
|
|
1231
|
-
"product_id\x18\x01 \x01(\tR\tproductId\x12\x15\n" +
|
|
1232
|
-
"\x03sku\x18\x02 \x01(\tH\x00R\x03sku\x88\x01\x01\x12\x14\n" +
|
|
1233
|
-
"\x05title\x18\x03 \x01(\tR\x05title\x12\x15\n" +
|
|
1234
|
-
"\x03ean\x18\x04 \x01(\tH\x01R\x03ean\x88\x01\x01\x12\x15\n" +
|
|
1235
|
-
"\x03upc\x18\x05 \x01(\tH\x02R\x03upc\x88\x01\x01\x12\x1d\n" +
|
|
1236
|
-
"\abarcode\x18\x06 \x01(\tH\x03R\abarcode\x88\x01\x01\x12\x1c\n" +
|
|
1237
|
-
"\ahs_code\x18\a \x01(\tH\x04R\x06hsCode\x88\x01\x01\x12\x1e\n" +
|
|
1238
|
-
"\bmid_code\x18\b \x01(\tH\x05R\amidCode\x88\x01\x01\x12,\n" +
|
|
1239
|
-
"\x0fallow_backorder\x18\t \x01(\bH\x06R\x0eallowBackorder\x88\x01\x01\x125\n" +
|
|
1240
|
-
"\x14is_managed_inventory\x18\n" +
|
|
1241
|
-
" \x01(\bH\aR\x12isManagedInventory\x88\x01\x01\x12\x17\n" +
|
|
1242
|
-
"\x04rank\x18\v \x01(\x05H\bR\x04rank\x88\x01\x01\x12\x1b\n" +
|
|
1243
|
-
"\x06weight\x18\f \x01(\x02H\tR\x06weight\x88\x01\x01\x12\x1b\n" +
|
|
1244
|
-
"\x06length\x18\r \x01(\x02H\n" +
|
|
1245
|
-
"R\x06length\x88\x01\x01\x12\x1b\n" +
|
|
1246
|
-
"\x06height\x18\x0e \x01(\x02H\vR\x06height\x88\x01\x01\x12\x19\n" +
|
|
1247
|
-
"\x05width\x18\x0f \x01(\x02H\fR\x05width\x88\x01\x01\x12*\n" +
|
|
1248
|
-
"\x0eorigin_country\x18\x10 \x01(\tH\rR\roriginCountry\x88\x01\x01\x12\x1f\n" +
|
|
1249
|
-
"\bmaterial\x18\x11 \x01(\tH\x0eR\bmaterial\x88\x01\x01\x12<\n" +
|
|
1250
|
-
"\aoptions\x18\x12 \x03(\v2\".CreateVariantRequest.OptionsEntryR\aoptions\x12?\n" +
|
|
1251
|
-
"\bmetadata\x18\x13 \x03(\v2#.CreateVariantRequest.MetadataEntryR\bmetadata\x123\n" +
|
|
1252
|
-
"\x06prices\x18\x14 \x03(\v2\x1b.CreateVariantRequest.PriceR\x06prices\x12L\n" +
|
|
1253
|
-
"\x0finventory_items\x18\x15 \x03(\v2#.CreateVariantRequest.InventoryItemR\x0einventoryItems\x1a\xa4\x03\n" +
|
|
1254
|
-
"\x05Price\x12#\n" +
|
|
1255
|
-
"\rcurrency_code\x18\x01 \x01(\tR\fcurrencyCode\x12\x16\n" +
|
|
1256
|
-
"\x06amount\x18\x02 \x01(\x02R\x06amount\x12&\n" +
|
|
1257
|
-
"\fmin_quantity\x18\x03 \x01(\x05H\x00R\vminQuantity\x88\x01\x01\x12&\n" +
|
|
1258
|
-
"\fmax_quantity\x18\x04 \x01(\x05H\x01R\vmaxQuantity\x88\x01\x01\x126\n" +
|
|
1259
|
-
"\x05rules\x18\x05 \x03(\v2 .CreateVariantRequest.Price.RuleR\x05rules\x1a\xb3\x01\n" +
|
|
1260
|
-
"\x04Rule\x12\x1b\n" +
|
|
1261
|
-
"\tentity_id\x18\x01 \x01(\tR\bentityId\x12F\n" +
|
|
1262
|
-
"\ventity_type\x18\x02 \x01(\x0e2%.CreateVariantRequest.Price.Rule.TypeR\n" +
|
|
1263
|
-
"entityType\"F\n" +
|
|
1264
|
-
"\x04Type\x12\x14\n" +
|
|
1265
|
-
"\x10TYPE_UNSPECIFIED\x10\x00\x12\x0f\n" +
|
|
1266
|
-
"\vTYPE_REGION\x10\x01\x12\x17\n" +
|
|
1267
|
-
"\x13TYPE_CUSTOMER_GROUP\x10\x02B\x0f\n" +
|
|
1268
|
-
"\r_min_quantityB\x0f\n" +
|
|
1269
|
-
"\r_max_quantity\x1a\x83\x01\n" +
|
|
1270
|
-
"\rInventoryItem\x12*\n" +
|
|
1271
|
-
"\x11inventory_item_id\x18\x01 \x01(\tR\x0finventoryItemId\x120\n" +
|
|
1272
|
-
"\x11required_quantity\x18\x02 \x01(\x05H\x00R\x10requiredQuantity\x88\x01\x01B\x14\n" +
|
|
1273
|
-
"\x12_required_quantity\x1a:\n" +
|
|
1274
|
-
"\fOptionsEntry\x12\x10\n" +
|
|
1275
|
-
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
1276
|
-
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a;\n" +
|
|
1277
|
-
"\rMetadataEntry\x12\x10\n" +
|
|
1278
|
-
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
1279
|
-
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\x06\n" +
|
|
1280
|
-
"\x04_skuB\x06\n" +
|
|
1281
|
-
"\x04_eanB\x06\n" +
|
|
1282
|
-
"\x04_upcB\n" +
|
|
1283
|
-
"\n" +
|
|
1284
|
-
"\b_barcodeB\n" +
|
|
1285
|
-
"\n" +
|
|
1286
|
-
"\b_hs_codeB\v\n" +
|
|
1287
|
-
"\t_mid_codeB\x12\n" +
|
|
1288
|
-
"\x10_allow_backorderB\x17\n" +
|
|
1289
|
-
"\x15_is_managed_inventoryB\a\n" +
|
|
1290
|
-
"\x05_rankB\t\n" +
|
|
1291
|
-
"\a_weightB\t\n" +
|
|
1292
|
-
"\a_lengthB\t\n" +
|
|
1293
|
-
"\a_heightB\b\n" +
|
|
1294
|
-
"\x06_widthB\x11\n" +
|
|
1295
|
-
"\x0f_origin_countryB\v\n" +
|
|
1296
|
-
"\t_material\"C\n" +
|
|
1297
|
-
"\x15CreateVariantResponse\x12*\n" +
|
|
1298
|
-
"\aproduct\x18\x01 \x01(\v2\x10.ProductResponseR\aproduct\"\xa2\x01\n" +
|
|
1299
|
-
"\x18PatchVariantImageRequest\x12\x1d\n" +
|
|
1300
|
-
"\n" +
|
|
1301
|
-
"product_id\x18\x01 \x01(\tR\tproductId\x12\x1d\n" +
|
|
1302
|
-
"\n" +
|
|
1303
|
-
"variant_id\x18\x02 \x01(\tR\tvariantId\x12!\n" +
|
|
1304
|
-
"\fsaved_images\x18\x03 \x03(\tR\vsavedImages\x12%\n" +
|
|
1305
|
-
"\x0edeleted_images\x18\x04 \x03(\tR\rdeletedImages\"e\n" +
|
|
1306
|
-
"\x19PatchVariantImageResponse\x12!\n" +
|
|
1307
|
-
"\fsaved_images\x18\x03 \x03(\tR\vsavedImages\x12%\n" +
|
|
1308
|
-
"\x0edeleted_images\x18\x04 \x03(\tR\rdeletedImages\"\x8a\x02\n" +
|
|
1309
|
-
"\x1aUpdateProductOptionRequest\x12\x1d\n" +
|
|
1310
|
-
"\n" +
|
|
1311
|
-
"product_id\x18\x01 \x01(\tR\tproductId\x12\x1b\n" +
|
|
1312
|
-
"\toption_id\x18\x02 \x01(\tR\boptionId\x12\x14\n" +
|
|
1313
|
-
"\x05title\x18\x03 \x01(\tR\x05title\x12\x16\n" +
|
|
1314
|
-
"\x06values\x18\x04 \x03(\tR\x06values\x12E\n" +
|
|
1315
|
-
"\bmetadata\x18\x05 \x03(\v2).UpdateProductOptionRequest.MetadataEntryR\bmetadata\x1a;\n" +
|
|
1316
|
-
"\rMetadataEntry\x12\x10\n" +
|
|
1317
|
-
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
1318
|
-
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"I\n" +
|
|
1319
|
-
"\x1bUpdateProductOptionResponse\x12*\n" +
|
|
1320
|
-
"\aproduct\x18\x01 \x01(\v2\x10.ProductResponseR\aproduct\"\xb6\x01\n" +
|
|
1321
|
-
"\x1dUpdateVariantInventoryRequest\x12\x1d\n" +
|
|
1322
|
-
"\n" +
|
|
1323
|
-
"product_id\x18\x01 \x01(\tR\tproductId\x12\x1d\n" +
|
|
1324
|
-
"\n" +
|
|
1325
|
-
"variant_id\x18\x02 \x01(\tR\tvariantId\x12*\n" +
|
|
1326
|
-
"\x11inventory_item_id\x18\x03 \x01(\tR\x0finventoryItemId\x12+\n" +
|
|
1327
|
-
"\x11required_quantity\x18\x04 \x01(\x05R\x10requiredQuantity\"S\n" +
|
|
1328
|
-
"\x1eUpdateVariantInventoryResponse\x121\n" +
|
|
1329
|
-
"\x0fproduct_variant\x18\x01 \x01(\v2\b.VariantR\x0eproductVariant\"\x9a\t\n" +
|
|
1330
|
-
"\x14UpdateVariantRequest\x12\"\n" +
|
|
1331
|
-
"\n" +
|
|
1332
|
-
"product_id\x18\x01 \x01(\tH\x00R\tproductId\x88\x01\x01\x12\"\n" +
|
|
1333
|
-
"\n" +
|
|
1334
|
-
"variant_id\x18\x02 \x01(\tH\x01R\tvariantId\x88\x01\x01\x12\x19\n" +
|
|
1335
|
-
"\x05title\x18\x03 \x01(\tH\x02R\x05title\x88\x01\x01\x12\x15\n" +
|
|
1336
|
-
"\x03ean\x18\x04 \x01(\tH\x03R\x03ean\x88\x01\x01\x12\x15\n" +
|
|
1337
|
-
"\x03upc\x18\x05 \x01(\tH\x04R\x03upc\x88\x01\x01\x12\x1d\n" +
|
|
1338
|
-
"\abarcode\x18\x06 \x01(\tH\x05R\abarcode\x88\x01\x01\x12\x1c\n" +
|
|
1339
|
-
"\ahs_code\x18\a \x01(\tH\x06R\x06hsCode\x88\x01\x01\x12\x1e\n" +
|
|
1340
|
-
"\bmid_code\x18\b \x01(\tH\aR\amidCode\x88\x01\x01\x12,\n" +
|
|
1341
|
-
"\x0fallow_backorder\x18\t \x01(\bH\bR\x0eallowBackorder\x88\x01\x01\x125\n" +
|
|
1342
|
-
"\x14is_managed_inventory\x18\n" +
|
|
1343
|
-
" \x01(\bH\tR\x12isManagedInventory\x88\x01\x01\x12\x17\n" +
|
|
1344
|
-
"\x04rank\x18\v \x01(\x05H\n" +
|
|
1345
|
-
"R\x04rank\x88\x01\x01\x12\x1b\n" +
|
|
1346
|
-
"\x06weight\x18\f \x01(\x02H\vR\x06weight\x88\x01\x01\x12\x1b\n" +
|
|
1347
|
-
"\x06length\x18\r \x01(\x02H\fR\x06length\x88\x01\x01\x12\x1b\n" +
|
|
1348
|
-
"\x06height\x18\x0e \x01(\x02H\rR\x06height\x88\x01\x01\x12\x19\n" +
|
|
1349
|
-
"\x05width\x18\x0f \x01(\x02H\x0eR\x05width\x88\x01\x01\x12*\n" +
|
|
1350
|
-
"\x0eorigin_country\x18\x10 \x01(\tH\x0fR\roriginCountry\x88\x01\x01\x12\x1f\n" +
|
|
1351
|
-
"\bmaterial\x18\x11 \x01(\tH\x10R\bmaterial\x88\x01\x01\x12<\n" +
|
|
1352
|
-
"\aoptions\x18\x12 \x03(\v2\".UpdateVariantRequest.OptionsEntryR\aoptions\x12?\n" +
|
|
1353
|
-
"\bmetadata\x18\x13 \x03(\v2#.UpdateVariantRequest.MetadataEntryR\bmetadata\x123\n" +
|
|
1354
|
-
"\x06prices\x18\x14 \x03(\v2\x1b.CreateVariantRequest.PriceR\x06prices\x12L\n" +
|
|
1355
|
-
"\x0finventory_items\x18\x15 \x03(\v2#.CreateVariantRequest.InventoryItemR\x0einventoryItems\x1a:\n" +
|
|
1356
|
-
"\fOptionsEntry\x12\x10\n" +
|
|
1357
|
-
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
1358
|
-
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a;\n" +
|
|
1359
|
-
"\rMetadataEntry\x12\x10\n" +
|
|
1360
|
-
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
1361
|
-
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\r\n" +
|
|
1362
|
-
"\v_product_idB\r\n" +
|
|
1363
|
-
"\v_variant_idB\b\n" +
|
|
1364
|
-
"\x06_titleB\x06\n" +
|
|
1365
|
-
"\x04_eanB\x06\n" +
|
|
1366
|
-
"\x04_upcB\n" +
|
|
1367
|
-
"\n" +
|
|
1368
|
-
"\b_barcodeB\n" +
|
|
1369
|
-
"\n" +
|
|
1370
|
-
"\b_hs_codeB\v\n" +
|
|
1371
|
-
"\t_mid_codeB\x12\n" +
|
|
1372
|
-
"\x10_allow_backorderB\x17\n" +
|
|
1373
|
-
"\x15_is_managed_inventoryB\a\n" +
|
|
1374
|
-
"\x05_rankB\t\n" +
|
|
1375
|
-
"\a_weightB\t\n" +
|
|
1376
|
-
"\a_lengthB\t\n" +
|
|
1377
|
-
"\a_heightB\b\n" +
|
|
1378
|
-
"\x06_widthB\x11\n" +
|
|
1379
|
-
"\x0f_origin_countryB\v\n" +
|
|
1380
|
-
"\t_material\"C\n" +
|
|
1381
|
-
"\x15UpdateVariantResponse\x12*\n" +
|
|
1382
|
-
"\aproduct\x18\x01 \x01(\v2\x10.ProductResponseR\aproductBKB\fVariantProtoP\x01Z9paakd.com/packages/api/gen/src/proto/products/v1/entitiesb\x06proto3"
|
|
1383
|
-
|
|
1384
|
-
var (
|
|
1385
|
-
file_src_proto_products_v1_entities_variant_proto_rawDescOnce sync.Once
|
|
1386
|
-
file_src_proto_products_v1_entities_variant_proto_rawDescData []byte
|
|
1387
|
-
)
|
|
1388
|
-
|
|
1389
|
-
func file_src_proto_products_v1_entities_variant_proto_rawDescGZIP() []byte {
|
|
1390
|
-
file_src_proto_products_v1_entities_variant_proto_rawDescOnce.Do(func() {
|
|
1391
|
-
file_src_proto_products_v1_entities_variant_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_src_proto_products_v1_entities_variant_proto_rawDesc), len(file_src_proto_products_v1_entities_variant_proto_rawDesc)))
|
|
1392
|
-
})
|
|
1393
|
-
return file_src_proto_products_v1_entities_variant_proto_rawDescData
|
|
1394
|
-
}
|
|
1395
|
-
|
|
1396
|
-
var file_src_proto_products_v1_entities_variant_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
1397
|
-
var file_src_proto_products_v1_entities_variant_proto_msgTypes = make([]protoimpl.MessageInfo, 20)
|
|
1398
|
-
var file_src_proto_products_v1_entities_variant_proto_goTypes = []any{
|
|
1399
|
-
(CreateVariantRequest_Price_Rule_Type)(0), // 0: CreateVariantRequest.Price.Rule.Type
|
|
1400
|
-
(*AssociateVariantToInventoryRequest)(nil), // 1: AssociateVariantToInventoryRequest
|
|
1401
|
-
(*AssociateVariantToInventoryResponse)(nil), // 2: AssociateVariantToInventoryResponse
|
|
1402
|
-
(*CreateVariantRequest)(nil), // 3: CreateVariantRequest
|
|
1403
|
-
(*CreateVariantResponse)(nil), // 4: CreateVariantResponse
|
|
1404
|
-
(*PatchVariantImageRequest)(nil), // 5: PatchVariantImageRequest
|
|
1405
|
-
(*PatchVariantImageResponse)(nil), // 6: PatchVariantImageResponse
|
|
1406
|
-
(*UpdateProductOptionRequest)(nil), // 7: UpdateProductOptionRequest
|
|
1407
|
-
(*UpdateProductOptionResponse)(nil), // 8: UpdateProductOptionResponse
|
|
1408
|
-
(*UpdateVariantInventoryRequest)(nil), // 9: UpdateVariantInventoryRequest
|
|
1409
|
-
(*UpdateVariantInventoryResponse)(nil), // 10: UpdateVariantInventoryResponse
|
|
1410
|
-
(*UpdateVariantRequest)(nil), // 11: UpdateVariantRequest
|
|
1411
|
-
(*UpdateVariantResponse)(nil), // 12: UpdateVariantResponse
|
|
1412
|
-
(*CreateVariantRequest_Price)(nil), // 13: CreateVariantRequest.Price
|
|
1413
|
-
(*CreateVariantRequest_InventoryItem)(nil), // 14: CreateVariantRequest.InventoryItem
|
|
1414
|
-
nil, // 15: CreateVariantRequest.OptionsEntry
|
|
1415
|
-
nil, // 16: CreateVariantRequest.MetadataEntry
|
|
1416
|
-
(*CreateVariantRequest_Price_Rule)(nil), // 17: CreateVariantRequest.Price.Rule
|
|
1417
|
-
nil, // 18: UpdateProductOptionRequest.MetadataEntry
|
|
1418
|
-
nil, // 19: UpdateVariantRequest.OptionsEntry
|
|
1419
|
-
nil, // 20: UpdateVariantRequest.MetadataEntry
|
|
1420
|
-
(*product.Variant)(nil), // 21: Variant
|
|
1421
|
-
(*product.ProductResponse)(nil), // 22: ProductResponse
|
|
1422
|
-
}
|
|
1423
|
-
var file_src_proto_products_v1_entities_variant_proto_depIdxs = []int32{
|
|
1424
|
-
21, // 0: AssociateVariantToInventoryResponse.variant:type_name -> Variant
|
|
1425
|
-
15, // 1: CreateVariantRequest.options:type_name -> CreateVariantRequest.OptionsEntry
|
|
1426
|
-
16, // 2: CreateVariantRequest.metadata:type_name -> CreateVariantRequest.MetadataEntry
|
|
1427
|
-
13, // 3: CreateVariantRequest.prices:type_name -> CreateVariantRequest.Price
|
|
1428
|
-
14, // 4: CreateVariantRequest.inventory_items:type_name -> CreateVariantRequest.InventoryItem
|
|
1429
|
-
22, // 5: CreateVariantResponse.product:type_name -> ProductResponse
|
|
1430
|
-
18, // 6: UpdateProductOptionRequest.metadata:type_name -> UpdateProductOptionRequest.MetadataEntry
|
|
1431
|
-
22, // 7: UpdateProductOptionResponse.product:type_name -> ProductResponse
|
|
1432
|
-
21, // 8: UpdateVariantInventoryResponse.product_variant:type_name -> Variant
|
|
1433
|
-
19, // 9: UpdateVariantRequest.options:type_name -> UpdateVariantRequest.OptionsEntry
|
|
1434
|
-
20, // 10: UpdateVariantRequest.metadata:type_name -> UpdateVariantRequest.MetadataEntry
|
|
1435
|
-
13, // 11: UpdateVariantRequest.prices:type_name -> CreateVariantRequest.Price
|
|
1436
|
-
14, // 12: UpdateVariantRequest.inventory_items:type_name -> CreateVariantRequest.InventoryItem
|
|
1437
|
-
22, // 13: UpdateVariantResponse.product:type_name -> ProductResponse
|
|
1438
|
-
17, // 14: CreateVariantRequest.Price.rules:type_name -> CreateVariantRequest.Price.Rule
|
|
1439
|
-
0, // 15: CreateVariantRequest.Price.Rule.entity_type:type_name -> CreateVariantRequest.Price.Rule.Type
|
|
1440
|
-
16, // [16:16] is the sub-list for method output_type
|
|
1441
|
-
16, // [16:16] is the sub-list for method input_type
|
|
1442
|
-
16, // [16:16] is the sub-list for extension type_name
|
|
1443
|
-
16, // [16:16] is the sub-list for extension extendee
|
|
1444
|
-
0, // [0:16] is the sub-list for field type_name
|
|
1445
|
-
}
|
|
1446
|
-
|
|
1447
|
-
func init() { file_src_proto_products_v1_entities_variant_proto_init() }
|
|
1448
|
-
func file_src_proto_products_v1_entities_variant_proto_init() {
|
|
1449
|
-
if File_src_proto_products_v1_entities_variant_proto != nil {
|
|
1450
|
-
return
|
|
1451
|
-
}
|
|
1452
|
-
file_src_proto_products_v1_entities_variant_proto_msgTypes[2].OneofWrappers = []any{}
|
|
1453
|
-
file_src_proto_products_v1_entities_variant_proto_msgTypes[10].OneofWrappers = []any{}
|
|
1454
|
-
file_src_proto_products_v1_entities_variant_proto_msgTypes[12].OneofWrappers = []any{}
|
|
1455
|
-
file_src_proto_products_v1_entities_variant_proto_msgTypes[13].OneofWrappers = []any{}
|
|
1456
|
-
type x struct{}
|
|
1457
|
-
out := protoimpl.TypeBuilder{
|
|
1458
|
-
File: protoimpl.DescBuilder{
|
|
1459
|
-
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
1460
|
-
RawDescriptor: unsafe.Slice(unsafe.StringData(file_src_proto_products_v1_entities_variant_proto_rawDesc), len(file_src_proto_products_v1_entities_variant_proto_rawDesc)),
|
|
1461
|
-
NumEnums: 1,
|
|
1462
|
-
NumMessages: 20,
|
|
1463
|
-
NumExtensions: 0,
|
|
1464
|
-
NumServices: 0,
|
|
1465
|
-
},
|
|
1466
|
-
GoTypes: file_src_proto_products_v1_entities_variant_proto_goTypes,
|
|
1467
|
-
DependencyIndexes: file_src_proto_products_v1_entities_variant_proto_depIdxs,
|
|
1468
|
-
EnumInfos: file_src_proto_products_v1_entities_variant_proto_enumTypes,
|
|
1469
|
-
MessageInfos: file_src_proto_products_v1_entities_variant_proto_msgTypes,
|
|
1470
|
-
}.Build()
|
|
1471
|
-
File_src_proto_products_v1_entities_variant_proto = out.File
|
|
1472
|
-
file_src_proto_products_v1_entities_variant_proto_goTypes = nil
|
|
1473
|
-
file_src_proto_products_v1_entities_variant_proto_depIdxs = nil
|
|
1474
|
-
}
|