🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

shopify-admin-api

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shopify-admin-api - npm Package Compare versions

Comparing version

to
2.16.1

dist/interfaces/checkout_complete.d.ts

8

dist/interfaces/checkout.d.ts

@@ -13,5 +13,5 @@ import { Address } from './address';

/**
* The ID for the checkout.
* A unique identifier for a particular checkout.
*/
id: number;
token: string;
/**

@@ -149,6 +149,2 @@ * The recovery URL that's sent to a customer so they can recover their checkout.

/**
* A unique ID for a checkout.
*/
token: string;
/**
* The total amount of discounts to be applied.

@@ -155,0 +151,0 @@ */

@@ -13,2 +13,5 @@ export * as WebhooksReponse from './webhooks-response';

export * from "./charge";
export * from "./checkout_complete";
export * from "./checkout_create";
export * from "./checkout_update";
export * from "./checkout";

@@ -15,0 +18,0 @@ export * from "./client_details";

@@ -26,2 +26,5 @@ "use strict";

__exportStar(require("./charge"), exports);
__exportStar(require("./checkout_complete"), exports);
__exportStar(require("./checkout_create"), exports);
__exportStar(require("./checkout_update"), exports);
__exportStar(require("./checkout"), exports);

@@ -28,0 +31,0 @@ __exportStar(require("./client_details"), exports);

export * from "./articles";
export * from "./base";
export * from "./blogs";
export * from "./checkout";
export * from "./collects";

@@ -5,0 +6,0 @@ export * from "./comments";

@@ -16,2 +16,3 @@ "use strict";

__exportStar(require("./blogs"), exports);
__exportStar(require("./checkout"), exports);
__exportStar(require("./collects"), exports);

@@ -18,0 +19,0 @@ __exportStar(require("./comments"), exports);

@@ -19,2 +19,6 @@ import * as Options from '../options';

/**
* Completes a checkout.
*/
complete(token: string): Promise<Checkout>;
/**
* Gets a checkout with the given token.

@@ -24,3 +28,3 @@ * @param token The token of the checkout to get.

*/
get(token: string, options?: Options.FieldOptions): Promise<Checkout>;
get(token: string, options?: Options.CheckoutGetOptions): Promise<Checkout>;
/**

@@ -30,4 +34,4 @@ * Retrieves a list of up to 250 checkouts.

*/
list(options?: Options.ListOptions & Options.DateOptions & Options.FieldOptions): Promise<Checkout[]>;
list(options?: Options.CheckoutListOptions): Promise<Checkout[]>;
}
export default Checkouts;

@@ -26,2 +26,8 @@ "use strict";

/**
* Completes a checkout.
*/
complete(token) {
return this.createRequest("PUT", `${token}/complete.json`, "checkout", {});
}
/**
* Gets a checkout with the given token.

@@ -28,0 +34,0 @@ * @param token The token of the checkout to get.

@@ -13,6 +13,7 @@ import { Address } from './address';

export interface Checkout {
/**
* The ID for the checkout.
*/
id: number;
* A unique identifier for a particular checkout.
*/
token: string;

@@ -182,7 +183,2 @@ /**

/**
* A unique ID for a checkout.
*/
token: string;
/**
* The total amount of discounts to be applied.

@@ -189,0 +185,0 @@ */

@@ -13,2 +13,5 @@ export * as WebhooksReponse from './webhooks-response';

export * from "./charge";
export * from "./checkout_complete";
export * from "./checkout_create";
export * from "./checkout_update";
export * from "./checkout";

@@ -15,0 +18,0 @@ export * from "./client_details";

export * from "./articles";
export * from "./base";
export * from "./blogs";
export * from "./checkout";
export * from "./collects";

@@ -5,0 +6,0 @@ export * from "./comments";

{
"name": "shopify-admin-api",
"version": "2.16.0",
"version": "2.16.1",
"description": "Shopify Admin API is a NodeJS library built to help developers easily authenticate and make calls against the Shopify API. It was inspired by and borrows heavily from ShopifySharp.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -29,2 +29,9 @@ import * as Options from '../options';

/**
* Completes a checkout.
*/
public complete(token: string) {
return this.createRequest<Checkout>("PUT", `${token}/complete.json`, "checkout", {});
}
/**
* Gets a checkout with the given token.

@@ -34,3 +41,3 @@ * @param token The token of the checkout to get.

*/
public get(token: string, options?: Options.FieldOptions) {
public get(token: string, options?: Options.CheckoutGetOptions) {
return this.createRequest<Checkout>("GET", `${token}.json`, "checkout", options);

@@ -43,3 +50,3 @@ }

*/
public list(options?: Options.ListOptions & Options.DateOptions & Options.FieldOptions) {
public list(options?: Options.CheckoutListOptions) {
return this.createRequest<Checkout[]>("GET", ".json", "checkouts", options);

@@ -46,0 +53,0 @@ }