@apideck/node
Version:
Apideck Node.js SDK
81 lines (80 loc) • 1.86 kB
TypeScript
/**
* Apideck
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.13.0
* Contact: support@apideck.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Currency } from './Currency';
/**
*
* @export
* @interface OrderDiscounts
*/
export interface OrderDiscounts {
/**
*
* @type {string}
* @memberof OrderDiscounts
*/
type: OrderDiscountsType;
/**
* A unique identifier for an object.
* @type {string}
* @memberof OrderDiscounts
*/
readonly id?: string;
/**
* A unique identifier for an object.
* @type {string}
* @memberof OrderDiscounts
*/
readonly product_id?: string;
/**
*
* @type {string}
* @memberof OrderDiscounts
*/
name?: string;
/**
*
* @type {number}
* @memberof OrderDiscounts
*/
amount?: number;
/**
*
* @type {Currency}
* @memberof OrderDiscounts
*/
currency?: Currency | null;
/**
*
* @type {string}
* @memberof OrderDiscounts
*/
scope?: OrderDiscountsScope;
}
/**
* @export
* @enum {string}
*/
export declare enum OrderDiscountsType {
percentage = "percentage",
flat_fee = "flat_fee"
}
/**
* @export
* @enum {string}
*/
export declare enum OrderDiscountsScope {
order = "order",
line_item = "line_item"
}
export declare function OrderDiscountsFromJSON(json: any): OrderDiscounts;
export declare function OrderDiscountsFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderDiscounts;
export declare function OrderDiscountsToJSON(value?: OrderDiscounts | null): any;