Initial project import

This commit is contained in:
drjones
2026-06-13 17:36:44 -07:00
commit ad2a18cc8d
18471 changed files with 4497570 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,41 @@
"use strict";
// File generated from our OpenAPI spec
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConfigurationResource = void 0;
const StripeResource_js_1 = require("../../StripeResource.js");
class ConfigurationResource extends StripeResource_js_1.StripeResource {
/**
* Deletes a Configuration object.
*/
del(id, params, options) {
return this._makeRequest('DELETE', `/v1/terminal/configurations/${encodeURIComponent(id)}`, params, options);
}
/**
* Retrieves a Configuration object.
*/
retrieve(id, params, options) {
return this._makeRequest('GET', `/v1/terminal/configurations/${encodeURIComponent(id)}`, params, options);
}
/**
* Updates a new Configuration object.
*/
update(id, params, options) {
return this._makeRequest('POST', `/v1/terminal/configurations/${encodeURIComponent(id)}`, params, options);
}
/**
* Returns a list of Configuration objects.
*/
list(params, options) {
return this._makeRequest('GET', '/v1/terminal/configurations', params, options, {
methodType: 'list',
});
}
/**
* Creates a new Configuration object.
*/
create(params, options) {
return this._makeRequest('POST', '/v1/terminal/configurations', params, options);
}
}
exports.ConfigurationResource = ConfigurationResource;
//# sourceMappingURL=Configurations.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"Configurations.js","sourceRoot":"","sources":["../../../src/resources/Terminal/Configurations.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAEvC,+DAAuD;AAKvD,MAAa,qBAAsB,SAAQ,kCAAc;IACvD;;OAEG;IACH,GAAG,CACD,EAAU,EACV,MAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,QAAQ,EACR,+BAA+B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACvD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,+BAA+B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACvD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,+BAA+B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACvD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,IAAI,CACF,MAAyC,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,6BAA6B,EAC7B,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,6BAA6B,EAC7B,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF;AA7ED,sDA6EC"}

View File

@@ -0,0 +1,34 @@
import { StripeResource } from '../../StripeResource.js';
import { RequestOptions, Response } from '../../lib.js';
export declare class ConnectionTokenResource extends StripeResource {
/**
* To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server. On your backend, add an endpoint that creates and returns a connection token.
*/
create(params?: Terminal.ConnectionTokenCreateParams, options?: RequestOptions): Promise<Response<ConnectionToken>>;
}
export interface ConnectionToken {
/**
* String representing the object's type. Objects of the same type share the same value.
*/
object: 'terminal.connection_token';
/**
* The id of the location that this connection token is scoped to. Note that location scoping only applies to internet-connected readers. For more details, see [the docs on scoping connection tokens](https://docs.stripe.com/terminal/fleet/locations-and-zones?dashboard-or-api=api#connection-tokens).
*/
location?: string;
/**
* Your application should pass this token to the Stripe Terminal SDK.
*/
secret: string;
}
export declare namespace Terminal {
interface ConnectionTokenCreateParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
/**
* The id of the location that this connection token is scoped to. If specified the connection token will only be usable with readers assigned to that location, otherwise the connection token will be usable with all readers. Note that location scoping only applies to internet-connected readers. For more details, see [the docs on scoping connection tokens](https://docs.stripe.com/terminal/fleet/locations-and-zones?dashboard-or-api=api#connection-tokens).
*/
location?: string;
}
}

View File

@@ -0,0 +1,15 @@
"use strict";
// File generated from our OpenAPI spec
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConnectionTokenResource = void 0;
const StripeResource_js_1 = require("../../StripeResource.js");
class ConnectionTokenResource extends StripeResource_js_1.StripeResource {
/**
* To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server. On your backend, add an endpoint that creates and returns a connection token.
*/
create(params, options) {
return this._makeRequest('POST', '/v1/terminal/connection_tokens', params, options);
}
}
exports.ConnectionTokenResource = ConnectionTokenResource;
//# sourceMappingURL=ConnectionTokens.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ConnectionTokens.js","sourceRoot":"","sources":["../../../src/resources/Terminal/ConnectionTokens.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAEvC,+DAAuD;AAGvD,MAAa,uBAAwB,SAAQ,kCAAc;IACzD;;OAEG;IACH,MAAM,CACJ,MAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,gCAAgC,EAChC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF;AAfD,0DAeC"}

