@t-0/provider-sdk 1.0.26 → 1.0.27
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/common/gen/buf/validate/validate_pb.d.ts +4590 -0
- package/lib/cjs/common/gen/buf/validate/validate_pb.js +353 -0
- package/lib/cjs/common/gen/tzero/v1/common/common_pb.d.ts +2 -0
- package/lib/cjs/common/gen/tzero/v1/common/common_pb.js +2 -1
- package/lib/cjs/common/gen/tzero/v1/common/payment_method_pb.d.ts +40 -22
- package/lib/cjs/common/gen/tzero/v1/common/payment_method_pb.js +18 -11
- package/lib/cjs/common/gen/tzero/v1/common/payment_receipt_pb.d.ts +77 -0
- package/lib/cjs/common/gen/tzero/v1/common/payment_receipt_pb.js +32 -0
- package/lib/cjs/common/gen/tzero/v1/payment/network_pb.d.ts +98 -59
- package/lib/cjs/common/gen/tzero/v1/payment/network_pb.js +10 -18
- package/lib/cjs/common/gen/tzero/v1/payment/provider_pb.d.ts +153 -53
- package/lib/cjs/common/gen/tzero/v1/payment/provider_pb.js +72 -37
- package/lib/cjs/common/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +22 -0
- package/lib/cjs/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +2 -1
- package/lib/cjs/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +201 -14
- package/lib/cjs/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +41 -8
- package/lib/esm/common/gen/buf/validate/validate_pb.d.ts +4590 -0
- package/lib/esm/common/gen/buf/validate/validate_pb.js +350 -0
- package/lib/esm/common/gen/tzero/v1/common/common_pb.d.ts +2 -0
- package/lib/esm/common/gen/tzero/v1/common/common_pb.js +2 -1
- package/lib/esm/common/gen/tzero/v1/common/payment_method_pb.d.ts +40 -22
- package/lib/esm/common/gen/tzero/v1/common/payment_method_pb.js +17 -10
- package/lib/esm/common/gen/tzero/v1/common/payment_receipt_pb.d.ts +77 -0
- package/lib/esm/common/gen/tzero/v1/common/payment_receipt_pb.js +29 -0
- package/lib/esm/common/gen/tzero/v1/payment/network_pb.d.ts +98 -59
- package/lib/esm/common/gen/tzero/v1/payment/network_pb.js +9 -17
- package/lib/esm/common/gen/tzero/v1/payment/provider_pb.d.ts +153 -53
- package/lib/esm/common/gen/tzero/v1/payment/provider_pb.js +71 -36
- package/lib/esm/common/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +22 -0
- package/lib/esm/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +2 -1
- package/lib/esm/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +201 -14
- package/lib/esm/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +40 -7
- package/lib/tsconfig.cjs.tsbuildinfo +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -14,21 +14,21 @@ export type PaymentMethod = Message<"tzero.v1.common.PaymentMethod"> & {
|
|
|
14
14
|
*/
|
|
15
15
|
details: {
|
|
16
16
|
/**
|
|
17
|
-
* @generated from field: tzero.v1.common.
|
|
17
|
+
* @generated from field: tzero.v1.common.SepaPaymentDetails sepa = 10;
|
|
18
18
|
*/
|
|
19
|
-
value:
|
|
19
|
+
value: SepaPaymentDetails;
|
|
20
20
|
case: "sepa";
|
|
21
21
|
} | {
|
|
22
22
|
/**
|
|
23
|
-
* @generated from field: tzero.v1.common.
|
|
23
|
+
* @generated from field: tzero.v1.common.SwiftPaymentDetails swift = 30;
|
|
24
24
|
*/
|
|
25
|
-
value:
|
|
25
|
+
value: SwiftPaymentDetails;
|
|
26
26
|
case: "swift";
|
|
27
27
|
} | {
|
|
28
28
|
/**
|
|
29
|
-
* @generated from field: tzero.v1.common.
|
|
29
|
+
* @generated from field: tzero.v1.common.StablecoinPaymentDetails stablecoin = 40;
|
|
30
30
|
*/
|
|
31
|
-
value:
|
|
31
|
+
value: StablecoinPaymentDetails;
|
|
32
32
|
case: "stablecoin";
|
|
33
33
|
} | {
|
|
34
34
|
case: undefined;
|
|
@@ -41,58 +41,70 @@ export type PaymentMethod = Message<"tzero.v1.common.PaymentMethod"> & {
|
|
|
41
41
|
*/
|
|
42
42
|
export declare const PaymentMethodSchema: GenMessage<PaymentMethod>;
|
|
43
43
|
/**
|
|
44
|
-
* @generated from message tzero.v1.common.
|
|
44
|
+
* @generated from message tzero.v1.common.SepaPaymentDetails
|
|
45
45
|
*/
|
|
46
|
-
export type
|
|
46
|
+
export type SepaPaymentDetails = Message<"tzero.v1.common.SepaPaymentDetails"> & {
|
|
47
47
|
/**
|
|
48
|
+
* IBAN should be 15-34 characters, alphanumeric
|
|
49
|
+
*
|
|
48
50
|
* @generated from field: string iban = 20;
|
|
49
51
|
*/
|
|
50
52
|
iban: string;
|
|
51
53
|
/**
|
|
54
|
+
* Beneficiary name should be 1-70 characters (SEPA standard)
|
|
55
|
+
*
|
|
52
56
|
* @generated from field: string beneficiary_name = 30;
|
|
53
57
|
*/
|
|
54
58
|
beneficiaryName: string;
|
|
55
59
|
/**
|
|
60
|
+
* Payment reference up to 140 characters (SEPA standard)
|
|
61
|
+
*
|
|
56
62
|
* @generated from field: string payment_reference = 40;
|
|
57
63
|
*/
|
|
58
64
|
paymentReference: string;
|
|
59
65
|
};
|
|
60
66
|
/**
|
|
61
|
-
* Describes the message tzero.v1.common.
|
|
62
|
-
* Use `create(
|
|
67
|
+
* Describes the message tzero.v1.common.SepaPaymentDetails.
|
|
68
|
+
* Use `create(SepaPaymentDetailsSchema)` to create a new message.
|
|
63
69
|
*/
|
|
64
|
-
export declare const
|
|
70
|
+
export declare const SepaPaymentDetailsSchema: GenMessage<SepaPaymentDetails>;
|
|
65
71
|
/**
|
|
66
|
-
* @generated from message tzero.v1.common.
|
|
72
|
+
* @generated from message tzero.v1.common.SwiftPaymentDetails
|
|
67
73
|
*/
|
|
68
|
-
export type
|
|
74
|
+
export type SwiftPaymentDetails = Message<"tzero.v1.common.SwiftPaymentDetails"> & {};
|
|
69
75
|
/**
|
|
70
|
-
* Describes the message tzero.v1.common.
|
|
71
|
-
* Use `create(
|
|
76
|
+
* Describes the message tzero.v1.common.SwiftPaymentDetails.
|
|
77
|
+
* Use `create(SwiftPaymentDetailsSchema)` to create a new message.
|
|
72
78
|
*/
|
|
73
|
-
export declare const
|
|
79
|
+
export declare const SwiftPaymentDetailsSchema: GenMessage<SwiftPaymentDetails>;
|
|
74
80
|
/**
|
|
75
|
-
* @generated from message tzero.v1.common.
|
|
81
|
+
* @generated from message tzero.v1.common.StablecoinPaymentDetails
|
|
76
82
|
*/
|
|
77
|
-
export type
|
|
83
|
+
export type StablecoinPaymentDetails = Message<"tzero.v1.common.StablecoinPaymentDetails"> & {
|
|
78
84
|
/**
|
|
85
|
+
* Blockchain must be specified and not UNSPECIFIED
|
|
86
|
+
*
|
|
79
87
|
* @generated from field: tzero.v1.common.Blockchain blockchain = 10;
|
|
80
88
|
*/
|
|
81
89
|
blockchain: Blockchain;
|
|
82
90
|
/**
|
|
91
|
+
* Stablecoin must be specified and not UNSPECIFIED
|
|
92
|
+
*
|
|
83
93
|
* @generated from field: tzero.v1.common.Stablecoin stablecoin = 20;
|
|
84
94
|
*/
|
|
85
95
|
stablecoin: Stablecoin;
|
|
86
96
|
/**
|
|
97
|
+
* Blockchain address should be a valid hex address (20-64 chars for most blockchains)
|
|
98
|
+
*
|
|
87
99
|
* @generated from field: string address = 30;
|
|
88
100
|
*/
|
|
89
101
|
address: string;
|
|
90
102
|
};
|
|
91
103
|
/**
|
|
92
|
-
* Describes the message tzero.v1.common.
|
|
93
|
-
* Use `create(
|
|
104
|
+
* Describes the message tzero.v1.common.StablecoinPaymentDetails.
|
|
105
|
+
* Use `create(StablecoinPaymentDetailsSchema)` to create a new message.
|
|
94
106
|
*/
|
|
95
|
-
export declare const
|
|
107
|
+
export declare const StablecoinPaymentDetailsSchema: GenMessage<StablecoinPaymentDetails>;
|
|
96
108
|
/**
|
|
97
109
|
* @generated from enum tzero.v1.common.PaymentMethodType
|
|
98
110
|
*/
|
|
@@ -114,7 +126,13 @@ export declare enum PaymentMethodType {
|
|
|
114
126
|
*
|
|
115
127
|
* @generated from enum value: PAYMENT_METHOD_TYPE_CARD = 30;
|
|
116
128
|
*/
|
|
117
|
-
CARD = 30
|
|
129
|
+
CARD = 30,
|
|
130
|
+
/**
|
|
131
|
+
* only pay out
|
|
132
|
+
*
|
|
133
|
+
* @generated from enum value: PAYMENT_METHOD_TYPE_STABLECOIN = 40;
|
|
134
|
+
*/
|
|
135
|
+
STABLECOIN = 40
|
|
118
136
|
}
|
|
119
137
|
/**
|
|
120
138
|
* Describes the enum tzero.v1.common.PaymentMethodType.
|
|
@@ -3,30 +3,31 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
5
|
import { file_tzero_v1_common_common } from "./common_pb.js";
|
|
6
|
+
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb.js";
|
|
6
7
|
/**
|
|
7
8
|
* Describes the file tzero/v1/common/payment_method.proto.
|
|
8
9
|
*/
|
|
9
|
-
export const file_tzero_v1_common_payment_method = /*@__PURE__*/ fileDesc("
|
|
10
|
+
export const file_tzero_v1_common_payment_method = /*@__PURE__*/ fileDesc("CiR0emVyby92MS9jb21tb24vcGF5bWVudF9tZXRob2QucHJvdG8SD3R6ZXJvLnYxLmNvbW1vbiLOAQoNUGF5bWVudE1ldGhvZBIzCgRzZXBhGAogASgLMiMudHplcm8udjEuY29tbW9uLlNlcGFQYXltZW50RGV0YWlsc0gAEjUKBXN3aWZ0GB4gASgLMiQudHplcm8udjEuY29tbW9uLlN3aWZ0UGF5bWVudERldGFpbHNIABI/CgpzdGFibGVjb2luGCggASgLMikudHplcm8udjEuY29tbW9uLlN0YWJsZWNvaW5QYXltZW50RGV0YWlsc0gAQhAKB2RldGFpbHMSBbpIAggBIpQBChJTZXBhUGF5bWVudERldGFpbHMSNAoEaWJhbhgUIAEoCUImukgjciEQDxgiMhteW0EtWl17Mn1bMC05XXsyfVtBLVowLTldKyQSIwoQYmVuZWZpY2lhcnlfbmFtZRgeIAEoCUIJukgGcgQQARhGEiMKEXBheW1lbnRfcmVmZXJlbmNlGCggASgJQgi6SAVyAxiMASIVChNTd2lmdFBheW1lbnREZXRhaWxzIsEBChhTdGFibGVjb2luUGF5bWVudERldGFpbHMSOQoKYmxvY2tjaGFpbhgKIAEoDjIbLnR6ZXJvLnYxLmNvbW1vbi5CbG9ja2NoYWluQgi6SAWCAQIgABI5CgpzdGFibGVjb2luGBQgASgOMhsudHplcm8udjEuY29tbW9uLlN0YWJsZWNvaW5CCLpIBYIBAiAAEi8KB2FkZHJlc3MYHiABKAlCHrpIG3IZEBQYQDITXigweCk/W2EtZkEtRjAtOV0rJCq3AQoRUGF5bWVudE1ldGhvZFR5cGUSIwofUEFZTUVOVF9NRVRIT0RfVFlQRV9VTlNQRUNJRklFRBAAEhwKGFBBWU1FTlRfTUVUSE9EX1RZUEVfU0VQQRAKEh0KGVBBWU1FTlRfTUVUSE9EX1RZUEVfU1dJRlQQFBIcChhQQVlNRU5UX01FVEhPRF9UWVBFX0NBUkQQHhIiCh5QQVlNRU5UX01FVEhPRF9UWVBFX1NUQUJMRUNPSU4QKEKHAQoTY29tLnR6ZXJvLnYxLmNvbW1vbkISUGF5bWVudE1ldGhvZFByb3RvUAGiAgNUVkOqAg9UemVyby5WMS5Db21tb27KAg9UemVyb1xWMVxDb21tb27iAhtUemVyb1xWMVxDb21tb25cR1BCTWV0YWRhdGHqAhFUemVybzo6VjE6OkNvbW1vbmIGcHJvdG8z", [file_tzero_v1_common_common, file_buf_validate_validate]);
|
|
10
11
|
/**
|
|
11
12
|
* Describes the message tzero.v1.common.PaymentMethod.
|
|
12
13
|
* Use `create(PaymentMethodSchema)` to create a new message.
|
|
13
14
|
*/
|
|
14
15
|
export const PaymentMethodSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_common_payment_method, 0);
|
|
15
16
|
/**
|
|
16
|
-
* Describes the message tzero.v1.common.
|
|
17
|
-
* Use `create(
|
|
17
|
+
* Describes the message tzero.v1.common.SepaPaymentDetails.
|
|
18
|
+
* Use `create(SepaPaymentDetailsSchema)` to create a new message.
|
|
18
19
|
*/
|
|
19
|
-
export const
|
|
20
|
+
export const SepaPaymentDetailsSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_common_payment_method, 1);
|
|
20
21
|
/**
|
|
21
|
-
* Describes the message tzero.v1.common.
|
|
22
|
-
* Use `create(
|
|
22
|
+
* Describes the message tzero.v1.common.SwiftPaymentDetails.
|
|
23
|
+
* Use `create(SwiftPaymentDetailsSchema)` to create a new message.
|
|
23
24
|
*/
|
|
24
|
-
export const
|
|
25
|
+
export const SwiftPaymentDetailsSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_common_payment_method, 2);
|
|
25
26
|
/**
|
|
26
|
-
* Describes the message tzero.v1.common.
|
|
27
|
-
* Use `create(
|
|
27
|
+
* Describes the message tzero.v1.common.StablecoinPaymentDetails.
|
|
28
|
+
* Use `create(StablecoinPaymentDetailsSchema)` to create a new message.
|
|
28
29
|
*/
|
|
29
|
-
export const
|
|
30
|
+
export const StablecoinPaymentDetailsSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_common_payment_method, 3);
|
|
30
31
|
/**
|
|
31
32
|
* @generated from enum tzero.v1.common.PaymentMethodType
|
|
32
33
|
*/
|
|
@@ -50,6 +51,12 @@ export var PaymentMethodType;
|
|
|
50
51
|
* @generated from enum value: PAYMENT_METHOD_TYPE_CARD = 30;
|
|
51
52
|
*/
|
|
52
53
|
PaymentMethodType[PaymentMethodType["CARD"] = 30] = "CARD";
|
|
54
|
+
/**
|
|
55
|
+
* only pay out
|
|
56
|
+
*
|
|
57
|
+
* @generated from enum value: PAYMENT_METHOD_TYPE_STABLECOIN = 40;
|
|
58
|
+
*/
|
|
59
|
+
PaymentMethodType[PaymentMethodType["STABLECOIN"] = 40] = "STABLECOIN";
|
|
53
60
|
})(PaymentMethodType || (PaymentMethodType = {}));
|
|
54
61
|
/**
|
|
55
62
|
* Describes the enum tzero.v1.common.PaymentMethodType.
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file tzero/v1/common/payment_receipt.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_tzero_v1_common_payment_receipt: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* @generated from message tzero.v1.common.PaymentReceipt
|
|
9
|
+
*/
|
|
10
|
+
export type PaymentReceipt = Message<"tzero.v1.common.PaymentReceipt"> & {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from oneof tzero.v1.common.PaymentReceipt.details
|
|
13
|
+
*/
|
|
14
|
+
details: {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from field: tzero.v1.common.SepaReceipt sepa = 10;
|
|
17
|
+
*/
|
|
18
|
+
value: SepaReceipt;
|
|
19
|
+
case: "sepa";
|
|
20
|
+
} | {
|
|
21
|
+
/**
|
|
22
|
+
* @generated from field: tzero.v1.common.SwiftReceipt swift = 30;
|
|
23
|
+
*/
|
|
24
|
+
value: SwiftReceipt;
|
|
25
|
+
case: "swift";
|
|
26
|
+
} | {
|
|
27
|
+
/**
|
|
28
|
+
* @generated from field: tzero.v1.common.StablecoinReceipt stablecoin = 40;
|
|
29
|
+
*/
|
|
30
|
+
value: StablecoinReceipt;
|
|
31
|
+
case: "stablecoin";
|
|
32
|
+
} | {
|
|
33
|
+
case: undefined;
|
|
34
|
+
value?: undefined;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Describes the message tzero.v1.common.PaymentReceipt.
|
|
39
|
+
* Use `create(PaymentReceiptSchema)` to create a new message.
|
|
40
|
+
*/
|
|
41
|
+
export declare const PaymentReceiptSchema: GenMessage<PaymentReceipt>;
|
|
42
|
+
/**
|
|
43
|
+
* @generated from message tzero.v1.common.SepaReceipt
|
|
44
|
+
*/
|
|
45
|
+
export type SepaReceipt = Message<"tzero.v1.common.SepaReceipt"> & {};
|
|
46
|
+
/**
|
|
47
|
+
* Describes the message tzero.v1.common.SepaReceipt.
|
|
48
|
+
* Use `create(SepaReceiptSchema)` to create a new message.
|
|
49
|
+
*/
|
|
50
|
+
export declare const SepaReceiptSchema: GenMessage<SepaReceipt>;
|
|
51
|
+
/**
|
|
52
|
+
* @generated from message tzero.v1.common.SwiftReceipt
|
|
53
|
+
*/
|
|
54
|
+
export type SwiftReceipt = Message<"tzero.v1.common.SwiftReceipt"> & {};
|
|
55
|
+
/**
|
|
56
|
+
* Describes the message tzero.v1.common.SwiftReceipt.
|
|
57
|
+
* Use `create(SwiftReceiptSchema)` to create a new message.
|
|
58
|
+
*/
|
|
59
|
+
export declare const SwiftReceiptSchema: GenMessage<SwiftReceipt>;
|
|
60
|
+
/**
|
|
61
|
+
* @generated from message tzero.v1.common.StablecoinReceipt
|
|
62
|
+
*/
|
|
63
|
+
export type StablecoinReceipt = Message<"tzero.v1.common.StablecoinReceipt"> & {
|
|
64
|
+
/**
|
|
65
|
+
* Transaction hash should be a valid hex string (64 chars for most blockchains)
|
|
66
|
+
*
|
|
67
|
+
* on-chain hex encoded transaction hash
|
|
68
|
+
*
|
|
69
|
+
* @generated from field: string transaction_hash = 10;
|
|
70
|
+
*/
|
|
71
|
+
transactionHash: string;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Describes the message tzero.v1.common.StablecoinReceipt.
|
|
75
|
+
* Use `create(StablecoinReceiptSchema)` to create a new message.
|
|
76
|
+
*/
|
|
77
|
+
export declare const StablecoinReceiptSchema: GenMessage<StablecoinReceipt>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.6.2 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file tzero/v1/common/payment_receipt.proto (package tzero.v1.common, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb.js";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file tzero/v1/common/payment_receipt.proto.
|
|
8
|
+
*/
|
|
9
|
+
export const file_tzero_v1_common_payment_receipt = /*@__PURE__*/ fileDesc("CiV0emVyby92MS9jb21tb24vcGF5bWVudF9yZWNlaXB0LnByb3RvEg90emVyby52MS5jb21tb24iugEKDlBheW1lbnRSZWNlaXB0EiwKBHNlcGEYCiABKAsyHC50emVyby52MS5jb21tb24uU2VwYVJlY2VpcHRIABIuCgVzd2lmdBgeIAEoCzIdLnR6ZXJvLnYxLmNvbW1vbi5Td2lmdFJlY2VpcHRIABI4CgpzdGFibGVjb2luGCggASgLMiIudHplcm8udjEuY29tbW9uLlN0YWJsZWNvaW5SZWNlaXB0SABCEAoHZGV0YWlscxIFukgCCAEiDQoLU2VwYVJlY2VpcHQiDgoMU3dpZnRSZWNlaXB0IlAKEVN0YWJsZWNvaW5SZWNlaXB0EjsKEHRyYW5zYWN0aW9uX2hhc2gYCiABKAlCIbpIHnIcEEAYQjIWXigweCk/W2EtZkEtRjAtOV17NjR9JEKIAQoTY29tLnR6ZXJvLnYxLmNvbW1vbkITUGF5bWVudFJlY2VpcHRQcm90b1ABogIDVFZDqgIPVHplcm8uVjEuQ29tbW9uygIPVHplcm9cVjFcQ29tbW9u4gIbVHplcm9cVjFcQ29tbW9uXEdQQk1ldGFkYXRh6gIRVHplcm86OlYxOjpDb21tb25iBnByb3RvMw", [file_buf_validate_validate]);
|
|
10
|
+
/**
|
|
11
|
+
* Describes the message tzero.v1.common.PaymentReceipt.
|
|
12
|
+
* Use `create(PaymentReceiptSchema)` to create a new message.
|
|
13
|
+
*/
|
|
14
|
+
export const PaymentReceiptSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_common_payment_receipt, 0);
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message tzero.v1.common.SepaReceipt.
|
|
17
|
+
* Use `create(SepaReceiptSchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
export const SepaReceiptSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_common_payment_receipt, 1);
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message tzero.v1.common.SwiftReceipt.
|
|
22
|
+
* Use `create(SwiftReceiptSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const SwiftReceiptSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_common_payment_receipt, 2);
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message tzero.v1.common.StablecoinReceipt.
|
|
27
|
+
* Use `create(StablecoinReceiptSchema)` to create a new message.
|
|
28
|
+
*/
|
|
29
|
+
export const StablecoinReceiptSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_common_payment_receipt, 3);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
2
|
import type { Decimal } from "../common/common_pb.js";
|
|
3
|
-
import type { PaymentMethodType } from "../common/payment_method_pb.js";
|
|
3
|
+
import type { PaymentMethod, PaymentMethodType } from "../common/payment_method_pb.js";
|
|
4
|
+
import type { PaymentReceipt } from "../common/payment_receipt_pb.js";
|
|
4
5
|
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
5
6
|
import type { Message } from "@bufbuild/protobuf";
|
|
6
7
|
/**
|
|
@@ -41,34 +42,46 @@ export declare const UpdateQuoteRequestSchema: GenMessage<UpdateQuoteRequest>;
|
|
|
41
42
|
*/
|
|
42
43
|
export type UpdateQuoteRequest_Quote = Message<"tzero.v1.payment.UpdateQuoteRequest.Quote"> & {
|
|
43
44
|
/**
|
|
45
|
+
* ISO 4217 currency code (3 uppercase letters)
|
|
46
|
+
*
|
|
44
47
|
* BRL, EUR, GBP, etc. (ISO 4217 currency code)
|
|
45
48
|
*
|
|
46
49
|
* @generated from field: string currency = 10;
|
|
47
50
|
*/
|
|
48
51
|
currency: string;
|
|
49
52
|
/**
|
|
53
|
+
* Quote type must be specified
|
|
54
|
+
*
|
|
50
55
|
* type of the quote, e.g. real-time or guaranteed
|
|
51
56
|
*
|
|
52
57
|
* @generated from field: tzero.v1.payment.QuoteType quote_type = 20;
|
|
53
58
|
*/
|
|
54
59
|
quoteType: QuoteType;
|
|
55
60
|
/**
|
|
61
|
+
* Payment method must be specified
|
|
62
|
+
*
|
|
56
63
|
* @generated from field: tzero.v1.common.PaymentMethodType payment_method = 25;
|
|
57
64
|
*/
|
|
58
65
|
paymentMethod: PaymentMethodType;
|
|
59
66
|
/**
|
|
67
|
+
* At least one band is required
|
|
68
|
+
*
|
|
60
69
|
* list of bands for this quote
|
|
61
70
|
*
|
|
62
71
|
* @generated from field: repeated tzero.v1.payment.UpdateQuoteRequest.Quote.Band bands = 30;
|
|
63
72
|
*/
|
|
64
73
|
bands: UpdateQuoteRequest_Quote_Band[];
|
|
65
74
|
/**
|
|
75
|
+
* Expiration must be in the future
|
|
76
|
+
*
|
|
66
77
|
* expiration time of the quote
|
|
67
78
|
*
|
|
68
79
|
* @generated from field: google.protobuf.Timestamp expiration = 60;
|
|
69
80
|
*/
|
|
70
81
|
expiration?: Timestamp;
|
|
71
82
|
/**
|
|
83
|
+
* Timestamp is required
|
|
84
|
+
*
|
|
72
85
|
* timestamp quote was created
|
|
73
86
|
*
|
|
74
87
|
* @generated from field: google.protobuf.Timestamp timestamp = 70;
|
|
@@ -85,18 +98,24 @@ export declare const UpdateQuoteRequest_QuoteSchema: GenMessage<UpdateQuoteReque
|
|
|
85
98
|
*/
|
|
86
99
|
export type UpdateQuoteRequest_Quote_Band = Message<"tzero.v1.payment.UpdateQuoteRequest.Quote.Band"> & {
|
|
87
100
|
/**
|
|
101
|
+
* Client quote ID must be non-empty and reasonable length
|
|
102
|
+
*
|
|
88
103
|
* unique client generated id for this band
|
|
89
104
|
*
|
|
90
105
|
* @generated from field: string client_quote_id = 10;
|
|
91
106
|
*/
|
|
92
107
|
clientQuoteId: string;
|
|
93
108
|
/**
|
|
109
|
+
* Max amount is required
|
|
110
|
+
*
|
|
94
111
|
* max amount of USD this quote is applicable for. Please look into documentation for valid amounts.
|
|
95
112
|
*
|
|
96
113
|
* @generated from field: tzero.v1.common.Decimal max_amount = 40;
|
|
97
114
|
*/
|
|
98
115
|
maxAmount?: Decimal;
|
|
99
116
|
/**
|
|
117
|
+
* Rate is required and must be positive
|
|
118
|
+
*
|
|
100
119
|
* USD/currency rate
|
|
101
120
|
*
|
|
102
121
|
* @generated from field: tzero.v1.common.Decimal rate = 50;
|
|
@@ -122,23 +141,37 @@ export declare const UpdateQuoteResponseSchema: GenMessage<UpdateQuoteResponse>;
|
|
|
122
141
|
*/
|
|
123
142
|
export type GetPayoutQuoteRequest = Message<"tzero.v1.payment.GetPayoutQuoteRequest"> & {
|
|
124
143
|
/**
|
|
144
|
+
* ISO 4217 currency code (3 uppercase letters)
|
|
145
|
+
*
|
|
125
146
|
* ISO 4217 currency code, e.g. EUR, GBP, etc. in which the payout should be made
|
|
126
147
|
*
|
|
127
148
|
* @generated from field: string payout_currency = 10;
|
|
128
149
|
*/
|
|
129
150
|
payoutCurrency: string;
|
|
130
151
|
/**
|
|
152
|
+
* Amount is required
|
|
153
|
+
*
|
|
131
154
|
* amount in quote currency, only USD is supported
|
|
132
155
|
*
|
|
133
156
|
* @generated from field: tzero.v1.common.Decimal amount = 20;
|
|
134
157
|
*/
|
|
135
158
|
amount?: Decimal;
|
|
136
159
|
/**
|
|
160
|
+
* Quote type must be specified
|
|
161
|
+
*
|
|
137
162
|
* type of the quote, e.g. real-time or guaranteed
|
|
138
163
|
*
|
|
139
164
|
* @generated from field: tzero.v1.payment.QuoteType quote_type = 30;
|
|
140
165
|
*/
|
|
141
166
|
quoteType: QuoteType;
|
|
167
|
+
/**
|
|
168
|
+
* Payout method must be specified
|
|
169
|
+
*
|
|
170
|
+
* payment method to use for the payout, e.g. bank transfer, card, etc.
|
|
171
|
+
*
|
|
172
|
+
* @generated from field: tzero.v1.common.PaymentMethodType payout_method = 40;
|
|
173
|
+
*/
|
|
174
|
+
payoutMethod: PaymentMethodType;
|
|
142
175
|
};
|
|
143
176
|
/**
|
|
144
177
|
* Describes the message tzero.v1.payment.GetPayoutQuoteRequest.
|
|
@@ -150,18 +183,26 @@ export declare const GetPayoutQuoteRequestSchema: GenMessage<GetPayoutQuoteReque
|
|
|
150
183
|
*/
|
|
151
184
|
export type GetPayoutQuoteResponse = Message<"tzero.v1.payment.GetPayoutQuoteResponse"> & {
|
|
152
185
|
/**
|
|
186
|
+
* Rate is required
|
|
187
|
+
*
|
|
153
188
|
* rate in USD/currency, e.g. 1.2345 for 1 USD = 1.2345 EUR
|
|
154
189
|
*
|
|
155
190
|
* @generated from field: tzero.v1.common.Decimal rate = 10;
|
|
156
191
|
*/
|
|
157
192
|
rate?: Decimal;
|
|
158
193
|
/**
|
|
194
|
+
* Expiration must be in the future
|
|
195
|
+
*
|
|
159
196
|
* expiration time of the quote
|
|
160
197
|
*
|
|
161
198
|
* @generated from field: google.protobuf.Timestamp expiration = 20;
|
|
162
199
|
*/
|
|
163
200
|
expiration?: Timestamp;
|
|
164
201
|
/**
|
|
202
|
+
* Quote ID is required
|
|
203
|
+
*
|
|
204
|
+
*
|
|
205
|
+
*
|
|
165
206
|
* @generated from field: tzero.v1.payment.QuoteId quote_id = 30;
|
|
166
207
|
*/
|
|
167
208
|
quoteId?: QuoteId;
|
|
@@ -176,24 +217,40 @@ export declare const GetPayoutQuoteResponseSchema: GenMessage<GetPayoutQuoteResp
|
|
|
176
217
|
*/
|
|
177
218
|
export type CreatePaymentRequest = Message<"tzero.v1.payment.CreatePaymentRequest"> & {
|
|
178
219
|
/**
|
|
220
|
+
* Payment client ID must be non-empty and reasonable length
|
|
221
|
+
*
|
|
179
222
|
* unique client generated id for this payment
|
|
180
223
|
*
|
|
181
224
|
* @generated from field: string payment_client_id = 10;
|
|
182
225
|
*/
|
|
183
226
|
paymentClientId: string;
|
|
184
227
|
/**
|
|
228
|
+
* ISO 4217 currency code (3 uppercase letters)
|
|
229
|
+
*
|
|
185
230
|
* ISO 4217 currency code, e.g. EUR, GBP, etc. in which the payout should be made
|
|
186
231
|
*
|
|
187
232
|
* @generated from field: string payout_currency = 20;
|
|
188
233
|
*/
|
|
189
234
|
payoutCurrency: string;
|
|
190
235
|
/**
|
|
236
|
+
* Payout details are required
|
|
237
|
+
*
|
|
238
|
+
* payment method to use for the payout, e.g. bank transfer, card, etc.
|
|
239
|
+
*
|
|
240
|
+
* @generated from field: tzero.v1.common.PaymentMethod payout_details = 25;
|
|
241
|
+
*/
|
|
242
|
+
payoutDetails?: PaymentMethod;
|
|
243
|
+
/**
|
|
244
|
+
* Amount is required
|
|
245
|
+
*
|
|
191
246
|
* amount in the payin currency, by default USD (if the payIn currency is not specified)
|
|
192
247
|
*
|
|
193
248
|
* @generated from field: tzero.v1.common.Decimal amount = 30;
|
|
194
249
|
*/
|
|
195
250
|
amount?: Decimal;
|
|
196
251
|
/**
|
|
252
|
+
* If specified, must be valid ISO 4217 currency code
|
|
253
|
+
*
|
|
197
254
|
* if not specified, USD is used
|
|
198
255
|
*
|
|
199
256
|
* @generated from field: optional string payin_currency = 40;
|
|
@@ -214,7 +271,8 @@ export type CreatePaymentRequest = Message<"tzero.v1.payment.CreatePaymentReques
|
|
|
214
271
|
/**
|
|
215
272
|
* optional reference for the payment, up to 140 characters
|
|
216
273
|
*
|
|
217
|
-
* @generated from field: optional string reference = 70;
|
|
274
|
+
* @generated from field: optional string reference = 70 [deprecated = true];
|
|
275
|
+
* @deprecated
|
|
218
276
|
*/
|
|
219
277
|
reference?: string;
|
|
220
278
|
/**
|
|
@@ -286,14 +344,20 @@ export declare const CreatePaymentRequest_RecipientSchema: GenMessage<CreatePaym
|
|
|
286
344
|
*/
|
|
287
345
|
export type CreatePaymentRequest_PrivatePerson = Message<"tzero.v1.payment.CreatePaymentRequest.PrivatePerson"> & {
|
|
288
346
|
/**
|
|
347
|
+
* Private person client ID must be non-empty
|
|
348
|
+
*
|
|
289
349
|
* @generated from field: string private_person_client_id = 10;
|
|
290
350
|
*/
|
|
291
351
|
privatePersonClientId: string;
|
|
292
352
|
/**
|
|
353
|
+
* First name must be non-empty and reasonable length
|
|
354
|
+
*
|
|
293
355
|
* @generated from field: string first_name = 20;
|
|
294
356
|
*/
|
|
295
357
|
firstName: string;
|
|
296
358
|
/**
|
|
359
|
+
* Last name must be non-empty and reasonable length
|
|
360
|
+
*
|
|
297
361
|
* @generated from field: string last_name = 30;
|
|
298
362
|
*/
|
|
299
363
|
lastName: string;
|
|
@@ -308,12 +372,16 @@ export declare const CreatePaymentRequest_PrivatePersonSchema: GenMessage<Create
|
|
|
308
372
|
*/
|
|
309
373
|
export type QuoteId = Message<"tzero.v1.payment.QuoteId"> & {
|
|
310
374
|
/**
|
|
375
|
+
* Quote ID must be positive
|
|
376
|
+
*
|
|
311
377
|
* unique identifier of the quote within the specified provider
|
|
312
378
|
*
|
|
313
379
|
* @generated from field: int64 quote_id = 30;
|
|
314
380
|
*/
|
|
315
381
|
quoteId: bigint;
|
|
316
382
|
/**
|
|
383
|
+
* Provider ID must be positive
|
|
384
|
+
*
|
|
317
385
|
* provider id of the quote
|
|
318
386
|
*
|
|
319
387
|
* @generated from field: int32 provider_id = 40;
|
|
@@ -330,6 +398,8 @@ export declare const QuoteIdSchema: GenMessage<QuoteId>;
|
|
|
330
398
|
*/
|
|
331
399
|
export type CreatePaymentResponse = Message<"tzero.v1.payment.CreatePaymentResponse"> & {
|
|
332
400
|
/**
|
|
401
|
+
* Payment client ID must be non-empty
|
|
402
|
+
*
|
|
333
403
|
* client generated id supplied in the request
|
|
334
404
|
*
|
|
335
405
|
* @generated from field: string payment_client_id = 10;
|
|
@@ -373,6 +443,8 @@ export declare const CreatePaymentResponseSchema: GenMessage<CreatePaymentRespon
|
|
|
373
443
|
*/
|
|
374
444
|
export type CreatePaymentResponse_Success = Message<"tzero.v1.payment.CreatePaymentResponse.Success"> & {
|
|
375
445
|
/**
|
|
446
|
+
* Payment ID must be positive
|
|
447
|
+
*
|
|
376
448
|
* payment id assigned by the network
|
|
377
449
|
*
|
|
378
450
|
* @generated from field: int64 payment_id = 10;
|
|
@@ -407,77 +479,47 @@ export declare enum CreatePaymentResponse_Failure_Reason {
|
|
|
407
479
|
*/
|
|
408
480
|
export declare const CreatePaymentResponse_Failure_ReasonSchema: GenEnum<CreatePaymentResponse_Failure_Reason>;
|
|
409
481
|
/**
|
|
410
|
-
* @generated from message tzero.v1.payment.
|
|
482
|
+
* @generated from message tzero.v1.payment.ConfirmPayoutRequest
|
|
411
483
|
*/
|
|
412
|
-
export type
|
|
484
|
+
export type ConfirmPayoutRequest = Message<"tzero.v1.payment.ConfirmPayoutRequest"> & {
|
|
413
485
|
/**
|
|
486
|
+
* Payment ID must be positive
|
|
487
|
+
*
|
|
414
488
|
* payment id assigned by the network, this is the same payment id that was provided in the PayoutRequest
|
|
415
489
|
*
|
|
416
490
|
* @generated from field: int64 payment_id = 10;
|
|
417
491
|
*/
|
|
418
492
|
paymentId: bigint;
|
|
419
493
|
/**
|
|
494
|
+
* Payout ID must be positive
|
|
495
|
+
*
|
|
420
496
|
* payout id assigned by the payout provider, this is the same payout id that was provided in the PayoutRequest
|
|
421
497
|
*
|
|
422
498
|
* @generated from field: int64 payout_id = 20;
|
|
423
499
|
*/
|
|
424
500
|
payoutId: bigint;
|
|
425
501
|
/**
|
|
426
|
-
*
|
|
502
|
+
* *
|
|
503
|
+
* Payment receipt might contain metadata about payment recognizable by pay-in provider.
|
|
504
|
+
*
|
|
505
|
+
* @generated from field: tzero.v1.common.PaymentReceipt receipt = 30;
|
|
427
506
|
*/
|
|
428
|
-
|
|
429
|
-
/**
|
|
430
|
-
* success response with the details of the payout
|
|
431
|
-
*
|
|
432
|
-
* @generated from field: tzero.v1.payment.UpdatePayoutRequest.Success success = 30;
|
|
433
|
-
*/
|
|
434
|
-
value: UpdatePayoutRequest_Success;
|
|
435
|
-
case: "success";
|
|
436
|
-
} | {
|
|
437
|
-
/**
|
|
438
|
-
* failure response with the reason of the failure
|
|
439
|
-
*
|
|
440
|
-
* @generated from field: tzero.v1.payment.UpdatePayoutRequest.Failure failure = 40;
|
|
441
|
-
*/
|
|
442
|
-
value: UpdatePayoutRequest_Failure;
|
|
443
|
-
case: "failure";
|
|
444
|
-
} | {
|
|
445
|
-
case: undefined;
|
|
446
|
-
value?: undefined;
|
|
447
|
-
};
|
|
507
|
+
receipt?: PaymentReceipt;
|
|
448
508
|
};
|
|
449
509
|
/**
|
|
450
|
-
* Describes the message tzero.v1.payment.
|
|
451
|
-
* Use `create(
|
|
452
|
-
*/
|
|
453
|
-
export declare const UpdatePayoutRequestSchema: GenMessage<UpdatePayoutRequest>;
|
|
454
|
-
/**
|
|
455
|
-
* @generated from message tzero.v1.payment.UpdatePayoutRequest.Success
|
|
456
|
-
*/
|
|
457
|
-
export type UpdatePayoutRequest_Success = Message<"tzero.v1.payment.UpdatePayoutRequest.Success"> & {};
|
|
458
|
-
/**
|
|
459
|
-
* Describes the message tzero.v1.payment.UpdatePayoutRequest.Success.
|
|
460
|
-
* Use `create(UpdatePayoutRequest_SuccessSchema)` to create a new message.
|
|
461
|
-
*/
|
|
462
|
-
export declare const UpdatePayoutRequest_SuccessSchema: GenMessage<UpdatePayoutRequest_Success>;
|
|
463
|
-
/**
|
|
464
|
-
* @generated from message tzero.v1.payment.UpdatePayoutRequest.Failure
|
|
465
|
-
*/
|
|
466
|
-
export type UpdatePayoutRequest_Failure = Message<"tzero.v1.payment.UpdatePayoutRequest.Failure"> & {};
|
|
467
|
-
/**
|
|
468
|
-
* Describes the message tzero.v1.payment.UpdatePayoutRequest.Failure.
|
|
469
|
-
* Use `create(UpdatePayoutRequest_FailureSchema)` to create a new message.
|
|
510
|
+
* Describes the message tzero.v1.payment.ConfirmPayoutRequest.
|
|
511
|
+
* Use `create(ConfirmPayoutRequestSchema)` to create a new message.
|
|
470
512
|
*/
|
|
471
|
-
export declare const
|
|
513
|
+
export declare const ConfirmPayoutRequestSchema: GenMessage<ConfirmPayoutRequest>;
|
|
472
514
|
/**
|
|
473
|
-
* @generated from message tzero.v1.payment.
|
|
515
|
+
* @generated from message tzero.v1.payment.ConfirmPayoutResponse
|
|
474
516
|
*/
|
|
475
|
-
export type
|
|
517
|
+
export type ConfirmPayoutResponse = Message<"tzero.v1.payment.ConfirmPayoutResponse"> & {};
|
|
476
518
|
/**
|
|
477
|
-
* Describes the message tzero.v1.payment.
|
|
478
|
-
* Use `create(
|
|
519
|
+
* Describes the message tzero.v1.payment.ConfirmPayoutResponse.
|
|
520
|
+
* Use `create(ConfirmPayoutResponseSchema)` to create a new message.
|
|
479
521
|
*/
|
|
480
|
-
export declare const
|
|
522
|
+
export declare const ConfirmPayoutResponseSchema: GenMessage<ConfirmPayoutResponse>;
|
|
481
523
|
/**
|
|
482
524
|
* @generated from enum tzero.v1.payment.QuoteType
|
|
483
525
|
*/
|
|
@@ -510,7 +552,6 @@ export declare const NetworkService: GenService<{
|
|
|
510
552
|
* *
|
|
511
553
|
* Used by the provider to publish pay-in and pay-out quotes (FX rates) into the network.
|
|
512
554
|
* These quotes include tiered pricing bands and an expiration timestamp.
|
|
513
|
-
* This method is idempotent, meaning that multiple calls with the same parameters will have no additional effect.
|
|
514
555
|
*
|
|
515
556
|
* @generated from rpc tzero.v1.payment.NetworkService.UpdateQuote
|
|
516
557
|
*/
|
|
@@ -542,7 +583,6 @@ export declare const NetworkService: GenService<{
|
|
|
542
583
|
* If the quoteID is specified, it must be a valid quoteId that was previously returned by the GetPayoutQuote method.
|
|
543
584
|
* If the quoteId is not specified, the network will try to find a suitable quote for the payout currency and amount,
|
|
544
585
|
* same way as GetPayoutQuote rpc.
|
|
545
|
-
* This method is idempotent, meaning that multiple calls with the same parameters will have no additional effect.
|
|
546
586
|
*
|
|
547
587
|
* @generated from rpc tzero.v1.payment.NetworkService.CreatePayment
|
|
548
588
|
*/
|
|
@@ -553,15 +593,14 @@ export declare const NetworkService: GenService<{
|
|
|
553
593
|
};
|
|
554
594
|
/**
|
|
555
595
|
* *
|
|
556
|
-
* Inform the network that a payout has been completed
|
|
596
|
+
* Inform the network that a payout has been completed. This endpoint is called by the payout
|
|
557
597
|
* provider, specifying the payment ID and payout ID, which was provided when the payout request was made to this provider.
|
|
558
|
-
* This method is idempotent, meaning that multiple calls with the same parameters will have no additional effect.
|
|
559
598
|
*
|
|
560
|
-
* @generated from rpc tzero.v1.payment.NetworkService.
|
|
599
|
+
* @generated from rpc tzero.v1.payment.NetworkService.ConfirmPayout
|
|
561
600
|
*/
|
|
562
|
-
|
|
601
|
+
confirmPayout: {
|
|
563
602
|
methodKind: "unary";
|
|
564
|
-
input: typeof
|
|
565
|
-
output: typeof
|
|
603
|
+
input: typeof ConfirmPayoutRequestSchema;
|
|
604
|
+
output: typeof ConfirmPayoutResponseSchema;
|
|
566
605
|
};
|
|
567
606
|
}>;
|