@t-0/provider-sdk 1.0.24 → 1.0.25

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.
Files changed (44) hide show
  1. package/lib/client/client.js +2 -2
  2. package/lib/client/signer.d.ts +1 -1
  3. package/lib/common/gen/tzero/v1/common/common_pb.js +1 -1
  4. package/lib/common/gen/tzero/v1/common/payment_method_pb.d.ts +1 -1
  5. package/lib/common/gen/tzero/v1/common/payment_method_pb.js +2 -2
  6. package/lib/common/gen/tzero/v1/payment/network_pb.d.ts +2 -2
  7. package/lib/common/gen/tzero/v1/payment/network_pb.js +3 -3
  8. package/lib/common/gen/tzero/v1/payment/provider_pb.d.ts +2 -2
  9. package/lib/common/gen/tzero/v1/payment/provider_pb.js +3 -3
  10. package/lib/common/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +2 -2
  11. package/lib/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +3 -3
  12. package/lib/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +2 -2
  13. package/lib/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +3 -3
  14. package/lib/common/gen/tzero/v1/public/public_pb.js +1 -1
  15. package/lib/index.d.ts +9 -9
  16. package/lib/index.js +9 -9
  17. package/lib/payment_intent/provider/index.d.ts +1 -1
  18. package/lib/payment_intent/provider/index.js +1 -1
  19. package/lib/payment_intent/recipient/index.d.ts +1 -1
  20. package/lib/payment_intent/recipient/index.js +1 -1
  21. package/lib/service/node.d.ts +2 -1
  22. package/lib/service/service.d.ts +2 -3
  23. package/lib/service/service.js +1 -1
  24. package/package.json +4 -4
  25. package/lib/common/gen/common/common_pb.d.ts +0 -26
  26. package/lib/common/gen/common/common_pb.js +0 -13
  27. package/lib/common/gen/common/payment_method_pb.d.ts +0 -51
  28. package/lib/common/gen/common/payment_method_pb.js +0 -18
  29. package/lib/common/gen/network/network_pb.d.ts +0 -649
  30. package/lib/common/gen/network/network_pb.js +0 -163
  31. package/lib/common/gen/network/provider_pb.d.ts +0 -695
  32. package/lib/common/gen/network/provider_pb.js +0 -218
  33. package/lib/gen/common/common_pb.d.ts +0 -64
  34. package/lib/gen/common/common_pb.js +0 -53
  35. package/lib/gen/common/payment_method_pb.d.ts +0 -122
  36. package/lib/gen/common/payment_method_pb.js +0 -57
  37. package/lib/gen/network/network_pb.d.ts +0 -567
  38. package/lib/gen/network/network_pb.js +0 -144
  39. package/lib/gen/network/provider_pb.d.ts +0 -641
  40. package/lib/gen/network/provider_pb.js +0 -203
  41. package/lib/gen/payment_intent/provider/provider_pb.d.ts +0 -296
  42. package/lib/gen/payment_intent/provider/provider_pb.js +0 -84
  43. package/lib/gen/payment_intent/recipient/recipient_pb.d.ts +0 -214
  44. package/lib/gen/payment_intent/recipient/recipient_pb.js +0 -59
