@tolt/api 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/resources/clicks/client/Client.d.ts +28 -8
- package/dist/api/resources/clicks/client/Client.js +89 -10
- package/dist/api/resources/{links/client/requests/GetLinkRequest.d.ts → clicks/client/requests/GetClicksRequest.d.ts} +1 -1
- package/dist/api/resources/clicks/client/requests/ListClicksRequest.d.ts +33 -0
- package/dist/api/resources/clicks/client/requests/index.d.ts +2 -1
- package/dist/api/resources/clicks/types/CreateClicksRequest.d.ts +1 -0
- package/dist/api/resources/clicks/types/{CreateClickResponse.d.ts → CreateClicksResponse.d.ts} +1 -1
- package/dist/api/resources/clicks/types/{GetClickResponse.d.ts → GetClicksResponse.d.ts} +1 -1
- package/dist/api/resources/clicks/types/ListClicksRequestOrder.d.ts +5 -0
- package/dist/api/resources/{reports/types/ReportsLinksRequestOrder.js → clicks/types/ListClicksRequestOrder.js} +1 -1
- package/dist/api/resources/clicks/types/ListClicksRequestSort.d.ts +6 -0
- package/dist/api/resources/clicks/types/ListClicksRequestSort.js +6 -0
- package/dist/api/resources/clicks/types/ListClicksResponse.d.ts +11 -0
- package/dist/api/resources/clicks/types/index.d.ts +6 -3
- package/dist/api/resources/clicks/types/index.js +6 -3
- package/dist/api/resources/commissions/client/Client.d.ts +39 -35
- package/dist/api/resources/commissions/client/Client.js +48 -44
- package/dist/api/resources/commissions/client/requests/{ApproveCommissionRequest.d.ts → ApproveCommissionsRequest.d.ts} +1 -1
- package/dist/api/resources/commissions/client/requests/DeclineCommissionsRequest.d.ts +9 -0
- package/dist/api/resources/commissions/client/requests/{DeclineCommissionRequest.d.ts → DeleteCommissionsRequest.d.ts} +1 -1
- package/dist/api/resources/commissions/client/requests/{GetCommissionRequest.d.ts → GetCommissionsRequest.d.ts} +1 -1
- package/dist/api/resources/commissions/client/requests/{UpdateCommissionRequest.d.ts → UpdateCommissionsRequest.d.ts} +1 -1
- package/dist/api/resources/commissions/client/requests/index.d.ts +5 -5
- package/dist/api/resources/commissions/types/{CreateCommissionResponse.d.ts → ApproveCommissionsResponse.d.ts} +1 -1
- package/dist/api/resources/commissions/types/CreateCommissionsRequest.d.ts +1 -0
- package/dist/api/resources/commissions/types/{ApproveCommissionResponse.d.ts → CreateCommissionsResponse.d.ts} +1 -1
- package/dist/api/resources/commissions/types/DeclineCommissionsResponse.d.ts +6 -0
- package/dist/api/resources/commissions/types/{DeclineCommissionResponse.d.ts → DeleteCommissionsResponse.d.ts} +1 -1
- package/dist/api/resources/commissions/types/{GetCommissionResponse.d.ts → GetCommissionsResponse.d.ts} +1 -1
- package/dist/api/resources/commissions/types/{DeleteCommissionResponse.d.ts → UpdateCommissionsResponse.d.ts} +1 -1
- package/dist/api/resources/commissions/types/index.d.ts +7 -7
- package/dist/api/resources/commissions/types/index.js +7 -7
- package/dist/api/resources/customers/client/Client.d.ts +22 -19
- package/dist/api/resources/customers/client/Client.js +37 -26
- package/dist/api/resources/customers/client/requests/CreateCustomersRequest.d.ts +29 -0
- package/dist/api/resources/customers/client/requests/CreateCustomersRequest.js +11 -0
- package/dist/api/resources/customers/client/requests/{DeleteCustomerRequest.d.ts → DeleteCustomersRequest.d.ts} +1 -1
- package/dist/api/resources/customers/client/requests/GetCustomersRequest.d.ts +9 -0
- package/dist/api/resources/customers/client/requests/ListCustomersRequest.d.ts +3 -1
- package/dist/api/resources/customers/client/requests/UpdateCustomersRequest.d.ts +31 -0
- package/dist/api/resources/customers/client/requests/UpdateCustomersRequest.js +11 -0
- package/dist/api/resources/customers/client/requests/index.d.ts +4 -4
- package/dist/api/resources/customers/client/requests/index.js +2 -1
- package/dist/api/resources/customers/types/{DeleteCustomerResponse.d.ts → CreateCustomersResponse.d.ts} +1 -1
- package/dist/api/resources/customers/types/{UpdateCustomerResponse.d.ts → DeleteCustomersResponse.d.ts} +1 -1
- package/dist/api/resources/customers/types/{GetCustomerResponse.d.ts → GetCustomersResponse.d.ts} +1 -1
- package/dist/api/resources/customers/types/ListCustomersRequestStatus.d.ts +8 -0
- package/dist/api/resources/customers/types/ListCustomersRequestStatus.js +8 -0
- package/dist/api/resources/customers/types/{CreateCustomerResponse.d.ts → UpdateCustomersResponse.d.ts} +1 -1
- package/dist/api/resources/customers/types/index.d.ts +5 -4
- package/dist/api/resources/customers/types/index.js +5 -4
- package/dist/api/resources/embed/client/Client.d.ts +4 -4
- package/dist/api/resources/embed/client/Client.js +5 -5
- package/dist/api/resources/embed/client/requests/CreateTokenEmbedRequest.d.ts +14 -0
- package/dist/api/resources/embed/client/requests/index.d.ts +1 -1
- package/dist/api/resources/embed/types/{CreateEmbedTokenResponse.d.ts → CreateTokenEmbedResponse.d.ts} +1 -1
- package/dist/api/resources/embed/types/index.d.ts +1 -1
- package/dist/api/resources/embed/types/index.js +1 -1
- package/dist/api/resources/flows/client/Client.d.ts +7 -7
- package/dist/api/resources/flows/client/Client.js +9 -9
- package/dist/api/resources/{clicks/client/requests/GetClickRequest.d.ts → flows/client/requests/GetFlowsRequest.d.ts} +1 -1
- package/dist/api/resources/flows/client/requests/index.d.ts +1 -1
- package/dist/api/resources/flows/types/{GetFlowResponse.d.ts → GetFlowsResponse.d.ts} +1 -1
- package/dist/api/resources/flows/types/index.d.ts +1 -1
- package/dist/api/resources/flows/types/index.js +1 -1
- package/dist/api/resources/groups/client/Client.d.ts +7 -7
- package/dist/api/resources/groups/client/Client.js +9 -9
- package/dist/api/resources/{flows/client/requests/GetFlowRequest.d.ts → groups/client/requests/GetGroupsRequest.d.ts} +1 -1
- package/dist/api/resources/groups/client/requests/index.d.ts +1 -1
- package/dist/api/resources/groups/types/{GetGroupResponse.d.ts → GetGroupsResponse.d.ts} +1 -1
- package/dist/api/resources/groups/types/index.d.ts +1 -1
- package/dist/api/resources/groups/types/index.js +1 -1
- package/dist/api/resources/links/client/Client.d.ts +49 -19
- package/dist/api/resources/links/client/Client.js +108 -25
- package/dist/api/resources/links/client/requests/{CreateLinkRequest.d.ts → CreateLinksRequest.d.ts} +1 -1
- package/dist/api/resources/{customers/client/requests/GetCustomerRequest.d.ts → links/client/requests/DeleteLinksRequest.d.ts} +1 -1
- package/dist/api/resources/links/client/requests/GetByParamValueLinksRequest.d.ts +12 -0
- package/dist/api/resources/{groups/client/requests/GetGroupRequest.d.ts → links/client/requests/GetLinksRequest.d.ts} +1 -1
- package/dist/api/resources/links/client/requests/ListLinksRequest.d.ts +2 -0
- package/dist/api/resources/links/client/requests/{UpdateLinkRequest.d.ts → UpdateLinksRequest.d.ts} +1 -1
- package/dist/api/resources/links/client/requests/index.d.ts +5 -4
- package/dist/api/resources/links/types/{DeleteLinkResponse.d.ts → CreateLinksResponse.d.ts} +1 -1
- package/dist/api/resources/links/types/{CreateLinkResponse.d.ts → DeleteLinksResponse.d.ts} +1 -1
- package/dist/api/resources/links/types/GetByParamValueLinksResponse.d.ts +6 -0
- package/dist/api/resources/links/types/{GetLinkResponse.d.ts → GetLinksResponse.d.ts} +1 -1
- package/dist/api/resources/links/types/{UpdateLinkResponse.d.ts → UpdateLinksResponse.d.ts} +1 -1
- package/dist/api/resources/links/types/index.d.ts +5 -4
- package/dist/api/resources/links/types/index.js +5 -4
- package/dist/api/resources/partners/client/Client.d.ts +33 -33
- package/dist/api/resources/partners/client/Client.js +42 -42
- package/dist/api/resources/partners/client/requests/ApprovePartnersRequest.d.ts +9 -0
- package/dist/api/resources/partners/client/requests/{CreatePartnerRequest.d.ts → CreatePartnersRequest.d.ts} +8 -4
- package/dist/api/resources/partners/client/requests/CreatePartnersRequest.js +8 -0
- package/dist/api/resources/partners/client/requests/GetPartnersRequest.d.ts +9 -0
- package/dist/api/resources/partners/client/requests/{RejectPartnerRequest.d.ts → RejectPartnersRequest.d.ts} +1 -1
- package/dist/api/resources/partners/client/requests/{SuspendPartnerRequest.d.ts → SuspendPartnersRequest.d.ts} +1 -1
- package/dist/api/resources/partners/client/requests/{UpdatePartnerRequest.d.ts → UpdatePartnersRequest.d.ts} +1 -1
- package/dist/api/resources/partners/client/requests/index.d.ts +6 -6
- package/dist/api/resources/partners/client/requests/index.js +1 -1
- package/dist/api/resources/partners/types/{SuspendPartnerResponse.d.ts → ApprovePartnersResponse.d.ts} +1 -1
- package/dist/api/resources/partners/types/{CreatePartnerResponse.d.ts → CreatePartnersResponse.d.ts} +1 -1
- package/dist/api/resources/partners/types/{GetPartnerResponse.d.ts → GetPartnersResponse.d.ts} +1 -1
- package/dist/api/resources/partners/types/{ApprovePartnerResponse.d.ts → RejectPartnersResponse.d.ts} +1 -1
- package/dist/api/resources/partners/types/{UpdatePartnerResponse.d.ts → SuspendPartnersResponse.d.ts} +1 -1
- package/dist/api/resources/partners/types/{RejectPartnerResponse.d.ts → UpdatePartnersResponse.d.ts} +1 -1
- package/dist/api/resources/partners/types/index.d.ts +6 -6
- package/dist/api/resources/partners/types/index.js +6 -6
- package/dist/api/resources/programs/client/Client.d.ts +7 -7
- package/dist/api/resources/programs/client/Client.js +9 -9
- package/dist/api/resources/programs/client/requests/GetProgramsRequest.d.ts +9 -0
- package/dist/api/resources/programs/client/requests/index.d.ts +1 -1
- package/dist/api/resources/programs/types/{GetProgramResponse.d.ts → GetProgramsResponse.d.ts} +1 -1
- package/dist/api/resources/programs/types/index.d.ts +1 -1
- package/dist/api/resources/programs/types/index.js +1 -1
- package/dist/api/resources/promotionCodes/client/Client.d.ts +19 -19
- package/dist/api/resources/promotionCodes/client/Client.js +25 -25
- package/dist/api/resources/promotionCodes/client/requests/CreatePromotionCodesRequest.d.ts +20 -0
- package/dist/api/resources/promotionCodes/client/requests/CreatePromotionCodesRequest.js +8 -0
- package/dist/api/resources/promotionCodes/client/requests/DeletePromotionCodesRequest.d.ts +9 -0
- package/dist/api/resources/{commissions/client/requests/DeleteCommissionRequest.d.ts → promotionCodes/client/requests/GetPromotionCodesRequest.d.ts} +1 -1
- package/dist/api/resources/promotionCodes/client/requests/ListPromotionCodesRequest.d.ts +1 -1
- package/dist/api/resources/promotionCodes/client/requests/UpdatePromotionCodesRequest.d.ts +19 -0
- package/dist/api/resources/promotionCodes/client/requests/UpdatePromotionCodesRequest.js +8 -0
- package/dist/api/resources/promotionCodes/client/requests/index.d.ts +4 -4
- package/dist/api/resources/promotionCodes/client/requests/index.js +2 -1
- package/dist/api/resources/promotionCodes/types/{CreatePromotionCodeResponse.d.ts → CreatePromotionCodesResponse.d.ts} +1 -1
- package/dist/api/resources/promotionCodes/types/{DeletePromotionCodeResponse.d.ts → DeletePromotionCodesResponse.d.ts} +1 -1
- package/dist/api/resources/promotionCodes/types/{GetPromotionCodeResponse.d.ts → GetPromotionCodesResponse.d.ts} +1 -1
- package/dist/api/resources/promotionCodes/types/ListPromotionCodesRequestType.d.ts +5 -0
- package/dist/api/resources/promotionCodes/types/ListPromotionCodesRequestType.js +5 -0
- package/dist/api/resources/promotionCodes/types/{UpdatePromotionCodeResponse.d.ts → UpdatePromotionCodesResponse.d.ts} +1 -1
- package/dist/api/resources/promotionCodes/types/index.d.ts +5 -4
- package/dist/api/resources/promotionCodes/types/index.js +5 -4
- package/dist/api/resources/reports/client/Client.d.ts +10 -10
- package/dist/api/resources/reports/client/Client.js +11 -8
- package/dist/api/resources/reports/client/requests/{ReportsCustomerStatsRequest.d.ts → CustomerStatsReportsRequest.d.ts} +1 -1
- package/dist/api/resources/reports/client/requests/{ReportsLinksRequest.d.ts → LinksReportsRequest.d.ts} +4 -3
- package/dist/api/resources/reports/client/requests/{ReportsOverviewRequest.d.ts → OverviewReportsRequest.d.ts} +1 -1
- package/dist/api/resources/reports/client/requests/{ReportsPartnersRequest.d.ts → PartnersReportsRequest.d.ts} +4 -3
- package/dist/api/resources/reports/client/requests/{ReportsTimeseriesRequest.d.ts → TimeseriesReportsRequest.d.ts} +3 -2
- package/dist/api/resources/reports/client/requests/index.d.ts +5 -5
- package/dist/api/resources/reports/types/{ReportsCustomerStatsResponse.d.ts → CustomerStatsReportsResponse.d.ts} +1 -1
- package/dist/api/resources/reports/types/LinksReportsRequestOrder.d.ts +5 -0
- package/dist/api/resources/reports/types/{ReportsPartnersRequestOrder.js → LinksReportsRequestOrder.js} +1 -1
- package/dist/api/resources/reports/types/LinksReportsRequestSort.d.ts +7 -0
- package/dist/api/resources/reports/types/{ReportsLinksRequestSort.js → LinksReportsRequestSort.js} +1 -1
- package/dist/api/resources/reports/types/{ReportsLinksResponse.d.ts → LinksReportsResponse.d.ts} +1 -1
- package/dist/api/resources/reports/types/{ReportsOverviewResponse.d.ts → OverviewReportsResponse.d.ts} +1 -1
- package/dist/api/resources/reports/types/PartnersReportsRequestOrder.d.ts +5 -0
- package/dist/api/resources/reports/types/PartnersReportsRequestOrder.js +5 -0
- package/dist/api/resources/reports/types/PartnersReportsRequestSort.d.ts +7 -0
- package/dist/api/resources/reports/types/{ReportsPartnersRequestSort.js → PartnersReportsRequestSort.js} +1 -1
- package/dist/api/resources/reports/types/{ReportsPartnersResponse.d.ts → PartnersReportsResponse.d.ts} +1 -1
- package/dist/api/resources/reports/types/TimeseriesReportsRequestGranularity.d.ts +6 -0
- package/dist/api/resources/reports/types/{ReportsTimeseriesRequestGranularity.js → TimeseriesReportsRequestGranularity.js} +1 -1
- package/dist/api/resources/reports/types/{ReportsTimeseriesResponse.d.ts → TimeseriesReportsResponse.d.ts} +1 -1
- package/dist/api/resources/reports/types/index.d.ts +10 -10
- package/dist/api/resources/reports/types/index.js +10 -10
- package/dist/api/resources/transactions/client/Client.d.ts +31 -27
- package/dist/api/resources/transactions/client/Client.js +38 -34
- package/dist/api/resources/transactions/client/requests/{CreateTransactionRequest.d.ts → CreateTransactionsRequest.d.ts} +4 -1
- package/dist/api/resources/transactions/client/requests/DeleteTransactionsRequest.d.ts +9 -0
- package/dist/api/resources/transactions/client/requests/GetTransactionsRequest.d.ts +9 -0
- package/dist/api/resources/transactions/client/requests/RefundTransactionsRequest.d.ts +9 -0
- package/dist/api/resources/transactions/client/requests/RerunFlowsTransactionsRequest.d.ts +9 -0
- package/dist/api/resources/transactions/client/requests/{UpdateTransactionRequest.d.ts → UpdateTransactionsRequest.d.ts} +3 -1
- package/dist/api/resources/transactions/client/requests/index.d.ts +6 -6
- package/dist/api/resources/transactions/types/{CreateTransactionResponse.d.ts → CreateTransactionsResponse.d.ts} +1 -1
- package/dist/api/resources/transactions/types/{DeleteTransactionResponse.d.ts → DeleteTransactionsResponse.d.ts} +1 -1
- package/dist/api/resources/transactions/types/{GetTransactionResponse.d.ts → GetTransactionsResponse.d.ts} +1 -1
- package/dist/api/resources/transactions/types/{RefundTransactionResponse.d.ts → RefundTransactionsResponse.d.ts} +1 -1
- package/dist/api/resources/transactions/types/{RerunTransactionFlowsResponse.d.ts → RerunFlowsTransactionsResponse.d.ts} +1 -1
- package/dist/api/resources/transactions/types/UpdateTransactionsResponse.d.ts +6 -0
- package/dist/api/resources/transactions/types/index.d.ts +6 -6
- package/dist/api/resources/transactions/types/index.js +6 -6
- package/dist/environments.d.ts +1 -1
- package/dist/environments.js +1 -1
- package/package.json +1 -1
- package/dist/api/resources/clicks/types/CreateClickRequest.d.ts +0 -1
- package/dist/api/resources/commissions/types/CreateCommissionRequest.d.ts +0 -1
- package/dist/api/resources/commissions/types/UpdateCommissionResponse.d.ts +0 -6
- package/dist/api/resources/customers/client/requests/CreateCustomerRequest.d.ts +0 -14
- package/dist/api/resources/customers/client/requests/UpdateCustomerRequest.d.ts +0 -18
- package/dist/api/resources/embed/client/requests/CreateEmbedTokenRequest.d.ts +0 -14
- package/dist/api/resources/links/client/requests/DeleteLinkRequest.d.ts +0 -9
- package/dist/api/resources/partners/client/requests/ApprovePartnerRequest.d.ts +0 -9
- package/dist/api/resources/partners/client/requests/CreatePartnerRequest.js +0 -8
- package/dist/api/resources/partners/client/requests/GetPartnerRequest.d.ts +0 -9
- package/dist/api/resources/programs/client/requests/GetProgramRequest.d.ts +0 -9
- package/dist/api/resources/promotionCodes/client/requests/CreatePromotionCodeRequest.d.ts +0 -13
- package/dist/api/resources/promotionCodes/client/requests/DeletePromotionCodeRequest.d.ts +0 -9
- package/dist/api/resources/promotionCodes/client/requests/GetPromotionCodeRequest.d.ts +0 -9
- package/dist/api/resources/promotionCodes/client/requests/UpdatePromotionCodeRequest.d.ts +0 -12
- package/dist/api/resources/reports/types/ReportsLinksRequestOrder.d.ts +0 -5
- package/dist/api/resources/reports/types/ReportsLinksRequestSort.d.ts +0 -7
- package/dist/api/resources/reports/types/ReportsPartnersRequestOrder.d.ts +0 -5
- package/dist/api/resources/reports/types/ReportsPartnersRequestSort.d.ts +0 -7
- package/dist/api/resources/reports/types/ReportsTimeseriesRequestGranularity.d.ts +0 -6
- package/dist/api/resources/transactions/client/requests/DeleteTransactionRequest.d.ts +0 -9
- package/dist/api/resources/transactions/client/requests/GetTransactionRequest.d.ts +0 -9
- package/dist/api/resources/transactions/client/requests/RefundTransactionRequest.d.ts +0 -9
- package/dist/api/resources/transactions/client/requests/RerunTransactionFlowsRequest.d.ts +0 -9
- package/dist/api/resources/transactions/types/UpdateTransactionResponse.d.ts +0 -6
- /package/dist/api/resources/clicks/client/requests/{GetClickRequest.js → GetClicksRequest.js} +0 -0
- /package/dist/api/resources/clicks/{types/CreateClickRequest.js → client/requests/ListClicksRequest.js} +0 -0
- /package/dist/api/resources/clicks/types/{CreateClickResponse.js → CreateClicksRequest.js} +0 -0
- /package/dist/api/resources/clicks/types/{GetClickResponse.js → CreateClicksResponse.js} +0 -0
- /package/dist/api/resources/{commissions/client/requests/ApproveCommissionRequest.js → clicks/types/GetClicksResponse.js} +0 -0
- /package/dist/api/resources/{commissions/client/requests/DeclineCommissionRequest.js → clicks/types/ListClicksResponse.js} +0 -0
- /package/dist/api/resources/commissions/client/requests/{DeleteCommissionRequest.js → ApproveCommissionsRequest.js} +0 -0
- /package/dist/api/resources/commissions/client/requests/{GetCommissionRequest.js → DeclineCommissionsRequest.js} +0 -0
- /package/dist/api/resources/commissions/client/requests/{UpdateCommissionRequest.js → DeleteCommissionsRequest.js} +0 -0
- /package/dist/api/resources/commissions/{types/ApproveCommissionResponse.js → client/requests/GetCommissionsRequest.js} +0 -0
- /package/dist/api/resources/commissions/{types/CreateCommissionRequest.js → client/requests/UpdateCommissionsRequest.js} +0 -0
- /package/dist/api/resources/commissions/types/{CreateCommissionResponse.js → ApproveCommissionsResponse.js} +0 -0
- /package/dist/api/resources/commissions/types/{DeclineCommissionResponse.js → CreateCommissionsRequest.js} +0 -0
- /package/dist/api/resources/commissions/types/{DeleteCommissionResponse.js → CreateCommissionsResponse.js} +0 -0
- /package/dist/api/resources/commissions/types/{GetCommissionResponse.js → DeclineCommissionsResponse.js} +0 -0
- /package/dist/api/resources/commissions/types/{UpdateCommissionResponse.js → DeleteCommissionsResponse.js} +0 -0
- /package/dist/api/resources/{customers/client/requests/CreateCustomerRequest.js → commissions/types/GetCommissionsResponse.js} +0 -0
- /package/dist/api/resources/{customers/client/requests/DeleteCustomerRequest.js → commissions/types/UpdateCommissionsResponse.js} +0 -0
- /package/dist/api/resources/customers/client/requests/{GetCustomerRequest.js → DeleteCustomersRequest.js} +0 -0
- /package/dist/api/resources/customers/client/requests/{UpdateCustomerRequest.js → GetCustomersRequest.js} +0 -0
- /package/dist/api/resources/customers/types/{CreateCustomerResponse.js → CreateCustomersResponse.js} +0 -0
- /package/dist/api/resources/customers/types/{DeleteCustomerResponse.js → DeleteCustomersResponse.js} +0 -0
- /package/dist/api/resources/customers/types/{GetCustomerResponse.js → GetCustomersResponse.js} +0 -0
- /package/dist/api/resources/customers/types/{UpdateCustomerResponse.js → UpdateCustomersResponse.js} +0 -0
- /package/dist/api/resources/embed/client/requests/{CreateEmbedTokenRequest.js → CreateTokenEmbedRequest.js} +0 -0
- /package/dist/api/resources/embed/types/{CreateEmbedTokenResponse.js → CreateTokenEmbedResponse.js} +0 -0
- /package/dist/api/resources/flows/client/requests/{GetFlowRequest.js → GetFlowsRequest.js} +0 -0
- /package/dist/api/resources/flows/types/{GetFlowResponse.js → GetFlowsResponse.js} +0 -0
- /package/dist/api/resources/groups/client/requests/{GetGroupRequest.js → GetGroupsRequest.js} +0 -0
- /package/dist/api/resources/groups/types/{GetGroupResponse.js → GetGroupsResponse.js} +0 -0
- /package/dist/api/resources/links/client/requests/{CreateLinkRequest.js → CreateLinksRequest.js} +0 -0
- /package/dist/api/resources/links/client/requests/{DeleteLinkRequest.js → DeleteLinksRequest.js} +0 -0
- /package/dist/api/resources/links/client/requests/{GetLinkRequest.js → GetByParamValueLinksRequest.js} +0 -0
- /package/dist/api/resources/links/client/requests/{UpdateLinkRequest.js → GetLinksRequest.js} +0 -0
- /package/dist/api/resources/links/{types/CreateLinkResponse.js → client/requests/UpdateLinksRequest.js} +0 -0
- /package/dist/api/resources/links/types/{DeleteLinkResponse.js → CreateLinksResponse.js} +0 -0
- /package/dist/api/resources/links/types/{GetLinkResponse.js → DeleteLinksResponse.js} +0 -0
- /package/dist/api/resources/links/types/{UpdateLinkResponse.js → GetByParamValueLinksResponse.js} +0 -0
- /package/dist/api/resources/{partners/client/requests/ApprovePartnerRequest.js → links/types/GetLinksResponse.js} +0 -0
- /package/dist/api/resources/{partners/client/requests/GetPartnerRequest.js → links/types/UpdateLinksResponse.js} +0 -0
- /package/dist/api/resources/partners/client/requests/{RejectPartnerRequest.js → ApprovePartnersRequest.js} +0 -0
- /package/dist/api/resources/partners/client/requests/{SuspendPartnerRequest.js → GetPartnersRequest.js} +0 -0
- /package/dist/api/resources/partners/client/requests/{UpdatePartnerRequest.js → RejectPartnersRequest.js} +0 -0
- /package/dist/api/resources/partners/{types/ApprovePartnerResponse.js → client/requests/SuspendPartnersRequest.js} +0 -0
- /package/dist/api/resources/partners/{types/CreatePartnerResponse.js → client/requests/UpdatePartnersRequest.js} +0 -0
- /package/dist/api/resources/partners/types/{GetPartnerResponse.js → ApprovePartnersResponse.js} +0 -0
- /package/dist/api/resources/partners/types/{RejectPartnerResponse.js → CreatePartnersResponse.js} +0 -0
- /package/dist/api/resources/partners/types/{SuspendPartnerResponse.js → GetPartnersResponse.js} +0 -0
- /package/dist/api/resources/partners/types/{UpdatePartnerResponse.js → RejectPartnersResponse.js} +0 -0
- /package/dist/api/resources/{programs/client/requests/GetProgramRequest.js → partners/types/SuspendPartnersResponse.js} +0 -0
- /package/dist/api/resources/{programs/types/GetProgramResponse.js → partners/types/UpdatePartnersResponse.js} +0 -0
- /package/dist/api/resources/{promotionCodes/client/requests/CreatePromotionCodeRequest.js → programs/client/requests/GetProgramsRequest.js} +0 -0
- /package/dist/api/resources/{promotionCodes/client/requests/DeletePromotionCodeRequest.js → programs/types/GetProgramsResponse.js} +0 -0
- /package/dist/api/resources/promotionCodes/client/requests/{GetPromotionCodeRequest.js → DeletePromotionCodesRequest.js} +0 -0
- /package/dist/api/resources/promotionCodes/client/requests/{UpdatePromotionCodeRequest.js → GetPromotionCodesRequest.js} +0 -0
- /package/dist/api/resources/promotionCodes/types/{CreatePromotionCodeResponse.js → CreatePromotionCodesResponse.js} +0 -0
- /package/dist/api/resources/promotionCodes/types/{DeletePromotionCodeResponse.js → DeletePromotionCodesResponse.js} +0 -0
- /package/dist/api/resources/promotionCodes/types/{GetPromotionCodeResponse.js → GetPromotionCodesResponse.js} +0 -0
- /package/dist/api/resources/promotionCodes/types/{UpdatePromotionCodeResponse.js → UpdatePromotionCodesResponse.js} +0 -0
- /package/dist/api/resources/reports/client/requests/{ReportsCustomerStatsRequest.js → CustomerStatsReportsRequest.js} +0 -0
- /package/dist/api/resources/reports/client/requests/{ReportsLinksRequest.js → LinksReportsRequest.js} +0 -0
- /package/dist/api/resources/reports/client/requests/{ReportsOverviewRequest.js → OverviewReportsRequest.js} +0 -0
- /package/dist/api/resources/reports/client/requests/{ReportsPartnersRequest.js → PartnersReportsRequest.js} +0 -0
- /package/dist/api/resources/reports/client/requests/{ReportsTimeseriesRequest.js → TimeseriesReportsRequest.js} +0 -0
- /package/dist/api/resources/reports/types/{ReportsCustomerStatsResponse.js → CustomerStatsReportsResponse.js} +0 -0
- /package/dist/api/resources/reports/types/{ReportsLinksResponse.js → LinksReportsResponse.js} +0 -0
- /package/dist/api/resources/reports/types/{ReportsOverviewResponse.js → OverviewReportsResponse.js} +0 -0
- /package/dist/api/resources/reports/types/{ReportsPartnersResponse.js → PartnersReportsResponse.js} +0 -0
- /package/dist/api/resources/reports/types/{ReportsTimeseriesResponse.js → TimeseriesReportsResponse.js} +0 -0
- /package/dist/api/resources/transactions/client/requests/{CreateTransactionRequest.js → CreateTransactionsRequest.js} +0 -0
- /package/dist/api/resources/transactions/client/requests/{DeleteTransactionRequest.js → DeleteTransactionsRequest.js} +0 -0
- /package/dist/api/resources/transactions/client/requests/{GetTransactionRequest.js → GetTransactionsRequest.js} +0 -0
- /package/dist/api/resources/transactions/client/requests/{RefundTransactionRequest.js → RefundTransactionsRequest.js} +0 -0
- /package/dist/api/resources/transactions/client/requests/{RerunTransactionFlowsRequest.js → RerunFlowsTransactionsRequest.js} +0 -0
- /package/dist/api/resources/transactions/client/requests/{UpdateTransactionRequest.js → UpdateTransactionsRequest.js} +0 -0
- /package/dist/api/resources/transactions/types/{CreateTransactionResponse.js → CreateTransactionsResponse.js} +0 -0
- /package/dist/api/resources/transactions/types/{DeleteTransactionResponse.js → DeleteTransactionsResponse.js} +0 -0
- /package/dist/api/resources/transactions/types/{GetTransactionResponse.js → GetTransactionsResponse.js} +0 -0
- /package/dist/api/resources/transactions/types/{RefundTransactionResponse.js → RefundTransactionsResponse.js} +0 -0
- /package/dist/api/resources/transactions/types/{RerunTransactionFlowsResponse.js → RerunFlowsTransactionsResponse.js} +0 -0
- /package/dist/api/resources/transactions/types/{UpdateTransactionResponse.js → UpdateTransactionsResponse.js} +0 -0
|
@@ -11,7 +11,7 @@ export class ReportsClient {
|
|
|
11
11
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* @param {ToltApi.
|
|
14
|
+
* @param {ToltApi.OverviewReportsRequest} request
|
|
15
15
|
* @param {ReportsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
16
|
*
|
|
17
17
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -74,7 +74,7 @@ export class ReportsClient {
|
|
|
74
74
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v2/reports/overview");
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
|
-
* @param {ToltApi.
|
|
77
|
+
* @param {ToltApi.PartnersReportsRequest} request
|
|
78
78
|
* @param {ReportsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
79
79
|
*
|
|
80
80
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -90,11 +90,12 @@ export class ReportsClient {
|
|
|
90
90
|
return core.HttpResponsePromise.fromPromise(this.__partners(request, requestOptions));
|
|
91
91
|
}
|
|
92
92
|
async __partners(request = {}, requestOptions) {
|
|
93
|
-
const { program_id: programId, start_date: startDate, end_date: endDate, limit, offset, sort, order } = request;
|
|
93
|
+
const { program_id: programId, start_date: startDate, end_date: endDate, currency, limit, offset, sort, order, } = request;
|
|
94
94
|
const _queryParams = {
|
|
95
95
|
program_id: programId,
|
|
96
96
|
start_date: startDate != null ? startDate : undefined,
|
|
97
97
|
end_date: endDate != null ? endDate : undefined,
|
|
98
|
+
currency,
|
|
98
99
|
limit,
|
|
99
100
|
offset,
|
|
100
101
|
sort: sort != null ? sort : undefined,
|
|
@@ -141,7 +142,7 @@ export class ReportsClient {
|
|
|
141
142
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v2/reports/partners");
|
|
142
143
|
}
|
|
143
144
|
/**
|
|
144
|
-
* @param {ToltApi.
|
|
145
|
+
* @param {ToltApi.LinksReportsRequest} request
|
|
145
146
|
* @param {ReportsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
146
147
|
*
|
|
147
148
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -157,11 +158,12 @@ export class ReportsClient {
|
|
|
157
158
|
return core.HttpResponsePromise.fromPromise(this.__links(request, requestOptions));
|
|
158
159
|
}
|
|
159
160
|
async __links(request = {}, requestOptions) {
|
|
160
|
-
const { program_id: programId, start_date: startDate, end_date: endDate, limit, offset, sort, order } = request;
|
|
161
|
+
const { program_id: programId, start_date: startDate, end_date: endDate, currency, limit, offset, sort, order, } = request;
|
|
161
162
|
const _queryParams = {
|
|
162
163
|
program_id: programId,
|
|
163
164
|
start_date: startDate != null ? startDate : undefined,
|
|
164
165
|
end_date: endDate != null ? endDate : undefined,
|
|
166
|
+
currency,
|
|
165
167
|
limit,
|
|
166
168
|
offset,
|
|
167
169
|
sort: sort != null ? sort : undefined,
|
|
@@ -208,7 +210,7 @@ export class ReportsClient {
|
|
|
208
210
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v2/reports/links");
|
|
209
211
|
}
|
|
210
212
|
/**
|
|
211
|
-
* @param {ToltApi.
|
|
213
|
+
* @param {ToltApi.TimeseriesReportsRequest} request
|
|
212
214
|
* @param {ReportsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
213
215
|
*
|
|
214
216
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -224,12 +226,13 @@ export class ReportsClient {
|
|
|
224
226
|
return core.HttpResponsePromise.fromPromise(this.__timeseries(request, requestOptions));
|
|
225
227
|
}
|
|
226
228
|
async __timeseries(request = {}, requestOptions) {
|
|
227
|
-
const { program_id: programId, start_date: startDate, end_date: endDate, granularity } = request;
|
|
229
|
+
const { program_id: programId, start_date: startDate, end_date: endDate, granularity, currency } = request;
|
|
228
230
|
const _queryParams = {
|
|
229
231
|
program_id: programId,
|
|
230
232
|
start_date: startDate != null ? startDate : undefined,
|
|
231
233
|
end_date: endDate != null ? endDate : undefined,
|
|
232
234
|
granularity: granularity != null ? granularity : undefined,
|
|
235
|
+
currency,
|
|
233
236
|
};
|
|
234
237
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
235
238
|
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
@@ -272,7 +275,7 @@ export class ReportsClient {
|
|
|
272
275
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v2/reports/timeseries");
|
|
273
276
|
}
|
|
274
277
|
/**
|
|
275
|
-
* @param {ToltApi.
|
|
278
|
+
* @param {ToltApi.CustomerStatsReportsRequest} request
|
|
276
279
|
* @param {ReportsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
277
280
|
*
|
|
278
281
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -3,12 +3,13 @@ import type * as ToltApi from "../../../../index.js";
|
|
|
3
3
|
* @example
|
|
4
4
|
* {}
|
|
5
5
|
*/
|
|
6
|
-
export interface
|
|
6
|
+
export interface LinksReportsRequest {
|
|
7
7
|
program_id?: string;
|
|
8
8
|
start_date?: string;
|
|
9
9
|
end_date?: string;
|
|
10
|
+
currency?: string;
|
|
10
11
|
limit?: number;
|
|
11
12
|
offset?: number | null;
|
|
12
|
-
sort?: ToltApi.
|
|
13
|
-
order?: ToltApi.
|
|
13
|
+
sort?: ToltApi.LinksReportsRequestSort;
|
|
14
|
+
order?: ToltApi.LinksReportsRequestOrder;
|
|
14
15
|
}
|
|
@@ -3,12 +3,13 @@ import type * as ToltApi from "../../../../index.js";
|
|
|
3
3
|
* @example
|
|
4
4
|
* {}
|
|
5
5
|
*/
|
|
6
|
-
export interface
|
|
6
|
+
export interface PartnersReportsRequest {
|
|
7
7
|
program_id?: string;
|
|
8
8
|
start_date?: string;
|
|
9
9
|
end_date?: string;
|
|
10
|
+
currency?: string;
|
|
10
11
|
limit?: number;
|
|
11
12
|
offset?: number | null;
|
|
12
|
-
sort?: ToltApi.
|
|
13
|
-
order?: ToltApi.
|
|
13
|
+
sort?: ToltApi.PartnersReportsRequestSort;
|
|
14
|
+
order?: ToltApi.PartnersReportsRequestOrder;
|
|
14
15
|
}
|
|
@@ -3,9 +3,10 @@ import type * as ToltApi from "../../../../index.js";
|
|
|
3
3
|
* @example
|
|
4
4
|
* {}
|
|
5
5
|
*/
|
|
6
|
-
export interface
|
|
6
|
+
export interface TimeseriesReportsRequest {
|
|
7
7
|
program_id?: string;
|
|
8
8
|
start_date?: string;
|
|
9
9
|
end_date?: string;
|
|
10
|
-
granularity?: ToltApi.
|
|
10
|
+
granularity?: ToltApi.TimeseriesReportsRequestGranularity;
|
|
11
|
+
currency?: string;
|
|
11
12
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type {
|
|
2
|
-
export type {
|
|
3
|
-
export type {
|
|
4
|
-
export type {
|
|
5
|
-
export type {
|
|
1
|
+
export type { CustomerStatsReportsRequest } from "./CustomerStatsReportsRequest.js";
|
|
2
|
+
export type { LinksReportsRequest } from "./LinksReportsRequest.js";
|
|
3
|
+
export type { OverviewReportsRequest } from "./OverviewReportsRequest.js";
|
|
4
|
+
export type { PartnersReportsRequest } from "./PartnersReportsRequest.js";
|
|
5
|
+
export type { TimeseriesReportsRequest } from "./TimeseriesReportsRequest.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const LinksReportsRequestSort: {
|
|
2
|
+
readonly Revenue: "revenue";
|
|
3
|
+
readonly Commissions: "commissions";
|
|
4
|
+
readonly Clicks: "clicks";
|
|
5
|
+
readonly Customers: "customers";
|
|
6
|
+
};
|
|
7
|
+
export type LinksReportsRequestSort = (typeof LinksReportsRequestSort)[keyof typeof LinksReportsRequestSort];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const PartnersReportsRequestSort: {
|
|
2
|
+
readonly Revenue: "revenue";
|
|
3
|
+
readonly Commissions: "commissions";
|
|
4
|
+
readonly Clicks: "clicks";
|
|
5
|
+
readonly Customers: "customers";
|
|
6
|
+
};
|
|
7
|
+
export type PartnersReportsRequestSort = (typeof PartnersReportsRequestSort)[keyof typeof PartnersReportsRequestSort];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const TimeseriesReportsRequestGranularity: {
|
|
2
|
+
readonly Day: "day";
|
|
3
|
+
readonly Week: "week";
|
|
4
|
+
readonly Month: "month";
|
|
5
|
+
};
|
|
6
|
+
export type TimeseriesReportsRequestGranularity = (typeof TimeseriesReportsRequestGranularity)[keyof typeof TimeseriesReportsRequestGranularity];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./
|
|
1
|
+
export * from "./CustomerStatsReportsResponse.js";
|
|
2
|
+
export * from "./LinksReportsRequestOrder.js";
|
|
3
|
+
export * from "./LinksReportsRequestSort.js";
|
|
4
|
+
export * from "./LinksReportsResponse.js";
|
|
5
|
+
export * from "./OverviewReportsResponse.js";
|
|
6
|
+
export * from "./PartnersReportsRequestOrder.js";
|
|
7
|
+
export * from "./PartnersReportsRequestSort.js";
|
|
8
|
+
export * from "./PartnersReportsResponse.js";
|
|
9
|
+
export * from "./TimeseriesReportsRequestGranularity.js";
|
|
10
|
+
export * from "./TimeseriesReportsResponse.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./
|
|
1
|
+
export * from "./CustomerStatsReportsResponse.js";
|
|
2
|
+
export * from "./LinksReportsRequestOrder.js";
|
|
3
|
+
export * from "./LinksReportsRequestSort.js";
|
|
4
|
+
export * from "./LinksReportsResponse.js";
|
|
5
|
+
export * from "./OverviewReportsResponse.js";
|
|
6
|
+
export * from "./PartnersReportsRequestOrder.js";
|
|
7
|
+
export * from "./PartnersReportsRequestSort.js";
|
|
8
|
+
export * from "./PartnersReportsResponse.js";
|
|
9
|
+
export * from "./TimeseriesReportsRequestGranularity.js";
|
|
10
|
+
export * from "./TimeseriesReportsResponse.js";
|
|
@@ -21,12 +21,14 @@ export declare class TransactionsClient {
|
|
|
21
21
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
|
-
* await client.transactions.
|
|
24
|
+
* await client.transactions.list()
|
|
25
25
|
*/
|
|
26
|
-
|
|
27
|
-
private
|
|
26
|
+
list(request?: ToltApi.ListTransactionsRequest, requestOptions?: TransactionsClient.RequestOptions): core.HttpResponsePromise<ToltApi.ListTransactionsResponse>;
|
|
27
|
+
private __list;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Supports historical created_at values. product_id and product_name are stored and returned in product_ids and product_names arrays.
|
|
30
|
+
*
|
|
31
|
+
* @param {ToltApi.CreateTransactionsRequest} request
|
|
30
32
|
* @param {TransactionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
33
|
*
|
|
32
34
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -36,15 +38,15 @@ export declare class TransactionsClient {
|
|
|
36
38
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
37
39
|
*
|
|
38
40
|
* @example
|
|
39
|
-
* await client.transactions.
|
|
41
|
+
* await client.transactions.create({
|
|
40
42
|
* amount: 1,
|
|
41
43
|
* customer_id: "customer_id"
|
|
42
44
|
* })
|
|
43
45
|
*/
|
|
44
|
-
|
|
45
|
-
private
|
|
46
|
+
create(request: ToltApi.CreateTransactionsRequest, requestOptions?: TransactionsClient.RequestOptions): core.HttpResponsePromise<ToltApi.CreateTransactionsResponse>;
|
|
47
|
+
private __create;
|
|
46
48
|
/**
|
|
47
|
-
* @param {ToltApi.
|
|
49
|
+
* @param {ToltApi.GetTransactionsRequest} request
|
|
48
50
|
* @param {TransactionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
49
51
|
*
|
|
50
52
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
@@ -54,14 +56,14 @@ export declare class TransactionsClient {
|
|
|
54
56
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
55
57
|
*
|
|
56
58
|
* @example
|
|
57
|
-
* await client.transactions.
|
|
59
|
+
* await client.transactions.get({
|
|
58
60
|
* id: "id"
|
|
59
61
|
* })
|
|
60
62
|
*/
|
|
61
|
-
|
|
62
|
-
private
|
|
63
|
+
get(request: ToltApi.GetTransactionsRequest, requestOptions?: TransactionsClient.RequestOptions): core.HttpResponsePromise<ToltApi.GetTransactionsResponse>;
|
|
64
|
+
private __get;
|
|
63
65
|
/**
|
|
64
|
-
* @param {ToltApi.
|
|
66
|
+
* @param {ToltApi.UpdateTransactionsRequest} request
|
|
65
67
|
* @param {TransactionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
68
|
*
|
|
67
69
|
* @throws {@link ToltApi.BadRequestError}
|
|
@@ -73,14 +75,14 @@ export declare class TransactionsClient {
|
|
|
73
75
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
74
76
|
*
|
|
75
77
|
* @example
|
|
76
|
-
* await client.transactions.
|
|
78
|
+
* await client.transactions.update({
|
|
77
79
|
* id: "id"
|
|
78
80
|
* })
|
|
79
81
|
*/
|
|
80
|
-
|
|
81
|
-
private
|
|
82
|
+
update(request: ToltApi.UpdateTransactionsRequest, requestOptions?: TransactionsClient.RequestOptions): core.HttpResponsePromise<ToltApi.UpdateTransactionsResponse>;
|
|
83
|
+
private __update;
|
|
82
84
|
/**
|
|
83
|
-
* @param {ToltApi.
|
|
85
|
+
* @param {ToltApi.DeleteTransactionsRequest} request
|
|
84
86
|
* @param {TransactionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
85
87
|
*
|
|
86
88
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
@@ -91,14 +93,16 @@ export declare class TransactionsClient {
|
|
|
91
93
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
92
94
|
*
|
|
93
95
|
* @example
|
|
94
|
-
* await client.transactions.
|
|
96
|
+
* await client.transactions.delete({
|
|
95
97
|
* id: "id"
|
|
96
98
|
* })
|
|
97
99
|
*/
|
|
98
|
-
|
|
99
|
-
private
|
|
100
|
+
delete(request: ToltApi.DeleteTransactionsRequest, requestOptions?: TransactionsClient.RequestOptions): core.HttpResponsePromise<ToltApi.DeleteTransactionsResponse>;
|
|
101
|
+
private __delete;
|
|
100
102
|
/**
|
|
101
|
-
*
|
|
103
|
+
* Unpaid commissions are zeroed while preserving their original deducted commission amount, and affected draft invoices are recalculated. Paid commissions and commissions linked to legacy autopayout invoices receive a negative reversal.
|
|
104
|
+
*
|
|
105
|
+
* @param {ToltApi.RefundTransactionsRequest} request
|
|
102
106
|
* @param {TransactionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
103
107
|
*
|
|
104
108
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
@@ -109,16 +113,16 @@ export declare class TransactionsClient {
|
|
|
109
113
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
110
114
|
*
|
|
111
115
|
* @example
|
|
112
|
-
* await client.transactions.
|
|
116
|
+
* await client.transactions.refund({
|
|
113
117
|
* id: "id"
|
|
114
118
|
* })
|
|
115
119
|
*/
|
|
116
|
-
|
|
117
|
-
private
|
|
120
|
+
refund(request: ToltApi.RefundTransactionsRequest, requestOptions?: TransactionsClient.RequestOptions): core.HttpResponsePromise<ToltApi.RefundTransactionsResponse>;
|
|
121
|
+
private __refund;
|
|
118
122
|
/**
|
|
119
123
|
* Re-queues the transaction for asynchronous flow processing. Only transactions without an existing commission are eligible, so a rerun cannot create a duplicate commission.
|
|
120
124
|
*
|
|
121
|
-
* @param {ToltApi.
|
|
125
|
+
* @param {ToltApi.RerunFlowsTransactionsRequest} request
|
|
122
126
|
* @param {TransactionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
123
127
|
*
|
|
124
128
|
* @throws {@link ToltApi.UnauthorizedError}
|
|
@@ -129,10 +133,10 @@ export declare class TransactionsClient {
|
|
|
129
133
|
* @throws {@link errors.ToltApiTimeoutError}
|
|
130
134
|
*
|
|
131
135
|
* @example
|
|
132
|
-
* await client.transactions.
|
|
136
|
+
* await client.transactions.rerunFlows({
|
|
133
137
|
* id: "id"
|
|
134
138
|
* })
|
|
135
139
|
*/
|
|
136
|
-
|
|
137
|
-
private
|
|
140
|
+
rerunFlows(request: ToltApi.RerunFlowsTransactionsRequest, requestOptions?: TransactionsClient.RequestOptions): core.HttpResponsePromise<ToltApi.RerunFlowsTransactionsResponse>;
|
|
141
|
+
private __rerunFlows;
|
|
138
142
|
}
|