@silexpert/core 0.4.43 → 0.4.46
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.
- package/es/api/resources/dashboard.d.ts +6 -3
- package/es/api/resources/dashboard.d.ts.map +1 -1
- package/es/api/resources/dashboard.js +12 -2
- package/es/api/resources/dashboard.js.map +1 -1
- package/es/types/Enum/ShopifyFinancialStatus.d.ts +2 -0
- package/es/types/Enum/ShopifyFinancialStatus.d.ts.map +1 -0
- package/es/types/Enum/ShopifyFinancialStatus.js +2 -0
- package/es/types/Enum/ShopifyFinancialStatus.js.map +1 -0
- package/es/types/Enum/StockType.js +1 -1
- package/es/types/Enum/StockType.js.map +1 -1
- package/es/types/Enum/TransactionKind.d.ts +2 -0
- package/es/types/Enum/TransactionKind.d.ts.map +1 -0
- package/es/types/Enum/TransactionKind.js +2 -0
- package/es/types/Enum/TransactionKind.js.map +1 -0
- package/es/types/Enum/TransactionStatus.d.ts +2 -0
- package/es/types/Enum/TransactionStatus.d.ts.map +1 -0
- package/es/types/Enum/TransactionStatus.js +2 -0
- package/es/types/Enum/TransactionStatus.js.map +1 -0
- package/es/types/Interface/api/crisp/GetCrisp.d.ts +42 -0
- package/es/types/Interface/api/crisp/GetCrisp.d.ts.map +1 -0
- package/es/types/Interface/api/crisp/GetCrisp.js +2 -0
- package/es/types/Interface/api/crisp/GetCrisp.js.map +1 -0
- package/es/types/Interface/api/dashboard/QueryTopBuys.d.ts +5 -0
- package/es/types/Interface/api/dashboard/QueryTopBuys.d.ts.map +1 -0
- package/es/types/Interface/api/dashboard/QueryTopBuys.js +21 -0
- package/es/types/Interface/api/dashboard/QueryTopBuys.js.map +1 -0
- package/es/types/Interface/api/dashboard/QueryTopProviders.d.ts +5 -0
- package/es/types/Interface/api/dashboard/QueryTopProviders.d.ts.map +1 -0
- package/es/types/Interface/api/dashboard/QueryTopProviders.js +21 -0
- package/es/types/Interface/api/dashboard/QueryTopProviders.js.map +1 -0
- package/es/types/Interface/api/dashboard/QueryVat.d.ts +5 -0
- package/es/types/Interface/api/dashboard/QueryVat.d.ts.map +1 -0
- package/es/types/Interface/api/dashboard/QueryVat.js +21 -0
- package/es/types/Interface/api/dashboard/QueryVat.js.map +1 -0
- package/es/types/Interface/api/dashboard/{ResultBalanceBankAccount.d.ts → ReadBalanceBankAccount.d.ts} +2 -2
- package/es/types/Interface/api/dashboard/ReadBalanceBankAccount.d.ts.map +1 -0
- package/es/types/Interface/api/dashboard/ReadBalanceBankAccount.js +5 -0
- package/es/types/Interface/api/dashboard/ReadBalanceBankAccount.js.map +1 -0
- package/es/types/Interface/api/dashboard/ReadTopBuys.d.ts +6 -0
- package/es/types/Interface/api/dashboard/ReadTopBuys.d.ts.map +1 -0
- package/es/types/Interface/api/dashboard/ReadTopBuys.js +3 -0
- package/es/types/Interface/api/dashboard/ReadTopBuys.js.map +1 -0
- package/es/types/Interface/api/dashboard/ReadTopProviders.d.ts +6 -0
- package/es/types/Interface/api/dashboard/ReadTopProviders.d.ts.map +1 -0
- package/es/types/Interface/api/dashboard/ReadTopProviders.js +3 -0
- package/es/types/Interface/api/dashboard/ReadTopProviders.js.map +1 -0
- package/es/types/Interface/api/dashboard/{ResultTurnOverProfitAndLoss.d.ts → ReadTurnOverProfitAndLoss.d.ts} +2 -2
- package/es/types/Interface/api/dashboard/ReadTurnOverProfitAndLoss.d.ts.map +1 -0
- package/es/types/Interface/api/dashboard/ReadTurnOverProfitAndLoss.js +7 -0
- package/es/types/Interface/api/dashboard/ReadTurnOverProfitAndLoss.js.map +1 -0
- package/es/types/Interface/api/dashboard/ReadVat.d.ts +11 -0
- package/es/types/Interface/api/dashboard/ReadVat.d.ts.map +1 -0
- package/es/types/Interface/api/dashboard/ReadVat.js +5 -0
- package/es/types/Interface/api/dashboard/ReadVat.js.map +1 -0
- package/es/types/Interface/api/pdf/BillingDocumentData.d.ts +22 -20
- package/es/types/Interface/api/pdf/BillingDocumentData.d.ts.map +1 -1
- package/es/types/Interface/api/pdf/BillingDocumentData.js.map +1 -1
- package/es/types/Interface/api/shopify/ImportInvoicesShopify.d.ts +5 -0
- package/es/types/Interface/api/shopify/ImportInvoicesShopify.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/ImportInvoicesShopify.js +21 -0
- package/es/types/Interface/api/shopify/ImportInvoicesShopify.js.map +1 -0
- package/es/types/Interface/api/shopify/ShopifyOrder.d.ts +366 -0
- package/es/types/Interface/api/shopify/ShopifyOrder.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/ShopifyOrder.js +2 -0
- package/es/types/Interface/api/shopify/ShopifyOrder.js.map +1 -0
- package/es/types/Interface/api/shopify/address.d.ts +72 -0
- package/es/types/Interface/api/shopify/address.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/address.js +2 -0
- package/es/types/Interface/api/shopify/address.js.map +1 -0
- package/es/types/Interface/api/shopify/base.d.ts +11 -0
- package/es/types/Interface/api/shopify/base.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/base.js +2 -0
- package/es/types/Interface/api/shopify/base.js.map +1 -0
- package/es/types/Interface/api/shopify/client_details.d.ts +28 -0
- package/es/types/Interface/api/shopify/client_details.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/client_details.js +2 -0
- package/es/types/Interface/api/shopify/client_details.js.map +1 -0
- package/es/types/Interface/api/shopify/customer.d.ts +99 -0
- package/es/types/Interface/api/shopify/customer.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/customer.js +2 -0
- package/es/types/Interface/api/shopify/customer.js.map +1 -0
- package/es/types/Interface/api/shopify/discount_allocation.d.ts +17 -0
- package/es/types/Interface/api/shopify/discount_allocation.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/discount_allocation.js +2 -0
- package/es/types/Interface/api/shopify/discount_allocation.js.map +1 -0
- package/es/types/Interface/api/shopify/discount_application.d.ts +74 -0
- package/es/types/Interface/api/shopify/discount_application.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/discount_application.js +2 -0
- package/es/types/Interface/api/shopify/discount_application.js.map +1 -0
- package/es/types/Interface/api/shopify/discount_code.d.ts +16 -0
- package/es/types/Interface/api/shopify/discount_code.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/discount_code.js +2 -0
- package/es/types/Interface/api/shopify/discount_code.js.map +1 -0
- package/es/types/Interface/api/shopify/fulfillment.d.ts +93 -0
- package/es/types/Interface/api/shopify/fulfillment.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/fulfillment.js +2 -0
- package/es/types/Interface/api/shopify/fulfillment.js.map +1 -0
- package/es/types/Interface/api/shopify/line_item.d.ts +126 -0
- package/es/types/Interface/api/shopify/line_item.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/line_item.js +2 -0
- package/es/types/Interface/api/shopify/line_item.js.map +1 -0
- package/es/types/Interface/api/shopify/line_item_property.d.ts +12 -0
- package/es/types/Interface/api/shopify/line_item_property.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/line_item_property.js +2 -0
- package/es/types/Interface/api/shopify/line_item_property.js.map +1 -0
- package/es/types/Interface/api/shopify/location.d.ts +57 -0
- package/es/types/Interface/api/shopify/location.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/location.js +2 -0
- package/es/types/Interface/api/shopify/location.js.map +1 -0
- package/es/types/Interface/api/shopify/note_attribute.d.ts +11 -0
- package/es/types/Interface/api/shopify/note_attribute.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/note_attribute.js +2 -0
- package/es/types/Interface/api/shopify/note_attribute.js.map +1 -0
- package/es/types/Interface/api/shopify/payment_details.d.ts +9 -0
- package/es/types/Interface/api/shopify/payment_details.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/payment_details.js +2 -0
- package/es/types/Interface/api/shopify/payment_details.js.map +1 -0
- package/es/types/Interface/api/shopify/price_set.d.ts +11 -0
- package/es/types/Interface/api/shopify/price_set.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/price_set.js +2 -0
- package/es/types/Interface/api/shopify/price_set.js.map +1 -0
- package/es/types/Interface/api/shopify/refund.d.ts +140 -0
- package/es/types/Interface/api/shopify/refund.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/refund.js +2 -0
- package/es/types/Interface/api/shopify/refund.js.map +1 -0
- package/es/types/Interface/api/shopify/shipping_line.d.ts +59 -0
- package/es/types/Interface/api/shopify/shipping_line.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/shipping_line.js +2 -0
- package/es/types/Interface/api/shopify/shipping_line.js.map +1 -0
- package/es/types/Interface/api/shopify/tax_line.d.ts +22 -0
- package/es/types/Interface/api/shopify/tax_line.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/tax_line.js +2 -0
- package/es/types/Interface/api/shopify/tax_line.js.map +1 -0
- package/es/types/Interface/api/shopify/transaction.d.ts +103 -0
- package/es/types/Interface/api/shopify/transaction.d.ts.map +1 -0
- package/es/types/Interface/api/shopify/transaction.js +2 -0
- package/es/types/Interface/api/shopify/transaction.js.map +1 -0
- package/es/types/Interface/models/IAccountingFile.d.ts +1 -1
- package/es/types/Interface/models/IAccountingFile.js.map +1 -1
- package/es/types/Interface/models/IEngagementAccountingFile.d.ts +1 -1
- package/es/types/Interface/models/IEngagementAccountingFile.js.map +1 -1
- package/es/types/Interface/models/ISocietyGescom.d.ts +29 -29
- package/es/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
- package/es/types/Interface/models/ISocietyGescom.js.map +1 -1
- package/es/types/index.d.ts +12 -2
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +12 -2
- package/es/types/index.js.map +1 -1
- package/js/api/resources/dashboard.js +22 -2
- package/js/api/resources/dashboard.js.map +1 -1
- package/js/types/Enum/ShopifyFinancialStatus.js +6 -0
- package/js/types/Enum/ShopifyFinancialStatus.js.map +1 -0
- package/js/types/Enum/StockType.js +1 -1
- package/js/types/Enum/StockType.js.map +1 -1
- package/js/types/Enum/TransactionKind.js +6 -0
- package/js/types/Enum/TransactionKind.js.map +1 -0
- package/js/types/Enum/TransactionStatus.js +6 -0
- package/js/types/Enum/TransactionStatus.js.map +1 -0
- package/js/types/Interface/api/crisp/GetCrisp.js +6 -0
- package/js/types/Interface/api/crisp/GetCrisp.js.map +1 -0
- package/js/types/Interface/api/dashboard/QueryTopBuys.js +29 -0
- package/js/types/Interface/api/dashboard/QueryTopBuys.js.map +1 -0
- package/js/types/Interface/api/dashboard/QueryTopProviders.js +29 -0
- package/js/types/Interface/api/dashboard/QueryTopProviders.js.map +1 -0
- package/js/types/Interface/api/dashboard/QueryVat.js +29 -0
- package/js/types/Interface/api/dashboard/QueryVat.js.map +1 -0
- package/js/types/Interface/api/dashboard/ReadBalanceBankAccount.js +14 -0
- package/js/types/Interface/api/dashboard/ReadBalanceBankAccount.js.map +1 -0
- package/js/types/Interface/api/dashboard/ReadTopBuys.js +10 -0
- package/js/types/Interface/api/dashboard/ReadTopBuys.js.map +1 -0
- package/js/types/Interface/api/dashboard/ReadTopProviders.js +10 -0
- package/js/types/Interface/api/dashboard/ReadTopProviders.js.map +1 -0
- package/js/types/Interface/api/dashboard/{ResultTurnOverProfitAndLoss.js → ReadTurnOverProfitAndLoss.js} +3 -3
- package/js/types/Interface/api/dashboard/ReadTurnOverProfitAndLoss.js.map +1 -0
- package/js/types/Interface/api/dashboard/ReadVat.js +14 -0
- package/js/types/Interface/api/dashboard/ReadVat.js.map +1 -0
- package/js/types/Interface/api/shopify/ImportInvoicesShopify.js +29 -0
- package/js/types/Interface/api/shopify/ImportInvoicesShopify.js.map +1 -0
- package/js/types/Interface/api/shopify/ShopifyOrder.js +6 -0
- package/js/types/Interface/api/shopify/ShopifyOrder.js.map +1 -0
- package/js/types/Interface/api/shopify/address.js +6 -0
- package/js/types/Interface/api/shopify/address.js.map +1 -0
- package/js/types/Interface/api/shopify/base.js +6 -0
- package/js/types/Interface/api/shopify/base.js.map +1 -0
- package/js/types/Interface/api/shopify/client_details.js +6 -0
- package/js/types/Interface/api/shopify/client_details.js.map +1 -0
- package/js/types/Interface/api/shopify/customer.js +6 -0
- package/js/types/Interface/api/shopify/customer.js.map +1 -0
- package/js/types/Interface/api/shopify/discount_allocation.js +6 -0
- package/js/types/Interface/api/shopify/discount_allocation.js.map +1 -0
- package/js/types/Interface/api/shopify/discount_application.js +6 -0
- package/js/types/Interface/api/shopify/discount_application.js.map +1 -0
- package/js/types/Interface/api/shopify/discount_code.js +6 -0
- package/js/types/Interface/api/shopify/discount_code.js.map +1 -0
- package/js/types/Interface/api/shopify/fulfillment.js +6 -0
- package/js/types/Interface/api/shopify/fulfillment.js.map +1 -0
- package/js/types/Interface/api/shopify/line_item.js +6 -0
- package/js/types/Interface/api/shopify/line_item.js.map +1 -0
- package/js/types/Interface/api/shopify/line_item_property.js +6 -0
- package/js/types/Interface/api/shopify/line_item_property.js.map +1 -0
- package/js/types/Interface/api/shopify/location.js +6 -0
- package/js/types/Interface/api/shopify/location.js.map +1 -0
- package/js/types/Interface/api/shopify/note_attribute.js +6 -0
- package/js/types/Interface/api/shopify/note_attribute.js.map +1 -0
- package/js/types/Interface/api/shopify/payment_details.js +6 -0
- package/js/types/Interface/api/shopify/payment_details.js.map +1 -0
- package/js/types/Interface/api/shopify/price_set.js +6 -0
- package/js/types/Interface/api/shopify/price_set.js.map +1 -0
- package/js/types/Interface/api/shopify/refund.js +6 -0
- package/js/types/Interface/api/shopify/refund.js.map +1 -0
- package/js/types/Interface/api/shopify/shipping_line.js +6 -0
- package/js/types/Interface/api/shopify/shipping_line.js.map +1 -0
- package/js/types/Interface/api/shopify/tax_line.js +6 -0
- package/js/types/Interface/api/shopify/tax_line.js.map +1 -0
- package/js/types/Interface/api/shopify/transaction.js +6 -0
- package/js/types/Interface/api/shopify/transaction.js.map +1 -0
- package/js/types/index.js +126 -6
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/dashboard.ts +32 -6
- package/ts/types/Enum/ShopifyFinancialStatus.ts +11 -0
- package/ts/types/Enum/StockType.ts +1 -1
- package/ts/types/Enum/TransactionKind.ts +7 -0
- package/ts/types/Enum/TransactionStatus.ts +6 -0
- package/ts/types/Interface/api/crisp/GetCrisp.ts +46 -0
- package/ts/types/Interface/api/dashboard/QueryTopBuys.ts +9 -0
- package/ts/types/Interface/api/dashboard/QueryTopProviders.ts +9 -0
- package/ts/types/Interface/api/dashboard/QueryVat.ts +9 -0
- package/ts/types/Interface/api/dashboard/{ResultBalanceBankAccount.ts → ReadBalanceBankAccount.ts} +1 -1
- package/ts/types/Interface/api/dashboard/ReadTopBuys.ts +5 -0
- package/ts/types/Interface/api/dashboard/ReadTopProviders.ts +5 -0
- package/ts/types/Interface/api/dashboard/{ResultTurnOverProfitAndLoss.ts → ReadTurnOverProfitAndLoss.ts} +1 -1
- package/ts/types/Interface/api/dashboard/ReadVat.ts +11 -0
- package/ts/types/Interface/api/pdf/BillingDocumentData.ts +22 -20
- package/ts/types/Interface/api/shopify/ImportInvoicesShopify.ts +8 -0
- package/ts/types/Interface/api/shopify/ShopifyOrder.ts +436 -0
- package/ts/types/Interface/api/shopify/address.ts +88 -0
- package/ts/types/Interface/api/shopify/base.ts +10 -0
- package/ts/types/Interface/api/shopify/client_details.ts +33 -0
- package/ts/types/Interface/api/shopify/customer.ts +125 -0
- package/ts/types/Interface/api/shopify/discount_allocation.ts +19 -0
- package/ts/types/Interface/api/shopify/discount_application.ts +83 -0
- package/ts/types/Interface/api/shopify/discount_code.ts +18 -0
- package/ts/types/Interface/api/shopify/fulfillment.ts +110 -0
- package/ts/types/Interface/api/shopify/line_item.ts +153 -0
- package/ts/types/Interface/api/shopify/line_item_property.ts +13 -0
- package/ts/types/Interface/api/shopify/location.ts +69 -0
- package/ts/types/Interface/api/shopify/note_attribute.ts +11 -0
- package/ts/types/Interface/api/shopify/payment_details.ts +13 -0
- package/ts/types/Interface/api/shopify/price_set.ts +10 -0
- package/ts/types/Interface/api/shopify/refund.ts +142 -0
- package/ts/types/Interface/api/shopify/shipping_line.ts +71 -0
- package/ts/types/Interface/api/shopify/tax_line.ts +25 -0
- package/ts/types/Interface/api/shopify/transaction.ts +123 -0
- package/ts/types/Interface/models/IAccountingFile.ts +1 -1
- package/ts/types/Interface/models/IEngagementAccountingFile.ts +1 -1
- package/ts/types/Interface/models/ISocietyGescom.ts +29 -29
- package/ts/types/index.ts +12 -2
- package/es/types/Interface/api/dashboard/ResultBalanceBankAccount.d.ts.map +0 -1
- package/es/types/Interface/api/dashboard/ResultBalanceBankAccount.js +0 -5
- package/es/types/Interface/api/dashboard/ResultBalanceBankAccount.js.map +0 -1
- package/es/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.d.ts.map +0 -1
- package/es/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.js +0 -7
- package/es/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.js.map +0 -1
- package/js/types/Interface/api/dashboard/ResultBalanceBankAccount.js +0 -14
- package/js/types/Interface/api/dashboard/ResultBalanceBankAccount.js.map +0 -1
- package/js/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.js.map +0 -1
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
import { Address } from './address';
|
|
2
|
+
import { TaxLine } from './tax_line';
|
|
3
|
+
import { Customer } from './customer';
|
|
4
|
+
import { ShopifyObject } from './base';
|
|
5
|
+
import { LineItem } from './line_item';
|
|
6
|
+
import { Fulfillment } from './fulfillment';
|
|
7
|
+
import { Refund } from './refund';
|
|
8
|
+
import { ShippingLine } from './shipping_line';
|
|
9
|
+
import { DiscountCode } from './discount_code';
|
|
10
|
+
import { DiscountApplication } from './discount_application';
|
|
11
|
+
import { ClientDetails } from './client_details';
|
|
12
|
+
import { PaymentDetails } from './payment_details';
|
|
13
|
+
import { PriceSet } from './price_set';
|
|
14
|
+
import { NoteAttribute } from './note_attribute';
|
|
15
|
+
import { FinancialStatus } from '../../../Enum/ShopifyFinancialStatus';
|
|
16
|
+
export interface ShopifyOrder extends ShopifyObject {
|
|
17
|
+
/**
|
|
18
|
+
* The ID of the app that created the order.
|
|
19
|
+
* @readonly
|
|
20
|
+
*/
|
|
21
|
+
app_id: number;
|
|
22
|
+
/**
|
|
23
|
+
* The mailing address associated with the payment method. This address is an optional field that will not be available on orders that do not require one.
|
|
24
|
+
*/
|
|
25
|
+
billing_address?: Address;
|
|
26
|
+
/**
|
|
27
|
+
* The IP address of the browser used by the customer when placing the order.
|
|
28
|
+
* @readonly
|
|
29
|
+
*/
|
|
30
|
+
browser_ip: null | string;
|
|
31
|
+
/**
|
|
32
|
+
* Indicates whether or not the person who placed the order would like to receive email updates from the shop.
|
|
33
|
+
* This is set when checking the "I want to receive occasional emails about new products, promotions and other news" checkbox during checkout.
|
|
34
|
+
*/
|
|
35
|
+
buyer_accepts_marketing: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The reason why the order was cancelled. If the order was not cancelled, this value is `null`. Known values are `customer`, `fraud`, `inventory` and `other`.
|
|
38
|
+
*/
|
|
39
|
+
cancel_reason: null | string;
|
|
40
|
+
/**
|
|
41
|
+
* The date and time when the order was cancelled. If the order was not cancelled, this value is `null`.
|
|
42
|
+
* @readonly
|
|
43
|
+
*/
|
|
44
|
+
cancelled_at: null | string;
|
|
45
|
+
/**
|
|
46
|
+
* Unique identifier for a particular cart that is attached to a particular order.
|
|
47
|
+
* @readonly
|
|
48
|
+
*/
|
|
49
|
+
cart_token: null | string;
|
|
50
|
+
/**
|
|
51
|
+
* TODO - what is this?
|
|
52
|
+
*/
|
|
53
|
+
checkout_id: null | number;
|
|
54
|
+
/**
|
|
55
|
+
* TODO - what is this?
|
|
56
|
+
*/
|
|
57
|
+
checkout_token: null | string;
|
|
58
|
+
/**
|
|
59
|
+
* Information about the browser that the customer used when they placed their order:
|
|
60
|
+
*
|
|
61
|
+
* * **accept_language**: The languages and locales that the browser understands.
|
|
62
|
+
* * **browser_height**: The browser screen height in pixels, if available.
|
|
63
|
+
* * **browser_ip**: The browser IP address.
|
|
64
|
+
* * **browser_width**: The browser screen width in pixels, if available.
|
|
65
|
+
* * **session_hash**: A hash of the session.
|
|
66
|
+
* * **user_agent**: Details of the browsing client, including software and operating versions.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* "client_details": {
|
|
70
|
+
* "accept_language": "en-US,en;q=0.9",
|
|
71
|
+
* "browser_height": 1320,
|
|
72
|
+
* "browser_ip": "216.191.105.146",
|
|
73
|
+
* "browser_width": 1280,
|
|
74
|
+
* "session_hash": "9ad4d1f4e6a8977b9dd98eed1e477643",
|
|
75
|
+
* "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36"
|
|
76
|
+
* }
|
|
77
|
+
* @readonly
|
|
78
|
+
*/
|
|
79
|
+
client_details?: ClientDetails;
|
|
80
|
+
/**
|
|
81
|
+
* The date and time when the order was closed. If the order was not clsoed, this value is null.
|
|
82
|
+
* @readonly
|
|
83
|
+
*/
|
|
84
|
+
closed_at: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* TODO - what is this?
|
|
87
|
+
*/
|
|
88
|
+
confirmed: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* The customer's contact email address.
|
|
91
|
+
* @note Can' be used to create an order, instead use `order: { customer: {email: "..." }}`
|
|
92
|
+
*/
|
|
93
|
+
contact_email: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* The date and time when the order was created in Shopify.
|
|
96
|
+
* @readonly
|
|
97
|
+
*/
|
|
98
|
+
created_at: string;
|
|
99
|
+
/**
|
|
100
|
+
* The three letter code (ISO 4217) for the currency used for the payment.
|
|
101
|
+
*/
|
|
102
|
+
currency: string;
|
|
103
|
+
/**
|
|
104
|
+
* A <see cref="ShopifyCustomer"/> object containing information about the customer. This value may be null if the order was created through Shopify POS.
|
|
105
|
+
*/
|
|
106
|
+
customer?: Customer;
|
|
107
|
+
/**
|
|
108
|
+
* Locale string, i.e. 'de', 'en', or null
|
|
109
|
+
* @readonly
|
|
110
|
+
*/
|
|
111
|
+
customer_locale: null | string;
|
|
112
|
+
/**
|
|
113
|
+
* An ordered list of stacked discount applications.
|
|
114
|
+
* @readonly
|
|
115
|
+
*/
|
|
116
|
+
discount_applications: DiscountApplication[];
|
|
117
|
+
/**
|
|
118
|
+
* Applicable discount codes that can be applied to the order.
|
|
119
|
+
*/
|
|
120
|
+
discount_codes: DiscountCode[];
|
|
121
|
+
/**
|
|
122
|
+
* The order's email address. Note?: On and after 2015-11-03, you should be using <see cref="ContactEmail"/> to refer to the customer's email address.
|
|
123
|
+
* Between 2015-11-03 and 2015-12-03, updates to an order's email will also update the customer's email. This is temporary so apps can be migrated over to
|
|
124
|
+
* doing customer updates rather than order updates to change the contact email. After 2015-12-03, updating updating an order's email will no longer update
|
|
125
|
+
* the customer's email and apps will have to use the customer update endpoint to do so.
|
|
126
|
+
*/
|
|
127
|
+
email: string;
|
|
128
|
+
/**
|
|
129
|
+
* The financial status of an order. Known values are "authorized", "paid", "pending", "partially_paid", "partially_refunded", "refunded" and "voided".
|
|
130
|
+
*/
|
|
131
|
+
financial_status: FinancialStatus;
|
|
132
|
+
/**
|
|
133
|
+
* An array of <see cref="ShopifyFulfillment"/> objects for this order.
|
|
134
|
+
*/
|
|
135
|
+
fulfillments: Fulfillment[];
|
|
136
|
+
/**
|
|
137
|
+
* The fulfillment status for this order. Known values are 'fulfilled', 'partial' or null.
|
|
138
|
+
*/
|
|
139
|
+
fulfillment_status: 'fulfilled' | 'partial' | string | null;
|
|
140
|
+
/**
|
|
141
|
+
* The payment gateway used.
|
|
142
|
+
* @deprecated Use Transaction resource instead
|
|
143
|
+
*/
|
|
144
|
+
gateway: string | null;
|
|
145
|
+
/**
|
|
146
|
+
* The URL for the page where the buyer landed when entering the shop.
|
|
147
|
+
* (can be `null`)
|
|
148
|
+
* @readonly
|
|
149
|
+
*/
|
|
150
|
+
landing_site: string | null;
|
|
151
|
+
/**
|
|
152
|
+
* TODO: What is this? Probably landing_site referrer? (always null in available test data)
|
|
153
|
+
* (can be `null`)
|
|
154
|
+
* @readonly
|
|
155
|
+
*/
|
|
156
|
+
landing_site_ref: string | null;
|
|
157
|
+
/**
|
|
158
|
+
* An array of <see cref="ShopifyLineItem"/> objects, each one containing information about an item in the order.
|
|
159
|
+
* @required
|
|
160
|
+
*/
|
|
161
|
+
line_items: LineItem[];
|
|
162
|
+
/**
|
|
163
|
+
* The ID of the physical location where the order was processed.
|
|
164
|
+
*/
|
|
165
|
+
location_id: number | null;
|
|
166
|
+
/**
|
|
167
|
+
* The customer's order name as represented by a number, e.g. `#1001`.
|
|
168
|
+
* @readonly
|
|
169
|
+
*/
|
|
170
|
+
name: string;
|
|
171
|
+
/**
|
|
172
|
+
* The text of an optional note that a shop owner can attach to the order.
|
|
173
|
+
*/
|
|
174
|
+
note: null | string;
|
|
175
|
+
/**
|
|
176
|
+
* Extra information that is added to the order.
|
|
177
|
+
*/
|
|
178
|
+
note_attributes: NoteAttribute[];
|
|
179
|
+
/**
|
|
180
|
+
* Numerical identifier unique to the shop. A number is sequential and starts at 1000.
|
|
181
|
+
* @readonly
|
|
182
|
+
*/
|
|
183
|
+
number: number;
|
|
184
|
+
/**
|
|
185
|
+
* A unique numeric identifier for the order. This one is used by the shop owner and customer.
|
|
186
|
+
* This is different from the id property, which is also a unique numeric identifier for the order, but used for API purposes.
|
|
187
|
+
* @readonly
|
|
188
|
+
*/
|
|
189
|
+
order_number: number;
|
|
190
|
+
/**
|
|
191
|
+
* URL to see the order status
|
|
192
|
+
* @readonly
|
|
193
|
+
*/
|
|
194
|
+
order_status_url: string;
|
|
195
|
+
/**
|
|
196
|
+
* Payment details for this order. May be null or undefined if the order was created via API without payment details.
|
|
197
|
+
* @deprecated Use the Transaction resource instead)
|
|
198
|
+
*/
|
|
199
|
+
payment_details?: PaymentDetails | null;
|
|
200
|
+
/**
|
|
201
|
+
* The list of payment gateways used for the order.
|
|
202
|
+
* @readonly
|
|
203
|
+
*/
|
|
204
|
+
payment_gateway_names: string[];
|
|
205
|
+
/**
|
|
206
|
+
* The customer's phone number.
|
|
207
|
+
*/
|
|
208
|
+
phone: string;
|
|
209
|
+
/**
|
|
210
|
+
* The presentment currency that was used to display prices to the customer.
|
|
211
|
+
*/
|
|
212
|
+
presentment_currency: string;
|
|
213
|
+
/**
|
|
214
|
+
* The date that the order was processed at.
|
|
215
|
+
*/
|
|
216
|
+
processed_at: string;
|
|
217
|
+
/**
|
|
218
|
+
* The type of payment processing method. Known values are `checkout`, `direct`, `manual`, `offsite`, `express`, `free` and `none`.
|
|
219
|
+
* @readonly
|
|
220
|
+
*/
|
|
221
|
+
processing_method: string;
|
|
222
|
+
/**
|
|
223
|
+
* The website that the customer clicked on to come to the shop.
|
|
224
|
+
*/
|
|
225
|
+
referring_site: null | string;
|
|
226
|
+
/**
|
|
227
|
+
* A reference string (8-4-4-4-12 uppercase hexadecimal digits), not documented, can be `null`
|
|
228
|
+
*/
|
|
229
|
+
reference: null | string;
|
|
230
|
+
/**
|
|
231
|
+
* A list of refunds applied to the order. For more information, see [the Refund API](https://help.shopify.com/en/api/reference/orders/refund).
|
|
232
|
+
* @example
|
|
233
|
+
* "refunds": [
|
|
234
|
+
* {
|
|
235
|
+
* "id": 18423447608,
|
|
236
|
+
* "order_id": 394481795128,
|
|
237
|
+
* "created_at": "2018-03-06T09:35:37-05:00",
|
|
238
|
+
* "note": null,
|
|
239
|
+
* "user_id": null,
|
|
240
|
+
* "processed_at": "2018-03-06T09:35:37-05:00",
|
|
241
|
+
* "refund_line_items": [],
|
|
242
|
+
* "transactions": [],
|
|
243
|
+
* "order_adjustments": []
|
|
244
|
+
* }
|
|
245
|
+
* ]
|
|
246
|
+
* @readonly
|
|
247
|
+
*/
|
|
248
|
+
refunds: Refund[];
|
|
249
|
+
/**
|
|
250
|
+
* The mailing address to where the order will be shipped. This address is optional and will not be available on orders that do not require one.
|
|
251
|
+
*/
|
|
252
|
+
shipping_address?: Address;
|
|
253
|
+
/**
|
|
254
|
+
* An array of <see cref="ShopifyShippingLine"/> objects, each of which details the shipping methods used.
|
|
255
|
+
*/
|
|
256
|
+
shipping_lines: ShippingLine[];
|
|
257
|
+
/**
|
|
258
|
+
* undocumented string, which seems to be of the format `${location_id}-${POS_DEVICE_ID}-${POS_ORDER_NUMBER}` for POS orders, where `POS_DEVICE_ID` is an id associated with the device and `POS_ORDER_NUMBER` is counted up for each separate device
|
|
259
|
+
* (can be `null`)
|
|
260
|
+
*/
|
|
261
|
+
source_identifier: string | null;
|
|
262
|
+
/**
|
|
263
|
+
* Where the order originated. May only be set during creation, and is not writeable thereafter.
|
|
264
|
+
* Orders created via the API may be assigned any string of your choice except for `web`, `pos`, `iphone`, and `android`.
|
|
265
|
+
* Default is `api`.
|
|
266
|
+
*/
|
|
267
|
+
source_name: string;
|
|
268
|
+
/**
|
|
269
|
+
* not documented; always null in test data
|
|
270
|
+
*/
|
|
271
|
+
source_url?: null | any;
|
|
272
|
+
/**
|
|
273
|
+
* Price of the order before shipping and taxes
|
|
274
|
+
*/
|
|
275
|
+
subtotal_price: string;
|
|
276
|
+
/**
|
|
277
|
+
* Price of the order before shipping and taxes, in shop and presentment currencies
|
|
278
|
+
* (BETA)
|
|
279
|
+
*/
|
|
280
|
+
subtotal_price_set: PriceSet;
|
|
281
|
+
/**
|
|
282
|
+
* Tags are additional short descriptors, commonly used for filtering and searching, formatted as a string of comma-separated values.
|
|
283
|
+
*/
|
|
284
|
+
tags: string;
|
|
285
|
+
/**
|
|
286
|
+
* An array of <see cref="ShopifyTaxLine"/> objects, each of which details the total taxes applicable to the order.
|
|
287
|
+
*/
|
|
288
|
+
tax_lines: TaxLine[];
|
|
289
|
+
/**
|
|
290
|
+
* States whether or not taxes are included in the order subtotal.
|
|
291
|
+
*/
|
|
292
|
+
taxes_included: boolean;
|
|
293
|
+
/**
|
|
294
|
+
* whether this is a test order
|
|
295
|
+
*/
|
|
296
|
+
test: boolean;
|
|
297
|
+
/**
|
|
298
|
+
* Unique identifier for a particular order.
|
|
299
|
+
* @readonly
|
|
300
|
+
*/
|
|
301
|
+
token: string;
|
|
302
|
+
/**
|
|
303
|
+
* The total amount of the discounts applied to the price of the order.
|
|
304
|
+
*/
|
|
305
|
+
total_discounts: string;
|
|
306
|
+
/**
|
|
307
|
+
* The total amount of the discounts applied to the price of the order, in shop and presentment currencies.
|
|
308
|
+
* @beta
|
|
309
|
+
*/
|
|
310
|
+
total_discounts_set: PriceSet;
|
|
311
|
+
/**
|
|
312
|
+
* The sum of all the prices of all the items in the order.
|
|
313
|
+
*/
|
|
314
|
+
total_line_items_price: string;
|
|
315
|
+
/**
|
|
316
|
+
* The sum of all the prices of all the items in the order, in shop and presentment currencies.
|
|
317
|
+
* (BETA)
|
|
318
|
+
*/
|
|
319
|
+
total_line_items_price_set: PriceSet;
|
|
320
|
+
/**
|
|
321
|
+
* The sum of all the prices of all the items in the order, with taxes and discounts included (must be positive).
|
|
322
|
+
*/
|
|
323
|
+
total_price: string;
|
|
324
|
+
/**
|
|
325
|
+
* The sum of all the prices of all the items in the order, in shop and presentment currencies, with taxes and discounts included (must be positive).
|
|
326
|
+
* (BETA)
|
|
327
|
+
*/
|
|
328
|
+
total_price_set: PriceSet;
|
|
329
|
+
/**
|
|
330
|
+
* The sum of all the shipping prices in the order, in shop and presentment currencies, with taxes and discounts included (must be positive).
|
|
331
|
+
* (BETA)
|
|
332
|
+
*/
|
|
333
|
+
total_shipping_price_set: PriceSet;
|
|
334
|
+
/**
|
|
335
|
+
* The sum of all the prices of all the items in the order, in USD, with taxes and discounts included (must be positive).
|
|
336
|
+
*/
|
|
337
|
+
total_price_usd: string;
|
|
338
|
+
/**
|
|
339
|
+
* The sum of all the taxes applied to the order (must be positive).
|
|
340
|
+
*/
|
|
341
|
+
total_tax: string;
|
|
342
|
+
/**
|
|
343
|
+
* The sum of all the taxes applied to the order, in shop and presentment currencies (must be positive).
|
|
344
|
+
* (BETA)
|
|
345
|
+
*/
|
|
346
|
+
total_tax_set: PriceSet;
|
|
347
|
+
/**
|
|
348
|
+
* The sum of all the tips in the order.
|
|
349
|
+
*/
|
|
350
|
+
total_tip_received: string;
|
|
351
|
+
/**
|
|
352
|
+
* The sum of all the weights of the line items in the order, in grams.
|
|
353
|
+
*/
|
|
354
|
+
total_weight: number | null;
|
|
355
|
+
/**
|
|
356
|
+
* The date and time when the order was last modified.
|
|
357
|
+
* @readonly
|
|
358
|
+
*/
|
|
359
|
+
updated_at: string;
|
|
360
|
+
/**
|
|
361
|
+
* POS device user id for POS sales, or Shopify staff user id for draft orders
|
|
362
|
+
* null if not applicable
|
|
363
|
+
*/
|
|
364
|
+
user_id: number | null;
|
|
365
|
+
}
|
|
366
|
+
//# sourceMappingURL=ShopifyOrder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShopifyOrder.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/shopify/ShopifyOrder.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShopifyOrder.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/shopify/ShopifyOrder.ts"],"names":[],"mappings":"","sourcesContent":["import { Address } from './address';\nimport { TaxLine } from './tax_line';\nimport { Customer } from './customer';\nimport { ShopifyObject } from './base';\nimport { LineItem } from './line_item';\nimport { Fulfillment } from './fulfillment';\nimport { Refund } from './refund';\nimport { ShippingLine } from './shipping_line';\nimport { DiscountCode } from './discount_code';\nimport { DiscountApplication } from './discount_application';\nimport { ClientDetails } from './client_details';\nimport { PaymentDetails } from './payment_details';\nimport { PriceSet } from './price_set';\nimport { NoteAttribute } from './note_attribute';\n\n// Enum imports\nimport { FinancialStatus } from '../../../Enum/ShopifyFinancialStatus';\n\nexport interface ShopifyOrder extends ShopifyObject {\n /**\n * The ID of the app that created the order.\n * @readonly\n */\n app_id: number;\n\n /**\n * The mailing address associated with the payment method. This address is an optional field that will not be available on orders that do not require one.\n */\n billing_address?: Address;\n\n /**\n * The IP address of the browser used by the customer when placing the order.\n * @readonly\n */\n browser_ip: null | string;\n\n /**\n * Indicates whether or not the person who placed the order would like to receive email updates from the shop.\n * This is set when checking the \"I want to receive occasional emails about new products, promotions and other news\" checkbox during checkout.\n */\n buyer_accepts_marketing: boolean;\n\n /**\n * The reason why the order was cancelled. If the order was not cancelled, this value is `null`. Known values are `customer`, `fraud`, `inventory` and `other`.\n */\n cancel_reason: null | string;\n\n /**\n * The date and time when the order was cancelled. If the order was not cancelled, this value is `null`.\n * @readonly\n */\n cancelled_at: null | string;\n\n /**\n * Unique identifier for a particular cart that is attached to a particular order.\n * @readonly\n */\n cart_token: null | string;\n\n /**\n * TODO - what is this?\n */\n checkout_id: null | number;\n\n /**\n * TODO - what is this?\n */\n checkout_token: null | string;\n\n /**\n * Information about the browser that the customer used when they placed their order:\n *\n * * **accept_language**: The languages and locales that the browser understands.\n * * **browser_height**: The browser screen height in pixels, if available.\n * * **browser_ip**: The browser IP address.\n * * **browser_width**: The browser screen width in pixels, if available.\n * * **session_hash**: A hash of the session.\n * * **user_agent**: Details of the browsing client, including software and operating versions.\n *\n * @example\n * \"client_details\": {\n * \"accept_language\": \"en-US,en;q=0.9\",\n * \"browser_height\": 1320,\n * \"browser_ip\": \"216.191.105.146\",\n * \"browser_width\": 1280,\n * \"session_hash\": \"9ad4d1f4e6a8977b9dd98eed1e477643\",\n * \"user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36\"\n * }\n * @readonly\n */\n client_details?: ClientDetails;\n\n /**\n * The date and time when the order was closed. If the order was not clsoed, this value is null.\n * @readonly\n */\n closed_at: string | null;\n\n /**\n * TODO - what is this?\n */\n confirmed: boolean;\n\n /**\n * The customer's contact email address.\n * @note Can' be used to create an order, instead use `order: { customer: {email: \"...\" }}`\n */\n contact_email: string | null;\n\n /**\n * The date and time when the order was created in Shopify.\n * @readonly\n */\n created_at: string;\n\n /**\n * The three letter code (ISO 4217) for the currency used for the payment.\n */\n currency: string;\n\n /**\n * A <see cref=\"ShopifyCustomer\"/> object containing information about the customer. This value may be null if the order was created through Shopify POS.\n */\n customer?: Customer;\n\n /**\n * Locale string, i.e. 'de', 'en', or null\n * @readonly\n */\n customer_locale: null | string;\n\n /**\n * An ordered list of stacked discount applications.\n * @readonly\n */\n discount_applications: DiscountApplication[];\n\n /**\n * Applicable discount codes that can be applied to the order.\n */\n discount_codes: DiscountCode[];\n\n /**\n * The order's email address. Note?: On and after 2015-11-03, you should be using <see cref=\"ContactEmail\"/> to refer to the customer's email address.\n * Between 2015-11-03 and 2015-12-03, updates to an order's email will also update the customer's email. This is temporary so apps can be migrated over to\n * doing customer updates rather than order updates to change the contact email. After 2015-12-03, updating updating an order's email will no longer update\n * the customer's email and apps will have to use the customer update endpoint to do so.\n */\n email: string;\n\n /**\n * The financial status of an order. Known values are \"authorized\", \"paid\", \"pending\", \"partially_paid\", \"partially_refunded\", \"refunded\" and \"voided\".\n */\n financial_status: FinancialStatus;\n\n /**\n * An array of <see cref=\"ShopifyFulfillment\"/> objects for this order.\n */\n fulfillments: Fulfillment[];\n\n /**\n * The fulfillment status for this order. Known values are 'fulfilled', 'partial' or null.\n */\n fulfillment_status: 'fulfilled' | 'partial' | string | null;\n\n /**\n * The payment gateway used.\n * @deprecated Use Transaction resource instead\n */\n gateway: string | null;\n\n /**\n * The URL for the page where the buyer landed when entering the shop.\n * (can be `null`)\n * @readonly\n */\n landing_site: string | null;\n\n /**\n * TODO: What is this? Probably landing_site referrer? (always null in available test data)\n * (can be `null`)\n * @readonly\n */\n landing_site_ref: string | null;\n\n /**\n * An array of <see cref=\"ShopifyLineItem\"/> objects, each one containing information about an item in the order.\n * @required\n */\n line_items: LineItem[];\n\n /**\n * The ID of the physical location where the order was processed.\n */\n location_id: number | null;\n\n /**\n * The customer's order name as represented by a number, e.g. `#1001`.\n * @readonly\n */\n name: string;\n\n /**\n * The text of an optional note that a shop owner can attach to the order.\n */\n note: null | string;\n\n /**\n * Extra information that is added to the order.\n */\n note_attributes: NoteAttribute[];\n\n /**\n * Numerical identifier unique to the shop. A number is sequential and starts at 1000.\n * @readonly\n */\n number: number;\n\n /**\n * A unique numeric identifier for the order. This one is used by the shop owner and customer.\n * This is different from the id property, which is also a unique numeric identifier for the order, but used for API purposes.\n * @readonly\n */\n order_number: number;\n\n /**\n * URL to see the order status\n * @readonly\n */\n order_status_url: string;\n\n /**\n * Payment details for this order. May be null or undefined if the order was created via API without payment details.\n * @deprecated Use the Transaction resource instead)\n */\n payment_details?: PaymentDetails | null;\n\n /**\n * The list of payment gateways used for the order.\n * @readonly\n */\n payment_gateway_names: string[];\n\n /**\n * The customer's phone number.\n */\n phone: string;\n\n /**\n * The presentment currency that was used to display prices to the customer.\n */\n presentment_currency: string;\n\n /**\n * The date that the order was processed at.\n */\n processed_at: string;\n\n /**\n * The type of payment processing method. Known values are `checkout`, `direct`, `manual`, `offsite`, `express`, `free` and `none`.\n * @readonly\n */\n processing_method: string;\n\n /**\n * The website that the customer clicked on to come to the shop.\n */\n referring_site: null | string;\n\n /**\n * A reference string (8-4-4-4-12 uppercase hexadecimal digits), not documented, can be `null`\n */\n reference: null | string;\n\n /**\n * A list of refunds applied to the order. For more information, see [the Refund API](https://help.shopify.com/en/api/reference/orders/refund).\n * @example\n * \"refunds\": [\n * {\n * \"id\": 18423447608,\n * \"order_id\": 394481795128,\n * \"created_at\": \"2018-03-06T09:35:37-05:00\",\n * \"note\": null,\n * \"user_id\": null,\n * \"processed_at\": \"2018-03-06T09:35:37-05:00\",\n * \"refund_line_items\": [],\n * \"transactions\": [],\n * \"order_adjustments\": []\n * }\n * ]\n * @readonly\n */\n refunds: Refund[];\n\n /**\n * The mailing address to where the order will be shipped. This address is optional and will not be available on orders that do not require one.\n */\n shipping_address?: Address;\n\n /**\n * An array of <see cref=\"ShopifyShippingLine\"/> objects, each of which details the shipping methods used.\n */\n shipping_lines: ShippingLine[];\n\n /**\n * undocumented string, which seems to be of the format `${location_id}-${POS_DEVICE_ID}-${POS_ORDER_NUMBER}` for POS orders, where `POS_DEVICE_ID` is an id associated with the device and `POS_ORDER_NUMBER` is counted up for each separate device\n * (can be `null`)\n */\n source_identifier: string | null;\n\n /**\n * Where the order originated. May only be set during creation, and is not writeable thereafter.\n * Orders created via the API may be assigned any string of your choice except for `web`, `pos`, `iphone`, and `android`.\n * Default is `api`.\n */\n source_name: string;\n\n /**\n * not documented; always null in test data\n */\n source_url?: null | any;\n\n /**\n * Price of the order before shipping and taxes\n */\n subtotal_price: string;\n\n /**\n * Price of the order before shipping and taxes, in shop and presentment currencies\n * (BETA)\n */\n subtotal_price_set: PriceSet;\n\n /**\n * Tags are additional short descriptors, commonly used for filtering and searching, formatted as a string of comma-separated values.\n */\n tags: string;\n\n /**\n * An array of <see cref=\"ShopifyTaxLine\"/> objects, each of which details the total taxes applicable to the order.\n */\n tax_lines: TaxLine[];\n\n /**\n * States whether or not taxes are included in the order subtotal.\n */\n taxes_included: boolean;\n\n /**\n * whether this is a test order\n */\n test: boolean;\n\n /**\n * Unique identifier for a particular order.\n * @readonly\n */\n token: string;\n\n /**\n * The total amount of the discounts applied to the price of the order.\n */\n total_discounts: string;\n\n /**\n * The total amount of the discounts applied to the price of the order, in shop and presentment currencies.\n * @beta\n */\n total_discounts_set: PriceSet;\n\n /**\n * The sum of all the prices of all the items in the order.\n */\n total_line_items_price: string;\n\n /**\n * The sum of all the prices of all the items in the order, in shop and presentment currencies.\n * (BETA)\n */\n total_line_items_price_set: PriceSet;\n\n /**\n * The sum of all the prices of all the items in the order, with taxes and discounts included (must be positive).\n */\n total_price: string;\n\n /**\n * The sum of all the prices of all the items in the order, in shop and presentment currencies, with taxes and discounts included (must be positive).\n * (BETA)\n */\n total_price_set: PriceSet;\n\n /**\n * The sum of all the shipping prices in the order, in shop and presentment currencies, with taxes and discounts included (must be positive).\n * (BETA)\n */\n total_shipping_price_set: PriceSet;\n\n /**\n * The sum of all the prices of all the items in the order, in USD, with taxes and discounts included (must be positive).\n */\n total_price_usd: string;\n\n /**\n * The sum of all the taxes applied to the order (must be positive).\n */\n total_tax: string;\n\n /**\n * The sum of all the taxes applied to the order, in shop and presentment currencies (must be positive).\n * (BETA)\n */\n total_tax_set: PriceSet;\n\n /**\n * The sum of all the tips in the order.\n */\n total_tip_received: string;\n\n /**\n * The sum of all the weights of the line items in the order, in grams.\n */\n total_weight: number | null;\n\n /**\n * The date and time when the order was last modified.\n * @readonly\n */\n updated_at: string;\n\n /**\n * POS device user id for POS sales, or Shopify staff user id for draft orders\n * null if not applicable\n */\n user_id: number | null;\n}"]}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { ShopifyObject } from './base';
|
|
2
|
+
export interface Address extends ShopifyObject {
|
|
3
|
+
/**
|
|
4
|
+
* The mailing address.
|
|
5
|
+
*/
|
|
6
|
+
address1?: string;
|
|
7
|
+
/**
|
|
8
|
+
* An additional field for the mailing address.
|
|
9
|
+
*/
|
|
10
|
+
address2?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The city.
|
|
13
|
+
*/
|
|
14
|
+
city?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The company.
|
|
17
|
+
*/
|
|
18
|
+
company?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The country.
|
|
21
|
+
*/
|
|
22
|
+
country?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The two-letter country code corresponding to the country.
|
|
25
|
+
*/
|
|
26
|
+
country_code?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The normalized country name.
|
|
29
|
+
*/
|
|
30
|
+
country_name?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Indicates whether this address is the default address.
|
|
33
|
+
*/
|
|
34
|
+
default?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The first name.
|
|
37
|
+
*/
|
|
38
|
+
first_name?: string;
|
|
39
|
+
/**
|
|
40
|
+
* The last name.
|
|
41
|
+
*/
|
|
42
|
+
last_name?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The latitude of the address.
|
|
45
|
+
*/
|
|
46
|
+
latitude?: number;
|
|
47
|
+
/**
|
|
48
|
+
* The longitude of the address.
|
|
49
|
+
*/
|
|
50
|
+
longitude?: number;
|
|
51
|
+
/**
|
|
52
|
+
* The name.
|
|
53
|
+
*/
|
|
54
|
+
name?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The phone number.
|
|
57
|
+
*/
|
|
58
|
+
phone?: string;
|
|
59
|
+
/**
|
|
60
|
+
* The province or state name
|
|
61
|
+
*/
|
|
62
|
+
province?: string;
|
|
63
|
+
/**
|
|
64
|
+
* The two-letter province or state code.
|
|
65
|
+
*/
|
|
66
|
+
province_code?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The ZIP or postal code.
|
|
69
|
+
*/
|
|
70
|
+
zip?: string;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=address.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/shopify/address.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,MAAM,WAAW,OAAQ,SAAQ,aAAa;IAC5C;;SAEK;IACL,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;SAEK;IACL,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;SAEK;IACL,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;SAEK;IACL,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;SAEK;IACL,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;SAEK;IACL,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;SAEK;IACL,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;SAEK;IACL,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;SAEK;IACL,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;SAEK;IACL,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;SAEK;IACL,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;SAEK;IACL,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;SAEK;IACL,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;SAEK;IACL,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;SAEK;IACL,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;SAEK;IACL,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;SAEK;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/shopify/address.ts"],"names":[],"mappings":"","sourcesContent":["import { ShopifyObject } from './base';\n\nexport interface Address extends ShopifyObject {\n /**\n * The mailing address.\n */\n address1?: string;\n\n /**\n * An additional field for the mailing address.\n */\n address2?: string;\n\n /**\n * The city.\n */\n city?: string;\n\n /**\n * The company.\n */\n company?: string;\n\n /**\n * The country.\n */\n country?: string;\n\n /**\n * The two-letter country code corresponding to the country.\n */\n country_code?: string;\n\n /**\n * The normalized country name.\n */\n country_name?: string;\n\n /**\n * Indicates whether this address is the default address.\n */\n default?: boolean;\n\n /**\n * The first name.\n */\n first_name?: string;\n\n /**\n * The last name.\n */\n last_name?: string;\n\n /**\n * The latitude of the address.\n */\n latitude?: number;\n\n /**\n * The longitude of the address.\n */\n longitude?: number;\n\n /**\n * The name.\n */\n name?: string;\n\n /**\n * The phone number.\n */\n phone?: string;\n\n /**\n * The province or state name\n */\n province?: string;\n\n /**\n * The two-letter province or state code.\n */\n province_code?: string;\n\n /**\n * The ZIP or postal code.\n */\n zip?: string;\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ShopifyObject {
|
|
2
|
+
/**
|
|
3
|
+
* The object's unique id.
|
|
4
|
+
*/
|
|
5
|
+
id: number;
|
|
6
|
+
/**
|
|
7
|
+
* To help with migrating from our REST to the GraphQL, REST responses now include the GraphQL Admin API ID field, admin_graphql_api_id,. The ID in this field can be used to query the object directly using the GraphQL Admin API.
|
|
8
|
+
*/
|
|
9
|
+
admin_graphql_api_id: string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/shopify/base.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B;;SAEK;IACL,EAAE,EAAE,MAAM,CAAC;IACX;;SAEK;IACL,oBAAoB,EAAE,MAAM,CAAC;CAC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/shopify/base.ts"],"names":[],"mappings":"","sourcesContent":["export interface ShopifyObject {\n /**\n * The object's unique id.\n */\n id: number;\n /**\n * To help with migrating from our REST to the GraphQL, REST responses now include the GraphQL Admin API ID field, admin_graphql_api_id,. The ID in this field can be used to query the object directly using the GraphQL Admin API.\n */\n admin_graphql_api_id: string;\n}"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ShopifyObject } from './base';
|
|
2
|
+
export interface ClientDetails extends ShopifyObject {
|
|
3
|
+
/**
|
|
4
|
+
* Shopify does not offer documentation for this field.
|
|
5
|
+
*/
|
|
6
|
+
accept_language: string | null;
|
|
7
|
+
/**
|
|
8
|
+
* The browser screen height in pixels, if available.
|
|
9
|
+
*/
|
|
10
|
+
browser_height: number | null;
|
|
11
|
+
/**
|
|
12
|
+
* The browser IP address.
|
|
13
|
+
*/
|
|
14
|
+
browser_ip: string;
|
|
15
|
+
/**
|
|
16
|
+
* The browser screen width in pixels, if available.
|
|
17
|
+
*/
|
|
18
|
+
browser_width: number | null;
|
|
19
|
+
/**
|
|
20
|
+
* A hash of the session.
|
|
21
|
+
*/
|
|
22
|
+
session_hash: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* The browser's user agent string.
|
|
25
|
+
*/
|
|
26
|
+
user_agent: string;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=client_details.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client_details.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/shopify/client_details.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD;;SAEK;IACL,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;SAEK;IACL,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;SAEK;IACL,UAAU,EAAE,MAAM,CAAC;IAEnB;;SAEK;IACL,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;SAEK;IACL,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;SAEK;IACL,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client_details.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/shopify/client_details.ts"],"names":[],"mappings":"","sourcesContent":["import { ShopifyObject } from './base';\n\nexport interface ClientDetails extends ShopifyObject {\n /**\n * Shopify does not offer documentation for this field.\n */\n accept_language: string | null;\n\n /**\n * The browser screen height in pixels, if available.\n */\n browser_height: number | null;\n\n /**\n * The browser IP address.\n */\n browser_ip: string;\n\n /**\n * The browser screen width in pixels, if available.\n */\n browser_width: number | null;\n\n /**\n * A hash of the session.\n */\n session_hash: string | null;\n\n /**\n * The browser's user agent string.\n */\n user_agent: string;\n}"]}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { Address } from './address';
|
|
2
|
+
import { ShopifyObject } from './base';
|
|
3
|
+
export interface Customer extends ShopifyObject {
|
|
4
|
+
id: number;
|
|
5
|
+
admin_graphql_api_id: string;
|
|
6
|
+
/**
|
|
7
|
+
* Indicates whether the customer has consented to be sent marketing material via email.
|
|
8
|
+
*/
|
|
9
|
+
accepts_marketing: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* A list of addresses for the customer.
|
|
12
|
+
*/
|
|
13
|
+
addresses?: Address[];
|
|
14
|
+
/**
|
|
15
|
+
* The date and time when the customer was created.
|
|
16
|
+
*/
|
|
17
|
+
created_at: string;
|
|
18
|
+
/**
|
|
19
|
+
* The three-letter code (ISO 4217 format) for the currency that the customer used when they paid for their last order. Defaults to the shop currency. Returns the shop currency for test orders.
|
|
20
|
+
* (BETA)
|
|
21
|
+
*/
|
|
22
|
+
currency: string;
|
|
23
|
+
/**
|
|
24
|
+
* The default address for the customer.
|
|
25
|
+
*/
|
|
26
|
+
default_address: Address;
|
|
27
|
+
/**
|
|
28
|
+
* The email address of the customer.
|
|
29
|
+
*/
|
|
30
|
+
email: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* The customer's first name.
|
|
33
|
+
*/
|
|
34
|
+
first_name: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* The customer's last name.
|
|
37
|
+
*/
|
|
38
|
+
last_name: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* The customer's first and last names.
|
|
41
|
+
*/
|
|
42
|
+
name: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* The id of the customer's last order.
|
|
45
|
+
*/
|
|
46
|
+
last_order_id: number;
|
|
47
|
+
/**
|
|
48
|
+
* The name of the customer's last order. This is directly related to the Order's name field.
|
|
49
|
+
*/
|
|
50
|
+
last_order_name: string;
|
|
51
|
+
/**
|
|
52
|
+
* The customer's identifier used with Multipass login
|
|
53
|
+
*/
|
|
54
|
+
multipass_identifier: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* A note about the customer.
|
|
57
|
+
*/
|
|
58
|
+
note: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* The number of orders associated with this customer.
|
|
61
|
+
*/
|
|
62
|
+
orders_count: number | null;
|
|
63
|
+
/**
|
|
64
|
+
* The number of orders associated with this customer.
|
|
65
|
+
*/
|
|
66
|
+
phone: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* The state of the customer in a shop. Known values are 'disabled', 'decline', 'invited' and 'enabled'.
|
|
69
|
+
*/
|
|
70
|
+
state: string;
|
|
71
|
+
/**
|
|
72
|
+
* Tags are additional short descriptors formatted as a string of comma-separated values.
|
|
73
|
+
*/
|
|
74
|
+
tags: string;
|
|
75
|
+
/**
|
|
76
|
+
* Indicates whether the customer should be charged taxes when placing orders.
|
|
77
|
+
*/
|
|
78
|
+
tax_exempt: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* The total amount of money that the customer has spent at the shop. Note: the Shopify API may return this as a string value.
|
|
81
|
+
*/
|
|
82
|
+
total_spent: string;
|
|
83
|
+
/**
|
|
84
|
+
* The date and time when the customer information was updated.
|
|
85
|
+
*/
|
|
86
|
+
updated_at: string;
|
|
87
|
+
/**
|
|
88
|
+
* States whether or not the email address has been verified.
|
|
89
|
+
*/
|
|
90
|
+
verified_email: boolean;
|
|
91
|
+
}
|
|
92
|
+
export interface CustomerInvite {
|
|
93
|
+
to?: string;
|
|
94
|
+
from?: string;
|
|
95
|
+
bcc?: string[];
|
|
96
|
+
subject?: string;
|
|
97
|
+
custom_message?: string;
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=customer.d.ts.map
|