Initial project import
This commit is contained in:
20
node_modules/stripe/esm/resources/Entitlements/ActiveEntitlementSummaries.d.ts
generated
vendored
Normal file
20
node_modules/stripe/esm/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;
|
||||
}
|
||||
3
node_modules/stripe/esm/resources/Entitlements/ActiveEntitlementSummaries.js
generated
vendored
Normal file
3
node_modules/stripe/esm/resources/Entitlements/ActiveEntitlementSummaries.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
// File generated from our OpenAPI spec
|
||||
export {};
|
||||
//# sourceMappingURL=ActiveEntitlementSummaries.js.map
|
||||
1
node_modules/stripe/esm/resources/Entitlements/ActiveEntitlementSummaries.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/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/esm/resources/Entitlements/ActiveEntitlements.d.ts
generated
vendored
Normal file
56
node_modules/stripe/esm/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>;
|
||||
}
|
||||
}
|
||||
19
node_modules/stripe/esm/resources/Entitlements/ActiveEntitlements.js
generated
vendored
Normal file
19
node_modules/stripe/esm/resources/Entitlements/ActiveEntitlements.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class ActiveEntitlementResource extends 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);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=ActiveEntitlements.js.map
|
||||
1
node_modules/stripe/esm/resources/Entitlements/ActiveEntitlements.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/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,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAKvD,MAAM,OAAO,yBAA0B,SAAQ,cAAc;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"}
|
||||
115
node_modules/stripe/esm/resources/Entitlements/Features.d.ts
generated
vendored
Normal file
115
node_modules/stripe/esm/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;
|
||||
}
|
||||
}
|
||||
31
node_modules/stripe/esm/resources/Entitlements/Features.js
generated
vendored
Normal file
31
node_modules/stripe/esm/resources/Entitlements/Features.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class FeatureResource extends 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);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=Features.js.map
|
||||
1
node_modules/stripe/esm/resources/Entitlements/Features.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/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,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AASvD,MAAM,OAAO,eAAgB,SAAQ,cAAc;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"}
|
||||
24
node_modules/stripe/esm/resources/Entitlements/index.d.ts
generated
vendored
Normal file
24
node_modules/stripe/esm/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 };
|
||||
}
|
||||
11
node_modules/stripe/esm/resources/Entitlements/index.js
generated
vendored
Normal file
11
node_modules/stripe/esm/resources/Entitlements/index.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { ActiveEntitlementResource, } from './ActiveEntitlements.js';
|
||||
import { FeatureResource, } from './Features.js';
|
||||
export class Entitlements {
|
||||
constructor(stripe) {
|
||||
this.stripe = stripe;
|
||||
this.activeEntitlements = new ActiveEntitlementResource(stripe);
|
||||
this.features = new FeatureResource(stripe);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/stripe/esm/resources/Entitlements/index.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/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,OAAO,EAGL,yBAAyB,GAC1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,eAAe,GAChB,MAAM,eAAe,CAAC;AAOvB,MAAM,OAAO,YAAY;IAIvB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,kBAAkB,GAAG,IAAI,yBAAyB,CAAC,MAAM,CAAC,CAAC;QAChE,IAAI,CAAC,QAAQ,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;CACF"}
|
||||
Reference in New Issue
Block a user