import { array , lazy , object , optional , Schema } from '../schema' ; import { Error , errorSchema } from './error' ; import { Subscription , subscriptionSchema } from './subscription' ; /**
 * Defines output parameters in a response of the [DeleteSubscriptionAction]($e/Subscriptions/DeleteSubscriptionAction)
 * endpoint.
 */ export interface DeleteSubscriptionActionResponse { /** Errors encountered during the request. */ errors ? : Error [ ] ; /**
     * Represents a subscription to a subscription plan by a subscriber.
     * For an overview of the `Subscription` type, see
     * [Subscription object](https://developer.squareup.com/docs/subscriptions-api/overview#subscription-object-overview).
     */ subscription ? : Subscription ; } export const deleteSubscriptionActionResponseSchema = object ( { errors : [ 'errors' , optional ( array ( lazy ( ( ) => errorSchema ) ) ) ] , subscription : [ 'subscription' , optional ( lazy ( ( ) => subscriptionSchema ) ) ] , } ) ;