files.com 1.2.299 → 1.2.301

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/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.299
1
+ 1.2.301
@@ -20,7 +20,11 @@
20
20
  "service_end_at": "2000-01-01T01:00:00Z",
21
21
  "service_start_at": "2000-01-01T01:00:00Z",
22
22
  "plan": "Premier",
23
- "site": "My site"
23
+ "site": "My site",
24
+ "prepaid_bytes": 1,
25
+ "prepaid_bytes_expire_at": "2000-01-01T01:00:00Z",
26
+ "prepaid_bytes_used": 1,
27
+ "prepaid_bytes_available": 1
24
28
  }
25
29
  ],
26
30
  "method": "paypal",
@@ -20,7 +20,11 @@
20
20
  "service_end_at": "2000-01-01T01:00:00Z",
21
21
  "service_start_at": "2000-01-01T01:00:00Z",
22
22
  "plan": "Premier",
23
- "site": "My site"
23
+ "site": "My site",
24
+ "prepaid_bytes": 1,
25
+ "prepaid_bytes_expire_at": "2000-01-01T01:00:00Z",
26
+ "prepaid_bytes_used": 1,
27
+ "prepaid_bytes_available": 1
24
28
  }
25
29
  ],
26
30
  "method": "paypal",
@@ -12,7 +12,11 @@
12
12
  "service_end_at": "2000-01-01T01:00:00Z",
13
13
  "service_start_at": "2000-01-01T01:00:00Z",
14
14
  "plan": "Premier",
15
- "site": "My site"
15
+ "site": "My site",
16
+ "prepaid_bytes": 1,
17
+ "prepaid_bytes_expire_at": "2000-01-01T01:00:00Z",
18
+ "prepaid_bytes_used": 1,
19
+ "prepaid_bytes_available": 1
16
20
  }
17
21
  ```
18
22
 
@@ -25,3 +29,7 @@
25
29
  * `service_start_at` (date-time): Invoice line item service start date/time
26
30
  * `plan` (string): Plan name
27
31
  * `site` (string): Site name
32
+ * `prepaid_bytes` (int64): Prepaid bytes purchased for this invoice line item
33
+ * `prepaid_bytes_expire_at` (date-time): When the prepaid bytes expire
34
+ * `prepaid_bytes_used` (int64): Total prepaid bytes used for this invoice line item
35
+ * `prepaid_bytes_available` (int64): Available prepaid bytes for this invoice line item
@@ -20,7 +20,11 @@
20
20
  "service_end_at": "2000-01-01T01:00:00Z",
21
21
  "service_start_at": "2000-01-01T01:00:00Z",
22
22
  "plan": "Premier",
23
- "site": "My site"
23
+ "site": "My site",
24
+ "prepaid_bytes": 1,
25
+ "prepaid_bytes_expire_at": "2000-01-01T01:00:00Z",
26
+ "prepaid_bytes_used": 1,
27
+ "prepaid_bytes_available": 1
24
28
  }
25
29
  ],
26
30
  "method": "paypal",
package/lib/Files.js CHANGED
@@ -12,7 +12,7 @@ var apiKey;
12
12
  var baseUrl = 'https://app.files.com';
13
13
  var sessionId = null;
14
14
  var language = null;
15
- var version = '1.2.299';
15
+ var version = '1.2.301';
16
16
  var userAgent = "Files.com JavaScript SDK v".concat(version);
17
17
  var logLevel = _Logger.LogLevel.INFO;
18
18
  var debugRequest = false;
@@ -64,6 +64,22 @@ var InvoiceLineItem = /*#__PURE__*/(0, _createClass2.default)(function InvoiceLi
64
64
  (0, _defineProperty2.default)(this, "getSite", function () {
65
65
  return _this.attributes.site;
66
66
  });
67
+ // int64 # Prepaid bytes purchased for this invoice line item
68
+ (0, _defineProperty2.default)(this, "getPrepaidBytes", function () {
69
+ return _this.attributes.prepaid_bytes;
70
+ });
71
+ // date-time # When the prepaid bytes expire
72
+ (0, _defineProperty2.default)(this, "getPrepaidBytesExpireAt", function () {
73
+ return _this.attributes.prepaid_bytes_expire_at;
74
+ });
75
+ // int64 # Total prepaid bytes used for this invoice line item
76
+ (0, _defineProperty2.default)(this, "getPrepaidBytesUsed", function () {
77
+ return _this.attributes.prepaid_bytes_used;
78
+ });
79
+ // int64 # Available prepaid bytes for this invoice line item
80
+ (0, _defineProperty2.default)(this, "getPrepaidBytesAvailable", function () {
81
+ return _this.attributes.prepaid_bytes_available;
82
+ });
67
83
  Object.entries(attributes).forEach(function (_ref) {
68
84
  var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
69
85
  key = _ref2[0],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.299",
3
+ "version": "1.2.301",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -6,7 +6,7 @@ let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
8
  let language = null
9
- const version = '1.2.299'
9
+ const version = '1.2.301'
10
10
  let userAgent = `Files.com JavaScript SDK v${version}`
11
11
 
12
12
  let logLevel = LogLevel.INFO
@@ -54,6 +54,18 @@ class InvoiceLineItem {
54
54
 
55
55
  // string # Site name
56
56
  getSite = () => this.attributes.site
57
+
58
+ // int64 # Prepaid bytes purchased for this invoice line item
59
+ getPrepaidBytes = () => this.attributes.prepaid_bytes
60
+
61
+ // date-time # When the prepaid bytes expire
62
+ getPrepaidBytesExpireAt = () => this.attributes.prepaid_bytes_expire_at
63
+
64
+ // int64 # Total prepaid bytes used for this invoice line item
65
+ getPrepaidBytesUsed = () => this.attributes.prepaid_bytes_used
66
+
67
+ // int64 # Available prepaid bytes for this invoice line item
68
+ getPrepaidBytesAvailable = () => this.attributes.prepaid_bytes_available
57
69
  }
58
70
 
59
71
  export default InvoiceLineItem