@gr4vy/sdk 2.0.12 → 2.0.14
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 +4 -4
- package/funcs/paymentServicesCreate.d.ts +2 -2
- package/funcs/paymentServicesCreate.js +4 -4
- package/funcs/paymentServicesUpdate.d.ts +2 -2
- package/funcs/paymentServicesUpdate.js +4 -4
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/operations/createpaymentservice.d.ts +2 -7
- package/models/operations/createpaymentservice.d.ts.map +1 -1
- package/models/operations/createpaymentservice.js +2 -4
- package/models/operations/createpaymentservice.js.map +1 -1
- package/models/operations/updatepaymentservice.d.ts +7 -2
- package/models/operations/updatepaymentservice.d.ts.map +1 -1
- package/models/operations/updatepaymentservice.js +4 -2
- package/models/operations/updatepaymentservice.js.map +1 -1
- package/package.json +1 -1
- package/sdk/paymentservices.d.ts +4 -4
- package/sdk/paymentservices.js +4 -4
- package/src/funcs/paymentServicesCreate.ts +5 -5
- package/src/funcs/paymentServicesUpdate.ts +5 -5
- package/src/lib/config.ts +3 -3
- package/src/models/operations/createpaymentservice.ts +4 -11
- package/src/models/operations/updatepaymentservice.ts +11 -4
- package/src/sdk/paymentservices.ts +4 -4
package/README.md
CHANGED
|
@@ -368,9 +368,9 @@ try {
|
|
|
368
368
|
### [PaymentServices](docs/sdks/paymentservices/README.md)
|
|
369
369
|
|
|
370
370
|
* [list](docs/sdks/paymentservices/README.md#list) - List payment services
|
|
371
|
-
* [create](docs/sdks/paymentservices/README.md#create) -
|
|
371
|
+
* [create](docs/sdks/paymentservices/README.md#create) - Configure a payment service
|
|
372
372
|
* [get](docs/sdks/paymentservices/README.md#get) - Get payment service
|
|
373
|
-
* [update](docs/sdks/paymentservices/README.md#update) -
|
|
373
|
+
* [update](docs/sdks/paymentservices/README.md#update) - Update a configured payment service
|
|
374
374
|
* [delete](docs/sdks/paymentservices/README.md#delete) - Delete a configured payment service
|
|
375
375
|
* [verify](docs/sdks/paymentservices/README.md#verify) - Verify payment service credentials
|
|
376
376
|
* [session](docs/sdks/paymentservices/README.md#session) - Create a session for a payment service definition
|
|
@@ -1012,12 +1012,12 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
1012
1012
|
- [`paymentServiceDefinitionsGet`](docs/sdks/paymentservicedefinitions/README.md#get) - Get a payment service definition
|
|
1013
1013
|
- [`paymentServiceDefinitionsList`](docs/sdks/paymentservicedefinitions/README.md#list) - List payment service definitions
|
|
1014
1014
|
- [`paymentServiceDefinitionsSession`](docs/sdks/paymentservicedefinitions/README.md#session) - Create a session for a payment service definition
|
|
1015
|
-
- [`paymentServicesCreate`](docs/sdks/paymentservices/README.md#create) -
|
|
1015
|
+
- [`paymentServicesCreate`](docs/sdks/paymentservices/README.md#create) - Configure a payment service
|
|
1016
1016
|
- [`paymentServicesDelete`](docs/sdks/paymentservices/README.md#delete) - Delete a configured payment service
|
|
1017
1017
|
- [`paymentServicesGet`](docs/sdks/paymentservices/README.md#get) - Get payment service
|
|
1018
1018
|
- [`paymentServicesList`](docs/sdks/paymentservices/README.md#list) - List payment services
|
|
1019
1019
|
- [`paymentServicesSession`](docs/sdks/paymentservices/README.md#session) - Create a session for a payment service definition
|
|
1020
|
-
- [`paymentServicesUpdate`](docs/sdks/paymentservices/README.md#update) -
|
|
1020
|
+
- [`paymentServicesUpdate`](docs/sdks/paymentservices/README.md#update) - Update a configured payment service
|
|
1021
1021
|
- [`paymentServicesVerify`](docs/sdks/paymentservices/README.md#verify) - Verify payment service credentials
|
|
1022
1022
|
- [`payoutsCreate`](docs/sdks/payouts/README.md#create) - Create a payout
|
|
1023
1023
|
- [`payoutsGet`](docs/sdks/payouts/README.md#get) - Get a payout
|
|
@@ -9,10 +9,10 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
9
9
|
import { APIPromise } from "../types/async.js";
|
|
10
10
|
import { Result } from "../types/fp.js";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Configure a payment service
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
*
|
|
15
|
+
* Configures a new payment service for use by merchants.
|
|
16
16
|
*/
|
|
17
17
|
export declare function paymentServicesCreate(client: Gr4vyCore, paymentServiceCreate: components.PaymentServiceCreate, merchantAccountId?: string | null | undefined, options?: RequestOptions): APIPromise<Result<components.PaymentService, errors.Error400 | errors.Error401 | errors.Error403 | errors.Error404 | errors.Error405 | errors.Error409 | errors.HTTPValidationError | errors.Error425 | errors.Error429 | errors.Error500 | errors.Error502 | errors.Error504 | Gr4vyError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
18
|
//# sourceMappingURL=paymentServicesCreate.d.ts.map
|
|
@@ -48,10 +48,10 @@ const errors = __importStar(require("../models/errors/index.js"));
|
|
|
48
48
|
const operations = __importStar(require("../models/operations/index.js"));
|
|
49
49
|
const async_js_1 = require("../types/async.js");
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Configure a payment service
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
*
|
|
54
|
+
* Configures a new payment service for use by merchants.
|
|
55
55
|
*/
|
|
56
56
|
function paymentServicesCreate(client, paymentServiceCreate, merchantAccountId, options) {
|
|
57
57
|
return new async_js_1.APIPromise($do(client, paymentServiceCreate, merchantAccountId, options));
|
|
@@ -61,7 +61,7 @@ async function $do(client, paymentServiceCreate, merchantAccountId, options) {
|
|
|
61
61
|
paymentServiceCreate: paymentServiceCreate,
|
|
62
62
|
merchantAccountId: merchantAccountId,
|
|
63
63
|
};
|
|
64
|
-
const parsed = (0, schemas_js_1.safeParse)(input, (value) => operations.
|
|
64
|
+
const parsed = (0, schemas_js_1.safeParse)(input, (value) => operations.CreatePaymentServiceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65
65
|
if (!parsed.ok) {
|
|
66
66
|
return [parsed, { status: "invalid" }];
|
|
67
67
|
}
|
|
@@ -81,7 +81,7 @@ async function $do(client, paymentServiceCreate, merchantAccountId, options) {
|
|
|
81
81
|
const context = {
|
|
82
82
|
options: client._options,
|
|
83
83
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
84
|
-
operationID: "
|
|
84
|
+
operationID: "create_payment_service",
|
|
85
85
|
oAuth2Scopes: null,
|
|
86
86
|
resolvedSecurity: requestSecurity,
|
|
87
87
|
securitySource: client._options.bearerAuth,
|
|
@@ -9,10 +9,10 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
9
9
|
import { APIPromise } from "../types/async.js";
|
|
10
10
|
import { Result } from "../types/fp.js";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Update a configured payment service
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
*
|
|
15
|
+
* Updates the configuration of a payment service.
|
|
16
16
|
*/
|
|
17
17
|
export declare function paymentServicesUpdate(client: Gr4vyCore, paymentServiceUpdate: components.PaymentServiceUpdate, paymentServiceId: string, merchantAccountId?: string | null | undefined, options?: RequestOptions): APIPromise<Result<components.PaymentService, errors.Error400 | errors.Error401 | errors.Error403 | errors.Error404 | errors.Error405 | errors.Error409 | errors.HTTPValidationError | errors.Error425 | errors.Error429 | errors.Error500 | errors.Error502 | errors.Error504 | Gr4vyError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
18
|
//# sourceMappingURL=paymentServicesUpdate.d.ts.map
|
|
@@ -48,10 +48,10 @@ const errors = __importStar(require("../models/errors/index.js"));
|
|
|
48
48
|
const operations = __importStar(require("../models/operations/index.js"));
|
|
49
49
|
const async_js_1 = require("../types/async.js");
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Update a configured payment service
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
*
|
|
54
|
+
* Updates the configuration of a payment service.
|
|
55
55
|
*/
|
|
56
56
|
function paymentServicesUpdate(client, paymentServiceUpdate, paymentServiceId, merchantAccountId, options) {
|
|
57
57
|
return new async_js_1.APIPromise($do(client, paymentServiceUpdate, paymentServiceId, merchantAccountId, options));
|
|
@@ -62,7 +62,7 @@ async function $do(client, paymentServiceUpdate, paymentServiceId, merchantAccou
|
|
|
62
62
|
paymentServiceId: paymentServiceId,
|
|
63
63
|
merchantAccountId: merchantAccountId,
|
|
64
64
|
};
|
|
65
|
-
const parsed = (0, schemas_js_1.safeParse)(input, (value) => operations.
|
|
65
|
+
const parsed = (0, schemas_js_1.safeParse)(input, (value) => operations.UpdatePaymentServiceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
66
66
|
if (!parsed.ok) {
|
|
67
67
|
return [parsed, { status: "invalid" }];
|
|
68
68
|
}
|
|
@@ -85,7 +85,7 @@ async function $do(client, paymentServiceUpdate, paymentServiceId, merchantAccou
|
|
|
85
85
|
const context = {
|
|
86
86
|
options: client._options,
|
|
87
87
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
88
|
-
operationID: "
|
|
88
|
+
operationID: "update_payment_service",
|
|
89
89
|
oAuth2Scopes: null,
|
|
90
90
|
resolvedSecurity: requestSecurity,
|
|
91
91
|
securitySource: client._options.bearerAuth,
|
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -44,8 +44,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
44
44
|
export declare const SDK_METADATA: {
|
|
45
45
|
readonly language: "typescript";
|
|
46
46
|
readonly openapiDocVersion: "1.0.0";
|
|
47
|
-
readonly sdkVersion: "2.0.
|
|
48
|
-
readonly genVersion: "2.
|
|
49
|
-
readonly userAgent: "speakeasy-sdk/typescript 2.0.
|
|
47
|
+
readonly sdkVersion: "2.0.14";
|
|
48
|
+
readonly genVersion: "2.879.1";
|
|
49
|
+
readonly userAgent: "speakeasy-sdk/typescript 2.0.14 2.879.1 1.0.0 @gr4vy/sdk";
|
|
50
50
|
};
|
|
51
51
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -37,8 +37,8 @@ function serverURLFromOptions(options) {
|
|
|
37
37
|
exports.SDK_METADATA = {
|
|
38
38
|
language: "typescript",
|
|
39
39
|
openapiDocVersion: "1.0.0",
|
|
40
|
-
sdkVersion: "2.0.
|
|
41
|
-
genVersion: "2.
|
|
42
|
-
userAgent: "speakeasy-sdk/typescript 2.0.
|
|
40
|
+
sdkVersion: "2.0.14",
|
|
41
|
+
genVersion: "2.879.1",
|
|
42
|
+
userAgent: "speakeasy-sdk/typescript 2.0.14 2.879.1 1.0.0 @gr4vy/sdk",
|
|
43
43
|
};
|
|
44
44
|
//# sourceMappingURL=config.js.map
|
|
@@ -4,21 +4,16 @@ export type CreatePaymentServiceGlobals = {
|
|
|
4
4
|
merchantAccountId?: string | undefined;
|
|
5
5
|
};
|
|
6
6
|
export type CreatePaymentServiceRequest = {
|
|
7
|
-
/**
|
|
8
|
-
* the ID of the payment service
|
|
9
|
-
*/
|
|
10
|
-
paymentServiceId: string;
|
|
11
7
|
/**
|
|
12
8
|
* The ID of the merchant account to use for this request.
|
|
13
9
|
*/
|
|
14
10
|
merchantAccountId?: string | null | undefined;
|
|
15
|
-
|
|
11
|
+
paymentServiceCreate: components.PaymentServiceCreate;
|
|
16
12
|
};
|
|
17
13
|
/** @internal */
|
|
18
14
|
export type CreatePaymentServiceRequest$Outbound = {
|
|
19
|
-
payment_service_id: string;
|
|
20
15
|
merchantAccountId?: string | null | undefined;
|
|
21
|
-
|
|
16
|
+
PaymentServiceCreate: components.PaymentServiceCreate$Outbound;
|
|
22
17
|
};
|
|
23
18
|
/** @internal */
|
|
24
19
|
export declare const CreatePaymentServiceRequest$outboundSchema: z.ZodType<CreatePaymentServiceRequest$Outbound, z.ZodTypeDef, CreatePaymentServiceRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createpaymentservice.d.ts","sourceRoot":"","sources":["../../src/models/operations/createpaymentservice.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAErD,MAAM,MAAM,2BAA2B,GAAG;IACxC,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"createpaymentservice.d.ts","sourceRoot":"","sources":["../../src/models/operations/createpaymentservice.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAErD,MAAM,MAAM,2BAA2B,GAAG;IACxC,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,oBAAoB,EAAE,UAAU,CAAC,oBAAoB,CAAC;CACvD,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,oBAAoB,EAAE,UAAU,CAAC,6BAA6B,CAAC;CAChE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAQ3B,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR"}
|
|
@@ -43,13 +43,11 @@ const primitives_js_1 = require("../../lib/primitives.js");
|
|
|
43
43
|
const components = __importStar(require("../components/index.js"));
|
|
44
44
|
/** @internal */
|
|
45
45
|
exports.CreatePaymentServiceRequest$outboundSchema = z.object({
|
|
46
|
-
paymentServiceId: z.string(),
|
|
47
46
|
merchantAccountId: z.nullable(z.string()).optional(),
|
|
48
|
-
|
|
47
|
+
paymentServiceCreate: components.PaymentServiceCreate$outboundSchema,
|
|
49
48
|
}).transform((v) => {
|
|
50
49
|
return (0, primitives_js_1.remap)(v, {
|
|
51
|
-
|
|
52
|
-
paymentServiceUpdate: "PaymentServiceUpdate",
|
|
50
|
+
paymentServiceCreate: "PaymentServiceCreate",
|
|
53
51
|
});
|
|
54
52
|
});
|
|
55
53
|
function createPaymentServiceRequestToJSON(createPaymentServiceRequest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createpaymentservice.js","sourceRoot":"","sources":["../../src/models/operations/createpaymentservice.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"createpaymentservice.js","sourceRoot":"","sources":["../../src/models/operations/createpaymentservice.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCH,8EAQC;AA5CD,0CAA4B;AAC5B,2DAA0D;AAC1D,mEAAqD;AAoBrD,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpD,oBAAoB,EAAE,UAAU,CAAC,mCAAmC;CACrE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,oBAAoB,EAAE,sBAAsB;KAC7C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,kDAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -4,16 +4,21 @@ export type UpdatePaymentServiceGlobals = {
|
|
|
4
4
|
merchantAccountId?: string | undefined;
|
|
5
5
|
};
|
|
6
6
|
export type UpdatePaymentServiceRequest = {
|
|
7
|
+
/**
|
|
8
|
+
* the ID of the payment service
|
|
9
|
+
*/
|
|
10
|
+
paymentServiceId: string;
|
|
7
11
|
/**
|
|
8
12
|
* The ID of the merchant account to use for this request.
|
|
9
13
|
*/
|
|
10
14
|
merchantAccountId?: string | null | undefined;
|
|
11
|
-
|
|
15
|
+
paymentServiceUpdate: components.PaymentServiceUpdate;
|
|
12
16
|
};
|
|
13
17
|
/** @internal */
|
|
14
18
|
export type UpdatePaymentServiceRequest$Outbound = {
|
|
19
|
+
payment_service_id: string;
|
|
15
20
|
merchantAccountId?: string | null | undefined;
|
|
16
|
-
|
|
21
|
+
PaymentServiceUpdate: components.PaymentServiceUpdate$Outbound;
|
|
17
22
|
};
|
|
18
23
|
/** @internal */
|
|
19
24
|
export declare const UpdatePaymentServiceRequest$outboundSchema: z.ZodType<UpdatePaymentServiceRequest$Outbound, z.ZodTypeDef, UpdatePaymentServiceRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updatepaymentservice.d.ts","sourceRoot":"","sources":["../../src/models/operations/updatepaymentservice.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAErD,MAAM,MAAM,2BAA2B,GAAG;IACxC,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,oBAAoB,EAAE,UAAU,CAAC,oBAAoB,CAAC;CACvD,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,oBAAoB,EAAE,UAAU,CAAC,6BAA6B,CAAC;CAChE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,
|
|
1
|
+
{"version":3,"file":"updatepaymentservice.d.ts","sourceRoot":"","sources":["../../src/models/operations/updatepaymentservice.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAErD,MAAM,MAAM,2BAA2B,GAAG;IACxC,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,oBAAoB,EAAE,UAAU,CAAC,oBAAoB,CAAC;CACvD,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,oBAAoB,EAAE,UAAU,CAAC,6BAA6B,CAAC;CAChE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAU3B,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR"}
|
|
@@ -43,11 +43,13 @@ const primitives_js_1 = require("../../lib/primitives.js");
|
|
|
43
43
|
const components = __importStar(require("../components/index.js"));
|
|
44
44
|
/** @internal */
|
|
45
45
|
exports.UpdatePaymentServiceRequest$outboundSchema = z.object({
|
|
46
|
+
paymentServiceId: z.string(),
|
|
46
47
|
merchantAccountId: z.nullable(z.string()).optional(),
|
|
47
|
-
|
|
48
|
+
paymentServiceUpdate: components.PaymentServiceUpdate$outboundSchema,
|
|
48
49
|
}).transform((v) => {
|
|
49
50
|
return (0, primitives_js_1.remap)(v, {
|
|
50
|
-
|
|
51
|
+
paymentServiceId: "payment_service_id",
|
|
52
|
+
paymentServiceUpdate: "PaymentServiceUpdate",
|
|
51
53
|
});
|
|
52
54
|
});
|
|
53
55
|
function updatePaymentServiceRequestToJSON(updatePaymentServiceRequest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updatepaymentservice.js","sourceRoot":"","sources":["../../src/models/operations/updatepaymentservice.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"updatepaymentservice.js","sourceRoot":"","sources":["../../src/models/operations/updatepaymentservice.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CH,8EAQC;AAnDD,0CAA4B;AAC5B,2DAA0D;AAC1D,mEAAqD;AAyBrD,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5B,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpD,oBAAoB,EAAE,UAAU,CAAC,mCAAmC;CACrE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,oBAAoB;QACtC,oBAAoB,EAAE,sBAAsB;KAC7C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,kDAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
package/sdk/paymentservices.d.ts
CHANGED
|
@@ -13,10 +13,10 @@ export declare class PaymentServices extends ClientSDK {
|
|
|
13
13
|
cursor: string;
|
|
14
14
|
}>>;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Configure a payment service
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
*
|
|
19
|
+
* Configures a new payment service for use by merchants.
|
|
20
20
|
*/
|
|
21
21
|
create(paymentServiceCreate: components.PaymentServiceCreate, merchantAccountId?: string | null | undefined, options?: RequestOptions): Promise<components.PaymentService>;
|
|
22
22
|
/**
|
|
@@ -27,10 +27,10 @@ export declare class PaymentServices extends ClientSDK {
|
|
|
27
27
|
*/
|
|
28
28
|
get(paymentServiceId: string, merchantAccountId?: string | null | undefined, options?: RequestOptions): Promise<components.PaymentService>;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Update a configured payment service
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
*
|
|
33
|
+
* Updates the configuration of a payment service.
|
|
34
34
|
*/
|
|
35
35
|
update(paymentServiceUpdate: components.PaymentServiceUpdate, paymentServiceId: string, merchantAccountId?: string | null | undefined, options?: RequestOptions): Promise<components.PaymentService>;
|
|
36
36
|
/**
|
package/sdk/paymentservices.js
CHANGED
|
@@ -25,10 +25,10 @@ class PaymentServices extends sdks_js_1.ClientSDK {
|
|
|
25
25
|
return (0, operations_js_1.unwrapResultIterator)((0, paymentServicesList_js_1.paymentServicesList)(this, request, options));
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Configure a payment service
|
|
29
29
|
*
|
|
30
30
|
* @remarks
|
|
31
|
-
*
|
|
31
|
+
* Configures a new payment service for use by merchants.
|
|
32
32
|
*/
|
|
33
33
|
async create(paymentServiceCreate, merchantAccountId, options) {
|
|
34
34
|
return (0, fp_js_1.unwrapAsync)((0, paymentServicesCreate_js_1.paymentServicesCreate)(this, paymentServiceCreate, merchantAccountId, options));
|
|
@@ -43,10 +43,10 @@ class PaymentServices extends sdks_js_1.ClientSDK {
|
|
|
43
43
|
return (0, fp_js_1.unwrapAsync)((0, paymentServicesGet_js_1.paymentServicesGet)(this, paymentServiceId, merchantAccountId, options));
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Update a configured payment service
|
|
47
47
|
*
|
|
48
48
|
* @remarks
|
|
49
|
-
*
|
|
49
|
+
* Updates the configuration of a payment service.
|
|
50
50
|
*/
|
|
51
51
|
async update(paymentServiceUpdate, paymentServiceId, merchantAccountId, options) {
|
|
52
52
|
return (0, fp_js_1.unwrapAsync)((0, paymentServicesUpdate_js_1.paymentServicesUpdate)(this, paymentServiceUpdate, paymentServiceId, merchantAccountId, options));
|
|
@@ -27,10 +27,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Configure a payment service
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
*
|
|
33
|
+
* Configures a new payment service for use by merchants.
|
|
34
34
|
*/
|
|
35
35
|
export function paymentServicesCreate(
|
|
36
36
|
client: Gr4vyCore,
|
|
@@ -103,7 +103,7 @@ async function $do(
|
|
|
103
103
|
APICall,
|
|
104
104
|
]
|
|
105
105
|
> {
|
|
106
|
-
const input: operations.
|
|
106
|
+
const input: operations.CreatePaymentServiceRequest = {
|
|
107
107
|
paymentServiceCreate: paymentServiceCreate,
|
|
108
108
|
merchantAccountId: merchantAccountId,
|
|
109
109
|
};
|
|
@@ -111,7 +111,7 @@ async function $do(
|
|
|
111
111
|
const parsed = safeParse(
|
|
112
112
|
input,
|
|
113
113
|
(value) =>
|
|
114
|
-
operations.
|
|
114
|
+
operations.CreatePaymentServiceRequest$outboundSchema.parse(value),
|
|
115
115
|
"Input validation failed",
|
|
116
116
|
);
|
|
117
117
|
if (!parsed.ok) {
|
|
@@ -141,7 +141,7 @@ async function $do(
|
|
|
141
141
|
const context = {
|
|
142
142
|
options: client._options,
|
|
143
143
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
144
|
-
operationID: "
|
|
144
|
+
operationID: "create_payment_service",
|
|
145
145
|
oAuth2Scopes: null,
|
|
146
146
|
|
|
147
147
|
resolvedSecurity: requestSecurity,
|
|
@@ -27,10 +27,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Update a configured payment service
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
*
|
|
33
|
+
* Updates the configuration of a payment service.
|
|
34
34
|
*/
|
|
35
35
|
export function paymentServicesUpdate(
|
|
36
36
|
client: Gr4vyCore,
|
|
@@ -106,7 +106,7 @@ async function $do(
|
|
|
106
106
|
APICall,
|
|
107
107
|
]
|
|
108
108
|
> {
|
|
109
|
-
const input: operations.
|
|
109
|
+
const input: operations.UpdatePaymentServiceRequest = {
|
|
110
110
|
paymentServiceUpdate: paymentServiceUpdate,
|
|
111
111
|
paymentServiceId: paymentServiceId,
|
|
112
112
|
merchantAccountId: merchantAccountId,
|
|
@@ -115,7 +115,7 @@ async function $do(
|
|
|
115
115
|
const parsed = safeParse(
|
|
116
116
|
input,
|
|
117
117
|
(value) =>
|
|
118
|
-
operations.
|
|
118
|
+
operations.UpdatePaymentServiceRequest$outboundSchema.parse(value),
|
|
119
119
|
"Input validation failed",
|
|
120
120
|
);
|
|
121
121
|
if (!parsed.ok) {
|
|
@@ -152,7 +152,7 @@ async function $do(
|
|
|
152
152
|
const context = {
|
|
153
153
|
options: client._options,
|
|
154
154
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
155
|
-
operationID: "
|
|
155
|
+
operationID: "update_payment_service",
|
|
156
156
|
oAuth2Scopes: null,
|
|
157
157
|
|
|
158
158
|
resolvedSecurity: requestSecurity,
|
package/src/lib/config.ts
CHANGED
|
@@ -77,7 +77,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
77
77
|
export const SDK_METADATA = {
|
|
78
78
|
language: "typescript",
|
|
79
79
|
openapiDocVersion: "1.0.0",
|
|
80
|
-
sdkVersion: "2.0.
|
|
81
|
-
genVersion: "2.
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 2.0.
|
|
80
|
+
sdkVersion: "2.0.14",
|
|
81
|
+
genVersion: "2.879.1",
|
|
82
|
+
userAgent: "speakeasy-sdk/typescript 2.0.14 2.879.1 1.0.0 @gr4vy/sdk",
|
|
83
83
|
} as const;
|
|
@@ -11,22 +11,17 @@ export type CreatePaymentServiceGlobals = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export type CreatePaymentServiceRequest = {
|
|
14
|
-
/**
|
|
15
|
-
* the ID of the payment service
|
|
16
|
-
*/
|
|
17
|
-
paymentServiceId: string;
|
|
18
14
|
/**
|
|
19
15
|
* The ID of the merchant account to use for this request.
|
|
20
16
|
*/
|
|
21
17
|
merchantAccountId?: string | null | undefined;
|
|
22
|
-
|
|
18
|
+
paymentServiceCreate: components.PaymentServiceCreate;
|
|
23
19
|
};
|
|
24
20
|
|
|
25
21
|
/** @internal */
|
|
26
22
|
export type CreatePaymentServiceRequest$Outbound = {
|
|
27
|
-
payment_service_id: string;
|
|
28
23
|
merchantAccountId?: string | null | undefined;
|
|
29
|
-
|
|
24
|
+
PaymentServiceCreate: components.PaymentServiceCreate$Outbound;
|
|
30
25
|
};
|
|
31
26
|
|
|
32
27
|
/** @internal */
|
|
@@ -35,13 +30,11 @@ export const CreatePaymentServiceRequest$outboundSchema: z.ZodType<
|
|
|
35
30
|
z.ZodTypeDef,
|
|
36
31
|
CreatePaymentServiceRequest
|
|
37
32
|
> = z.object({
|
|
38
|
-
paymentServiceId: z.string(),
|
|
39
33
|
merchantAccountId: z.nullable(z.string()).optional(),
|
|
40
|
-
|
|
34
|
+
paymentServiceCreate: components.PaymentServiceCreate$outboundSchema,
|
|
41
35
|
}).transform((v) => {
|
|
42
36
|
return remap$(v, {
|
|
43
|
-
|
|
44
|
-
paymentServiceUpdate: "PaymentServiceUpdate",
|
|
37
|
+
paymentServiceCreate: "PaymentServiceCreate",
|
|
45
38
|
});
|
|
46
39
|
});
|
|
47
40
|
|
|
@@ -11,17 +11,22 @@ export type UpdatePaymentServiceGlobals = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export type UpdatePaymentServiceRequest = {
|
|
14
|
+
/**
|
|
15
|
+
* the ID of the payment service
|
|
16
|
+
*/
|
|
17
|
+
paymentServiceId: string;
|
|
14
18
|
/**
|
|
15
19
|
* The ID of the merchant account to use for this request.
|
|
16
20
|
*/
|
|
17
21
|
merchantAccountId?: string | null | undefined;
|
|
18
|
-
|
|
22
|
+
paymentServiceUpdate: components.PaymentServiceUpdate;
|
|
19
23
|
};
|
|
20
24
|
|
|
21
25
|
/** @internal */
|
|
22
26
|
export type UpdatePaymentServiceRequest$Outbound = {
|
|
27
|
+
payment_service_id: string;
|
|
23
28
|
merchantAccountId?: string | null | undefined;
|
|
24
|
-
|
|
29
|
+
PaymentServiceUpdate: components.PaymentServiceUpdate$Outbound;
|
|
25
30
|
};
|
|
26
31
|
|
|
27
32
|
/** @internal */
|
|
@@ -30,11 +35,13 @@ export const UpdatePaymentServiceRequest$outboundSchema: z.ZodType<
|
|
|
30
35
|
z.ZodTypeDef,
|
|
31
36
|
UpdatePaymentServiceRequest
|
|
32
37
|
> = z.object({
|
|
38
|
+
paymentServiceId: z.string(),
|
|
33
39
|
merchantAccountId: z.nullable(z.string()).optional(),
|
|
34
|
-
|
|
40
|
+
paymentServiceUpdate: components.PaymentServiceUpdate$outboundSchema,
|
|
35
41
|
}).transform((v) => {
|
|
36
42
|
return remap$(v, {
|
|
37
|
-
|
|
43
|
+
paymentServiceId: "payment_service_id",
|
|
44
|
+
paymentServiceUpdate: "PaymentServiceUpdate",
|
|
38
45
|
});
|
|
39
46
|
});
|
|
40
47
|
|
|
@@ -36,10 +36,10 @@ export class PaymentServices extends ClientSDK {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Configure a payment service
|
|
40
40
|
*
|
|
41
41
|
* @remarks
|
|
42
|
-
*
|
|
42
|
+
* Configures a new payment service for use by merchants.
|
|
43
43
|
*/
|
|
44
44
|
async create(
|
|
45
45
|
paymentServiceCreate: components.PaymentServiceCreate,
|
|
@@ -74,10 +74,10 @@ export class PaymentServices extends ClientSDK {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Update a configured payment service
|
|
78
78
|
*
|
|
79
79
|
* @remarks
|
|
80
|
-
*
|
|
80
|
+
* Updates the configuration of a payment service.
|
|
81
81
|
*/
|
|
82
82
|
async update(
|
|
83
83
|
paymentServiceUpdate: components.PaymentServiceUpdate,
|