mollie-api-typescript 1.6.8 → 1.6.10
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/README.md +9 -13
- package/dist/commonjs/funcs/balanceTransfersCreate.d.ts +1 -1
- package/dist/commonjs/funcs/balanceTransfersCreate.js +1 -1
- package/dist/commonjs/funcs/balanceTransfersGet.d.ts +1 -1
- package/dist/commonjs/funcs/balanceTransfersGet.js +1 -1
- package/dist/commonjs/funcs/balanceTransfersList.d.ts +1 -1
- package/dist/commonjs/funcs/balanceTransfersList.js +1 -1
- package/dist/commonjs/funcs/balancesGet.d.ts +1 -1
- package/dist/commonjs/funcs/balancesGet.js +1 -1
- package/dist/commonjs/funcs/balancesGetPrimary.d.ts +1 -1
- package/dist/commonjs/funcs/balancesGetPrimary.js +1 -1
- package/dist/commonjs/funcs/balancesGetReport.d.ts +1 -1
- package/dist/commonjs/funcs/balancesGetReport.js +1 -1
- package/dist/commonjs/funcs/balancesList.d.ts +1 -1
- package/dist/commonjs/funcs/balancesList.js +1 -1
- package/dist/commonjs/funcs/balancesListTransactions.d.ts +1 -1
- package/dist/commonjs/funcs/balancesListTransactions.js +1 -1
- package/dist/commonjs/funcs/capabilitiesList.d.ts +1 -1
- package/dist/commonjs/funcs/capabilitiesList.js +1 -1
- package/dist/commonjs/funcs/clientLinksCreate.d.ts +1 -1
- package/dist/commonjs/funcs/clientLinksCreate.js +1 -1
- package/dist/commonjs/funcs/clientsGet.d.ts +1 -1
- package/dist/commonjs/funcs/clientsGet.js +1 -1
- package/dist/commonjs/funcs/clientsList.d.ts +1 -1
- package/dist/commonjs/funcs/clientsList.js +1 -1
- package/dist/commonjs/funcs/invoicesGet.d.ts +1 -1
- package/dist/commonjs/funcs/invoicesGet.js +1 -1
- package/dist/commonjs/funcs/invoicesList.d.ts +1 -1
- package/dist/commonjs/funcs/invoicesList.js +1 -1
- package/dist/commonjs/funcs/onboardingGet.d.ts +1 -1
- package/dist/commonjs/funcs/onboardingGet.js +1 -1
- package/dist/commonjs/funcs/onboardingSubmit.d.ts +1 -1
- package/dist/commonjs/funcs/onboardingSubmit.js +1 -1
- package/dist/commonjs/funcs/organizationsGet.d.ts +1 -1
- package/dist/commonjs/funcs/organizationsGet.js +1 -1
- package/dist/commonjs/funcs/organizationsGetCurrent.d.ts +1 -1
- package/dist/commonjs/funcs/organizationsGetCurrent.js +1 -1
- package/dist/commonjs/funcs/organizationsGetPartner.d.ts +1 -1
- package/dist/commonjs/funcs/organizationsGetPartner.js +1 -1
- package/dist/commonjs/funcs/permissionsGet.d.ts +1 -1
- package/dist/commonjs/funcs/permissionsGet.js +1 -1
- package/dist/commonjs/funcs/permissionsList.d.ts +1 -1
- package/dist/commonjs/funcs/permissionsList.js +1 -1
- package/dist/commonjs/funcs/profilesCreate.d.ts +1 -1
- package/dist/commonjs/funcs/profilesCreate.js +1 -1
- package/dist/commonjs/funcs/profilesDelete.d.ts +1 -1
- package/dist/commonjs/funcs/profilesDelete.js +1 -1
- package/dist/commonjs/funcs/profilesGet.d.ts +1 -1
- package/dist/commonjs/funcs/profilesGet.js +1 -1
- package/dist/commonjs/funcs/profilesList.d.ts +1 -1
- package/dist/commonjs/funcs/profilesList.js +1 -1
- package/dist/commonjs/funcs/profilesUpdate.d.ts +1 -1
- package/dist/commonjs/funcs/profilesUpdate.js +1 -1
- package/dist/commonjs/funcs/settlementsGet.d.ts +1 -1
- package/dist/commonjs/funcs/settlementsGet.js +1 -1
- package/dist/commonjs/funcs/settlementsGetNext.d.ts +1 -1
- package/dist/commonjs/funcs/settlementsGetNext.js +1 -1
- package/dist/commonjs/funcs/settlementsGetOpen.d.ts +1 -1
- package/dist/commonjs/funcs/settlementsGetOpen.js +1 -1
- package/dist/commonjs/funcs/settlementsList.d.ts +1 -1
- package/dist/commonjs/funcs/settlementsList.js +1 -1
- package/dist/commonjs/funcs/settlementsListCaptures.d.ts +1 -1
- package/dist/commonjs/funcs/settlementsListCaptures.js +1 -1
- package/dist/commonjs/funcs/settlementsListChargebacks.d.ts +1 -1
- package/dist/commonjs/funcs/settlementsListChargebacks.js +1 -1
- package/dist/commonjs/funcs/settlementsListPayments.d.ts +1 -1
- package/dist/commonjs/funcs/settlementsListPayments.js +1 -1
- package/dist/commonjs/funcs/settlementsListRefunds.d.ts +1 -1
- package/dist/commonjs/funcs/settlementsListRefunds.js +1 -1
- package/dist/commonjs/funcs/transfersCreate.d.ts +1 -1
- package/dist/commonjs/funcs/transfersCreate.js +1 -1
- package/dist/commonjs/funcs/transfersGet.d.ts +1 -1
- package/dist/commonjs/funcs/transfersGet.js +1 -1
- package/dist/commonjs/funcs/verifyPayeeCreate.d.ts +1 -1
- package/dist/commonjs/funcs/verifyPayeeCreate.js +1 -1
- package/dist/commonjs/funcs/webhookEventsGet.d.ts +1 -1
- package/dist/commonjs/funcs/webhookEventsGet.js +1 -1
- package/dist/commonjs/funcs/webhooksCreate.d.ts +1 -1
- package/dist/commonjs/funcs/webhooksCreate.js +1 -1
- package/dist/commonjs/funcs/webhooksDelete.d.ts +1 -1
- package/dist/commonjs/funcs/webhooksDelete.js +1 -1
- package/dist/commonjs/funcs/webhooksGet.d.ts +1 -1
- package/dist/commonjs/funcs/webhooksGet.js +1 -1
- package/dist/commonjs/funcs/webhooksList.d.ts +1 -1
- package/dist/commonjs/funcs/webhooksList.js +1 -1
- package/dist/commonjs/funcs/webhooksTest.d.ts +1 -1
- package/dist/commonjs/funcs/webhooksTest.js +1 -1
- package/dist/commonjs/funcs/webhooksUpdate.d.ts +1 -1
- package/dist/commonjs/funcs/webhooksUpdate.js +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/env.d.ts +1 -1
- package/dist/commonjs/lib/env.d.ts.map +1 -1
- package/dist/commonjs/lib/env.js +1 -1
- package/dist/commonjs/lib/env.js.map +1 -1
- package/dist/commonjs/lib/security.js +2 -2
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/models/entitypaymentroute.d.ts +0 -27
- package/dist/commonjs/models/entitypaymentroute.d.ts.map +1 -1
- package/dist/commonjs/models/entitypaymentroute.js +1 -17
- package/dist/commonjs/models/entitypaymentroute.js.map +1 -1
- package/dist/commonjs/models/security.d.ts +2 -2
- package/dist/commonjs/models/security.d.ts.map +1 -1
- package/dist/commonjs/models/security.js +1 -1
- package/dist/commonjs/models/security.js.map +1 -1
- package/dist/commonjs/models/url.d.ts +0 -8
- package/dist/commonjs/models/url.d.ts.map +1 -1
- package/dist/commonjs/models/url.js +1 -11
- package/dist/commonjs/models/url.js.map +1 -1
- package/dist/esm/funcs/balanceTransfersCreate.d.ts +1 -1
- package/dist/esm/funcs/balanceTransfersCreate.js +1 -1
- package/dist/esm/funcs/balanceTransfersGet.d.ts +1 -1
- package/dist/esm/funcs/balanceTransfersGet.js +1 -1
- package/dist/esm/funcs/balanceTransfersList.d.ts +1 -1
- package/dist/esm/funcs/balanceTransfersList.js +1 -1
- package/dist/esm/funcs/balancesGet.d.ts +1 -1
- package/dist/esm/funcs/balancesGet.js +1 -1
- package/dist/esm/funcs/balancesGetPrimary.d.ts +1 -1
- package/dist/esm/funcs/balancesGetPrimary.js +1 -1
- package/dist/esm/funcs/balancesGetReport.d.ts +1 -1
- package/dist/esm/funcs/balancesGetReport.js +1 -1
- package/dist/esm/funcs/balancesList.d.ts +1 -1
- package/dist/esm/funcs/balancesList.js +1 -1
- package/dist/esm/funcs/balancesListTransactions.d.ts +1 -1
- package/dist/esm/funcs/balancesListTransactions.js +1 -1
- package/dist/esm/funcs/capabilitiesList.d.ts +1 -1
- package/dist/esm/funcs/capabilitiesList.js +1 -1
- package/dist/esm/funcs/clientLinksCreate.d.ts +1 -1
- package/dist/esm/funcs/clientLinksCreate.js +1 -1
- package/dist/esm/funcs/clientsGet.d.ts +1 -1
- package/dist/esm/funcs/clientsGet.js +1 -1
- package/dist/esm/funcs/clientsList.d.ts +1 -1
- package/dist/esm/funcs/clientsList.js +1 -1
- package/dist/esm/funcs/invoicesGet.d.ts +1 -1
- package/dist/esm/funcs/invoicesGet.js +1 -1
- package/dist/esm/funcs/invoicesList.d.ts +1 -1
- package/dist/esm/funcs/invoicesList.js +1 -1
- package/dist/esm/funcs/onboardingGet.d.ts +1 -1
- package/dist/esm/funcs/onboardingGet.js +1 -1
- package/dist/esm/funcs/onboardingSubmit.d.ts +1 -1
- package/dist/esm/funcs/onboardingSubmit.js +1 -1
- package/dist/esm/funcs/organizationsGet.d.ts +1 -1
- package/dist/esm/funcs/organizationsGet.js +1 -1
- package/dist/esm/funcs/organizationsGetCurrent.d.ts +1 -1
- package/dist/esm/funcs/organizationsGetCurrent.js +1 -1
- package/dist/esm/funcs/organizationsGetPartner.d.ts +1 -1
- package/dist/esm/funcs/organizationsGetPartner.js +1 -1
- package/dist/esm/funcs/permissionsGet.d.ts +1 -1
- package/dist/esm/funcs/permissionsGet.js +1 -1
- package/dist/esm/funcs/permissionsList.d.ts +1 -1
- package/dist/esm/funcs/permissionsList.js +1 -1
- package/dist/esm/funcs/profilesCreate.d.ts +1 -1
- package/dist/esm/funcs/profilesCreate.js +1 -1
- package/dist/esm/funcs/profilesDelete.d.ts +1 -1
- package/dist/esm/funcs/profilesDelete.js +1 -1
- package/dist/esm/funcs/profilesGet.d.ts +1 -1
- package/dist/esm/funcs/profilesGet.js +1 -1
- package/dist/esm/funcs/profilesList.d.ts +1 -1
- package/dist/esm/funcs/profilesList.js +1 -1
- package/dist/esm/funcs/profilesUpdate.d.ts +1 -1
- package/dist/esm/funcs/profilesUpdate.js +1 -1
- package/dist/esm/funcs/settlementsGet.d.ts +1 -1
- package/dist/esm/funcs/settlementsGet.js +1 -1
- package/dist/esm/funcs/settlementsGetNext.d.ts +1 -1
- package/dist/esm/funcs/settlementsGetNext.js +1 -1
- package/dist/esm/funcs/settlementsGetOpen.d.ts +1 -1
- package/dist/esm/funcs/settlementsGetOpen.js +1 -1
- package/dist/esm/funcs/settlementsList.d.ts +1 -1
- package/dist/esm/funcs/settlementsList.js +1 -1
- package/dist/esm/funcs/settlementsListCaptures.d.ts +1 -1
- package/dist/esm/funcs/settlementsListCaptures.js +1 -1
- package/dist/esm/funcs/settlementsListChargebacks.d.ts +1 -1
- package/dist/esm/funcs/settlementsListChargebacks.js +1 -1
- package/dist/esm/funcs/settlementsListPayments.d.ts +1 -1
- package/dist/esm/funcs/settlementsListPayments.js +1 -1
- package/dist/esm/funcs/settlementsListRefunds.d.ts +1 -1
- package/dist/esm/funcs/settlementsListRefunds.js +1 -1
- package/dist/esm/funcs/transfersCreate.d.ts +1 -1
- package/dist/esm/funcs/transfersCreate.js +1 -1
- package/dist/esm/funcs/transfersGet.d.ts +1 -1
- package/dist/esm/funcs/transfersGet.js +1 -1
- package/dist/esm/funcs/verifyPayeeCreate.d.ts +1 -1
- package/dist/esm/funcs/verifyPayeeCreate.js +1 -1
- package/dist/esm/funcs/webhookEventsGet.d.ts +1 -1
- package/dist/esm/funcs/webhookEventsGet.js +1 -1
- package/dist/esm/funcs/webhooksCreate.d.ts +1 -1
- package/dist/esm/funcs/webhooksCreate.js +1 -1
- package/dist/esm/funcs/webhooksDelete.d.ts +1 -1
- package/dist/esm/funcs/webhooksDelete.js +1 -1
- package/dist/esm/funcs/webhooksGet.d.ts +1 -1
- package/dist/esm/funcs/webhooksGet.js +1 -1
- package/dist/esm/funcs/webhooksList.d.ts +1 -1
- package/dist/esm/funcs/webhooksList.js +1 -1
- package/dist/esm/funcs/webhooksTest.d.ts +1 -1
- package/dist/esm/funcs/webhooksTest.js +1 -1
- package/dist/esm/funcs/webhooksUpdate.d.ts +1 -1
- package/dist/esm/funcs/webhooksUpdate.js +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/env.d.ts +1 -1
- package/dist/esm/lib/env.d.ts.map +1 -1
- package/dist/esm/lib/env.js +1 -1
- package/dist/esm/lib/env.js.map +1 -1
- package/dist/esm/lib/security.js +2 -2
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/models/entitypaymentroute.d.ts +0 -27
- package/dist/esm/models/entitypaymentroute.d.ts.map +1 -1
- package/dist/esm/models/entitypaymentroute.js +0 -15
- package/dist/esm/models/entitypaymentroute.js.map +1 -1
- package/dist/esm/models/security.d.ts +2 -2
- package/dist/esm/models/security.d.ts.map +1 -1
- package/dist/esm/models/security.js +1 -1
- package/dist/esm/models/security.js.map +1 -1
- package/dist/esm/models/url.d.ts +0 -8
- package/dist/esm/models/url.d.ts.map +1 -1
- package/dist/esm/models/url.js +0 -9
- package/dist/esm/models/url.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/balanceTransfersCreate.ts +1 -1
- package/src/funcs/balanceTransfersGet.ts +1 -1
- package/src/funcs/balanceTransfersList.ts +1 -1
- package/src/funcs/balancesGet.ts +1 -1
- package/src/funcs/balancesGetPrimary.ts +1 -1
- package/src/funcs/balancesGetReport.ts +1 -1
- package/src/funcs/balancesList.ts +1 -1
- package/src/funcs/balancesListTransactions.ts +1 -1
- package/src/funcs/capabilitiesList.ts +1 -1
- package/src/funcs/clientLinksCreate.ts +1 -1
- package/src/funcs/clientsGet.ts +1 -1
- package/src/funcs/clientsList.ts +1 -1
- package/src/funcs/invoicesGet.ts +1 -1
- package/src/funcs/invoicesList.ts +1 -1
- package/src/funcs/onboardingGet.ts +1 -1
- package/src/funcs/onboardingSubmit.ts +1 -1
- package/src/funcs/organizationsGet.ts +1 -1
- package/src/funcs/organizationsGetCurrent.ts +1 -1
- package/src/funcs/organizationsGetPartner.ts +1 -1
- package/src/funcs/permissionsGet.ts +1 -1
- package/src/funcs/permissionsList.ts +1 -1
- package/src/funcs/profilesCreate.ts +1 -1
- package/src/funcs/profilesDelete.ts +1 -1
- package/src/funcs/profilesGet.ts +1 -1
- package/src/funcs/profilesList.ts +1 -1
- package/src/funcs/profilesUpdate.ts +1 -1
- package/src/funcs/settlementsGet.ts +1 -1
- package/src/funcs/settlementsGetNext.ts +1 -1
- package/src/funcs/settlementsGetOpen.ts +1 -1
- package/src/funcs/settlementsList.ts +1 -1
- package/src/funcs/settlementsListCaptures.ts +1 -1
- package/src/funcs/settlementsListChargebacks.ts +1 -1
- package/src/funcs/settlementsListPayments.ts +1 -1
- package/src/funcs/settlementsListRefunds.ts +1 -1
- package/src/funcs/transfersCreate.ts +1 -1
- package/src/funcs/transfersGet.ts +1 -1
- package/src/funcs/verifyPayeeCreate.ts +1 -1
- package/src/funcs/webhookEventsGet.ts +1 -1
- package/src/funcs/webhooksCreate.ts +1 -1
- package/src/funcs/webhooksDelete.ts +1 -1
- package/src/funcs/webhooksGet.ts +1 -1
- package/src/funcs/webhooksList.ts +1 -1
- package/src/funcs/webhooksTest.ts +1 -1
- package/src/funcs/webhooksUpdate.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/lib/env.ts +2 -2
- package/src/lib/security.ts +2 -2
- package/src/models/entitypaymentroute.ts +0 -50
- package/src/models/security.ts +3 -3
- package/src/models/url.ts +0 -15
|
@@ -34,7 +34,7 @@ import { Result } from "../types/fp.js";
|
|
|
34
34
|
* @remarks
|
|
35
35
|
* A webhook must have a name, an url and a list of event types. You can also create webhooks in the webhooks settings section of the Dashboard.
|
|
36
36
|
*
|
|
37
|
-
* If set, this operation will use either {@link Security.
|
|
37
|
+
* If set, this operation will use either {@link Security.advancedAccessToken} or {@link Security.oAuth} from the global security.
|
|
38
38
|
*/
|
|
39
39
|
export function webhooksCreate(
|
|
40
40
|
client: ClientCore,
|
|
@@ -34,7 +34,7 @@ import { Result } from "../types/fp.js";
|
|
|
34
34
|
* @remarks
|
|
35
35
|
* Delete a single webhook object by its webhook ID.
|
|
36
36
|
*
|
|
37
|
-
* If set, this operation will use either {@link Security.
|
|
37
|
+
* If set, this operation will use either {@link Security.advancedAccessToken} or {@link Security.oAuth} from the global security.
|
|
38
38
|
*/
|
|
39
39
|
export function webhooksDelete(
|
|
40
40
|
client: ClientCore,
|
package/src/funcs/webhooksGet.ts
CHANGED
|
@@ -34,7 +34,7 @@ import { Result } from "../types/fp.js";
|
|
|
34
34
|
* @remarks
|
|
35
35
|
* Retrieve a single webhook object by its ID.
|
|
36
36
|
*
|
|
37
|
-
* If set, this operation will use either {@link Security.
|
|
37
|
+
* If set, this operation will use either {@link Security.advancedAccessToken} or {@link Security.oAuth} from the global security.
|
|
38
38
|
*/
|
|
39
39
|
export function webhooksGet(
|
|
40
40
|
client: ClientCore,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
* @remarks
|
|
42
42
|
* Returns a paginated list of your webhooks. If no webhook endpoints are available, the resulting array will be empty. This request should never throw an error.
|
|
43
43
|
*
|
|
44
|
-
* If set, this operation will use either {@link Security.
|
|
44
|
+
* If set, this operation will use either {@link Security.advancedAccessToken} or {@link Security.oAuth} from the global security.
|
|
45
45
|
*/
|
|
46
46
|
export function webhooksList(
|
|
47
47
|
client: ClientCore,
|
|
@@ -34,7 +34,7 @@ import { Result } from "../types/fp.js";
|
|
|
34
34
|
* @remarks
|
|
35
35
|
* Sends a test event to the webhook to verify the endpoint is working as expected.
|
|
36
36
|
*
|
|
37
|
-
* If set, this operation will use either {@link Security.
|
|
37
|
+
* If set, this operation will use either {@link Security.advancedAccessToken} or {@link Security.oAuth} from the global security.
|
|
38
38
|
*/
|
|
39
39
|
export function webhooksTest(
|
|
40
40
|
client: ClientCore,
|
|
@@ -34,7 +34,7 @@ import { Result } from "../types/fp.js";
|
|
|
34
34
|
* @remarks
|
|
35
35
|
* Updates the webhook. You may edit the name, url and the list of subscribed event types.
|
|
36
36
|
*
|
|
37
|
-
* If set, this operation will use either {@link Security.
|
|
37
|
+
* If set, this operation will use either {@link Security.advancedAccessToken} or {@link Security.oAuth} from the global security.
|
|
38
38
|
*/
|
|
39
39
|
export function webhooksUpdate(
|
|
40
40
|
client: ClientCore,
|
package/src/lib/config.ts
CHANGED
|
@@ -78,8 +78,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
78
78
|
export const SDK_METADATA = {
|
|
79
79
|
language: "typescript",
|
|
80
80
|
openapiDocVersion: "1.0.0",
|
|
81
|
-
sdkVersion: "1.6.
|
|
81
|
+
sdkVersion: "1.6.10",
|
|
82
82
|
genVersion: "2.882.0",
|
|
83
83
|
userAgent:
|
|
84
|
-
"speakeasy-sdk/typescript 1.6.
|
|
84
|
+
"speakeasy-sdk/typescript 1.6.10 2.882.0 1.0.0 mollie-api-typescript",
|
|
85
85
|
} as const;
|
package/src/lib/env.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { dlv } from "./dlv.js";
|
|
|
9
9
|
|
|
10
10
|
export interface Env {
|
|
11
11
|
CLIENT_API_KEY?: string | undefined;
|
|
12
|
-
|
|
12
|
+
CLIENT_ADVANCED_ACCESS_TOKEN?: string | undefined;
|
|
13
13
|
CLIENT_O_AUTH?: string | undefined;
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -32,7 +32,7 @@ export interface Env {
|
|
|
32
32
|
|
|
33
33
|
export const envSchema: z.ZodType<Env, z.ZodTypeDef, unknown> = z.object({
|
|
34
34
|
CLIENT_API_KEY: z.string().optional(),
|
|
35
|
-
|
|
35
|
+
CLIENT_ADVANCED_ACCESS_TOKEN: z.string().optional(),
|
|
36
36
|
CLIENT_O_AUTH: z.string().optional(),
|
|
37
37
|
|
|
38
38
|
CLIENT_PROFILE_ID: z.string().optional(),
|
package/src/lib/security.ts
CHANGED
|
@@ -255,8 +255,8 @@ export function resolveGlobalSecurity(
|
|
|
255
255
|
{
|
|
256
256
|
fieldName: "Authorization",
|
|
257
257
|
type: "http:bearer",
|
|
258
|
-
value: security?.
|
|
259
|
-
?? env().
|
|
258
|
+
value: security?.advancedAccessToken
|
|
259
|
+
?? env().CLIENT_ADVANCED_ACCESS_TOKEN,
|
|
260
260
|
},
|
|
261
261
|
],
|
|
262
262
|
[
|
|
@@ -4,13 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import * as z from "zod/v3";
|
|
7
|
-
import { remap as remap$ } from "../lib/primitives.js";
|
|
8
7
|
import { Amount, Amount$Outbound, Amount$outboundSchema } from "./amount.js";
|
|
9
8
|
import {
|
|
10
9
|
RouteDestinationType,
|
|
11
10
|
RouteDestinationType$outboundSchema,
|
|
12
11
|
} from "./routedestinationtype.js";
|
|
13
|
-
import { Url, Url$Outbound, Url$outboundSchema } from "./url.js";
|
|
14
12
|
|
|
15
13
|
/**
|
|
16
14
|
* The destination of this portion of the payment.
|
|
@@ -23,20 +21,6 @@ export type EntityPaymentRouteDestination = {
|
|
|
23
21
|
organizationId: string;
|
|
24
22
|
};
|
|
25
23
|
|
|
26
|
-
/**
|
|
27
|
-
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
28
|
-
*/
|
|
29
|
-
export type EntityPaymentRouteLinks = {
|
|
30
|
-
/**
|
|
31
|
-
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
32
|
-
*/
|
|
33
|
-
self: Url;
|
|
34
|
-
/**
|
|
35
|
-
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
36
|
-
*/
|
|
37
|
-
payment: Url;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
24
|
export type EntityPaymentRoute = {
|
|
41
25
|
/**
|
|
42
26
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
@@ -55,10 +39,6 @@ export type EntityPaymentRoute = {
|
|
|
55
39
|
* If no date is given, the funds become available to the connected merchant as soon as the payment succeeds.
|
|
56
40
|
*/
|
|
57
41
|
releaseDate?: string | null | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
60
|
-
*/
|
|
61
|
-
links: EntityPaymentRouteLinks;
|
|
62
42
|
};
|
|
63
43
|
|
|
64
44
|
/** @internal */
|
|
@@ -87,36 +67,11 @@ export function entityPaymentRouteDestinationToJSON(
|
|
|
87
67
|
);
|
|
88
68
|
}
|
|
89
69
|
|
|
90
|
-
/** @internal */
|
|
91
|
-
export type EntityPaymentRouteLinks$Outbound = {
|
|
92
|
-
self: Url$Outbound;
|
|
93
|
-
payment: Url$Outbound;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
/** @internal */
|
|
97
|
-
export const EntityPaymentRouteLinks$outboundSchema: z.ZodType<
|
|
98
|
-
EntityPaymentRouteLinks$Outbound,
|
|
99
|
-
z.ZodTypeDef,
|
|
100
|
-
EntityPaymentRouteLinks
|
|
101
|
-
> = z.object({
|
|
102
|
-
self: Url$outboundSchema,
|
|
103
|
-
payment: Url$outboundSchema,
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
export function entityPaymentRouteLinksToJSON(
|
|
107
|
-
entityPaymentRouteLinks: EntityPaymentRouteLinks,
|
|
108
|
-
): string {
|
|
109
|
-
return JSON.stringify(
|
|
110
|
-
EntityPaymentRouteLinks$outboundSchema.parse(entityPaymentRouteLinks),
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
70
|
/** @internal */
|
|
115
71
|
export type EntityPaymentRoute$Outbound = {
|
|
116
72
|
amount: Amount$Outbound;
|
|
117
73
|
destination: EntityPaymentRouteDestination$Outbound;
|
|
118
74
|
releaseDate?: string | null | undefined;
|
|
119
|
-
_links: EntityPaymentRouteLinks$Outbound;
|
|
120
75
|
};
|
|
121
76
|
|
|
122
77
|
/** @internal */
|
|
@@ -128,11 +83,6 @@ export const EntityPaymentRoute$outboundSchema: z.ZodType<
|
|
|
128
83
|
amount: Amount$outboundSchema,
|
|
129
84
|
destination: z.lazy(() => EntityPaymentRouteDestination$outboundSchema),
|
|
130
85
|
releaseDate: z.nullable(z.string()).optional(),
|
|
131
|
-
links: z.lazy(() => EntityPaymentRouteLinks$outboundSchema),
|
|
132
|
-
}).transform((v) => {
|
|
133
|
-
return remap$(v, {
|
|
134
|
-
links: "_links",
|
|
135
|
-
});
|
|
136
86
|
});
|
|
137
87
|
|
|
138
88
|
export function entityPaymentRouteToJSON(
|
package/src/models/security.ts
CHANGED
|
@@ -7,14 +7,14 @@ import * as z from "zod/v3";
|
|
|
7
7
|
|
|
8
8
|
export type Security = {
|
|
9
9
|
apiKey?: string | undefined;
|
|
10
|
-
|
|
10
|
+
advancedAccessToken?: string | undefined;
|
|
11
11
|
oAuth?: string | undefined;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
/** @internal */
|
|
15
15
|
export type Security$Outbound = {
|
|
16
16
|
apiKey?: string | undefined;
|
|
17
|
-
|
|
17
|
+
advancedAccessToken?: string | undefined;
|
|
18
18
|
oAuth?: string | undefined;
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -25,7 +25,7 @@ export const Security$outboundSchema: z.ZodType<
|
|
|
25
25
|
Security
|
|
26
26
|
> = z.object({
|
|
27
27
|
apiKey: z.string().optional(),
|
|
28
|
-
|
|
28
|
+
advancedAccessToken: z.string().optional(),
|
|
29
29
|
oAuth: z.string().optional(),
|
|
30
30
|
});
|
|
31
31
|
|
package/src/models/url.ts
CHANGED
|
@@ -28,22 +28,7 @@ export const Url$inboundSchema: z.ZodType<Url, z.ZodTypeDef, unknown> = z
|
|
|
28
28
|
href: z.string(),
|
|
29
29
|
type: z.string(),
|
|
30
30
|
});
|
|
31
|
-
/** @internal */
|
|
32
|
-
export type Url$Outbound = {
|
|
33
|
-
href: string;
|
|
34
|
-
type: string;
|
|
35
|
-
};
|
|
36
31
|
|
|
37
|
-
/** @internal */
|
|
38
|
-
export const Url$outboundSchema: z.ZodType<Url$Outbound, z.ZodTypeDef, Url> = z
|
|
39
|
-
.object({
|
|
40
|
-
href: z.string(),
|
|
41
|
-
type: z.string(),
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
export function urlToJSON(url: Url): string {
|
|
45
|
-
return JSON.stringify(Url$outboundSchema.parse(url));
|
|
46
|
-
}
|
|
47
32
|
export function urlFromJSON(
|
|
48
33
|
jsonString: string,
|
|
49
34
|
): SafeParseResult<Url, SDKValidationError> {
|