View File

@@ -0,0 +1,285 @@
import { StripeResource } from '../../StripeResource.js';
import { Address, JapanAddressParam, Emptyable, MetadataParam, AddressParam, PaginationParams, Metadata } from '../../shared.js';
import { RequestOptions, Response, ApiListPromise } from '../../lib.js';
export declare class LocationResource extends StripeResource {
/**
* Deletes a Location object.
*/
del(id: string, params?: Terminal.LocationDeleteParams, options?: RequestOptions): Promise<Response<Terminal.DeletedLocation>>;
/**
* Retrieves a Location object.
*/
retrieve(id: string, params?: Terminal.LocationRetrieveParams, options?: RequestOptions): Promise<Response<Location | Terminal.DeletedLocation>>;
/**
* Updates a Location object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
*/
update(id: string, params?: Terminal.LocationUpdateParams, options?: RequestOptions): Promise<Response<Location | Terminal.DeletedLocation>>;
/**
* Returns a list of Location objects.
*/
list(params?: Terminal.LocationListParams, options?: RequestOptions): ApiListPromise<Location>;
/**
* Creates a new Location object.
* For further details, including which address fields are required in each country, see the [Manage locations](https://docs.stripe.com/docs/terminal/fleet/locations) guide.
*/
create(params?: Terminal.LocationCreateParams, options?: RequestOptions): Promise<Response<Location>>;
}
export interface Location {
/**
* Unique identifier for the object.
*/
id: string;
/**
* String representing the object's type. Objects of the same type share the same value.
*/
object: 'terminal.location';
address: Address;
address_kana?: Terminal.Location.AddressKana;
address_kanji?: Terminal.Location.AddressKanji;
/**
* The ID of a configuration that will be used to customize all readers in this location.
*/
configuration_overrides?: string;
/**
* Always true for a deleted object
*/
deleted?: void;
/**
* The display name of the location.
*/
display_name: string;
/**
* The Kana variation of the display name of the location.
*/
display_name_kana?: string;
/**
* The Kanji variation of the display name of the location.
*/
display_name_kanji?: string;
/**
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
*/
livemode: boolean;
/**
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) 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 phone number of the location.
*/
phone?: string;
}
export declare namespace Terminal {
interface DeletedLocation {
/**
* Unique identifier for the object.
*/
id: string;
/**
* String representing the object's type. Objects of the same type share the same value.
*/
object: 'terminal.location';
/**
* Always true for a deleted object
*/
deleted: true;
}
namespace Location {
interface AddressKana {
/**
* City/Ward.
*/
city: string | null;
/**
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
*/
country: string | null;
/**
* Block/Building number.
*/
line1: string | null;
/**
* Building details.
*/
line2: string | null;
/**
* ZIP or postal code.
*/
postal_code: string | null;
/**
* Prefecture.
*/
state: string | null;
/**
* Town/cho-me.
*/
town: string | null;
}
interface AddressKanji {
/**
* City/Ward.
*/
city: string | null;
/**
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
*/
country: string | null;
/**
* Block/Building number.
*/
line1: string | null;
/**
* Building details.
*/
line2: string | null;
/**
* ZIP or postal code.
*/
postal_code: string | null;
/**
* Prefecture.
*/
state: string | null;
/**
* Town/cho-me.
*/
town: string | null;
}
}
}
export declare namespace Terminal {
interface LocationCreateParams {
/**
* The full address of the location.
*/
address?: LocationCreateParams.Address;
/**
* The Kana variation of the full address of the location (Japan only).
*/
address_kana?: JapanAddressParam;
/**
* The Kanji variation of the full address of the location (Japan only).
*/
address_kanji?: JapanAddressParam;
/**
* The ID of a configuration that will be used to customize all readers in this location.
*/
configuration_overrides?: string;
/**
* A name for the location. Maximum length is 1000 characters.
*/
display_name?: string;
/**
* The Kana variation of the name for the location (Japan only). Maximum length is 1000 characters.
*/
display_name_kana?: string;
/**
* The Kanji variation of the name for the location (Japan only). Maximum length is 1000 characters.
*/
display_name_kanji?: string;
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
/**
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
*/
metadata?: Emptyable<MetadataParam>;
/**
* The phone number for the location.
*/
phone?: string;
}
namespace LocationCreateParams {
interface Address {
/**
* City, district, suburb, town, or village.
*/
city?: string;
/**
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
*/
country: string;
/**
* Address line 1, such as the street, PO Box, or company name.
*/
line1?: string;
/**
* Address line 2, such as the apartment, suite, unit, or building.
*/
line2?: string;
/**
* ZIP or postal code.
*/
postal_code?: string;
/**
* State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
*/
state?: string;
}
}
}
export declare namespace Terminal {
interface LocationRetrieveParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
}
export declare namespace Terminal {
interface LocationUpdateParams {
/**
* The full address of the location. You can't change the location's `country`. If you need to modify the `country` field, create a new `Location` object and re-register any existing readers to that location.
*/
address?: AddressParam;
/**
* The Kana variation of the full address of the location (Japan only).
*/
address_kana?: JapanAddressParam;
/**
* The Kanji variation of the full address of the location (Japan only).
*/
address_kanji?: JapanAddressParam;
/**
* The ID of a configuration that will be used to customize all readers in this location.
*/
configuration_overrides?: Emptyable<string>;
/**
* A name for the location.
*/
display_name?: Emptyable<string>;
/**
* The Kana variation of the name for the location (Japan only).
*/
display_name_kana?: Emptyable<string>;
/**
* The Kanji variation of the name for the location (Japan only).
*/
display_name_kanji?: Emptyable<string>;
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
/**
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
*/
metadata?: Emptyable<MetadataParam>;
/**
* The phone number for the location.
*/
phone?: Emptyable<string>;
}
}
export declare namespace Terminal {
interface LocationListParams extends PaginationParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
}
export declare namespace Terminal {
interface LocationDeleteParams {
}
}

