import Client from "./domain/client"; import ClientV5 from "./domain/client/v5"; import IPaymentV5 from "./@types/interfaces/api/common/payments/v5/payment"; import IAddressV5 from "./@types/interfaces/api/common/address/v5"; import ICustomerV5 from "./@types/interfaces/api/common/customer/v5"; import IGeoLocationV5 from "./@types/interfaces/api/common/v5/geo-location"; import IShippingV5 from "./@types/interfaces/api/common/shipping/v5"; import IPaymentsV5 from "./@types/interfaces/api/common/payments/v5"; import IPaymentCreditCardV5 from "./@types/interfaces/api/common/payments/v5/payment/credit-card"; import IPaymentCreditCardDetailsV5 from "./@types/interfaces/api/common/payments/v5/payment/credit-card/data"; import IPaymentCreditCardDetailsCardV5 from "./@types/interfaces/api/common/payments/v5/payment/credit-card/data/card"; import IPaymentBoletoV5 from "./@types/interfaces/api/common/payments/v5/payment/boleto"; import IPaymentBoletoDetailsV5 from "./@types/interfaces/api/common/payments/v5/payment/boleto/data"; import IPaymentPixV5 from "./@types/interfaces/api/common/payments/v5/payment/pix"; import IPaymentPixDetailsV5 from "./@types/interfaces/api/common/payments/v5/payment/pix/data"; import IPaymentCheckoutV5 from "./@types/interfaces/api/common/payments/v5/payment/checkout"; import IPaymentCheckoutDetailsV5 from "./@types/interfaces/api/common/payments/v5/payment/checkout/data"; import IPaymentVoucherV5 from "./@types/interfaces/api/common/payments/v5/payment/voucher"; import IPaymentVoucherDetailsV5 from "./@types/interfaces/api/common/payments/v5/payment/voucher/data"; import IPaymentBankTransferV5 from "./@types/interfaces/api/common/payments/v5/payment/bank-transfer"; import IPaymentBankTransferDetailsV5 from "./@types/interfaces/api/common/payments/v5/payment/bank-transfer/data"; import IPaymentCashV5 from "./@types/interfaces/api/common/payments/v5/payment/cash"; import IPaymentCashDetailsV5 from "./@types/interfaces/api/common/payments/v5/payment/cash/data"; import IPaymentSafetyPayV5 from "./@types/interfaces/api/common/payments/v5/payment/safety-pay"; import ICreateOrderRequestPayloadV5 from "./@types/interfaces/api/request-payloads/v5/order/create"; import ICreateOrderRequestPayloadItemV5 from "./@types/interfaces/api/request-payloads/v5/order/create/item"; import IDeviceInfo from "./@types/interfaces/api/common/v5/device"; import CustomerGenderType, { CustomerGenderEnums } from "./@types/enums/customer/v5/gender"; import CustomerTypeV5, { CustomerTypeEnums } from "./@types/enums/customer/v5/type"; import PaymentMethodType, { PaymentMethodEnums } from "./@types/enums/payment-method/v5"; import ApiResponses from "./@types/interfaces/api/responses"; import ICreateRecipientPayloadV5 from "./@types/interfaces/api/request-payloads/v5/recipient/create"; import IRecipientV5 from "./@types/interfaces/api/common/recipient/v5"; import PersonTypeV5 from "./@types/enums/person/type/v5"; import IBankAccountV5 from "./@types/interfaces/api/common/bank-account/v5"; import IAutomaticAnticipationSettingsV5 from "./@types/interfaces/api/common/v5/settings/automatic-anticipation"; import IRecipientGatewayRecipientV5 from "./@types/interfaces/api/common/recipient/v5/gateway"; import ITransferSettingsV5 from "./@types/interfaces/api/common/v5/settings/transfer"; import RecipientPaymentModeV5Type from "./@types/enums/recipient/payment-mode/v5"; import IUpdateRecipientPayload from "./@types/interfaces/api/request-payloads/v5/recipient/update"; import ISplitV5 from "./@types/interfaces/api/request-payloads/v5/order/create/split"; import ISplitOptionsV5 from "./@types/interfaces/api/request-payloads/v5/order/create/split/options"; import SplitTypeEnumV5 from "./@types/enums/split-type/v5"; import IListRecipientsPayload from "./@types/interfaces/api/request-payloads/v5/recipient/list"; import IListOrdersPayload from "./@types/interfaces/api/request-payloads/v5/order/list"; import IListResponse from "./@types/interfaces/api/responses/list"; import OrderV5 from "./@types/interfaces/api/responses/common/v5/order"; import OrderV5Item from "./@types/interfaces/api/responses/common/v5/order/item"; import OrderV5Charge from "./@types/interfaces/api/responses/common/v5/order/charge"; import CustomerV5 from "./@types/interfaces/api/responses/common/v5/customer"; import CustomerDocumentType, { CustomerDocumentTypeEnums } from "./@types/enums/customer/document/type"; import SubscriptionObjectV5 from "./@types/interfaces/api/responses/common/v5/subscription"; import SubscriptionItem from "./@types/interfaces/api/responses/common/v5/subscription/common/item"; import SubscriptionItemPricingScheme from "./@types/interfaces/api/responses/common/v5/subscription/common/item/pricing-scheme"; import IStandaloneSubscriptionRequestPayload from "./@types/interfaces/api/request-payloads/v5/subscriptions/standalone"; import ICreateStandaloneSubscriptionV5Response from "./@types/interfaces/api/responses/namespaces/subscription/create"; import SubscriptionIntervalType, { SubscriptionIntervalTypeEnums } from "./@types/enums/subscriptions/interval-type"; import SubscriptionBillingType, { SubscriptionBillingTypeEnums } from "./@types/enums/subscriptions/billing-type"; export { IPaymentV5 }; export declare namespace PagarMe { namespace V5 { namespace Utils { const detectCardBrand: (cardNumber: string) => import("./@types/enums/card-brand/v5").default; } type Client = ClientV5; namespace Types { namespace Common { namespace Customer { type Gender = CustomerGenderType; namespace Gender { type Male = typeof CustomerGenderEnums.CustomerGenderMale; type Female = typeof CustomerGenderEnums.CustomerGenderFemale; } type Type = CustomerTypeV5; namespace Type { type Individual = typeof CustomerTypeEnums.CustomerTypeIndividual; type Comçany = typeof CustomerTypeEnums.CustomerTypeCompany; } namespace DocumentType { type Individual = typeof CustomerDocumentTypeEnums.CustomerDocumentTypeIndividual; type Corporation = typeof CustomerDocumentTypeEnums.CustomerDocumentTypeCorporation; type Passport = typeof CustomerDocumentTypeEnums.CustomerDocumentTypePassport; type Other = typeof CustomerDocumentTypeEnums.CustomerDocumentTypeOther; } type DocumentType = CustomerDocumentType; } namespace Payment { type Method = PaymentMethodType; namespace Method { type CreditCard = typeof PaymentMethodEnums.PaymentMethodCreditCard; type Boleto = typeof PaymentMethodEnums.PaymentMethodBoleto; type Voucher = typeof PaymentMethodEnums.PaymentMethodVoucher; type BankTransfer = typeof PaymentMethodEnums.PaymentMethodBankTransfer; type SafetyPay = typeof PaymentMethodEnums.PaymentMethodSafetyPay; type Checkout = typeof PaymentMethodEnums.PaymentMethodCheckout; type Cash = typeof PaymentMethodEnums.PaymentMethodCash; type Pix = typeof PaymentMethodEnums.PaymentMethodPix; type DebitCard = typeof PaymentMethodEnums.PaymentMethodDebitCard; } } namespace Recipient { type RecipientPaymentModeType = RecipientPaymentModeV5Type; type ITransferSettings = ITransferSettingsV5; type IRecipientGatewayRecipient = IRecipientGatewayRecipientV5; type IAutomaticAnticipationSettings = IAutomaticAnticipationSettingsV5; } namespace Order { type Item = OrderV5Item; type Charge = OrderV5Charge; } namespace Subscription { type Item = SubscriptionItem; namespace Item { type PricingScheme = SubscriptionItemPricingScheme; } namespace Enums { namespace Interval { type Type = SubscriptionIntervalType; namespace Type { type Day = typeof SubscriptionIntervalTypeEnums.day; type Week = typeof SubscriptionIntervalTypeEnums.week; type Month = typeof SubscriptionIntervalTypeEnums.month; type Year = typeof SubscriptionIntervalTypeEnums.year; } } namespace Billing { type Type = SubscriptionBillingType; namespace Type { type PrePaid = typeof SubscriptionBillingTypeEnums.prepaid; type PostPaid = typeof SubscriptionBillingTypeEnums.postpaid; type ExactDay = typeof SubscriptionBillingTypeEnums.exactday; } } } } /** * Existing Order */ type Order = OrderV5; /** * Existing Customer */ type Customer = CustomerV5; type IBankAccount = IBankAccountV5; type PersonType = PersonTypeV5; type IPayment = IPaymentV5; type IAddress = IAddressV5; type ICustomer = ICustomerV5; type IGeoLocation = IGeoLocationV5; type IShipping = IShippingV5; type IPayments = IPaymentsV5; type IDevice = IDeviceInfo; type IRecipient = IRecipientV5; type Subscription = SubscriptionObjectV5; namespace Payload { type CardData = IPaymentCreditCardDetailsV5; type ExistingCard = { card_id: string; }; type TokenizedCard = { card_token: string; }; } } namespace Payment { type ICreditCard = IPaymentCreditCardV5; namespace CreditCard { type IDetails = IPaymentCreditCardDetailsV5; type ICard = IPaymentCreditCardDetailsCardV5; } type IBoleto = IPaymentBoletoV5; namespace Boleto { type IDetails = IPaymentBoletoDetailsV5; } type IPix = IPaymentPixV5; namespace Pix { type IDetails = IPaymentPixDetailsV5; } type ICheckout = IPaymentCheckoutV5; namespace Checkout { type IDetails = IPaymentCheckoutDetailsV5; } type IVoucher = IPaymentVoucherV5; namespace Voucher { type IVoucherDetails = IPaymentVoucherDetailsV5; } type IBankTransfer = IPaymentBankTransferV5; namespace BankTransfer { type IDetails = IPaymentBankTransferDetailsV5; } type ICash = IPaymentCashV5; namespace Cash { type IDetails = IPaymentCashDetailsV5; } type ISafetyPay = IPaymentSafetyPayV5; } namespace API { namespace Recipient { namespace Create { namespace Request { type Payload = ICreateRecipientPayloadV5; } namespace Response { type Body = ApiResponses.V5.Recipient.Create; } } namespace Update { namespace Request { type Payload = IUpdateRecipientPayload; } namespace Response { type Body = ApiResponses.V5.Recipient.Update; } } namespace Balance { namespace Request { /** recipient ID only */ type Payload = string; } namespace Response { type Body = ApiResponses.V5.Recipient.Balance; } } namespace List { namespace Request { type Payload = IListRecipientsPayload; } namespace Response { type Body = ApiResponses.V5.Recipient.List; } } namespace Detail { namespace Request { /** * Recipient Id */ type Payload = string; } namespace Response { type Body = ApiResponses.V5.Recipient.Detail; } } } namespace Order { namespace Create { namespace Request { type OrderPayload = ICreateOrderRequestPayloadV5; type OrderItem = ICreateOrderRequestPayloadItemV5; type Split = ISplitV5; namespace Enums { type SplitType = SplitTypeEnumV5; } type SplitOptions = ISplitOptionsV5; } } namespace List { namespace Request { type Payload = IListOrdersPayload; } namespace Response { type Body = IListResponse; } } } namespace Subscription { namespace Standalone { namespace Create { namespace Request { type Payload = IStandaloneSubscriptionRequestPayload; } namespace Response { type Body = ICreateStandaloneSubscriptionV5Response; } } } } } } } } declare const _default: { Client: typeof Client; ClientV5: typeof ClientV5; }; export default _default; //# sourceMappingURL=index.d.ts.map