@tammsyr/admin-api-client 1.3.7 → 1.3.8
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/README.md +0 -1
- package/dist/Accounts.d.ts +3 -3
- package/dist/Accounts.js +2 -2
- package/dist/ActivityLogs.d.ts.map +1 -1
- package/dist/ActivityLogs.js.map +1 -1
- package/dist/AppVersion.js.map +1 -1
- package/dist/ApprovalPolicies.d.ts +2 -2
- package/dist/ApprovalPolicies.d.ts.map +1 -1
- package/dist/ApprovalPolicies.js.map +1 -1
- package/dist/BankBranches.d.ts.map +1 -1
- package/dist/BankBranches.js.map +1 -1
- package/dist/ChargeDecisionRules.d.ts +57 -0
- package/dist/ChargeDecisionRules.d.ts.map +1 -0
- package/dist/ChargeDecisionRules.js +106 -0
- package/dist/ChargeDecisionRules.js.map +1 -0
- package/dist/ChargeSchemaItems.d.ts +57 -0
- package/dist/ChargeSchemaItems.d.ts.map +1 -0
- package/dist/ChargeSchemaItems.js +106 -0
- package/dist/ChargeSchemaItems.js.map +1 -0
- package/dist/ChargeSchemas.d.ts +57 -0
- package/dist/ChargeSchemas.d.ts.map +1 -0
- package/dist/ChargeSchemas.js +105 -0
- package/dist/ChargeSchemas.js.map +1 -0
- package/dist/ChargeTiers.d.ts +57 -0
- package/dist/ChargeTiers.d.ts.map +1 -0
- package/dist/ChargeTiers.js +106 -0
- package/dist/ChargeTiers.js.map +1 -0
- package/dist/Charges.d.ts +57 -0
- package/dist/Charges.d.ts.map +1 -0
- package/dist/Charges.js +106 -0
- package/dist/Charges.js.map +1 -0
- package/dist/Currencies.js.map +1 -1
- package/dist/Dlq.d.ts.map +1 -1
- package/dist/Dlq.js.map +1 -1
- package/dist/FeeConfigs.d.ts +5 -5
- package/dist/FeeConfigs.d.ts.map +1 -1
- package/dist/GlobalNotifications.js.map +1 -1
- package/dist/MerchantCategories.d.ts.map +1 -1
- package/dist/MerchantCategories.js.map +1 -1
- package/dist/Notifications.d.ts.map +1 -1
- package/dist/Transactions.d.ts +3 -3
- package/dist/Transactions.d.ts.map +1 -1
- package/dist/Users.js.map +1 -1
- package/dist/data-contracts.d.ts +463 -349
- package/dist/data-contracts.d.ts.map +1 -1
- package/dist/index.d.ts +15 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -73,7 +73,6 @@ main().catch(console.error);
|
|
|
73
73
|
| `adminClient.roles` | Role management |
|
|
74
74
|
| `adminClient.permissions` | Permission management |
|
|
75
75
|
| `adminClient.agents` | Agent management |
|
|
76
|
-
| `adminClient.agentSettlements` | Agent settlement management |
|
|
77
76
|
| `adminClient.kyc` | KYC management |
|
|
78
77
|
| `adminClient.notifications` | Notification management |
|
|
79
78
|
| `adminClient.activityLogs` | Activity log queries |
|
package/dist/Accounts.d.ts
CHANGED
|
@@ -24,15 +24,15 @@ export declare class Accounts<SecurityDataType = unknown> {
|
|
|
24
24
|
*/
|
|
25
25
|
listAccounts: (query: ListAccountsParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").AccountListResponseDto, any, {}>>;
|
|
26
26
|
/**
|
|
27
|
-
* @description
|
|
27
|
+
* @description Issues money from an internal/house account (treasury, clearing, suspense, escrow — the admin chooses) into a customer wallet, with an optional commission-engine fee (transaction type ADMIN_FUNDING). Records an ADMIN_FUNDING transaction + balanced ledger entries for full auditability. Target must be an active customer account matching the currency. Subject to four-eyes approval — funds move only after the required approvals.
|
|
28
28
|
*
|
|
29
29
|
* @tags Admin Accounts
|
|
30
30
|
* @name FundAccount
|
|
31
|
-
* @summary Fund an account
|
|
31
|
+
* @summary Fund an account from an internal account
|
|
32
32
|
* @request POST:/accounts/fund
|
|
33
33
|
* @secure
|
|
34
34
|
*/
|
|
35
|
-
fundAccount: (data: FundAccountDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").
|
|
35
|
+
fundAccount: (data: FundAccountDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").FundAccountResponseDto, any, {}>>;
|
|
36
36
|
/**
|
|
37
37
|
* @description Get account details including owner (person) information and paginated transaction history.
|
|
38
38
|
*
|
package/dist/Accounts.js
CHANGED
|
@@ -49,11 +49,11 @@ class Accounts {
|
|
|
49
49
|
...params,
|
|
50
50
|
});
|
|
51
51
|
/**
|
|
52
|
-
* @description
|
|
52
|
+
* @description Issues money from an internal/house account (treasury, clearing, suspense, escrow — the admin chooses) into a customer wallet, with an optional commission-engine fee (transaction type ADMIN_FUNDING). Records an ADMIN_FUNDING transaction + balanced ledger entries for full auditability. Target must be an active customer account matching the currency. Subject to four-eyes approval — funds move only after the required approvals.
|
|
53
53
|
*
|
|
54
54
|
* @tags Admin Accounts
|
|
55
55
|
* @name FundAccount
|
|
56
|
-
* @summary Fund an account
|
|
56
|
+
* @summary Fund an account from an internal account
|
|
57
57
|
* @request POST:/accounts/fund
|
|
58
58
|
* @secure
|
|
59
59
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActivityLogs.d.ts","sourceRoot":"","sources":["../ActivityLogs.ts"],"names":[],"mappings":"AAYA,OAAO,
|
|
1
|
+
{"version":3,"file":"ActivityLogs.d.ts","sourceRoot":"","sources":["../ActivityLogs.ts"],"names":[],"mappings":"AAYA,OAAO,EAAgB,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE1D,qBAAa,YAAY,CAAC,gBAAgB,GAAG,OAAO;IAClD,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;gBAEvB,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAI9C;;;;;;;;OAQG;IACH,OAAO,GAAI,OAAO,cAAc,EAAE,SAAQ,aAAkB,4GAQvD;CACN"}
|
package/dist/ActivityLogs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActivityLogs.js","sourceRoot":"","sources":["../ActivityLogs.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;;;AAKH,MAAa,YAAY;IAGvB,YAAY,IAAkC;QAI9C;;;;;;;;WAQG;QACH,YAAO,GAAG,CAAC,KAAqB,EAAE,SAAwB,EAAE,EAAE,EAAE,CAC9D,IAAI,CAAC,IAAI,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"ActivityLogs.js","sourceRoot":"","sources":["../ActivityLogs.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;;;AAKH,MAAa,YAAY;IAGvB,YAAY,IAAkC;QAI9C;;;;;;;;WAQG;QACH,YAAO,GAAG,CAAC,KAAqB,EAAE,SAAwB,EAAE,EAAE,EAAE,CAC9D,IAAI,CAAC,IAAI,CAAC,OAAO,CAAoB;YACnC,IAAI,EAAE,gBAAgB;YACtB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QApBH,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CAoBF;AAzBD,oCAyBC"}
|
package/dist/AppVersion.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppVersion.js","sourceRoot":"","sources":["../AppVersion.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;;;AASH,+CAAuE;AAEvE,MAAa,UAAU;IAGrB,YAAY,IAAkC;QAI9C;;;;;;;;WAQG;QACH,SAAI,GAAG,CAAC,SAAwB,EAAE,EAAE,EAAE,CACpC,IAAI,CAAC,IAAI,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"AppVersion.js","sourceRoot":"","sources":["../AppVersion.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;;;AASH,+CAAuE;AAEvE,MAAa,UAAU;IAGrB,YAAY,IAAkC;QAI9C;;;;;;;;WAQG;QACH,SAAI,GAAG,CAAC,SAAwB,EAAE,EAAE,EAAE,CACpC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAiB;YAChC,IAAI,EAAE,uBAAuB;YAC7B,MAAM,EAAE,KAAK;YACb,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,WAAM,GAAG,CAAC,IAAmC,EAAE,SAAwB,EAAE,EAAE,EAAE,CAC3E,IAAI,CAAC,IAAI,CAAC,OAAO,CAAmB;YAClC,IAAI,EAAE,uBAAuB;YAC7B,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,yBAAW,CAAC,IAAI;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,QAAG,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAc,EAAE,SAAwB,EAAE,EAAE,EAAE,CACvE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAkB;YACjC,IAAI,EAAE,yBAAyB,QAAQ,EAAE;YACzC,MAAM,EAAE,KAAK;YACb,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QAvDH,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CAuDF;AA5DD,gCA4DC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ListData4, UpdateApprovalPolicyDto, UpdateParams20 } from "./data-contracts";
|
|
2
2
|
import { HttpClient, RequestParams } from "./http-client";
|
|
3
3
|
export declare class ApprovalPolicies<SecurityDataType = unknown> {
|
|
4
4
|
http: HttpClient<SecurityDataType>;
|
|
@@ -12,7 +12,7 @@ export declare class ApprovalPolicies<SecurityDataType = unknown> {
|
|
|
12
12
|
* @request GET:/approval-policies
|
|
13
13
|
* @secure
|
|
14
14
|
*/
|
|
15
|
-
list: (params?: RequestParams) => Promise<import("axios").AxiosResponse<
|
|
15
|
+
list: (params?: RequestParams) => Promise<import("axios").AxiosResponse<ListData4, any, {}>>;
|
|
16
16
|
/**
|
|
17
17
|
* @description Change quorum, TTL, self-approval or super-admin exemption for a gated action. Lowering quorum is a sensitive control change and is audited.
|
|
18
18
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApprovalPolicies.d.ts","sourceRoot":"","sources":["../ApprovalPolicies.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"ApprovalPolicies.d.ts","sourceRoot":"","sources":["../ApprovalPolicies.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,SAAS,EACT,uBAAuB,EAEvB,cAAc,EACf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAe,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEvE,qBAAa,gBAAgB,CAAC,gBAAgB,GAAG,OAAO;IACtD,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;gBAEvB,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAI9C;;;;;;;;OAQG;IACH,IAAI,GAAI,SAAQ,aAAkB,gEAO7B;IACL;;;;;;;;OAQG;IACH,MAAM,GACJ,0BAA0B,cAAc,EACxC,MAAM,uBAAuB,EAC7B,SAAQ,aAAkB,2GAUvB;CACN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApprovalPolicies.js","sourceRoot":"","sources":["../ApprovalPolicies.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;;;AAQH,+CAAuE;AAEvE,MAAa,gBAAgB;IAG3B,YAAY,IAAkC;QAI9C;;;;;;;;WAQG;QACH,SAAI,GAAG,CAAC,SAAwB,EAAE,EAAE,EAAE,CACpC,IAAI,CAAC,IAAI,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"ApprovalPolicies.js","sourceRoot":"","sources":["../ApprovalPolicies.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;;;AAQH,+CAAuE;AAEvE,MAAa,gBAAgB;IAG3B,YAAY,IAAkC;QAI9C;;;;;;;;WAQG;QACH,SAAI,GAAG,CAAC,SAAwB,EAAE,EAAE,EAAE,CACpC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAiB;YAChC,IAAI,EAAE,oBAAoB;YAC1B,MAAM,EAAE,KAAK;YACb,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,WAAM,GAAG,CACP,EAAE,UAAU,EAAE,GAAG,KAAK,EAAkB,EACxC,IAA6B,EAC7B,SAAwB,EAAE,EAC1B,EAAE,CACF,IAAI,CAAC,IAAI,CAAC,OAAO,CAAsB;YACrC,IAAI,EAAE,sBAAsB,UAAU,EAAE;YACxC,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,yBAAW,CAAC,IAAI;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QA1CH,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CA0CF;AA/CD,4CA+CC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BankBranches.d.ts","sourceRoot":"","sources":["../BankBranches.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,mBAAmB,EAGnB,eAAe,EAEf,WAAW,EACX,mBAAmB,
|
|
1
|
+
{"version":3,"file":"BankBranches.d.ts","sourceRoot":"","sources":["../BankBranches.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,mBAAmB,EAGnB,eAAe,EAEf,WAAW,EACX,mBAAmB,EACnB,cAAc,EAEf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAe,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEvE,qBAAa,YAAY,CAAC,gBAAgB,GAAG,OAAO;IAClD,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;gBAEvB,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAI9C;;;;;;;;OAQG;IACH,IAAI,GAAI,OAAO,WAAW,EAAE,SAAQ,aAAkB,6GAQjD;IACL;;;;;;;;OAQG;IACH,MAAM,GAAI,MAAM,mBAAmB,EAAE,SAAQ,aAAkB,uGAS1D;IACL;;;;;;;;OAQG;IACH,SAAS,GACP,oBAAoB,eAAe,EACnC,SAAQ,aAAkB,uGAQvB;IACL;;;;;;;;OAQG;IACH,MAAM,GACJ,oBAAoB,cAAc,EAClC,MAAM,mBAAmB,EACzB,SAAQ,aAAkB,uGAUvB;CACN"}
|
package/dist/BankBranches.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BankBranches.js","sourceRoot":"","sources":["../BankBranches.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;;;AAaH,+CAAuE;AAEvE,MAAa,YAAY;IAGvB,YAAY,IAAkC;QAI9C;;;;;;;;WAQG;QACH,SAAI,GAAG,CAAC,KAAkB,EAAE,SAAwB,EAAE,EAAE,EAAE,CACxD,IAAI,CAAC,IAAI,CAAC,OAAO,CAAiB;YAChC,IAAI,EAAE,gBAAgB;YACtB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,MAAM;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AAC;QACL;;;;;;;;WAQG;QACH,WAAM,GAAG,CACP,EAAE,IAAI,EAAE,GAAG,KAAK,EAAkB,EAClC,IAAyB,EACzB,SAAwB,EAAE,EAC1B,EAAE,CACF,IAAI,CAAC,IAAI,CAAC,OAAO,CAAqB;YACpC,IAAI,EAAE,kBAAkB,IAAI,EAAE;YAC9B,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,yBAAW,CAAC,IAAI;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QAlFH,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CAkFF;AAvFD,oCAuFC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { CreateDecisionRuleDto, DeleteDecisionRuleParams, GetDecisionRuleParams, ListDecisionRulesParams, UpdateDecisionRuleDto, UpdateDecisionRuleParams } from "./data-contracts";
|
|
2
|
+
import { HttpClient, RequestParams } from "./http-client";
|
|
3
|
+
export declare class ChargeDecisionRules<SecurityDataType = unknown> {
|
|
4
|
+
http: HttpClient<SecurityDataType>;
|
|
5
|
+
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
+
/**
|
|
7
|
+
* @description The (type × cif-type × channel × customer) → schema mapping, optionally filtered. Returned grouped by type, highest priority first.
|
|
8
|
+
*
|
|
9
|
+
* @tags Charge Decision Rules
|
|
10
|
+
* @name ListDecisionRules
|
|
11
|
+
* @summary List commission decision rules
|
|
12
|
+
* @request GET:/charge-decision-rules
|
|
13
|
+
* @secure
|
|
14
|
+
*/
|
|
15
|
+
listDecisionRules: (query: ListDecisionRulesParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").DecisionRuleListResponseDto, any, {}>>;
|
|
16
|
+
/**
|
|
17
|
+
* @description Maps a tuple to a schema. Higher priority wins when several match.
|
|
18
|
+
*
|
|
19
|
+
* @tags Charge Decision Rules
|
|
20
|
+
* @name CreateDecisionRule
|
|
21
|
+
* @summary Create a decision rule
|
|
22
|
+
* @request POST:/charge-decision-rules
|
|
23
|
+
* @secure
|
|
24
|
+
*/
|
|
25
|
+
createDecisionRule: (data: CreateDecisionRuleDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").DecisionRuleResponseDto, any, {}>>;
|
|
26
|
+
/**
|
|
27
|
+
* No description
|
|
28
|
+
*
|
|
29
|
+
* @tags Charge Decision Rules
|
|
30
|
+
* @name GetDecisionRule
|
|
31
|
+
* @summary Get a decision rule by id
|
|
32
|
+
* @request GET:/charge-decision-rules/{id}
|
|
33
|
+
* @secure
|
|
34
|
+
*/
|
|
35
|
+
getDecisionRule: ({ id, ...query }: GetDecisionRuleParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").DecisionRuleResponseDto, any, {}>>;
|
|
36
|
+
/**
|
|
37
|
+
* No description
|
|
38
|
+
*
|
|
39
|
+
* @tags Charge Decision Rules
|
|
40
|
+
* @name UpdateDecisionRule
|
|
41
|
+
* @summary Update a decision rule
|
|
42
|
+
* @request PATCH:/charge-decision-rules/{id}
|
|
43
|
+
* @secure
|
|
44
|
+
*/
|
|
45
|
+
updateDecisionRule: ({ id, ...query }: UpdateDecisionRuleParams, data: UpdateDecisionRuleDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").DecisionRuleResponseDto, any, {}>>;
|
|
46
|
+
/**
|
|
47
|
+
* No description
|
|
48
|
+
*
|
|
49
|
+
* @tags Charge Decision Rules
|
|
50
|
+
* @name DeleteDecisionRule
|
|
51
|
+
* @summary Delete a decision rule
|
|
52
|
+
* @request DELETE:/charge-decision-rules/{id}
|
|
53
|
+
* @secure
|
|
54
|
+
*/
|
|
55
|
+
deleteDecisionRule: ({ id, ...query }: DeleteDecisionRuleParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=ChargeDecisionRules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChargeDecisionRules.d.ts","sourceRoot":"","sources":["../ChargeDecisionRules.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,qBAAqB,EAIrB,wBAAwB,EAGxB,qBAAqB,EAErB,uBAAuB,EAEvB,qBAAqB,EAErB,wBAAwB,EACzB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAe,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEvE,qBAAa,mBAAmB,CAAC,gBAAgB,GAAG,OAAO;IACzD,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;gBAEvB,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAI9C;;;;;;;;OAQG;IACH,iBAAiB,GACf,OAAO,uBAAuB,EAC9B,SAAQ,aAAkB,6GASvB;IACL;;;;;;;;OAQG;IACH,kBAAkB,GAChB,MAAM,qBAAqB,EAC3B,SAAQ,aAAkB,yGAUvB;IACL;;;;;;;;OAQG;IACH,eAAe,GACb,kBAAkB,qBAAqB,EACvC,SAAQ,aAAkB,yGAQvB;IACL;;;;;;;;OAQG;IACH,kBAAkB,GAChB,kBAAkB,wBAAwB,EAC1C,MAAM,qBAAqB,EAC3B,SAAQ,aAAkB,yGAUvB;IACL;;;;;;;;OAQG;IACH,kBAAkB,GAChB,kBAAkB,wBAAwB,EAC1C,SAAQ,aAAkB,0DAOvB;CACN"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
/*
|
|
6
|
+
* ---------------------------------------------------------------
|
|
7
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
8
|
+
* ## ##
|
|
9
|
+
* ## AUTHOR: acacode ##
|
|
10
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
11
|
+
* ---------------------------------------------------------------
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.ChargeDecisionRules = void 0;
|
|
15
|
+
const http_client_1 = require("./http-client");
|
|
16
|
+
class ChargeDecisionRules {
|
|
17
|
+
constructor(http) {
|
|
18
|
+
/**
|
|
19
|
+
* @description The (type × cif-type × channel × customer) → schema mapping, optionally filtered. Returned grouped by type, highest priority first.
|
|
20
|
+
*
|
|
21
|
+
* @tags Charge Decision Rules
|
|
22
|
+
* @name ListDecisionRules
|
|
23
|
+
* @summary List commission decision rules
|
|
24
|
+
* @request GET:/charge-decision-rules
|
|
25
|
+
* @secure
|
|
26
|
+
*/
|
|
27
|
+
this.listDecisionRules = (query, params = {}) => this.http.request({
|
|
28
|
+
path: `/charge-decision-rules`,
|
|
29
|
+
method: "GET",
|
|
30
|
+
query: query,
|
|
31
|
+
secure: true,
|
|
32
|
+
format: "json",
|
|
33
|
+
...params,
|
|
34
|
+
});
|
|
35
|
+
/**
|
|
36
|
+
* @description Maps a tuple to a schema. Higher priority wins when several match.
|
|
37
|
+
*
|
|
38
|
+
* @tags Charge Decision Rules
|
|
39
|
+
* @name CreateDecisionRule
|
|
40
|
+
* @summary Create a decision rule
|
|
41
|
+
* @request POST:/charge-decision-rules
|
|
42
|
+
* @secure
|
|
43
|
+
*/
|
|
44
|
+
this.createDecisionRule = (data, params = {}) => this.http.request({
|
|
45
|
+
path: `/charge-decision-rules`,
|
|
46
|
+
method: "POST",
|
|
47
|
+
body: data,
|
|
48
|
+
secure: true,
|
|
49
|
+
type: http_client_1.ContentType.Json,
|
|
50
|
+
format: "json",
|
|
51
|
+
...params,
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* No description
|
|
55
|
+
*
|
|
56
|
+
* @tags Charge Decision Rules
|
|
57
|
+
* @name GetDecisionRule
|
|
58
|
+
* @summary Get a decision rule by id
|
|
59
|
+
* @request GET:/charge-decision-rules/{id}
|
|
60
|
+
* @secure
|
|
61
|
+
*/
|
|
62
|
+
this.getDecisionRule = ({ id, ...query }, params = {}) => this.http.request({
|
|
63
|
+
path: `/charge-decision-rules/${id}`,
|
|
64
|
+
method: "GET",
|
|
65
|
+
secure: true,
|
|
66
|
+
format: "json",
|
|
67
|
+
...params,
|
|
68
|
+
});
|
|
69
|
+
/**
|
|
70
|
+
* No description
|
|
71
|
+
*
|
|
72
|
+
* @tags Charge Decision Rules
|
|
73
|
+
* @name UpdateDecisionRule
|
|
74
|
+
* @summary Update a decision rule
|
|
75
|
+
* @request PATCH:/charge-decision-rules/{id}
|
|
76
|
+
* @secure
|
|
77
|
+
*/
|
|
78
|
+
this.updateDecisionRule = ({ id, ...query }, data, params = {}) => this.http.request({
|
|
79
|
+
path: `/charge-decision-rules/${id}`,
|
|
80
|
+
method: "PATCH",
|
|
81
|
+
body: data,
|
|
82
|
+
secure: true,
|
|
83
|
+
type: http_client_1.ContentType.Json,
|
|
84
|
+
format: "json",
|
|
85
|
+
...params,
|
|
86
|
+
});
|
|
87
|
+
/**
|
|
88
|
+
* No description
|
|
89
|
+
*
|
|
90
|
+
* @tags Charge Decision Rules
|
|
91
|
+
* @name DeleteDecisionRule
|
|
92
|
+
* @summary Delete a decision rule
|
|
93
|
+
* @request DELETE:/charge-decision-rules/{id}
|
|
94
|
+
* @secure
|
|
95
|
+
*/
|
|
96
|
+
this.deleteDecisionRule = ({ id, ...query }, params = {}) => this.http.request({
|
|
97
|
+
path: `/charge-decision-rules/${id}`,
|
|
98
|
+
method: "DELETE",
|
|
99
|
+
secure: true,
|
|
100
|
+
...params,
|
|
101
|
+
});
|
|
102
|
+
this.http = http;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
exports.ChargeDecisionRules = ChargeDecisionRules;
|
|
106
|
+
//# sourceMappingURL=ChargeDecisionRules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChargeDecisionRules.js","sourceRoot":"","sources":["../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jE,IAAI,EAAE,0BAA0B,EAAE,EAAE;YACpC,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,yBAAW,CAAC,IAAI;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,uBAAkB,GAAG,CACnB,EAAE,EAAE,EAAE,GAAG,KAAK,EAA4B,EAC1C,SAAwB,EAAE,EAC1B,EAAE,CACF,IAAI,CAAC,IAAI,CAAC,OAAO,CAAkD;YACjE,IAAI,EAAE,0BAA0B,EAAE,EAAE;YACpC,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,IAAI;YACZ,GAAG,MAAM;SACV,CAAC,CAAC;QA3GH,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CA2GF;AAhHD,kDAgHC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { CreateChargeSchemaItemDto, DeleteChargeSchemaItemParams, GetChargeSchemaItemParams, ListChargeSchemaItemsParams, UpdateChargeSchemaItemDto, UpdateChargeSchemaItemParams } from "./data-contracts";
|
|
2
|
+
import { HttpClient, RequestParams } from "./http-client";
|
|
3
|
+
export declare class ChargeSchemaItems<SecurityDataType = unknown> {
|
|
4
|
+
http: HttpClient<SecurityDataType>;
|
|
5
|
+
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
+
/**
|
|
7
|
+
* @description The charges bundled into schemas, optionally filtered.
|
|
8
|
+
*
|
|
9
|
+
* @tags Charge Schema Items
|
|
10
|
+
* @name ListChargeSchemaItems
|
|
11
|
+
* @summary List charge-schema items (components)
|
|
12
|
+
* @request GET:/charge-schema-items
|
|
13
|
+
* @secure
|
|
14
|
+
*/
|
|
15
|
+
listChargeSchemaItems: (query: ListChargeSchemaItemsParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").ChargeSchemaItemListResponseDto, any, {}>>;
|
|
16
|
+
/**
|
|
17
|
+
* @description Bundles a charge into a package and sets which party bears it.
|
|
18
|
+
*
|
|
19
|
+
* @tags Charge Schema Items
|
|
20
|
+
* @name CreateChargeSchemaItem
|
|
21
|
+
* @summary Add a charge to a schema
|
|
22
|
+
* @request POST:/charge-schema-items
|
|
23
|
+
* @secure
|
|
24
|
+
*/
|
|
25
|
+
createChargeSchemaItem: (data: CreateChargeSchemaItemDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").ChargeSchemaItemResponseDto, any, {}>>;
|
|
26
|
+
/**
|
|
27
|
+
* No description
|
|
28
|
+
*
|
|
29
|
+
* @tags Charge Schema Items
|
|
30
|
+
* @name GetChargeSchemaItem
|
|
31
|
+
* @summary Get a charge-schema item by id
|
|
32
|
+
* @request GET:/charge-schema-items/{id}
|
|
33
|
+
* @secure
|
|
34
|
+
*/
|
|
35
|
+
getChargeSchemaItem: ({ id, ...query }: GetChargeSchemaItemParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").ChargeSchemaItemResponseDto, any, {}>>;
|
|
36
|
+
/**
|
|
37
|
+
* No description
|
|
38
|
+
*
|
|
39
|
+
* @tags Charge Schema Items
|
|
40
|
+
* @name UpdateChargeSchemaItem
|
|
41
|
+
* @summary Update a charge-schema item
|
|
42
|
+
* @request PATCH:/charge-schema-items/{id}
|
|
43
|
+
* @secure
|
|
44
|
+
*/
|
|
45
|
+
updateChargeSchemaItem: ({ id, ...query }: UpdateChargeSchemaItemParams, data: UpdateChargeSchemaItemDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").ChargeSchemaItemResponseDto, any, {}>>;
|
|
46
|
+
/**
|
|
47
|
+
* No description
|
|
48
|
+
*
|
|
49
|
+
* @tags Charge Schema Items
|
|
50
|
+
* @name DeleteChargeSchemaItem
|
|
51
|
+
* @summary Remove a charge from a schema
|
|
52
|
+
* @request DELETE:/charge-schema-items/{id}
|
|
53
|
+
* @secure
|
|
54
|
+
*/
|
|
55
|
+
deleteChargeSchemaItem: ({ id, ...query }: DeleteChargeSchemaItemParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=ChargeSchemaItems.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChargeSchemaItems.d.ts","sourceRoot":"","sources":["../ChargeSchemaItems.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,yBAAyB,EAIzB,4BAA4B,EAG5B,yBAAyB,EAEzB,2BAA2B,EAE3B,yBAAyB,EAEzB,4BAA4B,EAC7B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAe,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEvE,qBAAa,iBAAiB,CAAC,gBAAgB,GAAG,OAAO;IACvD,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;gBAEvB,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAI9C;;;;;;;;OAQG;IACH,qBAAqB,GACnB,OAAO,2BAA2B,EAClC,SAAQ,aAAkB,iHASvB;IACL;;;;;;;;OAQG;IACH,sBAAsB,GACpB,MAAM,yBAAyB,EAC/B,SAAQ,aAAkB,6GAUvB;IACL;;;;;;;;OAQG;IACH,mBAAmB,GACjB,kBAAkB,yBAAyB,EAC3C,SAAQ,aAAkB,6GAQvB;IACL;;;;;;;;OAQG;IACH,sBAAsB,GACpB,kBAAkB,4BAA4B,EAC9C,MAAM,yBAAyB,EAC/B,SAAQ,aAAkB,6GAUvB;IACL;;;;;;;;OAQG;IACH,sBAAsB,GACpB,kBAAkB,4BAA4B,EAC9C,SAAQ,aAAkB,0DAOvB;CACN"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
/*
|
|
6
|
+
* ---------------------------------------------------------------
|
|
7
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
8
|
+
* ## ##
|
|
9
|
+
* ## AUTHOR: acacode ##
|
|
10
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
11
|
+
* ---------------------------------------------------------------
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.ChargeSchemaItems = void 0;
|
|
15
|
+
const http_client_1 = require("./http-client");
|
|
16
|
+
class ChargeSchemaItems {
|
|
17
|
+
constructor(http) {
|
|
18
|
+
/**
|
|
19
|
+
* @description The charges bundled into schemas, optionally filtered.
|
|
20
|
+
*
|
|
21
|
+
* @tags Charge Schema Items
|
|
22
|
+
* @name ListChargeSchemaItems
|
|
23
|
+
* @summary List charge-schema items (components)
|
|
24
|
+
* @request GET:/charge-schema-items
|
|
25
|
+
* @secure
|
|
26
|
+
*/
|
|
27
|
+
this.listChargeSchemaItems = (query, params = {}) => this.http.request({
|
|
28
|
+
path: `/charge-schema-items`,
|
|
29
|
+
method: "GET",
|
|
30
|
+
query: query,
|
|
31
|
+
secure: true,
|
|
32
|
+
format: "json",
|
|
33
|
+
...params,
|
|
34
|
+
});
|
|
35
|
+
/**
|
|
36
|
+
* @description Bundles a charge into a package and sets which party bears it.
|
|
37
|
+
*
|
|
38
|
+
* @tags Charge Schema Items
|
|
39
|
+
* @name CreateChargeSchemaItem
|
|
40
|
+
* @summary Add a charge to a schema
|
|
41
|
+
* @request POST:/charge-schema-items
|
|
42
|
+
* @secure
|
|
43
|
+
*/
|
|
44
|
+
this.createChargeSchemaItem = (data, params = {}) => this.http.request({
|
|
45
|
+
path: `/charge-schema-items`,
|
|
46
|
+
method: "POST",
|
|
47
|
+
body: data,
|
|
48
|
+
secure: true,
|
|
49
|
+
type: http_client_1.ContentType.Json,
|
|
50
|
+
format: "json",
|
|
51
|
+
...params,
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* No description
|
|
55
|
+
*
|
|
56
|
+
* @tags Charge Schema Items
|
|
57
|
+
* @name GetChargeSchemaItem
|
|
58
|
+
* @summary Get a charge-schema item by id
|
|
59
|
+
* @request GET:/charge-schema-items/{id}
|
|
60
|
+
* @secure
|
|
61
|
+
*/
|
|
62
|
+
this.getChargeSchemaItem = ({ id, ...query }, params = {}) => this.http.request({
|
|
63
|
+
path: `/charge-schema-items/${id}`,
|
|
64
|
+
method: "GET",
|
|
65
|
+
secure: true,
|
|
66
|
+
format: "json",
|
|
67
|
+
...params,
|
|
68
|
+
});
|
|
69
|
+
/**
|
|
70
|
+
* No description
|
|
71
|
+
*
|
|
72
|
+
* @tags Charge Schema Items
|
|
73
|
+
* @name UpdateChargeSchemaItem
|
|
74
|
+
* @summary Update a charge-schema item
|
|
75
|
+
* @request PATCH:/charge-schema-items/{id}
|
|
76
|
+
* @secure
|
|
77
|
+
*/
|
|
78
|
+
this.updateChargeSchemaItem = ({ id, ...query }, data, params = {}) => this.http.request({
|
|
79
|
+
path: `/charge-schema-items/${id}`,
|
|
80
|
+
method: "PATCH",
|
|
81
|
+
body: data,
|
|
82
|
+
secure: true,
|
|
83
|
+
type: http_client_1.ContentType.Json,
|
|
84
|
+
format: "json",
|
|
85
|
+
...params,
|
|
86
|
+
});
|
|
87
|
+
/**
|
|
88
|
+
* No description
|
|
89
|
+
*
|
|
90
|
+
* @tags Charge Schema Items
|
|
91
|
+
* @name DeleteChargeSchemaItem
|
|
92
|
+
* @summary Remove a charge from a schema
|
|
93
|
+
* @request DELETE:/charge-schema-items/{id}
|
|
94
|
+
* @secure
|
|
95
|
+
*/
|
|
96
|
+
this.deleteChargeSchemaItem = ({ id, ...query }, params = {}) => this.http.request({
|
|
97
|
+
path: `/charge-schema-items/${id}`,
|
|
98
|
+
method: "DELETE",
|
|
99
|
+
secure: true,
|
|
100
|
+
...params,
|
|
101
|
+
});
|
|
102
|
+
this.http = http;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
exports.ChargeSchemaItems = ChargeSchemaItems;
|
|
106
|
+
//# sourceMappingURL=ChargeSchemaItems.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChargeSchemaItems.js","sourceRoot":"","sources":["../ChargeSchemaItems.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB,cAAc;AACd;;;;;;;GAOG;;;AAmBH,+CAAuE;AAEvE,MAAa,iBAAiB;IAG5B,YAAY,IAAkC;QAI9C;;;;;;;;WAQG;QACH,0BAAqB,GAAG,CACtB,KAAkC,EAClC,SAAwB,EAAE,EAC1B,EAAE,CACF,IAAI,CAAC,IAAI,CAAC,OAAO,CAAiC;YAChD,IAAI,EAAE,sBAAsB;YAC5B,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,2BAAsB,GAAG,CACvB,IAA+B,EAC/B,SAAwB,EAAE,EAC1B,EAAE,CACF,IAAI,CAAC,IAAI,CAAC,OAAO,CAA0D;YACzE,IAAI,EAAE,sBAAsB;YAC5B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,yBAAW,CAAC,IAAI;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,wBAAmB,GAAG,CACpB,EAAE,EAAE,EAAE,GAAG,KAAK,EAA6B,EAC3C,SAAwB,EAAE,EAC1B,EAAE,CACF,IAAI,CAAC,IAAI,CAAC,OAAO,CAAoD;YACnE,IAAI,EAAE,wBAAwB,EAAE,EAAE;YAClC,MAAM,EAAE,KAAK;YACb,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,2BAAsB,GAAG,CACvB,EAAE,EAAE,EAAE,GAAG,KAAK,EAAgC,EAC9C,IAA+B,EAC/B,SAAwB,EAAE,EAC1B,EAAE,CACF,IAAI,CAAC,IAAI,CAAC,OAAO,CAA0D;YACzE,IAAI,EAAE,wBAAwB,EAAE,EAAE;YAClC,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,yBAAW,CAAC,IAAI;YACtB,MAAM,EAAE,MAAM;YACd,GAAG,MAAM;SACV,CAAC,CAAC;QACL;;;;;;;;WAQG;QACH,2BAAsB,GAAG,CACvB,EAAE,EAAE,EAAE,GAAG,KAAK,EAAgC,EAC9C,SAAwB,EAAE,EAC1B,EAAE,CACF,IAAI,CAAC,IAAI,CAAC,OAAO,CAA0D;YACzE,IAAI,EAAE,wBAAwB,EAAE,EAAE;YAClC,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,IAAI;YACZ,GAAG,MAAM;SACV,CAAC,CAAC;QA3GH,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CA2GF;AAhHD,8CAgHC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { CreateChargeSchemaDto, DeleteChargeSchemaParams, GetChargeSchemaParams, UpdateChargeSchemaDto, UpdateChargeSchemaParams } from "./data-contracts";
|
|
2
|
+
import { HttpClient, RequestParams } from "./http-client";
|
|
3
|
+
export declare class ChargeSchemas<SecurityDataType = unknown> {
|
|
4
|
+
http: HttpClient<SecurityDataType>;
|
|
5
|
+
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
+
/**
|
|
7
|
+
* @description All fee packages the customer can be billed under.
|
|
8
|
+
*
|
|
9
|
+
* @tags Charge Schemas
|
|
10
|
+
* @name ListChargeSchemas
|
|
11
|
+
* @summary List charge schemas (packages)
|
|
12
|
+
* @request GET:/charge-schemas
|
|
13
|
+
* @secure
|
|
14
|
+
*/
|
|
15
|
+
listChargeSchemas: (params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").ChargeSchemaListResponseDto, any, {}>>;
|
|
16
|
+
/**
|
|
17
|
+
* @description Adds a new package. Bundle charges into it via charge-schema-items.
|
|
18
|
+
*
|
|
19
|
+
* @tags Charge Schemas
|
|
20
|
+
* @name CreateChargeSchema
|
|
21
|
+
* @summary Create a charge schema
|
|
22
|
+
* @request POST:/charge-schemas
|
|
23
|
+
* @secure
|
|
24
|
+
*/
|
|
25
|
+
createChargeSchema: (data: CreateChargeSchemaDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").ChargeSchemaResponseDto, any, {}>>;
|
|
26
|
+
/**
|
|
27
|
+
* No description
|
|
28
|
+
*
|
|
29
|
+
* @tags Charge Schemas
|
|
30
|
+
* @name GetChargeSchema
|
|
31
|
+
* @summary Get a charge schema by code
|
|
32
|
+
* @request GET:/charge-schemas/{code}
|
|
33
|
+
* @secure
|
|
34
|
+
*/
|
|
35
|
+
getChargeSchema: ({ code, ...query }: GetChargeSchemaParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").ChargeSchemaResponseDto, any, {}>>;
|
|
36
|
+
/**
|
|
37
|
+
* No description
|
|
38
|
+
*
|
|
39
|
+
* @tags Charge Schemas
|
|
40
|
+
* @name UpdateChargeSchema
|
|
41
|
+
* @summary Update a charge schema
|
|
42
|
+
* @request PATCH:/charge-schemas/{code}
|
|
43
|
+
* @secure
|
|
44
|
+
*/
|
|
45
|
+
updateChargeSchema: ({ code, ...query }: UpdateChargeSchemaParams, data: UpdateChargeSchemaDto, params?: RequestParams) => Promise<import("axios").AxiosResponse<import("./data-contracts").ChargeSchemaResponseDto, any, {}>>;
|
|
46
|
+
/**
|
|
47
|
+
* @description Fails if the schema is still referenced by an item or decision rule.
|
|
48
|
+
*
|
|
49
|
+
* @tags Charge Schemas
|
|
50
|
+
* @name DeleteChargeSchema
|
|
51
|
+
* @summary Delete a charge schema
|
|
52
|
+
* @request DELETE:/charge-schemas/{code}
|
|
53
|
+
* @secure
|
|
54
|
+
*/
|
|
55
|
+
deleteChargeSchema: ({ code, ...query }: DeleteChargeSchemaParams, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=ChargeSchemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChargeSchemas.d.ts","sourceRoot":"","sources":["../ChargeSchemas.ts"],"names":[],"mappings":"AAYA,OAAO,EAEL,qBAAqB,EAIrB,wBAAwB,EAGxB,qBAAqB,EAGrB,qBAAqB,EAErB,wBAAwB,EACzB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAe,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEvE,qBAAa,aAAa,CAAC,gBAAgB,GAAG,OAAO;IACnD,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;gBAEvB,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAI9C;;;;;;;;OAQG;IACH,iBAAiB,GAAI,SAAQ,aAAkB,6GAO1C;IACL;;;;;;;;OAQG;IACH,kBAAkB,GAChB,MAAM,qBAAqB,EAC3B,SAAQ,aAAkB,yGAUvB;IACL;;;;;;;;OAQG;IACH,eAAe,GACb,oBAAoB,qBAAqB,EACzC,SAAQ,aAAkB,yGAQvB;IACL;;;;;;;;OAQG;IACH,kBAAkB,GAChB,oBAAoB,wBAAwB,EAC5C,MAAM,qBAAqB,EAC3B,SAAQ,aAAkB,yGAUvB;IACL;;;;;;;;OAQG;IACH,kBAAkB,GAChB,oBAAoB,wBAAwB,EAC5C,SAAQ,aAAkB,0DAOvB;CACN"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
/*
|
|
6
|
+
* ---------------------------------------------------------------
|
|
7
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
8
|
+
* ## ##
|
|
9
|
+
* ## AUTHOR: acacode ##
|
|
10
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
11
|
+
* ---------------------------------------------------------------
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.ChargeSchemas = void 0;
|
|
15
|
+
const http_client_1 = require("./http-client");
|
|
16
|
+
class ChargeSchemas {
|
|
17
|
+
constructor(http) {
|
|
18
|
+
/**
|
|
19
|
+
* @description All fee packages the customer can be billed under.
|
|
20
|
+
*
|
|
21
|
+
* @tags Charge Schemas
|
|
22
|
+
* @name ListChargeSchemas
|
|
23
|
+
* @summary List charge schemas (packages)
|
|
24
|
+
* @request GET:/charge-schemas
|
|
25
|
+
* @secure
|
|
26
|
+
*/
|
|
27
|
+
this.listChargeSchemas = (params = {}) => this.http.request({
|
|
28
|
+
path: `/charge-schemas`,
|
|
29
|
+
method: "GET",
|
|
30
|
+
secure: true,
|
|
31
|
+
format: "json",
|
|
32
|
+
...params,
|
|
33
|
+
});
|
|
34
|
+
/**
|
|
35
|
+
* @description Adds a new package. Bundle charges into it via charge-schema-items.
|
|
36
|
+
*
|
|
37
|
+
* @tags Charge Schemas
|
|
38
|
+
* @name CreateChargeSchema
|
|
39
|
+
* @summary Create a charge schema
|
|
40
|
+
* @request POST:/charge-schemas
|
|
41
|
+
* @secure
|
|
42
|
+
*/
|
|
43
|
+
this.createChargeSchema = (data, params = {}) => this.http.request({
|
|
44
|
+
path: `/charge-schemas`,
|
|
45
|
+
method: "POST",
|
|
46
|
+
body: data,
|
|
47
|
+
secure: true,
|
|
48
|
+
type: http_client_1.ContentType.Json,
|
|
49
|
+
format: "json",
|
|
50
|
+
...params,
|
|
51
|
+
});
|
|
52
|
+
/**
|
|
53
|
+
* No description
|
|
54
|
+
*
|
|
55
|
+
* @tags Charge Schemas
|
|
56
|
+
* @name GetChargeSchema
|
|
57
|
+
* @summary Get a charge schema by code
|
|
58
|
+
* @request GET:/charge-schemas/{code}
|
|
59
|
+
* @secure
|
|
60
|
+
*/
|
|
61
|
+
this.getChargeSchema = ({ code, ...query }, params = {}) => this.http.request({
|
|
62
|
+
path: `/charge-schemas/${code}`,
|
|
63
|
+
method: "GET",
|
|
64
|
+
secure: true,
|
|
65
|
+
format: "json",
|
|
66
|
+
...params,
|
|
67
|
+
});
|
|
68
|
+
/**
|
|
69
|
+
* No description
|
|
70
|
+
*
|
|
71
|
+
* @tags Charge Schemas
|
|
72
|
+
* @name UpdateChargeSchema
|
|
73
|
+
* @summary Update a charge schema
|
|
74
|
+
* @request PATCH:/charge-schemas/{code}
|
|
75
|
+
* @secure
|
|
76
|
+
*/
|
|
77
|
+
this.updateChargeSchema = ({ code, ...query }, data, params = {}) => this.http.request({
|
|
78
|
+
path: `/charge-schemas/${code}`,
|
|
79
|
+
method: "PATCH",
|
|
80
|
+
body: data,
|
|
81
|
+
secure: true,
|
|
82
|
+
type: http_client_1.ContentType.Json,
|
|
83
|
+
format: "json",
|
|
84
|
+
...params,
|
|
85
|
+
});
|
|
86
|
+
/**
|
|
87
|
+
* @description Fails if the schema is still referenced by an item or decision rule.
|
|
88
|
+
*
|
|
89
|
+
* @tags Charge Schemas
|
|
90
|
+
* @name DeleteChargeSchema
|
|
91
|
+
* @summary Delete a charge schema
|
|
92
|
+
* @request DELETE:/charge-schemas/{code}
|
|
93
|
+
* @secure
|
|
94
|
+
*/
|
|
95
|
+
this.deleteChargeSchema = ({ code, ...query }, params = {}) => this.http.request({
|
|
96
|
+
path: `/charge-schemas/${code}`,
|
|
97
|
+
method: "DELETE",
|
|
98
|
+
secure: true,
|
|
99
|
+
...params,
|
|
100
|
+
});
|
|
101
|
+
this.http = http;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.ChargeSchemas = ChargeSchemas;
|
|
105
|
+
//# sourceMappingURL=ChargeSch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