@amos.com/node 0.1.36 → 0.1.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amos.com/node",
3
- "version": "0.1.36",
3
+ "version": "0.1.37",
4
4
  "description": "Node.js client for the Amos Pay API.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/index.ts CHANGED
@@ -6,9 +6,9 @@ import type { paths } from "../openapi/schema";
6
6
 
7
7
  export * from "../openapi/schema";
8
8
 
9
- export const PAY_API_BASE_URL_PRODUCTION = "https://pay.amos.com";
10
- export const PAY_API_BASE_URL_SANDBOX = "https://pay-sandbox.amos.com";
11
- export const PAY_API_VERSION = "1";
9
+ export const AMOS_API_BASE_URL_PRODUCTION = "https://api.amos.com";
10
+ export const AMOS_API_BASE_URL_SANDBOX = "https://api-sandbox.amos.com";
11
+ export const AMOS_API_VERSION = "1";
12
12
 
13
13
  /**
14
14
  * Create a typed `openapi-fetch` client for the Amos Pay API.
@@ -26,20 +26,20 @@ export const PAY_API_VERSION = "1";
26
26
  * ```ts
27
27
  * import {
28
28
  * createPayApiClient,
29
- * PAY_API_BASE_URL_SANDBOX,
30
- * PAY_API_VERSION,
29
+ * AMOS_API_BASE_URL_SANDBOX,
30
+ * AMOS_API_VERSION,
31
31
  * } from "@amos.com/node";
32
32
  *
33
33
  * const pay = createPayApiClient({
34
- * baseUrl: PAY_API_BASE_URL_SANDBOX,
34
+ * baseUrl: AMOS_API_BASE_URL_SANDBOX,
35
35
  * headers: {
36
36
  * "X-Api-Key": process.env.AMOS_API_KEY!,
37
- * "X-Api-Version": PAY_API_VERSION,
37
+ * "X-Api-Version": AMOS_API_VERSION,
38
38
  * },
39
39
  * });
40
40
  *
41
41
  * const { data, error } = await pay.POST("/customers", {
42
- * params: { header: { "X-Api-Version": PAY_API_VERSION } },
42
+ * params: { header: { "X-Api-Version": AMOS_API_VERSION } },
43
43
  * body: { customer: { email: "alex@example.com" } },
44
44
  * });
45
45
  * ```