@gethydra/sdk 0.1.19 → 0.1.21

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +15 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -748,8 +748,11 @@ interface components {
748
748
  hs_code: string | null;
749
749
  /** @example US */
750
750
  country_of_origin: string | null;
751
- /** @example 150 */
752
- inventory_quantity: number;
751
+ /**
752
+ * @description null when product does not track inventory (service/digital)
753
+ * @example 150
754
+ */
755
+ inventory_quantity: number | null;
753
756
  /** @example 10 */
754
757
  low_stock_threshold: number | null;
755
758
  /** @example 1 */
@@ -1230,6 +1233,8 @@ interface components {
1230
1233
  order_count: number;
1231
1234
  /** @example 34950 */
1232
1235
  total_spent: number;
1236
+ /** @example 0 */
1237
+ store_credit_balance: number;
1233
1238
  /**
1234
1239
  * @example [
1235
1240
  * "vip",
@@ -11515,6 +11520,12 @@ interface operations {
11515
11520
  * @example loc_abc123
11516
11521
  */
11517
11522
  location_id?: string;
11523
+ /**
11524
+ * @description Amount of store credit (in minor units) to debit from the customer. Requires customer_id.
11525
+ * @default 0
11526
+ * @example 0
11527
+ */
11528
+ store_credit_applied?: number;
11518
11529
  /** @default {} */
11519
11530
  metadata?: {
11520
11531
  [key: string]: string | number;
@@ -16144,6 +16155,8 @@ interface operations {
16144
16155
  /** @default 0 */
16145
16156
  discount?: number;
16146
16157
  discount_code?: string;
16158
+ /** @default 0 */
16159
+ store_credit_amount?: number;
16147
16160
  notes?: string;
16148
16161
  metadata?: {
16149
16162
  [key: string]: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gethydra/sdk",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "description": "Official TypeScript SDK for the Hydra Commerce API",
5
5
  "license": "MIT",
6
6
  "author": "Grant Capital Group",