@cloudcommerce/api 0.11.0 → 0.12.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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @cloudcommerce/api@0.10.0 build /home/leo/code/ecomplus/cloud-commerce/packages/api
2
+ > @cloudcommerce/api@0.12.0 build /home/leo/code/ecomplus/cloud-commerce/packages/api
3
3
  > bash ../../scripts/build-lib.sh && cp -r src/types lib/
4
4
 
@@ -1,5 +1,5 @@
1
1
 
2
- > @cloudcommerce/api@0.10.0 test /home/leo/code/ecomplus/cloud-commerce/packages/api
2
+ > @cloudcommerce/api@0.12.0 test /home/leo/code/ecomplus/cloud-commerce/packages/api
3
3
  > tsc -p ../../tsconfig.test.json && vitest run
4
4
 
5
5
 
@@ -13,6 +13,6 @@
13
13
 
14
14
  Test Files 1 passed (1)
15
15
  Tests 5 passed (5)
16
- Start at 14:40:30
17
- Duration 2.02s (transform 153ms, setup 0ms, collect 133ms, tests 1.25s, environment 0ms, prepare 127ms)
16
+ Start at 22:49:38
17
+ Duration 1.24s (transform 155ms, setup 0ms, collect 133ms, tests 472ms, environment 0ms, prepare 144ms)
18
18
 
@@ -926,6 +926,21 @@ export interface Orders {
926
926
  */
927
927
  link?: string;
928
928
  };
929
+ /**
930
+ * Account deposit data, if payment was done with account deposit
931
+ */
932
+ account_deposit?: {
933
+ /**
934
+ * Date and time of expiration, in ISO 8601 standard representation
935
+ */
936
+ valid_thru?: string;
937
+ /**
938
+ * Information notes to payment
939
+ *
940
+ * @maxItems 5
941
+ */
942
+ text_lines?: string[];
943
+ };
929
944
  /**
930
945
  * If paid with loyalty points, specify how many points and what program was consumed
931
946
  */
package/package.json CHANGED
@@ -1,14 +1,13 @@
1
1
  {
2
2
  "name": "@cloudcommerce/api",
3
3
  "type": "module",
4
- "version": "0.11.0",
4
+ "version": "0.12.1",
5
5
  "description": "E-Com Plus Cloud Commerce APIs client/adapter",
6
6
  "main": "lib/api.js",
7
7
  "types": "lib/api.d.ts",
8
8
  "exports": {
9
9
  ".": "./lib/api.js",
10
- "./types": "./lib/types.d.ts",
11
- "./fetch-polyfill": "./fetch-polyfill.js"
10
+ "./types": "./lib/types.d.ts"
12
11
  },
13
12
  "repository": {
14
13
  "type": "git",
@@ -926,6 +926,21 @@ export interface Orders {
926
926
  */
927
927
  link?: string;
928
928
  };
929
+ /**
930
+ * Account deposit data, if payment was done with account deposit
931
+ */
932
+ account_deposit?: {
933
+ /**
934
+ * Date and time of expiration, in ISO 8601 standard representation
935
+ */
936
+ valid_thru?: string;
937
+ /**
938
+ * Information notes to payment
939
+ *
940
+ * @maxItems 5
941
+ */
942
+ text_lines?: string[];
943
+ };
929
944
  /**
930
945
  * If paid with loyalty points, specify how many points and what program was consumed
931
946
  */
package/fetch-polyfill.js DELETED
@@ -1,21 +0,0 @@
1
- /* eslint-disable */
2
-
3
- import fetch, {
4
- Blob,
5
- blobFrom,
6
- blobFromSync,
7
- File,
8
- fileFrom,
9
- fileFromSync,
10
- FormData,
11
- Headers,
12
- Request,
13
- Response,
14
- } from 'node-fetch';
15
-
16
- if (!globalThis.fetch) {
17
- globalThis.fetch = fetch;
18
- globalThis.Headers = Headers;
19
- globalThis.Request = Request;
20
- globalThis.Response = Response;
21
- }