tremendous 4.14.0 → 4.15.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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +11 -0
- package/dist/api.d.ts +1431 -1295
- package/dist/api.js +434 -212
- package/package.json +2 -2
package/dist/api.js
CHANGED
|
@@ -25,11 +25,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TopupsApi = void 0;
|
|
28
|
+
exports.FraudRulesListItemRuleTypeEnum = exports.FraudRuleType = exports.FraudRuleRequestConfigPeriodEnum = exports.FraudRuleRequestConfigTypeEnum = exports.FraudReviewStatus = exports.FraudReviewRisk = exports.FraudReviewRedemptionMethod = exports.FraudReviewReason = exports.FraudReviewListItemRedemptionMethodEnum = exports.FraudReviewListItemReasonsEnum = exports.FraudReviewListItemStatusEnum = exports.FraudReviewBaseRedemptionMethodEnum = exports.FraudReviewBaseReasonsEnum = exports.FraudReviewBaseStatusEnum = exports.FraudReviewRiskEnum = exports.FraudReviewRedemptionMethodEnum = exports.FraudReviewReasonsEnum = exports.FraudReviewStatusEnum = exports.FraudConfigRedeemedRewardsCountPeriodEnum = exports.FraudConfigRedeemedRewardsAmountPeriodEnum = exports.FraudConfigCountryTypeEnum = exports.FieldDataTypeEnum = exports.DeliveryStatus = exports.DeliveryMethod = exports.DeliveryDetailsWithLinkStatusEnum = exports.DeliveryDetailsWithLinkMethodEnum = exports.DeliveryDetailsStatusEnum = exports.DeliveryDetailsMethodEnum = exports.CurrencyCodes = exports.CreateReportRequestFiltersDigitalRewardsStatusEnum = exports.CreateReportRequestFiltersDigitalRewardsOrderStatusEnum = exports.CreateReportRequestFiltersDigitalRewardsDeliveryMethodEnum = exports.CreateReportRequestFormatEnum = exports.CreateReportRequestReportTypeEnum = exports.CreateReport200ResponseReportStatusEnum = exports.CreateOrder200ResponseOrderRewardsInnerDeliveryStatusEnum = exports.CreateOrder200ResponseOrderRewardsInnerDeliveryMethodEnum = exports.CreateOrder200ResponseOrderChannelEnum = exports.CreateOrder200ResponseOrderStatusEnum = exports.CreateInvoiceRequestCurrencyEnum = exports.CreateInvoiceRequestCurrencyCodeEnum = exports.CreateFieldRequestDataTypeEnum = exports.CreateFieldDataTypeEnum = exports.CreateCampaignRequestFeeChargedToEnum = exports.CreateApiKeyRequestPermissionEnum = exports.ConnectedOrganizationOrganizationStatusEnum = exports.ConnectedOrganizationMemberMemberStatusEnum = exports.Channel = exports.CampaignBaseFeeChargedToEnum = exports.CampaignFeeChargedToEnum = void 0;
|
|
29
|
+
exports.OrderStatus = exports.OrderBaseChannelEnum = exports.OrderBaseStatusEnum = exports.OrderChannelEnum = exports.OrderStatusEnum = exports.MemberWithoutEventsStatusEnum = exports.MemberWithEventsStatusEnum = exports.MemberBaseStatusEnum = exports.MemberStatusEnum = exports.ListRewards200ResponseRewardsInnerValueCurrencyCodeEnum = exports.ListRewards200ResponseRewardsInnerDeliveryStatusEnum = exports.ListRewards200ResponseRewardsInnerDeliveryMethodEnum = exports.ListProductsResponseProductsInnerImagesInnerTypeEnum = exports.ListProductsResponseProductsInnerCurrencyCodesEnum = exports.ListProductsResponseProductsInnerSubcategoryEnum = exports.ListProductsResponseProductsInnerCategoryEnum = exports.ListOrganizations200ResponseOrganizationsInnerStatusEnum = exports.ListOrders200ResponseOrdersInnerChannelEnum = exports.ListOrders200ResponseOrdersInnerStatusEnum = exports.ListMembers200ResponseMembersInnerStatusEnum = exports.ListInvoices200ResponseInvoicesInnerStatusEnum = exports.ListInvoices200ResponseInvoicesInnerCurrencyEnum = exports.ListInvoices200ResponseInvoicesInnerCurrencyCodeEnum = exports.ListFundingSources200ResponseFundingSourcesInnerMetaNetworkEnum = exports.ListFundingSources200ResponseFundingSourcesInnerMetaAccountTypeEnum = exports.ListFundingSources200ResponseFundingSourcesInnerTypeEnum = exports.ListFundingSources200ResponseFundingSourcesInnerStatusEnum = exports.ListFundingSources200ResponseFundingSourcesInnerUsagePermissionsEnum = exports.ListFundingSources200ResponseFundingSourcesInnerMethodEnum = exports.ListFraudRules200ResponseFraudRulesInnerRuleTypeEnum = exports.ListFraudReviews200ResponseFraudReviewsInnerRedemptionMethodEnum = exports.ListFraudReviews200ResponseFraudReviewsInnerReasonsEnum = exports.ListFraudReviews200ResponseFraudReviewsInnerStatusEnum = exports.ListFields200ResponseFieldsInnerDataTypeEnum = exports.ListConnectedOrganizations200ResponseConnectedOrganizationsInnerOrganizationStatusEnum = exports.ListConnectedOrganizationMembers200ResponseConnectedOrganizationMembersInnerMemberStatusEnum = exports.ListCampaigns200ResponseCampaignsInnerFeeChargedToEnum = exports.InvoiceStatusEnum = exports.InvoiceCurrencyEnum = exports.InvoiceCurrencyCodeEnum = exports.GetMember200ResponseMemberEventsInnerTypeEnum = exports.GetMember200ResponseMemberStatusEnum = exports.GetFraudReview200ResponseFraudReviewRiskEnum = exports.GetFraudReview200ResponseFraudReviewRedemptionMethodEnum = exports.GetFraudReview200ResponseFraudReviewReasonsEnum = exports.GetFraudReview200ResponseFraudReviewStatusEnum = exports.FundingSourceTypeEnum = exports.FundingSourceStatusEnum = exports.FundingSourceUsagePermissionsEnum = exports.FundingSourceMethodEnum = void 0;
|
|
30
|
+
exports.ForexApi = exports.ForexApiFactory = exports.ForexApiFp = exports.ForexApiAxiosParamCreator = exports.FieldsApi = exports.FieldsApiFactory = exports.FieldsApiFp = exports.FieldsApiAxiosParamCreator = exports.ConnectedOrganizationsApi = exports.ConnectedOrganizationsApiFactory = exports.ConnectedOrganizationsApiFp = exports.ConnectedOrganizationsApiAxiosParamCreator = exports.ConnectedOrganizationMembersApi = exports.ConnectedOrganizationMembersApiFactory = exports.ConnectedOrganizationMembersApiFp = exports.ConnectedOrganizationMembersApiAxiosParamCreator = exports.CampaignsApi = exports.CampaignsApiFactory = exports.CampaignsApiFp = exports.CampaignsApiAxiosParamCreator = exports.BalanceTransactionsApi = exports.BalanceTransactionsApiFactory = exports.BalanceTransactionsApiFp = exports.BalanceTransactionsApiAxiosParamCreator = exports.UpdateFraudRuleListRequestOperationEnum = exports.UpdateCampaignRequestFeeChargedToEnum = exports.UpdateCampaignFeeChargedToEnum = exports.SingleRewardOrderWithoutLinkOrderChannelEnum = exports.SingleRewardOrderWithoutLinkOrderStatusEnum = exports.SingleRewardOrderWithLinkOrderChannelEnum = exports.SingleRewardOrderWithLinkOrderStatusEnum = exports.SingleRewardOrderRewardDeliveryMethodEnum = exports.RewardWithoutLinkDeliveryStatusEnum = exports.RewardWithoutLinkDeliveryMethodEnum = exports.RewardWithLinkDeliveryStatusEnum = exports.RewardWithLinkDeliveryMethodEnum = exports.RewardValueCurrencyCodeEnum = exports.ReviewRedeemedRewardsCountPeriodEnum = exports.ReviewRedeemedRewardsAmountPeriodEnum = exports.ReviewCountryTypeEnum = exports.ReportStatusEnum = exports.ProductCurrencyCodesEnum = exports.ProductSubcategoryEnum = exports.ProductCategoryEnum = exports.PayoutStatusEnum = exports.OrganizationStatusEnum = exports.OrderWithoutLinkChannelEnum = exports.OrderWithoutLinkStatusEnum = exports.OrderWithLinkChannelEnum = exports.OrderWithLinkStatusEnum = void 0;
|
|
31
|
+
exports.TopupsApiFp = exports.TopupsApiAxiosParamCreator = exports.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = exports.RewardsApi = exports.RewardsApiFactory = exports.RewardsApiFp = exports.RewardsApiAxiosParamCreator = exports.ReportsApi = exports.ReportsApiFactory = exports.ReportsApiFp = exports.ReportsApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.InvoicesApi = exports.InvoicesApiFactory = exports.InvoicesApiFp = exports.InvoicesApiAxiosParamCreator = exports.FundingSourcesApi = exports.FundingSourcesApiFactory = exports.FundingSourcesApiFp = exports.FundingSourcesApiAxiosParamCreator = exports.UpdateFraudRuleListRuleTypeEnum = exports.FraudRuleRuleTypeEnum = exports.DeleteFraudRuleRuleTypeEnum = exports.FraudRulesApi = exports.FraudRulesApiFactory = exports.FraudRulesApiFp = exports.FraudRulesApiAxiosParamCreator = exports.ListFraudReviewsStatusEnum = exports.FraudReviewsApi = exports.FraudReviewsApiFactory = exports.FraudReviewsApiFp = exports.FraudReviewsApiAxiosParamCreator = void 0;
|
|
32
|
+
exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TopupsApi = exports.TopupsApiFactory = void 0;
|
|
33
33
|
const axios_1 = __importDefault(require("axios"));
|
|
34
34
|
// Some imports not used depending on template conditions
|
|
35
35
|
// @ts-ignore
|
|
@@ -68,6 +68,10 @@ exports.ConnectedOrganizationOrganizationStatusEnum = {
|
|
|
68
68
|
Approved: 'APPROVED',
|
|
69
69
|
Rejected: 'REJECTED'
|
|
70
70
|
};
|
|
71
|
+
exports.CreateApiKeyRequestPermissionEnum = {
|
|
72
|
+
ReadWrite: 'read_write',
|
|
73
|
+
ReadOnly: 'read_only'
|
|
74
|
+
};
|
|
71
75
|
exports.CreateCampaignRequestFeeChargedToEnum = {
|
|
72
76
|
Sender: 'SENDER',
|
|
73
77
|
Recipient: 'RECIPIENT'
|
|
@@ -1661,10 +1665,11 @@ const BalanceTransactionsApiFp = function (configuration) {
|
|
|
1661
1665
|
*/
|
|
1662
1666
|
listBalanceTransactions(offset, limit, createdAtGte, createdAtLte, options) {
|
|
1663
1667
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1664
|
-
var _a, _b
|
|
1668
|
+
var _a, _b;
|
|
1669
|
+
var _c;
|
|
1665
1670
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.listBalanceTransactions(offset, limit, createdAtGte, createdAtLte, options);
|
|
1666
|
-
const localVarOperationServerIndex = (
|
|
1667
|
-
const localVarOperationServerBasePath = (
|
|
1671
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
1672
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['BalanceTransactionsApi.listBalanceTransactions']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1668
1673
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1669
1674
|
});
|
|
1670
1675
|
},
|
|
@@ -1872,10 +1877,11 @@ const CampaignsApiFp = function (configuration) {
|
|
|
1872
1877
|
*/
|
|
1873
1878
|
createCampaign(createCampaignRequest, options) {
|
|
1874
1879
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1875
|
-
var _a, _b
|
|
1880
|
+
var _a, _b;
|
|
1881
|
+
var _c;
|
|
1876
1882
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCampaign(createCampaignRequest, options);
|
|
1877
|
-
const localVarOperationServerIndex = (
|
|
1878
|
-
const localVarOperationServerBasePath = (
|
|
1883
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
1884
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['CampaignsApi.createCampaign']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1879
1885
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1880
1886
|
});
|
|
1881
1887
|
},
|
|
@@ -1888,10 +1894,11 @@ const CampaignsApiFp = function (configuration) {
|
|
|
1888
1894
|
*/
|
|
1889
1895
|
getCampaign(id, options) {
|
|
1890
1896
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1891
|
-
var _a, _b
|
|
1897
|
+
var _a, _b;
|
|
1898
|
+
var _c;
|
|
1892
1899
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCampaign(id, options);
|
|
1893
|
-
const localVarOperationServerIndex = (
|
|
1894
|
-
const localVarOperationServerBasePath = (
|
|
1900
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
1901
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['CampaignsApi.getCampaign']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1895
1902
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1896
1903
|
});
|
|
1897
1904
|
},
|
|
@@ -1903,10 +1910,11 @@ const CampaignsApiFp = function (configuration) {
|
|
|
1903
1910
|
*/
|
|
1904
1911
|
listCampaigns(options) {
|
|
1905
1912
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1906
|
-
var _a, _b
|
|
1913
|
+
var _a, _b;
|
|
1914
|
+
var _c;
|
|
1907
1915
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCampaigns(options);
|
|
1908
|
-
const localVarOperationServerIndex = (
|
|
1909
|
-
const localVarOperationServerBasePath = (
|
|
1916
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
1917
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['CampaignsApi.listCampaigns']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1910
1918
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1911
1919
|
});
|
|
1912
1920
|
},
|
|
@@ -1920,10 +1928,11 @@ const CampaignsApiFp = function (configuration) {
|
|
|
1920
1928
|
*/
|
|
1921
1929
|
updateCampaign(id, updateCampaignRequest, options) {
|
|
1922
1930
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1923
|
-
var _a, _b
|
|
1931
|
+
var _a, _b;
|
|
1932
|
+
var _c;
|
|
1924
1933
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCampaign(id, updateCampaignRequest, options);
|
|
1925
|
-
const localVarOperationServerIndex = (
|
|
1926
|
-
const localVarOperationServerBasePath = (
|
|
1934
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
1935
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['CampaignsApi.updateCampaign']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
1927
1936
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1928
1937
|
});
|
|
1929
1938
|
},
|
|
@@ -2234,10 +2243,11 @@ const ConnectedOrganizationMembersApiFp = function (configuration) {
|
|
|
2234
2243
|
*/
|
|
2235
2244
|
createConnectedOrganizationMember(createConnectedOrganizationMemberRequest, options) {
|
|
2236
2245
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2237
|
-
var _a, _b
|
|
2246
|
+
var _a, _b;
|
|
2247
|
+
var _c;
|
|
2238
2248
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createConnectedOrganizationMember(createConnectedOrganizationMemberRequest, options);
|
|
2239
|
-
const localVarOperationServerIndex = (
|
|
2240
|
-
const localVarOperationServerBasePath = (
|
|
2249
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
2250
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ConnectedOrganizationMembersApi.createConnectedOrganizationMember']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2241
2251
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2242
2252
|
});
|
|
2243
2253
|
},
|
|
@@ -2251,10 +2261,11 @@ const ConnectedOrganizationMembersApiFp = function (configuration) {
|
|
|
2251
2261
|
*/
|
|
2252
2262
|
createConnectedOrganizationMemberSession(id, createConnectedOrganizationMemberSessionRequest, options) {
|
|
2253
2263
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2254
|
-
var _a, _b
|
|
2264
|
+
var _a, _b;
|
|
2265
|
+
var _c;
|
|
2255
2266
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createConnectedOrganizationMemberSession(id, createConnectedOrganizationMemberSessionRequest, options);
|
|
2256
|
-
const localVarOperationServerIndex = (
|
|
2257
|
-
const localVarOperationServerBasePath = (
|
|
2267
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
2268
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ConnectedOrganizationMembersApi.createConnectedOrganizationMemberSession']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2258
2269
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2259
2270
|
});
|
|
2260
2271
|
},
|
|
@@ -2267,10 +2278,11 @@ const ConnectedOrganizationMembersApiFp = function (configuration) {
|
|
|
2267
2278
|
*/
|
|
2268
2279
|
deleteConnectedOrganizationMember(id, options) {
|
|
2269
2280
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2270
|
-
var _a, _b
|
|
2281
|
+
var _a, _b;
|
|
2282
|
+
var _c;
|
|
2271
2283
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteConnectedOrganizationMember(id, options);
|
|
2272
|
-
const localVarOperationServerIndex = (
|
|
2273
|
-
const localVarOperationServerBasePath = (
|
|
2284
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
2285
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ConnectedOrganizationMembersApi.deleteConnectedOrganizationMember']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2274
2286
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2275
2287
|
});
|
|
2276
2288
|
},
|
|
@@ -2283,10 +2295,11 @@ const ConnectedOrganizationMembersApiFp = function (configuration) {
|
|
|
2283
2295
|
*/
|
|
2284
2296
|
getConnectedOrganizationMember(id, options) {
|
|
2285
2297
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2286
|
-
var _a, _b
|
|
2298
|
+
var _a, _b;
|
|
2299
|
+
var _c;
|
|
2287
2300
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getConnectedOrganizationMember(id, options);
|
|
2288
|
-
const localVarOperationServerIndex = (
|
|
2289
|
-
const localVarOperationServerBasePath = (
|
|
2301
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
2302
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ConnectedOrganizationMembersApi.getConnectedOrganizationMember']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2290
2303
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2291
2304
|
});
|
|
2292
2305
|
},
|
|
@@ -2301,10 +2314,11 @@ const ConnectedOrganizationMembersApiFp = function (configuration) {
|
|
|
2301
2314
|
*/
|
|
2302
2315
|
listConnectedOrganizationMembers(connectedOrganizationId, offset, limit, options) {
|
|
2303
2316
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2304
|
-
var _a, _b
|
|
2317
|
+
var _a, _b;
|
|
2318
|
+
var _c;
|
|
2305
2319
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.listConnectedOrganizationMembers(connectedOrganizationId, offset, limit, options);
|
|
2306
|
-
const localVarOperationServerIndex = (
|
|
2307
|
-
const localVarOperationServerBasePath = (
|
|
2320
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
2321
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ConnectedOrganizationMembersApi.listConnectedOrganizationMembers']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2308
2322
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2309
2323
|
});
|
|
2310
2324
|
},
|
|
@@ -2599,10 +2613,11 @@ const ConnectedOrganizationsApiFp = function (configuration) {
|
|
|
2599
2613
|
*/
|
|
2600
2614
|
createConnectedOrganization(createConnectedOrganizationRequest, options) {
|
|
2601
2615
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2602
|
-
var _a, _b
|
|
2616
|
+
var _a, _b;
|
|
2617
|
+
var _c;
|
|
2603
2618
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createConnectedOrganization(createConnectedOrganizationRequest, options);
|
|
2604
|
-
const localVarOperationServerIndex = (
|
|
2605
|
-
const localVarOperationServerBasePath = (
|
|
2619
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
2620
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ConnectedOrganizationsApi.createConnectedOrganization']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2606
2621
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2607
2622
|
});
|
|
2608
2623
|
},
|
|
@@ -2615,10 +2630,11 @@ const ConnectedOrganizationsApiFp = function (configuration) {
|
|
|
2615
2630
|
*/
|
|
2616
2631
|
deleteConnectedOrganization(id, options) {
|
|
2617
2632
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2618
|
-
var _a, _b
|
|
2633
|
+
var _a, _b;
|
|
2634
|
+
var _c;
|
|
2619
2635
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteConnectedOrganization(id, options);
|
|
2620
|
-
const localVarOperationServerIndex = (
|
|
2621
|
-
const localVarOperationServerBasePath = (
|
|
2636
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
2637
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ConnectedOrganizationsApi.deleteConnectedOrganization']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2622
2638
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2623
2639
|
});
|
|
2624
2640
|
},
|
|
@@ -2631,10 +2647,11 @@ const ConnectedOrganizationsApiFp = function (configuration) {
|
|
|
2631
2647
|
*/
|
|
2632
2648
|
getConnectedOrganization(id, options) {
|
|
2633
2649
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2634
|
-
var _a, _b
|
|
2650
|
+
var _a, _b;
|
|
2651
|
+
var _c;
|
|
2635
2652
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getConnectedOrganization(id, options);
|
|
2636
|
-
const localVarOperationServerIndex = (
|
|
2637
|
-
const localVarOperationServerBasePath = (
|
|
2653
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
2654
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ConnectedOrganizationsApi.getConnectedOrganization']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2638
2655
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2639
2656
|
});
|
|
2640
2657
|
},
|
|
@@ -2648,10 +2665,11 @@ const ConnectedOrganizationsApiFp = function (configuration) {
|
|
|
2648
2665
|
*/
|
|
2649
2666
|
listConnectedOrganizations(offset, limit, options) {
|
|
2650
2667
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2651
|
-
var _a, _b
|
|
2668
|
+
var _a, _b;
|
|
2669
|
+
var _c;
|
|
2652
2670
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.listConnectedOrganizations(offset, limit, options);
|
|
2653
|
-
const localVarOperationServerIndex = (
|
|
2654
|
-
const localVarOperationServerBasePath = (
|
|
2671
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
2672
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ConnectedOrganizationsApi.listConnectedOrganizations']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2655
2673
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2656
2674
|
});
|
|
2657
2675
|
},
|
|
@@ -2849,10 +2867,11 @@ const FieldsApiFp = function (configuration) {
|
|
|
2849
2867
|
*/
|
|
2850
2868
|
createField(createFieldRequest, options) {
|
|
2851
2869
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2852
|
-
var _a, _b
|
|
2870
|
+
var _a, _b;
|
|
2871
|
+
var _c;
|
|
2853
2872
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createField(createFieldRequest, options);
|
|
2854
|
-
const localVarOperationServerIndex = (
|
|
2855
|
-
const localVarOperationServerBasePath = (
|
|
2873
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
2874
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['FieldsApi.createField']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2856
2875
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2857
2876
|
});
|
|
2858
2877
|
},
|
|
@@ -2864,10 +2883,11 @@ const FieldsApiFp = function (configuration) {
|
|
|
2864
2883
|
*/
|
|
2865
2884
|
listFields(options) {
|
|
2866
2885
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2867
|
-
var _a, _b
|
|
2886
|
+
var _a, _b;
|
|
2887
|
+
var _c;
|
|
2868
2888
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.listFields(options);
|
|
2869
|
-
const localVarOperationServerIndex = (
|
|
2870
|
-
const localVarOperationServerBasePath = (
|
|
2889
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
2890
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['FieldsApi.listFields']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2871
2891
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2872
2892
|
});
|
|
2873
2893
|
},
|
|
@@ -2990,10 +3010,11 @@ const ForexApiFp = function (configuration) {
|
|
|
2990
3010
|
*/
|
|
2991
3011
|
listForex(base, options) {
|
|
2992
3012
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2993
|
-
var _a, _b
|
|
3013
|
+
var _a, _b;
|
|
3014
|
+
var _c;
|
|
2994
3015
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.listForex(base, options);
|
|
2995
|
-
const localVarOperationServerIndex = (
|
|
2996
|
-
const localVarOperationServerBasePath = (
|
|
3016
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
3017
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ForexApi.listForex']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
2997
3018
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2998
3019
|
});
|
|
2999
3020
|
},
|
|
@@ -3217,10 +3238,11 @@ const FraudReviewsApiFp = function (configuration) {
|
|
|
3217
3238
|
*/
|
|
3218
3239
|
blockFraudReview(id, options) {
|
|
3219
3240
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3220
|
-
var _a, _b
|
|
3241
|
+
var _a, _b;
|
|
3242
|
+
var _c;
|
|
3221
3243
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.blockFraudReview(id, options);
|
|
3222
|
-
const localVarOperationServerIndex = (
|
|
3223
|
-
const localVarOperationServerBasePath = (
|
|
3244
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
3245
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['FraudReviewsApi.blockFraudReview']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3224
3246
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3225
3247
|
});
|
|
3226
3248
|
},
|
|
@@ -3233,10 +3255,11 @@ const FraudReviewsApiFp = function (configuration) {
|
|
|
3233
3255
|
*/
|
|
3234
3256
|
getFraudReview(id, options) {
|
|
3235
3257
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3236
|
-
var _a, _b
|
|
3258
|
+
var _a, _b;
|
|
3259
|
+
var _c;
|
|
3237
3260
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFraudReview(id, options);
|
|
3238
|
-
const localVarOperationServerIndex = (
|
|
3239
|
-
const localVarOperationServerBasePath = (
|
|
3261
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
3262
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['FraudReviewsApi.getFraudReview']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3240
3263
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3241
3264
|
});
|
|
3242
3265
|
},
|
|
@@ -3255,10 +3278,11 @@ const FraudReviewsApiFp = function (configuration) {
|
|
|
3255
3278
|
*/
|
|
3256
3279
|
listFraudReviews(offset, limit, status, createdAtGte, createdAtLte, redeemedAtGte, redeemedAtLte, options) {
|
|
3257
3280
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3258
|
-
var _a, _b
|
|
3281
|
+
var _a, _b;
|
|
3282
|
+
var _c;
|
|
3259
3283
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.listFraudReviews(offset, limit, status, createdAtGte, createdAtLte, redeemedAtGte, redeemedAtLte, options);
|
|
3260
|
-
const localVarOperationServerIndex = (
|
|
3261
|
-
const localVarOperationServerBasePath = (
|
|
3284
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
3285
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['FraudReviewsApi.listFraudReviews']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3262
3286
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3263
3287
|
});
|
|
3264
3288
|
},
|
|
@@ -3271,10 +3295,11 @@ const FraudReviewsApiFp = function (configuration) {
|
|
|
3271
3295
|
*/
|
|
3272
3296
|
releaseFraudReview(id, options) {
|
|
3273
3297
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3274
|
-
var _a, _b
|
|
3298
|
+
var _a, _b;
|
|
3299
|
+
var _c;
|
|
3275
3300
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.releaseFraudReview(id, options);
|
|
3276
|
-
const localVarOperationServerIndex = (
|
|
3277
|
-
const localVarOperationServerBasePath = (
|
|
3301
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
3302
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['FraudReviewsApi.releaseFraudReview']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3278
3303
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3279
3304
|
});
|
|
3280
3305
|
},
|
|
@@ -3561,10 +3586,11 @@ const FraudRulesApiFp = function (configuration) {
|
|
|
3561
3586
|
*/
|
|
3562
3587
|
deleteFraudRule(ruleType, options) {
|
|
3563
3588
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3564
|
-
var _a, _b
|
|
3589
|
+
var _a, _b;
|
|
3590
|
+
var _c;
|
|
3565
3591
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteFraudRule(ruleType, options);
|
|
3566
|
-
const localVarOperationServerIndex = (
|
|
3567
|
-
const localVarOperationServerBasePath = (
|
|
3592
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
3593
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['FraudRulesApi.deleteFraudRule']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3568
3594
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3569
3595
|
});
|
|
3570
3596
|
},
|
|
@@ -3578,10 +3604,11 @@ const FraudRulesApiFp = function (configuration) {
|
|
|
3578
3604
|
*/
|
|
3579
3605
|
fraudRule(ruleType, fraudRuleRequest, options) {
|
|
3580
3606
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3581
|
-
var _a, _b
|
|
3607
|
+
var _a, _b;
|
|
3608
|
+
var _c;
|
|
3582
3609
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.fraudRule(ruleType, fraudRuleRequest, options);
|
|
3583
|
-
const localVarOperationServerIndex = (
|
|
3584
|
-
const localVarOperationServerBasePath = (
|
|
3610
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
3611
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['FraudRulesApi.fraudRule']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3585
3612
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3586
3613
|
});
|
|
3587
3614
|
},
|
|
@@ -3593,10 +3620,11 @@ const FraudRulesApiFp = function (configuration) {
|
|
|
3593
3620
|
*/
|
|
3594
3621
|
listFraudRules(options) {
|
|
3595
3622
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3596
|
-
var _a, _b
|
|
3623
|
+
var _a, _b;
|
|
3624
|
+
var _c;
|
|
3597
3625
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.listFraudRules(options);
|
|
3598
|
-
const localVarOperationServerIndex = (
|
|
3599
|
-
const localVarOperationServerBasePath = (
|
|
3626
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
3627
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['FraudRulesApi.listFraudRules']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3600
3628
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3601
3629
|
});
|
|
3602
3630
|
},
|
|
@@ -3610,10 +3638,11 @@ const FraudRulesApiFp = function (configuration) {
|
|
|
3610
3638
|
*/
|
|
3611
3639
|
updateFraudRuleList(ruleType, updateFraudRuleListRequest, options) {
|
|
3612
3640
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3613
|
-
var _a, _b
|
|
3641
|
+
var _a, _b;
|
|
3642
|
+
var _c;
|
|
3614
3643
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateFraudRuleList(ruleType, updateFraudRuleListRequest, options);
|
|
3615
|
-
const localVarOperationServerIndex = (
|
|
3616
|
-
const localVarOperationServerBasePath = (
|
|
3644
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
3645
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['FraudRulesApi.updateFraudRuleList']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3617
3646
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3618
3647
|
});
|
|
3619
3648
|
},
|
|
@@ -3852,10 +3881,11 @@ const FundingSourcesApiFp = function (configuration) {
|
|
|
3852
3881
|
*/
|
|
3853
3882
|
getFundingSource(id, options) {
|
|
3854
3883
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3855
|
-
var _a, _b
|
|
3884
|
+
var _a, _b;
|
|
3885
|
+
var _c;
|
|
3856
3886
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFundingSource(id, options);
|
|
3857
|
-
const localVarOperationServerIndex = (
|
|
3858
|
-
const localVarOperationServerBasePath = (
|
|
3887
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
3888
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['FundingSourcesApi.getFundingSource']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3859
3889
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3860
3890
|
});
|
|
3861
3891
|
},
|
|
@@ -3867,10 +3897,11 @@ const FundingSourcesApiFp = function (configuration) {
|
|
|
3867
3897
|
*/
|
|
3868
3898
|
listFundingSources(options) {
|
|
3869
3899
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3870
|
-
var _a, _b
|
|
3900
|
+
var _a, _b;
|
|
3901
|
+
var _c;
|
|
3871
3902
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.listFundingSources(options);
|
|
3872
|
-
const localVarOperationServerIndex = (
|
|
3873
|
-
const localVarOperationServerBasePath = (
|
|
3903
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
3904
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['FundingSourcesApi.listFundingSources']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
3874
3905
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3875
3906
|
});
|
|
3876
3907
|
},
|
|
@@ -4158,10 +4189,11 @@ const InvoicesApiFp = function (configuration) {
|
|
|
4158
4189
|
*/
|
|
4159
4190
|
createInvoice(createInvoiceRequest, options) {
|
|
4160
4191
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4161
|
-
var _a, _b
|
|
4192
|
+
var _a, _b;
|
|
4193
|
+
var _c;
|
|
4162
4194
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createInvoice(createInvoiceRequest, options);
|
|
4163
|
-
const localVarOperationServerIndex = (
|
|
4164
|
-
const localVarOperationServerBasePath = (
|
|
4195
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
4196
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['InvoicesApi.createInvoice']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4165
4197
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4166
4198
|
});
|
|
4167
4199
|
},
|
|
@@ -4174,10 +4206,11 @@ const InvoicesApiFp = function (configuration) {
|
|
|
4174
4206
|
*/
|
|
4175
4207
|
deleteInvoices(id, options) {
|
|
4176
4208
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4177
|
-
var _a, _b
|
|
4209
|
+
var _a, _b;
|
|
4210
|
+
var _c;
|
|
4178
4211
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteInvoices(id, options);
|
|
4179
|
-
const localVarOperationServerIndex = (
|
|
4180
|
-
const localVarOperationServerBasePath = (
|
|
4212
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
4213
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['InvoicesApi.deleteInvoices']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4181
4214
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4182
4215
|
});
|
|
4183
4216
|
},
|
|
@@ -4190,10 +4223,11 @@ const InvoicesApiFp = function (configuration) {
|
|
|
4190
4223
|
*/
|
|
4191
4224
|
downloadInvoiceCsv(id, options) {
|
|
4192
4225
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4193
|
-
var _a, _b
|
|
4226
|
+
var _a, _b;
|
|
4227
|
+
var _c;
|
|
4194
4228
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadInvoiceCsv(id, options);
|
|
4195
|
-
const localVarOperationServerIndex = (
|
|
4196
|
-
const localVarOperationServerBasePath = (
|
|
4229
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
4230
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['InvoicesApi.downloadInvoiceCsv']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4197
4231
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4198
4232
|
});
|
|
4199
4233
|
},
|
|
@@ -4206,10 +4240,11 @@ const InvoicesApiFp = function (configuration) {
|
|
|
4206
4240
|
*/
|
|
4207
4241
|
downloadInvoicePdf(id, options) {
|
|
4208
4242
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4209
|
-
var _a, _b
|
|
4243
|
+
var _a, _b;
|
|
4244
|
+
var _c;
|
|
4210
4245
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadInvoicePdf(id, options);
|
|
4211
|
-
const localVarOperationServerIndex = (
|
|
4212
|
-
const localVarOperationServerBasePath = (
|
|
4246
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
4247
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['InvoicesApi.downloadInvoicePdf']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4213
4248
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4214
4249
|
});
|
|
4215
4250
|
},
|
|
@@ -4222,10 +4257,11 @@ const InvoicesApiFp = function (configuration) {
|
|
|
4222
4257
|
*/
|
|
4223
4258
|
getInvoice(id, options) {
|
|
4224
4259
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4225
|
-
var _a, _b
|
|
4260
|
+
var _a, _b;
|
|
4261
|
+
var _c;
|
|
4226
4262
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoice(id, options);
|
|
4227
|
-
const localVarOperationServerIndex = (
|
|
4228
|
-
const localVarOperationServerBasePath = (
|
|
4263
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
4264
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['InvoicesApi.getInvoice']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4229
4265
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4230
4266
|
});
|
|
4231
4267
|
},
|
|
@@ -4239,10 +4275,11 @@ const InvoicesApiFp = function (configuration) {
|
|
|
4239
4275
|
*/
|
|
4240
4276
|
listInvoices(offset, limit, options) {
|
|
4241
4277
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4242
|
-
var _a, _b
|
|
4278
|
+
var _a, _b;
|
|
4279
|
+
var _c;
|
|
4243
4280
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.listInvoices(offset, limit, options);
|
|
4244
|
-
const localVarOperationServerIndex = (
|
|
4245
|
-
const localVarOperationServerBasePath = (
|
|
4281
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
4282
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['InvoicesApi.listInvoices']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4246
4283
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4247
4284
|
});
|
|
4248
4285
|
},
|
|
@@ -4435,6 +4472,38 @@ const MembersApiAxiosParamCreator = function (configuration) {
|
|
|
4435
4472
|
options: localVarRequestOptions,
|
|
4436
4473
|
};
|
|
4437
4474
|
}),
|
|
4475
|
+
/**
|
|
4476
|
+
* Removes an existing member from the organization, identified by the given `id` in the URL. The member loses access to the organization and a `MEMBERS.DELETED` webhook event is emitted.
|
|
4477
|
+
* @summary Delete member
|
|
4478
|
+
* @param {string} id ID of the member to delete
|
|
4479
|
+
* @param {*} [options] Override http request option.
|
|
4480
|
+
* @throws {RequiredError}
|
|
4481
|
+
*/
|
|
4482
|
+
deleteMember: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
4483
|
+
// verify required parameter 'id' is not null or undefined
|
|
4484
|
+
(0, common_1.assertParamExists)('deleteMember', 'id', id);
|
|
4485
|
+
const localVarPath = `/members/{id}`
|
|
4486
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4487
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4488
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4489
|
+
let baseOptions;
|
|
4490
|
+
if (configuration) {
|
|
4491
|
+
baseOptions = configuration.baseOptions;
|
|
4492
|
+
}
|
|
4493
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
4494
|
+
const localVarHeaderParameter = {};
|
|
4495
|
+
const localVarQueryParameter = {};
|
|
4496
|
+
// authentication BearerApiKey required
|
|
4497
|
+
// http bearer authentication required
|
|
4498
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4499
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4500
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4501
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4502
|
+
return {
|
|
4503
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4504
|
+
options: localVarRequestOptions,
|
|
4505
|
+
};
|
|
4506
|
+
}),
|
|
4438
4507
|
/**
|
|
4439
4508
|
*
|
|
4440
4509
|
* @summary Retrieve member
|
|
@@ -4495,6 +4564,43 @@ const MembersApiAxiosParamCreator = function (configuration) {
|
|
|
4495
4564
|
options: localVarRequestOptions,
|
|
4496
4565
|
};
|
|
4497
4566
|
}),
|
|
4567
|
+
/**
|
|
4568
|
+
* Updates the role of an existing member, identified by the given `id` in the URL. Check the Roles API for the roles available within the organization.
|
|
4569
|
+
* @summary Update member
|
|
4570
|
+
* @param {string} id ID of the member to update
|
|
4571
|
+
* @param {UpdateMemberRequest} updateMemberRequest Attributes to update on the member
|
|
4572
|
+
* @param {*} [options] Override http request option.
|
|
4573
|
+
* @throws {RequiredError}
|
|
4574
|
+
*/
|
|
4575
|
+
updateMember: (id_1, updateMemberRequest_1, ...args_1) => __awaiter(this, [id_1, updateMemberRequest_1, ...args_1], void 0, function* (id, updateMemberRequest, options = {}) {
|
|
4576
|
+
// verify required parameter 'id' is not null or undefined
|
|
4577
|
+
(0, common_1.assertParamExists)('updateMember', 'id', id);
|
|
4578
|
+
// verify required parameter 'updateMemberRequest' is not null or undefined
|
|
4579
|
+
(0, common_1.assertParamExists)('updateMember', 'updateMemberRequest', updateMemberRequest);
|
|
4580
|
+
const localVarPath = `/members/{id}`
|
|
4581
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4582
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4583
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4584
|
+
let baseOptions;
|
|
4585
|
+
if (configuration) {
|
|
4586
|
+
baseOptions = configuration.baseOptions;
|
|
4587
|
+
}
|
|
4588
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
4589
|
+
const localVarHeaderParameter = {};
|
|
4590
|
+
const localVarQueryParameter = {};
|
|
4591
|
+
// authentication BearerApiKey required
|
|
4592
|
+
// http bearer authentication required
|
|
4593
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4594
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4595
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4596
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4597
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4598
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateMemberRequest, localVarRequestOptions, configuration);
|
|
4599
|
+
return {
|
|
4600
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4601
|
+
options: localVarRequestOptions,
|
|
4602
|
+
};
|
|
4603
|
+
}),
|
|
4498
4604
|
};
|
|
4499
4605
|
};
|
|
4500
4606
|
exports.MembersApiAxiosParamCreator = MembersApiAxiosParamCreator;
|
|
@@ -4514,10 +4620,28 @@ const MembersApiFp = function (configuration) {
|
|
|
4514
4620
|
*/
|
|
4515
4621
|
createMember(createMemberRequest, options) {
|
|
4516
4622
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4517
|
-
var _a, _b
|
|
4623
|
+
var _a, _b;
|
|
4624
|
+
var _c;
|
|
4518
4625
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createMember(createMemberRequest, options);
|
|
4519
|
-
const localVarOperationServerIndex = (
|
|
4520
|
-
const localVarOperationServerBasePath = (
|
|
4626
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
4627
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['MembersApi.createMember']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4628
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4629
|
+
});
|
|
4630
|
+
},
|
|
4631
|
+
/**
|
|
4632
|
+
* Removes an existing member from the organization, identified by the given `id` in the URL. The member loses access to the organization and a `MEMBERS.DELETED` webhook event is emitted.
|
|
4633
|
+
* @summary Delete member
|
|
4634
|
+
* @param {string} id ID of the member to delete
|
|
4635
|
+
* @param {*} [options] Override http request option.
|
|
4636
|
+
* @throws {RequiredError}
|
|
4637
|
+
*/
|
|
4638
|
+
deleteMember(id, options) {
|
|
4639
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4640
|
+
var _a, _b;
|
|
4641
|
+
var _c;
|
|
4642
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteMember(id, options);
|
|
4643
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
4644
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['MembersApi.deleteMember']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4521
4645
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4522
4646
|
});
|
|
4523
4647
|
},
|
|
@@ -4530,10 +4654,11 @@ const MembersApiFp = function (configuration) {
|
|
|
4530
4654
|
*/
|
|
4531
4655
|
getMember(id, options) {
|
|
4532
4656
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4533
|
-
var _a, _b
|
|
4657
|
+
var _a, _b;
|
|
4658
|
+
var _c;
|
|
4534
4659
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMember(id, options);
|
|
4535
|
-
const localVarOperationServerIndex = (
|
|
4536
|
-
const localVarOperationServerBasePath = (
|
|
4660
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
4661
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['MembersApi.getMember']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4537
4662
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4538
4663
|
});
|
|
4539
4664
|
},
|
|
@@ -4545,10 +4670,29 @@ const MembersApiFp = function (configuration) {
|
|
|
4545
4670
|
*/
|
|
4546
4671
|
listMembers(options) {
|
|
4547
4672
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4548
|
-
var _a, _b
|
|
4673
|
+
var _a, _b;
|
|
4674
|
+
var _c;
|
|
4549
4675
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.listMembers(options);
|
|
4550
|
-
const localVarOperationServerIndex = (
|
|
4551
|
-
const localVarOperationServerBasePath = (
|
|
4676
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
4677
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['MembersApi.listMembers']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4678
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4679
|
+
});
|
|
4680
|
+
},
|
|
4681
|
+
/**
|
|
4682
|
+
* Updates the role of an existing member, identified by the given `id` in the URL. Check the Roles API for the roles available within the organization.
|
|
4683
|
+
* @summary Update member
|
|
4684
|
+
* @param {string} id ID of the member to update
|
|
4685
|
+
* @param {UpdateMemberRequest} updateMemberRequest Attributes to update on the member
|
|
4686
|
+
* @param {*} [options] Override http request option.
|
|
4687
|
+
* @throws {RequiredError}
|
|
4688
|
+
*/
|
|
4689
|
+
updateMember(id, updateMemberRequest, options) {
|
|
4690
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4691
|
+
var _a, _b;
|
|
4692
|
+
var _c;
|
|
4693
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateMember(id, updateMemberRequest, options);
|
|
4694
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
4695
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['MembersApi.updateMember']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4552
4696
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4553
4697
|
});
|
|
4554
4698
|
},
|
|
@@ -4572,6 +4716,16 @@ const MembersApiFactory = function (configuration, basePath, axios) {
|
|
|
4572
4716
|
createMember(createMemberRequest, options) {
|
|
4573
4717
|
return localVarFp.createMember(createMemberRequest, options).then((request) => request(axios, basePath));
|
|
4574
4718
|
},
|
|
4719
|
+
/**
|
|
4720
|
+
* Removes an existing member from the organization, identified by the given `id` in the URL. The member loses access to the organization and a `MEMBERS.DELETED` webhook event is emitted.
|
|
4721
|
+
* @summary Delete member
|
|
4722
|
+
* @param {string} id ID of the member to delete
|
|
4723
|
+
* @param {*} [options] Override http request option.
|
|
4724
|
+
* @throws {RequiredError}
|
|
4725
|
+
*/
|
|
4726
|
+
deleteMember(id, options) {
|
|
4727
|
+
return localVarFp.deleteMember(id, options).then((request) => request(axios, basePath));
|
|
4728
|
+
},
|
|
4575
4729
|
/**
|
|
4576
4730
|
*
|
|
4577
4731
|
* @summary Retrieve member
|
|
@@ -4591,6 +4745,17 @@ const MembersApiFactory = function (configuration, basePath, axios) {
|
|
|
4591
4745
|
listMembers(options) {
|
|
4592
4746
|
return localVarFp.listMembers(options).then((request) => request(axios, basePath));
|
|
4593
4747
|
},
|
|
4748
|
+
/**
|
|
4749
|
+
* Updates the role of an existing member, identified by the given `id` in the URL. Check the Roles API for the roles available within the organization.
|
|
4750
|
+
* @summary Update member
|
|
4751
|
+
* @param {string} id ID of the member to update
|
|
4752
|
+
* @param {UpdateMemberRequest} updateMemberRequest Attributes to update on the member
|
|
4753
|
+
* @param {*} [options] Override http request option.
|
|
4754
|
+
* @throws {RequiredError}
|
|
4755
|
+
*/
|
|
4756
|
+
updateMember(id, updateMemberRequest, options) {
|
|
4757
|
+
return localVarFp.updateMember(id, updateMemberRequest, options).then((request) => request(axios, basePath));
|
|
4758
|
+
},
|
|
4594
4759
|
};
|
|
4595
4760
|
};
|
|
4596
4761
|
exports.MembersApiFactory = MembersApiFactory;
|
|
@@ -4612,6 +4777,17 @@ class MembersApi extends base_1.BaseAPI {
|
|
|
4612
4777
|
createMember(createMemberRequest, options) {
|
|
4613
4778
|
return (0, exports.MembersApiFp)(this.configuration).createMember(createMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4614
4779
|
}
|
|
4780
|
+
/**
|
|
4781
|
+
* Removes an existing member from the organization, identified by the given `id` in the URL. The member loses access to the organization and a `MEMBERS.DELETED` webhook event is emitted.
|
|
4782
|
+
* @summary Delete member
|
|
4783
|
+
* @param {string} id ID of the member to delete
|
|
4784
|
+
* @param {*} [options] Override http request option.
|
|
4785
|
+
* @throws {RequiredError}
|
|
4786
|
+
* @memberof MembersApi
|
|
4787
|
+
*/
|
|
4788
|
+
deleteMember(id, options) {
|
|
4789
|
+
return (0, exports.MembersApiFp)(this.configuration).deleteMember(id, options).then((request) => request(this.axios, this.basePath));
|
|
4790
|
+
}
|
|
4615
4791
|
/**
|
|
4616
4792
|
*
|
|
4617
4793
|
* @summary Retrieve member
|
|
@@ -4633,6 +4809,18 @@ class MembersApi extends base_1.BaseAPI {
|
|
|
4633
4809
|
listMembers(options) {
|
|
4634
4810
|
return (0, exports.MembersApiFp)(this.configuration).listMembers(options).then((request) => request(this.axios, this.basePath));
|
|
4635
4811
|
}
|
|
4812
|
+
/**
|
|
4813
|
+
* Updates the role of an existing member, identified by the given `id` in the URL. Check the Roles API for the roles available within the organization.
|
|
4814
|
+
* @summary Update member
|
|
4815
|
+
* @param {string} id ID of the member to update
|
|
4816
|
+
* @param {UpdateMemberRequest} updateMemberRequest Attributes to update on the member
|
|
4817
|
+
* @param {*} [options] Override http request option.
|
|
4818
|
+
* @throws {RequiredError}
|
|
4819
|
+
* @memberof MembersApi
|
|
4820
|
+
*/
|
|
4821
|
+
updateMember(id, updateMemberRequest, options) {
|
|
4822
|
+
return (0, exports.MembersApiFp)(this.configuration).updateMember(id, updateMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4823
|
+
}
|
|
4636
4824
|
}
|
|
4637
4825
|
exports.MembersApi = MembersApi;
|
|
4638
4826
|
/**
|
|
@@ -4674,7 +4862,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
4674
4862
|
};
|
|
4675
4863
|
}),
|
|
4676
4864
|
/**
|
|
4677
|
-
* Every time you want to send out a reward through Tremendous you need to create an order for it. > 📘 Getting started with your first order > > Our step-by-step guide walks you through everything you need > to send your first gift card through the Tremendous API: > > <strong><a style=\"display: block; margin-top: 20px;\" href=\"/docs/sending-rewards-intro\">Check it out!</a></strong> ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">external_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference for this order, supplied by the customer.</p> <p>When set, <code>external_id</code> makes order idempotent. All requests that use the same <code>external_id</code> after the initial order creation, will result in a response that returns the data of the initially created order. The response will have a <code>201</code> response code. These responses <strong>fail</strong> to create any further orders.</p> <p>It also allows for retrieving by <code>external_id</code> instead of <code>id</code> only.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">payment</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">funding_source_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the funding source that will be used to pay for the order. Use <code>balance</code> to use your Tremendous's balance.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">reward</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>A single reward, sent to a recipient. A reward is always part of an order.</p> <p>Either <code>products</code> or <code>campaign_id</code> must be specified.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the reward</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">order_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the order this reward is part of.</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">created_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Date the reward was created</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">expires_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Expiration date of the reward. If null, the reward does not expire.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">campaign_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>ID of the campaign in your account, that defines the available products (different gift cards, charity, etc.) that the recipient can choose from.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">products</code> </div> </td><td><span class=\"property-type\">array</span> <span class=\"property-format\">string</span></td><td><p>List of IDs of product (different gift cards, charity, etc.) that will be available to the recipient to choose from.</p> <p>Providing a <code>products</code> array will override the products made available by the campaign specified using the <code>campaign_id</code> property unless the <code>products</code> array is empty. It will <em>not</em> override other campaign attributes, like the message and customization of the look and feel.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">denomination</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the reward</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency_code</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the reward. Defaults to the organization's currency if not provided.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">recipient</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details of the recipient of the reward</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Name of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">email</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Email address of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">phone</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Phone number of the recipient. For non-US phone numbers, specify the country code (prefixed with +).</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">deliver_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date</span></td><td><p>Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">custom_fields</code> </div> </td><td><span class=\"property-type\">array</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show array item type</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the custom field</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Value of the custom field</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">label</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Label of the custom field</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">language</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Set this to translate the redemption experience for this reward. Pass a 2-letter <a href=\"https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes\">ISO-639-1 code</a> for the desired language. Defaults to <code>en</code>.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">delivery</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details on how the reward is delivered to the recipient.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">method</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>How to deliver the reward to the recipient.</p> <table> <thead> <tr> <th>Delivery Method</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>EMAIL</code></td> <td>Deliver the reward to the recipient by email</td> </tr> <tr> <td><code>LINK</code></td> <td> <p>Deliver the reward to the recipient via a link.</p> <p>The initial <code>POST /orders</code> response for a link reward includes the link in <code>delivery.link</code>.</p> <p>The link must then be delivered to the recipient out-of-band.</p> <p>To obtain a new link for an existing reward, call <code>POST /rewards/{id}/generate_link</code>.</p> </td> </tr> <tr> <td><code>PHONE</code></td> <td>Deliver the reward to the recipient by SMS</td> </tr> </tbody> </table> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">meta</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Customizable reward delivery metadata, taking precedence over the related campaign settings.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">sender_name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The "sender name" used in the delivery. If it's an email reward, "via Tremendous" will be appended to the value. Please note that you cannot customize the sender email.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">subject_line</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The subject line used in the delivery.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">message</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The content of the message of the reward, shown in the email / SMS and on the landing page.</p> </td></tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </div> ### Funding sources There are different ways to pay for gift cards and rewards on Tremendous. Every payment mechanism is called a \"funding source\". You can retrieve a list of all available funding sources by using the [Funding sources API endpoint](https://developers.tremendous.com/reference/list-funding-sources). The Tremendous API sandbox environment comes with a single funding source that allows you to spend up to $5,000 in *fake money* to test the API. [Learn more about the sandbox environment](https://developers.tremendous.com/docs/sandbox-environment). The HTTP status code `200` on the response will be used to indicate success. After processing successfully the reward gets queued to be delivered to it\'s recipient (for delivery method `EMAIL` and `PHONE`). Delivery will happen asynchronously, after the response has been sent. ### Idempotence Requests issued with the same `external_id` are idempotent. Submitting an order with an already existing `external_id` will not create a new order. If the payload is the same as a previously issued order, our API will return a `201` response code, along with a representation of the already-existing order in the response body. If the `external_id` used is for an order with different parameters (e.g. amount, recipient), our API will return a `409` response code, indicating a conflicting resource.
|
|
4865
|
+
* Every time you want to send out a reward through Tremendous you need to create an order for it. > 📘 Getting started with your first order > > Our step-by-step guide walks you through everything you need > to send your first gift card through the Tremendous API: > > <strong><a style=\"display: block; margin-top: 20px;\" href=\"/docs/sending-rewards-intro\">Check it out!</a></strong> ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">external_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference for this order, supplied by the customer.</p> <p>When set, <code>external_id</code> makes order idempotent. All requests that use the same <code>external_id</code> after the initial order creation, will result in a response that returns the data of the initially created order. The response will have a <code>201</code> response code. These responses <strong>fail</strong> to create any further orders.</p> <p>It also allows for retrieving by <code>external_id</code> instead of <code>id</code> only.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">payment</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">funding_source_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the funding source that will be used to pay for the order. Use <code>balance</code> to use your Tremendous's balance.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">reward</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>A single reward, sent to a recipient. A reward is always part of an order.</p> <p>Either <code>products</code> or <code>campaign_id</code> must be specified.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the reward</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">order_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the order this reward is part of.</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">created_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Date the reward was created</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">expires_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Expiration date of the reward. If null, the reward does not expire.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">campaign_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>ID of the campaign in your account, that defines the available products (different gift cards, charity, etc.) that the recipient can choose from.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">products</code> </div> </td><td><span class=\"property-type\">array</span> <span class=\"property-format\">string</span></td><td><p>List of IDs of product (different gift cards, charity, etc.) that will be available to the recipient to choose from.</p> <p>Providing a <code>products</code> array will override the products made available by the campaign specified using the <code>campaign_id</code> property unless the <code>products</code> array is empty. It will <em>not</em> override other campaign attributes, like the message and customization of the look and feel.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">denomination</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the reward</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency_code</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the reward. Defaults to the organization's currency if not provided.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">recipient</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details of the recipient of the reward</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Name of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">email</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Email address of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">phone</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Phone number of the recipient. For non-US phone numbers, specify the country code (prefixed with +).</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">deliver_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date</span></td><td><p>Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">custom_fields</code> </div> </td><td><span class=\"property-type\">array</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show array item type</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the custom field</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Value of the custom field</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">label</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Label of the custom field</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">language</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Set this to translate the redemption experience for this reward. Pass a 2-letter <a href=\"https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes\">ISO-639-1 code</a> for the desired language. Defaults to <code>en</code>.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">delivery</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details on how the reward is delivered to the recipient.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">method</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>How to deliver the reward to the recipient.</p> <table> <thead> <tr> <th>Delivery Method</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>EMAIL</code></td> <td>Deliver the reward to the recipient by email</td> </tr> <tr> <td><code>LINK</code></td> <td> <p>Deliver the reward to the recipient via a link.</p> <p>The initial <code>POST /orders</code> response for a link reward includes the link in <code>delivery.link</code>.</p> <p>The link must then be delivered to the recipient out-of-band.</p> <p>To obtain a new link for an existing reward, call <code>POST /rewards/{id}/generate_link</code>.</p> </td> </tr> <tr> <td><code>PHONE</code></td> <td>Deliver the reward to the recipient by SMS</td> </tr> </tbody> </table> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">meta</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Customizable reward delivery metadata, taking precedence over the related campaign settings.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">sender_name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The "sender name" used in the delivery. If it's an email reward, "via Tremendous" will be appended to the value. Please note that you cannot customize the sender email.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">subject_line</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The subject line used in the delivery.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">message</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The content of the message of the reward, shown in the email / SMS and on the landing page.</p> </td></tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </div> ### Funding sources There are different ways to pay for gift cards and rewards on Tremendous. Every payment mechanism is called a \"funding source\". You can retrieve a list of all available funding sources by using the [Funding sources API endpoint](https://developers.tremendous.com/reference/list-funding-sources). The Tremendous API sandbox environment comes with a single funding source that allows you to spend up to $100,000 in *fake money* to test the API. [Learn more about the sandbox environment](https://developers.tremendous.com/docs/sandbox-environment). The HTTP status code `200` on the response will be used to indicate success. After processing successfully the reward gets queued to be delivered to it\'s recipient (for delivery method `EMAIL` and `PHONE`). Delivery will happen asynchronously, after the response has been sent. ### Idempotence Requests issued with the same `external_id` are idempotent. Submitting an order with an already existing `external_id` will not create a new order. If the payload is the same as a previously issued order, our API will return a `201` response code, along with a representation of the already-existing order in the response body. If the `external_id` used is for an order with different parameters (e.g. amount, recipient), our API will return a `409` response code, indicating a conflicting resource.
|
|
4678
4866
|
* @summary Create order
|
|
4679
4867
|
* @param {CreateOrderRequest} createOrderRequest Order to create
|
|
4680
4868
|
* @param {*} [options] Override http request option.
|
|
@@ -4841,15 +5029,16 @@ const OrdersApiFp = function (configuration) {
|
|
|
4841
5029
|
*/
|
|
4842
5030
|
approveOrder(id, options) {
|
|
4843
5031
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4844
|
-
var _a, _b
|
|
5032
|
+
var _a, _b;
|
|
5033
|
+
var _c;
|
|
4845
5034
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.approveOrder(id, options);
|
|
4846
|
-
const localVarOperationServerIndex = (
|
|
4847
|
-
const localVarOperationServerBasePath = (
|
|
5035
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
5036
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['OrdersApi.approveOrder']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4848
5037
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4849
5038
|
});
|
|
4850
5039
|
},
|
|
4851
5040
|
/**
|
|
4852
|
-
* Every time you want to send out a reward through Tremendous you need to create an order for it. > 📘 Getting started with your first order > > Our step-by-step guide walks you through everything you need > to send your first gift card through the Tremendous API: > > <strong><a style=\"display: block; margin-top: 20px;\" href=\"/docs/sending-rewards-intro\">Check it out!</a></strong> ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">external_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference for this order, supplied by the customer.</p> <p>When set, <code>external_id</code> makes order idempotent. All requests that use the same <code>external_id</code> after the initial order creation, will result in a response that returns the data of the initially created order. The response will have a <code>201</code> response code. These responses <strong>fail</strong> to create any further orders.</p> <p>It also allows for retrieving by <code>external_id</code> instead of <code>id</code> only.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">payment</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">funding_source_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the funding source that will be used to pay for the order. Use <code>balance</code> to use your Tremendous's balance.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">reward</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>A single reward, sent to a recipient. A reward is always part of an order.</p> <p>Either <code>products</code> or <code>campaign_id</code> must be specified.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the reward</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">order_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the order this reward is part of.</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">created_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Date the reward was created</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">expires_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Expiration date of the reward. If null, the reward does not expire.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">campaign_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>ID of the campaign in your account, that defines the available products (different gift cards, charity, etc.) that the recipient can choose from.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">products</code> </div> </td><td><span class=\"property-type\">array</span> <span class=\"property-format\">string</span></td><td><p>List of IDs of product (different gift cards, charity, etc.) that will be available to the recipient to choose from.</p> <p>Providing a <code>products</code> array will override the products made available by the campaign specified using the <code>campaign_id</code> property unless the <code>products</code> array is empty. It will <em>not</em> override other campaign attributes, like the message and customization of the look and feel.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">denomination</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the reward</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency_code</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the reward. Defaults to the organization's currency if not provided.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">recipient</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details of the recipient of the reward</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Name of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">email</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Email address of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">phone</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Phone number of the recipient. For non-US phone numbers, specify the country code (prefixed with +).</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">deliver_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date</span></td><td><p>Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">custom_fields</code> </div> </td><td><span class=\"property-type\">array</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show array item type</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the custom field</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Value of the custom field</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">label</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Label of the custom field</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">language</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Set this to translate the redemption experience for this reward. Pass a 2-letter <a href=\"https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes\">ISO-639-1 code</a> for the desired language. Defaults to <code>en</code>.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">delivery</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details on how the reward is delivered to the recipient.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">method</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>How to deliver the reward to the recipient.</p> <table> <thead> <tr> <th>Delivery Method</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>EMAIL</code></td> <td>Deliver the reward to the recipient by email</td> </tr> <tr> <td><code>LINK</code></td> <td> <p>Deliver the reward to the recipient via a link.</p> <p>The initial <code>POST /orders</code> response for a link reward includes the link in <code>delivery.link</code>.</p> <p>The link must then be delivered to the recipient out-of-band.</p> <p>To obtain a new link for an existing reward, call <code>POST /rewards/{id}/generate_link</code>.</p> </td> </tr> <tr> <td><code>PHONE</code></td> <td>Deliver the reward to the recipient by SMS</td> </tr> </tbody> </table> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">meta</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Customizable reward delivery metadata, taking precedence over the related campaign settings.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">sender_name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The "sender name" used in the delivery. If it's an email reward, "via Tremendous" will be appended to the value. Please note that you cannot customize the sender email.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">subject_line</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The subject line used in the delivery.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">message</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The content of the message of the reward, shown in the email / SMS and on the landing page.</p> </td></tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </div> ### Funding sources There are different ways to pay for gift cards and rewards on Tremendous. Every payment mechanism is called a \"funding source\". You can retrieve a list of all available funding sources by using the [Funding sources API endpoint](https://developers.tremendous.com/reference/list-funding-sources). The Tremendous API sandbox environment comes with a single funding source that allows you to spend up to $5,000 in *fake money* to test the API. [Learn more about the sandbox environment](https://developers.tremendous.com/docs/sandbox-environment). The HTTP status code `200` on the response will be used to indicate success. After processing successfully the reward gets queued to be delivered to it\'s recipient (for delivery method `EMAIL` and `PHONE`). Delivery will happen asynchronously, after the response has been sent. ### Idempotence Requests issued with the same `external_id` are idempotent. Submitting an order with an already existing `external_id` will not create a new order. If the payload is the same as a previously issued order, our API will return a `201` response code, along with a representation of the already-existing order in the response body. If the `external_id` used is for an order with different parameters (e.g. amount, recipient), our API will return a `409` response code, indicating a conflicting resource.
|
|
5041
|
+
* Every time you want to send out a reward through Tremendous you need to create an order for it. > 📘 Getting started with your first order > > Our step-by-step guide walks you through everything you need > to send your first gift card through the Tremendous API: > > <strong><a style=\"display: block; margin-top: 20px;\" href=\"/docs/sending-rewards-intro\">Check it out!</a></strong> ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">external_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference for this order, supplied by the customer.</p> <p>When set, <code>external_id</code> makes order idempotent. All requests that use the same <code>external_id</code> after the initial order creation, will result in a response that returns the data of the initially created order. The response will have a <code>201</code> response code. These responses <strong>fail</strong> to create any further orders.</p> <p>It also allows for retrieving by <code>external_id</code> instead of <code>id</code> only.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">payment</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">funding_source_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the funding source that will be used to pay for the order. Use <code>balance</code> to use your Tremendous's balance.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">reward</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>A single reward, sent to a recipient. A reward is always part of an order.</p> <p>Either <code>products</code> or <code>campaign_id</code> must be specified.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the reward</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">order_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the order this reward is part of.</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">created_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Date the reward was created</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">expires_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Expiration date of the reward. If null, the reward does not expire.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">campaign_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>ID of the campaign in your account, that defines the available products (different gift cards, charity, etc.) that the recipient can choose from.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">products</code> </div> </td><td><span class=\"property-type\">array</span> <span class=\"property-format\">string</span></td><td><p>List of IDs of product (different gift cards, charity, etc.) that will be available to the recipient to choose from.</p> <p>Providing a <code>products</code> array will override the products made available by the campaign specified using the <code>campaign_id</code> property unless the <code>products</code> array is empty. It will <em>not</em> override other campaign attributes, like the message and customization of the look and feel.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">denomination</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the reward</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency_code</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the reward. Defaults to the organization's currency if not provided.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">recipient</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details of the recipient of the reward</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Name of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">email</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Email address of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">phone</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Phone number of the recipient. For non-US phone numbers, specify the country code (prefixed with +).</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">deliver_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date</span></td><td><p>Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">custom_fields</code> </div> </td><td><span class=\"property-type\">array</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show array item type</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the custom field</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Value of the custom field</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">label</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Label of the custom field</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">language</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Set this to translate the redemption experience for this reward. Pass a 2-letter <a href=\"https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes\">ISO-639-1 code</a> for the desired language. Defaults to <code>en</code>.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">delivery</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details on how the reward is delivered to the recipient.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">method</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>How to deliver the reward to the recipient.</p> <table> <thead> <tr> <th>Delivery Method</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>EMAIL</code></td> <td>Deliver the reward to the recipient by email</td> </tr> <tr> <td><code>LINK</code></td> <td> <p>Deliver the reward to the recipient via a link.</p> <p>The initial <code>POST /orders</code> response for a link reward includes the link in <code>delivery.link</code>.</p> <p>The link must then be delivered to the recipient out-of-band.</p> <p>To obtain a new link for an existing reward, call <code>POST /rewards/{id}/generate_link</code>.</p> </td> </tr> <tr> <td><code>PHONE</code></td> <td>Deliver the reward to the recipient by SMS</td> </tr> </tbody> </table> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">meta</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Customizable reward delivery metadata, taking precedence over the related campaign settings.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">sender_name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The "sender name" used in the delivery. If it's an email reward, "via Tremendous" will be appended to the value. Please note that you cannot customize the sender email.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">subject_line</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The subject line used in the delivery.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">message</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The content of the message of the reward, shown in the email / SMS and on the landing page.</p> </td></tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </div> ### Funding sources There are different ways to pay for gift cards and rewards on Tremendous. Every payment mechanism is called a \"funding source\". You can retrieve a list of all available funding sources by using the [Funding sources API endpoint](https://developers.tremendous.com/reference/list-funding-sources). The Tremendous API sandbox environment comes with a single funding source that allows you to spend up to $100,000 in *fake money* to test the API. [Learn more about the sandbox environment](https://developers.tremendous.com/docs/sandbox-environment). The HTTP status code `200` on the response will be used to indicate success. After processing successfully the reward gets queued to be delivered to it\'s recipient (for delivery method `EMAIL` and `PHONE`). Delivery will happen asynchronously, after the response has been sent. ### Idempotence Requests issued with the same `external_id` are idempotent. Submitting an order with an already existing `external_id` will not create a new order. If the payload is the same as a previously issued order, our API will return a `201` response code, along with a representation of the already-existing order in the response body. If the `external_id` used is for an order with different parameters (e.g. amount, recipient), our API will return a `409` response code, indicating a conflicting resource.
|
|
4853
5042
|
* @summary Create order
|
|
4854
5043
|
* @param {CreateOrderRequest} createOrderRequest Order to create
|
|
4855
5044
|
* @param {*} [options] Override http request option.
|
|
@@ -4857,10 +5046,11 @@ const OrdersApiFp = function (configuration) {
|
|
|
4857
5046
|
*/
|
|
4858
5047
|
createOrder(createOrderRequest, options) {
|
|
4859
5048
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4860
|
-
var _a, _b
|
|
5049
|
+
var _a, _b;
|
|
5050
|
+
var _c;
|
|
4861
5051
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrder(createOrderRequest, options);
|
|
4862
|
-
const localVarOperationServerIndex = (
|
|
4863
|
-
const localVarOperationServerBasePath = (
|
|
5052
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
5053
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['OrdersApi.createOrder']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4864
5054
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4865
5055
|
});
|
|
4866
5056
|
},
|
|
@@ -4873,10 +5063,11 @@ const OrdersApiFp = function (configuration) {
|
|
|
4873
5063
|
*/
|
|
4874
5064
|
getOrder(id, options) {
|
|
4875
5065
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4876
|
-
var _a, _b
|
|
5066
|
+
var _a, _b;
|
|
5067
|
+
var _c;
|
|
4877
5068
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrder(id, options);
|
|
4878
|
-
const localVarOperationServerIndex = (
|
|
4879
|
-
const localVarOperationServerBasePath = (
|
|
5069
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
5070
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['OrdersApi.getOrder']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4880
5071
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4881
5072
|
});
|
|
4882
5073
|
},
|
|
@@ -4894,10 +5085,11 @@ const OrdersApiFp = function (configuration) {
|
|
|
4894
5085
|
*/
|
|
4895
5086
|
listOrders(offset, campaignId, externalId, createdAtGte, createdAtLte, limit, options) {
|
|
4896
5087
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4897
|
-
var _a, _b
|
|
5088
|
+
var _a, _b;
|
|
5089
|
+
var _c;
|
|
4898
5090
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(offset, campaignId, externalId, createdAtGte, createdAtLte, limit, options);
|
|
4899
|
-
const localVarOperationServerIndex = (
|
|
4900
|
-
const localVarOperationServerBasePath = (
|
|
5091
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
5092
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['OrdersApi.listOrders']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4901
5093
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4902
5094
|
});
|
|
4903
5095
|
},
|
|
@@ -4910,10 +5102,11 @@ const OrdersApiFp = function (configuration) {
|
|
|
4910
5102
|
*/
|
|
4911
5103
|
rejectOrder(id, options) {
|
|
4912
5104
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4913
|
-
var _a, _b
|
|
5105
|
+
var _a, _b;
|
|
5106
|
+
var _c;
|
|
4914
5107
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.rejectOrder(id, options);
|
|
4915
|
-
const localVarOperationServerIndex = (
|
|
4916
|
-
const localVarOperationServerBasePath = (
|
|
5108
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
5109
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['OrdersApi.rejectOrder']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4917
5110
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4918
5111
|
});
|
|
4919
5112
|
},
|
|
@@ -4938,7 +5131,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
4938
5131
|
return localVarFp.approveOrder(id, options).then((request) => request(axios, basePath));
|
|
4939
5132
|
},
|
|
4940
5133
|
/**
|
|
4941
|
-
* Every time you want to send out a reward through Tremendous you need to create an order for it. > 📘 Getting started with your first order > > Our step-by-step guide walks you through everything you need > to send your first gift card through the Tremendous API: > > <strong><a style=\"display: block; margin-top: 20px;\" href=\"/docs/sending-rewards-intro\">Check it out!</a></strong> ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">external_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference for this order, supplied by the customer.</p> <p>When set, <code>external_id</code> makes order idempotent. All requests that use the same <code>external_id</code> after the initial order creation, will result in a response that returns the data of the initially created order. The response will have a <code>201</code> response code. These responses <strong>fail</strong> to create any further orders.</p> <p>It also allows for retrieving by <code>external_id</code> instead of <code>id</code> only.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">payment</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">funding_source_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the funding source that will be used to pay for the order. Use <code>balance</code> to use your Tremendous's balance.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">reward</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>A single reward, sent to a recipient. A reward is always part of an order.</p> <p>Either <code>products</code> or <code>campaign_id</code> must be specified.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the reward</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">order_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the order this reward is part of.</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">created_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Date the reward was created</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">expires_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Expiration date of the reward. If null, the reward does not expire.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">campaign_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>ID of the campaign in your account, that defines the available products (different gift cards, charity, etc.) that the recipient can choose from.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">products</code> </div> </td><td><span class=\"property-type\">array</span> <span class=\"property-format\">string</span></td><td><p>List of IDs of product (different gift cards, charity, etc.) that will be available to the recipient to choose from.</p> <p>Providing a <code>products</code> array will override the products made available by the campaign specified using the <code>campaign_id</code> property unless the <code>products</code> array is empty. It will <em>not</em> override other campaign attributes, like the message and customization of the look and feel.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">denomination</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the reward</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency_code</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the reward. Defaults to the organization's currency if not provided.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">recipient</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details of the recipient of the reward</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Name of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">email</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Email address of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">phone</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Phone number of the recipient. For non-US phone numbers, specify the country code (prefixed with +).</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">deliver_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date</span></td><td><p>Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">custom_fields</code> </div> </td><td><span class=\"property-type\">array</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show array item type</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the custom field</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Value of the custom field</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">label</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Label of the custom field</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">language</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Set this to translate the redemption experience for this reward. Pass a 2-letter <a href=\"https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes\">ISO-639-1 code</a> for the desired language. Defaults to <code>en</code>.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">delivery</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details on how the reward is delivered to the recipient.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">method</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>How to deliver the reward to the recipient.</p> <table> <thead> <tr> <th>Delivery Method</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>EMAIL</code></td> <td>Deliver the reward to the recipient by email</td> </tr> <tr> <td><code>LINK</code></td> <td> <p>Deliver the reward to the recipient via a link.</p> <p>The initial <code>POST /orders</code> response for a link reward includes the link in <code>delivery.link</code>.</p> <p>The link must then be delivered to the recipient out-of-band.</p> <p>To obtain a new link for an existing reward, call <code>POST /rewards/{id}/generate_link</code>.</p> </td> </tr> <tr> <td><code>PHONE</code></td> <td>Deliver the reward to the recipient by SMS</td> </tr> </tbody> </table> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">meta</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Customizable reward delivery metadata, taking precedence over the related campaign settings.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">sender_name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The "sender name" used in the delivery. If it's an email reward, "via Tremendous" will be appended to the value. Please note that you cannot customize the sender email.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">subject_line</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The subject line used in the delivery.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">message</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The content of the message of the reward, shown in the email / SMS and on the landing page.</p> </td></tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </div> ### Funding sources There are different ways to pay for gift cards and rewards on Tremendous. Every payment mechanism is called a \"funding source\". You can retrieve a list of all available funding sources by using the [Funding sources API endpoint](https://developers.tremendous.com/reference/list-funding-sources). The Tremendous API sandbox environment comes with a single funding source that allows you to spend up to $5,000 in *fake money* to test the API. [Learn more about the sandbox environment](https://developers.tremendous.com/docs/sandbox-environment). The HTTP status code `200` on the response will be used to indicate success. After processing successfully the reward gets queued to be delivered to it\'s recipient (for delivery method `EMAIL` and `PHONE`). Delivery will happen asynchronously, after the response has been sent. ### Idempotence Requests issued with the same `external_id` are idempotent. Submitting an order with an already existing `external_id` will not create a new order. If the payload is the same as a previously issued order, our API will return a `201` response code, along with a representation of the already-existing order in the response body. If the `external_id` used is for an order with different parameters (e.g. amount, recipient), our API will return a `409` response code, indicating a conflicting resource.
|
|
5134
|
+
* Every time you want to send out a reward through Tremendous you need to create an order for it. > 📘 Getting started with your first order > > Our step-by-step guide walks you through everything you need > to send your first gift card through the Tremendous API: > > <strong><a style=\"display: block; margin-top: 20px;\" href=\"/docs/sending-rewards-intro\">Check it out!</a></strong> ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">external_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference for this order, supplied by the customer.</p> <p>When set, <code>external_id</code> makes order idempotent. All requests that use the same <code>external_id</code> after the initial order creation, will result in a response that returns the data of the initially created order. The response will have a <code>201</code> response code. These responses <strong>fail</strong> to create any further orders.</p> <p>It also allows for retrieving by <code>external_id</code> instead of <code>id</code> only.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">payment</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">funding_source_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the funding source that will be used to pay for the order. Use <code>balance</code> to use your Tremendous's balance.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">reward</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>A single reward, sent to a recipient. A reward is always part of an order.</p> <p>Either <code>products</code> or <code>campaign_id</code> must be specified.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the reward</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">order_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the order this reward is part of.</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">created_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Date the reward was created</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">expires_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Expiration date of the reward. If null, the reward does not expire.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">campaign_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>ID of the campaign in your account, that defines the available products (different gift cards, charity, etc.) that the recipient can choose from.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">products</code> </div> </td><td><span class=\"property-type\">array</span> <span class=\"property-format\">string</span></td><td><p>List of IDs of product (different gift cards, charity, etc.) that will be available to the recipient to choose from.</p> <p>Providing a <code>products</code> array will override the products made available by the campaign specified using the <code>campaign_id</code> property unless the <code>products</code> array is empty. It will <em>not</em> override other campaign attributes, like the message and customization of the look and feel.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">denomination</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the reward</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency_code</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the reward. Defaults to the organization's currency if not provided.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">recipient</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details of the recipient of the reward</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Name of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">email</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Email address of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">phone</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Phone number of the recipient. For non-US phone numbers, specify the country code (prefixed with +).</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">deliver_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date</span></td><td><p>Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">custom_fields</code> </div> </td><td><span class=\"property-type\">array</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show array item type</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the custom field</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Value of the custom field</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">label</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Label of the custom field</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">language</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Set this to translate the redemption experience for this reward. Pass a 2-letter <a href=\"https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes\">ISO-639-1 code</a> for the desired language. Defaults to <code>en</code>.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">delivery</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details on how the reward is delivered to the recipient.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">method</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>How to deliver the reward to the recipient.</p> <table> <thead> <tr> <th>Delivery Method</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>EMAIL</code></td> <td>Deliver the reward to the recipient by email</td> </tr> <tr> <td><code>LINK</code></td> <td> <p>Deliver the reward to the recipient via a link.</p> <p>The initial <code>POST /orders</code> response for a link reward includes the link in <code>delivery.link</code>.</p> <p>The link must then be delivered to the recipient out-of-band.</p> <p>To obtain a new link for an existing reward, call <code>POST /rewards/{id}/generate_link</code>.</p> </td> </tr> <tr> <td><code>PHONE</code></td> <td>Deliver the reward to the recipient by SMS</td> </tr> </tbody> </table> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">meta</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Customizable reward delivery metadata, taking precedence over the related campaign settings.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">sender_name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The "sender name" used in the delivery. If it's an email reward, "via Tremendous" will be appended to the value. Please note that you cannot customize the sender email.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">subject_line</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The subject line used in the delivery.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">message</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The content of the message of the reward, shown in the email / SMS and on the landing page.</p> </td></tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </div> ### Funding sources There are different ways to pay for gift cards and rewards on Tremendous. Every payment mechanism is called a \"funding source\". You can retrieve a list of all available funding sources by using the [Funding sources API endpoint](https://developers.tremendous.com/reference/list-funding-sources). The Tremendous API sandbox environment comes with a single funding source that allows you to spend up to $100,000 in *fake money* to test the API. [Learn more about the sandbox environment](https://developers.tremendous.com/docs/sandbox-environment). The HTTP status code `200` on the response will be used to indicate success. After processing successfully the reward gets queued to be delivered to it\'s recipient (for delivery method `EMAIL` and `PHONE`). Delivery will happen asynchronously, after the response has been sent. ### Idempotence Requests issued with the same `external_id` are idempotent. Submitting an order with an already existing `external_id` will not create a new order. If the payload is the same as a previously issued order, our API will return a `201` response code, along with a representation of the already-existing order in the response body. If the `external_id` used is for an order with different parameters (e.g. amount, recipient), our API will return a `409` response code, indicating a conflicting resource.
|
|
4942
5135
|
* @summary Create order
|
|
4943
5136
|
* @param {CreateOrderRequest} createOrderRequest Order to create
|
|
4944
5137
|
* @param {*} [options] Override http request option.
|
|
@@ -5004,7 +5197,7 @@ class OrdersApi extends base_1.BaseAPI {
|
|
|
5004
5197
|
return (0, exports.OrdersApiFp)(this.configuration).approveOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
5005
5198
|
}
|
|
5006
5199
|
/**
|
|
5007
|
-
* Every time you want to send out a reward through Tremendous you need to create an order for it. > 📘 Getting started with your first order > > Our step-by-step guide walks you through everything you need > to send your first gift card through the Tremendous API: > > <strong><a style=\"display: block; margin-top: 20px;\" href=\"/docs/sending-rewards-intro\">Check it out!</a></strong> ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">external_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference for this order, supplied by the customer.</p> <p>When set, <code>external_id</code> makes order idempotent. All requests that use the same <code>external_id</code> after the initial order creation, will result in a response that returns the data of the initially created order. The response will have a <code>201</code> response code. These responses <strong>fail</strong> to create any further orders.</p> <p>It also allows for retrieving by <code>external_id</code> instead of <code>id</code> only.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">payment</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">funding_source_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the funding source that will be used to pay for the order. Use <code>balance</code> to use your Tremendous's balance.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">reward</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>A single reward, sent to a recipient. A reward is always part of an order.</p> <p>Either <code>products</code> or <code>campaign_id</code> must be specified.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the reward</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">order_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the order this reward is part of.</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">created_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Date the reward was created</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">expires_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Expiration date of the reward. If null, the reward does not expire.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">campaign_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>ID of the campaign in your account, that defines the available products (different gift cards, charity, etc.) that the recipient can choose from.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">products</code> </div> </td><td><span class=\"property-type\">array</span> <span class=\"property-format\">string</span></td><td><p>List of IDs of product (different gift cards, charity, etc.) that will be available to the recipient to choose from.</p> <p>Providing a <code>products</code> array will override the products made available by the campaign specified using the <code>campaign_id</code> property unless the <code>products</code> array is empty. It will <em>not</em> override other campaign attributes, like the message and customization of the look and feel.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">denomination</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the reward</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency_code</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the reward. Defaults to the organization's currency if not provided.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">recipient</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details of the recipient of the reward</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Name of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">email</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Email address of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">phone</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Phone number of the recipient. For non-US phone numbers, specify the country code (prefixed with +).</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">deliver_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date</span></td><td><p>Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">custom_fields</code> </div> </td><td><span class=\"property-type\">array</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show array item type</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the custom field</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Value of the custom field</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">label</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Label of the custom field</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">language</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Set this to translate the redemption experience for this reward. Pass a 2-letter <a href=\"https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes\">ISO-639-1 code</a> for the desired language. Defaults to <code>en</code>.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">delivery</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details on how the reward is delivered to the recipient.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">method</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>How to deliver the reward to the recipient.</p> <table> <thead> <tr> <th>Delivery Method</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>EMAIL</code></td> <td>Deliver the reward to the recipient by email</td> </tr> <tr> <td><code>LINK</code></td> <td> <p>Deliver the reward to the recipient via a link.</p> <p>The initial <code>POST /orders</code> response for a link reward includes the link in <code>delivery.link</code>.</p> <p>The link must then be delivered to the recipient out-of-band.</p> <p>To obtain a new link for an existing reward, call <code>POST /rewards/{id}/generate_link</code>.</p> </td> </tr> <tr> <td><code>PHONE</code></td> <td>Deliver the reward to the recipient by SMS</td> </tr> </tbody> </table> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">meta</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Customizable reward delivery metadata, taking precedence over the related campaign settings.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">sender_name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The "sender name" used in the delivery. If it's an email reward, "via Tremendous" will be appended to the value. Please note that you cannot customize the sender email.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">subject_line</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The subject line used in the delivery.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">message</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The content of the message of the reward, shown in the email / SMS and on the landing page.</p> </td></tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </div> ### Funding sources There are different ways to pay for gift cards and rewards on Tremendous. Every payment mechanism is called a \"funding source\". You can retrieve a list of all available funding sources by using the [Funding sources API endpoint](https://developers.tremendous.com/reference/list-funding-sources). The Tremendous API sandbox environment comes with a single funding source that allows you to spend up to $5,000 in *fake money* to test the API. [Learn more about the sandbox environment](https://developers.tremendous.com/docs/sandbox-environment). The HTTP status code `200` on the response will be used to indicate success. After processing successfully the reward gets queued to be delivered to it\'s recipient (for delivery method `EMAIL` and `PHONE`). Delivery will happen asynchronously, after the response has been sent. ### Idempotence Requests issued with the same `external_id` are idempotent. Submitting an order with an already existing `external_id` will not create a new order. If the payload is the same as a previously issued order, our API will return a `201` response code, along with a representation of the already-existing order in the response body. If the `external_id` used is for an order with different parameters (e.g. amount, recipient), our API will return a `409` response code, indicating a conflicting resource.
|
|
5200
|
+
* Every time you want to send out a reward through Tremendous you need to create an order for it. > 📘 Getting started with your first order > > Our step-by-step guide walks you through everything you need > to send your first gift card through the Tremendous API: > > <strong><a style=\"display: block; margin-top: 20px;\" href=\"/docs/sending-rewards-intro\">Check it out!</a></strong> ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">external_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Reference for this order, supplied by the customer.</p> <p>When set, <code>external_id</code> makes order idempotent. All requests that use the same <code>external_id</code> after the initial order creation, will result in a response that returns the data of the initially created order. The response will have a <code>201</code> response code. These responses <strong>fail</strong> to create any further orders.</p> <p>It also allows for retrieving by <code>external_id</code> instead of <code>id</code> only.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">payment</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">funding_source_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the funding source that will be used to pay for the order. Use <code>balance</code> to use your Tremendous's balance.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">reward</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>A single reward, sent to a recipient. A reward is always part of an order.</p> <p>Either <code>products</code> or <code>campaign_id</code> must be specified.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the reward</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">order_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the order this reward is part of.</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">created_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Date the reward was created</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">expires_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date-time</span></td><td><p>Expiration date of the reward. If null, the reward does not expire.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">campaign_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>ID of the campaign in your account, that defines the available products (different gift cards, charity, etc.) that the recipient can choose from.</p> </td></tr> <tr class=\"property-conditional-hint-request-only\"><td><div class=\"property-name\"> <code class=\"property-name\">products</code> </div> </td><td><span class=\"property-type\">array</span> <span class=\"property-format\">string</span></td><td><p>List of IDs of product (different gift cards, charity, etc.) that will be available to the recipient to choose from.</p> <p>Providing a <code>products</code> array will override the products made available by the campaign specified using the <code>campaign_id</code> property unless the <code>products</code> array is empty. It will <em>not</em> override other campaign attributes, like the message and customization of the look and feel.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">object</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">denomination</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Amount of the reward</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">currency_code</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Currency of the reward. Defaults to the organization's currency if not provided.</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">recipient</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details of the recipient of the reward</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Name of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">email</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Email address of the recipient</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">phone</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Phone number of the recipient. For non-US phone numbers, specify the country code (prefixed with +).</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">deliver_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date</span></td><td><p>Timestamp of reward delivery within the next year. Note that if date-time is provided, the time values will be ignored.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">custom_fields</code> </div> </td><td><span class=\"property-type\">array</span></td><td></td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show array item type</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Tremendous ID of the custom field</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">value</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Value of the custom field</p> </td></tr> <tr class=\"property-conditional-hint-response-only\"><td><div class=\"property-name\"> <code class=\"property-name\">label</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Label of the custom field</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">language</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Set this to translate the redemption experience for this reward. Pass a 2-letter <a href=\"https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes\">ISO-639-1 code</a> for the desired language. Defaults to <code>en</code>.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">delivery</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Details on how the reward is delivered to the recipient.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">method</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>How to deliver the reward to the recipient.</p> <table> <thead> <tr> <th>Delivery Method</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>EMAIL</code></td> <td>Deliver the reward to the recipient by email</td> </tr> <tr> <td><code>LINK</code></td> <td> <p>Deliver the reward to the recipient via a link.</p> <p>The initial <code>POST /orders</code> response for a link reward includes the link in <code>delivery.link</code>.</p> <p>The link must then be delivered to the recipient out-of-band.</p> <p>To obtain a new link for an existing reward, call <code>POST /rewards/{id}/generate_link</code>.</p> </td> </tr> <tr> <td><code>PHONE</code></td> <td>Deliver the reward to the recipient by SMS</td> </tr> </tbody> </table> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">meta</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Customizable reward delivery metadata, taking precedence over the related campaign settings.</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">sender_name</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The "sender name" used in the delivery. If it's an email reward, "via Tremendous" will be appended to the value. Please note that you cannot customize the sender email.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">subject_line</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The subject line used in the delivery.</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">message</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>The content of the message of the reward, shown in the email / SMS and on the landing page.</p> </td></tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </div> ### Funding sources There are different ways to pay for gift cards and rewards on Tremendous. Every payment mechanism is called a \"funding source\". You can retrieve a list of all available funding sources by using the [Funding sources API endpoint](https://developers.tremendous.com/reference/list-funding-sources). The Tremendous API sandbox environment comes with a single funding source that allows you to spend up to $100,000 in *fake money* to test the API. [Learn more about the sandbox environment](https://developers.tremendous.com/docs/sandbox-environment). The HTTP status code `200` on the response will be used to indicate success. After processing successfully the reward gets queued to be delivered to it\'s recipient (for delivery method `EMAIL` and `PHONE`). Delivery will happen asynchronously, after the response has been sent. ### Idempotence Requests issued with the same `external_id` are idempotent. Submitting an order with an already existing `external_id` will not create a new order. If the payload is the same as a previously issued order, our API will return a `201` response code, along with a representation of the already-existing order in the response body. If the `external_id` used is for an order with different parameters (e.g. amount, recipient), our API will return a `409` response code, indicating a conflicting resource.
|
|
5008
5201
|
* @summary Create order
|
|
5009
5202
|
* @param {CreateOrderRequest} createOrderRequest Order to create
|
|
5010
5203
|
* @param {*} [options] Override http request option.
|
|
@@ -5063,10 +5256,11 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
5063
5256
|
/**
|
|
5064
5257
|
* Creates a new API key. The API key used to make the request will remain active. Created API keys are generated randomly and returned in the response. **You cannot retrieve them again.**
|
|
5065
5258
|
* @summary Create API key
|
|
5259
|
+
* @param {CreateApiKeyRequest} [createApiKeyRequest] Optional settings for the new API key
|
|
5066
5260
|
* @param {*} [options] Override http request option.
|
|
5067
5261
|
* @throws {RequiredError}
|
|
5068
5262
|
*/
|
|
5069
|
-
createApiKey: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
5263
|
+
createApiKey: (createApiKeyRequest_1, ...args_1) => __awaiter(this, [createApiKeyRequest_1, ...args_1], void 0, function* (createApiKeyRequest, options = {}) {
|
|
5070
5264
|
const localVarPath = `/organizations/create_api_key`;
|
|
5071
5265
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5072
5266
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5080,9 +5274,11 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
5080
5274
|
// authentication BearerApiKey required
|
|
5081
5275
|
// http bearer authentication required
|
|
5082
5276
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5277
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5083
5278
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5084
5279
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5085
5280
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5281
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createApiKeyRequest, localVarRequestOptions, configuration);
|
|
5086
5282
|
return {
|
|
5087
5283
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5088
5284
|
options: localVarRequestOptions,
|
|
@@ -5194,15 +5390,17 @@ const OrganizationsApiFp = function (configuration) {
|
|
|
5194
5390
|
/**
|
|
5195
5391
|
* Creates a new API key. The API key used to make the request will remain active. Created API keys are generated randomly and returned in the response. **You cannot retrieve them again.**
|
|
5196
5392
|
* @summary Create API key
|
|
5393
|
+
* @param {CreateApiKeyRequest} [createApiKeyRequest] Optional settings for the new API key
|
|
5197
5394
|
* @param {*} [options] Override http request option.
|
|
5198
5395
|
* @throws {RequiredError}
|
|
5199
5396
|
*/
|
|
5200
|
-
createApiKey(options) {
|
|
5397
|
+
createApiKey(createApiKeyRequest, options) {
|
|
5201
5398
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5202
|
-
var _a, _b
|
|
5203
|
-
|
|
5204
|
-
const
|
|
5205
|
-
const
|
|
5399
|
+
var _a, _b;
|
|
5400
|
+
var _c;
|
|
5401
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createApiKey(createApiKeyRequest, options);
|
|
5402
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
5403
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['OrganizationsApi.createApiKey']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5206
5404
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5207
5405
|
});
|
|
5208
5406
|
},
|
|
@@ -5215,10 +5413,11 @@ const OrganizationsApiFp = function (configuration) {
|
|
|
5215
5413
|
*/
|
|
5216
5414
|
createOrganization(createOrganizationRequest, options) {
|
|
5217
5415
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5218
|
-
var _a, _b
|
|
5416
|
+
var _a, _b;
|
|
5417
|
+
var _c;
|
|
5219
5418
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrganization(createOrganizationRequest, options);
|
|
5220
|
-
const localVarOperationServerIndex = (
|
|
5221
|
-
const localVarOperationServerBasePath = (
|
|
5419
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
5420
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['OrganizationsApi.createOrganization']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5222
5421
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5223
5422
|
});
|
|
5224
5423
|
},
|
|
@@ -5231,10 +5430,11 @@ const OrganizationsApiFp = function (configuration) {
|
|
|
5231
5430
|
*/
|
|
5232
5431
|
getOrganization(id, options) {
|
|
5233
5432
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5234
|
-
var _a, _b
|
|
5433
|
+
var _a, _b;
|
|
5434
|
+
var _c;
|
|
5235
5435
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganization(id, options);
|
|
5236
|
-
const localVarOperationServerIndex = (
|
|
5237
|
-
const localVarOperationServerBasePath = (
|
|
5436
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
5437
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['OrganizationsApi.getOrganization']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5238
5438
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5239
5439
|
});
|
|
5240
5440
|
},
|
|
@@ -5246,10 +5446,11 @@ const OrganizationsApiFp = function (configuration) {
|
|
|
5246
5446
|
*/
|
|
5247
5447
|
listOrganizations(options) {
|
|
5248
5448
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5249
|
-
var _a, _b
|
|
5449
|
+
var _a, _b;
|
|
5450
|
+
var _c;
|
|
5250
5451
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrganizations(options);
|
|
5251
|
-
const localVarOperationServerIndex = (
|
|
5252
|
-
const localVarOperationServerBasePath = (
|
|
5452
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
5453
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['OrganizationsApi.listOrganizations']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5253
5454
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5254
5455
|
});
|
|
5255
5456
|
},
|
|
@@ -5266,11 +5467,12 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
|
5266
5467
|
/**
|
|
5267
5468
|
* Creates a new API key. The API key used to make the request will remain active. Created API keys are generated randomly and returned in the response. **You cannot retrieve them again.**
|
|
5268
5469
|
* @summary Create API key
|
|
5470
|
+
* @param {CreateApiKeyRequest} [createApiKeyRequest] Optional settings for the new API key
|
|
5269
5471
|
* @param {*} [options] Override http request option.
|
|
5270
5472
|
* @throws {RequiredError}
|
|
5271
5473
|
*/
|
|
5272
|
-
createApiKey(options) {
|
|
5273
|
-
return localVarFp.createApiKey(options).then((request) => request(axios, basePath));
|
|
5474
|
+
createApiKey(createApiKeyRequest, options) {
|
|
5475
|
+
return localVarFp.createApiKey(createApiKeyRequest, options).then((request) => request(axios, basePath));
|
|
5274
5476
|
},
|
|
5275
5477
|
/**
|
|
5276
5478
|
* Organizations are a way to separate different parts of your business within the same Tremendous account. You can assign users in your Tremendous team as members to any organization. Users can be members of multiple organizations at once. API keys belong to a single organization. The API key used in a request determines on behalf of which organization the request is carried out. **Important note:** When creating an organization, you are required to either pass `with_api_key` or `copy_settings[user]` in the request body as `true`. This ensures that your new Organization can either be accessed via the API or the Dashboard.
|
|
@@ -5314,12 +5516,13 @@ class OrganizationsApi extends base_1.BaseAPI {
|
|
|
5314
5516
|
/**
|
|
5315
5517
|
* Creates a new API key. The API key used to make the request will remain active. Created API keys are generated randomly and returned in the response. **You cannot retrieve them again.**
|
|
5316
5518
|
* @summary Create API key
|
|
5519
|
+
* @param {CreateApiKeyRequest} [createApiKeyRequest] Optional settings for the new API key
|
|
5317
5520
|
* @param {*} [options] Override http request option.
|
|
5318
5521
|
* @throws {RequiredError}
|
|
5319
5522
|
* @memberof OrganizationsApi
|
|
5320
5523
|
*/
|
|
5321
|
-
createApiKey(options) {
|
|
5322
|
-
return (0, exports.OrganizationsApiFp)(this.configuration).createApiKey(options).then((request) => request(this.axios, this.basePath));
|
|
5524
|
+
createApiKey(createApiKeyRequest, options) {
|
|
5525
|
+
return (0, exports.OrganizationsApiFp)(this.configuration).createApiKey(createApiKeyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5323
5526
|
}
|
|
5324
5527
|
/**
|
|
5325
5528
|
* Organizations are a way to separate different parts of your business within the same Tremendous account. You can assign users in your Tremendous team as members to any organization. Users can be members of multiple organizations at once. API keys belong to a single organization. The API key used in a request determines on behalf of which organization the request is carried out. **Important note:** When creating an organization, you are required to either pass `with_api_key` or `copy_settings[user]` in the request body as `true`. This ensures that your new Organization can either be accessed via the API or the Dashboard.
|
|
@@ -5452,10 +5655,11 @@ const ProductsApiFp = function (configuration) {
|
|
|
5452
5655
|
*/
|
|
5453
5656
|
getProduct(id, options) {
|
|
5454
5657
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5455
|
-
var _a, _b
|
|
5658
|
+
var _a, _b;
|
|
5659
|
+
var _c;
|
|
5456
5660
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProduct(id, options);
|
|
5457
|
-
const localVarOperationServerIndex = (
|
|
5458
|
-
const localVarOperationServerBasePath = (
|
|
5661
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
5662
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ProductsApi.getProduct']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5459
5663
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5460
5664
|
});
|
|
5461
5665
|
},
|
|
@@ -5470,10 +5674,11 @@ const ProductsApiFp = function (configuration) {
|
|
|
5470
5674
|
*/
|
|
5471
5675
|
listProducts(country, currency, subcategory, options) {
|
|
5472
5676
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5473
|
-
var _a, _b
|
|
5677
|
+
var _a, _b;
|
|
5678
|
+
var _c;
|
|
5474
5679
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProducts(country, currency, subcategory, options);
|
|
5475
|
-
const localVarOperationServerIndex = (
|
|
5476
|
-
const localVarOperationServerBasePath = (
|
|
5680
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
5681
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ProductsApi.listProducts']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5477
5682
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5478
5683
|
});
|
|
5479
5684
|
},
|
|
@@ -5635,10 +5840,11 @@ const ReportsApiFp = function (configuration) {
|
|
|
5635
5840
|
*/
|
|
5636
5841
|
createReport(createReportRequest, options) {
|
|
5637
5842
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5638
|
-
var _a, _b
|
|
5843
|
+
var _a, _b;
|
|
5844
|
+
var _c;
|
|
5639
5845
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createReport(createReportRequest, options);
|
|
5640
|
-
const localVarOperationServerIndex = (
|
|
5641
|
-
const localVarOperationServerBasePath = (
|
|
5846
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
5847
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReportsApi.createReport']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5642
5848
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5643
5849
|
});
|
|
5644
5850
|
},
|
|
@@ -5651,10 +5857,11 @@ const ReportsApiFp = function (configuration) {
|
|
|
5651
5857
|
*/
|
|
5652
5858
|
getReport(id, options) {
|
|
5653
5859
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5654
|
-
var _a, _b
|
|
5860
|
+
var _a, _b;
|
|
5861
|
+
var _c;
|
|
5655
5862
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReport(id, options);
|
|
5656
|
-
const localVarOperationServerIndex = (
|
|
5657
|
-
const localVarOperationServerBasePath = (
|
|
5863
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
5864
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['ReportsApi.getReport']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5658
5865
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5659
5866
|
});
|
|
5660
5867
|
},
|
|
@@ -5729,7 +5936,7 @@ exports.ReportsApi = ReportsApi;
|
|
|
5729
5936
|
const RewardsApiAxiosParamCreator = function (configuration) {
|
|
5730
5937
|
return {
|
|
5731
5938
|
/**
|
|
5732
|
-
* Cancels a reward, identified by the given `id` in the URL. Only non-expired rewards with a delivery failure can be canceled.
|
|
5939
|
+
* Cancels a reward, identified by the given `id` in the URL. Only non-expired rewards with a delivery failure can be canceled. Rewards that have already been redeemed cannot be canceled: the request fails with a `422` error and the reward is left unchanged.
|
|
5733
5940
|
* @summary Cancel reward
|
|
5734
5941
|
* @param {string} id ID of the reward that should be canceled
|
|
5735
5942
|
* @param {*} [options] Override http request option.
|
|
@@ -5906,7 +6113,7 @@ const RewardsApiFp = function (configuration) {
|
|
|
5906
6113
|
const localVarAxiosParamCreator = (0, exports.RewardsApiAxiosParamCreator)(configuration);
|
|
5907
6114
|
return {
|
|
5908
6115
|
/**
|
|
5909
|
-
* Cancels a reward, identified by the given `id` in the URL. Only non-expired rewards with a delivery failure can be canceled.
|
|
6116
|
+
* Cancels a reward, identified by the given `id` in the URL. Only non-expired rewards with a delivery failure can be canceled. Rewards that have already been redeemed cannot be canceled: the request fails with a `422` error and the reward is left unchanged.
|
|
5910
6117
|
* @summary Cancel reward
|
|
5911
6118
|
* @param {string} id ID of the reward that should be canceled
|
|
5912
6119
|
* @param {*} [options] Override http request option.
|
|
@@ -5914,10 +6121,11 @@ const RewardsApiFp = function (configuration) {
|
|
|
5914
6121
|
*/
|
|
5915
6122
|
cancelReward(id, options) {
|
|
5916
6123
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5917
|
-
var _a, _b
|
|
6124
|
+
var _a, _b;
|
|
6125
|
+
var _c;
|
|
5918
6126
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelReward(id, options);
|
|
5919
|
-
const localVarOperationServerIndex = (
|
|
5920
|
-
const localVarOperationServerBasePath = (
|
|
6127
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
6128
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['RewardsApi.cancelReward']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5921
6129
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5922
6130
|
});
|
|
5923
6131
|
},
|
|
@@ -5930,10 +6138,11 @@ const RewardsApiFp = function (configuration) {
|
|
|
5930
6138
|
*/
|
|
5931
6139
|
generateRewardLink(id, options) {
|
|
5932
6140
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5933
|
-
var _a, _b
|
|
6141
|
+
var _a, _b;
|
|
6142
|
+
var _c;
|
|
5934
6143
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateRewardLink(id, options);
|
|
5935
|
-
const localVarOperationServerIndex = (
|
|
5936
|
-
const localVarOperationServerBasePath = (
|
|
6144
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
6145
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['RewardsApi.generateRewardLink']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5937
6146
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5938
6147
|
});
|
|
5939
6148
|
},
|
|
@@ -5946,10 +6155,11 @@ const RewardsApiFp = function (configuration) {
|
|
|
5946
6155
|
*/
|
|
5947
6156
|
getReward(id, options) {
|
|
5948
6157
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5949
|
-
var _a, _b
|
|
6158
|
+
var _a, _b;
|
|
6159
|
+
var _c;
|
|
5950
6160
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReward(id, options);
|
|
5951
|
-
const localVarOperationServerIndex = (
|
|
5952
|
-
const localVarOperationServerBasePath = (
|
|
6161
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
6162
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['RewardsApi.getReward']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5953
6163
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5954
6164
|
});
|
|
5955
6165
|
},
|
|
@@ -5963,10 +6173,11 @@ const RewardsApiFp = function (configuration) {
|
|
|
5963
6173
|
*/
|
|
5964
6174
|
listRewards(offset, limit, options) {
|
|
5965
6175
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5966
|
-
var _a, _b
|
|
6176
|
+
var _a, _b;
|
|
6177
|
+
var _c;
|
|
5967
6178
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.listRewards(offset, limit, options);
|
|
5968
|
-
const localVarOperationServerIndex = (
|
|
5969
|
-
const localVarOperationServerBasePath = (
|
|
6179
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
6180
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['RewardsApi.listRewards']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5970
6181
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5971
6182
|
});
|
|
5972
6183
|
},
|
|
@@ -5980,10 +6191,11 @@ const RewardsApiFp = function (configuration) {
|
|
|
5980
6191
|
*/
|
|
5981
6192
|
resendReward(id, resendRewardRequest, options) {
|
|
5982
6193
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5983
|
-
var _a, _b
|
|
6194
|
+
var _a, _b;
|
|
6195
|
+
var _c;
|
|
5984
6196
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.resendReward(id, resendRewardRequest, options);
|
|
5985
|
-
const localVarOperationServerIndex = (
|
|
5986
|
-
const localVarOperationServerBasePath = (
|
|
6197
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
6198
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['RewardsApi.resendReward']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5987
6199
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5988
6200
|
});
|
|
5989
6201
|
},
|
|
@@ -5998,7 +6210,7 @@ const RewardsApiFactory = function (configuration, basePath, axios) {
|
|
|
5998
6210
|
const localVarFp = (0, exports.RewardsApiFp)(configuration);
|
|
5999
6211
|
return {
|
|
6000
6212
|
/**
|
|
6001
|
-
* Cancels a reward, identified by the given `id` in the URL. Only non-expired rewards with a delivery failure can be canceled.
|
|
6213
|
+
* Cancels a reward, identified by the given `id` in the URL. Only non-expired rewards with a delivery failure can be canceled. Rewards that have already been redeemed cannot be canceled: the request fails with a `422` error and the reward is left unchanged.
|
|
6002
6214
|
* @summary Cancel reward
|
|
6003
6215
|
* @param {string} id ID of the reward that should be canceled
|
|
6004
6216
|
* @param {*} [options] Override http request option.
|
|
@@ -6060,7 +6272,7 @@ exports.RewardsApiFactory = RewardsApiFactory;
|
|
|
6060
6272
|
*/
|
|
6061
6273
|
class RewardsApi extends base_1.BaseAPI {
|
|
6062
6274
|
/**
|
|
6063
|
-
* Cancels a reward, identified by the given `id` in the URL. Only non-expired rewards with a delivery failure can be canceled.
|
|
6275
|
+
* Cancels a reward, identified by the given `id` in the URL. Only non-expired rewards with a delivery failure can be canceled. Rewards that have already been redeemed cannot be canceled: the request fails with a `422` error and the reward is left unchanged.
|
|
6064
6276
|
* @summary Cancel reward
|
|
6065
6277
|
* @param {string} id ID of the reward that should be canceled
|
|
6066
6278
|
* @param {*} [options] Override http request option.
|
|
@@ -6170,10 +6382,11 @@ const RolesApiFp = function (configuration) {
|
|
|
6170
6382
|
*/
|
|
6171
6383
|
listRoles(options) {
|
|
6172
6384
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6173
|
-
var _a, _b
|
|
6385
|
+
var _a, _b;
|
|
6386
|
+
var _c;
|
|
6174
6387
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.listRoles(options);
|
|
6175
|
-
const localVarOperationServerIndex = (
|
|
6176
|
-
const localVarOperationServerBasePath = (
|
|
6388
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
6389
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['RolesApi.listRoles']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6177
6390
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6178
6391
|
});
|
|
6179
6392
|
},
|
|
@@ -6338,10 +6551,11 @@ const TopupsApiFp = function (configuration) {
|
|
|
6338
6551
|
*/
|
|
6339
6552
|
createTopup(createTopupRequest, options) {
|
|
6340
6553
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6341
|
-
var _a, _b
|
|
6554
|
+
var _a, _b;
|
|
6555
|
+
var _c;
|
|
6342
6556
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createTopup(createTopupRequest, options);
|
|
6343
|
-
const localVarOperationServerIndex = (
|
|
6344
|
-
const localVarOperationServerBasePath = (
|
|
6557
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
6558
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['TopupsApi.createTopup']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6345
6559
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6346
6560
|
});
|
|
6347
6561
|
},
|
|
@@ -6354,10 +6568,11 @@ const TopupsApiFp = function (configuration) {
|
|
|
6354
6568
|
*/
|
|
6355
6569
|
getTopup(id, options) {
|
|
6356
6570
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6357
|
-
var _a, _b
|
|
6571
|
+
var _a, _b;
|
|
6572
|
+
var _c;
|
|
6358
6573
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTopup(id, options);
|
|
6359
|
-
const localVarOperationServerIndex = (
|
|
6360
|
-
const localVarOperationServerBasePath = (
|
|
6574
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
6575
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['TopupsApi.getTopup']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6361
6576
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6362
6577
|
});
|
|
6363
6578
|
},
|
|
@@ -6370,10 +6585,11 @@ const TopupsApiFp = function (configuration) {
|
|
|
6370
6585
|
*/
|
|
6371
6586
|
listTopups(offset, options) {
|
|
6372
6587
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6373
|
-
var _a, _b
|
|
6588
|
+
var _a, _b;
|
|
6589
|
+
var _c;
|
|
6374
6590
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.listTopups(offset, options);
|
|
6375
|
-
const localVarOperationServerIndex = (
|
|
6376
|
-
const localVarOperationServerBasePath = (
|
|
6591
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
6592
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['TopupsApi.listTopups']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6377
6593
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6378
6594
|
});
|
|
6379
6595
|
},
|
|
@@ -6681,10 +6897,11 @@ const WebhooksApiFp = function (configuration) {
|
|
|
6681
6897
|
*/
|
|
6682
6898
|
createWebhook(createWebhookRequest, options) {
|
|
6683
6899
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6684
|
-
var _a, _b
|
|
6900
|
+
var _a, _b;
|
|
6901
|
+
var _c;
|
|
6685
6902
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.createWebhook(createWebhookRequest, options);
|
|
6686
|
-
const localVarOperationServerIndex = (
|
|
6687
|
-
const localVarOperationServerBasePath = (
|
|
6903
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
6904
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WebhooksApi.createWebhook']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6688
6905
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6689
6906
|
});
|
|
6690
6907
|
},
|
|
@@ -6697,10 +6914,11 @@ const WebhooksApiFp = function (configuration) {
|
|
|
6697
6914
|
*/
|
|
6698
6915
|
deleteWebhook(id, options) {
|
|
6699
6916
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6700
|
-
var _a, _b
|
|
6917
|
+
var _a, _b;
|
|
6918
|
+
var _c;
|
|
6701
6919
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWebhook(id, options);
|
|
6702
|
-
const localVarOperationServerIndex = (
|
|
6703
|
-
const localVarOperationServerBasePath = (
|
|
6920
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
6921
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WebhooksApi.deleteWebhook']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6704
6922
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6705
6923
|
});
|
|
6706
6924
|
},
|
|
@@ -6713,10 +6931,11 @@ const WebhooksApiFp = function (configuration) {
|
|
|
6713
6931
|
*/
|
|
6714
6932
|
getWebhook(id, options) {
|
|
6715
6933
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6716
|
-
var _a, _b
|
|
6934
|
+
var _a, _b;
|
|
6935
|
+
var _c;
|
|
6717
6936
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWebhook(id, options);
|
|
6718
|
-
const localVarOperationServerIndex = (
|
|
6719
|
-
const localVarOperationServerBasePath = (
|
|
6937
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
6938
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WebhooksApi.getWebhook']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6720
6939
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6721
6940
|
});
|
|
6722
6941
|
},
|
|
@@ -6729,10 +6948,11 @@ const WebhooksApiFp = function (configuration) {
|
|
|
6729
6948
|
*/
|
|
6730
6949
|
listWebhookEvents(id, options) {
|
|
6731
6950
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6732
|
-
var _a, _b
|
|
6951
|
+
var _a, _b;
|
|
6952
|
+
var _c;
|
|
6733
6953
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWebhookEvents(id, options);
|
|
6734
|
-
const localVarOperationServerIndex = (
|
|
6735
|
-
const localVarOperationServerBasePath = (
|
|
6954
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
6955
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WebhooksApi.listWebhookEvents']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6736
6956
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6737
6957
|
});
|
|
6738
6958
|
},
|
|
@@ -6744,10 +6964,11 @@ const WebhooksApiFp = function (configuration) {
|
|
|
6744
6964
|
*/
|
|
6745
6965
|
listWebhooks(options) {
|
|
6746
6966
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6747
|
-
var _a, _b
|
|
6967
|
+
var _a, _b;
|
|
6968
|
+
var _c;
|
|
6748
6969
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWebhooks(options);
|
|
6749
|
-
const localVarOperationServerIndex = (
|
|
6750
|
-
const localVarOperationServerBasePath = (
|
|
6970
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
6971
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WebhooksApi.listWebhooks']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6751
6972
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6752
6973
|
});
|
|
6753
6974
|
},
|
|
@@ -6761,10 +6982,11 @@ const WebhooksApiFp = function (configuration) {
|
|
|
6761
6982
|
*/
|
|
6762
6983
|
simulateWebhook(id, simulateWebhookRequest, options) {
|
|
6763
6984
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6764
|
-
var _a, _b
|
|
6985
|
+
var _a, _b;
|
|
6986
|
+
var _c;
|
|
6765
6987
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.simulateWebhook(id, simulateWebhookRequest, options);
|
|
6766
|
-
const localVarOperationServerIndex = (
|
|
6767
|
-
const localVarOperationServerBasePath = (
|
|
6988
|
+
const localVarOperationServerIndex = (_c = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _c !== void 0 ? _c : 0;
|
|
6989
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WebhooksApi.simulateWebhook']) === null || _a === void 0 ? void 0 : _a[localVarOperationServerIndex]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6768
6990
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6769
6991
|
});
|
|
6770
6992
|
},
|