@gr4vy/sdk 1.5.8 → 1.6.1
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/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/checkoutsession.d.ts +15 -0
- package/models/components/checkoutsession.d.ts.map +1 -1
- package/models/components/checkoutsession.js +8 -0
- package/models/components/checkoutsession.js.map +1 -1
- package/models/components/checkoutsessioncreate.d.ts +15 -0
- package/models/components/checkoutsessioncreate.d.ts.map +1 -1
- package/models/components/checkoutsessioncreate.js +8 -0
- package/models/components/checkoutsessioncreate.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/checkoutsession.ts +23 -0
- package/src/models/components/checkoutsessioncreate.ts +23 -0
- package/docs/sdks/all/README.md +0 -98
- package/docs/sdks/auditlogs/README.md +0 -100
- package/docs/sdks/balances/README.md +0 -123
- package/docs/sdks/buyers/README.md +0 -461
- package/docs/sdks/cardschemedefinitions/README.md +0 -96
- package/docs/sdks/checkoutsessions/README.md +0 -367
- package/docs/sdks/cryptogram/README.md +0 -103
- package/docs/sdks/digitalwallets/README.md +0 -465
- package/docs/sdks/domains/README.md +0 -197
- package/docs/sdks/events/README.md +0 -99
- package/docs/sdks/executions/README.md +0 -285
- package/docs/sdks/giftcards/README.md +0 -376
- package/docs/sdks/gr4vygiftcards/README.md +0 -98
- package/docs/sdks/gr4vypaymentmethods/README.md +0 -96
- package/docs/sdks/gr4vyrefunds/README.md +0 -279
- package/docs/sdks/jobs/README.md +0 -107
- package/docs/sdks/merchantaccounts/README.md +0 -382
- package/docs/sdks/networktokens/README.md +0 -467
- package/docs/sdks/paymentlinks/README.md +0 -381
- package/docs/sdks/paymentmethods/README.md +0 -376
- package/docs/sdks/paymentoptions/README.md +0 -97
- package/docs/sdks/paymentservicedefinitions/README.md +0 -281
- package/docs/sdks/paymentservices/README.md +0 -706
- package/docs/sdks/paymentservicetokens/README.md +0 -286
- package/docs/sdks/payouts/README.md +0 -298
- package/docs/sdks/refunds/README.md +0 -97
- package/docs/sdks/reportexecutions/README.md +0 -100
- package/docs/sdks/reports/README.md +0 -403
- package/docs/sdks/sessions/README.md +0 -289
- package/docs/sdks/settlements/README.md +0 -188
- package/docs/sdks/shippingdetails/README.md +0 -462
- package/docs/sdks/transactions/README.md +0 -752
- package/examples/README.md +0 -31
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: "1.
|
|
48
|
-
readonly genVersion: "2.
|
|
49
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.
|
|
47
|
+
readonly sdkVersion: "1.6.1";
|
|
48
|
+
readonly genVersion: "2.739.1";
|
|
49
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.6.1 2.739.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: "1.
|
|
41
|
-
genVersion: "2.
|
|
42
|
-
userAgent: "speakeasy-sdk/typescript 1.
|
|
40
|
+
sdkVersion: "1.6.1",
|
|
41
|
+
genVersion: "2.739.1",
|
|
42
|
+
userAgent: "speakeasy-sdk/typescript 1.6.1 2.739.1 1.0.0 @gr4vy/sdk",
|
|
43
43
|
};
|
|
44
44
|
//# sourceMappingURL=config.js.map
|
|
@@ -24,6 +24,18 @@ export type CheckoutSession = {
|
|
|
24
24
|
* The airline addendum data which describes the airline booking associated with this transaction.
|
|
25
25
|
*/
|
|
26
26
|
airline?: Airline | null | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* The total amount for this transaction.
|
|
29
|
+
*/
|
|
30
|
+
amount?: number | null | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The currency code for this transaction.
|
|
33
|
+
*/
|
|
34
|
+
currency?: string | null | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* The unique identifier of an existing payment service. When provided, the created transaction will be processed by the given payment service and any routing rules will be skipped.
|
|
37
|
+
*/
|
|
38
|
+
paymentServiceId?: string | null | undefined;
|
|
27
39
|
/**
|
|
28
40
|
* Always `checkout-session`
|
|
29
41
|
*/
|
|
@@ -51,6 +63,9 @@ export type CheckoutSession$Outbound = {
|
|
|
51
63
|
} | null | undefined;
|
|
52
64
|
buyer?: GuestBuyerOutput$Outbound | null | undefined;
|
|
53
65
|
airline?: Airline$Outbound | null | undefined;
|
|
66
|
+
amount?: number | null | undefined;
|
|
67
|
+
currency?: string | null | undefined;
|
|
68
|
+
payment_service_id?: string | null | undefined;
|
|
54
69
|
type: "checkout-session";
|
|
55
70
|
id: string;
|
|
56
71
|
expires_at: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkoutsession.d.ts","sourceRoot":"","sources":["../../src/models/components/checkoutsession.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,OAAO,EAEP,gBAAgB,EAEjB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,QAAQ,EAER,iBAAiB,EAElB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,kCAAkC,EAElC,2CAA2C,EAE5C,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,gBAAgB,EAEhB,y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E,GAAG,IAAI,GAAG,SAAS,CAAC;IACtD,KAAK,CAAC,EAAE,yBAAyB,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD,OAAO,CAAC,EAAE,gBAAgB,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C,IAAI,EAAE,kBAAkB,CAAC;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EACX,2CAA2C,GAC3C,IAAI,GACJ,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAqBf,CAAC;AAEH;;;GAGG;AACH,yBAAiB,gBAAgB,CAAC;IAChC,+DAA+D;IACxD,MAAM,aAAa,mDAAgC,CAAC;IAC3D,gEAAgE;IACzD,MAAM,cAAc,oEAAiC,CAAC;IAC7D,0DAA0D;IAC1D,KAAY,QAAQ,GAAG,wBAAwB,CAAC;CACjD;AAED,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
|
|
@@ -52,6 +52,9 @@ exports.CheckoutSession$inboundSchema = z.object({
|
|
|
52
52
|
metadata: z.nullable(z.record(z.string())).optional(),
|
|
53
53
|
buyer: z.nullable(guestbuyeroutput_js_1.GuestBuyerOutput$inboundSchema).optional(),
|
|
54
54
|
airline: z.nullable(airline_js_1.Airline$inboundSchema).optional(),
|
|
55
|
+
amount: z.nullable(z.number().int()).optional(),
|
|
56
|
+
currency: z.nullable(z.string()).optional(),
|
|
57
|
+
payment_service_id: z.nullable(z.string()).optional(),
|
|
55
58
|
type: z.literal("checkout-session").default("checkout-session"),
|
|
56
59
|
id: z.string(),
|
|
57
60
|
expires_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
@@ -60,6 +63,7 @@ exports.CheckoutSession$inboundSchema = z.object({
|
|
|
60
63
|
}).transform((v) => {
|
|
61
64
|
return (0, primitives_js_1.remap)(v, {
|
|
62
65
|
"cart_items": "cartItems",
|
|
66
|
+
"payment_service_id": "paymentServiceId",
|
|
63
67
|
"expires_at": "expiresAt",
|
|
64
68
|
"payment_method": "paymentMethod",
|
|
65
69
|
});
|
|
@@ -70,6 +74,9 @@ exports.CheckoutSession$outboundSchema = z.object({
|
|
|
70
74
|
metadata: z.nullable(z.record(z.string())).optional(),
|
|
71
75
|
buyer: z.nullable(guestbuyeroutput_js_1.GuestBuyerOutput$outboundSchema).optional(),
|
|
72
76
|
airline: z.nullable(airline_js_1.Airline$outboundSchema).optional(),
|
|
77
|
+
amount: z.nullable(z.number().int()).optional(),
|
|
78
|
+
currency: z.nullable(z.string()).optional(),
|
|
79
|
+
paymentServiceId: z.nullable(z.string()).optional(),
|
|
73
80
|
type: z.literal("checkout-session").default("checkout-session"),
|
|
74
81
|
id: z.string(),
|
|
75
82
|
expiresAt: z.date().transform(v => v.toISOString()),
|
|
@@ -78,6 +85,7 @@ exports.CheckoutSession$outboundSchema = z.object({
|
|
|
78
85
|
}).transform((v) => {
|
|
79
86
|
return (0, primitives_js_1.remap)(v, {
|
|
80
87
|
cartItems: "cart_items",
|
|
88
|
+
paymentServiceId: "payment_service_id",
|
|
81
89
|
expiresAt: "expires_at",
|
|
82
90
|
paymentMethod: "payment_method",
|
|
83
91
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkoutsession.js","sourceRoot":"","sources":["../../src/models/components/checkoutsession.ts"],"names":[],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AAE;IACnD,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,OAAO,CAAC,kBAA2B,CAAC;IACxE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IACnD,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,yFAAiD,CAAC;SACzE,QAAQ,EAAE;CACd,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;QACvB,gBAAgB,EAAE,oBAAoB;QACtC,SAAS,EAAE,YAAY;QACvB,aAAa,EAAE,gBAAgB;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,gBAAgB,CAOhC;AAPD,WAAiB,gBAAgB;IAC/B,+DAA+D;IAClD,8BAAa,GAAG,qCAA6B,CAAC;IAC3D,gEAAgE;IACnD,+BAAc,GAAG,sCAA8B,CAAC;AAG/D,CAAC,EAPgB,gBAAgB,gCAAhB,gBAAgB,QAOhC;AAED,SAAgB,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,sCAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC;AAED,SAAgB,uBAAuB,CACrC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
|
|
@@ -23,6 +23,18 @@ export type CheckoutSessionCreate = {
|
|
|
23
23
|
* The airline addendum data which describes the airline booking associated with this transaction.
|
|
24
24
|
*/
|
|
25
25
|
airline?: Airline | null | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* The total amount for this transaction.
|
|
28
|
+
*/
|
|
29
|
+
amount?: number | null | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* The currency code for this transaction.
|
|
32
|
+
*/
|
|
33
|
+
currency?: string | null | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The unique identifier of an existing payment service. When provided, the created transaction will be processed by the given payment service and any routing rules will be skipped.
|
|
36
|
+
*/
|
|
37
|
+
paymentServiceId?: string | null | undefined;
|
|
26
38
|
/**
|
|
27
39
|
* The time in seconds when this checkout session expires.
|
|
28
40
|
*/
|
|
@@ -38,6 +50,9 @@ export type CheckoutSessionCreate$Outbound = {
|
|
|
38
50
|
} | null | undefined;
|
|
39
51
|
buyer?: GuestBuyerInput$Outbound | null | undefined;
|
|
40
52
|
airline?: Airline$Outbound | null | undefined;
|
|
53
|
+
amount?: number | null | undefined;
|
|
54
|
+
currency?: string | null | undefined;
|
|
55
|
+
payment_service_id?: string | null | undefined;
|
|
41
56
|
expires_in: number;
|
|
42
57
|
};
|
|
43
58
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkoutsessioncreate.d.ts","sourceRoot":"","sources":["../../src/models/components/checkoutsessioncreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,OAAO,EAEP,gBAAgB,EAEjB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,QAAQ,EAER,iBAAiB,EAElB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,SAAS,CA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9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CAgBrB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,sBAAsB,CAAC;IACtC,qEAAqE;IAC9D,MAAM,aAAa,yDAAsC,CAAC;IACjE,sEAAsE;IAC/D,MAAM,cAAc,gFAAuC,CAAC;IACnE,gEAAgE;IAChE,KAAY,QAAQ,GAAG,8BAA8B,CAAC;CACvD;AAED,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AAED,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -51,10 +51,14 @@ exports.CheckoutSessionCreate$inboundSchema = z.object({
|
|
|
51
51
|
metadata: z.nullable(z.record(z.string())).optional(),
|
|
52
52
|
buyer: z.nullable(guestbuyerinput_js_1.GuestBuyerInput$inboundSchema).optional(),
|
|
53
53
|
airline: z.nullable(airline_js_1.Airline$inboundSchema).optional(),
|
|
54
|
+
amount: z.nullable(z.number().int()).optional(),
|
|
55
|
+
currency: z.nullable(z.string()).optional(),
|
|
56
|
+
payment_service_id: z.nullable(z.string()).optional(),
|
|
54
57
|
expires_in: z.number().default(3600),
|
|
55
58
|
}).transform((v) => {
|
|
56
59
|
return (0, primitives_js_1.remap)(v, {
|
|
57
60
|
"cart_items": "cartItems",
|
|
61
|
+
"payment_service_id": "paymentServiceId",
|
|
58
62
|
"expires_in": "expiresIn",
|
|
59
63
|
});
|
|
60
64
|
});
|
|
@@ -64,10 +68,14 @@ exports.CheckoutSessionCreate$outboundSchema = z.object({
|
|
|
64
68
|
metadata: z.nullable(z.record(z.string())).optional(),
|
|
65
69
|
buyer: z.nullable(guestbuyerinput_js_1.GuestBuyerInput$outboundSchema).optional(),
|
|
66
70
|
airline: z.nullable(airline_js_1.Airline$outboundSchema).optional(),
|
|
71
|
+
amount: z.nullable(z.number().int()).optional(),
|
|
72
|
+
currency: z.nullable(z.string()).optional(),
|
|
73
|
+
paymentServiceId: z.nullable(z.string()).optional(),
|
|
67
74
|
expiresIn: z.number().default(3600),
|
|
68
75
|
}).transform((v) => {
|
|
69
76
|
return (0, primitives_js_1.remap)(v, {
|
|
70
77
|
cartItems: "cart_items",
|
|
78
|
+
paymentServiceId: "payment_service_id",
|
|
71
79
|
expiresIn: "expires_in",
|
|
72
80
|
});
|
|
73
81
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkoutsessioncreate.js","sourceRoot":"","sources":["../../src/models/components/checkoutsessioncreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"checkoutsessioncreate.js","sourceRoot":"","sources":["../../src/models/components/checkoutsessioncreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkIH,kEAMC;AAED,sEAQC;AAhJD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,6CAKsB;AACtB,+CAKuB;AACvB,6DAK8B;AAqC9B,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,oCAAsB,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClE,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IACrD,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,kDAA6B,CAAC,CAAC,QAAQ,EAAE;IAC3D,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,kCAAqB,CAAC,CAAC,QAAQ,EAAE;IACrD,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAA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,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACnD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;CACpC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;QACvB,gBAAgB,EAAE,oBAAoB;QACtC,SAAS,EAAE,YAAY;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,2CAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,4CAAoC,CAAC;AAGrE,CAAC,EAPgB,sBAAsB,sCAAtB,sBAAsB,QAOtC;AAED,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,4CAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AAED,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
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: "1.
|
|
81
|
-
genVersion: "2.
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 1.
|
|
80
|
+
sdkVersion: "1.6.1",
|
|
81
|
+
genVersion: "2.739.1",
|
|
82
|
+
userAgent: "speakeasy-sdk/typescript 1.6.1 2.739.1 1.0.0 @gr4vy/sdk",
|
|
83
83
|
} as const;
|
|
@@ -49,6 +49,18 @@ export type CheckoutSession = {
|
|
|
49
49
|
* The airline addendum data which describes the airline booking associated with this transaction.
|
|
50
50
|
*/
|
|
51
51
|
airline?: Airline | null | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* The total amount for this transaction.
|
|
54
|
+
*/
|
|
55
|
+
amount?: number | null | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* The currency code for this transaction.
|
|
58
|
+
*/
|
|
59
|
+
currency?: string | null | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* The unique identifier of an existing payment service. When provided, the created transaction will be processed by the given payment service and any routing rules will be skipped.
|
|
62
|
+
*/
|
|
63
|
+
paymentServiceId?: string | null | undefined;
|
|
52
64
|
/**
|
|
53
65
|
* Always `checkout-session`
|
|
54
66
|
*/
|
|
@@ -77,6 +89,9 @@ export const CheckoutSession$inboundSchema: z.ZodType<
|
|
|
77
89
|
metadata: z.nullable(z.record(z.string())).optional(),
|
|
78
90
|
buyer: z.nullable(GuestBuyerOutput$inboundSchema).optional(),
|
|
79
91
|
airline: z.nullable(Airline$inboundSchema).optional(),
|
|
92
|
+
amount: z.nullable(z.number().int()).optional(),
|
|
93
|
+
currency: z.nullable(z.string()).optional(),
|
|
94
|
+
payment_service_id: z.nullable(z.string()).optional(),
|
|
80
95
|
type: z.literal("checkout-session").default("checkout-session"),
|
|
81
96
|
id: z.string(),
|
|
82
97
|
expires_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
@@ -85,6 +100,7 @@ export const CheckoutSession$inboundSchema: z.ZodType<
|
|
|
85
100
|
}).transform((v) => {
|
|
86
101
|
return remap$(v, {
|
|
87
102
|
"cart_items": "cartItems",
|
|
103
|
+
"payment_service_id": "paymentServiceId",
|
|
88
104
|
"expires_at": "expiresAt",
|
|
89
105
|
"payment_method": "paymentMethod",
|
|
90
106
|
});
|
|
@@ -96,6 +112,9 @@ export type CheckoutSession$Outbound = {
|
|
|
96
112
|
metadata?: { [k: string]: string } | null | undefined;
|
|
97
113
|
buyer?: GuestBuyerOutput$Outbound | null | undefined;
|
|
98
114
|
airline?: Airline$Outbound | null | undefined;
|
|
115
|
+
amount?: number | null | undefined;
|
|
116
|
+
currency?: string | null | undefined;
|
|
117
|
+
payment_service_id?: string | null | undefined;
|
|
99
118
|
type: "checkout-session";
|
|
100
119
|
id: string;
|
|
101
120
|
expires_at: string;
|
|
@@ -115,6 +134,9 @@ export const CheckoutSession$outboundSchema: z.ZodType<
|
|
|
115
134
|
metadata: z.nullable(z.record(z.string())).optional(),
|
|
116
135
|
buyer: z.nullable(GuestBuyerOutput$outboundSchema).optional(),
|
|
117
136
|
airline: z.nullable(Airline$outboundSchema).optional(),
|
|
137
|
+
amount: z.nullable(z.number().int()).optional(),
|
|
138
|
+
currency: z.nullable(z.string()).optional(),
|
|
139
|
+
paymentServiceId: z.nullable(z.string()).optional(),
|
|
118
140
|
type: z.literal("checkout-session").default("checkout-session" as const),
|
|
119
141
|
id: z.string(),
|
|
120
142
|
expiresAt: z.date().transform(v => v.toISOString()),
|
|
@@ -123,6 +145,7 @@ export const CheckoutSession$outboundSchema: z.ZodType<
|
|
|
123
145
|
}).transform((v) => {
|
|
124
146
|
return remap$(v, {
|
|
125
147
|
cartItems: "cart_items",
|
|
148
|
+
paymentServiceId: "payment_service_id",
|
|
126
149
|
expiresAt: "expires_at",
|
|
127
150
|
paymentMethod: "payment_method",
|
|
128
151
|
});
|
|
@@ -43,6 +43,18 @@ export type CheckoutSessionCreate = {
|
|
|
43
43
|
* The airline addendum data which describes the airline booking associated with this transaction.
|
|
44
44
|
*/
|
|
45
45
|
airline?: Airline | null | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* The total amount for this transaction.
|
|
48
|
+
*/
|
|
49
|
+
amount?: number | null | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* The currency code for this transaction.
|
|
52
|
+
*/
|
|
53
|
+
currency?: string | null | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* The unique identifier of an existing payment service. When provided, the created transaction will be processed by the given payment service and any routing rules will be skipped.
|
|
56
|
+
*/
|
|
57
|
+
paymentServiceId?: string | null | undefined;
|
|
46
58
|
/**
|
|
47
59
|
* The time in seconds when this checkout session expires.
|
|
48
60
|
*/
|
|
@@ -59,10 +71,14 @@ export const CheckoutSessionCreate$inboundSchema: z.ZodType<
|
|
|
59
71
|
metadata: z.nullable(z.record(z.string())).optional(),
|
|
60
72
|
buyer: z.nullable(GuestBuyerInput$inboundSchema).optional(),
|
|
61
73
|
airline: z.nullable(Airline$inboundSchema).optional(),
|
|
74
|
+
amount: z.nullable(z.number().int()).optional(),
|
|
75
|
+
currency: z.nullable(z.string()).optional(),
|
|
76
|
+
payment_service_id: z.nullable(z.string()).optional(),
|
|
62
77
|
expires_in: z.number().default(3600),
|
|
63
78
|
}).transform((v) => {
|
|
64
79
|
return remap$(v, {
|
|
65
80
|
"cart_items": "cartItems",
|
|
81
|
+
"payment_service_id": "paymentServiceId",
|
|
66
82
|
"expires_in": "expiresIn",
|
|
67
83
|
});
|
|
68
84
|
});
|
|
@@ -73,6 +89,9 @@ export type CheckoutSessionCreate$Outbound = {
|
|
|
73
89
|
metadata?: { [k: string]: string } | null | undefined;
|
|
74
90
|
buyer?: GuestBuyerInput$Outbound | null | undefined;
|
|
75
91
|
airline?: Airline$Outbound | null | undefined;
|
|
92
|
+
amount?: number | null | undefined;
|
|
93
|
+
currency?: string | null | undefined;
|
|
94
|
+
payment_service_id?: string | null | undefined;
|
|
76
95
|
expires_in: number;
|
|
77
96
|
};
|
|
78
97
|
|
|
@@ -86,10 +105,14 @@ export const CheckoutSessionCreate$outboundSchema: z.ZodType<
|
|
|
86
105
|
metadata: z.nullable(z.record(z.string())).optional(),
|
|
87
106
|
buyer: z.nullable(GuestBuyerInput$outboundSchema).optional(),
|
|
88
107
|
airline: z.nullable(Airline$outboundSchema).optional(),
|
|
108
|
+
amount: z.nullable(z.number().int()).optional(),
|
|
109
|
+
currency: z.nullable(z.string()).optional(),
|
|
110
|
+
paymentServiceId: z.nullable(z.string()).optional(),
|
|
89
111
|
expiresIn: z.number().default(3600),
|
|
90
112
|
}).transform((v) => {
|
|
91
113
|
return remap$(v, {
|
|
92
114
|
cartItems: "cart_items",
|
|
115
|
+
paymentServiceId: "payment_service_id",
|
|
93
116
|
expiresIn: "expires_in",
|
|
94
117
|
});
|
|
95
118
|
});
|
package/docs/sdks/all/README.md
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
# All
|
|
2
|
-
(*transactions.refunds.all*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
### Available Operations
|
|
7
|
-
|
|
8
|
-
* [create](#create) - Create batch transaction refund
|
|
9
|
-
|
|
10
|
-
## create
|
|
11
|
-
|
|
12
|
-
Create a refund for all instruments on a transaction.
|
|
13
|
-
|
|
14
|
-
### Example Usage
|
|
15
|
-
|
|
16
|
-
<!-- UsageSnippet language="typescript" operationID="create_full_transaction_refund" method="post" path="/transactions/{transaction_id}/refunds/all" -->
|
|
17
|
-
```typescript
|
|
18
|
-
import { Gr4vy, withToken } from "@gr4vy/sdk";
|
|
19
|
-
import fs from "fs";
|
|
20
|
-
|
|
21
|
-
const gr4vy = new Gr4vy({
|
|
22
|
-
id: "example",
|
|
23
|
-
server: "sandbox",
|
|
24
|
-
merchantAccountId: "default",
|
|
25
|
-
bearerAuth: withToken({
|
|
26
|
-
privateKey: fs.readFileSync("private_key.pem", "utf8"),
|
|
27
|
-
}),
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
async function run() {
|
|
31
|
-
const result = await gr4vy.transactions.refunds.all.create("7099948d-7286-47e4-aad8-b68f7eb44591");
|
|
32
|
-
|
|
33
|
-
console.log(result);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
run();
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Standalone function
|
|
40
|
-
|
|
41
|
-
The standalone function version of this method:
|
|
42
|
-
|
|
43
|
-
```typescript
|
|
44
|
-
import { Gr4vyCore } from "@gr4vy/sdk/core.js";
|
|
45
|
-
import { transactionsRefundsAllCreate } from "@gr4vy/sdk/funcs/transactionsRefundsAllCreate.js";
|
|
46
|
-
|
|
47
|
-
// Use `Gr4vyCore` for best tree-shaking performance.
|
|
48
|
-
// You can create one instance of it to use across an application.
|
|
49
|
-
const gr4vy = new Gr4vyCore({
|
|
50
|
-
merchantAccountId: "<id>",
|
|
51
|
-
bearerAuth: process.env["GR4VY_BEARER_AUTH"] ?? "",
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
async function run() {
|
|
55
|
-
const res = await transactionsRefundsAllCreate(gr4vy, "7099948d-7286-47e4-aad8-b68f7eb44591");
|
|
56
|
-
if (res.ok) {
|
|
57
|
-
const { value: result } = res;
|
|
58
|
-
console.log(result);
|
|
59
|
-
} else {
|
|
60
|
-
console.log("transactionsRefundsAllCreate failed:", res.error);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
run();
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Parameters
|
|
68
|
-
|
|
69
|
-
| Parameter | Type | Required | Description | Example |
|
|
70
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
71
|
-
| `transactionId` | *string* | :heavy_check_mark: | The ID of the transaction | [object Object] |
|
|
72
|
-
| `merchantAccountId` | *string* | :heavy_minus_sign: | The ID of the merchant account to use for this request. | |
|
|
73
|
-
| `transactionRefundAllCreate` | [components.TransactionRefundAllCreate](../../models/components/transactionrefundallcreate.md) | :heavy_minus_sign: | N/A | |
|
|
74
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | |
|
|
75
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | |
|
|
76
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | |
|
|
77
|
-
|
|
78
|
-
### Response
|
|
79
|
-
|
|
80
|
-
**Promise\<[components.Refunds](../../models/components/refunds.md)\>**
|
|
81
|
-
|
|
82
|
-
### Errors
|
|
83
|
-
|
|
84
|
-
| Error Type | Status Code | Content Type |
|
|
85
|
-
| -------------------------- | -------------------------- | -------------------------- |
|
|
86
|
-
| errors.Error400 | 400 | application/json |
|
|
87
|
-
| errors.Error401 | 401 | application/json |
|
|
88
|
-
| errors.Error403 | 403 | application/json |
|
|
89
|
-
| errors.Error404 | 404 | application/json |
|
|
90
|
-
| errors.Error405 | 405 | application/json |
|
|
91
|
-
| errors.Error409 | 409 | application/json |
|
|
92
|
-
| errors.HTTPValidationError | 422 | application/json |
|
|
93
|
-
| errors.Error425 | 425 | application/json |
|
|
94
|
-
| errors.Error429 | 429 | application/json |
|
|
95
|
-
| errors.Error500 | 500 | application/json |
|
|
96
|
-
| errors.Error502 | 502 | application/json |
|
|
97
|
-
| errors.Error504 | 504 | application/json |
|
|
98
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
# AuditLogs
|
|
2
|
-
(*auditLogs*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
### Available Operations
|
|
7
|
-
|
|
8
|
-
* [list](#list) - List audit log entries
|
|
9
|
-
|
|
10
|
-
## list
|
|
11
|
-
|
|
12
|
-
Returns a list of activity by dashboard users.
|
|
13
|
-
|
|
14
|
-
### Example Usage
|
|
15
|
-
|
|
16
|
-
<!-- UsageSnippet language="typescript" operationID="list_audit_logs" method="get" path="/audit-logs" -->
|
|
17
|
-
```typescript
|
|
18
|
-
import { Gr4vy, withToken } from "@gr4vy/sdk";
|
|
19
|
-
import fs from "fs";
|
|
20
|
-
|
|
21
|
-
const gr4vy = new Gr4vy({
|
|
22
|
-
id: "example",
|
|
23
|
-
server: "sandbox",
|
|
24
|
-
merchantAccountId: "default",
|
|
25
|
-
bearerAuth: withToken({
|
|
26
|
-
privateKey: fs.readFileSync("private_key.pem", "utf8"),
|
|
27
|
-
}),
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
async function run() {
|
|
31
|
-
const result = await gr4vy.auditLogs.list();
|
|
32
|
-
|
|
33
|
-
for await (const page of result) {
|
|
34
|
-
console.log(page);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
run();
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
### Standalone function
|
|
42
|
-
|
|
43
|
-
The standalone function version of this method:
|
|
44
|
-
|
|
45
|
-
```typescript
|
|
46
|
-
import { Gr4vyCore } from "@gr4vy/sdk/core.js";
|
|
47
|
-
import { auditLogsList } from "@gr4vy/sdk/funcs/auditLogsList.js";
|
|
48
|
-
|
|
49
|
-
// Use `Gr4vyCore` for best tree-shaking performance.
|
|
50
|
-
// You can create one instance of it to use across an application.
|
|
51
|
-
const gr4vy = new Gr4vyCore({
|
|
52
|
-
merchantAccountId: "<id>",
|
|
53
|
-
bearerAuth: process.env["GR4VY_BEARER_AUTH"] ?? "",
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
async function run() {
|
|
57
|
-
const res = await auditLogsList(gr4vy);
|
|
58
|
-
if (res.ok) {
|
|
59
|
-
const { value: result } = res;
|
|
60
|
-
for await (const page of result) {
|
|
61
|
-
console.log(page);
|
|
62
|
-
}
|
|
63
|
-
} else {
|
|
64
|
-
console.log("auditLogsList failed:", res.error);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
run();
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### Parameters
|
|
72
|
-
|
|
73
|
-
| Parameter | Type | Required | Description |
|
|
74
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
75
|
-
| `request` | [operations.ListAuditLogsRequest](../../models/operations/listauditlogsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
76
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
77
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
78
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
79
|
-
|
|
80
|
-
### Response
|
|
81
|
-
|
|
82
|
-
**Promise\<[operations.ListAuditLogsResponse](../../models/operations/listauditlogsresponse.md)\>**
|
|
83
|
-
|
|
84
|
-
### Errors
|
|
85
|
-
|
|
86
|
-
| Error Type | Status Code | Content Type |
|
|
87
|
-
| -------------------------- | -------------------------- | -------------------------- |
|
|
88
|
-
| errors.Error400 | 400 | application/json |
|
|
89
|
-
| errors.Error401 | 401 | application/json |
|
|
90
|
-
| errors.Error403 | 403 | application/json |
|
|
91
|
-
| errors.Error404 | 404 | application/json |
|
|
92
|
-
| errors.Error405 | 405 | application/json |
|
|
93
|
-
| errors.Error409 | 409 | application/json |
|
|
94
|
-
| errors.HTTPValidationError | 422 | application/json |
|
|
95
|
-
| errors.Error425 | 425 | application/json |
|
|
96
|
-
| errors.Error429 | 429 | application/json |
|
|
97
|
-
| errors.Error500 | 500 | application/json |
|
|
98
|
-
| errors.Error502 | 502 | application/json |
|
|
99
|
-
| errors.Error504 | 504 | application/json |
|
|
100
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|