kinetix-contracts 0.1.21

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 546b6ea33ed53ab0ed79c587cfa3e380dfb7092730c967a9bcad39cc371023d8
4
+ data.tar.gz: 669e879731dcd09e286dc06d0a56aee8679b14bc98e5e1c591b630482ebfca7b
5
+ SHA512:
6
+ metadata.gz: 6973b03e56e602605977f8878c20c300cfc3c143c7ac5da400f02d0bf1cabc181a477dcbbac03f351f0c79353228973485de078bad61672df605cf65a1e9f9ff
7
+ data.tar.gz: 1c1f712dfd373ad5096939d1397f59e17f753aa3a003f2d56798faac30722e62b1ecc0919b824f5402e61ca4fd61d3d4728c074a5f93e7597de60c762812512f
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: catalog/v1/catalog.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'common/v1/common_pb'
8
+ require 'google/protobuf/timestamp_pb'
9
+
10
+
11
+ descriptor_data = "\n\x18\x63\x61talog/v1/catalog.proto\x12\ncatalog.v1\x1a\x16\x63ommon/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"h\n\x06\x43ursor\x12\x43\n\x0fupdated_through\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0eupdatedThrough\x12\x19\n\x08last_sku\x18\x02 \x01(\tR\x07lastSku\"\xd1\x02\n\x07Product\x12\x10\n\x03sku\x18\x01 \x01(\tR\x03sku\x12\x32\n\x15merchant_principal_id\x18\x02 \x01(\tR\x13merchantPrincipalId\x12\x14\n\x05title\x18\x03 \x01(\tR\x05title\x12 \n\x0b\x64\x65scription\x18\x04 \x01(\tR\x0b\x64\x65scription\x12&\n\x05price\x18\x05 \x01(\x0b\x32\x10.common.v1.MoneyR\x05price\x12\x1b\n\timage_url\x18\x06 \x01(\tR\x08imageUrl\x12#\n\rcategory_slug\x18\x07 \x01(\tR\x0c\x63\x61tegorySlug\x12#\n\rcategory_name\x18\x08 \x01(\tR\x0c\x63\x61tegoryName\x12\x39\n\nupdated_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\"W\n\x13\x43hangedSinceRequest\x12*\n\x06\x63ursor\x18\x01 \x01(\x0b\x32\x12.catalog.v1.CursorR\x06\x63ursor\x12\x14\n\x05limit\x18\x02 \x01(\x05R\x05limit\"\xad\x01\n\x14\x43hangedSinceResponse\x12/\n\x08upserted\x18\x01 \x03(\x0b\x32\x13.catalog.v1.ProductR\x08upserted\x12!\n\x0cremoved_skus\x18\x02 \x03(\tR\x0bremovedSkus\x12&\n\x04next\x18\x03 \x01(\x0b\x32\x12.catalog.v1.CursorR\x04next\x12\x19\n\x08has_more\x18\x04 \x01(\x08R\x07hasMore\"%\n\x11GetProductRequest\x12\x10\n\x03sku\x18\x01 \x01(\tR\x03sku\"Y\n\x12GetProductResponse\x12\x14\n\x05\x66ound\x18\x01 \x01(\x08R\x05\x66ound\x12-\n\x07product\x18\x02 \x01(\x0b\x32\x13.catalog.v1.ProductR\x07product\"\x16\n\x14\x43ountProductsRequest\"-\n\x15\x43ountProductsResponse\x12\x14\n\x05total\x18\x01 \x01(\x03R\x05total2\x86\x02\n\x0e\x43\x61talogService\x12Q\n\x0c\x43hangedSince\x12\x1f.catalog.v1.ChangedSinceRequest\x1a .catalog.v1.ChangedSinceResponse\x12K\n\nGetProduct\x12\x1d.catalog.v1.GetProductRequest\x1a\x1e.catalog.v1.GetProductResponse\x12T\n\rCountProducts\x12 .catalog.v1.CountProductsRequest\x1a!.catalog.v1.CountProductsResponseB\xd4\x01\n com.kinetix.contracts.catalog.v1B\x0c\x43\x61talogProtoP\x01ZGgithub.com/WildanFrananda/kinetix-contracts/gen/go/catalog/v1;catalogv1\xa2\x02\x03KNX\xaa\x02\x1cKinetix.Contracts.Catalog.V1\xca\x02\nCatalog\\V1\xe2\x02\x16\x43\x61talog\\V1\\GPBMetadata\xea\x02\x0b\x43\x61talog::V1b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+ pool.add_serialized_file(descriptor_data)
15
+
16
+ module Catalog
17
+ module V1
18
+ Cursor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("catalog.v1.Cursor").msgclass
19
+ Product = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("catalog.v1.Product").msgclass
20
+ ChangedSinceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("catalog.v1.ChangedSinceRequest").msgclass
21
+ ChangedSinceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("catalog.v1.ChangedSinceResponse").msgclass
22
+ GetProductRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("catalog.v1.GetProductRequest").msgclass
23
+ GetProductResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("catalog.v1.GetProductResponse").msgclass
24
+ CountProductsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("catalog.v1.CountProductsRequest").msgclass
25
+ CountProductsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("catalog.v1.CountProductsResponse").msgclass
26
+ end
27
+ end
@@ -0,0 +1,26 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: catalog/v1/catalog.proto for package 'Catalog.V1'
3
+
4
+ require 'grpc'
5
+ require 'catalog/v1/catalog_pb'
6
+
7
+ module Catalog
8
+ module V1
9
+ module CatalogService
10
+ class Service
11
+
12
+ include ::GRPC::GenericService
13
+
14
+ self.marshal_class_method = :encode
15
+ self.unmarshal_class_method = :decode
16
+ self.service_name = 'catalog.v1.CatalogService'
17
+
18
+ rpc :ChangedSince, ::Catalog::V1::ChangedSinceRequest, ::Catalog::V1::ChangedSinceResponse
19
+ rpc :GetProduct, ::Catalog::V1::GetProductRequest, ::Catalog::V1::GetProductResponse
20
+ rpc :CountProducts, ::Catalog::V1::CountProductsRequest, ::Catalog::V1::CountProductsResponse
21
+ end
22
+
23
+ Stub = Service.rpc_stub_class
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: common/v1/common.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n\x16\x63ommon/v1/common.proto\x12\tcommon.v1\"F\n\x05Money\x12!\n\x0c\x61mount_minor\x18\x01 \x01(\x03R\x0b\x61mountMinor\x12\x1a\n\x08\x63urrency\x18\x02 \x01(\tR\x08\x63urrency\"D\n\x08GeoPoint\x12\x1a\n\x08latitude\x18\x01 \x01(\x01R\x08latitude\x12\x1c\n\tlongitude\x18\x02 \x01(\x01R\tlongitude\"\xe0\x01\n\x07\x41\x64\x64ress\x12%\n\x0erecipient_name\x18\x01 \x01(\tR\rrecipientName\x12!\n\x0cphone_number\x18\x02 \x01(\tR\x0bphoneNumber\x12%\n\x0estreet_address\x18\x03 \x01(\tR\rstreetAddress\x12\x12\n\x04\x63ity\x18\x04 \x01(\tR\x04\x63ity\x12\x1f\n\x0bpostal_code\x18\x05 \x01(\tR\npostalCode\x12/\n\x08location\x18\x06 \x01(\x0b\x32\x13.common.v1.GeoPointR\x08location\"\xb0\x01\n\tOrderItem\x12\x10\n\x03sku\x18\x01 \x01(\tR\x03sku\x12!\n\x0cproduct_name\x18\x02 \x01(\tR\x0bproductName\x12\x1a\n\x08quantity\x18\x03 \x01(\x05R\x08quantity\x12/\n\nunit_price\x18\x04 \x01(\x0b\x32\x10.common.v1.MoneyR\tunitPrice\x12!\n\x0c\x62in_location\x18\x05 \x01(\tR\x0b\x62inLocation\"q\n\x0b\x45rrorDetail\x12\x1d\n\nerror_code\x18\x01 \x01(\tR\terrorCode\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12)\n\x10\x66ield_violations\x18\x03 \x03(\tR\x0f\x66ieldViolations\"\"\n\x0eIdempotencyKey\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key*\xf6\x02\n\x0bOrderStatus\x12\x1c\n\x18ORDER_STATUS_UNSPECIFIED\x10\x00\x12 \n\x1cORDER_STATUS_PENDING_PAYMENT\x10\x01\x12\x15\n\x11ORDER_STATUS_PAID\x10\x02\x12\x19\n\x15ORDER_STATUS_RECEIVED\x10\x03\x12\x18\n\x14ORDER_STATUS_PACKING\x10\x04\x12\x17\n\x13ORDER_STATUS_PACKED\x10\x05\x12\x19\n\x15ORDER_STATUS_ASSIGNED\x10\x06\x12\x1b\n\x17ORDER_STATUS_DISPATCHED\x10\x07\x12\x1b\n\x17ORDER_STATUS_IN_TRANSIT\x10\x08\x12\x1a\n\x16ORDER_STATUS_DELIVERED\x10\t\x12\x1a\n\x16ORDER_STATUS_COMPLETED\x10\n\x12\x1a\n\x16ORDER_STATUS_CANCELLED\x10\x0b\x12\x19\n\x15ORDER_STATUS_REFUNDED\x10\x0c*\xeb\x01\n\rCourierStatus\x12\x1e\n\x1a\x43OURIER_STATUS_UNSPECIFIED\x10\x00\x12\x17\n\x13\x43OURIER_STATUS_IDLE\x10\x01\x12\x1b\n\x17\x43OURIER_STATUS_ASSIGNED\x10\x02\x12\"\n\x1e\x43OURIER_STATUS_EN_ROUTE_PICKUP\x10\x03\x12\x1c\n\x18\x43OURIER_STATUS_PICKED_UP\x10\x04\x12$\n COURIER_STATUS_EN_ROUTE_DELIVERY\x10\x05\x12\x1c\n\x18\x43OURIER_STATUS_COMPLETED\x10\x06*\xf0\x01\n\x0cReturnStatus\x12\x1d\n\x19RETURN_STATUS_UNSPECIFIED\x10\x00\x12\x1b\n\x17RETURN_STATUS_REQUESTED\x10\x01\x12&\n\"RETURN_STATUS_PICKED_UP_FROM_BUYER\x10\x02\x12\'\n#RETURN_STATUS_RECEIVED_AT_WAREHOUSE\x10\x03\x12\x1b\n\x17RETURN_STATUS_INSPECTED\x10\x04\x12\x1a\n\x16RETURN_STATUS_RESOLVED\x10\x05\x12\x1a\n\x16RETURN_STATUS_REJECTED\x10\x06\x42\xcc\x01\n\x1f\x63om.kinetix.contracts.common.v1B\x0b\x43ommonProtoP\x01ZEgithub.com/WildanFrananda/kinetix-contracts/gen/go/common/v1;commonv1\xa2\x02\x03KNX\xaa\x02\x1bKinetix.Contracts.Common.V1\xca\x02\tCommon\\V1\xe2\x02\x15\x43ommon\\V1\\GPBMetadata\xea\x02\nCommon::V1b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+ pool.add_serialized_file(descriptor_data)
12
+
13
+ module Common
14
+ module V1
15
+ Money = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.v1.Money").msgclass
16
+ GeoPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.v1.GeoPoint").msgclass
17
+ Address = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.v1.Address").msgclass
18
+ OrderItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.v1.OrderItem").msgclass
19
+ ErrorDetail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.v1.ErrorDetail").msgclass
20
+ IdempotencyKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.v1.IdempotencyKey").msgclass
21
+ OrderStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.v1.OrderStatus").enummodule
22
+ CourierStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.v1.CourierStatus").enummodule
23
+ ReturnStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("common.v1.ReturnStatus").enummodule
24
+ end
25
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: fleet/v1/fleet.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'common/v1/common_pb'
8
+ require 'google/protobuf/timestamp_pb'
9
+
10
+
11
+ descriptor_data = "\n\x14\x66leet/v1/fleet.proto\x12\x08\x66leet.v1\x1a\x16\x63ommon/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc4\x03\n\x16\x44ispatchCourierRequest\x12\x32\n\x15merchant_principal_id\x18\x01 \x01(\tR\x13merchantPrincipalId\x12\x19\n\x08order_id\x18\x02 \x01(\tR\x07orderId\x12!\n\x0corder_number\x18\x03 \x01(\tR\x0borderNumber\x12=\n\x0epickup_address\x18\x04 \x01(\x0b\x32\x12.common.v1.AddressB\x02\x18\x01R\rpickupAddress\x12\x41\n\x10\x64\x65livery_address\x18\x05 \x01(\x0b\x32\x12.common.v1.AddressB\x02\x18\x01R\x0f\x64\x65liveryAddress\x12\x42\n\x0fidempotency_key\x18\x06 \x01(\x0b\x32\x19.common.v1.IdempotencyKeyR\x0eidempotencyKey\x12\x36\n\x0cpickup_point\x18\x07 \x01(\x0b\x32\x13.common.v1.GeoPointR\x0bpickupPoint\x12:\n\x0e\x64\x65livery_point\x18\x08 \x01(\x0b\x32\x13.common.v1.GeoPointR\rdeliveryPoint\"\x8d\x03\n\x17\x44ispatchCourierResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\x12!\n\x0c\x64ispatch_ref\x18\x02 \x01(\tR\x0b\x64ispatchRef\x12?\n\x1c\x61ssigned_driver_principal_id\x18\x03 \x01(\tR\x19\x61ssignedDriverPrincipalId\x12\x34\n\x14\x61ssigned_driver_name\x18\x04 \x01(\tB\x02\x18\x01R\x12\x61ssignedDriverName\x12\x36\n\x15\x61ssigned_driver_phone\x18\x05 \x01(\tB\x02\x18\x01R\x13\x61ssignedDriverPhone\x12\x18\n\x07vehicle\x18\x06 \x01(\tR\x07vehicle\x12\x1f\n\x0b\x65ta_minutes\x18\x07 \x01(\x05R\netaMinutes\x12,\n\x05\x65rror\x18\x08 \x01(\x0b\x32\x16.common.v1.ErrorDetailR\x05\x65rror\x12\x1d\n\nawb_number\x18\t \x01(\tR\tawbNumber\"\xa4\x02\n\x12\x44riverLocationPing\x12.\n\x13\x64river_principal_id\x18\x01 \x01(\tR\x11\x64riverPrincipalId\x12!\n\x0corder_number\x18\x02 \x01(\tR\x0borderNumber\x12/\n\x08location\x18\x03 \x01(\x0b\x32\x13.common.v1.GeoPointR\x08location\x12\x1b\n\tspeed_kmh\x18\x04 \x01(\x01R\x08speedKmh\x12\x30\n\x06status\x18\x05 \x01(\x0e\x32\x18.common.v1.CourierStatusR\x06status\x12;\n\x0bobserved_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nobservedAt\"\x9c\x01\n\x11\x44riverLocationAck\x12.\n\x13\x64river_principal_id\x18\x01 \x01(\tR\x11\x64riverPrincipalId\x12\x1a\n\x08received\x18\x02 \x01(\x08R\x08received\x12;\n\x0bserver_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nserverTime2\xc8\x01\n\x17\x43ourierTelemetryService\x12V\n\x0f\x44ispatchCourier\x12 .fleet.v1.DispatchCourierRequest\x1a!.fleet.v1.DispatchCourierResponse\x12U\n\x14StreamDriverLocation\x12\x1c.fleet.v1.DriverLocationPing\x1a\x1b.fleet.v1.DriverLocationAck(\x01\x30\x01\x42\xc4\x01\n\x1e\x63om.kinetix.contracts.fleet.v1B\nFleetProtoP\x01ZCgithub.com/WildanFrananda/kinetix-contracts/gen/go/fleet/v1;fleetv1\xa2\x02\x03KNX\xaa\x02\x1aKinetix.Contracts.Fleet.V1\xca\x02\x08\x46leet\\V1\xe2\x02\x14\x46leet\\V1\\GPBMetadata\xea\x02\tFleet::V1b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+ pool.add_serialized_file(descriptor_data)
15
+
16
+ module Fleet
17
+ module V1
18
+ DispatchCourierRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fleet.v1.DispatchCourierRequest").msgclass
19
+ DispatchCourierResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fleet.v1.DispatchCourierResponse").msgclass
20
+ DriverLocationPing = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fleet.v1.DriverLocationPing").msgclass
21
+ DriverLocationAck = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fleet.v1.DriverLocationAck").msgclass
22
+ end
23
+ end
@@ -0,0 +1,25 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: fleet/v1/fleet.proto for package 'Fleet.V1'
3
+
4
+ require 'grpc'
5
+ require 'fleet/v1/fleet_pb'
6
+
7
+ module Fleet
8
+ module V1
9
+ module CourierTelemetryService
10
+ class Service
11
+
12
+ include ::GRPC::GenericService
13
+
14
+ self.marshal_class_method = :encode
15
+ self.unmarshal_class_method = :decode
16
+ self.service_name = 'fleet.v1.CourierTelemetryService'
17
+
18
+ rpc :DispatchCourier, ::Fleet::V1::DispatchCourierRequest, ::Fleet::V1::DispatchCourierResponse
19
+ rpc :StreamDriverLocation, stream(::Fleet::V1::DriverLocationPing), stream(::Fleet::V1::DriverLocationAck)
20
+ end
21
+
22
+ Stub = Service.rpc_stub_class
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: fleet/v1/registry.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'common/v1/common_pb'
8
+
9
+
10
+ descriptor_data = "\n\x17\x66leet/v1/registry.proto\x12\x08\x66leet.v1\x1a\x16\x63ommon/v1/common.proto\"\x80\x01\n\x15RegisterDriverRequest\x12!\n\x0cprincipal_id\x18\x01 \x01(\tR\x0bprincipalId\x12#\n\rvehicle_plate\x18\x02 \x01(\tR\x0cvehiclePlate\x12\x1f\n\x0b\x63\x61pacity_kg\x18\x03 \x01(\x05R\ncapacityKg\"\xac\x01\n\x16RegisterDriverResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\x12\x1b\n\tdriver_id\x18\x02 \x01(\x03R\x08\x64riverId\x12-\n\x12\x61lready_registered\x18\x03 \x01(\x08R\x11\x61lreadyRegistered\x12,\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x16.common.v1.ErrorDetailR\x05\x65rror\":\n\x15\x41\x63tivateDriverRequest\x12!\n\x0cprincipal_id\x18\x01 \x01(\tR\x0bprincipalId\"\xa4\x01\n\x16\x41\x63tivateDriverResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\x12\x1b\n\tdriver_id\x18\x02 \x01(\x03R\x08\x64riverId\x12%\n\x0e\x61lready_active\x18\x03 \x01(\x08R\ralreadyActive\x12,\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x16.common.v1.ErrorDetailR\x05\x65rror2\xc0\x01\n\x14\x46leetRegistryService\x12S\n\x0eRegisterDriver\x12\x1f.fleet.v1.RegisterDriverRequest\x1a .fleet.v1.RegisterDriverResponse\x12S\n\x0e\x41\x63tivateDriver\x12\x1f.fleet.v1.ActivateDriverRequest\x1a .fleet.v1.ActivateDriverResponseB\xc7\x01\n\x1e\x63om.kinetix.contracts.fleet.v1B\rRegistryProtoP\x01ZCgithub.com/WildanFrananda/kinetix-contracts/gen/go/fleet/v1;fleetv1\xa2\x02\x03KNX\xaa\x02\x1aKinetix.Contracts.Fleet.V1\xca\x02\x08\x46leet\\V1\xe2\x02\x14\x46leet\\V1\\GPBMetadata\xea\x02\tFleet::V1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Fleet
16
+ module V1
17
+ RegisterDriverRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fleet.v1.RegisterDriverRequest").msgclass
18
+ RegisterDriverResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fleet.v1.RegisterDriverResponse").msgclass
19
+ ActivateDriverRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fleet.v1.ActivateDriverRequest").msgclass
20
+ ActivateDriverResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fleet.v1.ActivateDriverResponse").msgclass
21
+ end
22
+ end
@@ -0,0 +1,25 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: fleet/v1/registry.proto for package 'Fleet.V1'
3
+
4
+ require 'grpc'
5
+ require 'fleet/v1/registry_pb'
6
+
7
+ module Fleet
8
+ module V1
9
+ module FleetRegistryService
10
+ class Service
11
+
12
+ include ::GRPC::GenericService
13
+
14
+ self.marshal_class_method = :encode
15
+ self.unmarshal_class_method = :decode
16
+ self.service_name = 'fleet.v1.FleetRegistryService'
17
+
18
+ rpc :RegisterDriver, ::Fleet::V1::RegisterDriverRequest, ::Fleet::V1::RegisterDriverResponse
19
+ rpc :ActivateDriver, ::Fleet::V1::ActivateDriverRequest, ::Fleet::V1::ActivateDriverResponse
20
+ end
21
+
22
+ Stub = Service.rpc_stub_class
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: fulfillment/v1/fulfillment.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'common/v1/common_pb'
8
+ require 'google/protobuf/timestamp_pb'
9
+
10
+
11
+ descriptor_data = "\n fulfillment/v1/fulfillment.proto\x12\x0e\x66ulfillment.v1\x1a\x16\x63ommon/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"c\n\x19\x43heckBinStockBatchRequest\x12\x32\n\x15merchant_principal_id\x18\x01 \x01(\tR\x13merchantPrincipalId\x12\x12\n\x04skus\x18\x02 \x03(\tR\x04skus\"Y\n\x1a\x43heckBinStockBatchResponse\x12;\n\x05items\x18\x01 \x03(\x0b\x32%.fulfillment.v1.CheckBinStockResponseR\x05items\"\\\n\x14\x43heckBinStockRequest\x12\x32\n\x15merchant_principal_id\x18\x01 \x01(\tR\x13merchantPrincipalId\x12\x10\n\x03sku\x18\x02 \x01(\tR\x03sku\"\xaa\x02\n\x15\x43heckBinStockResponse\x12\x14\n\x05\x66ound\x18\x01 \x01(\x08R\x05\x66ound\x12\x10\n\x03sku\x18\x02 \x01(\tR\x03sku\x12!\n\x0cproduct_name\x18\x03 \x01(\tR\x0bproductName\x12%\n\x0ephysical_stock\x18\x04 \x01(\x05R\rphysicalStock\x12\'\n\x0f\x61llocated_stock\x18\x05 \x01(\x05R\x0e\x61llocatedStock\x12\'\n\x0f\x61vailable_stock\x18\x06 \x01(\x05R\x0e\x61vailableStock\x12!\n\x0c\x62in_location\x18\x07 \x01(\tR\x0b\x62inLocation\x12*\n\x11low_stock_warning\x18\x08 \x01(\x08R\x0flowStockWarning\"\xde\x01\n\x13ReserveStockRequest\x12\x32\n\x15merchant_principal_id\x18\x01 \x01(\tR\x13merchantPrincipalId\x12\x10\n\x03sku\x18\x02 \x01(\tR\x03sku\x12\x1a\n\x08quantity\x18\x03 \x01(\x05R\x08quantity\x12!\n\x0corder_number\x18\x04 \x01(\tR\x0borderNumber\x12\x42\n\x0fidempotency_key\x18\x05 \x01(\x0b\x32\x19.common.v1.IdempotencyKeyR\x0eidempotencyKey\"\xb2\x01\n\x14ReserveStockResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\x12!\n\x0c\x62in_location\x18\x02 \x01(\tR\x0b\x62inLocation\x12/\n\x13remaining_available\x18\x03 \x01(\x05R\x12remainingAvailable\x12,\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x16.common.v1.ErrorDetailR\x05\x65rror\"\xde\x01\n\x13ReleaseStockRequest\x12\x32\n\x15merchant_principal_id\x18\x01 \x01(\tR\x13merchantPrincipalId\x12\x10\n\x03sku\x18\x02 \x01(\tR\x03sku\x12\x1a\n\x08quantity\x18\x03 \x01(\x05R\x08quantity\x12!\n\x0corder_number\x18\x04 \x01(\tR\x0borderNumber\x12\x42\n\x0fidempotency_key\x18\x05 \x01(\x0b\x32\x19.common.v1.IdempotencyKeyR\x0eidempotencyKey\"\xba\x01\n\x14ReleaseStockResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\x12)\n\x10\x61lready_released\x18\x02 \x01(\x08R\x0f\x61lreadyReleased\x12/\n\x13remaining_available\x18\x03 \x01(\x05R\x12remainingAvailable\x12,\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x16.common.v1.ErrorDetailR\x05\x65rror\"\x88\x04\n\x12\x43reateOrderRequest\x12\x32\n\x15merchant_principal_id\x18\x01 \x01(\tR\x13merchantPrincipalId\x12!\n\x0corder_number\x18\x02 \x01(\tR\x0borderNumber\x12\x39\n\x0epickup_address\x18\x03 \x01(\x0b\x32\x12.common.v1.AddressR\rpickupAddress\x12=\n\x10shipping_address\x18\x04 \x01(\x0b\x32\x12.common.v1.AddressR\x0fshippingAddress\x12\x33\n\x0ctotal_amount\x18\x05 \x01(\x0b\x32\x10.common.v1.MoneyR\x0btotalAmount\x12*\n\x05items\x18\x06 \x03(\x0b\x32\x14.common.v1.OrderItemR\x05items\x12\x42\n\x0fidempotency_key\x18\x07 \x01(\x0b\x32\x19.common.v1.IdempotencyKeyR\x0eidempotencyKey\x12<\n\x0fpickup_location\x18\x08 \x01(\x0b\x32\x13.common.v1.GeoPointR\x0epickupLocation\x12>\n\x10\x64ropoff_location\x18\t \x01(\x0b\x32\x13.common.v1.GeoPointR\x0f\x64ropoffLocation\"\xba\x02\n\x13\x43reateOrderResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\x12\x19\n\x08order_id\x18\x02 \x01(\tR\x07orderId\x12!\n\x0corder_number\x18\x03 \x01(\tR\x0borderNumber\x12.\n\x06status\x18\x04 \x01(\x0e\x32\x16.common.v1.OrderStatusR\x06status\x12\x32\n\x15merchant_principal_id\x18\x05 \x01(\tR\x13merchantPrincipalId\x12\x39\n\ncreated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12,\n\x05\x65rror\x18\x07 \x01(\x0b\x32\x16.common.v1.ErrorDetailR\x05\x65rror\"\x89\x01\n\x15GetOrderStatusRequest\x12\x32\n\x15merchant_principal_id\x18\x01 \x01(\tR\x13merchantPrincipalId\x12\x19\n\x08order_id\x18\x02 \x01(\tR\x07orderId\x12!\n\x0corder_number\x18\x03 \x01(\tR\x0borderNumber\"\xd8\x02\n\x16GetOrderStatusResponse\x12\x14\n\x05\x66ound\x18\x01 \x01(\x08R\x05\x66ound\x12\x19\n\x08order_id\x18\x02 \x01(\tR\x07orderId\x12!\n\x0corder_number\x18\x03 \x01(\tR\x0borderNumber\x12.\n\x06status\x18\x04 \x01(\x0e\x32\x16.common.v1.OrderStatusR\x06status\x12\x1d\n\nawb_number\x18\x05 \x01(\tR\tawbNumber\x12\"\n\rpod_photo_url\x18\x06 \x01(\tR\x0bpodPhotoUrl\x12<\n\x0f\x64river_location\x18\x07 \x01(\x0b\x32\x13.common.v1.GeoPointR\x0e\x64riverLocation\x12\x39\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\"\xbf\x01\n\x12\x43\x61ncelOrderRequest\x12\x32\n\x15merchant_principal_id\x18\x01 \x01(\tR\x13merchantPrincipalId\x12\x19\n\x08order_id\x18\x02 \x01(\tR\x07orderId\x12\x16\n\x06reason\x18\x03 \x01(\tR\x06reason\x12\x42\n\x0fidempotency_key\x18\x04 \x01(\x0b\x32\x19.common.v1.IdempotencyKeyR\x0eidempotencyKey\"\x88\x01\n\x13\x43\x61ncelOrderResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12=\n\x0e\x63urrent_status\x18\x03 \x01(\x0e\x32\x16.common.v1.OrderStatusR\rcurrentStatus2\x92\x03\n\x0f\x42inStockService\x12\\\n\rCheckBinStock\x12$.fulfillment.v1.CheckBinStockRequest\x1a%.fulfillment.v1.CheckBinStockResponse\x12k\n\x12\x43heckBinStockBatch\x12).fulfillment.v1.CheckBinStockBatchRequest\x1a*.fulfillment.v1.CheckBinStockBatchResponse\x12Y\n\x0cReserveStock\x12#.fulfillment.v1.ReserveStockRequest\x1a$.fulfillment.v1.ReserveStockResponse\x12Y\n\x0cReleaseStock\x12#.fulfillment.v1.ReleaseStockRequest\x1a$.fulfillment.v1.ReleaseStockResponse2\xa5\x02\n\x12\x46ulfillmentService\x12V\n\x0b\x43reateOrder\x12\".fulfillment.v1.CreateOrderRequest\x1a#.fulfillment.v1.CreateOrderResponse\x12_\n\x0eGetOrderStatus\x12%.fulfillment.v1.GetOrderStatusRequest\x1a&.fulfillment.v1.GetOrderStatusResponse\x12V\n\x0b\x43\x61ncelOrder\x12\".fulfillment.v1.CancelOrderRequest\x1a#.fulfillment.v1.CancelOrderResponseB\xf4\x01\n$com.kinetix.contracts.fulfillment.v1B\x10\x46ulfillmentProtoP\x01ZOgithub.com/WildanFrananda/kinetix-contracts/gen/go/fulfillment/v1;fulfillmentv1\xa2\x02\x03KNX\xaa\x02 Kinetix.Contracts.Fulfillment.V1\xca\x02\x0e\x46ulfillment\\V1\xe2\x02\x1a\x46ulfillment\\V1\\GPBMetadata\xea\x02\x0f\x46ulfillment::V1b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+ pool.add_serialized_file(descriptor_data)
15
+
16
+ module Fulfillment
17
+ module V1
18
+ CheckBinStockBatchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.CheckBinStockBatchRequest").msgclass
19
+ CheckBinStockBatchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.CheckBinStockBatchResponse").msgclass
20
+ CheckBinStockRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.CheckBinStockRequest").msgclass
21
+ CheckBinStockResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.CheckBinStockResponse").msgclass
22
+ ReserveStockRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.ReserveStockRequest").msgclass
23
+ ReserveStockResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.ReserveStockResponse").msgclass
24
+ ReleaseStockRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.ReleaseStockRequest").msgclass
25
+ ReleaseStockResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.ReleaseStockResponse").msgclass
26
+ CreateOrderRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.CreateOrderRequest").msgclass
27
+ CreateOrderResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.CreateOrderResponse").msgclass
28
+ GetOrderStatusRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.GetOrderStatusRequest").msgclass
29
+ GetOrderStatusResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.GetOrderStatusResponse").msgclass
30
+ CancelOrderRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.CancelOrderRequest").msgclass
31
+ CancelOrderResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.CancelOrderResponse").msgclass
32
+ end
33
+ end
@@ -0,0 +1,43 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: fulfillment/v1/fulfillment.proto for package 'Fulfillment.V1'
3
+
4
+ require 'grpc'
5
+ require 'fulfillment/v1/fulfillment_pb'
6
+
7
+ module Fulfillment
8
+ module V1
9
+ module BinStockService
10
+ class Service
11
+
12
+ include ::GRPC::GenericService
13
+
14
+ self.marshal_class_method = :encode
15
+ self.unmarshal_class_method = :decode
16
+ self.service_name = 'fulfillment.v1.BinStockService'
17
+
18
+ rpc :CheckBinStock, ::Fulfillment::V1::CheckBinStockRequest, ::Fulfillment::V1::CheckBinStockResponse
19
+ rpc :CheckBinStockBatch, ::Fulfillment::V1::CheckBinStockBatchRequest, ::Fulfillment::V1::CheckBinStockBatchResponse
20
+ rpc :ReserveStock, ::Fulfillment::V1::ReserveStockRequest, ::Fulfillment::V1::ReserveStockResponse
21
+ rpc :ReleaseStock, ::Fulfillment::V1::ReleaseStockRequest, ::Fulfillment::V1::ReleaseStockResponse
22
+ end
23
+
24
+ Stub = Service.rpc_stub_class
25
+ end
26
+ module FulfillmentService
27
+ class Service
28
+
29
+ include ::GRPC::GenericService
30
+
31
+ self.marshal_class_method = :encode
32
+ self.unmarshal_class_method = :decode
33
+ self.service_name = 'fulfillment.v1.FulfillmentService'
34
+
35
+ rpc :CreateOrder, ::Fulfillment::V1::CreateOrderRequest, ::Fulfillment::V1::CreateOrderResponse
36
+ rpc :GetOrderStatus, ::Fulfillment::V1::GetOrderStatusRequest, ::Fulfillment::V1::GetOrderStatusResponse
37
+ rpc :CancelOrder, ::Fulfillment::V1::CancelOrderRequest, ::Fulfillment::V1::CancelOrderResponse
38
+ end
39
+
40
+ Stub = Service.rpc_stub_class
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: fulfillment/v1/task.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'common/v1/common_pb'
8
+
9
+
10
+ descriptor_data = "\n\x19\x66ulfillment/v1/task.proto\x12\x0e\x66ulfillment.v1\x1a\x16\x63ommon/v1/common.proto\"\x83\x02\n\x17RecordCourierAwbRequest\x12\x32\n\x15merchant_principal_id\x18\x01 \x01(\tR\x13merchantPrincipalId\x12.\n\x13\x66ulfillment_task_id\x18\x02 \x01(\tR\x11\x66ulfillmentTaskId\x12!\n\x0corder_number\x18\x03 \x01(\tR\x0borderNumber\x12\x1d\n\nawb_number\x18\x04 \x01(\tR\tawbNumber\x12\x42\n\x0fidempotency_key\x18\x05 \x01(\x0b\x32\x19.common.v1.IdempotencyKeyR\x0eidempotencyKey\"\x8f\x01\n\x18RecordCourierAwbResponse\x12\x1a\n\x08\x61\x63\x63\x65pted\x18\x01 \x01(\x08R\x08\x61\x63\x63\x65pted\x12)\n\x10\x61lready_recorded\x18\x02 \x01(\x08R\x0f\x61lreadyRecorded\x12,\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x16.common.v1.ErrorDetailR\x05\x65rror\"C\n\x13\x46ulfillmentTaskLine\x12\x10\n\x03sku\x18\x01 \x01(\tR\x03sku\x12\x1a\n\x08quantity\x18\x02 \x01(\x05R\x08quantity\"\xf4\x01\n\x1c\x43reateFulfillmentTaskRequest\x12\x32\n\x15merchant_principal_id\x18\x01 \x01(\tR\x13merchantPrincipalId\x12!\n\x0corder_number\x18\x02 \x01(\tR\x0borderNumber\x12\x39\n\x05lines\x18\x03 \x03(\x0b\x32#.fulfillment.v1.FulfillmentTaskLineR\x05lines\x12\x42\n\x0fidempotency_key\x18\x04 \x01(\x0b\x32\x19.common.v1.IdempotencyKeyR\x0eidempotencyKey\"\xa9\x01\n\x1d\x43reateFulfillmentTaskResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\x12\x17\n\x07task_id\x18\x02 \x01(\tR\x06taskId\x12\'\n\x0f\x61lready_created\x18\x03 \x01(\x08R\x0e\x61lreadyCreated\x12,\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x16.common.v1.ErrorDetailR\x05\x65rror\"\x83\x01\n\x1c\x43\x61ncelFulfillmentTaskRequest\x12\x32\n\x15merchant_principal_id\x18\x01 \x01(\tR\x13merchantPrincipalId\x12\x17\n\x07task_id\x18\x02 \x01(\tR\x06taskId\x12\x16\n\x06reason\x18\x03 \x01(\tR\x06reason\"\x94\x01\n\x1d\x43\x61ncelFulfillmentTaskResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\x12+\n\x11\x61lready_cancelled\x18\x02 \x01(\x08R\x10\x61lreadyCancelled\x12,\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x16.common.v1.ErrorDetailR\x05\x65rror2\xeb\x02\n\x16\x46ulfillmentTaskService\x12t\n\x15\x43reateFulfillmentTask\x12,.fulfillment.v1.CreateFulfillmentTaskRequest\x1a-.fulfillment.v1.CreateFulfillmentTaskResponse\x12t\n\x15\x43\x61ncelFulfillmentTask\x12,.fulfillment.v1.CancelFulfillmentTaskRequest\x1a-.fulfillment.v1.CancelFulfillmentTaskResponse\x12\x65\n\x10RecordCourierAwb\x12\'.fulfillment.v1.RecordCourierAwbRequest\x1a(.fulfillment.v1.RecordCourierAwbResponseB\xed\x01\n$com.kinetix.contracts.fulfillment.v1B\tTaskProtoP\x01ZOgithub.com/WildanFrananda/kinetix-contracts/gen/go/fulfillment/v1;fulfillmentv1\xa2\x02\x03KNX\xaa\x02 Kinetix.Contracts.Fulfillment.V1\xca\x02\x0e\x46ulfillment\\V1\xe2\x02\x1a\x46ulfillment\\V1\\GPBMetadata\xea\x02\x0f\x46ulfillment::V1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Fulfillment
16
+ module V1
17
+ RecordCourierAwbRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.RecordCourierAwbRequest").msgclass
18
+ RecordCourierAwbResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.RecordCourierAwbResponse").msgclass
19
+ FulfillmentTaskLine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.FulfillmentTaskLine").msgclass
20
+ CreateFulfillmentTaskRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.CreateFulfillmentTaskRequest").msgclass
21
+ CreateFulfillmentTaskResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.CreateFulfillmentTaskResponse").msgclass
22
+ CancelFulfillmentTaskRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.CancelFulfillmentTaskRequest").msgclass
23
+ CancelFulfillmentTaskResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.CancelFulfillmentTaskResponse").msgclass
24
+ end
25
+ end
@@ -0,0 +1,26 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: fulfillment/v1/task.proto for package 'Fulfillment.V1'
3
+
4
+ require 'grpc'
5
+ require 'fulfillment/v1/task_pb'
6
+
7
+ module Fulfillment
8
+ module V1
9
+ module FulfillmentTaskService
10
+ class Service
11
+
12
+ include ::GRPC::GenericService
13
+
14
+ self.marshal_class_method = :encode
15
+ self.unmarshal_class_method = :decode
16
+ self.service_name = 'fulfillment.v1.FulfillmentTaskService'
17
+
18
+ rpc :CreateFulfillmentTask, ::Fulfillment::V1::CreateFulfillmentTaskRequest, ::Fulfillment::V1::CreateFulfillmentTaskResponse
19
+ rpc :CancelFulfillmentTask, ::Fulfillment::V1::CancelFulfillmentTaskRequest, ::Fulfillment::V1::CancelFulfillmentTaskResponse
20
+ rpc :RecordCourierAwb, ::Fulfillment::V1::RecordCourierAwbRequest, ::Fulfillment::V1::RecordCourierAwbResponse
21
+ end
22
+
23
+ Stub = Service.rpc_stub_class
24
+ end
25
+ end
26
+ end
data/geo/v1/geo_pb.rb ADDED
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: geo/v1/geo.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'common/v1/common_pb'
8
+
9
+
10
+ descriptor_data = "\n\x10geo/v1/geo.proto\x12\x06geo.v1\x1a\x16\x63ommon/v1/common.proto\"E\n\x15GeocodeAddressRequest\x12,\n\x07\x61\x64\x64ress\x18\x01 \x01(\x0b\x32\x12.common.v1.AddressR\x07\x61\x64\x64ress\"\xf6\x01\n\x16GeocodeAddressResponse\x12\x1a\n\x08geocoded\x18\x01 \x01(\x08R\x08geocoded\x12/\n\x08location\x18\x02 \x01(\x0b\x32\x13.common.v1.GeoPointR\x08location\x12\x30\n\x07\x66\x61ilure\x18\x03 \x01(\x0e\x32\x16.geo.v1.GeocodeFailureR\x07\x66\x61ilure\x12%\n\x0e\x66\x61ilure_detail\x18\x04 \x01(\tR\rfailureDetail\x12\x36\n\tprecision\x18\x05 \x01(\x0e\x32\x18.geo.v1.GeocodePrecisionR\tprecision\"K\n\x17GeocodeAddressesRequest\x12\x30\n\taddresses\x18\x01 \x03(\x0b\x32\x12.common.v1.AddressR\taddresses\"T\n\x18GeocodeAddressesResponse\x12\x38\n\x07results\x18\x01 \x03(\x0b\x32\x1e.geo.v1.GeocodeAddressResponseR\x07results*\xec\x01\n\x0eGeocodeFailure\x12\x1f\n\x1bGEOCODE_FAILURE_UNSPECIFIED\x10\x00\x12\x1d\n\x19GEOCODE_FAILURE_NOT_FOUND\x10\x01\x12\x1d\n\x19GEOCODE_FAILURE_AMBIGUOUS\x10\x02\x12(\n$GEOCODE_FAILURE_PROVIDER_UNAVAILABLE\x10\x03\x12\'\n#GEOCODE_FAILURE_OUT_OF_SERVICE_AREA\x10\x04\x12(\n$GEOCODE_FAILURE_INSUFFICIENT_ADDRESS\x10\x05*\xac\x01\n\x10GeocodePrecision\x12!\n\x1dGEOCODE_PRECISION_UNSPECIFIED\x10\x00\x12\x1d\n\x19GEOCODE_PRECISION_ROOFTOP\x10\x01\x12\x1c\n\x18GEOCODE_PRECISION_STREET\x10\x02\x12\x1c\n\x18GEOCODE_PRECISION_SUBURB\x10\x03\x12\x1a\n\x16GEOCODE_PRECISION_CITY\x10\x04\x32\xba\x01\n\x10GeocodingService\x12O\n\x0eGeocodeAddress\x12\x1d.geo.v1.GeocodeAddressRequest\x1a\x1e.geo.v1.GeocodeAddressResponse\x12U\n\x10GeocodeAddresses\x12\x1f.geo.v1.GeocodeAddressesRequest\x1a .geo.v1.GeocodeAddressesResponseB\xb4\x01\n\x1c\x63om.kinetix.contracts.geo.v1B\x08GeoProtoP\x01Z?github.com/WildanFrananda/kinetix-contracts/gen/go/geo/v1;geov1\xa2\x02\x03KNX\xaa\x02\x18Kinetix.Contracts.Geo.V1\xca\x02\x06Geo\\V1\xe2\x02\x12Geo\\V1\\GPBMetadata\xea\x02\x07Geo::V1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Geo
16
+ module V1
17
+ GeocodeAddressRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("geo.v1.GeocodeAddressRequest").msgclass
18
+ GeocodeAddressResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("geo.v1.GeocodeAddressResponse").msgclass
19
+ GeocodeAddressesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("geo.v1.GeocodeAddressesRequest").msgclass
20
+ GeocodeAddressesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("geo.v1.GeocodeAddressesResponse").msgclass
21
+ GeocodeFailure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("geo.v1.GeocodeFailure").enummodule
22
+ GeocodePrecision = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("geo.v1.GeocodePrecision").enummodule
23
+ end
24
+ end
@@ -0,0 +1,25 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: geo/v1/geo.proto for package 'Geo.V1'
3
+
4
+ require 'grpc'
5
+ require 'geo/v1/geo_pb'
6
+
7
+ module Geo
8
+ module V1
9
+ module GeocodingService
10
+ class Service
11
+
12
+ include ::GRPC::GenericService
13
+
14
+ self.marshal_class_method = :encode
15
+ self.unmarshal_class_method = :decode
16
+ self.service_name = 'geo.v1.GeocodingService'
17
+
18
+ rpc :GeocodeAddress, ::Geo::V1::GeocodeAddressRequest, ::Geo::V1::GeocodeAddressResponse
19
+ rpc :GeocodeAddresses, ::Geo::V1::GeocodeAddressesRequest, ::Geo::V1::GeocodeAddressesResponse
20
+ end
21
+
22
+ Stub = Service.rpc_stub_class
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: identity/v1/identity.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'common/v1/common_pb'
8
+ require 'google/protobuf/timestamp_pb'
9
+
10
+
11
+ descriptor_data = "\n\x1aidentity/v1/identity.proto\x12\x0bidentity.v1\x1a\x16\x63ommon/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"E\n\x0eServiceLocalId\x12\x18\n\x07service\x18\x01 \x01(\tR\x07service\x12\x19\n\x08local_id\x18\x02 \x01(\tR\x07localId\"`\n\x17ResolvePrincipalRequest\x12\x45\n\x10service_local_id\x18\x01 \x01(\x0b\x32\x1b.identity.v1.ServiceLocalIdR\x0eserviceLocalId\"\xa6\x01\n\x18ResolvePrincipalResponse\x12\x14\n\x05\x66ound\x18\x01 \x01(\x08R\x05\x66ound\x12!\n\x0cprincipal_id\x18\x02 \x01(\tR\x0bprincipalId\x12.\n\x04kind\x18\x03 \x01(\x0e\x32\x1a.identity.v1.PrincipalKindR\x04kind\x12!\n\x0c\x64isplay_name\x18\x04 \x01(\tR\x0b\x64isplayName\"8\n\x13GetPrincipalRequest\x12!\n\x0cprincipal_id\x18\x01 \x01(\tR\x0bprincipalId\"\xd9\x01\n\x14GetPrincipalResponse\x12\x14\n\x05\x66ound\x18\x01 \x01(\x08R\x05\x66ound\x12!\n\x0cprincipal_id\x18\x02 \x01(\tR\x0bprincipalId\x12.\n\x04kind\x18\x03 \x01(\x0e\x32\x1a.identity.v1.PrincipalKindR\x04kind\x12!\n\x0c\x64isplay_name\x18\x04 \x01(\tR\x0b\x64isplayName\x12\x35\n\x07\x61liases\x18\x05 \x03(\x0b\x32\x1b.identity.v1.ServiceLocalIdR\x07\x61liases\":\n\x15GetUserProfileRequest\x12!\n\x0cprincipal_id\x18\x01 \x01(\tR\x0bprincipalId\"\xea\x02\n\x16GetUserProfileResponse\x12\x14\n\x05\x66ound\x18\x01 \x01(\x08R\x05\x66ound\x12!\n\x0cprincipal_id\x18\x02 \x01(\tR\x0bprincipalId\x12\x14\n\x05\x65mail\x18\x03 \x01(\tR\x05\x65mail\x12\x1b\n\tfull_name\x18\x04 \x01(\tR\x08\x66ullName\x12!\n\x0cphone_number\x18\x05 \x01(\tR\x0bphoneNumber\x12%\n\x0estreet_address\x18\x06 \x01(\tR\rstreetAddress\x12\x12\n\x04\x63ity\x18\x07 \x01(\tR\x04\x63ity\x12\x1f\n\x0bpostal_code\x18\x08 \x01(\tR\npostalCode\x12.\n\x04kind\x18\t \x01(\x0e\x32\x1a.identity.v1.PrincipalKindR\x04kind\x12/\n\x08location\x18\x0b \x01(\x0b\x32\x13.common.v1.GeoPointR\x08locationJ\x04\x08\n\x10\x0b\";\n\x16GetMerchantInfoRequest\x12!\n\x0cprincipal_id\x18\x01 \x01(\tR\x0bprincipalId\"\x9d\x03\n\x17GetMerchantInfoResponse\x12\x14\n\x05\x66ound\x18\x01 \x01(\x08R\x05\x66ound\x12\x32\n\x15merchant_principal_id\x18\x02 \x01(\tR\x13merchantPrincipalId\x12\x1d\n\nstore_name\x18\x03 \x01(\tR\tstoreName\x12@\n\x1c\x62usiness_registration_number\x18\x04 \x01(\tR\x1a\x62usinessRegistrationNumber\x12\x15\n\x06tax_id\x18\x05 \x01(\tR\x05taxId\x12\x33\n\x06status\x18\x06 \x01(\x0e\x32\x1b.identity.v1.MerchantStatusR\x06status\x12\x39\n\x0epickup_address\x18\x07 \x01(\x0b\x32\x12.common.v1.AddressR\rpickupAddress\x12/\n\x08location\x18\t \x01(\x0b\x32\x13.common.v1.GeoPointR\x08location\x12\x19\n\x08may_sell\x18\n \x01(\x08R\x07maySellJ\x04\x08\x08\x10\t\"9\n\x14ValidateTokenRequest\x12!\n\x0c\x61\x63\x63\x65ss_token\x18\x01 \x01(\tR\x0b\x61\x63\x63\x65ssToken\"\x98\x01\n\x15ValidateTokenResponse\x12\x14\n\x05valid\x18\x01 \x01(\x08R\x05valid\x12!\n\x0cprincipal_id\x18\x02 \x01(\tR\x0bprincipalId\x12.\n\x04kind\x18\x03 \x01(\x0e\x32\x1a.identity.v1.PrincipalKindR\x04kind\x12\x16\n\x06reason\x18\x04 \x01(\tR\x06reason\"\x81\x01\n\x0eMerchantCursor\x12\x43\n\x0fupdated_through\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0eupdatedThrough\x12*\n\x11last_principal_id\x18\x02 \x01(\tR\x0flastPrincipalId\"\xdd\x01\n\x0eMerchantRecord\x12!\n\x0cprincipal_id\x18\x01 \x01(\tR\x0bprincipalId\x12\x1d\n\nstore_name\x18\x02 \x01(\tR\tstoreName\x12\x33\n\x06status\x18\x03 \x01(\x0e\x32\x1b.identity.v1.MerchantStatusR\x06status\x12\x19\n\x08may_sell\x18\x04 \x01(\x08R\x07maySell\x12\x39\n\nupdated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\"i\n\x1cMerchantsChangedSinceRequest\x12\x33\n\x06\x63ursor\x18\x01 \x01(\x0b\x32\x1b.identity.v1.MerchantCursorR\x06\x63ursor\x12\x14\n\x05limit\x18\x02 \x01(\x05R\x05limit\"\xd8\x01\n\x1dMerchantsChangedSinceResponse\x12\x37\n\x08upserted\x18\x01 \x03(\x0b\x32\x1b.identity.v1.MerchantRecordR\x08upserted\x12\x32\n\x15removed_principal_ids\x18\x02 \x03(\tR\x13removedPrincipalIds\x12/\n\x04next\x18\x03 \x01(\x0b\x32\x1b.identity.v1.MerchantCursorR\x04next\x12\x19\n\x08has_more\x18\x04 \x01(\x08R\x07hasMore*\xba\x01\n\rPrincipalKind\x12\x1e\n\x1aPRINCIPAL_KIND_UNSPECIFIED\x10\x00\x12\x1b\n\x17PRINCIPAL_KIND_CUSTOMER\x10\x01\x12\x1b\n\x17PRINCIPAL_KIND_MERCHANT\x10\x02\x12\x19\n\x15PRINCIPAL_KIND_DRIVER\x10\x03\x12\x18\n\x14PRINCIPAL_KIND_STAFF\x10\x04\x12\x1a\n\x16PRINCIPAL_KIND_SERVICE\x10\x05*\xa7\x01\n\x0eMerchantStatus\x12\x1f\n\x1bMERCHANT_STATUS_UNSPECIFIED\x10\x00\x12\x1b\n\x17MERCHANT_STATUS_PENDING\x10\x01\x12\x1c\n\x18MERCHANT_STATUS_VERIFIED\x10\x02\x12\x1d\n\x19MERCHANT_STATUS_SUSPENDED\x10\x03\x12\x1a\n\x16MERCHANT_STATUS_CLOSED\x10\x04\x32\xc8\x04\n\x0fIdentityService\x12_\n\x10ResolvePrincipal\x12$.identity.v1.ResolvePrincipalRequest\x1a%.identity.v1.ResolvePrincipalResponse\x12S\n\x0cGetPrincipal\x12 .identity.v1.GetPrincipalRequest\x1a!.identity.v1.GetPrincipalResponse\x12Y\n\x0eGetUserProfile\x12\".identity.v1.GetUserProfileRequest\x1a#.identity.v1.GetUserProfileResponse\x12\\\n\x0fGetMerchantInfo\x12#.identity.v1.GetMerchantInfoRequest\x1a$.identity.v1.GetMerchantInfoResponse\x12V\n\rValidateToken\x12!.identity.v1.ValidateTokenRequest\x1a\".identity.v1.ValidateTokenResponse\x12n\n\x15MerchantsChangedSince\x12).identity.v1.MerchantsChangedSinceRequest\x1a*.identity.v1.MerchantsChangedSinceResponseB\xdc\x01\n!com.kinetix.contracts.identity.v1B\rIdentityProtoP\x01ZIgithub.com/WildanFrananda/kinetix-contracts/gen/go/identity/v1;identityv1\xa2\x02\x03KNX\xaa\x02\x1dKinetix.Contracts.Identity.V1\xca\x02\x0bIdentity\\V1\xe2\x02\x17Identity\\V1\\GPBMetadata\xea\x02\x0cIdentity::V1b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+ pool.add_serialized_file(descriptor_data)
15
+
16
+ module Identity
17
+ module V1
18
+ ServiceLocalId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.ServiceLocalId").msgclass
19
+ ResolvePrincipalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.ResolvePrincipalRequest").msgclass
20
+ ResolvePrincipalResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.ResolvePrincipalResponse").msgclass
21
+ GetPrincipalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.GetPrincipalRequest").msgclass
22
+ GetPrincipalResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.GetPrincipalResponse").msgclass
23
+ GetUserProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.GetUserProfileRequest").msgclass
24
+ GetUserProfileResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.GetUserProfileResponse").msgclass
25
+ GetMerchantInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.GetMerchantInfoRequest").msgclass
26
+ GetMerchantInfoResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.GetMerchantInfoResponse").msgclass
27
+ ValidateTokenRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.ValidateTokenRequest").msgclass
28
+ ValidateTokenResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.ValidateTokenResponse").msgclass
29
+ MerchantCursor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.MerchantCursor").msgclass
30
+ MerchantRecord = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.MerchantRecord").msgclass
31
+ MerchantsChangedSinceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.MerchantsChangedSinceRequest").msgclass
32
+ MerchantsChangedSinceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.MerchantsChangedSinceResponse").msgclass
33
+ PrincipalKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.PrincipalKind").enummodule
34
+ MerchantStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.MerchantStatus").enummodule
35
+ end
36
+ end
@@ -0,0 +1,29 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: identity/v1/identity.proto for package 'Identity.V1'
3
+
4
+ require 'grpc'
5
+ require 'identity/v1/identity_pb'
6
+
7
+ module Identity
8
+ module V1
9
+ module IdentityService
10
+ class Service
11
+
12
+ include ::GRPC::GenericService
13
+
14
+ self.marshal_class_method = :encode
15
+ self.unmarshal_class_method = :decode
16
+ self.service_name = 'identity.v1.IdentityService'
17
+
18
+ rpc :ResolvePrincipal, ::Identity::V1::ResolvePrincipalRequest, ::Identity::V1::ResolvePrincipalResponse
19
+ rpc :GetPrincipal, ::Identity::V1::GetPrincipalRequest, ::Identity::V1::GetPrincipalResponse
20
+ rpc :GetUserProfile, ::Identity::V1::GetUserProfileRequest, ::Identity::V1::GetUserProfileResponse
21
+ rpc :GetMerchantInfo, ::Identity::V1::GetMerchantInfoRequest, ::Identity::V1::GetMerchantInfoResponse
22
+ rpc :ValidateToken, ::Identity::V1::ValidateTokenRequest, ::Identity::V1::ValidateTokenResponse
23
+ rpc :MerchantsChangedSince, ::Identity::V1::MerchantsChangedSinceRequest, ::Identity::V1::MerchantsChangedSinceResponse
24
+ end
25
+
26
+ Stub = Service.rpc_stub_class
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: notification/v1/notification.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'common/v1/common_pb'
8
+
9
+
10
+ descriptor_data = "\n\"notification/v1/notification.proto\x12\x0fnotification.v1\x1a\x16\x63ommon/v1/common.proto\"\x9a\x01\n\x15RegisterDeviceRequest\x12!\n\x0cprincipal_id\x18\x01 \x01(\tR\x0bprincipalId\x12!\n\x0c\x64\x65vice_token\x18\x02 \x01(\tR\x0b\x64\x65viceToken\x12;\n\x08platform\x18\x03 \x01(\x0e\x32\x1f.notification.v1.DevicePlatformR\x08platform\"\x95\x01\n\x16RegisterDeviceResponse\x12\x1e\n\nregistered\x18\x01 \x01(\x08R\nregistered\x12-\n\x12\x61lready_registered\x18\x02 \x01(\x08R\x11\x61lreadyRegistered\x12,\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x16.common.v1.ErrorDetailR\x05\x65rror\"8\n\x13\x46orgetDeviceRequest\x12!\n\x0c\x64\x65vice_token\x18\x01 \x01(\tR\x0b\x64\x65viceToken\"b\n\x14\x46orgetDeviceResponse\x12\x1c\n\tforgotten\x18\x01 \x01(\x08R\tforgotten\x12,\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x16.common.v1.ErrorDetailR\x05\x65rror\"\xf5\x02\n\rNotifyRequest\x12\x34\n\x16recipient_principal_id\x18\x01 \x01(\tR\x14recipientPrincipalId\x12\x35\n\x08template\x18\x02 \x01(\x0e\x32\x19.notification.v1.TemplateR\x08template\x12\x42\n\x06params\x18\x03 \x03(\x0b\x32*.notification.v1.NotifyRequest.ParamsEntryR\x06params\x12\x34\n\x08\x63hannels\x18\x04 \x03(\x0e\x32\x18.notification.v1.ChannelR\x08\x63hannels\x12\x42\n\x0fidempotency_key\x18\x05 \x01(\x0b\x32\x19.common.v1.IdempotencyKeyR\x0eidempotencyKey\x1a\x39\n\x0bParamsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xae\x01\n\x0eNotifyResponse\x12\x1a\n\x08\x61\x63\x63\x65pted\x18\x01 \x01(\x08R\x08\x61\x63\x63\x65pted\x12\'\n\x0fnotification_id\x18\x02 \x01(\tR\x0enotificationId\x12)\n\x10\x61lready_accepted\x18\x03 \x01(\x08R\x0f\x61lreadyAccepted\x12,\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x16.common.v1.ErrorDetailR\x05\x65rror\"=\n\x12GetDeliveryRequest\x12\'\n\x0fnotification_id\x18\x01 \x01(\tR\x0enotificationId\"\xe1\x01\n\x0f\x44\x65liveryAttempt\x12\x32\n\x07\x63hannel\x18\x01 \x01(\x0e\x32\x18.notification.v1.ChannelR\x07\x63hannel\x12\x37\n\x06status\x18\x02 \x01(\x0e\x32\x1f.notification.v1.DeliveryStatusR\x06status\x12\x1a\n\x08\x61ttempts\x18\x03 \x01(\x05R\x08\x61ttempts\x12\x1d\n\nlast_error\x18\x04 \x01(\tR\tlastError\x12&\n\x0flast_attempt_at\x18\x05 \x01(\tR\rlastAttemptAt\"\xff\x01\n\x13GetDeliveryResponse\x12\x14\n\x05\x66ound\x18\x01 \x01(\x08R\x05\x66ound\x12\'\n\x0fnotification_id\x18\x02 \x01(\tR\x0enotificationId\x12\x34\n\x16recipient_principal_id\x18\x03 \x01(\tR\x14recipientPrincipalId\x12\x35\n\x08template\x18\x04 \x01(\x0e\x32\x19.notification.v1.TemplateR\x08template\x12<\n\x08\x61ttempts\x18\x05 \x03(\x0b\x32 .notification.v1.DeliveryAttemptR\x08\x61ttempts*g\n\x0e\x44\x65vicePlatform\x12\x1f\n\x1b\x44\x45VICE_PLATFORM_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x44\x45VICE_PLATFORM_ANDROID\x10\x01\x12\x17\n\x13\x44\x45VICE_PLATFORM_IOS\x10\x02*G\n\x07\x43hannel\x12\x17\n\x13\x43HANNEL_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x43HANNEL_PUSH\x10\x01\x12\x11\n\rCHANNEL_EMAIL\x10\x02*\xa5\x01\n\x0e\x44\x65liveryStatus\x12\x1f\n\x1b\x44\x45LIVERY_STATUS_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x44\x45LIVERY_STATUS_PENDING\x10\x01\x12\x18\n\x14\x44\x45LIVERY_STATUS_SENT\x10\x02\x12\x1a\n\x16\x44\x45LIVERY_STATUS_FAILED\x10\x03\x12\x1f\n\x1b\x44\x45LIVERY_STATUS_UNREACHABLE\x10\x04*\xcd\x01\n\x08Template\x12\x18\n\x14TEMPLATE_UNSPECIFIED\x10\x00\x12\x17\n\x13TEMPLATE_ORDER_PAID\x10\x01\x12\x19\n\x15TEMPLATE_ORDER_PACKED\x10\x02\x12\x1d\n\x19TEMPLATE_COURIER_ASSIGNED\x10\x03\x12\x1c\n\x18TEMPLATE_ORDER_DELIVERED\x10\x04\x12\x1a\n\x16TEMPLATE_COURIER_OFFER\x10\x05\x12\x1a\n\x16TEMPLATE_RETURN_OPENED\x10\x06\x32\xfa\x02\n\x13NotificationService\x12I\n\x06Notify\x12\x1e.notification.v1.NotifyRequest\x1a\x1f.notification.v1.NotifyResponse\x12X\n\x0bGetDelivery\x12#.notification.v1.GetDeliveryRequest\x1a$.notification.v1.GetDeliveryResponse\x12\x61\n\x0eRegisterDevice\x12&.notification.v1.RegisterDeviceRequest\x1a\'.notification.v1.RegisterDeviceResponse\x12[\n\x0c\x46orgetDevice\x12$.notification.v1.ForgetDeviceRequest\x1a%.notification.v1.ForgetDeviceResponseB\xfc\x01\n%com.kinetix.contracts.notification.v1B\x11NotificationProtoP\x01ZQgithub.com/WildanFrananda/kinetix-contracts/gen/go/notification/v1;notificationv1\xa2\x02\x03KNX\xaa\x02!Kinetix.Contracts.Notification.V1\xca\x02\x0fNotification\\V1\xe2\x02\x1bNotification\\V1\\GPBMetadata\xea\x02\x10Notification::V1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Notification
16
+ module V1
17
+ RegisterDeviceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("notification.v1.RegisterDeviceRequest").msgclass
18
+ RegisterDeviceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("notification.v1.RegisterDeviceResponse").msgclass
19
+ ForgetDeviceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("notification.v1.ForgetDeviceRequest").msgclass
20
+ ForgetDeviceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("notification.v1.ForgetDeviceResponse").msgclass
21
+ NotifyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("notification.v1.NotifyRequest").msgclass
22
+ NotifyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("notification.v1.NotifyResponse").msgclass
23
+ GetDeliveryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("notification.v1.GetDeliveryRequest").msgclass
24
+ DeliveryAttempt = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("notification.v1.DeliveryAttempt").msgclass
25
+ GetDeliveryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("notification.v1.GetDeliveryResponse").msgclass
26
+ DevicePlatform = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("notification.v1.DevicePlatform").enummodule
27
+ Channel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("notification.v1.Channel").enummodule
28
+ DeliveryStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("notification.v1.DeliveryStatus").enummodule
29
+ Template = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("notification.v1.Template").enummodule
30
+ end
31
+ end
@@ -0,0 +1,27 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: notification/v1/notification.proto for package 'Notification.V1'
3
+
4
+ require 'grpc'
5
+ require 'notification/v1/notification_pb'
6
+
7
+ module Notification
8
+ module V1
9
+ module NotificationService
10
+ class Service
11
+
12
+ include ::GRPC::GenericService
13
+
14
+ self.marshal_class_method = :encode
15
+ self.unmarshal_class_method = :decode
16
+ self.service_name = 'notification.v1.NotificationService'
17
+
18
+ rpc :Notify, ::Notification::V1::NotifyRequest, ::Notification::V1::NotifyResponse
19
+ rpc :GetDelivery, ::Notification::V1::GetDeliveryRequest, ::Notification::V1::GetDeliveryResponse
20
+ rpc :RegisterDevice, ::Notification::V1::RegisterDeviceRequest, ::Notification::V1::RegisterDeviceResponse
21
+ rpc :ForgetDevice, ::Notification::V1::ForgetDeviceRequest, ::Notification::V1::ForgetDeviceResponse
22
+ end
23
+
24
+ Stub = Service.rpc_stub_class
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: order/v1/order.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'common/v1/common_pb'
8
+ require 'google/protobuf/timestamp_pb'
9
+
10
+
11
+ descriptor_data = "\n\x14order/v1/order.proto\x12\x08order.v1\x1a\x16\x63ommon/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc6\x01\n\x11OpenReturnRequest\x12!\n\x0corder_number\x18\x01 \x01(\tR\x0borderNumber\x12\x32\n\x15merchant_principal_id\x18\x02 \x01(\tR\x13merchantPrincipalId\x12\x16\n\x06reason\x18\x03 \x01(\tR\x06reason\x12\x42\n\x0fidempotency_key\x18\x04 \x01(\x0b\x32\x19.common.v1.IdempotencyKeyR\x0eidempotencyKey\"\xd4\x01\n\x12OpenReturnResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\x12#\n\rreturn_number\x18\x02 \x01(\tR\x0creturnNumber\x12.\n\x06status\x18\x03 \x01(\x0e\x32\x16.order.v1.ReturnStatusR\x06status\x12!\n\x0c\x61lready_open\x18\x04 \x01(\x08R\x0b\x61lreadyOpen\x12,\n\x05\x65rror\x18\x05 \x01(\x0b\x32\x16.common.v1.ErrorDetailR\x05\x65rror\"<\n\x0cReturnedLine\x12\x10\n\x03sku\x18\x01 \x01(\tR\x03sku\x12\x1a\n\x08quantity\x18\x02 \x01(\x05R\x08quantity\"\xa3\x02\n\x1aReturnGoodsReceivedRequest\x12#\n\rreturn_number\x18\x01 \x01(\tR\x0creturnNumber\x12\x32\n\x15merchant_principal_id\x18\x02 \x01(\tR\x13merchantPrincipalId\x12,\n\x05lines\x18\x03 \x03(\x0b\x32\x16.order.v1.ReturnedLineR\x05lines\x12\x19\n\x08\x62in_code\x18\x04 \x01(\tR\x07\x62inCode\x12\x1f\n\x0breceived_at\x18\x05 \x01(\tR\nreceivedAt\x12\x42\n\x0fidempotency_key\x18\x06 \x01(\x0b\x32\x19.common.v1.IdempotencyKeyR\x0eidempotencyKey\"\xc2\x01\n\x1bReturnGoodsReceivedResponse\x12\x1a\n\x08\x61\x63\x63\x65pted\x18\x01 \x01(\x08R\x08\x61\x63\x63\x65pted\x12)\n\x10\x61lready_recorded\x18\x02 \x01(\x08R\x0f\x61lreadyRecorded\x12.\n\x06status\x18\x03 \x01(\x0e\x32\x16.order.v1.ReturnStatusR\x06status\x12,\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x16.common.v1.ErrorDetailR\x05\x65rror\"\x8d\x01\n\x15OrderDeliveredRequest\x12!\n\x0corder_number\x18\x01 \x01(\tR\x0borderNumber\x12.\n\x13\x64river_principal_id\x18\x02 \x01(\tR\x11\x64riverPrincipalId\x12!\n\x0c\x64\x65livered_at\x18\x03 \x01(\tR\x0b\x64\x65liveredAt\"\x8f\x01\n\x16OrderDeliveredResponse\x12\x1a\n\x08\x61\x63\x63\x65pted\x18\x01 \x01(\x08R\x08\x61\x63\x63\x65pted\x12+\n\x11\x61lready_delivered\x18\x02 \x01(\x08R\x10\x61lreadyDelivered\x12,\n\x05\x65rror\x18\x03 \x01(\x0b\x32\x16.common.v1.ErrorDetailR\x05\x65rror\"\xa1\x01\n\x18\x46ulfillmentPackedRequest\x12\x32\n\x15merchant_principal_id\x18\x01 \x01(\tR\x13merchantPrincipalId\x12!\n\x0corder_number\x18\x02 \x01(\tR\x0borderNumber\x12.\n\x13\x66ulfillment_task_id\x18\x03 \x01(\tR\x11\x66ulfillmentTaskId\"\xad\x01\n\x19\x46ulfillmentPackedResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\x12%\n\x0e\x61lready_packed\x18\x02 \x01(\x08R\ralreadyPacked\x12!\n\x0c\x64ispatch_ref\x18\x03 \x01(\tR\x0b\x64ispatchRef\x12,\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x16.common.v1.ErrorDetailR\x05\x65rror\"3\n\x16GetOrderDetailsRequest\x12\x19\n\x08order_id\x18\x01 \x01(\tR\x07orderId\"\xd3\x01\n\tOrderLine\x12\x1d\n\nproduct_id\x18\x01 \x01(\tR\tproductId\x12#\n\rproduct_title\x18\x02 \x01(\tR\x0cproductTitle\x12/\n\nunit_price\x18\x03 \x01(\x0b\x32\x10.common.v1.MoneyR\tunitPrice\x12\x1a\n\x08quantity\x18\x04 \x01(\x05R\x08quantity\x12\x35\n\rline_subtotal\x18\x05 \x01(\x0b\x32\x10.common.v1.MoneyR\x0clineSubtotal\"\x8c\x04\n\x17GetOrderDetailsResponse\x12\x14\n\x05\x66ound\x18\x01 \x01(\x08R\x05\x66ound\x12\x19\n\x08order_id\x18\x02 \x01(\tR\x07orderId\x12!\n\x0corder_number\x18\x03 \x01(\tR\x0borderNumber\x12\x32\n\x15\x63ustomer_principal_id\x18\x04 \x01(\tR\x13\x63ustomerPrincipalId\x12.\n\x06status\x18\x05 \x01(\x0e\x32\x16.common.v1.OrderStatusR\x06status\x12,\n\x08subtotal\x18\x06 \x01(\x0b\x32\x10.common.v1.MoneyR\x08subtotal\x12\x39\n\x0f\x64iscount_amount\x18\x07 \x01(\x0b\x32\x10.common.v1.MoneyR\x0e\x64iscountAmount\x12\x33\n\x0cshipping_fee\x18\x08 \x01(\x0b\x32\x10.common.v1.MoneyR\x0bshippingFee\x12\x31\n\x0b\x66inal_total\x18\t \x01(\x0b\x32\x10.common.v1.MoneyR\nfinalTotal\x12)\n\x05lines\x18\n \x03(\x0b\x32\x13.order.v1.OrderLineR\x05lines\x12=\n\x10shipping_address\x18\x0b \x01(\x0b\x32\x12.common.v1.AddressR\x0fshippingAddress\"\xa3\x01\n\x1dListOrdersForPrincipalRequest\x12!\n\x0cprincipal_id\x18\x01 \x01(\tR\x0bprincipalId\x12.\n\x06status\x18\x02 \x01(\x0e\x32\x16.common.v1.OrderStatusR\x06status\x12\x12\n\x04page\x18\x03 \x01(\x05R\x04page\x12\x1b\n\tpage_size\x18\x04 \x01(\x05R\x08pageSize\"|\n\x1eListOrdersForPrincipalResponse\x12\x39\n\x06orders\x18\x01 \x03(\x0b\x32!.order.v1.GetOrderDetailsResponseR\x06orders\x12\x1f\n\x0btotal_count\x18\x02 \x01(\x05R\ntotalCount\"~\n\x0bOrderCursor\x12\x43\n\x0fupdated_through\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0eupdatedThrough\x12*\n\x11last_order_number\x18\x02 \x01(\tR\x0flastOrderNumber\"\xd7\x02\n\x0bOrderRecord\x12!\n\x0corder_number\x18\x01 \x01(\tR\x0borderNumber\x12,\n\x12\x62uyer_principal_id\x18\x02 \x01(\tR\x10\x62uyerPrincipalId\x12\x32\n\x15merchant_principal_id\x18\x03 \x01(\tR\x13merchantPrincipalId\x12.\n\x06status\x18\x04 \x01(\x0e\x32\x16.common.v1.OrderStatusR\x06status\x12\x1f\n\x0bline_titles\x18\x05 \x03(\tR\nlineTitles\x12\x37\n\tplaced_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x08placedAt\x12\x39\n\nupdated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\"`\n\x19OrdersChangedSinceRequest\x12-\n\x06\x63ursor\x18\x01 \x01(\x0b\x32\x15.order.v1.OrderCursorR\x06\x63ursor\x12\x14\n\x05limit\x18\x02 \x01(\x05R\x05limit\"\x95\x01\n\x1aOrdersChangedSinceResponse\x12\x31\n\x08upserted\x18\x01 \x03(\x0b\x32\x15.order.v1.OrderRecordR\x08upserted\x12)\n\x04next\x18\x02 \x01(\x0b\x32\x15.order.v1.OrderCursorR\x04next\x12\x19\n\x08has_more\x18\x03 \x01(\x08R\x07hasMore*\x9f\x01\n\x0cReturnStatus\x12\x1d\n\x19RETURN_STATUS_UNSPECIFIED\x10\x00\x12\x16\n\x12RETURN_STATUS_OPEN\x10\x01\x12 \n\x1cRETURN_STATUS_GOODS_RECEIVED\x10\x02\x12\x1a\n\x16RETURN_STATUS_RESOLVED\x10\x03\x12\x1a\n\x16RETURN_STATUS_REJECTED\x10\x04\x32\x94\x05\n\x0cOrderService\x12V\n\x0fGetOrderDetails\x12 .order.v1.GetOrderDetailsRequest\x1a!.order.v1.GetOrderDetailsResponse\x12k\n\x16ListOrdersForPrincipal\x12\'.order.v1.ListOrdersForPrincipalRequest\x1a(.order.v1.ListOrdersForPrincipalResponse\x12\\\n\x11\x46ulfillmentPacked\x12\".order.v1.FulfillmentPackedRequest\x1a#.order.v1.FulfillmentPackedResponse\x12S\n\x0eOrderDelivered\x12\x1f.order.v1.OrderDeliveredRequest\x1a .order.v1.OrderDeliveredResponse\x12G\n\nOpenReturn\x12\x1b.order.v1.OpenReturnRequest\x1a\x1c.order.v1.OpenReturnResponse\x12\x62\n\x13ReturnGoodsReceived\x12$.order.v1.ReturnGoodsReceivedRequest\x1a%.order.v1.ReturnGoodsReceivedResponse\x12_\n\x12OrdersChangedSince\x12#.order.v1.OrdersChangedSinceRequest\x1a$.order.v1.OrdersChangedSinceResponseB\xc4\x01\n\x1e\x63om.kinetix.contracts.order.v1B\nOrderProtoP\x01ZCgithub.com/WildanFrananda/kinetix-contracts/gen/go/order/v1;orderv1\xa2\x02\x03KNX\xaa\x02\x1aKinetix.Contracts.Order.V1\xca\x02\x08Order\\V1\xe2\x02\x14Order\\V1\\GPBMetadata\xea\x02\tOrder::V1b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+ pool.add_serialized_file(descriptor_data)
15
+
16
+ module Order
17
+ module V1
18
+ OpenReturnRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.OpenReturnRequest").msgclass
19
+ OpenReturnResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.OpenReturnResponse").msgclass
20
+ ReturnedLine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.ReturnedLine").msgclass
21
+ ReturnGoodsReceivedRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.ReturnGoodsReceivedRequest").msgclass
22
+ ReturnGoodsReceivedResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.ReturnGoodsReceivedResponse").msgclass
23
+ OrderDeliveredRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.OrderDeliveredRequest").msgclass
24
+ OrderDeliveredResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.OrderDeliveredResponse").msgclass
25
+ FulfillmentPackedRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.FulfillmentPackedRequest").msgclass
26
+ FulfillmentPackedResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.FulfillmentPackedResponse").msgclass
27
+ GetOrderDetailsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.GetOrderDetailsRequest").msgclass
28
+ OrderLine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.OrderLine").msgclass
29
+ GetOrderDetailsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.GetOrderDetailsResponse").msgclass
30
+ ListOrdersForPrincipalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.ListOrdersForPrincipalRequest").msgclass
31
+ ListOrdersForPrincipalResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.ListOrdersForPrincipalResponse").msgclass
32
+ OrderCursor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.OrderCursor").msgclass
33
+ OrderRecord = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.OrderRecord").msgclass
34
+ OrdersChangedSinceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.OrdersChangedSinceRequest").msgclass
35
+ OrdersChangedSinceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.OrdersChangedSinceResponse").msgclass
36
+ ReturnStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.ReturnStatus").enummodule
37
+ end
38
+ end
@@ -0,0 +1,30 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: order/v1/order.proto for package 'Order.V1'
3
+
4
+ require 'grpc'
5
+ require 'order/v1/order_pb'
6
+
7
+ module Order
8
+ module V1
9
+ module OrderService
10
+ class Service
11
+
12
+ include ::GRPC::GenericService
13
+
14
+ self.marshal_class_method = :encode
15
+ self.unmarshal_class_method = :decode
16
+ self.service_name = 'order.v1.OrderService'
17
+
18
+ rpc :GetOrderDetails, ::Order::V1::GetOrderDetailsRequest, ::Order::V1::GetOrderDetailsResponse
19
+ rpc :ListOrdersForPrincipal, ::Order::V1::ListOrdersForPrincipalRequest, ::Order::V1::ListOrdersForPrincipalResponse
20
+ rpc :FulfillmentPacked, ::Order::V1::FulfillmentPackedRequest, ::Order::V1::FulfillmentPackedResponse
21
+ rpc :OrderDelivered, ::Order::V1::OrderDeliveredRequest, ::Order::V1::OrderDeliveredResponse
22
+ rpc :OpenReturn, ::Order::V1::OpenReturnRequest, ::Order::V1::OpenReturnResponse
23
+ rpc :ReturnGoodsReceived, ::Order::V1::ReturnGoodsReceivedRequest, ::Order::V1::ReturnGoodsReceivedResponse
24
+ rpc :OrdersChangedSince, ::Order::V1::OrdersChangedSinceRequest, ::Order::V1::OrdersChangedSinceResponse
25
+ end
26
+
27
+ Stub = Service.rpc_stub_class
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: payment/v1/payment.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'common/v1/common_pb'
8
+ require 'google/protobuf/timestamp_pb'
9
+
10
+
11
+ descriptor_data = "\n\x18payment/v1/payment.proto\x12\npayment.v1\x1a\x16\x63ommon/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd5\x03\n\x17\x43reateEscrowHoldRequest\x12!\n\x0corder_number\x18\x01 \x01(\tR\x0borderNumber\x12\x32\n\x15\x63ustomer_principal_id\x18\x02 \x01(\tR\x13\x63ustomerPrincipalId\x12\x32\n\x15merchant_principal_id\x18\x03 \x01(\tR\x13merchantPrincipalId\x12.\n\x13\x64river_principal_id\x18\x04 \x01(\tR\x11\x64riverPrincipalId\x12>\n\x12total_order_amount\x18\x05 \x01(\x0b\x32\x10.common.v1.MoneyR\x10totalOrderAmount\x12\x39\n\x0fmerchant_amount\x18\x06 \x01(\x0b\x32\x10.common.v1.MoneyR\x0emerchantAmount\x12@\n\x13shipping_fee_amount\x18\x07 \x01(\x0b\x32\x10.common.v1.MoneyR\x11shippingFeeAmount\x12\x42\n\x0fidempotency_key\x18\x08 \x01(\x0b\x32\x19.common.v1.IdempotencyKeyR\x0eidempotencyKey\"}\n\x14ReleaseEscrowRequest\x12!\n\x0corder_number\x18\x01 \x01(\tR\x0borderNumber\x12\x42\n\x0fidempotency_key\x18\x02 \x01(\x0b\x32\x19.common.v1.IdempotencyKeyR\x0eidempotencyKey\"\x94\x01\n\x13RefundEscrowRequest\x12!\n\x0corder_number\x18\x01 \x01(\tR\x0borderNumber\x12\x16\n\x06reason\x18\x02 \x01(\tR\x06reason\x12\x42\n\x0fidempotency_key\x18\x03 \x01(\x0b\x32\x19.common.v1.IdempotencyKeyR\x0eidempotencyKey\";\n\x16GetEscrowStatusRequest\x12!\n\x0corder_number\x18\x01 \x01(\tR\x0borderNumber\"\xb1\x01\n\x18SettleShippingFeeRequest\x12!\n\x0corder_number\x18\x01 \x01(\tR\x0borderNumber\x12.\n\x13\x64river_principal_id\x18\x02 \x01(\tR\x11\x64riverPrincipalId\x12\x42\n\x0fidempotency_key\x18\x03 \x01(\x0b\x32\x19.common.v1.IdempotencyKeyR\x0eidempotencyKey\"\xd7\x06\n\x12\x45scrowHoldResponse\x12\x14\n\x05\x66ound\x18\x01 \x01(\x08R\x05\x66ound\x12\x1b\n\tescrow_id\x18\x02 \x01(\tR\x08\x65scrowId\x12!\n\x0corder_number\x18\x03 \x01(\tR\x0borderNumber\x12\x32\n\x15\x63ustomer_principal_id\x18\x04 \x01(\tR\x13\x63ustomerPrincipalId\x12\x32\n\x15merchant_principal_id\x18\x05 \x01(\tR\x13merchantPrincipalId\x12.\n\x13\x64river_principal_id\x18\x06 \x01(\tR\x11\x64riverPrincipalId\x12>\n\x12total_order_amount\x18\x07 \x01(\x0b\x32\x10.common.v1.MoneyR\x10totalOrderAmount\x12\x39\n\x0fmerchant_amount\x18\x08 \x01(\x0b\x32\x10.common.v1.MoneyR\x0emerchantAmount\x12@\n\x13shipping_fee_amount\x18\t \x01(\x0b\x32\x10.common.v1.MoneyR\x11shippingFeeAmount\x12\x30\n\x06status\x18\n \x01(\x0e\x32\x18.payment.v1.EscrowStatusR\x06status\x12\x42\n\x0f\x61uto_release_at\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampR\rautoReleaseAt\x12\x39\n\ncreated_at\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12;\n\x0breleased_at\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nreleasedAt\x12\'\n\x0f\x61lready_applied\x18\x0e \x01(\x08R\x0e\x61lreadyApplied\x12,\n\x05\x65rror\x18\x0f \x01(\x0b\x32\x16.common.v1.ErrorDetailR\x05\x65rror\x12Q\n\x17shipping_fee_settled_at\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x14shippingFeeSettledAt*\xb2\x01\n\x0c\x45scrowStatus\x12\x1d\n\x19\x45SCROW_STATUS_UNSPECIFIED\x10\x00\x12\x16\n\x12\x45SCROW_STATUS_HELD\x10\x01\x12\x1a\n\x16\x45SCROW_STATUS_RELEASED\x10\x02\x12\x1a\n\x16\x45SCROW_STATUS_REFUNDED\x10\x03\x12\x19\n\x15\x45SCROW_STATUS_EXPIRED\x10\x04\x12\x18\n\x14\x45SCROW_STATUS_FAILED\x10\x05\x32\xbf\x03\n\x0ePaymentService\x12W\n\x10\x43reateEscrowHold\x12#.payment.v1.CreateEscrowHoldRequest\x1a\x1e.payment.v1.EscrowHoldResponse\x12Q\n\rReleaseEscrow\x12 .payment.v1.ReleaseEscrowRequest\x1a\x1e.payment.v1.EscrowHoldResponse\x12O\n\x0cRefundEscrow\x12\x1f.payment.v1.RefundEscrowRequest\x1a\x1e.payment.v1.EscrowHoldResponse\x12U\n\x0fGetEscrowStatus\x12\".payment.v1.GetEscrowStatusRequest\x1a\x1e.payment.v1.EscrowHoldResponse\x12Y\n\x11SettleShippingFee\x12$.payment.v1.SettleShippingFeeRequest\x1a\x1e.payment.v1.EscrowHoldResponseB\xd4\x01\n com.kinetix.contracts.payment.v1B\x0cPaymentProtoP\x01ZGgithub.com/WildanFrananda/kinetix-contracts/gen/go/payment/v1;paymentv1\xa2\x02\x03KNX\xaa\x02\x1cKinetix.Contracts.Payment.V1\xca\x02\nPayment\\V1\xe2\x02\x16Payment\\V1\\GPBMetadata\xea\x02\x0bPayment::V1b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+ pool.add_serialized_file(descriptor_data)
15
+
16
+ module Payment
17
+ module V1
18
+ CreateEscrowHoldRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.CreateEscrowHoldRequest").msgclass
19
+ ReleaseEscrowRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.ReleaseEscrowRequest").msgclass
20
+ RefundEscrowRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.RefundEscrowRequest").msgclass
21
+ GetEscrowStatusRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.GetEscrowStatusRequest").msgclass
22
+ SettleShippingFeeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.SettleShippingFeeRequest").msgclass
23
+ EscrowHoldResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.EscrowHoldResponse").msgclass
24
+ EscrowStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.EscrowStatus").enummodule
25
+ end
26
+ end
@@ -0,0 +1,28 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: payment/v1/payment.proto for package 'Payment.V1'
3
+
4
+ require 'grpc'
5
+ require 'payment/v1/payment_pb'
6
+
7
+ module Payment
8
+ module V1
9
+ module PaymentService
10
+ class Service
11
+
12
+ include ::GRPC::GenericService
13
+
14
+ self.marshal_class_method = :encode
15
+ self.unmarshal_class_method = :decode
16
+ self.service_name = 'payment.v1.PaymentService'
17
+
18
+ rpc :CreateEscrowHold, ::Payment::V1::CreateEscrowHoldRequest, ::Payment::V1::EscrowHoldResponse
19
+ rpc :ReleaseEscrow, ::Payment::V1::ReleaseEscrowRequest, ::Payment::V1::EscrowHoldResponse
20
+ rpc :RefundEscrow, ::Payment::V1::RefundEscrowRequest, ::Payment::V1::EscrowHoldResponse
21
+ rpc :GetEscrowStatus, ::Payment::V1::GetEscrowStatusRequest, ::Payment::V1::EscrowHoldResponse
22
+ rpc :SettleShippingFee, ::Payment::V1::SettleShippingFeeRequest, ::Payment::V1::EscrowHoldResponse
23
+ end
24
+
25
+ Stub = Service.rpc_stub_class
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: pricing/v1/pricing.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'common/v1/common_pb'
8
+
9
+
10
+ descriptor_data = "\n\x18pricing/v1/pricing.proto\x12\npricing.v1\x1a\x16\x63ommon/v1/common.proto\"\xb4\x01\n\x10PriceItemRequest\x12\x1d\n\nproduct_id\x18\x01 \x01(\tR\tproductId\x12$\n\x0b\x63\x61tegory_id\x18\x02 \x01(\tH\x00R\ncategoryId\x88\x01\x01\x12/\n\nbase_price\x18\x03 \x01(\x0b\x32\x10.common.v1.MoneyR\tbasePrice\x12\x1a\n\x08quantity\x18\x04 \x01(\x05R\x08quantityB\x0e\n\x0c_category_id\"\x88\x01\n\x14ShippingQuoteRequest\x12!\n\x0cservice_tier\x18\x01 \x01(\tR\x0bserviceTier\x12\x1f\n\x0b\x64istance_km\x18\x02 \x01(\x01R\ndistanceKm\x12,\n\x12total_weight_grams\x18\x03 \x01(\x03R\x10totalWeightGrams\"T\n\x14QuoteShippingRequest\x12<\n\x08journeys\x18\x01 \x03(\x0b\x32 .pricing.v1.ShippingQuoteRequestR\x08journeys\"\x89\x01\n\x0eQuotedShipping\x12!\n\x0cservice_tier\x18\x01 \x01(\tR\x0bserviceTier\x12<\n\x11\x62\x61se_shipping_fee\x18\x02 \x01(\x0b\x32\x10.common.v1.MoneyR\x0f\x62\x61seShippingFee\x12\x16\n\x06priced\x18\x03 \x01(\x08R\x06priced\"K\n\x15QuoteShippingResponse\x12\x32\n\x06quotes\x18\x01 \x03(\x0b\x32\x1a.pricing.v1.QuotedShippingR\x06quotes\"\xc3\x03\n\x15\x43\x61lculatePriceRequest\x12\x32\n\x05items\x18\x01 \x03(\x0b\x32\x1c.pricing.v1.PriceItemRequestR\x05items\x12&\n\x0cvoucher_code\x18\x02 \x01(\tH\x00R\x0bvoucherCode\x88\x01\x01\x12\x45\n\x11\x62\x61se_shipping_fee\x18\x03 \x01(\x0b\x32\x10.common.v1.MoneyB\x02\x18\x01H\x01R\x0f\x62\x61seShippingFee\x88\x01\x01\x12*\n\x0epayment_method\x18\x04 \x01(\tH\x02R\rpaymentMethod\x88\x01\x01\x12\x41\n\x08shipping\x18\x05 \x01(\x0b\x32 .pricing.v1.ShippingQuoteRequestH\x03R\x08shipping\x88\x01\x01\x12\x37\n\x15merchant_principal_id\x18\x06 \x01(\tH\x04R\x13merchantPrincipalId\x88\x01\x01\x42\x0f\n\r_voucher_codeB\x14\n\x12_base_shipping_feeB\x11\n\x0f_payment_methodB\x0b\n\t_shippingB\x18\n\x16_merchant_principal_id\"\xfb\x02\n\x11PriceItemResponse\x12\x1d\n\nproduct_id\x18\x01 \x01(\tR\tproductId\x12/\n\nbase_price\x18\x02 \x01(\x0b\x32\x10.common.v1.MoneyR\tbasePrice\x12:\n\x10\x66inal_unit_price\x18\x03 \x01(\x0b\x32\x10.common.v1.MoneyR\x0e\x66inalUnitPrice\x12\x1a\n\x08quantity\x18\x04 \x01(\x05R\x08quantity\x12/\n\nline_total\x18\x05 \x01(\x0b\x32\x10.common.v1.MoneyR\tlineTotal\x12\x31\n\x12\x61pplied_flash_sale\x18\x06 \x01(\tH\x00R\x10\x61ppliedFlashSale\x88\x01\x01\x12.\n\x10\x61pplied_discount\x18\x07 \x01(\tH\x01R\x0f\x61ppliedDiscount\x88\x01\x01\x42\x15\n\x13_applied_flash_saleB\x13\n\x11_applied_discount\"\xe0\x04\n\x16\x43\x61lculatePriceResponse\x12,\n\x08subtotal\x18\x01 \x01(\x0b\x32\x10.common.v1.MoneyR\x08subtotal\x12\x37\n\x0etotal_discount\x18\x02 \x01(\x0b\x32\x10.common.v1.MoneyR\rtotalDiscount\x12;\n\x10voucher_discount\x18\x03 \x01(\x0b\x32\x10.common.v1.MoneyR\x0fvoucherDiscount\x12\x31\n\x0b\x66inal_total\x18\x04 \x01(\x0b\x32\x10.common.v1.MoneyR\nfinalTotal\x12,\n\x0f\x61pplied_voucher\x18\x05 \x01(\tH\x00R\x0e\x61ppliedVoucher\x88\x01\x01\x12\x33\n\x05items\x18\x06 \x03(\x0b\x32\x1d.pricing.v1.PriceItemResponseR\x05items\x12<\n\x11\x62\x61se_shipping_fee\x18\x07 \x01(\x0b\x32\x10.common.v1.MoneyR\x0f\x62\x61seShippingFee\x12=\n\x11shipping_discount\x18\x08 \x01(\x0b\x32\x10.common.v1.MoneyR\x10shippingDiscount\x12>\n\x12\x66inal_shipping_fee\x18\t \x01(\x0b\x32\x10.common.v1.MoneyR\x10\x66inalShippingFee\x12;\n\x10payment_discount\x18\n \x01(\x0b\x32\x10.common.v1.MoneyR\x0fpaymentDiscountB\x12\n\x10_applied_voucher\"\xa7\x02\n\x14RedeemVoucherRequest\x12!\n\x0cvoucher_code\x18\x01 \x01(\tR\x0bvoucherCode\x12!\n\x0corder_number\x18\x02 \x01(\tR\x0borderNumber\x12\x32\n\x15\x63ustomer_principal_id\x18\x03 \x01(\tR\x13\x63ustomerPrincipalId\x12\x42\n\x0fidempotency_key\x18\x04 \x01(\x0b\x32\x19.common.v1.IdempotencyKeyR\x0eidempotencyKey\x12\x37\n\x15merchant_principal_id\x18\x05 \x01(\tH\x00R\x13merchantPrincipalId\x88\x01\x01\x42\x18\n\x16_merchant_principal_id\"\xb3\x01\n\x15RedeemVoucherResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\x12)\n\x10\x61lready_redeemed\x18\x02 \x01(\x08R\x0f\x61lreadyRedeemed\x12\'\n\x0fremaining_quota\x18\x03 \x01(\x05R\x0eremainingQuota\x12,\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x16.common.v1.ErrorDetailR\x05\x65rror\"\xab\x01\n\x1fReleaseVoucherRedemptionRequest\x12!\n\x0cvoucher_code\x18\x01 \x01(\tR\x0bvoucherCode\x12!\n\x0corder_number\x18\x02 \x01(\tR\x0borderNumber\x12\x42\n\x0fidempotency_key\x18\x03 \x01(\x0b\x32\x19.common.v1.IdempotencyKeyR\x0eidempotencyKey\"\xbe\x01\n ReleaseVoucherRedemptionResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\x12)\n\x10\x61lready_released\x18\x02 \x01(\x08R\x0f\x61lreadyReleased\x12\'\n\x0fremaining_quota\x18\x03 \x01(\x05R\x0eremainingQuota\x12,\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x16.common.v1.ErrorDetailR\x05\x65rror\"\xe5\x01\n\x1d\x41llocateFlashSaleStockRequest\x12\"\n\rflash_sale_id\x18\x01 \x01(\tR\x0b\x66lashSaleId\x12\x1d\n\nproduct_id\x18\x02 \x01(\tR\tproductId\x12\x1a\n\x08quantity\x18\x03 \x01(\x05R\x08quantity\x12!\n\x0corder_number\x18\x04 \x01(\tR\x0borderNumber\x12\x42\n\x0fidempotency_key\x18\x05 \x01(\x0b\x32\x19.common.v1.IdempotencyKeyR\x0eidempotencyKey\"\xbe\x01\n\x1e\x41llocateFlashSaleStockResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\x12+\n\x11\x61lready_allocated\x18\x02 \x01(\x08R\x10\x61lreadyAllocated\x12\'\n\x0fremaining_stock\x18\x03 \x01(\x05R\x0eremainingStock\x12,\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x16.common.v1.ErrorDetailR\x05\x65rror\"\xe9\x01\n!ReleaseFlashSaleAllocationRequest\x12\"\n\rflash_sale_id\x18\x01 \x01(\tR\x0b\x66lashSaleId\x12\x1d\n\nproduct_id\x18\x02 \x01(\tR\tproductId\x12\x1a\n\x08quantity\x18\x03 \x01(\x05R\x08quantity\x12!\n\x0corder_number\x18\x04 \x01(\tR\x0borderNumber\x12\x42\n\x0fidempotency_key\x18\x05 \x01(\x0b\x32\x19.common.v1.IdempotencyKeyR\x0eidempotencyKey\"\xc0\x01\n\"ReleaseFlashSaleAllocationResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\x12)\n\x10\x61lready_released\x18\x02 \x01(\x08R\x0f\x61lreadyReleased\x12\'\n\x0fremaining_stock\x18\x03 \x01(\x05R\x0eremainingStock\x12,\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x16.common.v1.ErrorDetailR\x05\x65rror*d\n\x0c\x44iscountType\x12\x1d\n\x19\x44ISCOUNT_TYPE_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x44ISCOUNT_TYPE_PERCENTAGE\x10\x01\x12\x17\n\x13\x44ISCOUNT_TYPE_FIXED\x10\x02*i\n\rDiscountScope\x12\x1e\n\x1a\x44ISCOUNT_SCOPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x44ISCOUNT_SCOPE_PER_UNIT\x10\x01\x12\x1b\n\x17\x44ISCOUNT_SCOPE_PER_CART\x10\x02\x32\xfa\x04\n\x0ePricingService\x12W\n\x0e\x43\x61lculatePrice\x12!.pricing.v1.CalculatePriceRequest\x1a\".pricing.v1.CalculatePriceResponse\x12T\n\rQuoteShipping\x12 .pricing.v1.QuoteShippingRequest\x1a!.pricing.v1.QuoteShippingResponse\x12T\n\rRedeemVoucher\x12 .pricing.v1.RedeemVoucherRequest\x1a!.pricing.v1.RedeemVoucherResponse\x12u\n\x18ReleaseVoucherRedemption\x12+.pricing.v1.ReleaseVoucherRedemptionRequest\x1a,.pricing.v1.ReleaseVoucherRedemptionResponse\x12o\n\x16\x41llocateFlashSaleStock\x12).pricing.v1.AllocateFlashSaleStockRequest\x1a*.pricing.v1.AllocateFlashSaleStockResponse\x12{\n\x1aReleaseFlashSaleAllocation\x12-.pricing.v1.ReleaseFlashSaleAllocationRequest\x1a..pricing.v1.ReleaseFlashSaleAllocationResponseB\xd4\x01\n com.kinetix.contracts.pricing.v1B\x0cPricingProtoP\x01ZGgithub.com/WildanFrananda/kinetix-contracts/gen/go/pricing/v1;pricingv1\xa2\x02\x03KNX\xaa\x02\x1cKinetix.Contracts.Pricing.V1\xca\x02\nPricing\\V1\xe2\x02\x16Pricing\\V1\\GPBMetadata\xea\x02\x0bPricing::V1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Pricing
16
+ module V1
17
+ PriceItemRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.PriceItemRequest").msgclass
18
+ ShippingQuoteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.ShippingQuoteRequest").msgclass
19
+ QuoteShippingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.QuoteShippingRequest").msgclass
20
+ QuotedShipping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.QuotedShipping").msgclass
21
+ QuoteShippingResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.QuoteShippingResponse").msgclass
22
+ CalculatePriceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.CalculatePriceRequest").msgclass
23
+ PriceItemResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.PriceItemResponse").msgclass
24
+ CalculatePriceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.CalculatePriceResponse").msgclass
25
+ RedeemVoucherRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.RedeemVoucherRequest").msgclass
26
+ RedeemVoucherResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.RedeemVoucherResponse").msgclass
27
+ ReleaseVoucherRedemptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.ReleaseVoucherRedemptionRequest").msgclass
28
+ ReleaseVoucherRedemptionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.ReleaseVoucherRedemptionResponse").msgclass
29
+ AllocateFlashSaleStockRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.AllocateFlashSaleStockRequest").msgclass
30
+ AllocateFlashSaleStockResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.AllocateFlashSaleStockResponse").msgclass
31
+ ReleaseFlashSaleAllocationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.ReleaseFlashSaleAllocationRequest").msgclass
32
+ ReleaseFlashSaleAllocationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.ReleaseFlashSaleAllocationResponse").msgclass
33
+ DiscountType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.DiscountType").enummodule
34
+ DiscountScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.DiscountScope").enummodule
35
+ end
36
+ end
@@ -0,0 +1,29 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: pricing/v1/pricing.proto for package 'Pricing.V1'
3
+
4
+ require 'grpc'
5
+ require 'pricing/v1/pricing_pb'
6
+
7
+ module Pricing
8
+ module V1
9
+ module PricingService
10
+ class Service
11
+
12
+ include ::GRPC::GenericService
13
+
14
+ self.marshal_class_method = :encode
15
+ self.unmarshal_class_method = :decode
16
+ self.service_name = 'pricing.v1.PricingService'
17
+
18
+ rpc :CalculatePrice, ::Pricing::V1::CalculatePriceRequest, ::Pricing::V1::CalculatePriceResponse
19
+ rpc :QuoteShipping, ::Pricing::V1::QuoteShippingRequest, ::Pricing::V1::QuoteShippingResponse
20
+ rpc :RedeemVoucher, ::Pricing::V1::RedeemVoucherRequest, ::Pricing::V1::RedeemVoucherResponse
21
+ rpc :ReleaseVoucherRedemption, ::Pricing::V1::ReleaseVoucherRedemptionRequest, ::Pricing::V1::ReleaseVoucherRedemptionResponse
22
+ rpc :AllocateFlashSaleStock, ::Pricing::V1::AllocateFlashSaleStockRequest, ::Pricing::V1::AllocateFlashSaleStockResponse
23
+ rpc :ReleaseFlashSaleAllocation, ::Pricing::V1::ReleaseFlashSaleAllocationRequest, ::Pricing::V1::ReleaseFlashSaleAllocationResponse
24
+ end
25
+
26
+ Stub = Service.rpc_stub_class
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: returns/v1/returns.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'common/v1/common_pb'
8
+ require 'google/protobuf/timestamp_pb'
9
+
10
+
11
+ descriptor_data = "\n\x18returns/v1/returns.proto\x12\nreturns.v1\x1a\x16\x63ommon/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x87\x02\n\x18SubmitReturnClaimRequest\x12\x32\n\x15merchant_principal_id\x18\x01 \x01(\tR\x13merchantPrincipalId\x12\x19\n\x08order_id\x18\x02 \x01(\tR\x07orderId\x12!\n\x0corder_number\x18\x03 \x01(\tR\x0borderNumber\x12\x16\n\x06reason\x18\x04 \x01(\tR\x06reason\x12\x1d\n\nphoto_urls\x18\x05 \x03(\tR\tphotoUrls\x12\x42\n\x0fidempotency_key\x18\x06 \x01(\x0b\x32\x19.common.v1.IdempotencyKeyR\x0eidempotencyKey\"\xec\x01\n\x19SubmitReturnClaimResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\x12\x1b\n\treturn_id\x18\x02 \x01(\tR\x08returnId\x12/\n\x06status\x18\x03 \x01(\x0e\x32\x17.common.v1.ReturnStatusR\x06status\x12\x39\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12,\n\x05\x65rror\x18\x05 \x01(\x0b\x32\x16.common.v1.ErrorDetailR\x05\x65rror\"i\n\x16GetReturnStatusRequest\x12\x32\n\x15merchant_principal_id\x18\x01 \x01(\tR\x13merchantPrincipalId\x12\x1b\n\treturn_id\x18\x02 \x01(\tR\x08returnId\"\xed\x01\n\x17GetReturnStatusResponse\x12\x14\n\x05\x66ound\x18\x01 \x01(\x08R\x05\x66ound\x12\x1b\n\treturn_id\x18\x02 \x01(\tR\x08returnId\x12\x19\n\x08order_id\x18\x03 \x01(\tR\x07orderId\x12/\n\x06status\x18\x04 \x01(\x0e\x32\x17.common.v1.ReturnStatusR\x06status\x12\x16\n\x06reason\x18\x05 \x01(\tR\x06reason\x12;\n\x0bresolved_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nresolvedAt2\xcd\x01\n\rReturnService\x12`\n\x11SubmitReturnClaim\x12$.returns.v1.SubmitReturnClaimRequest\x1a%.returns.v1.SubmitReturnClaimResponse\x12Z\n\x0fGetReturnStatus\x12\".returns.v1.GetReturnStatusRequest\x1a#.returns.v1.GetReturnStatusResponseB\xd4\x01\n com.kinetix.contracts.returns.v1B\x0cReturnsProtoP\x01ZGgithub.com/WildanFrananda/kinetix-contracts/gen/go/returns/v1;returnsv1\xa2\x02\x03KNX\xaa\x02\x1cKinetix.Contracts.Returns.V1\xca\x02\nReturns\\V1\xe2\x02\x16Returns\\V1\\GPBMetadata\xea\x02\x0bReturns::V1b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+ pool.add_serialized_file(descriptor_data)
15
+
16
+ module Returns
17
+ module V1
18
+ SubmitReturnClaimRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("returns.v1.SubmitReturnClaimRequest").msgclass
19
+ SubmitReturnClaimResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("returns.v1.SubmitReturnClaimResponse").msgclass
20
+ GetReturnStatusRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("returns.v1.GetReturnStatusRequest").msgclass
21
+ GetReturnStatusResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("returns.v1.GetReturnStatusResponse").msgclass
22
+ end
23
+ end
@@ -0,0 +1,25 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: returns/v1/returns.proto for package 'Returns.V1'
3
+
4
+ require 'grpc'
5
+ require 'returns/v1/returns_pb'
6
+
7
+ module Returns
8
+ module V1
9
+ module ReturnService
10
+ class Service
11
+
12
+ include ::GRPC::GenericService
13
+
14
+ self.marshal_class_method = :encode
15
+ self.unmarshal_class_method = :decode
16
+ self.service_name = 'returns.v1.ReturnService'
17
+
18
+ rpc :SubmitReturnClaim, ::Returns::V1::SubmitReturnClaimRequest, ::Returns::V1::SubmitReturnClaimResponse
19
+ rpc :GetReturnStatus, ::Returns::V1::GetReturnStatusRequest, ::Returns::V1::GetReturnStatusResponse
20
+ end
21
+
22
+ Stub = Service.rpc_stub_class
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: search/v1/search.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'common/v1/common_pb'
8
+ require 'google/protobuf/timestamp_pb'
9
+
10
+
11
+ descriptor_data = "\n\x16search/v1/search.proto\x12\tsearch.v1\x1a\x16\x63ommon/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"4\n\x04Page\x12\x16\n\x06offset\x18\x01 \x01(\x05R\x06offset\x12\x14\n\x05limit\x18\x02 \x01(\x05R\x05limit\"\x8c\x01\n\x0eIndexFreshness\x12\x43\n\x0findexed_through\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0eindexedThrough\x12\x1f\n\x0b\x61ge_seconds\x18\x02 \x01(\x03R\nageSeconds\x12\x14\n\x05stale\x18\x03 \x01(\x08R\x05stale\"\xa3\x02\n\nProductHit\x12\x10\n\x03sku\x18\x01 \x01(\tR\x03sku\x12\x32\n\x15merchant_principal_id\x18\x02 \x01(\tR\x13merchantPrincipalId\x12\x14\n\x05title\x18\x03 \x01(\tR\x05title\x12 \n\x0b\x64\x65scription\x18\x04 \x01(\tR\x0b\x64\x65scription\x12&\n\x05price\x18\x05 \x01(\x0b\x32\x10.common.v1.MoneyR\x05price\x12\x1e\n\ncategories\x18\x06 \x03(\tR\ncategories\x12\x39\n\nupdated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x14\n\x05score\x18\x08 \x01(\x01R\x05score\"8\n\nFacetValue\x12\x14\n\x05value\x18\x01 \x01(\tR\x05value\x12\x14\n\x05\x63ount\x18\x02 \x01(\x03R\x05\x63ount\"L\n\x05\x46\x61\x63\x65t\x12\x14\n\x05\x66ield\x18\x01 \x01(\tR\x05\x66ield\x12-\n\x06values\x18\x02 \x03(\x0b\x32\x15.search.v1.FacetValueR\x06values\"\xd9\x01\n\x15SearchProductsRequest\x12\x12\n\x04text\x18\x01 \x01(\tR\x04text\x12\x1e\n\ncategories\x18\x02 \x03(\tR\ncategories\x12\x32\n\x15merchant_principal_id\x18\x03 \x01(\tR\x13merchantPrincipalId\x12#\n\x04page\x18\x04 \x01(\x0b\x32\x0f.search.v1.PageR\x04page\x12\x33\n\x07ranking\x18\x05 \x01(\x0e\x32\x19.search.v1.RankingProfileR\x07ranking\"\xbc\x01\n\x16SearchProductsResponse\x12)\n\x04hits\x18\x01 \x03(\x0b\x32\x15.search.v1.ProductHitR\x04hits\x12\x14\n\x05total\x18\x02 \x01(\x03R\x05total\x12(\n\x06\x66\x61\x63\x65ts\x18\x03 \x03(\x0b\x32\x10.search.v1.FacetR\x06\x66\x61\x63\x65ts\x12\x37\n\tfreshness\x18\x04 \x01(\x0b\x32\x19.search.v1.IndexFreshnessR\tfreshness\"F\n\x16SuggestProductsRequest\x12\x16\n\x06prefix\x18\x01 \x01(\tR\x06prefix\x12\x14\n\x05limit\x18\x02 \x01(\x05R\x05limit\";\n\x17SuggestProductsResponse\x12 \n\x0bsuggestions\x18\x01 \x03(\tR\x0bsuggestions*\x8b\x01\n\x0eRankingProfile\x12\x1f\n\x1bRANKING_PROFILE_UNSPECIFIED\x10\x00\x12\x1d\n\x19RANKING_PROFILE_RELEVANCE\x10\x01\x12\x1a\n\x16RANKING_PROFILE_NEWEST\x10\x02\x12\x1d\n\x19RANKING_PROFILE_PRICE_ASC\x10\x03\x32\xc0\x01\n\rSearchService\x12U\n\x0eSearchProducts\x12 .search.v1.SearchProductsRequest\x1a!.search.v1.SearchProductsResponse\x12X\n\x0fSuggestProducts\x12!.search.v1.SuggestProductsRequest\x1a\".search.v1.SuggestProductsResponseB\xcc\x01\n\x1f\x63om.kinetix.contracts.search.v1B\x0bSearchProtoP\x01ZEgithub.com/WildanFrananda/kinetix-contracts/gen/go/search/v1;searchv1\xa2\x02\x03KNX\xaa\x02\x1bKinetix.Contracts.Search.V1\xca\x02\tSearch\\V1\xe2\x02\x15Search\\V1\\GPBMetadata\xea\x02\nSearch::V1b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+ pool.add_serialized_file(descriptor_data)
15
+
16
+ module Search
17
+ module V1
18
+ Page = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("search.v1.Page").msgclass
19
+ IndexFreshness = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("search.v1.IndexFreshness").msgclass
20
+ ProductHit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("search.v1.ProductHit").msgclass
21
+ FacetValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("search.v1.FacetValue").msgclass
22
+ Facet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("search.v1.Facet").msgclass
23
+ SearchProductsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("search.v1.SearchProductsRequest").msgclass
24
+ SearchProductsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("search.v1.SearchProductsResponse").msgclass
25
+ SuggestProductsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("search.v1.SuggestProductsRequest").msgclass
26
+ SuggestProductsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("search.v1.SuggestProductsResponse").msgclass
27
+ RankingProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("search.v1.RankingProfile").enummodule
28
+ end
29
+ end
@@ -0,0 +1,25 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: search/v1/search.proto for package 'Search.V1'
3
+
4
+ require 'grpc'
5
+ require 'search/v1/search_pb'
6
+
7
+ module Search
8
+ module V1
9
+ module SearchService
10
+ class Service
11
+
12
+ include ::GRPC::GenericService
13
+
14
+ self.marshal_class_method = :encode
15
+ self.unmarshal_class_method = :decode
16
+ self.service_name = 'search.v1.SearchService'
17
+
18
+ rpc :SearchProducts, ::Search::V1::SearchProductsRequest, ::Search::V1::SearchProductsResponse
19
+ rpc :SuggestProducts, ::Search::V1::SuggestProductsRequest, ::Search::V1::SuggestProductsResponse
20
+ end
21
+
22
+ Stub = Service.rpc_stub_class
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: shipping/v1/shipping.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'common/v1/common_pb'
8
+
9
+
10
+ descriptor_data = "\n\x1ashipping/v1/shipping.proto\x12\x0bshipping.v1\x1a\x16\x63ommon/v1/common.proto\"\xe6\x01\n\x1e\x45stimateShippingOptionsRequest\x12+\n\x06origin\x18\x01 \x01(\x0b\x32\x13.common.v1.GeoPointR\x06origin\x12\x35\n\x0b\x64\x65stination\x18\x02 \x01(\x0b\x32\x13.common.v1.GeoPointR\x0b\x64\x65stination\x12,\n\x12total_weight_grams\x18\x03 \x01(\x03R\x10totalWeightGrams\x12\x32\n\x15merchant_principal_id\x18\x04 \x01(\tR\x13merchantPrincipalId\"\xc2\x02\n\rCourierOption\x12!\n\x0cservice_tier\x18\x01 \x01(\tR\x0bserviceTier\x12!\n\x0cservice_name\x18\x02 \x01(\tR\x0bserviceName\x12\x1f\n\x0b\x64istance_km\x18\x03 \x01(\x01R\ndistanceKm\x12@\n\x11\x62\x61se_shipping_fee\x18\x04 \x01(\x0b\x32\x10.common.v1.MoneyB\x02\x18\x01R\x0f\x62\x61seShippingFee\x12\x36\n\x17\x65stimated_delivery_time\x18\x05 \x01(\tR\x15\x65stimatedDeliveryTime\x12!\n\x0cis_available\x18\x06 \x01(\x08R\x0bisAvailable\x12-\n\x12unavailable_reason\x18\x07 \x01(\tR\x11unavailableReason\"x\n\x1f\x45stimateShippingOptionsResponse\x12\x1f\n\x0b\x64istance_km\x18\x01 \x01(\x01R\ndistanceKm\x12\x34\n\x07options\x18\x02 \x03(\x0b\x32\x1a.shipping.v1.CourierOptionR\x07options2\x87\x01\n\x0fShippingService\x12t\n\x17\x45stimateShippingOptions\x12+.shipping.v1.EstimateShippingOptionsRequest\x1a,.shipping.v1.EstimateShippingOptionsResponseB\xdc\x01\n!com.kinetix.contracts.shipping.v1B\rShippingProtoP\x01ZIgithub.com/WildanFrananda/kinetix-contracts/gen/go/shipping/v1;shippingv1\xa2\x02\x03KNX\xaa\x02\x1dKinetix.Contracts.Shipping.V1\xca\x02\x0bShipping\\V1\xe2\x02\x17Shipping\\V1\\GPBMetadata\xea\x02\x0cShipping::V1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Shipping
16
+ module V1
17
+ EstimateShippingOptionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("shipping.v1.EstimateShippingOptionsRequest").msgclass
18
+ CourierOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("shipping.v1.CourierOption").msgclass
19
+ EstimateShippingOptionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("shipping.v1.EstimateShippingOptionsResponse").msgclass
20
+ end
21
+ end
@@ -0,0 +1,24 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: shipping/v1/shipping.proto for package 'Shipping.V1'
3
+
4
+ require 'grpc'
5
+ require 'shipping/v1/shipping_pb'
6
+
7
+ module Shipping
8
+ module V1
9
+ module ShippingService
10
+ class Service
11
+
12
+ include ::GRPC::GenericService
13
+
14
+ self.marshal_class_method = :encode
15
+ self.unmarshal_class_method = :decode
16
+ self.service_name = 'shipping.v1.ShippingService'
17
+
18
+ rpc :EstimateShippingOptions, ::Shipping::V1::EstimateShippingOptionsRequest, ::Shipping::V1::EstimateShippingOptionsResponse
19
+ end
20
+
21
+ Stub = Service.rpc_stub_class
22
+ end
23
+ end
24
+ end
metadata ADDED
@@ -0,0 +1,98 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: kinetix-contracts
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.21
5
+ platform: ruby
6
+ authors:
7
+ - Kinetix
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2026-10-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: google-protobuf
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.29'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.29'
27
+ - !ruby/object:Gem::Dependency
28
+ name: grpc
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.67'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.67'
41
+ description: Generated from kinetix-contracts. Do not edit.
42
+ email:
43
+ executables: []
44
+ extensions: []
45
+ extra_rdoc_files: []
46
+ files:
47
+ - catalog/v1/catalog_pb.rb
48
+ - catalog/v1/catalog_services_pb.rb
49
+ - common/v1/common_pb.rb
50
+ - fleet/v1/fleet_pb.rb
51
+ - fleet/v1/fleet_services_pb.rb
52
+ - fleet/v1/registry_pb.rb
53
+ - fleet/v1/registry_services_pb.rb
54
+ - fulfillment/v1/fulfillment_pb.rb
55
+ - fulfillment/v1/fulfillment_services_pb.rb
56
+ - fulfillment/v1/task_pb.rb
57
+ - fulfillment/v1/task_services_pb.rb
58
+ - geo/v1/geo_pb.rb
59
+ - geo/v1/geo_services_pb.rb
60
+ - identity/v1/identity_pb.rb
61
+ - identity/v1/identity_services_pb.rb
62
+ - notification/v1/notification_pb.rb
63
+ - notification/v1/notification_services_pb.rb
64
+ - order/v1/order_pb.rb
65
+ - order/v1/order_services_pb.rb
66
+ - payment/v1/payment_pb.rb
67
+ - payment/v1/payment_services_pb.rb
68
+ - pricing/v1/pricing_pb.rb
69
+ - pricing/v1/pricing_services_pb.rb
70
+ - returns/v1/returns_pb.rb
71
+ - returns/v1/returns_services_pb.rb
72
+ - search/v1/search_pb.rb
73
+ - search/v1/search_services_pb.rb
74
+ - shipping/v1/shipping_pb.rb
75
+ - shipping/v1/shipping_services_pb.rb
76
+ homepage:
77
+ licenses: []
78
+ metadata: {}
79
+ post_install_message:
80
+ rdoc_options: []
81
+ require_paths:
82
+ - "."
83
+ required_ruby_version: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ version: '3.2'
88
+ required_rubygems_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ requirements: []
94
+ rubygems_version: 3.4.20
95
+ signing_key:
96
+ specification_version: 4
97
+ summary: Kinetix wire contracts
98
+ test_files: []