rebilly-js-sdk 62.54.0 → 62.55.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
|
-
## [62.
|
|
1
|
+
## [62.55.0](https://github.com/Rebilly/rebilly/compare/rebilly-js-sdk-v62.54.1...rebilly-js-sdk-v62.55.0) (2026-02-19)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
* **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#
|
|
6
|
+
* **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#18848](https://github.com/Rebilly/rebilly/issues/18848)) ([9d0121a](https://github.com/Rebilly/rebilly/commit/9d0121a84224a0b1d688f2d98d4b91351e79f02b))
|
package/dist/rebilly-js-sdk.d.ts
CHANGED
|
@@ -2279,6 +2279,14 @@ declare namespace rebilly {
|
|
|
2279
2279
|
type StorefrontGetTransactionResponse = operations['StorefrontGetTransaction']['responses']['200']['content']['application/json']
|
|
2280
2280
|
type StorefrontGetTransactionResponsePromise = Promise<{fields: StorefrontGetTransactionResponse}>
|
|
2281
2281
|
|
|
2282
|
+
type StorefrontGetTransactionDccOfferRequest = { id: string }
|
|
2283
|
+
|
|
2284
|
+
type StorefrontGetTransactionDccOfferResponse = operations['StorefrontGetTransactionDccOffer']['responses']['200']['content']['application/json']
|
|
2285
|
+
type StorefrontGetTransactionDccOfferResponsePromise = Promise<{fields: StorefrontGetTransactionDccOfferResponse}>
|
|
2286
|
+
type StorefrontPatchTransactionDccOfferRequest = operations['StorefrontPatchTransactionDccOffer']['requestBody']['content']['application/json']
|
|
2287
|
+
type StorefrontPatchTransactionDccOfferResponse = operations['StorefrontPatchTransactionDccOffer']['responses']['200']['content']['application/json']
|
|
2288
|
+
type StorefrontPatchTransactionDccOfferResponsePromise = Promise<{fields: StorefrontPatchTransactionDccOfferResponse}>
|
|
2289
|
+
|
|
2282
2290
|
type StorefrontPostKycRequestContinueResponse = operations['StorefrontPostKycRequestContinue']['responses']['200']['content']['application/json']
|
|
2283
2291
|
type StorefrontPostKycRequestContinueResponsePromise = Promise<{fields: StorefrontPostKycRequestContinueResponse}>
|
|
2284
2292
|
|
|
@@ -9090,7 +9098,7 @@ export interface coreComponents {
|
|
|
9090
9098
|
/** Markup amount converted to USD. */
|
|
9091
9099
|
usdMarkup?: coreComponents["schemas"]["MoneyAmount"];
|
|
9092
9100
|
/** Dynamic currency conversion outcome. */
|
|
9093
|
-
outcome?: "
|
|
9101
|
+
outcome?: "unprocessed" | "rejected" | "selected";
|
|
9094
9102
|
} | null;
|
|
9095
9103
|
/** Risk score for the transaction. */
|
|
9096
9104
|
riskScore?: number;
|
|
@@ -24114,6 +24122,20 @@ export interface coreComponents {
|
|
|
24114
24122
|
};
|
|
24115
24123
|
/** URL to redirect the end-customer when transaction `status` is `waiting-approval` or `offsite`. */
|
|
24116
24124
|
approvalUrl?: string;
|
|
24125
|
+
/** Specifies if Dynamic Currency Conversion (DCC) applies to the transaction. */
|
|
24126
|
+
hasDcc?: boolean;
|
|
24127
|
+
/**
|
|
24128
|
+
* Details of the Dynamic Currency Conversion (DCC).
|
|
24129
|
+
* If DCC is not applied to the transaction, this value is `null`.
|
|
24130
|
+
*/
|
|
24131
|
+
dcc?: {
|
|
24132
|
+
/** Initial amount and currency to convert from. */
|
|
24133
|
+
base?: coreComponents["schemas"]["Money"];
|
|
24134
|
+
/** Suggested amount and currency to convert to. */
|
|
24135
|
+
quote?: coreComponents["schemas"]["Money"];
|
|
24136
|
+
/** Outcome of the dynamic currency conversion. */
|
|
24137
|
+
outcome?: "unprocessed" | "rejected" | "selected";
|
|
24138
|
+
} | null;
|
|
24117
24139
|
/**
|
|
24118
24140
|
* Session token used for authentication.
|
|
24119
24141
|
* This token provides access to created orders, invoices, and transactions.
|
|
@@ -42896,6 +42918,18 @@ export interface storefrontPaths {
|
|
|
42896
42918
|
};
|
|
42897
42919
|
};
|
|
42898
42920
|
};
|
|
42921
|
+
"/transactions/{id}/dcc": {
|
|
42922
|
+
/** Retrieves a transaction DCC offer with a specified ID. */
|
|
42923
|
+
get: operations["StorefrontGetTransactionDccOffer"];
|
|
42924
|
+
/** Updates a transaction DCC offer with a specified ID. */
|
|
42925
|
+
patch: operations["StorefrontPatchTransactionDccOffer"];
|
|
42926
|
+
parameters: {
|
|
42927
|
+
path: {
|
|
42928
|
+
/** ID of the resource. */
|
|
42929
|
+
id: storefrontComponents["parameters"]["resourceId"];
|
|
42930
|
+
};
|
|
42931
|
+
};
|
|
42932
|
+
};
|
|
42899
42933
|
"/transactions/{id}/{token}/continue": {
|
|
42900
42934
|
/**
|
|
42901
42935
|
* Process a KYC interrupted transaction with a specified ID.
|
|
@@ -46231,7 +46265,7 @@ export interface storefrontComponents {
|
|
|
46231
46265
|
/** Markup amount converted to USD. */
|
|
46232
46266
|
usdMarkup?: storefrontComponents["schemas"]["MoneyAmount"];
|
|
46233
46267
|
/** Dynamic currency conversion outcome. */
|
|
46234
|
-
outcome?: "
|
|
46268
|
+
outcome?: "unprocessed" | "rejected" | "selected";
|
|
46235
46269
|
} | null;
|
|
46236
46270
|
/** Risk score for the transaction. */
|
|
46237
46271
|
riskScore?: number;
|
|
@@ -61255,6 +61289,20 @@ export interface storefrontComponents {
|
|
|
61255
61289
|
};
|
|
61256
61290
|
/** URL to redirect the end-customer when transaction `status` is `waiting-approval` or `offsite`. */
|
|
61257
61291
|
approvalUrl?: string;
|
|
61292
|
+
/** Specifies if Dynamic Currency Conversion (DCC) applies to the transaction. */
|
|
61293
|
+
hasDcc?: boolean;
|
|
61294
|
+
/**
|
|
61295
|
+
* Details of the Dynamic Currency Conversion (DCC).
|
|
61296
|
+
* If DCC is not applied to the transaction, this value is `null`.
|
|
61297
|
+
*/
|
|
61298
|
+
dcc?: {
|
|
61299
|
+
/** Initial amount and currency to convert from. */
|
|
61300
|
+
base?: storefrontComponents["schemas"]["Money"];
|
|
61301
|
+
/** Suggested amount and currency to convert to. */
|
|
61302
|
+
quote?: storefrontComponents["schemas"]["Money"];
|
|
61303
|
+
/** Outcome of the dynamic currency conversion. */
|
|
61304
|
+
outcome?: "unprocessed" | "rejected" | "selected";
|
|
61305
|
+
} | null;
|
|
61258
61306
|
/**
|
|
61259
61307
|
* Session token used for authentication.
|
|
61260
61308
|
* This token provides access to created orders, invoices, and transactions.
|
|
@@ -67475,6 +67523,57 @@ export interface operations {
|
|
|
67475
67523
|
404: storefrontComponents["responses"]["NotFound"];
|
|
67476
67524
|
};
|
|
67477
67525
|
};
|
|
67526
|
+
/** Retrieves a transaction DCC offer with a specified ID. */
|
|
67527
|
+
StorefrontGetTransactionDccOffer: {
|
|
67528
|
+
parameters: {
|
|
67529
|
+
path: {
|
|
67530
|
+
/** ID of the resource. */
|
|
67531
|
+
id: storefrontComponents["parameters"]["resourceId"];
|
|
67532
|
+
};
|
|
67533
|
+
};
|
|
67534
|
+
responses: {
|
|
67535
|
+
/** Transaction DCC offer retrieved. */
|
|
67536
|
+
200: {
|
|
67537
|
+
content: {
|
|
67538
|
+
"application/json": storefrontComponents["schemas"]["StorefrontTransaction"];
|
|
67539
|
+
};
|
|
67540
|
+
};
|
|
67541
|
+
401: storefrontComponents["responses"]["Unauthorized"];
|
|
67542
|
+
403: storefrontComponents["responses"]["Forbidden"];
|
|
67543
|
+
404: storefrontComponents["responses"]["NotFound"];
|
|
67544
|
+
};
|
|
67545
|
+
};
|
|
67546
|
+
/** Updates a transaction DCC offer with a specified ID. */
|
|
67547
|
+
StorefrontPatchTransactionDccOffer: {
|
|
67548
|
+
parameters: {
|
|
67549
|
+
path: {
|
|
67550
|
+
/** ID of the resource. */
|
|
67551
|
+
id: storefrontComponents["parameters"]["resourceId"];
|
|
67552
|
+
};
|
|
67553
|
+
};
|
|
67554
|
+
responses: {
|
|
67555
|
+
/** Transaction DCC offer updated. */
|
|
67556
|
+
200: {
|
|
67557
|
+
headers: {};
|
|
67558
|
+
content: {
|
|
67559
|
+
"application/json": storefrontComponents["schemas"]["StorefrontTransaction"];
|
|
67560
|
+
};
|
|
67561
|
+
};
|
|
67562
|
+
401: storefrontComponents["responses"]["Unauthorized"];
|
|
67563
|
+
403: storefrontComponents["responses"]["Forbidden"];
|
|
67564
|
+
404: storefrontComponents["responses"]["NotFound"];
|
|
67565
|
+
422: storefrontComponents["responses"]["ValidationError"];
|
|
67566
|
+
429: storefrontComponents["responses"]["TooManyRequests"];
|
|
67567
|
+
};
|
|
67568
|
+
requestBody: {
|
|
67569
|
+
content: {
|
|
67570
|
+
"application/json": {
|
|
67571
|
+
/** DCC offer choice. */
|
|
67572
|
+
choice: "selected" | "rejected";
|
|
67573
|
+
};
|
|
67574
|
+
};
|
|
67575
|
+
};
|
|
67576
|
+
};
|
|
67478
67577
|
/**
|
|
67479
67578
|
* Process a KYC interrupted transaction with a specified ID.
|
|
67480
67579
|
*
|
|
@@ -71060,7 +71159,7 @@ export interface reportsComponents {
|
|
|
71060
71159
|
/** Markup amount converted to USD. */
|
|
71061
71160
|
usdMarkup?: reportsComponents["schemas"]["MoneyAmount"];
|
|
71062
71161
|
/** Dynamic currency conversion outcome. */
|
|
71063
|
-
outcome?: "
|
|
71162
|
+
outcome?: "unprocessed" | "rejected" | "selected";
|
|
71064
71163
|
} | null;
|
|
71065
71164
|
/** Risk score for the transaction. */
|
|
71066
71165
|
riskScore?: number;
|
|
@@ -86084,6 +86183,20 @@ export interface reportsComponents {
|
|
|
86084
86183
|
};
|
|
86085
86184
|
/** URL to redirect the end-customer when transaction `status` is `waiting-approval` or `offsite`. */
|
|
86086
86185
|
approvalUrl?: string;
|
|
86186
|
+
/** Specifies if Dynamic Currency Conversion (DCC) applies to the transaction. */
|
|
86187
|
+
hasDcc?: boolean;
|
|
86188
|
+
/**
|
|
86189
|
+
* Details of the Dynamic Currency Conversion (DCC).
|
|
86190
|
+
* If DCC is not applied to the transaction, this value is `null`.
|
|
86191
|
+
*/
|
|
86192
|
+
dcc?: {
|
|
86193
|
+
/** Initial amount and currency to convert from. */
|
|
86194
|
+
base?: reportsComponents["schemas"]["Money"];
|
|
86195
|
+
/** Suggested amount and currency to convert to. */
|
|
86196
|
+
quote?: reportsComponents["schemas"]["Money"];
|
|
86197
|
+
/** Outcome of the dynamic currency conversion. */
|
|
86198
|
+
outcome?: "unprocessed" | "rejected" | "selected";
|
|
86199
|
+
} | null;
|
|
86087
86200
|
/**
|
|
86088
86201
|
* Session token used for authentication.
|
|
86089
86202
|
* This token provides access to created orders, invoices, and transactions.
|
|
@@ -96988,6 +97101,13 @@ declare module "resources/storefront/transactions-resource" {
|
|
|
96988
97101
|
get({ id }: {
|
|
96989
97102
|
id: any;
|
|
96990
97103
|
}): rebilly.StorefrontGetTransactionResponsePromise;
|
|
97104
|
+
getDcc({ id }: {
|
|
97105
|
+
id: any;
|
|
97106
|
+
}): rebilly.StorefrontGetTransactionDccOfferResponsePromise;
|
|
97107
|
+
updateDcc({ id, data }: {
|
|
97108
|
+
id: any;
|
|
97109
|
+
data: any;
|
|
97110
|
+
}): any;
|
|
96991
97111
|
finishKyc({ id, token }: {
|
|
96992
97112
|
id: any;
|
|
96993
97113
|
token: any;
|
|
@@ -97258,6 +97378,13 @@ declare module "resources/storefront/storefront-api-instance" {
|
|
|
97258
97378
|
get({ id }: {
|
|
97259
97379
|
id: any;
|
|
97260
97380
|
}): rebilly.StorefrontGetTransactionResponsePromise;
|
|
97381
|
+
getDcc({ id }: {
|
|
97382
|
+
id: any;
|
|
97383
|
+
}): rebilly.StorefrontGetTransactionDccOfferResponsePromise;
|
|
97384
|
+
updateDcc({ id, data }: {
|
|
97385
|
+
id: any;
|
|
97386
|
+
data: any;
|
|
97387
|
+
}): any;
|
|
97261
97388
|
finishKyc({ id, token }: {
|
|
97262
97389
|
id: any;
|
|
97263
97390
|
token: any;
|