@marcohefti/request-network-api-client 0.5.12 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/domains/currencies/v1/index.js +288 -0
  3. package/dist/cjs/domains/currencies/v1/index.js.map +1 -0
  4. package/dist/cjs/domains/pay/index.js +251 -0
  5. package/dist/cjs/domains/pay/index.js.map +1 -0
  6. package/dist/cjs/domains/pay/v1/index.js +241 -0
  7. package/dist/cjs/domains/pay/v1/index.js.map +1 -0
  8. package/dist/cjs/domains/payer/v1/index.js +355 -0
  9. package/dist/cjs/domains/payer/v1/index.js.map +1 -0
  10. package/dist/cjs/domains/payer/v2/index.js +355 -0
  11. package/dist/cjs/domains/payer/v2/index.js.map +1 -0
  12. package/dist/cjs/domains/payments/index.js +274 -0
  13. package/dist/cjs/domains/payments/index.js.map +1 -0
  14. package/dist/cjs/domains/requests/index.js +38 -10
  15. package/dist/cjs/domains/requests/index.js.map +1 -1
  16. package/dist/cjs/domains/requests/v1/index.js +499 -0
  17. package/dist/cjs/domains/requests/v1/index.js.map +1 -0
  18. package/dist/cjs/domains/secure-payments/index.js +248 -0
  19. package/dist/cjs/domains/secure-payments/index.js.map +1 -0
  20. package/dist/cjs/index.js +234 -242
  21. package/dist/cjs/index.js.map +1 -1
  22. package/dist/esm/{index-DJGHELE1.d.mts → currencies.v1.facade-ROQlpyCp.d.mts} +2 -34
  23. package/dist/esm/domains/client-ids/index.d.mts +2 -2
  24. package/dist/esm/domains/currencies/index.d.mts +3 -2
  25. package/dist/esm/domains/currencies/v1/index.d.mts +3 -0
  26. package/dist/esm/domains/currencies/v1/index.js +286 -0
  27. package/dist/esm/domains/currencies/v1/index.js.map +1 -0
  28. package/dist/esm/domains/pay/index.d.mts +3 -0
  29. package/dist/esm/domains/pay/index.js +248 -0
  30. package/dist/esm/domains/pay/index.js.map +1 -0
  31. package/dist/esm/domains/pay/v1/index.d.mts +2 -0
  32. package/dist/esm/domains/pay/v1/index.js +239 -0
  33. package/dist/esm/domains/pay/v1/index.js.map +1 -0
  34. package/dist/esm/domains/payer/index.d.mts +4 -2
  35. package/dist/esm/domains/payer/v1/index.d.mts +2 -0
  36. package/dist/esm/domains/payer/v1/index.js +353 -0
  37. package/dist/esm/domains/payer/v1/index.js.map +1 -0
  38. package/dist/esm/domains/payer/v2/index.d.mts +2 -0
  39. package/dist/esm/domains/payer/v2/index.js +353 -0
  40. package/dist/esm/domains/payer/v2/index.js.map +1 -0
  41. package/dist/esm/domains/payments/index.d.mts +3 -0
  42. package/dist/esm/domains/payments/index.js +272 -0
  43. package/dist/esm/domains/payments/index.js.map +1 -0
  44. package/dist/esm/domains/payouts/index.d.mts +2 -2
  45. package/dist/esm/domains/requests/index.d.mts +3 -2
  46. package/dist/esm/domains/requests/index.js +38 -10
  47. package/dist/esm/domains/requests/index.js.map +1 -1
  48. package/dist/esm/domains/requests/v1/index.d.mts +3 -0
  49. package/dist/esm/domains/requests/v1/index.js +497 -0
  50. package/dist/esm/domains/requests/v1/index.js.map +1 -0
  51. package/dist/esm/domains/secure-payments/index.d.mts +2 -0
  52. package/dist/esm/domains/secure-payments/index.js +246 -0
  53. package/dist/esm/domains/secure-payments/index.js.map +1 -0
  54. package/dist/esm/index-4zmukpkJ.d.mts +12 -0
  55. package/dist/esm/index-BPikysYP.d.mts +10 -0
  56. package/dist/esm/index-BlEg0bI1.d.mts +25 -0
  57. package/dist/esm/{index-hYoC2ndH.d.mts → index-CBcZqEQp.d.mts} +1 -1
  58. package/dist/esm/index-CS9UrTd6.d.mts +10 -0
  59. package/dist/esm/index-CeMw0yOZ.d.mts +3393 -0
  60. package/dist/esm/index-DPVFRK3h.d.mts +36 -0
  61. package/dist/esm/{index-DbnV_D6L.d.mts → index-DPx06HBi.d.mts} +18 -58
  62. package/dist/esm/index-DZ0iw_Xz.d.mts +10 -0
  63. package/dist/esm/index-DpFThmL3.d.mts +57 -0
  64. package/dist/esm/{index-y1nxa55y.d.mts → index-DuMayMNI.d.mts} +1 -1
  65. package/dist/esm/index-Kx46FKbk.d.mts +38 -0
  66. package/dist/esm/index-srhKdWh7.d.mts +21 -0
  67. package/dist/esm/index.d.mts +31 -3520
  68. package/dist/esm/index.js +234 -242
  69. package/dist/esm/index.js.map +1 -1
  70. package/dist/esm/{openapi-types-CQ1z27_K.d.mts → openapi-types-JhYQOcil.d.mts} +252 -117
  71. package/dist/esm/pay.v1.facade-wxvuDX9t.d.mts +17 -0
  72. package/dist/esm/payer.v1.facade-Rcl1BBPl.d.mts +31 -0
  73. package/dist/esm/payer.v2.facade-BqcIOIBY.d.mts +31 -0
  74. package/dist/esm/request.helpers-DgzNANMt.d.mts +51 -0
  75. package/package.json +6 -6
  76. package/dist/cjs/domains/payee-destination/index.js +0 -276
  77. package/dist/cjs/domains/payee-destination/index.js.map +0 -1
  78. package/dist/esm/domains/payee-destination/index.d.mts +0 -2
  79. package/dist/esm/domains/payee-destination/index.js +0 -274
  80. package/dist/esm/domains/payee-destination/index.js.map +0 -1
  81. package/dist/esm/index-DJjp2Jbk.d.mts +0 -79
  82. package/dist/esm/index-DQIf9k5x.d.mts +0 -31
