conekta/conekta-node

View on GitHub
model/checkout-order-template.ts

Summary

Maintainability
A
0 mins
Test Coverage
/* tslint:disable */
/* eslint-disable */
/**
 * Conekta API
 * Conekta sdk
 *
 * The version of the OpenAPI document: 2.1.0
 * Contact: engineering@conekta.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


// May contain unused imports in some cases
// @ts-ignore
import { CheckoutOrderTemplateCustomerInfo } from './checkout-order-template-customer-info';
// May contain unused imports in some cases
// @ts-ignore
import { Product } from './product';

/**
 * It maintains the attributes with which the order will be created when receiving a new payment.
 * @export
 * @interface CheckoutOrderTemplate
 */
export interface CheckoutOrderTemplate {
    /**
     * It is the currency in which the order will be created. It must be a valid ISO 4217 currency code.
     * @type {string}
     * @memberof CheckoutOrderTemplate
     */
    'currency': string;
    /**
     * 
     * @type {CheckoutOrderTemplateCustomerInfo}
     * @memberof CheckoutOrderTemplate
     */
    'customer_info'?: CheckoutOrderTemplateCustomerInfo;
    /**
     * They are the products to buy. Each contains the \"unit price\" and \"quantity\" parameters that are used to calculate the total amount of the order.
     * @type {Array<Product>}
     * @memberof CheckoutOrderTemplate
     */
    'line_items': Array<Product>;
    /**
     * It is a set of key-value pairs that you can attach to the order. It can be used to store additional information about the order in a structured format.
     * @type {{ [key: string]: any; }}
     * @memberof CheckoutOrderTemplate
     */
    'metadata'?: { [key: string]: any; };
}