UNPKG

moip-sdk-node-ts

Version:
21 lines (20 loc) 1.05 kB
import { HttpConfig } from '../client/types'; import { NotificationPreferences } from './notification-types'; import * as types from './subscription-types'; export declare type SubscriptionPaymentMethod = 'BOLETO' | 'CREDIT_CARD'; declare const _default: { getOne: (_code: string) => Promise<any>; getAll: () => Promise<any>; create: (subscription: types.Subscription, config: HttpConfig) => Promise<any>; update: (_code: string, subscription: types.Subscription) => Promise<any>; updatePaymentMethod: (_code: string, paymentMethod: SubscriptionPaymentMethod) => Promise<any>; suspend: (_code: string) => Promise<any>; activate: (_code: string) => Promise<any>; cancel: (_code: string) => Promise<any>; getOneInvoice: (_id: string) => Promise<any>; getAllInvoices: (_code: string) => Promise<any>; getOnePayment: (_id: string) => Promise<any>; getAllPayments: (_id: string) => Promise<any>; createNotification: (notification: NotificationPreferences) => Promise<any>; }; export default _default;