rebilly-js-sdk 56.33.0 → 56.34.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/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [56.
|
|
1
|
+
## [56.34.0](https://github.com/Rebilly/rebilly/compare/rebilly-js-sdk-v56.33.1...rebilly-js-sdk-v56.34.0) (2024-06-04)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
* **
|
|
6
|
+
* **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#5593](https://github.com/Rebilly/rebilly/issues/5593)) ([bf05c5e](https://github.com/Rebilly/rebilly/commit/bf05c5e942c1d81c41a12654e4f73768df891f7c))
|
package/dist/rebilly-js-sdk.d.ts
CHANGED
|
@@ -1775,6 +1775,28 @@ declare namespace rebilly {
|
|
|
1775
1775
|
type PutRiskScoreBlocklistRulesResponse = operations['PutRiskScoreBlocklistRules']['responses']['201']['content']['application/json']
|
|
1776
1776
|
type PutRiskScoreBlocklistRulesResponsePromise = Promise<{fields: PutRiskScoreBlocklistRulesResponse}>
|
|
1777
1777
|
|
|
1778
|
+
type GetRiskScoreSimulationJobCollectionRequest = operations['GetRiskScoreSimulationJobCollection']['parameters']["query"] & (operations['GetRiskScoreSimulationJobCollection']['parameters'] extends {path: {}} ? operations['GetRiskScoreSimulationJobCollection']['parameters']["path"] : {})
|
|
1779
|
+
|
|
1780
|
+
type GetRiskScoreSimulationJobCollectionResponse = operations['GetRiskScoreSimulationJobCollection']['responses']['200']['content']['application/json'][0]
|
|
1781
|
+
type GetRiskScoreSimulationJobCollectionResponsePromise = Promise<{ items: {fields: GetRiskScoreSimulationJobCollectionResponse}[], getJSON: object, total?: number, offset?: number, limit?: number }>
|
|
1782
|
+
type PostRiskScoreSimulationJobRequest = operations['PostRiskScoreSimulationJob']['requestBody']['content']['application/json']
|
|
1783
|
+
type CreateRiskScoreSimulationJobRequest = { id?: string, data: PostRiskScoreSimulationJobRequest, expand?: string }
|
|
1784
|
+
type PostRiskScoreSimulationJobResponse = operations['PostRiskScoreSimulationJob']['responses']['201']['content']['application/json']
|
|
1785
|
+
type PostRiskScoreSimulationJobResponsePromise = Promise<{fields: PostRiskScoreSimulationJobResponse}>
|
|
1786
|
+
|
|
1787
|
+
type GetRiskScoreSimulationJobRequest = { id: string }
|
|
1788
|
+
|
|
1789
|
+
type GetRiskScoreSimulationJobResponse = operations['GetRiskScoreSimulationJob']['responses']['200']['content']['application/json']
|
|
1790
|
+
type GetRiskScoreSimulationJobResponsePromise = Promise<{fields: GetRiskScoreSimulationJobResponse}>
|
|
1791
|
+
|
|
1792
|
+
type PostRiskScoreSimulationJobStopResponse = operations['PostRiskScoreSimulationJobStop']['responses']['200']['content']['application/json']
|
|
1793
|
+
type PostRiskScoreSimulationJobStopResponsePromise = Promise<{fields: PostRiskScoreSimulationJobStopResponse}>
|
|
1794
|
+
|
|
1795
|
+
type GetRiskScoreSimulatedTransactionCollectionRequest = operations['GetRiskScoreSimulatedTransactionCollection']['parameters']["query"] & (operations['GetRiskScoreSimulatedTransactionCollection']['parameters'] extends {path: {}} ? operations['GetRiskScoreSimulatedTransactionCollection']['parameters']["path"] : {}) & { id: string }
|
|
1796
|
+
|
|
1797
|
+
type GetRiskScoreSimulatedTransactionCollectionResponse = operations['GetRiskScoreSimulatedTransactionCollection']['responses']['200']['content']['application/json'][0]
|
|
1798
|
+
type GetRiskScoreSimulatedTransactionCollectionResponsePromise = Promise<{ items: {fields: GetRiskScoreSimulatedTransactionCollectionResponse}[], getJSON: object, total?: number, offset?: number, limit?: number }>
|
|
1799
|
+
|
|
1778
1800
|
type GetAllowlistCollectionRequest = operations['GetAllowlistCollection']['parameters']["query"] & (operations['GetAllowlistCollection']['parameters'] extends {path: {}} ? operations['GetAllowlistCollection']['parameters']["path"] : {})
|
|
1779
1801
|
|
|
1780
1802
|
type GetAllowlistCollectionResponse = operations['GetAllowlistCollection']['responses']['200']['content']['application/json'][0]
|
|
@@ -5176,6 +5198,42 @@ export interface corePaths {
|
|
|
5176
5198
|
/** Modifies risk score blocklist rules. */
|
|
5177
5199
|
put: operations["PutRiskScoreBlocklistRules"];
|
|
5178
5200
|
};
|
|
5201
|
+
"/risk-score-simulation-jobs": {
|
|
5202
|
+
/** Retrieves a list of simulation jobs. */
|
|
5203
|
+
get: operations["GetRiskScoreSimulationJobCollection"];
|
|
5204
|
+
/** Creates a new risk score simulation job. */
|
|
5205
|
+
post: operations["PostRiskScoreSimulationJob"];
|
|
5206
|
+
};
|
|
5207
|
+
"/risk-score-simulation-jobs/{id}": {
|
|
5208
|
+
/** Retrieves a specified risk score simulation job. */
|
|
5209
|
+
get: operations["GetRiskScoreSimulationJob"];
|
|
5210
|
+
parameters: {
|
|
5211
|
+
path: {
|
|
5212
|
+
/** ID of the resource. */
|
|
5213
|
+
id: coreComponents["parameters"]["resourceId"];
|
|
5214
|
+
};
|
|
5215
|
+
};
|
|
5216
|
+
};
|
|
5217
|
+
"/risk-score-simulation-jobs/{id}/stop": {
|
|
5218
|
+
/** Stops an active risk score simulation job. */
|
|
5219
|
+
post: operations["PostRiskScoreSimulationJobStop"];
|
|
5220
|
+
parameters: {
|
|
5221
|
+
path: {
|
|
5222
|
+
/** ID of the resource. */
|
|
5223
|
+
id: coreComponents["parameters"]["resourceId"];
|
|
5224
|
+
};
|
|
5225
|
+
};
|
|
5226
|
+
};
|
|
5227
|
+
"/risk-score-simulation-jobs/{id}/transactions": {
|
|
5228
|
+
/** Retrieves a list of affected transactions for a specified risk score simulation. */
|
|
5229
|
+
get: operations["GetRiskScoreSimulatedTransactionCollection"];
|
|
5230
|
+
parameters: {
|
|
5231
|
+
path: {
|
|
5232
|
+
/** ID of the resource. */
|
|
5233
|
+
id: coreComponents["parameters"]["resourceId"];
|
|
5234
|
+
};
|
|
5235
|
+
};
|
|
5236
|
+
};
|
|
5179
5237
|
"/allowlists": {
|
|
5180
5238
|
/** Retrieves allowlist collection. */
|
|
5181
5239
|
get: operations["GetAllowlistCollection"];
|
|
@@ -19913,6 +19971,8 @@ export interface coreComponents {
|
|
|
19913
19971
|
status?: "ok";
|
|
19914
19972
|
/** Current date and time. */
|
|
19915
19973
|
time?: coreComponents["schemas"]["ServerTimestamp"];
|
|
19974
|
+
/** Current release version of the API. */
|
|
19975
|
+
release?: string;
|
|
19916
19976
|
};
|
|
19917
19977
|
/** API request tracking. */
|
|
19918
19978
|
ApiTracking: {
|
|
@@ -22374,6 +22434,12 @@ export interface coreComponents {
|
|
|
22374
22434
|
* Subscriptions cannot be changed in the preview.
|
|
22375
22435
|
*/
|
|
22376
22436
|
preview?: boolean;
|
|
22437
|
+
/**
|
|
22438
|
+
* Specifies if payment attempts for the related subscription are made automatically.
|
|
22439
|
+
* If autopay is enabled, the payment is retrieved from the customer on the renewal date using the payment instrument that is set at `paymentInstrumentId`,
|
|
22440
|
+
* or the default payment instrument on the subscription.
|
|
22441
|
+
*/
|
|
22442
|
+
autopay?: boolean;
|
|
22377
22443
|
};
|
|
22378
22444
|
StorefrontQuoteChangeOrder: {
|
|
22379
22445
|
/** ID of the quote. */
|
|
@@ -24045,6 +24111,66 @@ export interface coreComponents {
|
|
|
24045
24111
|
/** Payment card number being charged. */
|
|
24046
24112
|
"payment-card"?: coreComponents["schemas"]["RiskScoreBlocklistType"];
|
|
24047
24113
|
};
|
|
24114
|
+
/** Resource to simulate a risk score calculation given a set of risk score settings. */
|
|
24115
|
+
RiskScoreSimulationJob: {
|
|
24116
|
+
/** ID of the job. */
|
|
24117
|
+
id?: string;
|
|
24118
|
+
/** Status of the job. */
|
|
24119
|
+
status?: "pending" | "processing" | "completed" | "failed" | "stopped";
|
|
24120
|
+
/** Summary of the simulation. */
|
|
24121
|
+
summary?: {
|
|
24122
|
+
metric?:
|
|
24123
|
+
| "processedTransactions"
|
|
24124
|
+
| "affectedTransactions"
|
|
24125
|
+
| "declinedToCanceledTransactions"
|
|
24126
|
+
| "canceledToApprovedTransactions"
|
|
24127
|
+
| "approvedToCanceledTransactions";
|
|
24128
|
+
count?: number;
|
|
24129
|
+
amount?: coreComponents["schemas"]["Money"];
|
|
24130
|
+
}[];
|
|
24131
|
+
/** Risk score rules. */
|
|
24132
|
+
rules: coreComponents["schemas"]["RiskScoreRules"];
|
|
24133
|
+
/** Full period of the simulation. */
|
|
24134
|
+
period: {
|
|
24135
|
+
startDate?: string;
|
|
24136
|
+
endDate?: string;
|
|
24137
|
+
};
|
|
24138
|
+
createdTime?: coreComponents["schemas"]["CreatedTime"];
|
|
24139
|
+
updatedTime?: coreComponents["schemas"]["UpdatedTime"];
|
|
24140
|
+
/** Date and time when the simulation job started. */
|
|
24141
|
+
startedTime?: coreComponents["schemas"]["ServerTimestamp"];
|
|
24142
|
+
/** Date and time when the simulation job finished. */
|
|
24143
|
+
finishedTime?: coreComponents["schemas"]["ServerTimestamp"];
|
|
24144
|
+
_links?: coreComponents["schemas"]["SelfLink"];
|
|
24145
|
+
_embedded?: {
|
|
24146
|
+
/** Transactions of the simulation. */
|
|
24147
|
+
transactions?: any[];
|
|
24148
|
+
};
|
|
24149
|
+
};
|
|
24150
|
+
/** Transaction affected in risk score simulation. */
|
|
24151
|
+
RiskScoreSimulationTransaction: {
|
|
24152
|
+
/** ID of the transaction. */
|
|
24153
|
+
transactionId?: string;
|
|
24154
|
+
/** ID of the customer. */
|
|
24155
|
+
customerId?: string;
|
|
24156
|
+
/** ID of the simulation job. */
|
|
24157
|
+
simulationJobId?: string;
|
|
24158
|
+
/** Amount of the transaction. */
|
|
24159
|
+
amount?: coreComponents["schemas"]["Money"];
|
|
24160
|
+
/** Pre-simulation state of the transaction. */
|
|
24161
|
+
preResult?: "canceled" | "declined" | "approved";
|
|
24162
|
+
/** Result of the simulation. */
|
|
24163
|
+
result?: "blocked" | "approved";
|
|
24164
|
+
/** Date of the transaction. */
|
|
24165
|
+
date?: string;
|
|
24166
|
+
/** Related links. */
|
|
24167
|
+
_links?: {
|
|
24168
|
+
/** Link URL. */
|
|
24169
|
+
href?: string;
|
|
24170
|
+
/** Type of link. */
|
|
24171
|
+
rel?: "customer" | "transaction";
|
|
24172
|
+
}[];
|
|
24173
|
+
};
|
|
24048
24174
|
/** Risk score allowlist record. */
|
|
24049
24175
|
Allowlist: {
|
|
24050
24176
|
/** ID of the allowlist record. */
|
|
@@ -37968,6 +38094,128 @@ export interface operations {
|
|
|
37968
38094
|
};
|
|
37969
38095
|
};
|
|
37970
38096
|
};
|
|
38097
|
+
/** Retrieves a list of simulation jobs. */
|
|
38098
|
+
GetRiskScoreSimulationJobCollection: {
|
|
38099
|
+
parameters: {
|
|
38100
|
+
query: {
|
|
38101
|
+
/**
|
|
38102
|
+
* Filters the collection items. This field requires
|
|
38103
|
+
* a special format. Use `,` for multiple allowed values. Use `;` for multiple fields.
|
|
38104
|
+
*
|
|
38105
|
+
* For more information, see
|
|
38106
|
+
* [Using filter with collections](https://www.rebilly.com/docs/dev-docs/search-filters).
|
|
38107
|
+
*/
|
|
38108
|
+
filter?: coreComponents["parameters"]["collectionFilter"];
|
|
38109
|
+
/**
|
|
38110
|
+
* Sorts and orders the collection of items. To sort in descending
|
|
38111
|
+
* order, prefix with `-`. Multiple fields can be sorted by separating each with `,`.
|
|
38112
|
+
*/
|
|
38113
|
+
sort?: coreComponents["parameters"]["collectionSort"];
|
|
38114
|
+
/** Limits the number of collection items to be returned. */
|
|
38115
|
+
limit?: coreComponents["parameters"]["collectionLimit"];
|
|
38116
|
+
/** Specifies the starting point within the collection of items to be returned. */
|
|
38117
|
+
offset?: coreComponents["parameters"]["collectionOffset"];
|
|
38118
|
+
};
|
|
38119
|
+
};
|
|
38120
|
+
responses: {
|
|
38121
|
+
/** List of risk score simulation jobs retrieved. */
|
|
38122
|
+
200: {
|
|
38123
|
+
headers: {};
|
|
38124
|
+
content: {
|
|
38125
|
+
"application/json": coreComponents["schemas"]["RiskScoreSimulationJob"][];
|
|
38126
|
+
};
|
|
38127
|
+
};
|
|
38128
|
+
401: coreComponents["responses"]["Unauthorized"];
|
|
38129
|
+
403: coreComponents["responses"]["Forbidden"];
|
|
38130
|
+
};
|
|
38131
|
+
};
|
|
38132
|
+
/** Creates a new risk score simulation job. */
|
|
38133
|
+
PostRiskScoreSimulationJob: {
|
|
38134
|
+
responses: {
|
|
38135
|
+
/** Risk score simulation job created. */
|
|
38136
|
+
201: {
|
|
38137
|
+
headers: {};
|
|
38138
|
+
content: {
|
|
38139
|
+
"application/json": coreComponents["schemas"]["RiskScoreSimulationJob"];
|
|
38140
|
+
};
|
|
38141
|
+
};
|
|
38142
|
+
401: coreComponents["responses"]["Unauthorized"];
|
|
38143
|
+
403: coreComponents["responses"]["Forbidden"];
|
|
38144
|
+
422: coreComponents["responses"]["ValidationError"];
|
|
38145
|
+
};
|
|
38146
|
+
requestBody: {
|
|
38147
|
+
content: {
|
|
38148
|
+
"application/json": coreComponents["schemas"]["RiskScoreSimulationJob"];
|
|
38149
|
+
};
|
|
38150
|
+
};
|
|
38151
|
+
};
|
|
38152
|
+
/** Retrieves a specified risk score simulation job. */
|
|
38153
|
+
GetRiskScoreSimulationJob: {
|
|
38154
|
+
parameters: {
|
|
38155
|
+
path: {
|
|
38156
|
+
/** ID of the resource. */
|
|
38157
|
+
id: coreComponents["parameters"]["resourceId"];
|
|
38158
|
+
};
|
|
38159
|
+
};
|
|
38160
|
+
responses: {
|
|
38161
|
+
/** Risk score simulation job retrieved. */
|
|
38162
|
+
200: {
|
|
38163
|
+
headers: {};
|
|
38164
|
+
content: {
|
|
38165
|
+
"application/json": coreComponents["schemas"]["RiskScoreSimulationJob"];
|
|
38166
|
+
};
|
|
38167
|
+
};
|
|
38168
|
+
401: coreComponents["responses"]["Unauthorized"];
|
|
38169
|
+
403: coreComponents["responses"]["Forbidden"];
|
|
38170
|
+
404: coreComponents["responses"]["NotFound"];
|
|
38171
|
+
};
|
|
38172
|
+
};
|
|
38173
|
+
/** Stops an active risk score simulation job. */
|
|
38174
|
+
PostRiskScoreSimulationJobStop: {
|
|
38175
|
+
parameters: {
|
|
38176
|
+
path: {
|
|
38177
|
+
/** ID of the resource. */
|
|
38178
|
+
id: coreComponents["parameters"]["resourceId"];
|
|
38179
|
+
};
|
|
38180
|
+
};
|
|
38181
|
+
responses: {
|
|
38182
|
+
/** Risk score simulation job stopped. */
|
|
38183
|
+
200: {
|
|
38184
|
+
headers: {};
|
|
38185
|
+
content: {
|
|
38186
|
+
"application/json": coreComponents["schemas"]["RiskScoreSimulationJob"];
|
|
38187
|
+
};
|
|
38188
|
+
};
|
|
38189
|
+
401: coreComponents["responses"]["Unauthorized"];
|
|
38190
|
+
403: coreComponents["responses"]["Forbidden"];
|
|
38191
|
+
};
|
|
38192
|
+
};
|
|
38193
|
+
/** Retrieves a list of affected transactions for a specified risk score simulation. */
|
|
38194
|
+
GetRiskScoreSimulatedTransactionCollection: {
|
|
38195
|
+
parameters: {
|
|
38196
|
+
path: {
|
|
38197
|
+
/** ID of the resource. */
|
|
38198
|
+
id: coreComponents["parameters"]["resourceId"];
|
|
38199
|
+
};
|
|
38200
|
+
query: {
|
|
38201
|
+
/** Limits the number of collection items to be returned. */
|
|
38202
|
+
limit?: coreComponents["parameters"]["collectionLimit"];
|
|
38203
|
+
/** Specifies the starting point within the collection of items to be returned. */
|
|
38204
|
+
offset?: coreComponents["parameters"]["collectionOffset"];
|
|
38205
|
+
};
|
|
38206
|
+
};
|
|
38207
|
+
responses: {
|
|
38208
|
+
/** List of affected transactions retrieved. */
|
|
38209
|
+
200: {
|
|
38210
|
+
headers: {};
|
|
38211
|
+
content: {
|
|
38212
|
+
"application/json": coreComponents["schemas"]["RiskScoreSimulationTransaction"][];
|
|
38213
|
+
};
|
|
38214
|
+
};
|
|
38215
|
+
401: coreComponents["responses"]["Unauthorized"];
|
|
38216
|
+
403: coreComponents["responses"]["Forbidden"];
|
|
38217
|
+
};
|
|
38218
|
+
};
|
|
37971
38219
|
/** Retrieves allowlist collection. */
|
|
37972
38220
|
GetAllowlistCollection: {
|
|
37973
38221
|
parameters: {
|
|
@@ -53433,6 +53681,8 @@ export interface storefrontComponents {
|
|
|
53433
53681
|
status?: "ok";
|
|
53434
53682
|
/** Current date and time. */
|
|
53435
53683
|
time?: storefrontComponents["schemas"]["ServerTimestamp"];
|
|
53684
|
+
/** Current release version of the API. */
|
|
53685
|
+
release?: string;
|
|
53436
53686
|
};
|
|
53437
53687
|
/** API request tracking. */
|
|
53438
53688
|
ApiTracking: {
|
|
@@ -55894,6 +56144,12 @@ export interface storefrontComponents {
|
|
|
55894
56144
|
* Subscriptions cannot be changed in the preview.
|
|
55895
56145
|
*/
|
|
55896
56146
|
preview?: boolean;
|
|
56147
|
+
/**
|
|
56148
|
+
* Specifies if payment attempts for the related subscription are made automatically.
|
|
56149
|
+
* If autopay is enabled, the payment is retrieved from the customer on the renewal date using the payment instrument that is set at `paymentInstrumentId`,
|
|
56150
|
+
* or the default payment instrument on the subscription.
|
|
56151
|
+
*/
|
|
56152
|
+
autopay?: boolean;
|
|
55897
56153
|
};
|
|
55898
56154
|
StorefrontQuoteChangeOrder: {
|
|
55899
56155
|
/** ID of the quote. */
|
|
@@ -57565,6 +57821,66 @@ export interface storefrontComponents {
|
|
|
57565
57821
|
/** Payment card number being charged. */
|
|
57566
57822
|
"payment-card"?: storefrontComponents["schemas"]["RiskScoreBlocklistType"];
|
|
57567
57823
|
};
|
|
57824
|
+
/** Resource to simulate a risk score calculation given a set of risk score settings. */
|
|
57825
|
+
RiskScoreSimulationJob: {
|
|
57826
|
+
/** ID of the job. */
|
|
57827
|
+
id?: string;
|
|
57828
|
+
/** Status of the job. */
|
|
57829
|
+
status?: "pending" | "processing" | "completed" | "failed" | "stopped";
|
|
57830
|
+
/** Summary of the simulation. */
|
|
57831
|
+
summary?: {
|
|
57832
|
+
metric?:
|
|
57833
|
+
| "processedTransactions"
|
|
57834
|
+
| "affectedTransactions"
|
|
57835
|
+
| "declinedToCanceledTransactions"
|
|
57836
|
+
| "canceledToApprovedTransactions"
|
|
57837
|
+
| "approvedToCanceledTransactions";
|
|
57838
|
+
count?: number;
|
|
57839
|
+
amount?: storefrontComponents["schemas"]["Money"];
|
|
57840
|
+
}[];
|
|
57841
|
+
/** Risk score rules. */
|
|
57842
|
+
rules: storefrontComponents["schemas"]["RiskScoreRules"];
|
|
57843
|
+
/** Full period of the simulation. */
|
|
57844
|
+
period: {
|
|
57845
|
+
startDate?: string;
|
|
57846
|
+
endDate?: string;
|
|
57847
|
+
};
|
|
57848
|
+
createdTime?: storefrontComponents["schemas"]["CreatedTime"];
|
|
57849
|
+
updatedTime?: storefrontComponents["schemas"]["UpdatedTime"];
|
|
57850
|
+
/** Date and time when the simulation job started. */
|
|
57851
|
+
startedTime?: storefrontComponents["schemas"]["ServerTimestamp"];
|
|
57852
|
+
/** Date and time when the simulation job finished. */
|
|
57853
|
+
finishedTime?: storefrontComponents["schemas"]["ServerTimestamp"];
|
|
57854
|
+
_links?: storefrontComponents["schemas"]["SelfLink"];
|
|
57855
|
+
_embedded?: {
|
|
57856
|
+
/** Transactions of the simulation. */
|
|
57857
|
+
transactions?: any[];
|
|
57858
|
+
};
|
|
57859
|
+
};
|
|
57860
|
+
/** Transaction affected in risk score simulation. */
|
|
57861
|
+
RiskScoreSimulationTransaction: {
|
|
57862
|
+
/** ID of the transaction. */
|
|
57863
|
+
transactionId?: string;
|
|
57864
|
+
/** ID of the customer. */
|
|
57865
|
+
customerId?: string;
|
|
57866
|
+
/** ID of the simulation job. */
|
|
57867
|
+
simulationJobId?: string;
|
|
57868
|
+
/** Amount of the transaction. */
|
|
57869
|
+
amount?: storefrontComponents["schemas"]["Money"];
|
|
57870
|
+
/** Pre-simulation state of the transaction. */
|
|
57871
|
+
preResult?: "canceled" | "declined" | "approved";
|
|
57872
|
+
/** Result of the simulation. */
|
|
57873
|
+
result?: "blocked" | "approved";
|
|
57874
|
+
/** Date of the transaction. */
|
|
57875
|
+
date?: string;
|
|
57876
|
+
/** Related links. */
|
|
57877
|
+
_links?: {
|
|
57878
|
+
/** Link URL. */
|
|
57879
|
+
href?: string;
|
|
57880
|
+
/** Type of link. */
|
|
57881
|
+
rel?: "customer" | "transaction";
|
|
57882
|
+
}[];
|
|
57883
|
+
};
|
|
57568
57884
|
/** Risk score allowlist record. */
|
|
57569
57885
|
Allowlist: {
|
|
57570
57886
|
/** ID of the allowlist record. */
|
|
@@ -75992,6 +76308,8 @@ export interface reportsComponents {
|
|
|
75992
76308
|
status?: "ok";
|
|
75993
76309
|
/** Current date and time. */
|
|
75994
76310
|
time?: reportsComponents["schemas"]["ServerTimestamp"];
|
|
76311
|
+
/** Current release version of the API. */
|
|
76312
|
+
release?: string;
|
|
75995
76313
|
};
|
|
75996
76314
|
/** API request tracking. */
|
|
75997
76315
|
ApiTracking: {
|
|
@@ -78453,6 +78771,12 @@ export interface reportsComponents {
|
|
|
78453
78771
|
* Subscriptions cannot be changed in the preview.
|
|
78454
78772
|
*/
|
|
78455
78773
|
preview?: boolean;
|
|
78774
|
+
/**
|
|
78775
|
+
* Specifies if payment attempts for the related subscription are made automatically.
|
|
78776
|
+
* If autopay is enabled, the payment is retrieved from the customer on the renewal date using the payment instrument that is set at `paymentInstrumentId`,
|
|
78777
|
+
* or the default payment instrument on the subscription.
|
|
78778
|
+
*/
|
|
78779
|
+
autopay?: boolean;
|
|
78456
78780
|
};
|
|
78457
78781
|
StorefrontQuoteChangeOrder: {
|
|
78458
78782
|
/** ID of the quote. */
|
|
@@ -80124,6 +80448,66 @@ export interface reportsComponents {
|
|
|
80124
80448
|
/** Payment card number being charged. */
|
|
80125
80449
|
"payment-card"?: reportsComponents["schemas"]["RiskScoreBlocklistType"];
|
|
80126
80450
|
};
|
|
80451
|
+
/** Resource to simulate a risk score calculation given a set of risk score settings. */
|
|
80452
|
+
RiskScoreSimulationJob: {
|
|
80453
|
+
/** ID of the job. */
|
|
80454
|
+
id?: string;
|
|
80455
|
+
/** Status of the job. */
|
|
80456
|
+
status?: "pending" | "processing" | "completed" | "failed" | "stopped";
|
|
80457
|
+
/** Summary of the simulation. */
|
|
80458
|
+
summary?: {
|
|
80459
|
+
metric?:
|
|
80460
|
+
| "processedTransactions"
|
|
80461
|
+
| "affectedTransactions"
|
|
80462
|
+
| "declinedToCanceledTransactions"
|
|
80463
|
+
| "canceledToApprovedTransactions"
|
|
80464
|
+
| "approvedToCanceledTransactions";
|
|
80465
|
+
count?: number;
|
|
80466
|
+
amount?: reportsComponents["schemas"]["Money"];
|
|
80467
|
+
}[];
|
|
80468
|
+
/** Risk score rules. */
|
|
80469
|
+
rules: reportsComponents["schemas"]["RiskScoreRules"];
|
|
80470
|
+
/** Full period of the simulation. */
|
|
80471
|
+
period: {
|
|
80472
|
+
startDate?: string;
|
|
80473
|
+
endDate?: string;
|
|
80474
|
+
};
|
|
80475
|
+
createdTime?: reportsComponents["schemas"]["CreatedTime"];
|
|
80476
|
+
updatedTime?: reportsComponents["schemas"]["UpdatedTime"];
|
|
80477
|
+
/** Date and time when the simulation job started. */
|
|
80478
|
+
startedTime?: reportsComponents["schemas"]["ServerTimestamp"];
|
|
80479
|
+
/** Date and time when the simulation job finished. */
|
|
80480
|
+
finishedTime?: reportsComponents["schemas"]["ServerTimestamp"];
|
|
80481
|
+
_links?: reportsComponents["schemas"]["SelfLink"];
|
|
80482
|
+
_embedded?: {
|
|
80483
|
+
/** Transactions of the simulation. */
|
|
80484
|
+
transactions?: any[];
|
|
80485
|
+
};
|
|
80486
|
+
};
|
|
80487
|
+
/** Transaction affected in risk score simulation. */
|
|
80488
|
+
RiskScoreSimulationTransaction: {
|
|
80489
|
+
/** ID of the transaction. */
|
|
80490
|
+
transactionId?: string;
|
|
80491
|
+
/** ID of the customer. */
|
|
80492
|
+
customerId?: string;
|
|
80493
|
+
/** ID of the simulation job. */
|
|
80494
|
+
simulationJobId?: string;
|
|
80495
|
+
/** Amount of the transaction. */
|
|
80496
|
+
amount?: reportsComponents["schemas"]["Money"];
|
|
80497
|
+
/** Pre-simulation state of the transaction. */
|
|
80498
|
+
preResult?: "canceled" | "declined" | "approved";
|
|
80499
|
+
/** Result of the simulation. */
|
|
80500
|
+
result?: "blocked" | "approved";
|
|
80501
|
+
/** Date of the transaction. */
|
|
80502
|
+
date?: string;
|
|
80503
|
+
/** Related links. */
|
|
80504
|
+
_links?: {
|
|
80505
|
+
/** Link URL. */
|
|
80506
|
+
href?: string;
|
|
80507
|
+
/** Type of link. */
|
|
80508
|
+
rel?: "customer" | "transaction";
|
|
80509
|
+
}[];
|
|
80510
|
+
};
|
|
80127
80511
|
/** Risk score allowlist record. */
|
|
80128
80512
|
Allowlist: {
|
|
80129
80513
|
/** ID of the allowlist record. */
|
|
@@ -84803,6 +85187,23 @@ declare module "resources/risk-score-rules-resource" {
|
|
|
84803
85187
|
}): rebilly.PutRiskScoreBlocklistRulesResponsePromise;
|
|
84804
85188
|
};
|
|
84805
85189
|
}
|
|
85190
|
+
declare module "resources/risk-score-simulation-jobs-resource" {
|
|
85191
|
+
export default function RiskScoreSimulationJobsResource({ apiHandler }: {
|
|
85192
|
+
apiHandler: any;
|
|
85193
|
+
}): {
|
|
85194
|
+
getAll({ filter, sort, limit, offset }?: rebilly.GetRiskScoreSimulationJobCollectionRequest): rebilly.GetRiskScoreSimulationJobCollectionResponsePromise;
|
|
85195
|
+
create({ data }: {
|
|
85196
|
+
data: any;
|
|
85197
|
+
}): any;
|
|
85198
|
+
get({ id }: {
|
|
85199
|
+
id: any;
|
|
85200
|
+
}): rebilly.GetRiskScoreSimulationJobResponsePromise;
|
|
85201
|
+
stop({ id }: {
|
|
85202
|
+
id: any;
|
|
85203
|
+
}): any;
|
|
85204
|
+
getTransactions({ id, limit, offset }: rebilly.GetRiskScoreSimulatedTransactionCollectionRequest): rebilly.GetRiskScoreSimulatedTransactionCollectionResponsePromise;
|
|
85205
|
+
};
|
|
85206
|
+
}
|
|
84806
85207
|
declare module "resources/roles-resource" {
|
|
84807
85208
|
export default function RolesResource({ apiHandler }: {
|
|
84808
85209
|
apiHandler: any;
|
|
@@ -86655,6 +87056,24 @@ declare module "resources/api-instance" {
|
|
|
86655
87056
|
data: any;
|
|
86656
87057
|
}): rebilly.PutRiskScoreBlocklistRulesResponsePromise;
|
|
86657
87058
|
};
|
|
87059
|
+
riskScoreSimulationJobs: {
|
|
87060
|
+
getAll({ filter, sort, limit, offset }?: {
|
|
87061
|
+
filter?: string;
|
|
87062
|
+
sort?: string[];
|
|
87063
|
+
limit?: number;
|
|
87064
|
+
offset?: number;
|
|
87065
|
+
}): rebilly.GetRiskScoreSimulationJobCollectionResponsePromise;
|
|
87066
|
+
create({ data }: {
|
|
87067
|
+
data: any;
|
|
87068
|
+
}): any;
|
|
87069
|
+
get({ id }: {
|
|
87070
|
+
id: any;
|
|
87071
|
+
}): rebilly.GetRiskScoreSimulationJobResponsePromise;
|
|
87072
|
+
stop({ id }: {
|
|
87073
|
+
id: any;
|
|
87074
|
+
}): any;
|
|
87075
|
+
getTransactions({ id, limit, offset }: rebilly.GetRiskScoreSimulatedTransactionCollectionRequest): rebilly.GetRiskScoreSimulatedTransactionCollectionResponsePromise;
|
|
87076
|
+
};
|
|
86658
87077
|
roles: {
|
|
86659
87078
|
getAll({ limit, offset, filter, sort, q, expand, }?: {
|
|
86660
87079
|
limit?: number;
|