View File

@@ -0,0 +1,42 @@
"use strict";
// File generated from our OpenAPI spec
Object.defineProperty(exports, "__esModule", { value: true });
exports.LocationResource = void 0;
const StripeResource_js_1 = require("../../StripeResource.js");
class LocationResource extends StripeResource_js_1.StripeResource {
/**
* Deletes a Location object.
*/
del(id, params, options) {
return this._makeRequest('DELETE', `/v1/terminal/locations/${encodeURIComponent(id)}`, params, options);
}
/**
* Retrieves a Location object.
*/
retrieve(id, params, options) {
return this._makeRequest('GET', `/v1/terminal/locations/${encodeURIComponent(id)}`, params, options);
}
/**
* Updates a Location object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
*/
update(id, params, options) {
return this._makeRequest('POST', `/v1/terminal/locations/${encodeURIComponent(id)}`, params, options);
}
/**
* Returns a list of Location objects.
*/
list(params, options) {
return this._makeRequest('GET', '/v1/terminal/locations', params, options, {
methodType: 'list',
});
}
/**
* Creates a new Location object.
* For further details, including which address fields are required in each country, see the [Manage locations](https://docs.stripe.com/docs/terminal/fleet/locations) guide.
*/
create(params, options) {
return this._makeRequest('POST', '/v1/terminal/locations', params, options);
}
}
exports.LocationResource = LocationResource;
//# sourceMappingURL=Locations.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"Locations.js","sourceRoot":"","sources":["../../../src/resources/Terminal/Locations.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAEvC,+DAAuD;AAYvD,MAAa,gBAAiB,SAAQ,kCAAc;IAClD;;OAEG;IACH,GAAG,CACD,EAAU,EACV,MAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,QAAQ,EACR,0BAA0B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAClD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,0BAA0B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAClD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,0BAA0B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAClD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,IAAI,CACF,MAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,wBAAwB,EAAE,MAAM,EAAE,OAAO,EAAE;YACzE,UAAU,EAAE,MAAM;SACnB,CAAQ,CAAC;IACZ,CAAC;IACD;;;OAGG;IACH,MAAM,CACJ,MAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,wBAAwB,EACxB,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF;AAxED,4CAwEC"}

View File

