@gr4vy/sdk 2.4.4 → 2.4.5

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/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@gr4vy/sdk",
5
- "version": "2.4.4",
5
+ "version": "2.4.5",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
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.4.4";
48
- readonly genVersion: "2.926.2";
49
- readonly userAgent: "speakeasy-sdk/typescript 2.4.4 2.926.2 1.0.0 @gr4vy/sdk";
47
+ readonly sdkVersion: "2.4.5";
48
+ readonly genVersion: "2.926.8";
49
+ readonly userAgent: "speakeasy-sdk/typescript 2.4.5 2.926.8 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.4.4",
41
- genVersion: "2.926.2",
42
- userAgent: "speakeasy-sdk/typescript 2.4.4 2.926.2 1.0.0 @gr4vy/sdk",
40
+ sdkVersion: "2.4.5",
41
+ genVersion: "2.926.8",
42
+ userAgent: "speakeasy-sdk/typescript 2.4.5 2.926.8 1.0.0 @gr4vy/sdk",
43
43
  };
44
44
  //# sourceMappingURL=config.js.map
@@ -4,10 +4,15 @@ export type WorldpayVapOptions = {
4
4
  * Overrides the default report group to pass to the Worldpay VAP API.
5
5
  */
6
6
  reportGroup?: string | null | undefined;
7
+ /**
8
+ * Overrides the `orderId` passed to the Worldpay VAP API, which defaults to the Gr4vy transaction ID.
9
+ */
10
+ orderId?: string | null | undefined;
7
11
  };
8
12
  /** @internal */
9
13
  export type WorldpayVapOptions$Outbound = {
10
14
  reportGroup?: string | null | undefined;
15
+ orderId?: string | null | undefined;
11
16
  };
12
17
  /** @internal */
13
18
  export declare const WorldpayVapOptions$outboundSchema: z.ZodType<WorldpayVapOptions$Outbound, z.ZodTypeDef, WorldpayVapOptions>;
@@ -1 +1 @@
1
- {"version":3,"file":"worldpayvapoptions.d.ts","sourceRoot":"","sources":["../../src/models/components/worldpayvapoptions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAGlB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR"}
1
+ {"version":3,"file":"worldpayvapoptions.d.ts","sourceRoot":"","sources":["../../src/models/components/worldpayvapoptions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAIlB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR"}
@@ -42,6 +42,7 @@ const z = __importStar(require("zod/v3"));
42
42
  /** @internal */
43
43
  exports.WorldpayVapOptions$outboundSchema = z.object({
44
44
  reportGroup: z.nullable(z.string()).optional(),
45
+ orderId: z.nullable(z.string()).optional(),
45
46
  });
46
47
  function worldpayVapOptionsToJSON(worldpayVapOptions) {
47
48
  return JSON.stringify(exports.WorldpayVapOptions$outboundSchema.parse(worldpayVapOptions));
@@ -1 +1 @@
1
- {"version":3,"file":"worldpayvapoptions.js","sourceRoot":"","sources":["../../src/models/components/worldpayvapoptions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBH,4DAMC;AA7BD,0CAA4B;AAc5B,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAEH,SAAgB,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"worldpayvapoptions.js","sourceRoot":"","sources":["../../src/models/components/worldpayvapoptions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,4DAMC;AAnCD,0CAA4B;AAmB5B,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAEH,SAAgB,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gr4vy/sdk",
3
- "version": "2.4.4",
3
+ "version": "2.4.5",
4
4
  "author": "Gr4vy",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
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.4.4",
81
- genVersion: "2.926.2",
82
- userAgent: "speakeasy-sdk/typescript 2.4.4 2.926.2 1.0.0 @gr4vy/sdk",
80
+ sdkVersion: "2.4.5",
81
+ genVersion: "2.926.8",
82
+ userAgent: "speakeasy-sdk/typescript 2.4.5 2.926.8 1.0.0 @gr4vy/sdk",
83
83
  } as const;
@@ -9,11 +9,16 @@ export type WorldpayVapOptions = {
9
9
  * Overrides the default report group to pass to the Worldpay VAP API.
10
10
  */
11
11
  reportGroup?: string | null | undefined;
12
+ /**
13
+ * Overrides the `orderId` passed to the Worldpay VAP API, which defaults to the Gr4vy transaction ID.
14
+ */
15
+ orderId?: string | null | undefined;
12
16
  };
13
17
 
14
18
  /** @internal */
15
19
  export type WorldpayVapOptions$Outbound = {
16
20
  reportGroup?: string | null | undefined;
21
+ orderId?: string | null | undefined;
17
22
  };
18
23
 
19
24
  /** @internal */
@@ -23,6 +28,7 @@ export const WorldpayVapOptions$outboundSchema: z.ZodType<
23
28
  WorldpayVapOptions
24
29
  > = z.object({
25
30
  reportGroup: z.nullable(z.string()).optional(),
31
+ orderId: z.nullable(z.string()).optional(),
26
32
  });
27
33
 
28
34
  export function worldpayVapOptionsToJSON(