@@ -0,0 +1,36 @@
1
+ import { a as CurrencyList, b as ConversionRoutes, c as CurrenciesV1Api, C as CurrencyToken, d as CurrencyV1RequestOptions, G as GetConversionRoutesV1Query, L as ListCurrenciesV1Query, e as createCurrenciesV1Api } from './currencies.v1.facade-ROQlpyCp.mjs';
2
+ import { o as operations, a as RuntimeValidationOption, i as RequestOptions, b as HttpClient } from './openapi-types-JhYQOcil.mjs';
3
+
4
+ type ListCurrenciesQuery = operations["CurrenciesV2Controller_getNetworkTokens_v2"]["parameters"]["query"];
5
+ type GetConversionRoutesQuery = operations["CurrenciesV2Controller_getConversionRoutes_v2"]["parameters"]["query"];
6
+ interface CurrencyRequestOptions {
7
+ signal?: AbortSignal;
8
+ timeoutMs?: number;
9
+ validation?: RuntimeValidationOption;
10
+ meta?: RequestOptions["meta"];
11
+ }
12
+ interface CurrenciesApi {
13
+ list(query?: ListCurrenciesQuery, options?: CurrencyRequestOptions): Promise<CurrencyList>;
14
+ getConversionRoutes(currencyId: string, query?: GetConversionRoutesQuery, options?: CurrencyRequestOptions): Promise<ConversionRoutes>;
15
+ legacy: CurrenciesV1Api;
16
+ }
17
+ declare function createCurrenciesApi(http: HttpClient): CurrenciesApi;
18
+
19
+ declare const index_ConversionRoutes: typeof ConversionRoutes;
20
+ type index_CurrenciesApi = CurrenciesApi;
21
+ declare const index_CurrenciesV1Api: typeof CurrenciesV1Api;
22
+ declare const index_CurrencyList: typeof CurrencyList;
23
+ type index_CurrencyRequestOptions = CurrencyRequestOptions;
24
+ declare const index_CurrencyToken: typeof CurrencyToken;
25
+ declare const index_CurrencyV1RequestOptions: typeof CurrencyV1RequestOptions;
26
+ type index_GetConversionRoutesQuery = GetConversionRoutesQuery;
27
+ declare const index_GetConversionRoutesV1Query: typeof GetConversionRoutesV1Query;
28
+ type index_ListCurrenciesQuery = ListCurrenciesQuery;
29
+ declare const index_ListCurrenciesV1Query: typeof ListCurrenciesV1Query;
30
+ declare const index_createCurrenciesApi: typeof createCurrenciesApi;
31
+ declare const index_createCurrenciesV1Api: typeof createCurrenciesV1Api;
32
+ declare namespace index {
33
+ export { index_ConversionRoutes as ConversionRoutes, type index_CurrenciesApi as CurrenciesApi, index_CurrenciesV1Api as CurrenciesV1Api, index_CurrencyList as CurrencyList, type index_CurrencyRequestOptions as CurrencyRequestOptions, index_CurrencyToken as CurrencyToken, index_CurrencyV1RequestOptions as CurrencyV1RequestOptions, type index_GetConversionRoutesQuery as GetConversionRoutesQuery, index_GetConversionRoutesV1Query as GetConversionRoutesV1Query, type index_ListCurrenciesQuery as ListCurrenciesQuery, index_ListCurrenciesV1Query as ListCurrenciesV1Query, index_createCurrenciesApi as createCurrenciesApi, index_createCurrenciesV1Api as createCurrenciesV1Api };
34
+ }
35
+
36
+ export { type CurrenciesApi as C, type GetConversionRoutesQuery as G, type ListCurrenciesQuery as L, type CurrencyRequestOptions as a, createCurrenciesApi as c, index as i };
@@ -1,61 +1,17 @@
1
- import { o as operations, a as RuntimeValidationOption, c as RequestOptions, b as HttpClient } from './openapi-types-CQ1z27_K.mjs';
2
-
3
- interface RequestStatusAddress {
4
- street?: string;
5
- city?: string;
6
- state?: string;
7
- postalCode?: string;
8
- country?: string;
9
- }
10
- interface RequestStatusCustomerInfo {
11
- firstName?: string;
12
- lastName?: string;
13
- email?: string;
14
- address?: RequestStatusAddress;
15
- }
16
- type RequestStatusKind = "paid" | "pending" | "cancelled" | "overdue" | "unknown";
17
- interface RequestStatusBase {
18
- paymentReference?: string;
19
- requestId?: string;
20
- isListening?: boolean;
21
- txHash: string | null;
22
- status?: string;
23
- recurrence?: Record<string, unknown>;
24
- originalRequestId?: string;
25
- originalRequestPaymentReference?: string;
26
- isRecurrenceStopped?: boolean;
27
- isCryptoToFiatAvailable?: boolean;
28
- payments?: Array<Record<string, unknown>>;
29
- customerInfo?: RequestStatusCustomerInfo | null;
30
- reference?: string | null;
31
- hasBeenPaid?: boolean;
32
- }
33
- type RequestStatusResult = (RequestStatusBase & {
34
- kind: "paid";
35
- hasBeenPaid: true;
36
- }) | (RequestStatusBase & {
37
- kind: "pending";
38
- hasBeenPaid?: boolean;
39
- }) | (RequestStatusBase & {
40
- kind: "cancelled";
41
- hasBeenPaid?: boolean;
42
- }) | (RequestStatusBase & {
43
- kind: "overdue";
44
- hasBeenPaid?: boolean;
45
- }) | (RequestStatusBase & {
46
- kind: "unknown";
47
- hasBeenPaid?: boolean;
48
- });
49
- type LegacyRequestStatusResult = Extract<RequestStatusResult, {
50
- kind: "paid" | "pending";
51
- }>;
1
+ import { R as RequestStatusResult, a as RequestStatusAddress, b as RequestStatusCustomerInfo, c as RequestStatusKind } from './request.helpers-DgzNANMt.mjs';
2
+ import { a as RuntimeValidationOption, i as RequestOptions, o as operations, b as HttpClient } from './openapi-types-JhYQOcil.mjs';
52
3
 
