Initial project import
This commit is contained in:
20
node_modules/stripe/cjs/resources/Entitlements/ActiveEntitlementSummaries.d.ts
generated
vendored
Normal file
20
node_modules/stripe/cjs/resources/Entitlements/ActiveEntitlementSummaries.d.ts
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
import { ActiveEntitlement } from './ActiveEntitlements.js';
|
||||
import { ApiList } from '../../lib.js';
|
||||
export interface ActiveEntitlementSummary {
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'entitlements.active_entitlement_summary';
|
||||
/**
|
||||
* The customer that is entitled to this feature.
|
||||
*/
|
||||
customer: string;
|
||||
/**
|
||||
* The list of entitlements this customer has.
|
||||
*/
|
||||
entitlements: ApiList<ActiveEntitlement>;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
}
|
||||
4
node_modules/stripe/cjs/resources/Entitlements/ActiveEntitlementSummaries.js
generated
vendored
Normal file
4
node_modules/stripe/cjs/resources/Entitlements/ActiveEntitlementSummaries.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
// File generated from our OpenAPI spec
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=ActiveEntitlementSummaries.js.map
|
||||
1
node_modules/stripe/cjs/resources/Entitlements/ActiveEntitlementSummaries.js.map
generated
vendored
Normal file
1
node_modules/stripe/cjs/resources/Entitlements/ActiveEntitlementSummaries.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ActiveEntitlementSummaries.js","sourceRoot":"","sources":["../../../src/resources/Entitlements/ActiveEntitlementSummaries.ts"],"names":[],"mappings":";AAAA,uCAAuC"}
|
||||
56
node_modules/stripe/cjs/resources/Entitlements/ActiveEntitlements.d.ts
generated
vendored
Normal file
56
node_modules/stripe/cjs/resources/Entitlements/ActiveEntitlements.d.ts
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { Feature } from './Features.js';
|
||||
import { PaginationParams } from '../../shared.js';
|
||||
import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
|
||||
export declare class ActiveEntitlementResource extends StripeResource {
|
||||
/**
|
||||
* Retrieve a list of active entitlements for a customer
|
||||
*/
|
||||
list(params: Entitlements.ActiveEntitlementListParams, options?: RequestOptions): ApiListPromise<ActiveEntitlement>;
|
||||
/**
|
||||
* Retrieve an active entitlement
|
||||
*/
|
||||
retrieve(id: string, params?: Entitlements.ActiveEntitlementRetrieveParams, options?: RequestOptions): Promise<Response<ActiveEntitlement>>;
|
||||
}
|
||||
export interface ActiveEntitlement {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'entitlements.active_entitlement';
|
||||
/**
|
||||
* The [Feature](https://docs.stripe.com/api/entitlements/feature) that the customer is entitled to.
|
||||
*/
|
||||
feature: string | Feature;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* A unique key you provide as your own system identifier. This may be up to 80 characters.
|
||||
*/
|
||||
lookup_key: string;
|
||||
}
|
||||
export declare namespace Entitlements {
|
||||
interface ActiveEntitlementRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Entitlements {
|
||||
interface ActiveEntitlementListParams extends PaginationParams {
|
||||
/**
|
||||
* The ID of the customer.
|
||||
*/
|
||||
customer: string;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
23
node_modules/stripe/cjs/resources/Entitlements/ActiveEntitlements.js
generated
vendored
Normal file
23
node_modules/stripe/cjs/resources/Entitlements/ActiveEntitlements.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
// File generated from our OpenAPI spec
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ActiveEntitlementResource = void 0;
|
||||
const StripeResource_js_1 = require("../../StripeResource.js");
|
||||
class ActiveEntitlementResource extends StripeResource_js_1.StripeResource {
|
||||
/**
|
||||
* Retrieve a list of active entitlements for a customer
|
||||
*/
|
||||
list(params, options) {
|
||||
return this._makeRequest('GET', '/v1/entitlements/active_entitlements', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Retrieve an active entitlement
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/entitlements/active_entitlements/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
}
|
||||
exports.ActiveEntitlementResource = ActiveEntitlementResource;
|
||||
//# sourceMappingURL=ActiveEntitlements.js.map
|
||||
1
node_modules/stripe/cjs/resources/Entitlements/ActiveEntitlements.js.map
generated
vendored
Normal file
1
node_modules/stripe/cjs/resources/Entitlements/ActiveEntitlements.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ActiveEntitlements.js","sourceRoot":"","sources":["../../../src/resources/Entitlements/ActiveEntitlements.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAEvC,+DAAuD;AAKvD,MAAa,yBAA0B,SAAQ,kCAAc;IAC3D;;OAEG;IACH,IAAI,CACF,MAAgD,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,sCAAsC,EACtC,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAqD,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,wCAAwC,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAChE,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF;AAjCD,8DAiCC"}
|
||||
115
node_modules/stripe/cjs/resources/Entitlements/Features.d.ts
generated
vendored
Normal file
115
node_modules/stripe/cjs/resources/Entitlements/Features.d.ts
generated
vendored
Normal file
@@ -0,0 +1,115 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { MetadataParam, Emptyable, PaginationParams, Metadata } from '../../shared.js';
|
||||
import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
|
||||
export declare class FeatureResource extends StripeResource {
|
||||
/**
|
||||
* Retrieve a list of features
|
||||
*/
|
||||
list(params?: Entitlements.FeatureListParams, options?: RequestOptions): ApiListPromise<Feature>;
|
||||
/**
|
||||
* Creates a feature
|
||||
*/
|
||||
create(params: Entitlements.FeatureCreateParams, options?: RequestOptions): Promise<Response<Feature>>;
|
||||
/**
|
||||
* Retrieves a feature
|
||||
*/
|
||||
retrieve(id: string, params?: Entitlements.FeatureRetrieveParams, options?: RequestOptions): Promise<Response<Feature>>;
|
||||
/**
|
||||
* Update a feature's metadata or permanently deactivate it.
|
||||
*/
|
||||
update(id: string, params?: Entitlements.FeatureUpdateParams, options?: RequestOptions): Promise<Response<Feature>>;
|
||||
}
|
||||
export interface Feature {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'entitlements.feature';
|
||||
/**
|
||||
* Inactive features cannot be attached to new products and will not be returned from the features list endpoint.
|
||||
*/
|
||||
active: boolean;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* A unique key you provide as your own system identifier. This may be up to 80 characters.
|
||||
*/
|
||||
lookup_key: string;
|
||||
/**
|
||||
* Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
||||
*/
|
||||
metadata: Metadata;
|
||||
/**
|
||||
* The feature's name, for your own purpose, not meant to be displayable to the customer.
|
||||
*/
|
||||
name: string;
|
||||
}
|
||||
export declare namespace Entitlements {
|
||||
interface FeatureCreateParams {
|
||||
/**
|
||||
* A unique key you provide as your own system identifier. This may be up to 80 characters.
|
||||
*/
|
||||
lookup_key: string;
|
||||
/**
|
||||
* The feature's name, for your own purpose, not meant to be displayable to the customer.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
||||
*/
|
||||
metadata?: MetadataParam;
|
||||
}
|
||||
}
|
||||
export declare namespace Entitlements {
|
||||
interface FeatureRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Entitlements {
|
||||
interface FeatureUpdateParams {
|
||||
/**
|
||||
* Inactive features cannot be attached to new products and will not be returned from the features list endpoint.
|
||||
*/
|
||||
active?: boolean;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
||||
*/
|
||||
metadata?: Emptyable<MetadataParam>;
|
||||
/**
|
||||
* The feature's name, for your own purpose, not meant to be displayable to the customer.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
}
|
||||
export declare namespace Entitlements {
|
||||
interface FeatureListParams extends PaginationParams {
|
||||
/**
|
||||
* If set, filter results to only include features with the given archive status.
|
||||
*/
|
||||
archived?: boolean;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* If set, filter results to only include features with the given lookup_key.
|
||||
*/
|
||||
lookup_key?: string;
|
||||
}
|
||||
}
|
||||
35
node_modules/stripe/cjs/resources/Entitlements/Features.js
generated
vendored
Normal file
35
node_modules/stripe/cjs/resources/Entitlements/Features.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
"use strict";
|
||||
// File generated from our OpenAPI spec
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.FeatureResource = void 0;
|
||||
const StripeResource_js_1 = require("../../StripeResource.js");
|
||||
class FeatureResource extends StripeResource_js_1.StripeResource {
|
||||
/**
|
||||
* Retrieve a list of features
|
||||
*/
|
||||
list(params, options) {
|
||||
return this._makeRequest('GET', '/v1/entitlements/features', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Creates a feature
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/entitlements/features', params, options);
|
||||
}
|
||||
/**
|
||||
* Retrieves a feature
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/entitlements/features/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Update a feature's metadata or permanently deactivate it.
|
||||
*/
|
||||
update(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/entitlements/features/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
}
|
||||
exports.FeatureResource = FeatureResource;
|
||||
//# sourceMappingURL=Features.js.map
|
||||
1
node_modules/stripe/cjs/resources/Entitlements/Features.js.map
generated
vendored
Normal file
1
node_modules/stripe/cjs/resources/Entitlements/Features.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Features.js","sourceRoot":"","sources":["../../../src/resources/Entitlements/Features.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAEvC,+DAAuD;AASvD,MAAa,eAAgB,SAAQ,kCAAc;IACjD;;OAEG;IACH,IAAI,CACF,MAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,2BAA2B,EAC3B,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,2BAA2B,EAC3B,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,6BAA6B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACrD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAAyC,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,6BAA6B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACrD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF;AA9DD,0CA8DC"}
|
||||
24
node_modules/stripe/cjs/resources/Entitlements/index.d.ts
generated
vendored
Normal file
24
node_modules/stripe/cjs/resources/Entitlements/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import { Stripe } from '../../stripe.core.js';
|
||||
import { Entitlements as EntitlementsNamespace0, ActiveEntitlement, ActiveEntitlementResource } from './ActiveEntitlements.js';
|
||||
import { Entitlements as EntitlementsNamespace1, Feature, FeatureResource } from './Features.js';
|
||||
import { ActiveEntitlementSummary } from './ActiveEntitlementSummaries.js';
|
||||
export { ActiveEntitlement } from './ActiveEntitlements.js';
|
||||
export { Feature } from './Features.js';
|
||||
export { ActiveEntitlementSummary } from './ActiveEntitlementSummaries.js';
|
||||
export declare class Entitlements {
|
||||
private readonly stripe;
|
||||
activeEntitlements: ActiveEntitlementResource;
|
||||
features: FeatureResource;
|
||||
constructor(stripe: Stripe);
|
||||
}
|
||||
export declare namespace Entitlements {
|
||||
export import ActiveEntitlementListParams = EntitlementsNamespace0.ActiveEntitlementListParams;
|
||||
export import ActiveEntitlementRetrieveParams = EntitlementsNamespace0.ActiveEntitlementRetrieveParams;
|
||||
export { ActiveEntitlement };
|
||||
export import FeatureListParams = EntitlementsNamespace1.FeatureListParams;
|
||||
export import FeatureCreateParams = EntitlementsNamespace1.FeatureCreateParams;
|
||||
export import FeatureRetrieveParams = EntitlementsNamespace1.FeatureRetrieveParams;
|
||||
export import FeatureUpdateParams = EntitlementsNamespace1.FeatureUpdateParams;
|
||||
export { Feature };
|
||||
export { ActiveEntitlementSummary };
|
||||
}
|
||||
15
node_modules/stripe/cjs/resources/Entitlements/index.js
generated
vendored
Normal file
15
node_modules/stripe/cjs/resources/Entitlements/index.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
// File generated from our OpenAPI spec
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Entitlements = void 0;
|
||||
const ActiveEntitlements_js_1 = require("./ActiveEntitlements.js");
|
||||
const Features_js_1 = require("./Features.js");
|
||||
class Entitlements {
|
||||
constructor(stripe) {
|
||||
this.stripe = stripe;
|
||||
this.activeEntitlements = new ActiveEntitlements_js_1.ActiveEntitlementResource(stripe);
|
||||
this.features = new Features_js_1.FeatureResource(stripe);
|
||||
}
|
||||
}
|
||||
exports.Entitlements = Entitlements;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/stripe/cjs/resources/Entitlements/index.js.map
generated
vendored
Normal file
1
node_modules/stripe/cjs/resources/Entitlements/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Entitlements/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,mEAIiC;AACjC,+CAIuB;AAOvB,MAAa,YAAY;IAIvB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,kBAAkB,GAAG,IAAI,iDAAyB,CAAC,MAAM,CAAC,CAAC;QAChE,IAAI,CAAC,QAAQ,GAAG,IAAI,6BAAe,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;CACF;AARD,oCAQC"}
|
||||
Reference in New Issue
Block a user