UNPKG

stripe

Version:
81 lines (80 loc) 2.48 kB
import { StripeResource } from '../StripeResource.js'; import { PaginationParams } from '../shared.js'; import { RequestOptions, Response, ApiListPromise } from '../lib.js'; export declare class ApplePayDomainResource extends StripeResource { /** * Delete an apple pay domain. */ del(id: string, params?: ApplePayDomainDeleteParams, options?: RequestOptions): Promise<Response<DeletedApplePayDomain>>; /** * Retrieve an apple pay domain. */ retrieve(id: string, params?: ApplePayDomainRetrieveParams, options?: RequestOptions): Promise<Response<ApplePayDomain>>; /** * List apple pay domains. */ list(params?: ApplePayDomainListParams, options?: RequestOptions): ApiListPromise<ApplePayDomain>; /** * Create an apple pay domain. */ create(params: ApplePayDomainCreateParams, options?: RequestOptions): Promise<Response<ApplePayDomain>>; } export interface ApplePayDomain { /** * Unique identifier for the object. */ id: string; /** * String representing the object's type. Objects of the same type share the same value. */ object: 'apple_pay_domain'; /** * Time at which the object was created. Measured in seconds since the Unix epoch. */ created: number; /** * Always true for a deleted object */ deleted?: void; domain_name: 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; } export interface DeletedApplePayDomain { /** * Unique identifier for the object. */ id: string; /** * String representing the object's type. Objects of the same type share the same value. */ object: 'apple_pay_domain'; /** * Always true for a deleted object */ deleted: true; } export interface ApplePayDomainCreateParams { domain_name: string; /** * Specifies which fields in the response should be expanded. */ expand?: Array<string>; } export interface ApplePayDomainRetrieveParams { /** * Specifies which fields in the response should be expanded. */ expand?: Array<string>; } export interface ApplePayDomainListParams extends PaginationParams { domain_name?: string; /** * Specifies which fields in the response should be expanded. */ expand?: Array<string>; } export interface ApplePayDomainDeleteParams { }