53
4
  declare const OP_CREATE: "RequestControllerV2_createRequest_v2";
5
+ declare const OP_LIST: "RequestControllerV2_listRequests_v2";
54
6
  declare const OP_PAYMENT_ROUTES: "RequestControllerV2_getRequestPaymentRoutes_v2";
55
7
  declare const OP_PAYMENT_CALLDATA: "RequestControllerV2_getPaymentCalldata_v2";
8
+ declare const OP_UPDATE: "RequestControllerV2_updateRequest_v2";
56
9
  declare const OP_SEND_PAYMENT_INTENT: "RequestControllerV2_sendPaymentIntent_v2";
57
10
  type CreateRequestBody = operations[typeof OP_CREATE]["requestBody"]["content"]["application/json"];
58
11
  type CreateRequestResponse = operations[typeof OP_CREATE]["responses"][201]["content"]["application/json"];
12
+ type ListRequestsQuery = operations[typeof OP_LIST]["parameters"]["query"];
13
+ type ListRequestsResponse = operations[typeof OP_LIST]["responses"][200]["content"]["application/json"];
14
+ type UpdateRequestBody = operations[typeof OP_UPDATE]["requestBody"]["content"]["application/json"];
59
15
  type PaymentRoutesResponse = operations[typeof OP_PAYMENT_ROUTES]["responses"][200]["content"]["application/json"];
