@gr4vy/sdk 2.0.52 → 2.0.54
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 +2 -0
- package/funcs/digitalWalletsSessionsPazeMobileSessionCreate.d.ts +18 -0
- package/funcs/digitalWalletsSessionsPazeMobileSessionCreate.d.ts.map +1 -0
- package/funcs/digitalWalletsSessionsPazeMobileSessionCreate.js +127 -0
- package/funcs/digitalWalletsSessionsPazeMobileSessionCreate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/definitionfield.d.ts +4 -0
- package/models/components/definitionfield.d.ts.map +1 -1
- package/models/components/definitionfield.js +1 -0
- package/models/components/definitionfield.js.map +1 -1
- package/models/components/index.d.ts +5 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -0
- package/models/components/index.js.map +1 -1
- package/models/components/pazeclient.d.ts +25 -0
- package/models/components/pazeclient.d.ts.map +1 -0
- package/models/components/pazeclient.js +51 -0
- package/models/components/pazeclient.js.map +1 -0
- package/models/components/pazecobranditem.d.ts +20 -0
- package/models/components/pazecobranditem.d.ts.map +1 -0
- package/models/components/pazecobranditem.js +50 -0
- package/models/components/pazecobranditem.js.map +1 -0
- package/models/components/pazemobilesessioncreate.d.ts +25 -0
- package/models/components/pazemobilesessioncreate.d.ts.map +1 -0
- package/models/components/pazemobilesessioncreate.js +58 -0
- package/models/components/pazemobilesessioncreate.js.map +1 -0
- package/models/components/pazemobilesessioncreaterequest.d.ts +130 -0
- package/models/components/pazemobilesessioncreaterequest.d.ts.map +1 -0
- package/models/components/pazemobilesessioncreaterequest.js +103 -0
- package/models/components/pazemobilesessioncreaterequest.js.map +1 -0
- package/models/components/pazetransactionvalue.d.ts +20 -0
- package/models/components/pazetransactionvalue.d.ts.map +1 -0
- package/models/components/pazetransactionvalue.js +50 -0
- package/models/components/pazetransactionvalue.js.map +1 -0
- package/models/operations/createpazemobilesession.d.ts +21 -0
- package/models/operations/createpazemobilesession.d.ts.map +1 -0
- package/models/operations/createpazemobilesession.js +56 -0
- package/models/operations/createpazemobilesession.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/sessions.d.ts +7 -0
- package/sdk/sessions.d.ts.map +1 -1
- package/sdk/sessions.js +10 -0
- package/sdk/sessions.js.map +1 -1
- package/src/funcs/digitalWalletsSessionsPazeMobileSessionCreate.ts +232 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/definitionfield.ts +5 -0
- package/src/models/components/index.ts +5 -0
- package/src/models/components/pazeclient.ts +42 -0
- package/src/models/components/pazecobranditem.ts +38 -0
- package/src/models/components/pazemobilesessioncreate.ts +54 -0
- package/src/models/components/pazemobilesessioncreaterequest.ts +212 -0
- package/src/models/components/pazetransactionvalue.ts +40 -0
- package/src/models/operations/createpazemobilesession.ts +51 -0
- package/src/models/operations/index.ts +1 -0
- package/src/sdk/sessions.ts +20 -0
- package/src/types/async.ts +8 -7
- package/types/async.d.ts.map +1 -1
- package/types/async.js +8 -7
- package/types/async.js.map +1 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as components from "../components/index.js";
|
|
8
|
+
|
|
9
|
+
export type CreatePazeMobileSessionGlobals = {
|
|
10
|
+
merchantAccountId?: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export type CreatePazeMobileSessionRequest = {
|
|
14
|
+
/**
|
|
15
|
+
* The ID of the merchant account to use for this request.
|
|
16
|
+
*/
|
|
17
|
+
merchantAccountId?: string | null | undefined;
|
|
18
|
+
pazeMobileSessionCreateRequest: components.PazeMobileSessionCreateRequest;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export type CreatePazeMobileSessionRequest$Outbound = {
|
|
23
|
+
merchantAccountId?: string | null | undefined;
|
|
24
|
+
PazeMobileSessionCreateRequest:
|
|
25
|
+
components.PazeMobileSessionCreateRequest$Outbound;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const CreatePazeMobileSessionRequest$outboundSchema: z.ZodType<
|
|
30
|
+
CreatePazeMobileSessionRequest$Outbound,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
CreatePazeMobileSessionRequest
|
|
33
|
+
> = z.object({
|
|
34
|
+
merchantAccountId: z.nullable(z.string()).optional(),
|
|
35
|
+
pazeMobileSessionCreateRequest:
|
|
36
|
+
components.PazeMobileSessionCreateRequest$outboundSchema,
|
|
37
|
+
}).transform((v) => {
|
|
38
|
+
return remap$(v, {
|
|
39
|
+
pazeMobileSessionCreateRequest: "PazeMobileSessionCreateRequest",
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export function createPazeMobileSessionRequestToJSON(
|
|
44
|
+
createPazeMobileSessionRequest: CreatePazeMobileSessionRequest,
|
|
45
|
+
): string {
|
|
46
|
+
return JSON.stringify(
|
|
47
|
+
CreatePazeMobileSessionRequest$outboundSchema.parse(
|
|
48
|
+
createPazeMobileSessionRequest,
|
|
49
|
+
),
|
|
50
|
+
);
|
|
51
|
+
}
|
|
@@ -24,6 +24,7 @@ export * from "./createpaymentservicedefinitionsession.js";
|
|
|
24
24
|
export * from "./createpaymentservicesession.js";
|
|
25
25
|
export * from "./createpayout.js";
|
|
26
26
|
export * from "./createpazedigitalwalletsession.js";
|
|
27
|
+
export * from "./createpazemobilesession.js";
|
|
27
28
|
export * from "./createreportexecutionurl.js";
|
|
28
29
|
export * from "./createthreedsconfiguration.js";
|
|
29
30
|
export * from "./createthreedsscenario.js";
|
package/src/sdk/sessions.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { digitalWalletsSessionsApplePay } from "../funcs/digitalWalletsSessionsA
|
|
|
6
6
|
import { digitalWalletsSessionsClickToPay } from "../funcs/digitalWalletsSessionsClickToPay.js";
|
|
7
7
|
import { digitalWalletsSessionsGooglePay } from "../funcs/digitalWalletsSessionsGooglePay.js";
|
|
8
8
|
import { digitalWalletsSessionsPaze } from "../funcs/digitalWalletsSessionsPaze.js";
|
|
9
|
+
import { digitalWalletsSessionsPazeMobileSessionCreate } from "../funcs/digitalWalletsSessionsPazeMobileSessionCreate.js";
|
|
9
10
|
import { digitalWalletsSessionsPazeMobileSessionReview } from "../funcs/digitalWalletsSessionsPazeMobileSessionReview.js";
|
|
10
11
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
12
|
import * as components from "../models/components/index.js";
|
|
@@ -51,6 +52,25 @@ export class Sessions extends ClientSDK {
|
|
|
51
52
|
));
|
|
52
53
|
}
|
|
53
54
|
|
|
55
|
+
/**
|
|
56
|
+
* Create a Paze mobile session
|
|
57
|
+
*
|
|
58
|
+
* @remarks
|
|
59
|
+
* Create a mobile session for use with Paze.
|
|
60
|
+
*/
|
|
61
|
+
async pazeMobileSessionCreate(
|
|
62
|
+
pazeMobileSessionCreateRequest: components.PazeMobileSessionCreateRequest,
|
|
63
|
+
merchantAccountId?: string | null | undefined,
|
|
64
|
+
options?: RequestOptions,
|
|
65
|
+
): Promise<components.PazeMobileSessionCreate> {
|
|
66
|
+
return unwrapAsync(digitalWalletsSessionsPazeMobileSessionCreate(
|
|
67
|
+
this,
|
|
68
|
+
pazeMobileSessionCreateRequest,
|
|
69
|
+
merchantAccountId,
|
|
70
|
+
options,
|
|
71
|
+
));
|
|
72
|
+
}
|
|
73
|
+
|
|
54
74
|
/**
|
|
55
75
|
* Create a Paze session
|
|
56
76
|
*
|
package/src/types/async.ts
CHANGED
|
@@ -21,16 +21,17 @@ export type APICall =
|
|
|
21
21
|
|
|
22
22
|
export class APIPromise<T> implements Promise<T> {
|
|
23
23
|
readonly #promise: Promise<[T, APICall]>;
|
|
24
|
-
|
|
24
|
+
#unwrapped: Promise<T> | null;
|
|
25
25
|
|
|
26
26
|
readonly [Symbol.toStringTag] = "APIPromise";
|
|
27
27
|
|
|
28
28
|
constructor(p: [T, APICall] | Promise<[T, APICall]>) {
|
|
29
29
|
this.#promise = p instanceof Promise ? p : Promise.resolve(p);
|
|
30
|
-
this.#unwrapped =
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
#getUnwrapped(): Promise<T> {
|
|
34
|
+
return (this.#unwrapped ??= this.#promise.then(([value]) => value));
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
then<TResult1 = T, TResult2 = never>(
|
|
@@ -55,11 +56,11 @@ export class APIPromise<T> implements Promise<T> {
|
|
|
55
56
|
| null
|
|
56
57
|
| undefined,
|
|
57
58
|
): Promise<T | TResult> {
|
|
58
|
-
return this.#
|
|
59
|
+
return this.#getUnwrapped().catch(onrejected);
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
finally(onfinally?: (() => void) | null | undefined): Promise<T> {
|
|
62
|
-
return this.#
|
|
63
|
+
return this.#getUnwrapped().finally(onfinally);
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
$inspect(): Promise<[T, APICall]> {
|
package/types/async.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../src/types/async.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,OAAO,GACf;IACE,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,GACD;IACE,MAAM,EAAE,eAAe,CA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AC,QAAQ,CAAC,CAAC,GAChD,IAAI,GACJ,SAAS,EACb,UAAU,CAAC,EACP,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GACnD,IAAI,GACJ,SAAS,GACZ,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAO/B,KAAK,CAAC,OAAO,GAAG,KAAK,EACnB,UAAU,CAAC,EACP,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,GACjD,IAAI,GACJ,SAAS,GACZ,OAAO,CAAC,CAAC,GAAG,OAAO,CAAC;IAIvB,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC;IAIhE,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;CAGlC"}
|
package/types/async.js
CHANGED
|
@@ -13,32 +13,33 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _APIPromise_promise, _APIPromise_unwrapped, _a;
|
|
16
|
+
var _APIPromise_instances, _APIPromise_promise, _APIPromise_unwrapped, _APIPromise_getUnwrapped, _a;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.APIPromise = void 0;
|
|
19
19
|
class APIPromise {
|
|
20
20
|
constructor(p) {
|
|
21
|
+
_APIPromise_instances.add(this);
|
|
21
22
|
_APIPromise_promise.set(this, void 0);
|
|
22
23
|
_APIPromise_unwrapped.set(this, void 0);
|
|
23
24
|
this[_a] = "APIPromise";
|
|
24
25
|
__classPrivateFieldSet(this, _APIPromise_promise, p instanceof Promise ? p : Promise.resolve(p), "f");
|
|
25
|
-
__classPrivateFieldSet(this, _APIPromise_unwrapped, p instanceof Promise
|
|
26
|
-
? __classPrivateFieldGet(this, _APIPromise_promise, "f").then(([value]) => value)
|
|
27
|
-
: Promise.resolve(p[0]), "f");
|
|
26
|
+
__classPrivateFieldSet(this, _APIPromise_unwrapped, p instanceof Promise ? null : Promise.resolve(p[0]), "f");
|
|
28
27
|
}
|
|
29
28
|
then(onfulfilled, onrejected) {
|
|
30
29
|
return __classPrivateFieldGet(this, _APIPromise_promise, "f").then(onfulfilled ? ([value]) => onfulfilled(value) : void 0, onrejected);
|
|
31
30
|
}
|
|
32
31
|
catch(onrejected) {
|
|
33
|
-
return __classPrivateFieldGet(this,
|
|
32
|
+
return __classPrivateFieldGet(this, _APIPromise_instances, "m", _APIPromise_getUnwrapped).call(this).catch(onrejected);
|
|
34
33
|
}
|
|
35
34
|
finally(onfinally) {
|
|
36
|
-
return __classPrivateFieldGet(this,
|
|
35
|
+
return __classPrivateFieldGet(this, _APIPromise_instances, "m", _APIPromise_getUnwrapped).call(this).finally(onfinally);
|
|
37
36
|
}
|
|
38
37
|
$inspect() {
|
|
39
38
|
return __classPrivateFieldGet(this, _APIPromise_promise, "f");
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
41
|
exports.APIPromise = APIPromise;
|
|
43
|
-
_APIPromise_promise = new WeakMap(), _APIPromise_unwrapped = new WeakMap(), _a = Symbol.toStringTag
|
|
42
|
+
_APIPromise_promise = new WeakMap(), _APIPromise_unwrapped = new WeakMap(), _APIPromise_instances = new WeakSet(), _a = Symbol.toStringTag, _APIPromise_getUnwrapped = function _APIPromise_getUnwrapped() {
|
|
43
|
+
return (__classPrivateFieldSet(this, _APIPromise_unwrapped, __classPrivateFieldGet(this, _APIPromise_unwrapped, "f") ?? __classPrivateFieldGet(this, _APIPromise_promise, "f").then(([value]) => value), "f"));
|
|
44
|
+
};
|
|
44
45
|
//# sourceMappingURL=async.js.map
|
package/types/async.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async.js","sourceRoot":"","sources":["../src/types/async.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;AAmBH,MAAa,UAAU;IAMrB,YAAY,CAAuC
|
|
1
|
+
{"version":3,"file":"async.js","sourceRoot":"","sources":["../src/types/async.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;AAmBH,MAAa,UAAU;IAMrB,YAAY,CAAuC;;QAL1C,sCAAgC;QACzC,wCAA8B;QAErB,QAAoB,GAAG,YAAY,CAAC;QAG3C,uBAAA,IAAI,uBAAY,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,MAAA,CAAC;QAC9D,uBAAA,IAAI,yBAAc,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAA,CAAC;IACxE,CAAC;IAMD,IAAI,CACF,WAGa,EACb,UAGa;QAEb,OAAO,uBAAA,IAAI,2BAAS,CAAC,IAAI,CACvB,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EACtD,UAAU,CACX,CAAC;IACJ,CAAC;IAED,KAAK,CACH,UAGa;QAEb,OAAO,uBAAA,IAAI,uDAAc,MAAlB,IAAI,CAAgB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAChD,CAAC;IAED,OAAO,CAAC,SAA2C;QACjD,OAAO,uBAAA,IAAI,uDAAc,MAAlB,IAAI,CAAgB,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACjD,CAAC;IAED,QAAQ;QACN,OAAO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