@@ -1,214 +0,0 @@
1
- import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
- import type { Decimal } from "../../common/common_pb";
3
- import type { PaymentMethod, PaymentMethodType } from "../../common/payment_method_pb";
4
- import type { Message } from "@bufbuild/protobuf";
5
- /**
6
- * Describes the file payment_intent/recipient/recipient.proto.
7
- */
8
- export declare const file_payment_intent_recipient_recipient: GenFile;
9
- /**
10
- * @generated from message tzero.v1.payment_intent.recipient.CreatePaymentIntentRequest
11
- */
12
- export type CreatePaymentIntentRequest = Message<"tzero.v1.payment_intent.recipient.CreatePaymentIntentRequest"> & {
13
- /**
14
- * *
15
- * Idempotency Key
16
- * payment reference to identify payment by client.
17
- *
18
- * idempotency key
19
- *
20
- * @generated from field: string payment_reference = 10;
21
- */
22
- paymentReference: string;
23
- /**
24
- * *
25
- * Pay-in currency
26
- *
27
- * pay-in currency
28
- *
29
- * @generated from field: string pay_in_currency = 20;
30
- */
31
- payInCurrency: string;
32
- /**
33
- * *
34
- * Amount denominated in the pay-in currency
35
- *
36
- * @generated from field: tzero.v1.common.Decimal pay_in_amount = 30;
37
- */
38
- payInAmount?: Decimal;
39
- /**
40
- * *
41
- * Payout currency
42
- *
43
- * pay-out currency
44
- *
45
- * @generated from field: string pay_out_currency = 40;
46
- */
47
- payOutCurrency: string;
48
- /**
49
- * *
50
- * Payout payment method
51
- *
52
- * @generated from field: tzero.v1.common.PaymentMethod pay_out_method = 50;
53
- */
54
- payOutMethod?: PaymentMethod;
55
- };
56
- /**
57
- * Describes the message tzero.v1.payment_intent.recipient.CreatePaymentIntentRequest.
58
- * Use `create(CreatePaymentIntentRequestSchema)` to create a new message.
59
- */
60
- export declare const CreatePaymentIntentRequestSchema: GenMessage<CreatePaymentIntentRequest>;
61
- /**
62
- * @generated from message tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse
63
- */
64
- export type CreatePaymentIntentResponse = Message<"tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse"> & {
65
- /**
66
- * @generated from field: uint64 payment_intent_id = 10;
67
- */
68
- paymentIntentId: bigint;
69
- /**
70
- * @generated from field: repeated tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.PaymentMethod pay_in_payment_methods = 20;
71
- */
72
- payInPaymentMethods: CreatePaymentIntentResponse_PaymentMethod[];
73
- };
74
- /**
75
- * Describes the message tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.
76
- * Use `create(CreatePaymentIntentResponseSchema)` to create a new message.
77
- */
78
- export declare const CreatePaymentIntentResponseSchema: GenMessage<CreatePaymentIntentResponse>;
79
- /**
80
- * @generated from message tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.PaymentMethod
81
- */
82
- export type CreatePaymentIntentResponse_PaymentMethod = Message<"tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.PaymentMethod"> & {
83
- /**
84
- * @generated from field: string payment_url = 10;
85
- */
86
- paymentUrl: string;
87
- /**
88
- * @generated from field: uint32 provider_id = 20;
89
- */
90
- providerId: number;
91
- /**
92
- * @generated from field: tzero.v1.common.PaymentMethodType payment_method = 30;
93
- */
94
- paymentMethod: PaymentMethodType;
95
- };
96
- /**
97
- * Describes the message tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.PaymentMethod.
98
- * Use `create(CreatePaymentIntentResponse_PaymentMethodSchema)` to create a new message.
99
- */
100
- export declare const CreatePaymentIntentResponse_PaymentMethodSchema: GenMessage<CreatePaymentIntentResponse_PaymentMethod>;
101
- /**
102
- * @generated from message tzero.v1.payment_intent.recipient.ConfirmPaymentRequest
103
- */
104
- export type ConfirmPaymentRequest = Message<"tzero.v1.payment_intent.recipient.ConfirmPaymentRequest"> & {
105
- /**
106
- * payment_intent_id from the CreatePaymentIntentRequest
107
- *
108
- * @generated from field: uint64 payment_intent_id = 10;
109
- */
110
- paymentIntentId: bigint;
111
- /**
112
- * @generated from field: string payment_reference = 20;
113
- */
114
- paymentReference: string;
115
- /**
116
- * @generated from field: tzero.v1.common.PaymentMethodType payment_method = 30;
117
- */
118
- paymentMethod: PaymentMethodType;
119
- };
120
- /**
121
- * Describes the message tzero.v1.payment_intent.recipient.ConfirmPaymentRequest.
122
- * Use `create(ConfirmPaymentRequestSchema)` to create a new message.
123
- */
124
- export declare const ConfirmPaymentRequestSchema: GenMessage<ConfirmPaymentRequest>;
125
- /**
126
- * @generated from message tzero.v1.payment_intent.recipient.ConfirmPaymentIntentResponse
127
- */
128
- export type ConfirmPaymentIntentResponse = Message<"tzero.v1.payment_intent.recipient.ConfirmPaymentIntentResponse"> & {};
129
- /**
130
- * Describes the message tzero.v1.payment_intent.recipient.ConfirmPaymentIntentResponse.
131
- * Use `create(ConfirmPaymentIntentResponseSchema)` to create a new message.
132
- */
133
- export declare const ConfirmPaymentIntentResponseSchema: GenMessage<ConfirmPaymentIntentResponse>;
134
- /**
135
- * @generated from message tzero.v1.payment_intent.recipient.RejectPaymentIntentRequest
136
- */
137
- export type RejectPaymentIntentRequest = Message<"tzero.v1.payment_intent.recipient.RejectPaymentIntentRequest"> & {
138
- /**
139
- * payment_intent_id from the CreatePaymentIntentRequest
140
- *
141
- * @generated from field: uint64 payment_intent_id = 10;
142
- */
143
- paymentIntentId: bigint;
144
- /**
145
- * payment_reference from the CreatePaymentIntentRequest
146
- *
147
- * @generated from field: string payment_reference = 20;
148
- */
149
- paymentReference: string;
150
- /**
151
- * @generated from field: string reason = 30;
152
- */
153
- reason: string;
154
- };
155
- /**
156
- * Describes the message tzero.v1.payment_intent.recipient.RejectPaymentIntentRequest.
157
- * Use `create(RejectPaymentIntentRequestSchema)` to create a new message.
158
- */
159
- export declare const RejectPaymentIntentRequestSchema: GenMessage<RejectPaymentIntentRequest>;
160
- /**
161
- * @generated from message tzero.v1.payment_intent.recipient.RejectPaymentIntentResponse
162
- */
163
- export type RejectPaymentIntentResponse = Message<"tzero.v1.payment_intent.recipient.RejectPaymentIntentResponse"> & {};
164
- /**
165
- * Describes the message tzero.v1.payment_intent.recipient.RejectPaymentIntentResponse.
166
- * Use `create(RejectPaymentIntentResponseSchema)` to create a new message.
167
- */
168
- export declare const RejectPaymentIntentResponseSchema: GenMessage<RejectPaymentIntentResponse>;
169
- /**
170
- * *
171
- * NetworkService is used by recipient to create a payment intents
172
- *
173
- * @generated from service tzero.v1.payment_intent.recipient.NetworkService
174
- */
175
- export declare const NetworkService: GenService<{
176
- /**
177
- * @generated from rpc tzero.v1.payment_intent.recipient.NetworkService.CreatePaymentIntent
178
- */
179
- createPaymentIntent: {
180
- methodKind: "unary";
181
- input: typeof CreatePaymentIntentRequestSchema;
182
- output: typeof CreatePaymentIntentResponseSchema;
183
- };
184
- }>;
185
- /**
186
- * *
187
- * RecipientService is implemented by recipient in order to get updates on payment intents
188
- *
189
- * @generated from service tzero.v1.payment_intent.recipient.RecipientService
190
- */
191
- export declare const RecipientService: GenService<{
192
- /**
193
- * *
194
- * notifies recipient about successful payment
195
- *
196
- * @generated from rpc tzero.v1.payment_intent.recipient.RecipientService.ConfirmPayment
197
- */
198
- confirmPayment: {
199
- methodKind: "unary";
200
- input: typeof ConfirmPaymentRequestSchema;
201
- output: typeof ConfirmPaymentIntentResponseSchema;
202
- };
203
- /**
204
- * *
205
- * notifies recipient about failed payment
206
- *
207
- * @generated from rpc tzero.v1.payment_intent.recipient.RecipientService.RejectPaymentIntent
208
- */
209
- rejectPaymentIntent: {
210
- methodKind: "unary";
211
- input: typeof RejectPaymentIntentRequestSchema;
212
- output: typeof RejectPaymentIntentResponseSchema;
213
- };
214
- }>;
@@ -1,59 +0,0 @@
1
- // @generated by protoc-gen-es v2.6.0 with parameter "target=ts"
2
- // @generated from file payment_intent/recipient/recipient.proto (package tzero.v1.payment_intent.recipient, syntax proto3)
3
- /* eslint-disable */
4
- import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
- import { file_common_common } from "../../common/common_pb";
6
- import { file_common_payment_method } from "../../common/payment_method_pb";
7
- /**
8
- * Describes the file payment_intent/recipient/recipient.proto.
9
- */
10
- export const file_payment_intent_recipient_recipient = /*@__PURE__*/ fileDesc("CihwYXltZW50X2ludGVudC9yZWNpcGllbnQvcmVjaXBpZW50LnByb3RvEiF0emVyby52MS5wYXltZW50X2ludGVudC5yZWNpcGllbnQi0wEKGkNyZWF0ZVBheW1lbnRJbnRlbnRSZXF1ZXN0EhkKEXBheW1lbnRfcmVmZXJlbmNlGAogASgJEhcKD3BheV9pbl9jdXJyZW5jeRgUIAEoCRIvCg1wYXlfaW5fYW1vdW50GB4gASgLMhgudHplcm8udjEuY29tbW9uLkRlY2ltYWwSGAoQcGF5X291dF9jdXJyZW5jeRgoIAEoCRI2Cg5wYXlfb3V0X21ldGhvZBgyIAEoCzIeLnR6ZXJvLnYxLmNvbW1vbi5QYXltZW50TWV0aG9kIp0CChtDcmVhdGVQYXltZW50SW50ZW50UmVzcG9uc2USGQoRcGF5bWVudF9pbnRlbnRfaWQYCiABKAQSbAoWcGF5X2luX3BheW1lbnRfbWV0aG9kcxgUIAMoCzJMLnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnJlY2lwaWVudC5DcmVhdGVQYXltZW50SW50ZW50UmVzcG9uc2UuUGF5bWVudE1ldGhvZBp1Cg1QYXltZW50TWV0aG9kEhMKC3BheW1lbnRfdXJsGAogASgJEhMKC3Byb3ZpZGVyX2lkGBQgASgNEjoKDnBheW1lbnRfbWV0aG9kGB4gASgOMiIudHplcm8udjEuY29tbW9uLlBheW1lbnRNZXRob2RUeXBlIokBChVDb25maXJtUGF5bWVudFJlcXVlc3QSGQoRcGF5bWVudF9pbnRlbnRfaWQYCiABKAQSGQoRcGF5bWVudF9yZWZlcmVuY2UYFCABKAkSOgoOcGF5bWVudF9tZXRob2QYHiABKA4yIi50emVyby52MS5jb21tb24uUGF5bWVudE1ldGhvZFR5cGUiHgocQ29uZmlybVBheW1lbnRJbnRlbnRSZXNwb25zZSJiChpSZWplY3RQYXltZW50SW50ZW50UmVxdWVzdBIZChFwYXltZW50X2ludGVudF9pZBgKIAEoBBIZChFwYXltZW50X3JlZmVyZW5jZRgUIAEoCRIOCgZyZWFzb24YHiABKAkiHQobUmVqZWN0UGF5bWVudEludGVudFJlc3BvbnNlMqwBCg5OZXR3b3JrU2VydmljZRKZAQoTQ3JlYXRlUGF5bWVudEludGVudBI9LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnJlY2lwaWVudC5DcmVhdGVQYXltZW50SW50ZW50UmVxdWVzdBo+LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnJlY2lwaWVudC5DcmVhdGVQYXltZW50SW50ZW50UmVzcG9uc2UiA5ACAjLBAgoQUmVjaXBpZW50U2VydmljZRKQAQoOQ29uZmlybVBheW1lbnQSOC50emVyby52MS5wYXltZW50X2ludGVudC5yZWNpcGllbnQuQ29uZmlybVBheW1lbnRSZXF1ZXN0Gj8udHplcm8udjEucGF5bWVudF9pbnRlbnQucmVjaXBpZW50LkNvbmZpcm1QYXltZW50SW50ZW50UmVzcG9uc2UiA5ACAhKZAQoTUmVqZWN0UGF5bWVudEludGVudBI9LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnJlY2lwaWVudC5SZWplY3RQYXltZW50SW50ZW50UmVxdWVzdBo+LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnJlY2lwaWVudC5SZWplY3RQYXltZW50SW50ZW50UmVzcG9uc2UiA5ACAkLbAQolY29tLnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnJlY2lwaWVudEIOUmVjaXBpZW50UHJvdG9QAaICBFRWUFKqAiBUemVyby5WMS5QYXltZW50SW50ZW50LlJlY2lwaWVudMoCIFR6ZXJvXFYxXFBheW1lbnRJbnRlbnRcUmVjaXBpZW504gIsVHplcm9cVjFcUGF5bWVudEludGVudFxSZWNpcGllbnRcR1BCTWV0YWRhdGHqAiNUemVybzo6VjE6OlBheW1lbnRJbnRlbnQ6OlJlY2lwaWVudGIGcHJvdG8z", [file_common_common, file_common_payment_method]);
11
- /**
12
- * Describes the message tzero.v1.payment_intent.recipient.CreatePaymentIntentRequest.
13
- * Use `create(CreatePaymentIntentRequestSchema)` to create a new message.
14
- */
15
- export const CreatePaymentIntentRequestSchema = /*@__PURE__*/ messageDesc(file_payment_intent_recipient_recipient, 0);
16
- /**
17
- * Describes the message tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.
18
- * Use `create(CreatePaymentIntentResponseSchema)` to create a new message.
19
- */
20
- export const CreatePaymentIntentResponseSchema = /*@__PURE__*/ messageDesc(file_payment_intent_recipient_recipient, 1);
21
- /**
22
- * Describes the message tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.PaymentMethod.
23
- * Use `create(CreatePaymentIntentResponse_PaymentMethodSchema)` to create a new message.
24
- */
25
- export const CreatePaymentIntentResponse_PaymentMethodSchema = /*@__PURE__*/ messageDesc(file_payment_intent_recipient_recipient, 1, 0);
26
- /**
27
- * Describes the message tzero.v1.payment_intent.recipient.ConfirmPaymentRequest.
28
- * Use `create(ConfirmPaymentRequestSchema)` to create a new message.
29
- */
30
- export const ConfirmPaymentRequestSchema = /*@__PURE__*/ messageDesc(file_payment_intent_recipient_recipient, 2);
31
- /**
32
- * Describes the message tzero.v1.payment_intent.recipient.ConfirmPaymentIntentResponse.
33
- * Use `create(ConfirmPaymentIntentResponseSchema)` to create a new message.
34
- */
35
- export const ConfirmPaymentIntentResponseSchema = /*@__PURE__*/ messageDesc(file_payment_intent_recipient_recipient, 3);
36
- /**
37
- * Describes the message tzero.v1.payment_intent.recipient.RejectPaymentIntentRequest.
38
- * Use `create(RejectPaymentIntentRequestSchema)` to create a new message.
39
- */
40
- export const RejectPaymentIntentRequestSchema = /*@__PURE__*/ messageDesc(file_payment_intent_recipient_recipient, 4);
41
- /**
42
- * Describes the message tzero.v1.payment_intent.recipient.RejectPaymentIntentResponse.
43
- * Use `create(RejectPaymentIntentResponseSchema)` to create a new message.
44
- */
45
- export const RejectPaymentIntentResponseSchema = /*@__PURE__*/ messageDesc(file_payment_intent_recipient_recipient, 5);
46
- /**
47
- * *
48
- * NetworkService is used by recipient to create a payment intents
49
- *
50
- * @generated from service tzero.v1.payment_intent.recipient.NetworkService
51
- */
52
- export const NetworkService = /*@__PURE__*/ serviceDesc(file_payment_intent_recipient_recipient, 0);
53
- /**
54
- * *
55
- * RecipientService is implemented by recipient in order to get updates on payment intents
56
- *
57
- * @generated from service tzero.v1.payment_intent.recipient.RecipientService
58
- */
59
- export const RecipientService = /*@__PURE__*/ serviceDesc(file_payment_intent_recipient_recipient, 1);