@@ -0,0 +1,89 @@
import { StripeResource } from '../../StripeResource.js';
import { RequestOptions, Response } from '../../lib.js';
export declare class OnboardingLinkResource extends StripeResource {
/**
* Creates a new OnboardingLink object that contains a redirect_url used for onboarding onto Tap to Pay on iPhone.
*/
create(params: Terminal.OnboardingLinkCreateParams, options?: RequestOptions): Promise<Response<OnboardingLink>>;
}
export interface OnboardingLink {
object: 'terminal.onboarding_link';
/**
* Link type options associated with the current onboarding link object.
*/
link_options: Terminal.OnboardingLink.LinkOptions;
/**
* The type of link being generated.
*/
link_type: 'apple_terms_and_conditions';
/**
* Stripe account ID to generate the link for.
*/
on_behalf_of: string | null;
/**
* The link passed back to the user for their onboarding.
*/
redirect_url: string;
}
export declare namespace Terminal {
namespace OnboardingLink {
interface LinkOptions {
/**
* The options associated with the Apple Terms and Conditions link type.
*/
apple_terms_and_conditions: LinkOptions.AppleTermsAndConditions | null;
}
namespace LinkOptions {
interface AppleTermsAndConditions {
/**
* Whether the link should also support users relinking their Apple account.
*/
allow_relinking: boolean | null;
/**
* The business name of the merchant accepting Apple's Terms and Conditions.
*/
merchant_display_name: string;
}
}
}
}
export declare namespace Terminal {
interface OnboardingLinkCreateParams {
/**
* Specific fields needed to generate the desired link type.
*/
link_options: OnboardingLinkCreateParams.LinkOptions;
/**
* The type of link being generated.
*/
link_type: 'apple_terms_and_conditions';
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
/**
* Stripe account ID to generate the link for.
*/
on_behalf_of?: string;
}
namespace OnboardingLinkCreateParams {
interface LinkOptions {
/**
* The options associated with the Apple Terms and Conditions link type.
*/
apple_terms_and_conditions?: LinkOptions.AppleTermsAndConditions;
}
namespace LinkOptions {
interface AppleTermsAndConditions {
/**
* Whether the link should also support users relinking their Apple account.
*/
allow_relinking?: boolean;
/**
* The business name of the merchant accepting Apple's Terms and Conditions.
*/
merchant_display_name: string;
}
}
}
}

View File

@@ -0,0 +1,15 @@
"use strict";
// File generated from our OpenAPI spec
Object.defineProperty(exports, "__esModule", { value: true });
exports.OnboardingLinkResource = void 0;
const StripeResource_js_1 = require("../../StripeResource.js");
class OnboardingLinkResource extends StripeResource_js_1.StripeResource {
/**
* Creates a new OnboardingLink object that contains a redirect_url used for onboarding onto Tap to Pay on iPhone.
*/
create(params, options) {
return this._makeRequest('POST', '/v1/terminal/onboarding_links', params, options);
}
}
exports.OnboardingLinkResource = OnboardingLinkResource;
//# sourceMappingURL=OnboardingLinks.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"OnboardingLinks.js","sourceRoot":"","sources":["../../../src/resources/Terminal/OnboardingLinks.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAEvC,+DAAuD;AAGvD,MAAa,sBAAuB,SAAQ,kCAAc;IACxD;;OAEG;IACH,MAAM,CACJ,MAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,+BAA+B,EAC/B,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF;AAfD,wDAeC"}

1153
node_modules/stripe/cjs/resources/Terminal/Readers.d.ts generated vendored Normal file

File diff suppressed because one or more lines are too long

89
node_modules/stripe/cjs/resources/Terminal/Readers.js generated vendored Normal file
View File

