Skip to content

Commit

Permalink
[nightly] generate types against bigcommerce/docs@0c124d0 (#232)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
matthewvolk and github-actions[bot] authored Mar 26, 2024
1 parent e64d86f commit d368dc7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .changeset/eleven-dots-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'bigrequest': patch
---

bigcommerce/docs#186
36 changes: 26 additions & 10 deletions src/generated/checkouts.v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,19 @@ export interface paths {
"/checkouts/{checkoutId}/discounts": {
/**
* Add Discount to Checkout
* @description Adds a discount to an existing *checkout*.
* @description Adds a discount to an existing checkout.
*
* This discount only applies to `line_items`. When you call this API, you clear out all existing discounts applied to line items, including product and order-based discounts.
* Use this endpoint to apply the following discounts:
* * Apply a manual discount to a cart. In this case, you can distribute the discount between each line item in the cart based on the item value.
* * Apply a manual discount against a specific line item.
* * Apply a manual discount at the item-level with a cart-level discount.
*
* This endpoint splits the discount between line items based on the item value.
* Notes:
* * When you call this API, you clear out all existing discounts applied to line items, including product and order-based discounts.
* * You cannot apply a manual discount to a specific line item if you have already applied a coupon or automatic promotion to it.
*
* Required Fields
* * discounted_amount
* Required Fields:
* * `discounted_amount` at the cart-level or at the item-level
*/
post: operations["addCheckoutDiscount"];
};
Expand Down Expand Up @@ -972,14 +977,19 @@ export interface operations {
};
/**
* Add Discount to Checkout
* @description Adds a discount to an existing *checkout*.
* @description Adds a discount to an existing checkout.
*
* This discount only applies to `line_items`. When you call this API, you clear out all existing discounts applied to line items, including product and order-based discounts.
* Use this endpoint to apply the following discounts:
* * Apply a manual discount to a cart. In this case, you can distribute the discount between each line item in the cart based on the item value.
* * Apply a manual discount against a specific line item.
* * Apply a manual discount at the item-level with a cart-level discount.
*
* This endpoint splits the discount between line items based on the item value.
* Notes:
* * When you call this API, you clear out all existing discounts applied to line items, including product and order-based discounts.
* * You cannot apply a manual discount to a specific line item if you have already applied a coupon or automatic promotion to it.
*
* Required Fields
* * discounted_amount
* Required Fields:
* * `discounted_amount` at the cart-level or at the item-level
*/
addCheckoutDiscount: {
parameters: {
Expand All @@ -1001,6 +1011,12 @@ export interface operations {
/** @example manual */
name?: string;
}[];
line_items?: {
/** @example 8edef915-8e8e-4ebd-bece-31fbb1191a7e */
id?: string;
/** @example 15 */
discounted_amount?: number;
}[];
};
};
};
Expand Down

0 comments on commit d368dc7

Please sign in to comment.