@shopify/shopify-api
Version:
Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks
86 lines (82 loc) • 2.76 kB
JavaScript
;
var base = require('../../base.js');
var types = require('../../../lib/types.js');
var currency = require('./currency.js');
var customer = require('./customer.js');
var discount_code = require('./discount_code.js');
/***********************************************************************************************************************
* This file is auto-generated. If you have an issue, please create a GitHub issue. *
***********************************************************************************************************************/
class AbandonedCheckout extends base.Base {
static apiVersion = types.ApiVersion.January23;
static hasOne = {
"currency": currency.Currency,
"customer": customer.Customer
};
static hasMany = {
"discount_codes": discount_code.DiscountCode
};
static paths = [
{ "http_method": "get", "operation": "checkouts", "ids": [], "path": "checkouts.json" },
{ "http_method": "get", "operation": "checkouts", "ids": [], "path": "checkouts.json" }
];
static resourceNames = [
{
"singular": "abandoned_checkout",
"plural": "abandoned_checkouts"
}
];
static async checkouts({ session, since_id = null, created_at_min = null, created_at_max = null, updated_at_min = null, updated_at_max = null, status = null, limit = null, ...otherArgs }) {
const response = await this.request({
http_method: "get",
operation: "checkouts",
session: session,
urlIds: {},
params: { "since_id": since_id, "created_at_min": created_at_min, "created_at_max": created_at_max, "updated_at_min": updated_at_min, "updated_at_max": updated_at_max, "status": status, "limit": limit, ...otherArgs },
body: {},
entity: null,
});
return response ? response.body : null;
}
abandoned_checkout_url;
billing_address;
buyer_accepts_marketing;
buyer_accepts_sms_marketing;
cart_token;
closed_at;
completed_at;
created_at;
currency;
customer;
customer_locale;
device_id;
discount_codes;
email;
gateway;
id;
landing_site;
line_items;
location_id;
note;
phone;
presentment_currency;
referring_site;
shipping_address;
shipping_lines;
sms_marketing_phone;
source_name;
subtotal_price;
tax_lines;
taxes_included;
token;
total_discounts;
total_duties;
total_line_items_price;
total_price;
total_tax;
total_weight;
updated_at;
user_id;
}
exports.AbandonedCheckout = AbandonedCheckout;
//# sourceMappingURL=abandoned_checkout.js.map