60
16
  type PaymentRoute = PaymentRoutesResponse["routes"][number];
61
17
  type PaymentRoutesQuery = NonNullable<operations[typeof OP_PAYMENT_ROUTES]["parameters"]["query"]>;
@@ -78,6 +34,7 @@ type GetPaymentRoutesOptions = RequestOperationOptions & {
78
34
  wallet: PaymentRoutesQuery["wallet"];
79
35
  } & Partial<Omit<PaymentRoutesQuery, "wallet">>;
80
36
  type GetPaymentCalldataOptions = RequestOperationOptions & Partial<PaymentCalldataQuery>;
37
+ type ListRequestsOptions = RequestOperationOptions & ListRequestsQuery;
81
38
  type PaymentCalldataResult = ({
82
39
  kind: "calldata";
83
40
  } & CalldataPayload) | ({
@@ -85,29 +42,32 @@ type PaymentCalldataResult = ({
85
42
  } & PaymentIntentPayload);
86
43
 
87
44
  interface RequestsApi {
45
+ list(options: ListRequestsOptions): Promise<ListRequestsResponse>;
88
46
  create(body: CreateRequestBody, options?: RequestOperationOptions): Promise<CreateRequestResponse>;
89
47
  getPaymentRoutes(requestId: string, options: GetPaymentRoutesOptions): Promise<PaymentRoutesResponse>;
90
48
  getPaymentCalldata(requestId: string, options?: GetPaymentCalldataOptions): Promise<PaymentCalldataResult>;
91
49
  getRequestStatus(requestId: string, options?: RequestOperationOptions): Promise<RequestStatusResult>;
92
- update(requestId: string, options?: RequestOperationOptions): Promise<void>;
50
+ update(requestId: string, body: UpdateRequestBody, options?: RequestOperationOptions): Promise<void>;
93
51
  sendPaymentIntent(paymentIntentId: string, body: SendPaymentIntentBody, options?: RequestOperationOptions): Promise<void>;
94
52
  }
95
53
  declare function createRequestsApi(http: HttpClient): RequestsApi;
96
54
 
97
55
  type index_GetPaymentCalldataOptions = GetPaymentCalldataOptions;
98
56
  type index_GetPaymentRoutesOptions = GetPaymentRoutesOptions;
57
+ type index_ListRequestsOptions = ListRequestsOptions;
58
+ type index_ListRequestsResponse = ListRequestsResponse;
99
59
  type index_PaymentCalldataResult = PaymentCalldataResult;
100
60
  type index_PaymentRoute = PaymentRoute;
101
61
  type index_PaymentRoutesResponse = PaymentRoutesResponse;
102
62
  type index_RequestOperationOptions = RequestOperationOptions;
103
- type index_RequestStatusAddress = RequestStatusAddress;
104
- type index_RequestStatusCustomerInfo = RequestStatusCustomerInfo;
105
- type index_RequestStatusKind = RequestStatusKind;
106
- type index_RequestStatusResult = RequestStatusResult;
63
+ declare const index_RequestStatusAddress: typeof RequestStatusAddress;
64
+ declare const index_RequestStatusCustomerInfo: typeof RequestStatusCustomerInfo;
65
+ declare const index_RequestStatusKind: typeof RequestStatusKind;
66
+ declare const index_RequestStatusResult: typeof RequestStatusResult;
107
67
  type index_RequestsApi = RequestsApi;
108
68
  declare const index_createRequestsApi: typeof createRequestsApi;
109
69
  declare namespace index {
110
- export { type index_GetPaymentCalldataOptions as GetPaymentCalldataOptions, type index_GetPaymentRoutesOptions as GetPaymentRoutesOptions, type index_PaymentCalldataResult as PaymentCalldataResult, type index_PaymentRoute as PaymentRoute, type index_PaymentRoutesResponse as PaymentRoutesResponse, type index_RequestOperationOptions as RequestOperationOptions, type index_RequestStatusAddress as RequestStatusAddress, type index_RequestStatusCustomerInfo as RequestStatusCustomerInfo, type index_RequestStatusKind as RequestStatusKind, type index_RequestStatusResult as RequestStatusResult, type index_RequestsApi as RequestsApi, index_createRequestsApi as createRequestsApi };
70
+ export { type index_GetPaymentCalldataOptions as GetPaymentCalldataOptions, type index_GetPaymentRoutesOptions as GetPaymentRoutesOptions, type index_ListRequestsOptions as ListRequestsOptions, type index_ListRequestsResponse as ListRequestsResponse, type index_PaymentCalldataResult as PaymentCalldataResult, type index_PaymentRoute as PaymentRoute, type index_PaymentRoutesResponse as PaymentRoutesResponse, type index_RequestOperationOptions as RequestOperationOptions, index_RequestStatusAddress as RequestStatusAddress, index_RequestStatusCustomerInfo as RequestStatusCustomerInfo, index_RequestStatusKind as RequestStatusKind, index_RequestStatusResult as RequestStatusResult, type index_RequestsApi as RequestsApi, index_createRequestsApi as createRequestsApi };
111
71
  }
112
72
 
113
- export { type GetPaymentCalldataOptions as G, type LegacyRequestStatusResult as L, type PaymentCalldataResult as P, type RequestsApi as R, type PaymentRoutesResponse as a, type PaymentRoute as b, type RequestStatusResult as c, createRequestsApi as d, type RequestOperationOptions as e, type GetPaymentRoutesOptions as f, type RequestStatusKind as g, type RequestStatusCustomerInfo as h, index as i, type RequestStatusAddress as j };
73
+ export { type GetPaymentCalldataOptions as G, type ListRequestsOptions as L, type PaymentCalldataResult as P, type RequestsApi as R, type PaymentRoutesResponse as a, type PaymentRoute as b, createRequestsApi as c, type RequestOperationOptions as d, type ListRequestsResponse as e, type GetPaymentRoutesOptions as f, index as i };
@@ -0,0 +1,10 @@
1
+ import { P as PayerV2Api, a as PayerV2OperationOptions, c as createPayerV2Api } from './payer.v2.facade-BqcIOIBY.mjs';
2
+
3
+ declare const index_PayerV2Api: typeof PayerV2Api;
4
+ declare const index_PayerV2OperationOptions: typeof PayerV2OperationOptions;
5
+ declare const index_createPayerV2Api: typeof createPayerV2Api;
6
+ declare namespace index {
7
+ export { index_PayerV2Api as PayerV2Api, index_PayerV2OperationOptions as PayerV2OperationOptions, index_createPayerV2Api as createPayerV2Api };
8
+ }
9
+
10
+ export { index as i };
@@ -0,0 +1,57 @@
1
+ import { b as HttpClient, o as operations, a as RuntimeValidationOption, i as RequestOptions } from './openapi-types-JhYQOcil.mjs';
2
+ import { L as LegacyRequestStatusResult } from './request.helpers-DgzNANMt.mjs';
3
+
4
+ declare const OP_CREATE: "RequestControllerV1_createRequest_v1";
5
+ declare const OP_PAYMENT_ROUTES: "RequestControllerV1_getRequestPaymentRoutes_v1";
6
+ declare const OP_PAYMENT_CALLDATA: "RequestControllerV1_getPaymentCalldata_v1";
7
+ declare const OP_SEND_PAYMENT_INTENT: "RequestControllerV1_sendPaymentIntent_v1";
8
+ type CreateRequestBody = operations[typeof OP_CREATE]["requestBody"]["content"]["application/json"];
9
+ type CreateRequestResponse = operations[typeof OP_CREATE]["responses"][201]["content"]["application/json"];
10
+ type PaymentRoutesResponse = operations[typeof OP_PAYMENT_ROUTES]["responses"][200]["content"]["application/json"];
11
+ type PaymentRoutesQuery = operations[typeof OP_PAYMENT_ROUTES]["parameters"]["query"];
12
+ type PaymentCalldataQuery = NonNullable<operations[typeof OP_PAYMENT_CALLDATA]["parameters"]["query"]>;
13
+ type RawPaymentCalldata = operations[typeof OP_PAYMENT_CALLDATA]["responses"][200]["content"]["application/json"];
14
+ type PaymentIntentPayload = Extract<RawPaymentCalldata, {
15
+ paymentIntentId: string;
16
+ }>;
17
+ type CalldataPayload = Extract<RawPaymentCalldata, {
18
+ transactions: unknown;
19
+ }>;
20
+ interface RequestV1OperationOptions {
21
+ signal?: AbortSignal;
22
+ timeoutMs?: number;
23
+ validation?: RuntimeValidationOption;
24
+ meta?: RequestOptions["meta"];
25
+ }
26
+ type GetPaymentRoutesOptions = RequestV1OperationOptions & {
27
+ wallet: PaymentRoutesQuery["wallet"];
28
+ } & Partial<Omit<PaymentRoutesQuery, "wallet">>;
29
+ type GetPaymentCalldataOptions = RequestV1OperationOptions & Partial<PaymentCalldataQuery>;
30
+ type RequestStatusResult = LegacyRequestStatusResult;
31
+ type SendPaymentIntentBody = operations[typeof OP_SEND_PAYMENT_INTENT]["requestBody"]["content"]["application/json"];
32
+ interface RequestsV1Api {
33
+ create(body: CreateRequestBody, options?: RequestV1OperationOptions): Promise<CreateRequestResponse>;
34
+ getPaymentRoutes(paymentReference: string, options: GetPaymentRoutesOptions): Promise<PaymentRoutesResponse>;
35
+ getPaymentCalldata(paymentReference: string, options?: GetPaymentCalldataOptions): Promise<({
36
+ kind: "calldata";
37
+ } & CalldataPayload) | ({
38
+ kind: "paymentIntent";
39
+ } & PaymentIntentPayload)>;
40
+ getRequestStatus(paymentReference: string, options?: RequestV1OperationOptions): Promise<RequestStatusResult>;
41
+ sendPaymentIntent(paymentIntentId: string, body: SendPaymentIntentBody, options?: RequestV1OperationOptions): Promise<void>;
42
+ stopRecurrence(paymentReference: string, options?: RequestV1OperationOptions): Promise<void>;
43
+ }
44
+ declare function createRequestsV1Api(http: HttpClient): RequestsV1Api;
45
+
46
+ type index_GetPaymentCalldataOptions = GetPaymentCalldataOptions;
47
+ type index_GetPaymentRoutesOptions = GetPaymentRoutesOptions;
48
+ type index_RequestStatusResult = RequestStatusResult;
49
+ type index_RequestV1OperationOptions = RequestV1OperationOptions;
50
+ type index_RequestsV1Api = RequestsV1Api;
51
+ type index_SendPaymentIntentBody = SendPaymentIntentBody;
52
+ declare const index_createRequestsV1Api: typeof createRequestsV1Api;
53
+ declare namespace index {
54
+ export { type index_GetPaymentCalldataOptions as GetPaymentCalldataOptions, type index_GetPaymentRoutesOptions as GetPaymentRoutesOptions, type index_RequestStatusResult as RequestStatusResult, type index_RequestV1OperationOptions as RequestV1OperationOptions, type index_RequestsV1Api as RequestsV1Api, type index_SendPaymentIntentBody as SendPaymentIntentBody, index_createRequestsV1Api as createRequestsV1Api };
55
+ }
56
+
57
+ export { type GetPaymentRoutesOptions as G, type RequestsV1Api as R, type SendPaymentIntentBody as S, type RequestV1OperationOptions as a, type GetPaymentCalldataOptions as b, createRequestsV1Api as c, type RequestStatusResult as d, index as i };
@@ -1,4 +1,4 @@
1
- import { o as operations, a as RuntimeValidationOption, c as RequestOptions, b as HttpClient } from './openapi-types-CQ1z27_K.mjs';
1
+ import { o as operations, a as RuntimeValidationOption, i as RequestOptions, b as HttpClient } from './openapi-types-JhYQOcil.mjs';
2
2
 
3
3
  declare const OP_CREATE: "PayoutV2Controller_payRequest_v2";
4
4
  declare const OP_CREATE_BATCH: "PayoutV2Controller_payBatchRequest_v2";
@@ -0,0 +1,38 @@
1
+ import { o as operations, a as RuntimeValidationOption, i as RequestOptions, b as HttpClient } from './openapi-types-JhYQOcil.mjs';
2
+
3
+ declare const OP_FIND_BY_REQUEST_ID: "SecurePaymentController_findSecurePayment_v2";
4
+ declare const OP_CREATE: "SecurePaymentController_createSecurePayment_v2";
5
+ declare const OP_GET_BY_TOKEN: "SecurePaymentController_getSecurePaymentByToken_v2";
6
+ type CreateSecurePaymentBody = operations[typeof OP_CREATE]["requestBody"]["content"]["application/json"];
7
+ type CreateSecurePaymentResponse = operations[typeof OP_CREATE]["responses"][201]["content"]["application/json"];
8
+ type FindSecurePaymentQuery = operations[typeof OP_FIND_BY_REQUEST_ID]["parameters"]["query"];
9
+ type FindSecurePaymentResponse = operations[typeof OP_FIND_BY_REQUEST_ID]["responses"][200]["content"]["application/json"];
10
+ type GetSecurePaymentByTokenQuery = NonNullable<operations[typeof OP_GET_BY_TOKEN]["parameters"]["query"]>;
11
+ type GetSecurePaymentByTokenResponse = operations[typeof OP_GET_BY_TOKEN]["responses"][200]["content"]["application/json"];
12
+ interface SecurePaymentsOperationOptions {
13
+ signal?: AbortSignal;
14
+ timeoutMs?: number;
15
+ validation?: RuntimeValidationOption;
16
+ meta?: RequestOptions["meta"];
17
+ }
18
+ type GetSecurePaymentByTokenOptions = SecurePaymentsOperationOptions & Partial<GetSecurePaymentByTokenQuery>;
19
+ interface SecurePaymentsApi {
20
+ create(body: CreateSecurePaymentBody, options?: SecurePaymentsOperationOptions): Promise<CreateSecurePaymentResponse>;
21
+ findByRequestId(requestId: FindSecurePaymentQuery["requestId"], options?: SecurePaymentsOperationOptions): Promise<FindSecurePaymentResponse>;
22
+ getByToken(token: string, options?: GetSecurePaymentByTokenOptions): Promise<GetSecurePaymentByTokenResponse>;
23
+ }
24
+ declare function createSecurePaymentsApi(http: HttpClient): SecurePaymentsApi;
25
+
26
+ type index_CreateSecurePaymentBody = CreateSecurePaymentBody;
27
+ type index_CreateSecurePaymentResponse = CreateSecurePaymentResponse;
28
+ type index_FindSecurePaymentResponse = FindSecurePaymentResponse;
29
+ type index_GetSecurePaymentByTokenOptions = GetSecurePaymentByTokenOptions;
30
+ type index_GetSecurePaymentByTokenResponse = GetSecurePaymentByTokenResponse;
31
+ type index_SecurePaymentsApi = SecurePaymentsApi;
32
+ type index_SecurePaymentsOperationOptions = SecurePaymentsOperationOptions;
33
+ declare const index_createSecurePaymentsApi: typeof createSecurePaymentsApi;
34
+ declare namespace index {
35
+ export { type index_CreateSecurePaymentBody as CreateSecurePaymentBody, type index_CreateSecurePaymentResponse as CreateSecurePaymentResponse, type index_FindSecurePaymentResponse as FindSecurePaymentResponse, type index_GetSecurePaymentByTokenOptions as GetSecurePaymentByTokenOptions, type index_GetSecurePaymentByTokenResponse as GetSecurePaymentByTokenResponse, type index_SecurePaymentsApi as SecurePaymentsApi, type index_SecurePaymentsOperationOptions as SecurePaymentsOperationOptions, index_createSecurePaymentsApi as createSecurePaymentsApi };
36
+ }
37
+
38
+ export { type CreateSecurePaymentBody as C, type FindSecurePaymentResponse as F, type GetSecurePaymentByTokenOptions as G, type SecurePaymentsApi as S, type SecurePaymentsOperationOptions as a, type CreateSecurePaymentResponse as b, createSecurePaymentsApi as c, type GetSecurePaymentByTokenResponse as d, index as i };
@@ -0,0 +1,21 @@
1
+ import { P as PayV1Api, a as PayV1OperationOptions, c as createPayV1Api } from './pay.v1.facade-wxvuDX9t.mjs';
2
+ import { b as HttpClient } from './openapi-types-JhYQOcil.mjs';
3
+
4
+ type PayOperationOptions = PayV1OperationOptions;
5
+ interface PayApi extends PayV1Api {
6
+ legacy: PayV1Api;
7
+ }
8
+
9
+ declare function createPayApi(http: HttpClient): PayApi;
10
+
11
+ type index_PayApi = PayApi;
12
+ type index_PayOperationOptions = PayOperationOptions;
13
+ declare const index_PayV1Api: typeof PayV1Api;
14
+ declare const index_PayV1OperationOptions: typeof PayV1OperationOptions;
15
+ declare const index_createPayApi: typeof createPayApi;
16
+ declare const index_createPayV1Api: typeof createPayV1Api;
17
+ declare namespace index {
18
+ export { type index_PayApi as PayApi, type index_PayOperationOptions as PayOperationOptions, index_PayV1Api as PayV1Api, index_PayV1OperationOptions as PayV1OperationOptions, index_createPayApi as createPayApi, index_createPayV1Api as createPayV1Api };
19
+ }
20
+
21
+ export { type PayApi as P, type PayOperationOptions as a, createPayApi as c, index as i };