@t-0/provider-sdk 1.0.27 → 1.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/client/client.js +2 -2
- package/lib/cjs/common/gen/tzero/v1/common/common_pb.d.ts +0 -2
- package/lib/cjs/common/gen/tzero/v1/common/common_pb.js +1 -1
- package/lib/cjs/common/gen/tzero/v1/common/payment_method_pb.d.ts +106 -13
- package/lib/cjs/common/gen/tzero/v1/common/payment_method_pb.js +43 -3
- package/lib/cjs/common/gen/tzero/v1/common/payment_receipt_pb.d.ts +0 -2
- package/lib/cjs/common/gen/tzero/v1/common/payment_receipt_pb.js +1 -1
- package/lib/cjs/common/gen/tzero/v1/payment/network_pb.d.ts +110 -176
- package/lib/cjs/common/gen/tzero/v1/payment/network_pb.js +20 -20
- package/lib/cjs/common/gen/tzero/v1/payment/provider_pb.d.ts +2 -2
- package/lib/cjs/common/gen/tzero/v1/payment/provider_pb.js +2 -2
- package/lib/cjs/common/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +4 -16
- package/lib/cjs/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +2 -2
- package/lib/cjs/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +0 -10
- package/lib/cjs/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +2 -2
- package/lib/cjs/common/gen/tzero/v1/public/public_pb.js +1 -1
- package/lib/cjs/service/node.js +2 -2
- package/lib/esm/client/client.js +1 -1
- package/lib/esm/common/gen/tzero/v1/common/common_pb.d.ts +0 -2
- package/lib/esm/common/gen/tzero/v1/common/common_pb.js +1 -1
- package/lib/esm/common/gen/tzero/v1/common/payment_method_pb.d.ts +106 -13
- package/lib/esm/common/gen/tzero/v1/common/payment_method_pb.js +42 -2
- package/lib/esm/common/gen/tzero/v1/common/payment_receipt_pb.d.ts +0 -2
- package/lib/esm/common/gen/tzero/v1/common/payment_receipt_pb.js +1 -1
- package/lib/esm/common/gen/tzero/v1/payment/network_pb.d.ts +110 -176
- package/lib/esm/common/gen/tzero/v1/payment/network_pb.js +19 -19
- package/lib/esm/common/gen/tzero/v1/payment/provider_pb.d.ts +2 -2
- package/lib/esm/common/gen/tzero/v1/payment/provider_pb.js +2 -2
- package/lib/esm/common/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +4 -16
- package/lib/esm/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +2 -2
- package/lib/esm/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +0 -10
- package/lib/esm/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +2 -2
- package/lib/esm/common/gen/tzero/v1/public/public_pb.js +1 -1
- package/lib/esm/service/node.js +1 -1
- package/lib/tsconfig.cjs.tsbuildinfo +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +10 -10
|
@@ -11,29 +11,27 @@ export declare const file_tzero_v1_payment_intent_provider_provider: GenFile;
|
|
|
11
11
|
*/
|
|
12
12
|
export type CreatePaymentIntentRequest = Message<"tzero.v1.payment_intent.provider.CreatePaymentIntentRequest"> & {
|
|
13
13
|
/**
|
|
14
|
-
* Payment intent ID must be positive
|
|
15
|
-
*
|
|
16
14
|
* idempotency key
|
|
17
15
|
*
|
|
18
16
|
* @generated from field: uint64 payment_intent_id = 10;
|
|
19
17
|
*/
|
|
20
18
|
paymentIntentId: bigint;
|
|
21
19
|
/**
|
|
22
|
-
* ISO 4217 currency code (3 uppercase letters)
|
|
23
|
-
*
|
|
24
20
|
* pay-in currency
|
|
25
21
|
*
|
|
26
22
|
* @generated from field: string currency = 20;
|
|
27
23
|
*/
|
|
28
24
|
currency: string;
|
|
29
25
|
/**
|
|
30
|
-
* Amount is required
|
|
31
|
-
*
|
|
32
26
|
* pay-in amount
|
|
33
27
|
*
|
|
34
28
|
* @generated from field: tzero.v1.common.Decimal amount = 30;
|
|
35
29
|
*/
|
|
36
30
|
amount?: Decimal;
|
|
31
|
+
/**
|
|
32
|
+
* @generated from field: uint32 merchant_id = 50;
|
|
33
|
+
*/
|
|
34
|
+
merchantId: number;
|
|
37
35
|
};
|
|
38
36
|
/**
|
|
39
37
|
* Describes the message tzero.v1.payment_intent.provider.CreatePaymentIntentRequest.
|
|
@@ -45,8 +43,6 @@ export declare const CreatePaymentIntentRequestSchema: GenMessage<CreatePaymentI
|
|
|
45
43
|
*/
|
|
46
44
|
export type CreatePaymentIntentResponse = Message<"tzero.v1.payment_intent.provider.CreatePaymentIntentResponse"> & {
|
|
47
45
|
/**
|
|
48
|
-
* At least one payment method should be provided
|
|
49
|
-
*
|
|
50
46
|
* @generated from field: repeated tzero.v1.payment_intent.provider.CreatePaymentIntentResponse.PaymentMethod payment_methods = 20;
|
|
51
47
|
*/
|
|
52
48
|
paymentMethods: CreatePaymentIntentResponse_PaymentMethod[];
|
|
@@ -61,14 +57,10 @@ export declare const CreatePaymentIntentResponseSchema: GenMessage<CreatePayment
|
|
|
61
57
|
*/
|
|
62
58
|
export type CreatePaymentIntentResponse_PaymentMethod = Message<"tzero.v1.payment_intent.provider.CreatePaymentIntentResponse.PaymentMethod"> & {
|
|
63
59
|
/**
|
|
64
|
-
* Payment URL must be a valid URL
|
|
65
|
-
*
|
|
66
60
|
* @generated from field: string payment_url = 10;
|
|
67
61
|
*/
|
|
68
62
|
paymentUrl: string;
|
|
69
63
|
/**
|
|
70
|
-
* Payment method must be specified
|
|
71
|
-
*
|
|
72
64
|
* @generated from field: tzero.v1.common.PaymentMethodType payment_method = 20;
|
|
73
65
|
*/
|
|
74
66
|
paymentMethod: PaymentMethodType;
|
|
@@ -83,16 +75,12 @@ export declare const CreatePaymentIntentResponse_PaymentMethodSchema: GenMessage
|
|
|
83
75
|
*/
|
|
84
76
|
export type ConfirmPaymentRequest = Message<"tzero.v1.payment_intent.provider.ConfirmPaymentRequest"> & {
|
|
85
77
|
/**
|
|
86
|
-
* Payment intent ID must be positive
|
|
87
|
-
*
|
|
88
78
|
* payment_intent_id from CreatePaymentIntentRequest
|
|
89
79
|
*
|
|
90
80
|
* @generated from field: uint64 payment_intent_id = 10;
|
|
91
81
|
*/
|
|
92
82
|
paymentIntentId: bigint;
|
|
93
83
|
/**
|
|
94
|
-
* Payment method must be specified
|
|
95
|
-
*
|
|
96
84
|
* @generated from field: tzero.v1.common.PaymentMethodType payment_method = 20;
|
|
97
85
|
*/
|
|
98
86
|
paymentMethod: PaymentMethodType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// @generated by protoc-gen-es v2.
|
|
2
|
+
// @generated by protoc-gen-es v2.9.0 with parameter "target=ts,import_extension=js"
|
|
3
3
|
// @generated from file tzero/v1/payment_intent/provider/provider.proto (package tzero.v1.payment_intent.provider, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -11,7 +11,7 @@ const validate_pb_js_1 = require("../../../../buf/validate/validate_pb.js");
|
|
|
11
11
|
/**
|
|
12
12
|
* Describes the file tzero/v1/payment_intent/provider/provider.proto.
|
|
13
13
|
*/
|
|
14
|
-
exports.file_tzero_v1_payment_intent_provider_provider = (0, codegenv2_1.fileDesc)("
|
|
14
|
+
exports.file_tzero_v1_payment_intent_provider_provider = (0, codegenv2_1.fileDesc)("Ci90emVyby92MS9wYXltZW50X2ludGVudC9wcm92aWRlci9wcm92aWRlci5wcm90bxIgdHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIiuAEKGkNyZWF0ZVBheW1lbnRJbnRlbnRSZXF1ZXN0EiIKEXBheW1lbnRfaW50ZW50X2lkGAogASgEQge6SAQyAiAAEiYKCGN1cnJlbmN5GBQgASgJQhS6SBFyDzIKXltBLVpdezN9JJgBAxIwCgZhbW91bnQYHiABKAsyGC50emVyby52MS5jb21tb24uRGVjaW1hbEIGukgDyAEBEhwKC21lcmNoYW50X2lkGDIgASgNQge6SAQyAiAAIpICChtDcmVhdGVQYXltZW50SW50ZW50UmVzc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ChRDb25maXJtUGF5b3V0UmVxdWVzdBIZChFwYXltZW50X2ludGVudF9pZBgKIAEoBBISCgpwYXltZW50X2lkGBQgASgEIhcKFUNvbmZpcm1QYXlvdXRSZXNwb25zZSJ3ChhDb25maXJtU2V0dGxlbWVudFJlcXVlc3QSLwoKYmxvY2tjaGFpbhgKIAEoDjIbLnR6ZXJvLnYxLmNvbW1vbi5CbG9ja2NoYWluEg8KB3R4X2hhc2gYFCABKAkSGQoRcGF5bWVudF9pbnRlbnRfaWQYHiADKAQiGwoZQ29uZmlybVNldHRsZW1lbnRSZXNwb25zZTLJAwoOTmV0d29ya1NlcnZpY2USiAEKDkNvbmZpcm1QYXltZW50EjcudHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIuQ29uZmlybVBheW1lbnRSZXF1ZXN0GjgudHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIuQ29uZmlybVBheW1lbnRSZXNwb25zZSIDkAICEpcBChNSZWplY3RQYXltZW50SW50ZW50EjwudHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIuUmVqZWN0UGF5bWVudEludGVudFJlcXVlc3QaPS50emVyby52MS5wYXltZW50X2ludGVudC5wcm92aWRlci5SZWplY3RQYXltZW50SW50ZW50UmVzcG9uc2UiA5ACAhKRAQoRQ29uZmlybVNldHRsZW1lbnQSOi50emVyby52MS5wYXltZW50X2ludGVudC5wcm92aWRlci5Db25maXJtU2V0dGxlbWVudFJlcXVlc3QaOy50emVyby52MS5wYXltZW50X2ludGVudC5wcm92aWRlci5Db25maXJtU2V0dGxlbWVudFJlc3BvbnNlIgOQAgIyswIKD1Byb3ZpZGVyU2VydmljZRKXAQoTQ3JlYXRlUGF5bWVudEludGVudBI8LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnByb3ZpZGVyLkNyZWF0ZVBheW1lbnRJbnRlbnRSZXF1ZXN0Gj0udHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXIuQ3JlYXRlUGF5bWVudEludGVudFJlc3BvbnNlIgOQAgIShQEKDUNvbmZpcm1QYXlvdXQSNi50emVyby52MS5wYXltZW50X2ludGVudC5wcm92aWRlci5Db25maXJtUGF5b3V0UmVxdWVzdBo3LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnByb3ZpZGVyLkNvbmZpcm1QYXlvdXRSZXNwb25zZSIDkAICQtUBCiRjb20udHplcm8udjEucGF5bWVudF9pbnRlbnQucHJvdmlkZXJCDVByb3ZpZGVyUHJvdG9QAaICBFRWUFCqAh9UemVyby5WMS5QYXltZW50SW50ZW50LlByb3ZpZGVyygIfVHplcm9cVjFcUGF5bWVudEludGVudFxQcm92aWRlcuICK1R6ZXJvXFYxXFBheW1lbnRJbnRlbnRcUHJvdmlkZXJcR1BCTWV0YWRhdGHqAiJUemVybzo6VjE6OlBheW1lbnRJbnRlbnQ6OlByb3ZpZGVyYgZwcm90bzM", [common_pb_js_1.file_tzero_v1_common_common, payment_method_pb_js_1.file_tzero_v1_common_payment_method, validate_pb_js_1.file_buf_validate_validate]);
|
|
15
15
|
/**
|
|
16
16
|
* Describes the message tzero.v1.payment_intent.provider.CreatePaymentIntentRequest.
|
|
17
17
|
* Use `create(CreatePaymentIntentRequestSchema)` to create a new message.
|
|
@@ -59,14 +59,10 @@ export declare const CreatePaymentIntentRequestSchema: GenMessage<CreatePaymentI
|
|
|
59
59
|
*/
|
|
60
60
|
export type CreatePaymentIntentResponse = Message<"tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse"> & {
|
|
61
61
|
/**
|
|
62
|
-
* Payment intent ID must be positive
|
|
63
|
-
*
|
|
64
62
|
* @generated from field: uint64 payment_intent_id = 10;
|
|
65
63
|
*/
|
|
66
64
|
paymentIntentId: bigint;
|
|
67
65
|
/**
|
|
68
|
-
* At least one payment method should be provided
|
|
69
|
-
*
|
|
70
66
|
* @generated from field: repeated tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.PaymentMethod pay_in_payment_methods = 20;
|
|
71
67
|
*/
|
|
72
68
|
payInPaymentMethods: CreatePaymentIntentResponse_PaymentMethod[];
|
|
@@ -81,20 +77,14 @@ export declare const CreatePaymentIntentResponseSchema: GenMessage<CreatePayment
|
|
|
81
77
|
*/
|
|
82
78
|
export type CreatePaymentIntentResponse_PaymentMethod = Message<"tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.PaymentMethod"> & {
|
|
83
79
|
/**
|
|
84
|
-
* Payment URL must be a valid URL
|
|
85
|
-
*
|
|
86
80
|
* @generated from field: string payment_url = 10;
|
|
87
81
|
*/
|
|
88
82
|
paymentUrl: string;
|
|
89
83
|
/**
|
|
90
|
-
* Provider ID must be positive
|
|
91
|
-
*
|
|
92
84
|
* @generated from field: uint32 provider_id = 20;
|
|
93
85
|
*/
|
|
94
86
|
providerId: number;
|
|
95
87
|
/**
|
|
96
|
-
* Payment method must be specified
|
|
97
|
-
*
|
|
98
88
|
* @generated from field: tzero.v1.common.PaymentMethodType payment_method = 30;
|
|
99
89
|
*/
|
|
100
90
|
paymentMethod: PaymentMethodType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// @generated by protoc-gen-es v2.
|
|
2
|
+
// @generated by protoc-gen-es v2.9.0 with parameter "target=ts,import_extension=js"
|
|
3
3
|
// @generated from file tzero/v1/payment_intent/recipient/recipient.proto (package tzero.v1.payment_intent.recipient, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -13,7 +13,7 @@ const validate_pb_js_1 = require("../../../../buf/validate/validate_pb.js");
|
|
|
13
13
|
/**
|
|
14
14
|
* Describes the file tzero/v1/payment_intent/recipient/recipient.proto.
|
|
15
15
|
*/
|
|
16
|
-
exports.file_tzero_v1_payment_intent_recipient_recipient = (0, codegenv2_1.fileDesc)("CjF0emVyby92MS9wYXltZW50X2ludGVudC9yZWNpcGllbnQvcmVjaXBpZW50LnByb3RvEiF0emVyby52MS5wYXltZW50X2ludGVudC5yZWNpcGllbnQimgIKGkNyZWF0ZVBheW1lbnRJbnRlbnRSZXF1ZXN0EiQKEXBheW1lbnRfcmVmZXJlbmNlGAogASgJQgm6SAZyBBABGEASLQoPcGF5X2luX2N1cnJlbmN5GBQgASgJQhS6SBFyDzIKXltBLVpdezN9JJgBAxI3Cg1wYXlfaW5fYW1vdW50GB4gASgLMhgudHplcm8udjEuY29tbW9uLkRlY2ltYWxCBrpIA8gBARIuChBwYXlfb3V0X2N1cnJlbmN5GCggASgJQhS6SBFyDzIKXltBLVpdezN9JJgBAxI+
|
|
16
|
+
exports.file_tzero_v1_payment_intent_recipient_recipient = (0, codegenv2_1.fileDesc)("CjF0emVyby92MS9wYXltZW50X2ludGVudC9yZWNpcGllbnQvcmVjaXBpZW50LnByb3RvEiF0emVyby52MS5wYXltZW50X2ludGVudC5yZWNpcGllbnQimgIKGkNyZWF0ZVBheW1lbnRJbnRlbnRSZXF1ZXN0EiQKEXBheW1lbnRfcmVmZXJlbmNlGAogASgJQgm6SAZyBBABGEASLQoPcGF5X2luX2N1cnJlbmN5GBQgASgJQhS6SBFyDzIKXltBLVpdezN9JJgBAxI3Cg1wYXlfaW5fYW1vdW50GB4gASgLMhgudHplcm8udjEuY29tbW9uLkRlY2ltYWxCBrpIA8gBARIuChBwYXlfb3V0X2N1cnJlbmN5GCggASgJQhS6SBFyDzIKXltBLVpdezN9JJgBAxI+Cg5wYXlfb3V0X21ldGhvZBgyIAEoCzIeLnR6ZXJvLnYxLmNvbW1vbi5QYXltZW50TWV0aG9kQga6SAPIAQEi3AIKG0NyZWF0ZVBheW1lbnRJbnRlbnRSZXNwb25zZRIiChFwYXltZW50X2ludGVudF9pZBgKIAEoBEIHukgEMgIgABJ2ChZwYXlfaW5fcGF5bWVudF9tZXRob2RzGBQgAygLMkwudHplcm8udjEucGF5bWVudF9pbnRlbnQucmVjaXBpZW50LkNyZWF0ZVBheW1lbnRJbnRlbnRSZXNwb25zZS5QYX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JlY2lwaWVudC5Db25maXJtUGF5SW5SZXF1ZXN0GjcudHplcm8udjEucGF5bWVudF9pbnRlbnQucmVjaXBpZW50LkNvbmZpcm1QYXlJblJlc3BvbnNlIgOQAgISigEKDkNvbmZpcm1QYXltZW50EjgudHplcm8udjEucGF5bWVudF9pbnRlbnQucmVjaXBpZW50LkNvbmZpcm1QYXltZW50UmVxdWVzdBo5LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnJlY2lwaWVudC5Db25maXJtUGF5bWVudFJlc3BvbnNlIgOQAgISmQEKE1JlamVjdFBheW1lbnRJbnRlbnQSPS50emVyby52MS5wYXltZW50X2ludGVudC5yZWNpcGllbnQuUmVqZWN0UGF5bWVudEludGVudFJlcXVlc3QaPi50emVyby52MS5wYXltZW50X2ludGVudC5yZWNpcGllbnQuUmVqZWN0UGF5bWVudEludGVudFJlc3BvbnNlIgOQAgJC2wEKJWNvbS50emVyby52MS5wYXltZW50X2ludGVudC5yZWNpcGllbnRCDlJlY2lwaWVudFByb3RvUAGiAgRUVlBSqgIgVHplcm8uVjEuUGF5bWVudEludGVudC5SZWNpcGllbnTKAiBUemVyb1xWMVxQYXltZW50SW50ZW50XFJlY2lwaWVudOICLFR6ZXJvXFYxXFBheW1lbnRJbnRlbnRcUmVjaXBpZW50XEdQQk1ldGFkYXRh6gIjVHplcm86OlYxOjpQYXltZW50SW50ZW50OjpSZWNpcGllbnRiBnByb3RvMw", [common_pb_js_1.file_tzero_v1_common_common, payment_method_pb_js_1.file_tzero_v1_common_payment_method, payment_receipt_pb_js_1.file_tzero_v1_common_payment_receipt, wkt_1.file_google_protobuf_timestamp, validate_pb_js_1.file_buf_validate_validate]);
|
|
17
17
|
/**
|
|
18
18
|
* Describes the message tzero.v1.payment_intent.recipient.CreatePaymentIntentRequest.
|
|
19
19
|
* Use `create(CreatePaymentIntentRequestSchema)` to create a new message.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// @generated by protoc-gen-es v2.
|
|
2
|
+
// @generated by protoc-gen-es v2.9.0 with parameter "target=ts,import_extension=js"
|
|
3
3
|
// @generated from file tzero/v1/public/public.proto (package tzero.v1.public, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
package/lib/cjs/service/node.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.signatureValidation = void 0;
|
|
4
|
-
const
|
|
4
|
+
const sha3_js_1 = require("@noble/hashes/sha3.js");
|
|
5
5
|
const signatureValidation = (next) => (req, resp) => {
|
|
6
|
-
const hasher =
|
|
6
|
+
const hasher = sha3_js_1.keccak_256.create();
|
|
7
7
|
req.hasher = hasher;
|
|
8
8
|
req.on("data", (chunk) => {
|
|
9
9
|
if (chunk instanceof Buffer) {
|
package/lib/esm/client/client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createClient as createConnectClient } from "@connectrpc/connect";
|
|
2
2
|
import { createConnectTransport } from "@connectrpc/connect-web";
|
|
3
|
-
import { keccak_256 } from "@noble/hashes/sha3";
|
|
3
|
+
import { keccak_256 } from "@noble/hashes/sha3.js";
|
|
4
4
|
import CreateSigner from "./signer.js";
|
|
5
5
|
import NetworkHeaders from "../common/headers.js";
|
|
6
6
|
export const DEFAULT_ENDPOINT = "https://api.t-0.network";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.
|
|
1
|
+
// @generated by protoc-gen-es v2.9.0 with parameter "target=ts,import_extension=js"
|
|
2
2
|
// @generated from file tzero/v1/common/common.proto (package tzero.v1.common, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
@@ -30,6 +30,18 @@ export type PaymentMethod = Message<"tzero.v1.common.PaymentMethod"> & {
|
|
|
30
30
|
*/
|
|
31
31
|
value: StablecoinPaymentDetails;
|
|
32
32
|
case: "stablecoin";
|
|
33
|
+
} | {
|
|
34
|
+
/**
|
|
35
|
+
* @generated from field: tzero.v1.common.AchPaymentDetails ach = 50;
|
|
36
|
+
*/
|
|
37
|
+
value: AchPaymentDetails;
|
|
38
|
+
case: "ach";
|
|
39
|
+
} | {
|
|
40
|
+
/**
|
|
41
|
+
* @generated from field: tzero.v1.common.WirePaymentDetails wire = 60;
|
|
42
|
+
*/
|
|
43
|
+
value: WirePaymentDetails;
|
|
44
|
+
case: "wire";
|
|
33
45
|
} | {
|
|
34
46
|
case: undefined;
|
|
35
47
|
value?: undefined;
|
|
@@ -45,20 +57,14 @@ export declare const PaymentMethodSchema: GenMessage<PaymentMethod>;
|
|
|
45
57
|
*/
|
|
46
58
|
export type SepaPaymentDetails = Message<"tzero.v1.common.SepaPaymentDetails"> & {
|
|
47
59
|
/**
|
|
48
|
-
* IBAN should be 15-34 characters, alphanumeric
|
|
49
|
-
*
|
|
50
60
|
* @generated from field: string iban = 20;
|
|
51
61
|
*/
|
|
52
62
|
iban: string;
|
|
53
63
|
/**
|
|
54
|
-
* Beneficiary name should be 1-70 characters (SEPA standard)
|
|
55
|
-
*
|
|
56
64
|
* @generated from field: string beneficiary_name = 30;
|
|
57
65
|
*/
|
|
58
66
|
beneficiaryName: string;
|
|
59
67
|
/**
|
|
60
|
-
* Payment reference up to 140 characters (SEPA standard)
|
|
61
|
-
*
|
|
62
68
|
* @generated from field: string payment_reference = 40;
|
|
63
69
|
*/
|
|
64
70
|
paymentReference: string;
|
|
@@ -82,20 +88,14 @@ export declare const SwiftPaymentDetailsSchema: GenMessage<SwiftPaymentDetails>;
|
|
|
82
88
|
*/
|
|
83
89
|
export type StablecoinPaymentDetails = Message<"tzero.v1.common.StablecoinPaymentDetails"> & {
|
|
84
90
|
/**
|
|
85
|
-
* Blockchain must be specified and not UNSPECIFIED
|
|
86
|
-
*
|
|
87
91
|
* @generated from field: tzero.v1.common.Blockchain blockchain = 10;
|
|
88
92
|
*/
|
|
89
93
|
blockchain: Blockchain;
|
|
90
94
|
/**
|
|
91
|
-
* Stablecoin must be specified and not UNSPECIFIED
|
|
92
|
-
*
|
|
93
95
|
* @generated from field: tzero.v1.common.Stablecoin stablecoin = 20;
|
|
94
96
|
*/
|
|
95
97
|
stablecoin: Stablecoin;
|
|
96
98
|
/**
|
|
97
|
-
* Blockchain address should be a valid hex address (20-64 chars for most blockchains)
|
|
98
|
-
*
|
|
99
99
|
* @generated from field: string address = 30;
|
|
100
100
|
*/
|
|
101
101
|
address: string;
|
|
@@ -105,6 +105,91 @@ export type StablecoinPaymentDetails = Message<"tzero.v1.common.StablecoinPaymen
|
|
|
105
105
|
* Use `create(StablecoinPaymentDetailsSchema)` to create a new message.
|
|
106
106
|
*/
|
|
107
107
|
export declare const StablecoinPaymentDetailsSchema: GenMessage<StablecoinPaymentDetails>;
|
|
108
|
+
/**
|
|
109
|
+
* @generated from message tzero.v1.common.AchPaymentDetails
|
|
110
|
+
*/
|
|
111
|
+
export type AchPaymentDetails = Message<"tzero.v1.common.AchPaymentDetails"> & {
|
|
112
|
+
/**
|
|
113
|
+
* @generated from field: string routing_number = 10;
|
|
114
|
+
*/
|
|
115
|
+
routingNumber: string;
|
|
116
|
+
/**
|
|
117
|
+
* @generated from field: string account_number = 20;
|
|
118
|
+
*/
|
|
119
|
+
accountNumber: string;
|
|
120
|
+
/**
|
|
121
|
+
* @generated from field: string account_holder_name = 30;
|
|
122
|
+
*/
|
|
123
|
+
accountHolderName: string;
|
|
124
|
+
/**
|
|
125
|
+
* @generated from field: tzero.v1.common.AchPaymentDetails.AchAccountType account_type = 40;
|
|
126
|
+
*/
|
|
127
|
+
accountType: AchPaymentDetails_AchAccountType;
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* Describes the message tzero.v1.common.AchPaymentDetails.
|
|
131
|
+
* Use `create(AchPaymentDetailsSchema)` to create a new message.
|
|
132
|
+
*/
|
|
133
|
+
export declare const AchPaymentDetailsSchema: GenMessage<AchPaymentDetails>;
|
|
134
|
+
/**
|
|
135
|
+
* @generated from enum tzero.v1.common.AchPaymentDetails.AchAccountType
|
|
136
|
+
*/
|
|
137
|
+
export declare enum AchPaymentDetails_AchAccountType {
|
|
138
|
+
/**
|
|
139
|
+
* @generated from enum value: ACH_ACCOUNT_TYPE_UNSPECIFIED = 0;
|
|
140
|
+
*/
|
|
141
|
+
UNSPECIFIED = 0,
|
|
142
|
+
/**
|
|
143
|
+
* @generated from enum value: ACH_ACCOUNT_TYPE_CHECKING = 10;
|
|
144
|
+
*/
|
|
145
|
+
CHECKING = 10,
|
|
146
|
+
/**
|
|
147
|
+
* @generated from enum value: ACH_ACCOUNT_TYPE_SAVINGS = 20;
|
|
148
|
+
*/
|
|
149
|
+
SAVINGS = 20
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Describes the enum tzero.v1.common.AchPaymentDetails.AchAccountType.
|
|
153
|
+
*/
|
|
154
|
+
export declare const AchPaymentDetails_AchAccountTypeSchema: GenEnum<AchPaymentDetails_AchAccountType>;
|
|
155
|
+
/**
|
|
156
|
+
* @generated from message tzero.v1.common.WirePaymentDetails
|
|
157
|
+
*/
|
|
158
|
+
export type WirePaymentDetails = Message<"tzero.v1.common.WirePaymentDetails"> & {
|
|
159
|
+
/**
|
|
160
|
+
* @generated from field: string bank_name = 10;
|
|
161
|
+
*/
|
|
162
|
+
bankName: string;
|
|
163
|
+
/**
|
|
164
|
+
* @generated from field: string bank_address = 20;
|
|
165
|
+
*/
|
|
166
|
+
bankAddress: string;
|
|
167
|
+
/**
|
|
168
|
+
* @generated from field: string swift_code = 30;
|
|
169
|
+
*/
|
|
170
|
+
swiftCode: string;
|
|
171
|
+
/**
|
|
172
|
+
* @generated from field: string account_number = 40;
|
|
173
|
+
*/
|
|
174
|
+
accountNumber: string;
|
|
175
|
+
/**
|
|
176
|
+
* @generated from field: string beneficiary_name = 50;
|
|
177
|
+
*/
|
|
178
|
+
beneficiaryName: string;
|
|
179
|
+
/**
|
|
180
|
+
* @generated from field: string beneficiary_address = 60;
|
|
181
|
+
*/
|
|
182
|
+
beneficiaryAddress: string;
|
|
183
|
+
/**
|
|
184
|
+
* @generated from field: string wire_reference = 70;
|
|
185
|
+
*/
|
|
186
|
+
wireReference: string;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Describes the message tzero.v1.common.WirePaymentDetails.
|
|
190
|
+
* Use `create(WirePaymentDetailsSchema)` to create a new message.
|
|
191
|
+
*/
|
|
192
|
+
export declare const WirePaymentDetailsSchema: GenMessage<WirePaymentDetails>;
|
|
108
193
|
/**
|
|
109
194
|
* @generated from enum tzero.v1.common.PaymentMethodType
|
|
110
195
|
*/
|
|
@@ -132,7 +217,15 @@ export declare enum PaymentMethodType {
|
|
|
132
217
|
*
|
|
133
218
|
* @generated from enum value: PAYMENT_METHOD_TYPE_STABLECOIN = 40;
|
|
134
219
|
*/
|
|
135
|
-
STABLECOIN = 40
|
|
220
|
+
STABLECOIN = 40,
|
|
221
|
+
/**
|
|
222
|
+
* @generated from enum value: PAYMENT_METHOD_TYPE_ACH = 50;
|
|
223
|
+
*/
|
|
224
|
+
ACH = 50,
|
|
225
|
+
/**
|
|
226
|
+
* @generated from enum value: PAYMENT_METHOD_TYPE_WIRE = 60;
|
|
227
|
+
*/
|
|
228
|
+
WIRE = 60
|
|
136
229
|
}
|
|
137
230
|
/**
|
|
138
231
|
* Describes the enum tzero.v1.common.PaymentMethodType.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.
|
|
1
|
+
// @generated by protoc-gen-es v2.9.0 with parameter "target=ts,import_extension=js"
|
|
2
2
|
// @generated from file tzero/v1/common/payment_method.proto (package tzero.v1.common, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
@@ -7,7 +7,7 @@ import { file_buf_validate_validate } from "../../../buf/validate/validate_pb.js
|
|
|
7
7
|
/**
|
|
8
8
|
* Describes the file tzero/v1/common/payment_method.proto.
|
|
9
9
|
*/
|
|
10
|
-
export const file_tzero_v1_common_payment_method = /*@__PURE__*/ fileDesc("
|
|
10
|
+
export const file_tzero_v1_common_payment_method = /*@__PURE__*/ fileDesc("CiR0emVyby92MS9jb21tb24vcGF5bWVudF9tZXRob2QucHJvdG8SD3R6ZXJvLnYxLmNvbW1vbiK2AgoNUGF5bWVudE1ldGhvZBIzCgRzZXBhGAogASgLMiMudHplcm8udjEuY29tbW9uLlNlcGFQYXltZW50RGV0YWlsc0gAEjUKBXN3aWZ0GB4gASgLMiQudHplcm8udjEuY29tbW9uLlN3aWZ0UGF5bWVudERldGFpbHNIABI/CgpzdGFibGVjb2luGCggASgLMikudHplcm8udjEuY29tbW9uLlN0YWJsZWNvaW5QYXltZW50RGV0YWlsc0gAEjEKA2FjaBgyIAEoCzIiLnR6ZXJvLnYxLmNvbW1vbi5BY2hQYXltZW50RGV0YWlsc0gAEjMKBHdpcmUYPCABKAsyIy50emVyby52MS5jb21tb24uV2lyZVBheW1lbnREZXRhaWxzSABCEAoHZGV0YWlscxIFukgCCAEilAEKElNlcGFQYXltZW50RGV0YWlscxI0CgRpYmFuGBQgASgJQia6SCNyIRAPGCIyG15bQS1aXXsyfVswLTldezJ9W0EtWjAtOV0rJBIjChBiZW5lZmljaWFyeV9uYW1lGB4gASgJQgm6SAZyBBABGEYSIwoRcGF5bWVudF9yZWZlcmVuY2UYKCABKAlCCLpIBXIDGIwBIhUKE1N3aWZ0UGF5bWVudERldGFpbHMivQEKGFN0YWJsZWNvaW5QYXltZW50RGV0YWlscxI3CgpibG9ja2NoYWluGAogASgOMhsudHplcm8udjEuY29tbW9uLkJsb2NrY2hhaW5CBrpIA8gBARI3CgpzdGFibGVjb2luGBQgASgOMhsudHplcm8udjEuY29tbW9uLlN0YWJsZWNvaW5CBrpIA8gBARIvCgdhZ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AUEhwKGFBBWU1FTlRfTUVUSE9EX1RZUEVfQ0FSRBAeEiIKHlBBWU1FTlRfTUVUSE9EX1RZUEVfU1RBQkxFQ09JThAoEhsKF1BBWU1FTlRfTUVUSE9EX1RZUEVfQUNIEDISHAoYUEFZTUVOVF9NRVRIT0RfVFlQRV9XSVJFEDxChwEKE2NvbS50emVyby52MS5jb21tb25CElBheW1lbnRNZXRob2RQcm90b1ABogIDVFZDqgIPVHplcm8uVjEuQ29tbW9uygIPVHplcm9cVjFcQ29tbW9u4gIbVHplcm9cVjFcQ29tbW9uXEdQQk1ldGFkYXRh6gIRVHplcm86OlYxOjpDb21tb25iBnByb3RvMw", [file_tzero_v1_common_common, file_buf_validate_validate]);
|
|
11
11
|
/**
|
|
12
12
|
* Describes the message tzero.v1.common.PaymentMethod.
|
|
13
13
|
* Use `create(PaymentMethodSchema)` to create a new message.
|
|
@@ -28,6 +28,38 @@ export const SwiftPaymentDetailsSchema = /*@__PURE__*/ messageDesc(file_tzero_v1
|
|
|
28
28
|
* Use `create(StablecoinPaymentDetailsSchema)` to create a new message.
|
|
29
29
|
*/
|
|
30
30
|
export const StablecoinPaymentDetailsSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_common_payment_method, 3);
|
|
31
|
+
/**
|
|
32
|
+
* Describes the message tzero.v1.common.AchPaymentDetails.
|
|
33
|
+
* Use `create(AchPaymentDetailsSchema)` to create a new message.
|
|
34
|
+
*/
|
|
35
|
+
export const AchPaymentDetailsSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_common_payment_method, 4);
|
|
36
|
+
/**
|
|
37
|
+
* @generated from enum tzero.v1.common.AchPaymentDetails.AchAccountType
|
|
38
|
+
*/
|
|
39
|
+
export var AchPaymentDetails_AchAccountType;
|
|
40
|
+
(function (AchPaymentDetails_AchAccountType) {
|
|
41
|
+
/**
|
|
42
|
+
* @generated from enum value: ACH_ACCOUNT_TYPE_UNSPECIFIED = 0;
|
|
43
|
+
*/
|
|
44
|
+
AchPaymentDetails_AchAccountType[AchPaymentDetails_AchAccountType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
45
|
+
/**
|
|
46
|
+
* @generated from enum value: ACH_ACCOUNT_TYPE_CHECKING = 10;
|
|
47
|
+
*/
|
|
48
|
+
AchPaymentDetails_AchAccountType[AchPaymentDetails_AchAccountType["CHECKING"] = 10] = "CHECKING";
|
|
49
|
+
/**
|
|
50
|
+
* @generated from enum value: ACH_ACCOUNT_TYPE_SAVINGS = 20;
|
|
51
|
+
*/
|
|
52
|
+
AchPaymentDetails_AchAccountType[AchPaymentDetails_AchAccountType["SAVINGS"] = 20] = "SAVINGS";
|
|
53
|
+
})(AchPaymentDetails_AchAccountType || (AchPaymentDetails_AchAccountType = {}));
|
|
54
|
+
/**
|
|
55
|
+
* Describes the enum tzero.v1.common.AchPaymentDetails.AchAccountType.
|
|
56
|
+
*/
|
|
57
|
+
export const AchPaymentDetails_AchAccountTypeSchema = /*@__PURE__*/ enumDesc(file_tzero_v1_common_payment_method, 4, 0);
|
|
58
|
+
/**
|
|
59
|
+
* Describes the message tzero.v1.common.WirePaymentDetails.
|
|
60
|
+
* Use `create(WirePaymentDetailsSchema)` to create a new message.
|
|
61
|
+
*/
|
|
62
|
+
export const WirePaymentDetailsSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_common_payment_method, 5);
|
|
31
63
|
/**
|
|
32
64
|
* @generated from enum tzero.v1.common.PaymentMethodType
|
|
33
65
|
*/
|
|
@@ -57,6 +89,14 @@ export var PaymentMethodType;
|
|
|
57
89
|
* @generated from enum value: PAYMENT_METHOD_TYPE_STABLECOIN = 40;
|
|
58
90
|
*/
|
|
59
91
|
PaymentMethodType[PaymentMethodType["STABLECOIN"] = 40] = "STABLECOIN";
|
|
92
|
+
/**
|
|
93
|
+
* @generated from enum value: PAYMENT_METHOD_TYPE_ACH = 50;
|
|
94
|
+
*/
|
|
95
|
+
PaymentMethodType[PaymentMethodType["ACH"] = 50] = "ACH";
|
|
96
|
+
/**
|
|
97
|
+
* @generated from enum value: PAYMENT_METHOD_TYPE_WIRE = 60;
|
|
98
|
+
*/
|
|
99
|
+
PaymentMethodType[PaymentMethodType["WIRE"] = 60] = "WIRE";
|
|
60
100
|
})(PaymentMethodType || (PaymentMethodType = {}));
|
|
61
101
|
/**
|
|
62
102
|
* Describes the enum tzero.v1.common.PaymentMethodType.
|
|
@@ -62,8 +62,6 @@ export declare const SwiftReceiptSchema: GenMessage<SwiftReceipt>;
|
|
|
62
62
|
*/
|
|
63
63
|
export type StablecoinReceipt = Message<"tzero.v1.common.StablecoinReceipt"> & {
|
|
64
64
|
/**
|
|
65
|
-
* Transaction hash should be a valid hex string (64 chars for most blockchains)
|
|
66
|
-
*
|
|
67
65
|
* on-chain hex encoded transaction hash
|
|
68
66
|
*
|
|
69
67
|
* @generated from field: string transaction_hash = 10;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.
|
|
1
|
+
// @generated by protoc-gen-es v2.9.0 with parameter "target=ts,import_extension=js"
|
|
2
2
|
// @generated from file tzero/v1/common/payment_receipt.proto (package tzero.v1.common, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|