ContractsApi - factory interface export

  • Parameters

    • Optionalconfiguration: Configuration
    • OptionalbasePath: string
    • Optionalaxios: AxiosInstance

    Returns {
        apiContractsContractIdGet(contractId: string, revision?: number, options?: RawAxiosRequestConfig): AxiosPromise<Contract>;
        apiContractsDelete(id?: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
        apiContractsPost(contract?: Contract, options?: RawAxiosRequestConfig): AxiosPromise<Contract>;
        apiContractsPut(id?: number, contract?: Contract, options?: RawAxiosRequestConfig): AxiosPromise<Contract>;
        contractPayments(id: string, limit?: number, page?: number, userId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaymentCycleListResponse>;
        contractPaymentTotals(id: string, options?: RawAxiosRequestConfig): AxiosPromise<PaymentCycleListResponse>;
        contractsGetAll(activeOnly?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Contract[]>;
    }

    • apiContractsContractIdGet:function
      • 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 AxiosPromise<Contract>

    • apiContractsDelete:function
      • summary Delete a contract

        Parameters

        • Optionalid: number
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<void>

    • apiContractsPost:function
      • 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 AxiosPromise<Contract>

    • apiContractsPut:function
      • summary Update a contract

        Parameters

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

          Override http request option.

        Returns AxiosPromise<Contract>

    • contractPayments:function
      • 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 AxiosPromise<PaymentCycleListResponse>

    • contractPaymentTotals:function
    • contractsGetAll:function
      • 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 AxiosPromise<Contract[]>