/** * PagarmeApiSDKLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { lazy, nullable, number, object, optional, Schema } from '../schema'; import { GetFineResponse, getFineResponseSchema } from './getFineResponse'; import { GetInterestResponse, getInterestResponseSchema, } from './getInterestResponse'; /** Response object for getting a boleto */ export interface GetSubscriptionBoletoResponse { /** Interest */ interest?: GetInterestResponse | null; /** Fine */ fine?: GetFineResponse | null; maxDaysToPayPastDue?: number | null; } export const getSubscriptionBoletoResponseSchema: Schema = object( { interest: [ 'interest', optional(nullable(lazy(() => getInterestResponseSchema))), ], fine: ['fine', optional(nullable(lazy(() => getFineResponseSchema)))], maxDaysToPayPastDue: [ 'max_days_to_pay_past_due', optional(nullable(number())), ], } );