checkout-intents 0.1.0 → 0.2.0
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/CHANGELOG.md +35 -0
- package/LICENSE +4 -198
- package/README.md +103 -22
- package/client.d.mts +21 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +21 -7
- package/client.d.ts.map +1 -1
- package/client.js +20 -10
- package/client.js.map +1 -1
- package/client.mjs +20 -10
- package/client.mjs.map +1 -1
- package/internal/to-file.d.mts +1 -1
- package/internal/to-file.d.ts +1 -1
- package/internal/to-file.js +1 -1
- package/internal/to-file.mjs +1 -1
- package/internal/tslib.js +17 -17
- package/internal/utils/values.js +3 -3
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +3 -3
- package/internal/utils/values.mjs.map +1 -1
- package/package.json +3 -3
- package/resources/brands.d.mts +31 -0
- package/resources/brands.d.mts.map +1 -0
- package/resources/brands.d.ts +31 -0
- package/resources/brands.d.ts.map +1 -0
- package/resources/{api/v1/brands.js → brands.js} +5 -5
- package/resources/brands.js.map +1 -0
- package/resources/brands.mjs +15 -0
- package/resources/brands.mjs.map +1 -0
- package/resources/{api/v1/checkout-intents.d.mts → checkout-intents.d.mts} +93 -13
- package/resources/checkout-intents.d.mts.map +1 -0
- package/resources/{api/v1/checkout-intents.d.ts → checkout-intents.d.ts} +93 -13
- package/resources/checkout-intents.d.ts.map +1 -0
- package/resources/checkout-intents.js +88 -0
- package/resources/checkout-intents.js.map +1 -0
- package/resources/checkout-intents.mjs +84 -0
- package/resources/checkout-intents.mjs.map +1 -0
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -2
- package/resources/index.mjs.map +1 -1
- package/src/client.ts +62 -14
- package/src/internal/to-file.ts +1 -1
- package/src/internal/utils/values.ts +3 -3
- package/src/resources/{api/v1/brands.ts → brands.ts} +9 -9
- package/src/resources/{api/v1/checkout-intents.ts → checkout-intents.ts} +116 -14
- package/src/resources/index.ts +14 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/api/api.d.mts +0 -10
- package/resources/api/api.d.mts.map +0 -1
- package/resources/api/api.d.ts +0 -10
- package/resources/api/api.d.ts.map +0 -1
- package/resources/api/api.js +0 -17
- package/resources/api/api.js.map +0 -1
- package/resources/api/api.mjs +0 -12
- package/resources/api/api.mjs.map +0 -1
- package/resources/api/index.d.mts +0 -3
- package/resources/api/index.d.mts.map +0 -1
- package/resources/api/index.d.ts +0 -3
- package/resources/api/index.d.ts.map +0 -1
- package/resources/api/index.js +0 -9
- package/resources/api/index.js.map +0 -1
- package/resources/api/index.mjs +0 -4
- package/resources/api/index.mjs.map +0 -1
- package/resources/api/v1/brands.d.mts +0 -31
- package/resources/api/v1/brands.d.mts.map +0 -1
- package/resources/api/v1/brands.d.ts +0 -31
- package/resources/api/v1/brands.d.ts.map +0 -1
- package/resources/api/v1/brands.js.map +0 -1
- package/resources/api/v1/brands.mjs +0 -15
- package/resources/api/v1/brands.mjs.map +0 -1
- package/resources/api/v1/checkout-intents.d.mts.map +0 -1
- package/resources/api/v1/checkout-intents.d.ts.map +0 -1
- package/resources/api/v1/checkout-intents.js +0 -33
- package/resources/api/v1/checkout-intents.js.map +0 -1
- package/resources/api/v1/checkout-intents.mjs +0 -29
- package/resources/api/v1/checkout-intents.mjs.map +0 -1
- package/resources/api/v1/index.d.mts +0 -4
- package/resources/api/v1/index.d.mts.map +0 -1
- package/resources/api/v1/index.d.ts +0 -4
- package/resources/api/v1/index.d.ts.map +0 -1
- package/resources/api/v1/index.js +0 -11
- package/resources/api/v1/index.js.map +0 -1
- package/resources/api/v1/index.mjs +0 -5
- package/resources/api/v1/index.mjs.map +0 -1
- package/resources/api/v1/v1.d.mts +0 -14
- package/resources/api/v1/v1.d.mts.map +0 -1
- package/resources/api/v1/v1.d.ts +0 -14
- package/resources/api/v1/v1.d.ts.map +0 -1
- package/resources/api/v1/v1.js +0 -21
- package/resources/api/v1/v1.js.map +0 -1
- package/resources/api/v1/v1.mjs +0 -16
- package/resources/api/v1/v1.mjs.map +0 -1
- package/resources/api/v1.d.mts +0 -2
- package/resources/api/v1.d.mts.map +0 -1
- package/resources/api/v1.d.ts +0 -2
- package/resources/api/v1.d.ts.map +0 -1
- package/resources/api/v1.js +0 -6
- package/resources/api/v1.js.map +0 -1
- package/resources/api/v1.mjs +0 -3
- package/resources/api/v1.mjs.map +0 -1
- package/resources/api.d.mts +0 -2
- package/resources/api.d.mts.map +0 -1
- package/resources/api.d.ts +0 -2
- package/resources/api.d.ts.map +0 -1
- package/resources/api.js +0 -6
- package/resources/api.js.map +0 -1
- package/resources/api.mjs +0 -3
- package/resources/api.mjs.map +0 -1
- package/resources/health.d.mts +0 -17
- package/resources/health.d.mts.map +0 -1
- package/resources/health.d.ts +0 -17
- package/resources/health.d.ts.map +0 -1
- package/resources/health.js +0 -15
- package/resources/health.js.map +0 -1
- package/resources/health.mjs +0 -11
- package/resources/health.mjs.map +0 -1
- package/src/resources/api/api.ts +0 -15
- package/src/resources/api/index.ts +0 -4
- package/src/resources/api/v1/index.ts +0 -15
- package/src/resources/api/v1/v1.ts +0 -41
- package/src/resources/api/v1.ts +0 -3
- package/src/resources/api.ts +0 -3
- package/src/resources/health.ts +0 -24
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brands.js","sourceRoot":"","sources":["../../../src/resources/api/v1/brands.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;OAKG;IACH,gBAAgB,CAAC,MAAc,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yBAAyB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF;AAVD,wBAUC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
import { path } from "../../../internal/utils/path.mjs";
|
|
4
|
-
export class Brands extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Retrieve brand information by domain name
|
|
7
|
-
*
|
|
8
|
-
* Look up a brand by its domain name (e.g. "aloyoga.com"). Returns brand
|
|
9
|
-
* information including the marketplace type if the lookup succeeds.
|
|
10
|
-
*/
|
|
11
|
-
retrieveByDomain(domain, options) {
|
|
12
|
-
return this._client.get(path `/api/v1/brands/domain/${domain}`, options);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=brands.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brands.mjs","sourceRoot":"","sources":["../../../src/resources/api/v1/brands.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;OAKG;IACH,gBAAgB,CAAC,MAAc,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yBAAyB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-intents.d.mts","sourceRoot":"","sources":["../../../src/resources/api/v1/checkout-intents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,kBAAkB;OACvB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;OAEG;IACH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ict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.CheckoutIntents = void 0;
|
|
5
|
-
const resource_1 = require("../../../core/resource.js");
|
|
6
|
-
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
-
class CheckoutIntents extends resource_1.APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Create a checkout intent with the given request body.
|
|
10
|
-
*/
|
|
11
|
-
create(body, options) {
|
|
12
|
-
return this._client.post('/api/v1/checkout-intents', { body, ...options });
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Retrieve a checkout intent by id
|
|
16
|
-
*
|
|
17
|
-
* Returns checkout intent information if the lookup succeeds.
|
|
18
|
-
*/
|
|
19
|
-
retrieve(id, options) {
|
|
20
|
-
return this._client.get((0, path_1.path) `/api/v1/checkout-intents/${id}`, options);
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Confirm a checkout intent with provided payment information
|
|
24
|
-
*
|
|
25
|
-
* Confirm means we have buyer's name, address and payment info, so we can move
|
|
26
|
-
* forward to place the order.
|
|
27
|
-
*/
|
|
28
|
-
confirm(id, body, options) {
|
|
29
|
-
return this._client.post((0, path_1.path) `/api/v1/checkout-intents/${id}/confirm`, { body, ...options });
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.CheckoutIntents = CheckoutIntents;
|
|
33
|
-
//# sourceMappingURL=checkout-intents.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-intents.js","sourceRoot":"","sources":["../../../src/resources/api/v1/checkout-intents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,0DAAoD;AAEpD,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;OAEG;IACH,MAAM,CAAC,IAAgC,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;OAKG;IACH,OAAO,CACL,EAAU,EACV,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;CACF;AA9BD,0CA8BC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
import { path } from "../../../internal/utils/path.mjs";
|
|
4
|
-
export class CheckoutIntents extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create a checkout intent with the given request body.
|
|
7
|
-
*/
|
|
8
|
-
create(body, options) {
|
|
9
|
-
return this._client.post('/api/v1/checkout-intents', { body, ...options });
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Retrieve a checkout intent by id
|
|
13
|
-
*
|
|
14
|
-
* Returns checkout intent information if the lookup succeeds.
|
|
15
|
-
*/
|
|
16
|
-
retrieve(id, options) {
|
|
17
|
-
return this._client.get(path `/api/v1/checkout-intents/${id}`, options);
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Confirm a checkout intent with provided payment information
|
|
21
|
-
*
|
|
22
|
-
* Confirm means we have buyer's name, address and payment info, so we can move
|
|
23
|
-
* forward to place the order.
|
|
24
|
-
*/
|
|
25
|
-
confirm(id, body, options) {
|
|
26
|
-
return this._client.post(path `/api/v1/checkout-intents/${id}/confirm`, { body, ...options });
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=checkout-intents.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-intents.mjs","sourceRoot":"","sources":["../../../src/resources/api/v1/checkout-intents.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;OAEG;IACH,MAAM,CAAC,IAAgC,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;OAKG;IACH,OAAO,CACL,EAAU,EACV,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,4BAA4B,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;CACF"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { Brands, type BrandRetrieveByDomainResponse } from "./brands.mjs";
|
|
2
|
-
export { CheckoutIntents, type BaseCheckoutIntent, type Buyer, type CheckoutIntent, type Money, type Offer, type StripeTokenPaymentMethod, type CheckoutIntentCreateParams, type CheckoutIntentConfirmParams, } from "./checkout-intents.mjs";
|
|
3
|
-
export { V1 } from "./v1.mjs";
|
|
4
|
-
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/api/v1/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,6BAA6B,EAAE;OAC9C,EACL,eAAe,EACf,KAAK,kBAAkB,EACvB,KAAK,KAAK,EACV,KAAK,cAAc,EACnB,KAAK,KAAK,EACV,KAAK,KAAK,EACV,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,GACjC;OACM,EAAE,EAAE,EAAE"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { Brands, type BrandRetrieveByDomainResponse } from "./brands.js";
|
|
2
|
-
export { CheckoutIntents, type BaseCheckoutIntent, type Buyer, type CheckoutIntent, type Money, type Offer, type StripeTokenPaymentMethod, type CheckoutIntentCreateParams, type CheckoutIntentConfirmParams, } from "./checkout-intents.js";
|
|
3
|
-
export { V1 } from "./v1.js";
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/api/v1/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,6BAA6B,EAAE;OAC9C,EACL,eAAe,EACf,KAAK,kBAAkB,EACvB,KAAK,KAAK,EACV,KAAK,cAAc,EACnB,KAAK,KAAK,EACV,KAAK,KAAK,EACV,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,GACjC;OACM,EAAE,EAAE,EAAE"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.V1 = exports.CheckoutIntents = exports.Brands = void 0;
|
|
5
|
-
var brands_1 = require("./brands.js");
|
|
6
|
-
Object.defineProperty(exports, "Brands", { enumerable: true, get: function () { return brands_1.Brands; } });
|
|
7
|
-
var checkout_intents_1 = require("./checkout-intents.js");
|
|
8
|
-
Object.defineProperty(exports, "CheckoutIntents", { enumerable: true, get: function () { return checkout_intents_1.CheckoutIntents; } });
|
|
9
|
-
var v1_1 = require("./v1.js");
|
|
10
|
-
Object.defineProperty(exports, "V1", { enumerable: true, get: function () { return v1_1.V1; } });
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/api/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAAsE;AAA7D,gGAAA,MAAM,OAAA;AACf,0DAU4B;AAT1B,mHAAA,eAAe,OAAA;AAUjB,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/api/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,EAAsC;OAC9C,EACL,eAAe,GAShB;OACM,EAAE,EAAE,EAAE"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import * as BrandsAPI from "./brands.mjs";
|
|
3
|
-
import { BrandRetrieveByDomainResponse, Brands } from "./brands.mjs";
|
|
4
|
-
import * as CheckoutIntentsAPI from "./checkout-intents.mjs";
|
|
5
|
-
import { BaseCheckoutIntent, Buyer, CheckoutIntent, CheckoutIntentConfirmParams, CheckoutIntentCreateParams, CheckoutIntents, Money, Offer, StripeTokenPaymentMethod } from "./checkout-intents.mjs";
|
|
6
|
-
export declare class V1 extends APIResource {
|
|
7
|
-
brands: BrandsAPI.Brands;
|
|
8
|
-
checkoutIntents: CheckoutIntentsAPI.CheckoutIntents;
|
|
9
|
-
}
|
|
10
|
-
export declare namespace V1 {
|
|
11
|
-
export { Brands as Brands, type BrandRetrieveByDomainResponse as BrandRetrieveByDomainResponse };
|
|
12
|
-
export { CheckoutIntents as CheckoutIntents, type BaseCheckoutIntent as BaseCheckoutIntent, type Buyer as Buyer, type CheckoutIntent as CheckoutIntent, type Money as Money, type Offer as Offer, type StripeTokenPaymentMethod as StripeTokenPaymentMethod, type CheckoutIntentCreateParams as CheckoutIntentCreateParams, type CheckoutIntentConfirmParams as CheckoutIntentConfirmParams, };
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=v1.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../../src/resources/api/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,6BAA6B,EAAE,MAAM,EAAE;OACzC,KAAK,kBAAkB;OACvB,EACL,kBAAkB,EAClB,KAAK,EACL,cAAc,EACd,2BAA2B,EAC3B,0BAA0B,EAC1B,eAAe,EACf,KAAK,EACL,KAAK,EACL,wBAAwB,EACzB;AAED,qBAAa,EAAG,SAAQ,WAAW;IACjC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,eAAe,EAAE,kBAAkB,CAAC,eAAe,CAAwD;CAC5G;AAKD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,6BAA6B,IAAI,6BAA6B,EAAE,CAAC;IAEjG,OAAO,EACL,eAAe,IAAI,eAAe,EAClC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
package/resources/api/v1/v1.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import * as BrandsAPI from "./brands.js";
|
|
3
|
-
import { BrandRetrieveByDomainResponse, Brands } from "./brands.js";
|
|
4
|
-
import * as CheckoutIntentsAPI from "./checkout-intents.js";
|
|
5
|
-
import { BaseCheckoutIntent, Buyer, CheckoutIntent, CheckoutIntentConfirmParams, CheckoutIntentCreateParams, CheckoutIntents, Money, Offer, StripeTokenPaymentMethod } from "./checkout-intents.js";
|
|
6
|
-
export declare class V1 extends APIResource {
|
|
7
|
-
brands: BrandsAPI.Brands;
|
|
8
|
-
checkoutIntents: CheckoutIntentsAPI.CheckoutIntents;
|
|
9
|
-
}
|
|
10
|
-
export declare namespace V1 {
|
|
11
|
-
export { Brands as Brands, type BrandRetrieveByDomainResponse as BrandRetrieveByDomainResponse };
|
|
12
|
-
export { CheckoutIntents as CheckoutIntents, type BaseCheckoutIntent as BaseCheckoutIntent, type Buyer as Buyer, type CheckoutIntent as CheckoutIntent, type Money as Money, type Offer as Offer, type StripeTokenPaymentMethod as StripeTokenPaymentMethod, type CheckoutIntentCreateParams as CheckoutIntentCreateParams, type CheckoutIntentConfirmParams as CheckoutIntentConfirmParams, };
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=v1.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../../src/resources/api/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,6BAA6B,EAAE,MAAM,EAAE;OACzC,KAAK,kBAAkB;OACvB,EACL,kBAAkB,EAClB,KAAK,EACL,cAAc,EACd,2BAA2B,EAC3B,0BAA0B,EAC1B,eAAe,EACf,KAAK,EACL,KAAK,EACL,wBAAwB,EACzB;AAED,qBAAa,EAAG,SAAQ,WAAW;IACjC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,eAAe,EAAE,kBAAkB,CAAC,eAAe,CAAwD;CAC5G;AAKD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,6BAA6B,IAAI,6BAA6B,EAAE,CAAC;IAEjG,OAAO,EACL,eAAe,IAAI,eAAe,EAClC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
package/resources/api/v1/v1.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.V1 = void 0;
|
|
5
|
-
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
-
const resource_1 = require("../../../core/resource.js");
|
|
7
|
-
const BrandsAPI = tslib_1.__importStar(require("./brands.js"));
|
|
8
|
-
const brands_1 = require("./brands.js");
|
|
9
|
-
const CheckoutIntentsAPI = tslib_1.__importStar(require("./checkout-intents.js"));
|
|
10
|
-
const checkout_intents_1 = require("./checkout-intents.js");
|
|
11
|
-
class V1 extends resource_1.APIResource {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(...arguments);
|
|
14
|
-
this.brands = new BrandsAPI.Brands(this._client);
|
|
15
|
-
this.checkoutIntents = new CheckoutIntentsAPI.CheckoutIntents(this._client);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.V1 = V1;
|
|
19
|
-
V1.Brands = brands_1.Brands;
|
|
20
|
-
V1.CheckoutIntents = checkout_intents_1.CheckoutIntents;
|
|
21
|
-
//# sourceMappingURL=v1.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../../src/resources/api/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,+DAAsC;AACtC,wCAAiE;AACjE,kFAAyD;AACzD,4DAU4B;AAE5B,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,oBAAe,GAAuC,IAAI,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC7G,CAAC;CAAA;AAHD,gBAGC;AAED,EAAE,CAAC,MAAM,GAAG,eAAM,CAAC;AACnB,EAAE,CAAC,eAAe,GAAG,kCAAe,CAAC"}
|
package/resources/api/v1/v1.mjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
import * as BrandsAPI from "./brands.mjs";
|
|
4
|
-
import { Brands } from "./brands.mjs";
|
|
5
|
-
import * as CheckoutIntentsAPI from "./checkout-intents.mjs";
|
|
6
|
-
import { CheckoutIntents, } from "./checkout-intents.mjs";
|
|
7
|
-
export class V1 extends APIResource {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.brands = new BrandsAPI.Brands(this._client);
|
|
11
|
-
this.checkoutIntents = new CheckoutIntentsAPI.CheckoutIntents(this._client);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
V1.Brands = Brands;
|
|
15
|
-
V1.CheckoutIntents = CheckoutIntents;
|
|
16
|
-
//# sourceMappingURL=v1.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../../src/resources/api/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAiC,MAAM,EAAE;OACzC,KAAK,kBAAkB;OACvB,EAML,eAAe,GAIhB;AAED,MAAM,OAAO,EAAG,SAAQ,WAAW;IAAnC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,oBAAe,GAAuC,IAAI,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC7G,CAAC;CAAA;AAED,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC;AACnB,EAAE,CAAC,eAAe,GAAG,eAAe,CAAC"}
|
package/resources/api/v1.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/api/v1.ts"],"names":[],"mappings":""}
|
package/resources/api/v1.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/api/v1.ts"],"names":[],"mappings":""}
|
package/resources/api/v1.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
-
tslib_1.__exportStar(require("./v1/index.js"), exports);
|
|
6
|
-
//# sourceMappingURL=v1.js.map
|
package/resources/api/v1.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/api/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAA2B"}
|
package/resources/api/v1.mjs
DELETED
package/resources/api/v1.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/api/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
package/resources/api.d.mts
DELETED
package/resources/api.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.mts","sourceRoot":"","sources":["../src/resources/api.ts"],"names":[],"mappings":""}
|
package/resources/api.d.ts
DELETED
package/resources/api.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/resources/api.ts"],"names":[],"mappings":""}
|
package/resources/api.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
-
tslib_1.__exportStar(require("./api/index.js"), exports);
|
|
6
|
-
//# sourceMappingURL=api.js.map
|
package/resources/api.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../src/resources/api.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,yDAA4B"}
|
package/resources/api.mjs
DELETED
package/resources/api.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.mjs","sourceRoot":"","sources":["../src/resources/api.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
package/resources/health.d.mts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
-
export declare class Health extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Simple check to confirm the API is running and accessible.
|
|
7
|
-
*/
|
|
8
|
-
check(options?: RequestOptions): APIPromise<HealthCheckResponse>;
|
|
9
|
-
}
|
|
10
|
-
export interface HealthCheckResponse {
|
|
11
|
-
message: string;
|
|
12
|
-
status: string;
|
|
13
|
-
}
|
|
14
|
-
export declare namespace Health {
|
|
15
|
-
export { type HealthCheckResponse as HealthCheckResponse };
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=health.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"health.d.mts","sourceRoot":"","sources":["../src/resources/health.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGjE;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;IAEhB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CAC5D"}
|
package/resources/health.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
-
export declare class Health extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Simple check to confirm the API is running and accessible.
|
|
7
|
-
*/
|
|
8
|
-
check(options?: RequestOptions): APIPromise<HealthCheckResponse>;
|
|
9
|
-
}
|
|
10
|
-
export interface HealthCheckResponse {
|
|
11
|
-
message: string;
|
|
12
|
-
status: string;
|
|
13
|
-
}
|
|
14
|
-
export declare namespace Health {
|
|
15
|
-
export { type HealthCheckResponse as HealthCheckResponse };
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=health.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"health.d.ts","sourceRoot":"","sources":["../src/resources/health.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGjE;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;IAEhB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CAC5D"}
|
package/resources/health.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Health = void 0;
|
|
5
|
-
const resource_1 = require("../core/resource.js");
|
|
6
|
-
class Health extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Simple check to confirm the API is running and accessible.
|
|
9
|
-
*/
|
|
10
|
-
check(options) {
|
|
11
|
-
return this._client.get('/health', options);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.Health = Health;
|
|
15
|
-
//# sourceMappingURL=health.js.map
|
package/resources/health.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"health.js","sourceRoot":"","sources":["../src/resources/health.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,KAAK,CAAC,OAAwB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC;CACF;AAPD,wBAOC"}
|
package/resources/health.mjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../core/resource.mjs";
|
|
3
|
-
export class Health extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Simple check to confirm the API is running and accessible.
|
|
6
|
-
*/
|
|
7
|
-
check(options) {
|
|
8
|
-
return this._client.get('/health', options);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=health.mjs.map
|
package/resources/health.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"health.mjs","sourceRoot":"","sources":["../src/resources/health.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,KAAK,CAAC,OAAwB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC;CACF"}
|
package/src/resources/api/api.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as V1API from './v1/v1';
|
|
5
|
-
import { V1 } from './v1/v1';
|
|
6
|
-
|
|
7
|
-
export class API extends APIResource {
|
|
8
|
-
v1: V1API.V1 = new V1API.V1(this._client);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
API.V1 = V1;
|
|
12
|
-
|
|
13
|
-
export declare namespace API {
|
|
14
|
-
export { V1 as V1 };
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
export { Brands, type BrandRetrieveByDomainResponse } from './brands';
|
|
4
|
-
export {
|
|
5
|
-
CheckoutIntents,
|
|
6
|
-
type BaseCheckoutIntent,
|
|
7
|
-
type Buyer,
|
|
8
|
-
type CheckoutIntent,
|
|
9
|
-
type Money,
|
|
10
|
-
type Offer,
|
|
11
|
-
type StripeTokenPaymentMethod,
|
|
12
|
-
type CheckoutIntentCreateParams,
|
|
13
|
-
type CheckoutIntentConfirmParams,
|
|
14
|
-
} from './checkout-intents';
|
|
15
|
-
export { V1 } from './v1';
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import * as BrandsAPI from './brands';
|
|
5
|
-
import { BrandRetrieveByDomainResponse, Brands } from './brands';
|
|
6
|
-
import * as CheckoutIntentsAPI from './checkout-intents';
|
|
7
|
-
import {
|
|
8
|
-
BaseCheckoutIntent,
|
|
9
|
-
Buyer,
|
|
10
|
-
CheckoutIntent,
|
|
11
|
-
CheckoutIntentConfirmParams,
|
|
12
|
-
CheckoutIntentCreateParams,
|
|
13
|
-
CheckoutIntents,
|
|
14
|
-
Money,
|
|
15
|
-
Offer,
|
|
16
|
-
StripeTokenPaymentMethod,
|
|
17
|
-
} from './checkout-intents';
|
|
18
|
-
|
|
19
|
-
export class V1 extends APIResource {
|
|
20
|
-
brands: BrandsAPI.Brands = new BrandsAPI.Brands(this._client);
|
|
21
|
-
checkoutIntents: CheckoutIntentsAPI.CheckoutIntents = new CheckoutIntentsAPI.CheckoutIntents(this._client);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
V1.Brands = Brands;
|
|
25
|
-
V1.CheckoutIntents = CheckoutIntents;
|
|
26
|
-
|
|
27
|
-
export declare namespace V1 {
|
|
28
|
-
export { Brands as Brands, type BrandRetrieveByDomainResponse as BrandRetrieveByDomainResponse };
|
|
29
|
-
|
|
30
|
-
export {
|
|
31
|
-
CheckoutIntents as CheckoutIntents,
|
|
32
|
-
type BaseCheckoutIntent as BaseCheckoutIntent,
|
|
33
|
-
type Buyer as Buyer,
|
|
34
|
-
type CheckoutIntent as CheckoutIntent,
|
|
35
|
-
type Money as Money,
|
|
36
|
-
type Offer as Offer,
|
|
37
|
-
type StripeTokenPaymentMethod as StripeTokenPaymentMethod,
|
|
38
|
-
type CheckoutIntentCreateParams as CheckoutIntentCreateParams,
|
|
39
|
-
type CheckoutIntentConfirmParams as CheckoutIntentConfirmParams,
|
|
40
|
-
};
|
|
41
|
-
}
|
package/src/resources/api/v1.ts
DELETED
package/src/resources/api.ts
DELETED
package/src/resources/health.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../core/resource';
|
|
4
|
-
import { APIPromise } from '../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../internal/request-options';
|
|
6
|
-
|
|
7
|
-
export class Health extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Simple check to confirm the API is running and accessible.
|
|
10
|
-
*/
|
|
11
|
-
check(options?: RequestOptions): APIPromise<HealthCheckResponse> {
|
|
12
|
-
return this._client.get('/health', options);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface HealthCheckResponse {
|
|
17
|
-
message: string;
|
|
18
|
-
|
|
19
|
-
status: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export declare namespace Health {
|
|
23
|
-
export { type HealthCheckResponse as HealthCheckResponse };
|
|
24
|
-
}
|