@gethydra/sdk 0.1.25 → 0.1.27

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 +92 -3
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -3030,7 +3030,7 @@ interface components {
3030
3030
  * @example card
3031
3031
  * @enum {string}
3032
3032
  */
3033
- destination: "card" | "store_credit";
3033
+ destination: "card" | "store_credit" | "cash";
3034
3034
  /** @example true */
3035
3035
  refund_shipping: boolean;
3036
3036
  /** @example 500 */
@@ -11603,6 +11603,11 @@ interface operations {
11603
11603
  * @example SAVE10
11604
11604
  */
11605
11605
  discount_code?: string;
11606
+ /**
11607
+ * @description ID of the validated discount. When provided, usage tracking is applied.
11608
+ * @example disc_abc123
11609
+ */
11610
+ discount_id?: string;
11606
11611
  /**
11607
11612
  * @example card
11608
11613
  * @enum {string}
@@ -14446,6 +14451,60 @@ interface operations {
14446
14451
  };
14447
14452
  };
14448
14453
  };
14454
+ validateDiscount: {
14455
+ parameters: {
14456
+ query?: never;
14457
+ header?: never;
14458
+ path?: never;
14459
+ cookie?: never;
14460
+ };
14461
+ requestBody?: {
14462
+ content: {
14463
+ "application/json": {
14464
+ /** @example SUMMER20 */
14465
+ code: string;
14466
+ /** @example 5000 */
14467
+ subtotal: number;
14468
+ /** @example 3 */
14469
+ item_count: number;
14470
+ /**
14471
+ * Format: email
14472
+ * @example customer@example.com
14473
+ */
14474
+ customer_email: string;
14475
+ /** @example cust_abc123 */
14476
+ customer_id?: string;
14477
+ };
14478
+ };
14479
+ };
14480
+ responses: {
14481
+ /** @description Discount valid */
14482
+ 200: {
14483
+ headers: {
14484
+ [name: string]: unknown;
14485
+ };
14486
+ content: {
14487
+ "application/json": {
14488
+ data: {
14489
+ /** @example disc_abc123 */
14490
+ discount_id: string;
14491
+ /** @example SUMMER20 */
14492
+ code: string;
14493
+ /**
14494
+ * @example percentage
14495
+ * @enum {string}
14496
+ */
14497
+ type: "percentage" | "fixed_amount";
14498
+ /** @example 20 */
14499
+ value: number;
14500
+ /** @example 1000 */
14501
+ discount_amount: number;
14502
+ };
14503
+ };
14504
+ };
14505
+ };
14506
+ };
14507
+ };
14449
14508
  listMembershipPlans: {
14450
14509
  parameters: {
14451
14510
  query?: {
@@ -15088,12 +15147,12 @@ interface operations {
15088
15147
  /** @example Approved by Alice */
15089
15148
  staff_note?: string;
15090
15149
  /**
15091
- * @description Where to send the refund. "card" refunds to the original payment method via Stripe; "store_credit" adds the amount to the customer's store credit balance.
15150
+ * @description Where to send the refund. "card" refunds to the original payment method via Stripe; "store_credit" adds the amount to the customer's store credit balance; "cash" is record-keeping only (staff hands cash to customer).
15092
15151
  * @default card
15093
15152
  * @example card
15094
15153
  * @enum {string}
15095
15154
  */
15096
- destination?: "card" | "store_credit";
15155
+ destination?: "card" | "store_credit" | "cash";
15097
15156
  /** @default {} */
15098
15157
  metadata?: {
15099
15158
  [key: string]: string | number;
@@ -16262,6 +16321,7 @@ interface operations {
16262
16321
  /** @default 0 */
16263
16322
  discount?: number;
16264
16323
  discount_code?: string;
16324
+ discount_id?: string;
16265
16325
  /** @default 0 */
16266
16326
  store_credit_amount?: number;
16267
16327
  notes?: string;
@@ -16890,6 +16950,35 @@ interface operations {
16890
16950
  };
16891
16951
  };
16892
16952
  };
16953
+ reorderLookbooks: {
16954
+ parameters: {
16955
+ query?: never;
16956
+ header?: never;
16957
+ path?: never;
16958
+ cookie?: never;
16959
+ };
16960
+ requestBody?: {
16961
+ content: {
16962
+ "application/json": {
16963
+ lookbooks: {
16964
+ /** @example lb_abc123 */
16965
+ id: string;
16966
+ /** @example 0 */
16967
+ position: number;
16968
+ }[];
16969
+ };
16970
+ };
16971
+ };
16972
+ responses: {
16973
+ /** @description Lookbooks reordered */
16974
+ 204: {
16975
+ headers: {
16976
+ [name: string]: unknown;
16977
+ };
16978
+ content?: never;
16979
+ };
16980
+ };
16981
+ };
16893
16982
  getLookbook: {
16894
16983
  parameters: {
16895
16984
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gethydra/sdk",
3
- "version": "0.1.25",
3
+ "version": "0.1.27",
4
4
  "description": "Official TypeScript SDK for the Hydra Commerce API",
5
5
  "license": "MIT",
6
6
  "author": "Grant Capital Group",