kinetix-contracts 1.0.21 → 1.0.23
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 +4 -4
- data/payment/v1/liability_pb.rb +26 -0
- data/payment/v1/liability_services_pb.rb +24 -0
- data/payment/v1/payment_pb.rb +2 -1
- data/payment/v1/payment_services_pb.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4c9977c9ddb55f0f7fe89afaf89d893df966b2e1968bb7f9ef63c6e0e16a9007
|
|
4
|
+
data.tar.gz: bf82535508bff8d19687b7d23ab74baa38297c164dc6f83471824fe361cc5b70
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 90ce1f7b7bf2f817f8fa38d9b09a8f10f3f000c8fd007579aab94694c9d738dfa98739d7cb21c59a655084c9ff2218e1b2345e74614c33bfdb6881b7ff7d2399
|
|
7
|
+
data.tar.gz: f5882e8296410da7faa98ff11c3e4db088842a0e649240a4fcff51e97fcfb0eb6754576ef1d4e97c4e506fc8e645012983d5f2d1b0cfafcc43443955560077db
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: payment/v1/liability.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\x1apayment/v1/liability.proto\x12\npayment.v1\x1a\x16\x63ommon/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"<\n\x1eStreamLiabilitySnapshotRequest\x12\x1a\n\x08\x63urrency\x18\x01 \x01(\tR\x08\x63urrency\"\xeb\x01\n\x1fStreamLiabilitySnapshotResponse\x12=\n\x06header\x18\x01 \x01(\x0b\x32#.payment.v1.LiabilitySnapshotHeaderH\x00R\x06header\x12?\n\x08\x61\x63\x63ounts\x18\x02 \x01(\x0b\x32!.payment.v1.LiabilityAccountBatchH\x00R\x08\x61\x63\x63ounts\x12@\n\x07trailer\x18\x03 \x01(\x0b\x32$.payment.v1.LiabilitySnapshotTrailerH\x00R\x07trailerB\x06\n\x04part\"f\n\x17LiabilitySnapshotHeader\x12/\n\x05\x61s_of\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x04\x61sOf\x12\x1a\n\x08\x63urrency\x18\x02 \x01(\tR\x08\x63urrency\"Q\n\x15LiabilityAccountBatch\x12\x38\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\x1c.payment.v1.LiabilityAccountR\x08\x61\x63\x63ounts\"\xc9\x01\n\x10LiabilityAccount\x12-\n\x04kind\x18\x01 \x01(\x0e\x32\x19.payment.v1.LiabilityKindR\x04kind\x12#\n\x0cprincipal_id\x18\x02 \x01(\tH\x00R\x0bprincipalId\x12+\n\x10suspense_purpose\x18\x03 \x01(\tH\x00R\x0fsuspensePurpose\x12*\n\x07\x62\x61lance\x18\x04 \x01(\x0b\x32\x10.common.v1.MoneyR\x07\x62\x61lanceB\x08\n\x06holder\"g\n\x18LiabilitySnapshotTrailer\x12#\n\raccount_count\x18\x01 \x01(\x03R\x0c\x61\x63\x63ountCount\x12&\n\x05total\x18\x02 \x01(\x0b\x32\x10.common.v1.MoneyR\x05total*\xc9\x02\n\rLiabilityKind\x12\x1e\n\x1aLIABILITY_KIND_UNSPECIFIED\x10\x00\x12#\n\x1fLIABILITY_KIND_CUSTOMER_BALANCE\x10\x01\x12%\n!LIABILITY_KIND_MERCHANT_AVAILABLE\x10\x02\x12*\n&LIABILITY_KIND_MERCHANT_PENDING_ESCROW\x10\x03\x12#\n\x1fLIABILITY_KIND_DRIVER_AVAILABLE\x10\x04\x12(\n$LIABILITY_KIND_DRIVER_PENDING_ESCROW\x10\x05\x12%\n!LIABILITY_KIND_SUSPENSE_AVAILABLE\x10\x06\x12*\n&LIABILITY_KIND_SUSPENSE_PENDING_ESCROW\x10\x07\x32\x88\x01\n\x10LiabilityService\x12t\n\x17StreamLiabilitySnapshot\x12*.payment.v1.StreamLiabilitySnapshotRequest\x1a+.payment.v1.StreamLiabilitySnapshotResponse0\x01\x42\xd6\x01\n com.kinetix.contracts.payment.v1B\x0eLiabilityProtoP\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
|
+
StreamLiabilitySnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.StreamLiabilitySnapshotRequest").msgclass
|
|
19
|
+
StreamLiabilitySnapshotResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.StreamLiabilitySnapshotResponse").msgclass
|
|
20
|
+
LiabilitySnapshotHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.LiabilitySnapshotHeader").msgclass
|
|
21
|
+
LiabilityAccountBatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.LiabilityAccountBatch").msgclass
|
|
22
|
+
LiabilityAccount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.LiabilityAccount").msgclass
|
|
23
|
+
LiabilitySnapshotTrailer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.LiabilitySnapshotTrailer").msgclass
|
|
24
|
+
LiabilityKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.LiabilityKind").enummodule
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: payment/v1/liability.proto for package 'Payment.V1'
|
|
3
|
+
|
|
4
|
+
require 'grpc'
|
|
5
|
+
require 'payment/v1/liability_pb'
|
|
6
|
+
|
|
7
|
+
module Payment
|
|
8
|
+
module V1
|
|
9
|
+
module LiabilityService
|
|
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.LiabilityService'
|
|
17
|
+
|
|
18
|
+
rpc :StreamLiabilitySnapshot, ::Payment::V1::StreamLiabilitySnapshotRequest, stream(::Payment::V1::StreamLiabilitySnapshotResponse)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
Stub = Service.rpc_stub_class
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
data/payment/v1/payment_pb.rb
CHANGED
|
@@ -8,7 +8,7 @@ require 'common/v1/common_pb'
|
|
|
8
8
|
require 'google/protobuf/timestamp_pb'
|
|
9
9
|
|
|
10
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\"\
|
|
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\"\xbd\x01\n\x12RefundGoodsRequest\x12!\n\x0corder_number\x18\x01 \x01(\tR\x0borderNumber\x12(\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x10.common.v1.MoneyR\x06\x61mount\x12\x16\n\x06reason\x18\x03 \x01(\tR\x06reason\x12\x42\n\x0fidempotency_key\x18\x04 \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\"\x9d\x07\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\x12\x44\n\x15goods_refunded_amount\x18\x11 \x01(\x0b\x32\x10.common.v1.MoneyR\x13goodsRefundedAmount*\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\x8e\x04\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.EscrowHoldResponse\x12M\n\x0bRefundGoods\x12\x1e.payment.v1.RefundGoodsRequest\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
12
|
|
|
13
13
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -18,6 +18,7 @@ module Payment
|
|
|
18
18
|
CreateEscrowHoldRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.CreateEscrowHoldRequest").msgclass
|
|
19
19
|
ReleaseEscrowRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.ReleaseEscrowRequest").msgclass
|
|
20
20
|
RefundEscrowRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.RefundEscrowRequest").msgclass
|
|
21
|
+
RefundGoodsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.RefundGoodsRequest").msgclass
|
|
21
22
|
GetEscrowStatusRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.GetEscrowStatusRequest").msgclass
|
|
22
23
|
SettleShippingFeeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.SettleShippingFeeRequest").msgclass
|
|
23
24
|
EscrowHoldResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("payment.v1.EscrowHoldResponse").msgclass
|
|
@@ -20,6 +20,7 @@ module Payment
|
|
|
20
20
|
rpc :RefundEscrow, ::Payment::V1::RefundEscrowRequest, ::Payment::V1::EscrowHoldResponse
|
|
21
21
|
rpc :GetEscrowStatus, ::Payment::V1::GetEscrowStatusRequest, ::Payment::V1::EscrowHoldResponse
|
|
22
22
|
rpc :SettleShippingFee, ::Payment::V1::SettleShippingFeeRequest, ::Payment::V1::EscrowHoldResponse
|
|
23
|
+
rpc :RefundGoods, ::Payment::V1::RefundGoodsRequest, ::Payment::V1::EscrowHoldResponse
|
|
23
24
|
end
|
|
24
25
|
|
|
25
26
|
Stub = Service.rpc_stub_class
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kinetix-contracts
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.23
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kinetix
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-protobuf
|
|
@@ -63,6 +63,8 @@ files:
|
|
|
63
63
|
- notification/v1/notification_services_pb.rb
|
|
64
64
|
- order/v1/order_pb.rb
|
|
65
65
|
- order/v1/order_services_pb.rb
|
|
66
|
+
- payment/v1/liability_pb.rb
|
|
67
|
+
- payment/v1/liability_services_pb.rb
|
|
66
68
|
- payment/v1/payment_pb.rb
|
|
67
69
|
- payment/v1/payment_services_pb.rb
|
|
68
70
|
- pricing/v1/pricing_pb.rb
|