UNPKG

wallee

Version:
128 lines (115 loc) 4.69 kB
/** * Wallee AG TypeScript SDK * * This library allows to interact with the Wallee AG payment service. * * Copyright owner: Wallee AG * Website: https://en.wallee.com * Developer email: ecosystem-team@wallee.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import * as runtime from '../runtime'; import type { PaymentLink, PaymentLinkCreate, PaymentLinkListResponse, PaymentLinkSearchResponse, PaymentLinkUpdate, SortingOrder } from '../models/index'; export interface DeletePaymentLinksIdRequest { id: number; space: number; } export interface GetPaymentLinksRequest { space: number; after?: number; before?: number; expand?: Set<string>; limit?: number; order?: SortingOrder; } export interface GetPaymentLinksIdRequest { id: number; space: number; expand?: Set<string>; } export interface GetPaymentLinksSearchRequest { space: number; expand?: Set<string>; limit?: number; offset?: number; order?: string; query?: string; } export interface PatchPaymentLinksIdRequest { id: number; space: number; paymentLinkUpdate: PaymentLinkUpdate; expand?: Set<string>; } export interface PostPaymentLinksRequest { space: number; paymentLinkCreate: PaymentLinkCreate; expand?: Set<string>; } /** * */ export declare class PaymentLinksService extends runtime.BaseAPI { constructor(configuration: runtime.Configuration); /** * Permanently deletes a payment link. It cannot be undone. * Delete a payment link */ deletePaymentLinksIdRaw(requestParameters: DeletePaymentLinksIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>; /** * Permanently deletes a payment link. It cannot be undone. * Delete a payment link */ deletePaymentLinksId(requestParameters: DeletePaymentLinksIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>; /** * List all payment links */ getPaymentLinksRaw(requestParameters: GetPaymentLinksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaymentLinkListResponse>>; /** * List all payment links */ getPaymentLinks(requestParameters: GetPaymentLinksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaymentLinkListResponse>; /** * Retrieve a payment link */ getPaymentLinksIdRaw(requestParameters: GetPaymentLinksIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaymentLink>>; /** * Retrieve a payment link */ getPaymentLinksId(requestParameters: GetPaymentLinksIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaymentLink>; /** * Search payment links */ getPaymentLinksSearchRaw(requestParameters: GetPaymentLinksSearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaymentLinkSearchResponse>>; /** * Search payment links */ getPaymentLinksSearch(requestParameters: GetPaymentLinksSearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaymentLinkSearchResponse>; /** * Update a payment link */ patchPaymentLinksIdRaw(requestParameters: PatchPaymentLinksIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaymentLink>>; /** * Update a payment link */ patchPaymentLinksId(requestParameters: PatchPaymentLinksIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaymentLink>; /** * Create a payment link */ postPaymentLinksRaw(requestParameters: PostPaymentLinksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaymentLink>>; /** * Create a payment link */ postPaymentLinks(requestParameters: PostPaymentLinksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaymentLink>; }