@@ -0,0 +1,89 @@
"use strict";
// File generated from our OpenAPI spec
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReaderResource = void 0;
const StripeResource_js_1 = require("../../StripeResource.js");
class ReaderResource extends StripeResource_js_1.StripeResource {
/**
* Deletes a Reader object.
*/
del(id, params, options) {
return this._makeRequest('DELETE', `/v1/terminal/readers/${encodeURIComponent(id)}`, params, options);
}
/**
* Retrieves a Reader object.
*/
retrieve(id, params, options) {
return this._makeRequest('GET', `/v1/terminal/readers/${encodeURIComponent(id)}`, params, options);
}
/**
* Updates a Reader object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
*/
update(id, params, options) {
return this._makeRequest('POST', `/v1/terminal/readers/${encodeURIComponent(id)}`, params, options);
}
/**
* Returns a list of Reader objects.
*/
list(params, options) {
return this._makeRequest('GET', '/v1/terminal/readers', params, options, {
methodType: 'list',
});
}
/**
* Creates a new Reader object.
*/
create(params, options) {
return this._makeRequest('POST', '/v1/terminal/readers', params, options);
}
/**
* Cancels the current reader action. See [Programmatic Cancellation](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven#programmatic-cancellation) for more details.
*/
cancelAction(id, params, options) {
return this._makeRequest('POST', `/v1/terminal/readers/${encodeURIComponent(id)}/cancel_action`, params, options);
}
/**
* Initiates an [input collection flow](https://docs.stripe.com/docs/terminal/features/collect-inputs) on a Reader to display input forms and collect information from your customers.
*/
collectInputs(id, params, options) {
return this._makeRequest('POST', `/v1/terminal/readers/${encodeURIComponent(id)}/collect_inputs`, params, options);
}
/**
* Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. See [Collecting a Payment method](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#collect-a-paymentmethod) for more details.
*/
collectPaymentMethod(id, params, options) {
return this._makeRequest('POST', `/v1/terminal/readers/${encodeURIComponent(id)}/collect_payment_method`, params, options);
}
/**
* Finalizes a payment on a Reader. See [Confirming a Payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#confirm-the-paymentintent) for more details.
*/
confirmPaymentIntent(id, params, options) {
return this._makeRequest('POST', `/v1/terminal/readers/${encodeURIComponent(id)}/confirm_payment_intent`, params, options);
}
/**
* Initiates a payment flow on a Reader. See [process the payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=immediately#process-payment) for more details.
*/
processPaymentIntent(id, params, options) {
return this._makeRequest('POST', `/v1/terminal/readers/${encodeURIComponent(id)}/process_payment_intent`, params, options);
}
/**
* Initiates a SetupIntent flow on a Reader. See [Save directly without charging](https://docs.stripe.com/docs/terminal/features/saving-payment-details/save-directly) for more details.
*/
processSetupIntent(id, params, options) {
return this._makeRequest('POST', `/v1/terminal/readers/${encodeURIComponent(id)}/process_setup_intent`, params, options);
}
/**
* Initiates an in-person refund on a Reader. See [Refund an Interac Payment](https://docs.stripe.com/docs/terminal/payments/regional?integration-country=CA#refund-an-interac-payment) for more details.
*/
refundPayment(id, params, options) {
return this._makeRequest('POST', `/v1/terminal/readers/${encodeURIComponent(id)}/refund_payment`, params, options);
}
/**
* Sets the reader display to show [cart details](https://docs.stripe.com/docs/terminal/features/display).
*/
setReaderDisplay(id, params, options) {
return this._makeRequest('POST', `/v1/terminal/readers/${encodeURIComponent(id)}/set_reader_display`, params, options);
}
}
exports.ReaderResource = ReaderResource;
//# sourceMappingURL=Readers.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"Readers.js","sourceRoot":"","sources":["../../../src/resources/Terminal/Readers.ts"],"names":[],"mappings":"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"}

