@gr4vy/sdk 1.1.48 → 1.1.50
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 -8
- 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/lib/url.js +1 -1
- package/lib/url.js.map +1 -1
- package/models/components/merchantprofilescheme.d.ts +6 -6
- package/models/components/merchantprofilescheme.d.ts.map +1 -1
- package/models/components/merchantprofilescheme.js +4 -4
- package/models/components/merchantprofilescheme.js.map +1 -1
- package/models/components/merchantprofileschemesummary.d.ts +6 -6
- package/models/components/merchantprofileschemesummary.d.ts.map +1 -1
- package/models/components/merchantprofileschemesummary.js +4 -4
- package/models/components/merchantprofileschemesummary.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/url.ts +1 -1
- package/src/models/components/merchantprofilescheme.ts +10 -10
- package/src/models/components/merchantprofileschemesummary.ts +10 -10
package/README.md
CHANGED
|
@@ -75,10 +75,7 @@ bun add @gr4vy/sdk
|
|
|
75
75
|
### Yarn
|
|
76
76
|
|
|
77
77
|
```bash
|
|
78
|
-
yarn add @gr4vy/sdk
|
|
79
|
-
|
|
80
|
-
# Note that Yarn does not install peer dependencies automatically. You will need
|
|
81
|
-
# to install zod as shown above.
|
|
78
|
+
yarn add @gr4vy/sdk
|
|
82
79
|
```
|
|
83
80
|
<!-- End SDK Installation [installation] -->
|
|
84
81
|
|
|
@@ -730,10 +727,7 @@ bun add @gr4vy/sdk
|
|
|
730
727
|
### Yarn
|
|
731
728
|
|
|
732
729
|
```bash
|
|
733
|
-
yarn add @gr4vy/sdk
|
|
734
|
-
|
|
735
|
-
# Note that Yarn does not install peer dependencies automatically. You will need
|
|
736
|
-
# to install zod as shown above.
|
|
730
|
+
yarn add @gr4vy/sdk
|
|
737
731
|
```
|
|
738
732
|
<!-- End SDK Installation [installation] -->
|
|
739
733
|
|
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.1.
|
|
48
|
-
readonly genVersion: "2.
|
|
49
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.1.
|
|
47
|
+
readonly sdkVersion: "1.1.50";
|
|
48
|
+
readonly genVersion: "2.711.4";
|
|
49
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.1.50 2.711.4 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.1.
|
|
41
|
-
genVersion: "2.
|
|
42
|
-
userAgent: "speakeasy-sdk/typescript 1.1.
|
|
40
|
+
sdkVersion: "1.1.50",
|
|
41
|
+
genVersion: "2.711.4",
|
|
42
|
+
userAgent: "speakeasy-sdk/typescript 1.1.50 2.711.4 1.0.0 @gr4vy/sdk",
|
|
43
43
|
};
|
|
44
44
|
//# sourceMappingURL=config.js.map
|
package/lib/url.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.pathToFunc = pathToFunc;
|
|
7
7
|
const hasOwn = Object.prototype.hasOwnProperty;
|
|
8
8
|
function pathToFunc(pathPattern, options) {
|
|
9
|
-
const paramRE = /\{([a-zA-Z0-9_]
|
|
9
|
+
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
10
10
|
return function buildURLPath(params = {}) {
|
|
11
11
|
return pathPattern.replace(paramRE, function (_, placeholder) {
|
|
12
12
|
if (!hasOwn.call(params, placeholder)) {
|
package/lib/url.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.js","sourceRoot":"","sources":["../src/lib/url.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAMH,gCAwBC;AA5BD,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AAI/C,SAAgB,UAAU,CACxB,WAAmB,EACnB,OAA+C;IAE/C,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"url.js","sourceRoot":"","sources":["../src/lib/url.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAMH,gCAwBC;AA5BD,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AAI/C,SAAgB,UAAU,CACxB,WAAmB,EACnB,OAA+C;IAE/C,MAAM,OAAO,GAAG,oCAAoC,CAAC;IAErD,OAAO,SAAS,YAAY,CAAC,SAAkC,EAAE;QAC/D,OAAO,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE,WAAW;YAC1D,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,CAAC;gBACtC,MAAM,IAAI,KAAK,CAAC,cAAc,WAAW,eAAe,CAAC,CAAC;YAC5D,CAAC;YAED,MAAM,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;YAClC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;gBAC3D,MAAM,IAAI,KAAK,CACb,cAAc,WAAW,8BAA8B,CACxD,CAAC;YACJ,CAAC;YAED,OAAO,OAAO,EAAE,YAAY,KAAK,SAAS;gBACxC,CAAC,CAAC,kBAAkB,CAAC,GAAG,KAAK,EAAE,CAAC;gBAChC,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC;QACjB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -6,34 +6,34 @@ export type MerchantProfileScheme = {
|
|
|
6
6
|
* Acquirer BIN to use when calling 3DS through this scheme.
|
|
7
7
|
*/
|
|
8
8
|
merchantAcquirerBin: string;
|
|
9
|
-
/**
|
|
10
|
-
* URL to send when calling 3DS through this scheme.
|
|
11
|
-
*/
|
|
12
|
-
merchantUrl: string;
|
|
13
9
|
/**
|
|
14
10
|
* Merchant ID to use when calling 3DS through this scheme.
|
|
15
11
|
*/
|
|
16
12
|
merchantAcquirerId: string;
|
|
17
13
|
merchantName: string;
|
|
18
14
|
/**
|
|
19
|
-
*
|
|
15
|
+
* The merchant's ISO 3166-1 numeric country code.
|
|
20
16
|
*/
|
|
21
17
|
merchantCountryCode: string;
|
|
22
18
|
/**
|
|
23
19
|
* Merchant category code to use when calling 3DS through this scheme.
|
|
24
20
|
*/
|
|
25
21
|
merchantCategoryCode: string;
|
|
22
|
+
/**
|
|
23
|
+
* URL to send when calling 3DS through this scheme.
|
|
24
|
+
*/
|
|
25
|
+
merchantUrl: string;
|
|
26
26
|
};
|
|
27
27
|
/** @internal */
|
|
28
28
|
export declare const MerchantProfileScheme$inboundSchema: z.ZodType<MerchantProfileScheme, z.ZodTypeDef, unknown>;
|
|
29
29
|
/** @internal */
|
|
30
30
|
export type MerchantProfileScheme$Outbound = {
|
|
31
31
|
merchant_acquirer_bin: string;
|
|
32
|
-
merchant_url: string;
|
|
33
32
|
merchant_acquirer_id: string;
|
|
34
33
|
merchant_name: string;
|
|
35
34
|
merchant_country_code: string;
|
|
36
35
|
merchant_category_code: string;
|
|
36
|
+
merchant_url: string;
|
|
37
37
|
};
|
|
38
38
|
/** @internal */
|
|
39
39
|
export declare const MerchantProfileScheme$outboundSchema: z.ZodType<MerchantProfileScheme$Outbound, z.ZodTypeDef, MerchantProfileScheme>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merchantprofilescheme.d.ts","sourceRoot":"","sources":["../../src/models/components/merchantprofilescheme.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"merchantprofilescheme.d.ts","sourceRoot":"","sources":["../../src/models/components/merchantprofilescheme.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CAiBP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,qBAAqB,EAAE,MAAM,CAAC;IAC9B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CAiBrB,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"}
|
|
@@ -45,37 +45,37 @@ const schemas_js_1 = require("../../lib/schemas.js");
|
|
|
45
45
|
/** @internal */
|
|
46
46
|
exports.MerchantProfileScheme$inboundSchema = z.object({
|
|
47
47
|
merchant_acquirer_bin: z.string(),
|
|
48
|
-
merchant_url: z.string(),
|
|
49
48
|
merchant_acquirer_id: z.string(),
|
|
50
49
|
merchant_name: z.string(),
|
|
51
50
|
merchant_country_code: z.string(),
|
|
52
51
|
merchant_category_code: z.string(),
|
|
52
|
+
merchant_url: z.string(),
|
|
53
53
|
}).transform((v) => {
|
|
54
54
|
return (0, primitives_js_1.remap)(v, {
|
|
55
55
|
"merchant_acquirer_bin": "merchantAcquirerBin",
|
|
56
|
-
"merchant_url": "merchantUrl",
|
|
57
56
|
"merchant_acquirer_id": "merchantAcquirerId",
|
|
58
57
|
"merchant_name": "merchantName",
|
|
59
58
|
"merchant_country_code": "merchantCountryCode",
|
|
60
59
|
"merchant_category_code": "merchantCategoryCode",
|
|
60
|
+
"merchant_url": "merchantUrl",
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
63
|
/** @internal */
|
|
64
64
|
exports.MerchantProfileScheme$outboundSchema = z.object({
|
|
65
65
|
merchantAcquirerBin: z.string(),
|
|
66
|
-
merchantUrl: z.string(),
|
|
67
66
|
merchantAcquirerId: z.string(),
|
|
68
67
|
merchantName: z.string(),
|
|
69
68
|
merchantCountryCode: z.string(),
|
|
70
69
|
merchantCategoryCode: z.string(),
|
|
70
|
+
merchantUrl: z.string(),
|
|
71
71
|
}).transform((v) => {
|
|
72
72
|
return (0, primitives_js_1.remap)(v, {
|
|
73
73
|
merchantAcquirerBin: "merchant_acquirer_bin",
|
|
74
|
-
merchantUrl: "merchant_url",
|
|
75
74
|
merchantAcquirerId: "merchant_acquirer_id",
|
|
76
75
|
merchantName: "merchant_name",
|
|
77
76
|
merchantCountryCode: "merchant_country_code",
|
|
78
77
|
merchantCategoryCode: "merchant_category_code",
|
|
78
|
+
merchantUrl: "merchant_url",
|
|
79
79
|
});
|
|
80
80
|
});
|
|
81
81
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merchantprofilescheme.js","sourceRoot":"","sources":["../../src/models/components/merchantprofilescheme.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqGH,kEAMC;AAED,sEAQC;AAnHD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AA4BjD,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE;IACjC,
|
|
1
|
+
{"version":3,"file":"merchantprofilescheme.js","sourceRoot":"","sources":["../../src/models/components/merchantprofilescheme.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqGH,kEAMC;AAED,sEAQC;AAnHD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AA4BjD,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,qBAAqB,EAAE,CA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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"}
|
|
@@ -6,23 +6,23 @@ export type MerchantProfileSchemeSummary = {
|
|
|
6
6
|
* Acquirer BIN to use when calling 3DS through this scheme.
|
|
7
7
|
*/
|
|
8
8
|
merchantAcquirerBin: string;
|
|
9
|
-
/**
|
|
10
|
-
* URL to send when calling 3DS through this scheme.
|
|
11
|
-
*/
|
|
12
|
-
merchantUrl: string;
|
|
13
9
|
/**
|
|
14
10
|
* Merchant ID to use when calling 3DS through this scheme.
|
|
15
11
|
*/
|
|
16
12
|
merchantAcquirerId: string;
|
|
17
13
|
merchantName: string;
|
|
18
14
|
/**
|
|
19
|
-
*
|
|
15
|
+
* The merchant's ISO 3166-1 numeric country code.
|
|
20
16
|
*/
|
|
21
17
|
merchantCountryCode: string;
|
|
22
18
|
/**
|
|
23
19
|
* Merchant category code to use when calling 3DS through this scheme.
|
|
24
20
|
*/
|
|
25
21
|
merchantCategoryCode: string;
|
|
22
|
+
/**
|
|
23
|
+
* URL to send when calling 3DS through this scheme.
|
|
24
|
+
*/
|
|
25
|
+
merchantUrl: string;
|
|
26
26
|
/**
|
|
27
27
|
* The date and time when this profile was first created in our system.
|
|
28
28
|
*/
|
|
@@ -33,11 +33,11 @@ export declare const MerchantProfileSchemeSummary$inboundSchema: z.ZodType<Merch
|
|
|
33
33
|
/** @internal */
|
|
34
34
|
export type MerchantProfileSchemeSummary$Outbound = {
|
|
35
35
|
merchant_acquirer_bin: string;
|
|
36
|
-
merchant_url: string;
|
|
37
36
|
merchant_acquirer_id: string;
|
|
38
37
|
merchant_name: string;
|
|
39
38
|
merchant_country_code: string;
|
|
40
39
|
merchant_category_code: string;
|
|
40
|
+
merchant_url: string;
|
|
41
41
|
created_at: string;
|
|
42
42
|
};
|
|
43
43
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merchantprofileschemesummary.d.ts","sourceRoot":"","sources":["../../src/models/components/merchantprofileschemesummary.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"merchantprofileschemesummary.d.ts","sourceRoot":"","sources":["../../src/models/components/merchantprofileschemesummary.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,OAAO,CAmBP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAAG;IAClD,qBAAqB,EAAE,MAAM,CAAC;IAC9B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,4BAA4B,CAmB5B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,6BAA6B,CAAC;IAC7C,4EAA4E;IACrE,MAAM,aAAa,gEAA6C,CAAC;IACxE,6EAA6E;IACtE,MAAM,cAAc,8FAA8C,CAAC;IAC1E,uEAAuE;IACvE,KAAY,QAAQ,GAAG,qCAAqC,CAAC;CAC9D;AAED,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR;AAED,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE"}
|
|
@@ -45,40 +45,40 @@ const schemas_js_1 = require("../../lib/schemas.js");
|
|
|
45
45
|
/** @internal */
|
|
46
46
|
exports.MerchantProfileSchemeSummary$inboundSchema = z.object({
|
|
47
47
|
merchant_acquirer_bin: z.string(),
|
|
48
|
-
merchant_url: z.string(),
|
|
49
48
|
merchant_acquirer_id: z.string(),
|
|
50
49
|
merchant_name: z.string(),
|
|
51
50
|
merchant_country_code: z.string(),
|
|
52
51
|
merchant_category_code: z.string(),
|
|
52
|
+
merchant_url: z.string(),
|
|
53
53
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
54
54
|
}).transform((v) => {
|
|
55
55
|
return (0, primitives_js_1.remap)(v, {
|
|
56
56
|
"merchant_acquirer_bin": "merchantAcquirerBin",
|
|
57
|
-
"merchant_url": "merchantUrl",
|
|
58
57
|
"merchant_acquirer_id": "merchantAcquirerId",
|
|
59
58
|
"merchant_name": "merchantName",
|
|
60
59
|
"merchant_country_code": "merchantCountryCode",
|
|
61
60
|
"merchant_category_code": "merchantCategoryCode",
|
|
61
|
+
"merchant_url": "merchantUrl",
|
|
62
62
|
"created_at": "createdAt",
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
65
|
/** @internal */
|
|
66
66
|
exports.MerchantProfileSchemeSummary$outboundSchema = z.object({
|
|
67
67
|
merchantAcquirerBin: z.string(),
|
|
68
|
-
merchantUrl: z.string(),
|
|
69
68
|
merchantAcquirerId: z.string(),
|
|
70
69
|
merchantName: z.string(),
|
|
71
70
|
merchantCountryCode: z.string(),
|
|
72
71
|
merchantCategoryCode: z.string(),
|
|
72
|
+
merchantUrl: z.string(),
|
|
73
73
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
74
74
|
}).transform((v) => {
|
|
75
75
|
return (0, primitives_js_1.remap)(v, {
|
|
76
76
|
merchantAcquirerBin: "merchant_acquirer_bin",
|
|
77
|
-
merchantUrl: "merchant_url",
|
|
78
77
|
merchantAcquirerId: "merchant_acquirer_id",
|
|
79
78
|
merchantName: "merchant_name",
|
|
80
79
|
merchantCountryCode: "merchant_country_code",
|
|
81
80
|
merchantCategoryCode: "merchant_category_code",
|
|
81
|
+
merchantUrl: "merchant_url",
|
|
82
82
|
createdAt: "created_at",
|
|
83
83
|
});
|
|
84
84
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merchantprofileschemesummary.js","sourceRoot":"","sources":["../../src/models/components/merchantprofileschemesummary.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8GH,gFAQC;AAED,oFAQC;AA9HD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAgCjD,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE;IACjC,
|
|
1
|
+
{"version":3,"file":"merchantprofileschemesummary.js","sourceRoot":"","sources":["../../src/models/components/merchantprofileschemesummary.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8GH,gFAQC;AAED,oFAQC;AA9HD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAgCjD,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE;IACjC,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE;IAChC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE;IACjC,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;CAC9E,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,uBAAuB,EAAE,qBAAqB;QAC9C,sBAAsB,EAAE,oBAAoB;QA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CACnB,mDAA2C,CAAC,KAAK,CAC/C,4BAA4B,CAC7B,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,oCAAoC,CAClD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kDAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,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.1.
|
|
81
|
-
genVersion: "2.
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 1.1.
|
|
80
|
+
sdkVersion: "1.1.50",
|
|
81
|
+
genVersion: "2.711.4",
|
|
82
|
+
userAgent: "speakeasy-sdk/typescript 1.1.50 2.711.4 1.0.0 @gr4vy/sdk",
|
|
83
83
|
} as const;
|
package/src/lib/url.ts
CHANGED
|
@@ -10,7 +10,7 @@ export function pathToFunc(
|
|
|
10
10
|
pathPattern: string,
|
|
11
11
|
options?: { charEncoding?: "percent" | "none" },
|
|
12
12
|
): (params?: Params) => string {
|
|
13
|
-
const paramRE = /\{([a-zA-Z0-9_]
|
|
13
|
+
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
14
14
|
|
|
15
15
|
return function buildURLPath(params: Record<string, unknown> = {}): string {
|
|
16
16
|
return pathPattern.replace(paramRE, function (_, placeholder) {
|
|
@@ -13,23 +13,23 @@ export type MerchantProfileScheme = {
|
|
|
13
13
|
* Acquirer BIN to use when calling 3DS through this scheme.
|
|
14
14
|
*/
|
|
15
15
|
merchantAcquirerBin: string;
|
|
16
|
-
/**
|
|
17
|
-
* URL to send when calling 3DS through this scheme.
|
|
18
|
-
*/
|
|
19
|
-
merchantUrl: string;
|
|
20
16
|
/**
|
|
21
17
|
* Merchant ID to use when calling 3DS through this scheme.
|
|
22
18
|
*/
|
|
23
19
|
merchantAcquirerId: string;
|
|
24
20
|
merchantName: string;
|
|
25
21
|
/**
|
|
26
|
-
*
|
|
22
|
+
* The merchant's ISO 3166-1 numeric country code.
|
|
27
23
|
*/
|
|
28
24
|
merchantCountryCode: string;
|
|
29
25
|
/**
|
|
30
26
|
* Merchant category code to use when calling 3DS through this scheme.
|
|
31
27
|
*/
|
|
32
28
|
merchantCategoryCode: string;
|
|
29
|
+
/**
|
|
30
|
+
* URL to send when calling 3DS through this scheme.
|
|
31
|
+
*/
|
|
32
|
+
merchantUrl: string;
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
/** @internal */
|
|
@@ -39,30 +39,30 @@ export const MerchantProfileScheme$inboundSchema: z.ZodType<
|
|
|
39
39
|
unknown
|
|
40
40
|
> = z.object({
|
|
41
41
|
merchant_acquirer_bin: z.string(),
|
|
42
|
-
merchant_url: z.string(),
|
|
43
42
|
merchant_acquirer_id: z.string(),
|
|
44
43
|
merchant_name: z.string(),
|
|
45
44
|
merchant_country_code: z.string(),
|
|
46
45
|
merchant_category_code: z.string(),
|
|
46
|
+
merchant_url: z.string(),
|
|
47
47
|
}).transform((v) => {
|
|
48
48
|
return remap$(v, {
|
|
49
49
|
"merchant_acquirer_bin": "merchantAcquirerBin",
|
|
50
|
-
"merchant_url": "merchantUrl",
|
|
51
50
|
"merchant_acquirer_id": "merchantAcquirerId",
|
|
52
51
|
"merchant_name": "merchantName",
|
|
53
52
|
"merchant_country_code": "merchantCountryCode",
|
|
54
53
|
"merchant_category_code": "merchantCategoryCode",
|
|
54
|
+
"merchant_url": "merchantUrl",
|
|
55
55
|
});
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
/** @internal */
|
|
59
59
|
export type MerchantProfileScheme$Outbound = {
|
|
60
60
|
merchant_acquirer_bin: string;
|
|
61
|
-
merchant_url: string;
|
|
62
61
|
merchant_acquirer_id: string;
|
|
63
62
|
merchant_name: string;
|
|
64
63
|
merchant_country_code: string;
|
|
65
64
|
merchant_category_code: string;
|
|
65
|
+
merchant_url: string;
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
/** @internal */
|
|
@@ -72,19 +72,19 @@ export const MerchantProfileScheme$outboundSchema: z.ZodType<
|
|
|
72
72
|
MerchantProfileScheme
|
|
73
73
|
> = z.object({
|
|
74
74
|
merchantAcquirerBin: z.string(),
|
|
75
|
-
merchantUrl: z.string(),
|
|
76
75
|
merchantAcquirerId: z.string(),
|
|
77
76
|
merchantName: z.string(),
|
|
78
77
|
merchantCountryCode: z.string(),
|
|
79
78
|
merchantCategoryCode: z.string(),
|
|
79
|
+
merchantUrl: z.string(),
|
|
80
80
|
}).transform((v) => {
|
|
81
81
|
return remap$(v, {
|
|
82
82
|
merchantAcquirerBin: "merchant_acquirer_bin",
|
|
83
|
-
merchantUrl: "merchant_url",
|
|
84
83
|
merchantAcquirerId: "merchant_acquirer_id",
|
|
85
84
|
merchantName: "merchant_name",
|
|
86
85
|
merchantCountryCode: "merchant_country_code",
|
|
87
86
|
merchantCategoryCode: "merchant_category_code",
|
|
87
|
+
merchantUrl: "merchant_url",
|
|
88
88
|
});
|
|
89
89
|
});
|
|
90
90
|
|
|
@@ -13,23 +13,23 @@ export type MerchantProfileSchemeSummary = {
|
|
|
13
13
|
* Acquirer BIN to use when calling 3DS through this scheme.
|
|
14
14
|
*/
|
|
15
15
|
merchantAcquirerBin: string;
|
|
16
|
-
/**
|
|
17
|
-
* URL to send when calling 3DS through this scheme.
|
|
18
|
-
*/
|
|
19
|
-
merchantUrl: string;
|
|
20
16
|
/**
|
|
21
17
|
* Merchant ID to use when calling 3DS through this scheme.
|
|
22
18
|
*/
|
|
23
19
|
merchantAcquirerId: string;
|
|
24
20
|
merchantName: string;
|
|
25
21
|
/**
|
|
26
|
-
*
|
|
22
|
+
* The merchant's ISO 3166-1 numeric country code.
|
|
27
23
|
*/
|
|
28
24
|
merchantCountryCode: string;
|
|
29
25
|
/**
|
|
30
26
|
* Merchant category code to use when calling 3DS through this scheme.
|
|
31
27
|
*/
|
|
32
28
|
merchantCategoryCode: string;
|
|
29
|
+
/**
|
|
30
|
+
* URL to send when calling 3DS through this scheme.
|
|
31
|
+
*/
|
|
32
|
+
merchantUrl: string;
|
|
33
33
|
/**
|
|
34
34
|
* The date and time when this profile was first created in our system.
|
|
35
35
|
*/
|
|
@@ -43,20 +43,20 @@ export const MerchantProfileSchemeSummary$inboundSchema: z.ZodType<
|
|
|
43
43
|
unknown
|
|
44
44
|
> = z.object({
|
|
45
45
|
merchant_acquirer_bin: z.string(),
|
|
46
|
-
merchant_url: z.string(),
|
|
47
46
|
merchant_acquirer_id: z.string(),
|
|
48
47
|
merchant_name: z.string(),
|
|
49
48
|
merchant_country_code: z.string(),
|
|
50
49
|
merchant_category_code: z.string(),
|
|
50
|
+
merchant_url: z.string(),
|
|
51
51
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
52
52
|
}).transform((v) => {
|
|
53
53
|
return remap$(v, {
|
|
54
54
|
"merchant_acquirer_bin": "merchantAcquirerBin",
|
|
55
|
-
"merchant_url": "merchantUrl",
|
|
56
55
|
"merchant_acquirer_id": "merchantAcquirerId",
|
|
57
56
|
"merchant_name": "merchantName",
|
|
58
57
|
"merchant_country_code": "merchantCountryCode",
|
|
59
58
|
"merchant_category_code": "merchantCategoryCode",
|
|
59
|
+
"merchant_url": "merchantUrl",
|
|
60
60
|
"created_at": "createdAt",
|
|
61
61
|
});
|
|
62
62
|
});
|
|
@@ -64,11 +64,11 @@ export const MerchantProfileSchemeSummary$inboundSchema: z.ZodType<
|
|
|
64
64
|
/** @internal */
|
|
65
65
|
export type MerchantProfileSchemeSummary$Outbound = {
|
|
66
66
|
merchant_acquirer_bin: string;
|
|
67
|
-
merchant_url: string;
|
|
68
67
|
merchant_acquirer_id: string;
|
|
69
68
|
merchant_name: string;
|
|
70
69
|
merchant_country_code: string;
|
|
71
70
|
merchant_category_code: string;
|
|
71
|
+
merchant_url: string;
|
|
72
72
|
created_at: string;
|
|
73
73
|
};
|
|
74
74
|
|
|
@@ -79,20 +79,20 @@ export const MerchantProfileSchemeSummary$outboundSchema: z.ZodType<
|
|
|
79
79
|
MerchantProfileSchemeSummary
|
|
80
80
|
> = z.object({
|
|
81
81
|
merchantAcquirerBin: z.string(),
|
|
82
|
-
merchantUrl: z.string(),
|
|
83
82
|
merchantAcquirerId: z.string(),
|
|
84
83
|
merchantName: z.string(),
|
|
85
84
|
merchantCountryCode: z.string(),
|
|
86
85
|
merchantCategoryCode: z.string(),
|
|
86
|
+
merchantUrl: z.string(),
|
|
87
87
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
88
88
|
}).transform((v) => {
|
|
89
89
|
return remap$(v, {
|
|
90
90
|
merchantAcquirerBin: "merchant_acquirer_bin",
|
|
91
|
-
merchantUrl: "merchant_url",
|
|
92
91
|
merchantAcquirerId: "merchant_acquirer_id",
|
|
93
92
|
merchantName: "merchant_name",
|
|
94
93
|
merchantCountryCode: "merchant_country_code",
|
|
95
94
|
merchantCategoryCode: "merchant_category_code",
|
|
95
|
+
merchantUrl: "merchant_url",
|
|
96
96
|
createdAt: "created_at",
|
|
97
97
|
});
|
|
98
98
|
});
|