kinetix-contracts 1.0.0

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: caf630d0107e1ff03db769ced89e72da8656e162f61c65fb17b6dbf1cfa2ba10
4
+ data.tar.gz: fb90654801058ed323720a2766619ddd8a15542c39a01b1210670bc03209bdba
5
+ SHA512:
6
+ metadata.gz: b3303f07586ae2269d427dcdca4f17b4f3bd9549f3819cd340afc363850a88c66e9e2ced42502d93e60014ac29de9592cc327c4eb6503edc904c6748090902cf
7
+ data.tar.gz: 8aaa638820ba9feb62942cdc75f470e8da2cd5d572c44d95929e1d8a4914a15f11257486742d5a5876e51885db8710145a85b4af59f6b800da3c28a0e42a38fd
@@ -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\"\xc8\x02\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\x39\n\x0epickup_address\x18\x04 \x01(\x0b\x32\x12.common.v1.AddressR\rpickupAddress\x12=\n\x10\x64\x65livery_address\x18\x05 \x01(\x0b\x32\x12.common.v1.AddressR\x0f\x64\x65liveryAddress\x12\x42\n\x0fidempotency_key\x18\x06 \x01(\x0b\x32\x19.common.v1.IdempotencyKeyR\x0eidempotencyKey\"\xe6\x02\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\x30\n\x14\x61ssigned_driver_name\x18\x04 \x01(\tR\x12\x61ssignedDriverName\x12\x32\n\x15\x61ssigned_driver_phone\x18\x05 \x01(\tR\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\"\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,31 @@
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\"\\\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\xa5\x02\n\x0f\x42inStockService\x12\\\n\rCheckBinStock\x12$.fulfillment.v1.CheckBinStockRequest\x1a%.fulfillment.v1.CheckBinStockResponse\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
+ CheckBinStockRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.CheckBinStockRequest").msgclass
19
+ CheckBinStockResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.CheckBinStockResponse").msgclass
20
+ ReserveStockRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.ReserveStockRequest").msgclass
21
+ ReserveStockResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.ReserveStockResponse").msgclass
22
+ ReleaseStockRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.ReleaseStockRequest").msgclass
23
+ ReleaseStockResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.ReleaseStockResponse").msgclass
24
+ CreateOrderRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.CreateOrderRequest").msgclass
25
+ CreateOrderResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.CreateOrderResponse").msgclass
26
+ GetOrderStatusRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.GetOrderStatusRequest").msgclass
27
+ GetOrderStatusResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.GetOrderStatusResponse").msgclass
28
+ CancelOrderRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.CancelOrderRequest").msgclass
29
+ CancelOrderResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("fulfillment.v1.CancelOrderResponse").msgclass
30
+ end
31
+ end
@@ -0,0 +1,42 @@
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 :ReserveStock, ::Fulfillment::V1::ReserveStockRequest, ::Fulfillment::V1::ReserveStockResponse
20
+ rpc :ReleaseStock, ::Fulfillment::V1::ReleaseStockRequest, ::Fulfillment::V1::ReleaseStockResponse
21
+ end
22
+
23
+ Stub = Service.rpc_stub_class
24
+ end
25
+ module FulfillmentService
26
+ class Service
27
+
28
+ include ::GRPC::GenericService
29
+
30
+ self.marshal_class_method = :encode
31
+ self.unmarshal_class_method = :decode
32
+ self.service_name = 'fulfillment.v1.FulfillmentService'
33
+
34
+ rpc :CreateOrder, ::Fulfillment::V1::CreateOrderRequest, ::Fulfillment::V1::CreateOrderResponse
35
+ rpc :GetOrderStatus, ::Fulfillment::V1::GetOrderStatusRequest, ::Fulfillment::V1::GetOrderStatusResponse
36
+ rpc :CancelOrder, ::Fulfillment::V1::CancelOrderRequest, ::Fulfillment::V1::CancelOrderResponse
37
+ end
38
+
39
+ Stub = Service.rpc_stub_class
40
+ end
41
+ end
42
+ 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,29 @@
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
+
8
+ descriptor_data = "\n\x1aidentity/v1/identity.proto\x12\x0bidentity.v1\"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\"\xb3\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\";\n\x16GetMerchantInfoRequest\x12!\n\x0cprincipal_id\x18\x01 \x01(\tR\x0bprincipalId\"\x90\x02\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\"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*\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\xd8\x03\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.ValidateTokenResponseB\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"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+ pool.add_serialized_file(descriptor_data)
12
+
13
+ module Identity
14
+ module V1
15
+ ServiceLocalId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.ServiceLocalId").msgclass
16
+ ResolvePrincipalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.ResolvePrincipalRequest").msgclass
17
+ ResolvePrincipalResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.ResolvePrincipalResponse").msgclass
18
+ GetPrincipalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.GetPrincipalRequest").msgclass
19
+ GetPrincipalResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.GetPrincipalResponse").msgclass
20
+ GetUserProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.GetUserProfileRequest").msgclass
21
+ GetUserProfileResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.GetUserProfileResponse").msgclass
22
+ GetMerchantInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.GetMerchantInfoRequest").msgclass
23
+ GetMerchantInfoResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.GetMerchantInfoResponse").msgclass
24
+ ValidateTokenRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.ValidateTokenRequest").msgclass
25
+ ValidateTokenResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.ValidateTokenResponse").msgclass
26
+ PrincipalKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.PrincipalKind").enummodule
27
+ MerchantStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("identity.v1.MerchantStatus").enummodule
28
+ end
29
+ end
@@ -0,0 +1,28 @@
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
+ end
24
+
25
+ Stub = Service.rpc_stub_class
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,23 @@
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
+
9
+
10
+ descriptor_data = "\n\x14order/v1/order.proto\x12\x08order.v1\x1a\x16\x63ommon/v1/common.proto\"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\ntotalCount2\xd3\x01\n\x0cOrderService\x12V\n\x0fGetOrderDetails\x12 .order.v1.GetOrderDetailsRequest\x1a!.order.v1.GetOrderDetailsResponse\x12k\n\x16ListOrdersForPrincipal\x12\'.order.v1.ListOrdersForPrincipalRequest\x1a(.order.v1.ListOrdersForPrincipalResponseB\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"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Order
16
+ module V1
17
+ GetOrderDetailsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.GetOrderDetailsRequest").msgclass
18
+ OrderLine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.OrderLine").msgclass
19
+ GetOrderDetailsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.GetOrderDetailsResponse").msgclass
20
+ ListOrdersForPrincipalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.ListOrdersForPrincipalRequest").msgclass
21
+ ListOrdersForPrincipalResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("order.v1.ListOrdersForPrincipalResponse").msgclass
22
+ end
23
+ end
@@ -0,0 +1,25 @@
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
+ end
21
+
22
+ Stub = Service.rpc_stub_class
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,25 @@
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\"\x84\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*\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\xe4\x02\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.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
+ EscrowHoldResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.EscrowHoldResponse").msgclass
23
+ EscrowStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.EscrowStatus").enummodule
24
+ end
25
+ end
@@ -0,0 +1,27 @@
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
+ end
23
+
24
+ Stub = Service.rpc_stub_class
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,32 @@
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\"\x9c\x02\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\x41\n\x11\x62\x61se_shipping_fee\x18\x03 \x01(\x0b\x32\x10.common.v1.MoneyH\x01R\x0f\x62\x61seShippingFee\x88\x01\x01\x12*\n\x0epayment_method\x18\x04 \x01(\tH\x02R\rpaymentMethod\x88\x01\x01\x42\x0f\n\r_voucher_codeB\x14\n\x12_base_shipping_feeB\x11\n\x0f_payment_method\"\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\"\xd4\x01\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\"\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\xa4\x04\n\x0ePricingService\x12W\n\x0e\x43\x61lculatePrice\x12!.pricing.v1.CalculatePriceRequest\x1a\".pricing.v1.CalculatePriceResponse\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
+ CalculatePriceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.CalculatePriceRequest").msgclass
19
+ PriceItemResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.PriceItemResponse").msgclass
20
+ CalculatePriceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.CalculatePriceResponse").msgclass
21
+ RedeemVoucherRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.RedeemVoucherRequest").msgclass
22
+ RedeemVoucherResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.RedeemVoucherResponse").msgclass
23
+ ReleaseVoucherRedemptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.ReleaseVoucherRedemptionRequest").msgclass
24
+ ReleaseVoucherRedemptionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.ReleaseVoucherRedemptionResponse").msgclass
25
+ AllocateFlashSaleStockRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.AllocateFlashSaleStockRequest").msgclass
26
+ AllocateFlashSaleStockResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.AllocateFlashSaleStockResponse").msgclass
27
+ ReleaseFlashSaleAllocationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.ReleaseFlashSaleAllocationRequest").msgclass
28
+ ReleaseFlashSaleAllocationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.ReleaseFlashSaleAllocationResponse").msgclass
29
+ DiscountType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.DiscountType").enummodule
30
+ DiscountScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("pricing.v1.DiscountScope").enummodule
31
+ end
32
+ end
@@ -0,0 +1,28 @@
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 :RedeemVoucher, ::Pricing::V1::RedeemVoucherRequest, ::Pricing::V1::RedeemVoucherResponse
20
+ rpc :ReleaseVoucherRedemption, ::Pricing::V1::ReleaseVoucherRedemptionRequest, ::Pricing::V1::ReleaseVoucherRedemptionResponse
21
+ rpc :AllocateFlashSaleStock, ::Pricing::V1::AllocateFlashSaleStockRequest, ::Pricing::V1::AllocateFlashSaleStockResponse
22
+ rpc :ReleaseFlashSaleAllocation, ::Pricing::V1::ReleaseFlashSaleAllocationRequest, ::Pricing::V1::ReleaseFlashSaleAllocationResponse
23
+ end
24
+
25
+ Stub = Service.rpc_stub_class
26
+ end
27
+ end
28
+ 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,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\"\xbe\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.MoneyR\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,88 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: kinetix-contracts
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Kinetix
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2026-09-04 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
+ - common/v1/common_pb.rb
48
+ - fleet/v1/fleet_pb.rb
49
+ - fleet/v1/fleet_services_pb.rb
50
+ - fulfillment/v1/fulfillment_pb.rb
51
+ - fulfillment/v1/fulfillment_services_pb.rb
52
+ - geo/v1/geo_pb.rb
53
+ - geo/v1/geo_services_pb.rb
54
+ - identity/v1/identity_pb.rb
55
+ - identity/v1/identity_services_pb.rb
56
+ - order/v1/order_pb.rb
57
+ - order/v1/order_services_pb.rb
58
+ - payment/v1/payment_pb.rb
59
+ - payment/v1/payment_services_pb.rb
60
+ - pricing/v1/pricing_pb.rb
61
+ - pricing/v1/pricing_services_pb.rb
62
+ - returns/v1/returns_pb.rb
63
+ - returns/v1/returns_services_pb.rb
64
+ - shipping/v1/shipping_pb.rb
65
+ - shipping/v1/shipping_services_pb.rb
66
+ homepage:
67
+ licenses: []
68
+ metadata: {}
69
+ post_install_message:
70
+ rdoc_options: []
71
+ require_paths:
72
+ - lib
73
+ required_ruby_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '3.2'
78
+ required_rubygems_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ requirements: []
84
+ rubygems_version: 3.4.20
85
+ signing_key:
86
+ specification_version: 4
87
+ summary: Kinetix wire contracts
88
+ test_files: []