52
node_modules/stripe/cjs/resources/Terminal/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,52 @@
import { Stripe } from '../../stripe.core.js';
import { Terminal as TerminalNamespace0, Configuration, ConfigurationResource } from './Configurations.js';
import { Terminal as TerminalNamespace1, ConnectionToken, ConnectionTokenResource } from './ConnectionTokens.js';
import { Terminal as TerminalNamespace2, Location, LocationResource } from './Locations.js';
import { Terminal as TerminalNamespace3, OnboardingLink, OnboardingLinkResource } from './OnboardingLinks.js';
import { Terminal as TerminalNamespace4, Reader, ReaderResource } from './Readers.js';
export { Configuration } from './Configurations.js';
export { ConnectionToken } from './ConnectionTokens.js';
export { Location } from './Locations.js';
export { OnboardingLink } from './OnboardingLinks.js';
export { Reader } from './Readers.js';
export declare class Terminal {
private readonly stripe;
configurations: ConfigurationResource;
connectionTokens: ConnectionTokenResource;
locations: LocationResource;
onboardingLinks: OnboardingLinkResource;
readers: ReaderResource;
constructor(stripe: Stripe);
}
export declare namespace Terminal {
export import ConfigurationDeleteParams = TerminalNamespace0.ConfigurationDeleteParams;
export import ConfigurationRetrieveParams = TerminalNamespace0.ConfigurationRetrieveParams;
export import ConfigurationUpdateParams = TerminalNamespace0.ConfigurationUpdateParams;
export import ConfigurationListParams = TerminalNamespace0.ConfigurationListParams;
export import ConfigurationCreateParams = TerminalNamespace0.ConfigurationCreateParams;
export { Configuration };
export import ConnectionTokenCreateParams = TerminalNamespace1.ConnectionTokenCreateParams;
export { ConnectionToken };
export import LocationDeleteParams = TerminalNamespace2.LocationDeleteParams;
export import LocationRetrieveParams = TerminalNamespace2.LocationRetrieveParams;
export import LocationUpdateParams = TerminalNamespace2.LocationUpdateParams;
export import LocationListParams = TerminalNamespace2.LocationListParams;
export import LocationCreateParams = TerminalNamespace2.LocationCreateParams;
export { Location };
export import OnboardingLinkCreateParams = TerminalNamespace3.OnboardingLinkCreateParams;
export { OnboardingLink };
export import ReaderDeleteParams = TerminalNamespace4.ReaderDeleteParams;
export import ReaderRetrieveParams = TerminalNamespace4.ReaderRetrieveParams;
export import ReaderUpdateParams = TerminalNamespace4.ReaderUpdateParams;
export import ReaderListParams = TerminalNamespace4.ReaderListParams;
export import ReaderCreateParams = TerminalNamespace4.ReaderCreateParams;
export import ReaderCancelActionParams = TerminalNamespace4.ReaderCancelActionParams;
export import ReaderCollectInputsParams = TerminalNamespace4.ReaderCollectInputsParams;
export import ReaderCollectPaymentMethodParams = TerminalNamespace4.ReaderCollectPaymentMethodParams;
export import ReaderConfirmPaymentIntentParams = TerminalNamespace4.ReaderConfirmPaymentIntentParams;
export import ReaderProcessPaymentIntentParams = TerminalNamespace4.ReaderProcessPaymentIntentParams;
export import ReaderProcessSetupIntentParams = TerminalNamespace4.ReaderProcessSetupIntentParams;
export import ReaderRefundPaymentParams = TerminalNamespace4.ReaderRefundPaymentParams;
export import ReaderSetReaderDisplayParams = TerminalNamespace4.ReaderSetReaderDisplayParams;
export { Reader };
}

21
node_modules/stripe/cjs/resources/Terminal/index.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
"use strict";
// File generated from our OpenAPI spec
Object.defineProperty(exports, "__esModule", { value: true });
exports.Terminal = void 0;
const Configurations_js_1 = require("./Configurations.js");
const ConnectionTokens_js_1 = require("./ConnectionTokens.js");
const Locations_js_1 = require("./Locations.js");
const OnboardingLinks_js_1 = require("./OnboardingLinks.js");
const Readers_js_1 = require("./Readers.js");
class Terminal {
constructor(stripe) {
this.stripe = stripe;
this.configurations = new Configurations_js_1.ConfigurationResource(stripe);
this.connectionTokens = new ConnectionTokens_js_1.ConnectionTokenResource(stripe);
this.locations = new Locations_js_1.LocationResource(stripe);
this.onboardingLinks = new OnboardingLinks_js_1.OnboardingLinkResource(stripe);
this.readers = new Readers_js_1.ReaderResource(stripe);
}
}
exports.Terminal = Terminal;
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Terminal/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,2DAI6B;AAC7B,+DAI+B;AAC/B,iDAIwB;AACxB,6DAI8B;AAC9B,6CAIsB;AAQtB,MAAa,QAAQ;IAOnB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,cAAc,GAAG,IAAI,yCAAqB,CAAC,MAAM,CAAC,CAAC;QACxD,IAAI,CAAC,gBAAgB,GAAG,IAAI,6CAAuB,CAAC,MAAM,CAAC,CAAC;QAC5D,IAAI,CAAC,SAAS,GAAG,IAAI,+BAAgB,CAAC,MAAM,CAAC,CAAC;QAC9C,IAAI,CAAC,eAAe,GAAG,IAAI,2CAAsB,CAAC,MAAM,CAAC,CAAC;QAC1D,IAAI,CAAC,OAAO,GAAG,IAAI,2BAAc,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;CACF;AAdD,4BAcC"}