import { AxiosInstance, AxiosRequestConfig } from 'axios'; import * as Models from './models/payments'; /** * Payments Service * Documentation for payments API */ export declare class Payments { private client; constructor(httpClient: AxiosInstance); /** * Create White-label Integration Provider * The "Create White-label Integration Provider" API allows adding a new payment provider integration to the system which is built on top of Authorize.net or NMI. Use this endpoint to create a integration provider with the specified details. Ensure that the required information is provided in the request payload. This endpoint can be only invoked using marketplace-app token */ createIntegrationProvider(requestBody: Models.CreateWhiteLabelIntegrationProviderDto, options?: AxiosRequestConfig): Promise; /** * List White-label Integration Providers * The "List White-label Integration Providers" API allows to retrieve a paginated list of integration providers. Customize your results by filtering whitelabel integration providers(which are built directly on top of Authorize.net or NMI) based on name or paginate through the list using the provided query parameters. This endpoint provides a straightforward way to explore and retrieve integration provider information. */ listIntegrationProviders(params: { altId: string; altType: string; limit?: number; offset?: number; }, options?: AxiosRequestConfig): Promise; /** * List Orders * The "List Orders" API allows to retrieve a paginated list of orders. Customize your results by filtering orders based on name, alt type, order status, payment mode, date range, type of source, contact, funnel products or paginate through the list using the provided query parameters. This endpoint provides a straightforward way to explore and retrieve order information. */ listOrders(params: { locationId?: string; altId: string; status?: string; paymentStatus?: string; paymentMode?: string; startAt?: string; endAt?: string; search?: string; contactId?: string; funnelProductIds?: string; sourceId?: string; limit?: number; offset?: number; }, options?: AxiosRequestConfig): Promise; /** * Get Order by ID * The "Get Order by ID" API allows to retrieve information for a specific order using its unique identifier. Use this endpoint to fetch details for a single order based on the provided order ID. */ getOrderById(params: { orderId: string; locationId?: string; altId: string; }, options?: AxiosRequestConfig): Promise; /** * Record Order Payment * The "Record Order Payment" API allows to record a payment for an order. Use this endpoint to record payment for an order and update the order status to "Paid". */ recordOrderPayment(params: { orderId: string; }, requestBody: Models.PostRecordOrderPaymentBody, options?: AxiosRequestConfig): Promise; /** * Create order fulfillment * The "Order Fulfillment" API facilitates the process of fulfilling an order. */ createOrderFulfillment(params: { orderId: string; }, requestBody: Models.CreateFulfillmentDto, options?: AxiosRequestConfig): Promise; /** * List fulfillment * List all fulfillment history of an order */ listOrderFulfillment(params: { altId: string; altType: string; orderId: string; }, options?: AxiosRequestConfig): Promise; /** * List Order Notes * List all notes of an order */ listOrderNotes(params: { altId: string; altType: string; orderId: string; }, options?: AxiosRequestConfig): Promise; /** * List Transactions * The "List Transactions" API allows to retrieve a paginated list of transactions. Customize your results by filtering transactions based on name, alt type, transaction status, payment mode, date range, type of source, contact, subscription id, entity id or paginate through the list using the provided query parameters. This endpoint provides a straightforward way to explore and retrieve transaction information. */ listTransactions(params: { locationId?: string; altId: string; altType: string; paymentMode?: string; startAt?: string; endAt?: string; entitySourceType?: string; entitySourceSubType?: string; search?: string; subscriptionId?: string; entityId?: string; contactId?: string; limit?: number; offset?: number; }, options?: AxiosRequestConfig): Promise; /** * Get Transaction by ID * The "Get Transaction by ID" API allows to retrieve information for a specific transaction using its unique identifier. Use this endpoint to fetch details for a single transaction based on the provided transaction ID. */ getTransactionById(params: { transactionId: string; locationId?: string; altId: string; altType: string; }, options?: AxiosRequestConfig): Promise; /** * List Subscriptions * The "List Subscriptions" API allows to retrieve a paginated list of subscriptions. Customize your results by filtering subscriptions based on name, alt type, subscription status, payment mode, date range, type of source, contact, subscription id, entity id, contact or paginate through the list using the provided query parameters. This endpoint provides a straightforward way to explore and retrieve subscription information. */ listSubscriptions(params: { altId: string; altType: string; entityId?: string; paymentMode?: string; startAt?: string; endAt?: string; entitySourceType?: string; search?: string; contactId?: string; id?: string; limit?: number; offset?: number; getPaymentsCollectedCount?: boolean; }, options?: AxiosRequestConfig): Promise; /** * Get Subscription by ID * The "Get Subscription by ID" API allows to retrieve information for a specific subscription using its unique identifier. Use this endpoint to fetch details for a single subscription based on the provided subscription ID. */ getSubscriptionById(params: { subscriptionId: string; altId: string; altType: string; }, options?: AxiosRequestConfig): Promise; /** * List Coupons * The "List Coupons" API allows you to retrieve a list of all coupons available in your location. Use this endpoint to view all promotional offers and special discounts for your customers. */ listCoupons(params: { altId: string; altType: string; limit?: number; offset?: number; status?: string; search?: string; }, options?: AxiosRequestConfig): Promise; /** * Create Coupon * The "Create Coupon" API allows you to create a new promotional coupon with customizable parameters such as discount amount, validity period, usage limits, and applicable products. Use this endpoint to set up promotional offers and special discounts for your customers. */ createCoupon(requestBody: Models.CreateCouponParams, options?: AxiosRequestConfig): Promise; /** * Update Coupon * The "Update Coupon" API enables you to modify existing coupon details such as discount values, validity periods, usage limits, and other promotional parameters. Use this endpoint to adjust or extend promotional offers for your customers. */ updateCoupon(requestBody: Models.UpdateCouponParams, options?: AxiosRequestConfig): Promise; /** * Delete Coupon * The "Delete Coupon" API allows you to permanently remove a coupon from your system using its unique identifier. Use this endpoint to discontinue promotional offers or clean up unused coupons. Note that this action cannot be undone. */ deleteCoupon(requestBody: Models.DeleteCouponParams, options?: AxiosRequestConfig): Promise; /** * Fetch Coupon * The "Get Coupon Details" API enables you to retrieve comprehensive information about a specific coupon using either its unique identifier or promotional code. Use this endpoint to view coupon parameters, usage statistics, validity periods, and other promotional details. */ getCoupon(params: { altId: string; altType: string; id: string; code: string; }, options?: AxiosRequestConfig): Promise; /** * Create new integration * API to create a new association for an app and location */ createIntegration(params: { locationId: string; }, requestBody: Models.CreateCustomProvidersDto, options?: AxiosRequestConfig): Promise; /** * Deleting an existing integration * API to delete an association for an app and location */ deleteIntegration(params: { locationId: string; }, options?: AxiosRequestConfig): Promise; /** * Fetch given provider config * API for fetching an existing payment config for given location */ fetchConfig(params: { locationId: string; }, options?: AxiosRequestConfig): Promise; /** * Create new provider config * API to create a new payment config for given location */ createConfig(params: { locationId: string; }, requestBody: Models.ConnectCustomProvidersConfigDto, options?: AxiosRequestConfig): Promise; /** * Disconnect existing provider config * API to disconnect an existing payment config for given location */ disconnectConfig(params: { locationId: string; }, requestBody: Models.DeleteCustomProvidersConfigDto, options?: AxiosRequestConfig): Promise; /** * Custom-provider marketplace app update capabilities * Toggle capabilities for the marketplace app tied to the OAuth client */ customProviderMarketplaceAppUpdateCapabilities(requestBody: Models.UpdateCustomProviderCapabilitiesDto, options?: AxiosRequestConfig): Promise; } export default Payments; //# sourceMappingURL=payments.d.ts.map