ContractsApi - object-oriented interface export ContractsApi

Hierarchy (view full)

Constructors

Properties

axios: AxiosInstance = globalAxios
basePath: string = BASE_PATH
configuration: undefined | Configuration

Methods

  • Returns a single `Contract` object based on the specified id

    summary Retrieve a contract

    Parameters

    • contractId: string

      The id of the contract you want to retrieve

    • Optionalrevision: number

      The optional revision number of the contract you want to retrieve

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<Contract, any>>

    memberof ContractsApi

  • summary Delete a contract

    Parameters

    • Optionalid: number
    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<void, any>>

    memberof ContractsApi

  • Used to create new contracts or link to a existing contract group

    summary Create a contract

    Parameters

    • Optionalcontract: Contract
    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<Contract, any>>

    memberof ContractsApi

  • summary Update a contract

    Parameters

    • Optionalid: number
    • Optionalcontract: Contract
    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<Contract, any>>

    memberof ContractsApi

  • summary Retrieve a list of all related payments

    Parameters

    • id: string
    • Optionallimit: number

      A limit of the number of objects to be returned for the next page, between 1 and 100. The default is 25

    • Optionalpage: number

      1-based page index for paginated results

    • OptionaluserId: string

      The user id to operate on their behalf (tenants only)

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<PaymentCycleListResponse, any>>

    memberof ContractsApi

  • summary Retrieve the total payments associated with a contract

    Parameters

    • id: string
    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<PaymentCycleListResponse, any>>

    memberof ContractsApi

  • Contracts are core to the Splits API, they contain Income objects which have child terms used to specify the rules of how income should be split or sent to payees.

    summary List all contracts

    Parameters

    • OptionalactiveOnly: boolean

      If set to true, then this only returns active contracts

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<Contract[], any>>

    memberof ContractsApi