@invonetwork/web-sdk 3.10.1 → 3.12.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 +48 -0
- package/README.md +95 -10
- package/dist/{chunk-L4A6OV54.js → chunk-5BMM5ZTW.js} +38 -4
- package/dist/index.cjs +243 -2
- package/dist/index.d.cts +146 -3
- package/dist/index.d.ts +146 -3
- package/dist/index.js +204 -3
- package/dist/server.cjs +61 -14
- package/dist/server.d.cts +7 -4
- package/dist/server.d.ts +7 -4
- package/dist/server.js +27 -14
- package/dist/{types-CBxpXgAM.d.cts → types-CT0Ksonp.d.cts} +211 -5
- package/dist/{types-CBxpXgAM.d.ts → types-CT0Ksonp.d.ts} +211 -5
- package/package.json +1 -1
package/dist/server.cjs
CHANGED
|
@@ -373,8 +373,15 @@ var InvoError = class _InvoError extends Error {
|
|
|
373
373
|
get isBelowCardMinimum() {
|
|
374
374
|
return this.code === "BELOW_CARD_MINIMUM" || this.rawCode === "BELOW_STRIPE_MINIMUM";
|
|
375
375
|
}
|
|
376
|
-
/** True if a
|
|
377
|
-
*
|
|
376
|
+
/** True if a CARD purchase exceeded INVO's maximum single card charge
|
|
377
|
+
* (`ABOVE_CARD_MAXIMUM`, 400) — split the sale or lower the amount. Do not retry it
|
|
378
|
+
* unchanged; nothing was charged.
|
|
379
|
+
*
|
|
380
|
+
* The cap is a runtime setting ($100,000.00 by default since 2026-09-18), editable by
|
|
381
|
+
* an INVO admin without a deploy and different per environment, so this SDK does not
|
|
382
|
+
* pin it and never raises this error locally. `err.message` carries the figure that was
|
|
383
|
+
* in force for the request that failed; the live figure for a tenant is also the
|
|
384
|
+
* `max_amount` of the hosted checkout's `validate-game` read. */
|
|
378
385
|
get isAboveCardMaximum() {
|
|
379
386
|
return this.code === "ABOVE_CARD_MAXIMUM";
|
|
380
387
|
}
|
|
@@ -671,6 +678,33 @@ var InvoError = class _InvoError extends Error {
|
|
|
671
678
|
get isInvalidInput() {
|
|
672
679
|
return this.code === "INVALID_INPUT";
|
|
673
680
|
}
|
|
681
|
+
// ---- Checkout session reads (the purchase status read) ----
|
|
682
|
+
/**
|
|
683
|
+
* True when a session token was refused because it belongs to a DIFFERENT checkout
|
|
684
|
+
* session than the id in the path (`SESSION_MISMATCH`, 403). The token is the
|
|
685
|
+
* credential and the id is only a label, so the two have to agree; pair a `sessionId`
|
|
686
|
+
* with the `sessionToken` minted for it.
|
|
687
|
+
*/
|
|
688
|
+
get isCheckoutSessionMismatch() {
|
|
689
|
+
return this.code === "SESSION_MISMATCH";
|
|
690
|
+
}
|
|
691
|
+
/**
|
|
692
|
+
* True when a token minted to SAVE A CARD was used where a purchase token belongs
|
|
693
|
+
* (`WRONG_SESSION_PURPOSE`, 401). A card setup session settles nothing and has no
|
|
694
|
+
* purchase to report on.
|
|
695
|
+
*/
|
|
696
|
+
get isWrongSessionPurpose() {
|
|
697
|
+
return this.code === "WRONG_SESSION_PURPOSE";
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
* True when a checkout session token is too far past its expiry to answer with
|
|
701
|
+
* (`SESSION_EXPIRED`, 410). A lapsed token still reads its own purchase for a bounded
|
|
702
|
+
* window, because a charge outlives a 15 minute link; past that, show the buyer the
|
|
703
|
+
* order id you already hold and a Contact support link rather than a blank screen.
|
|
704
|
+
*/
|
|
705
|
+
get isCheckoutSessionExpired() {
|
|
706
|
+
return this.code === "SESSION_EXPIRED";
|
|
707
|
+
}
|
|
674
708
|
/** Seconds to wait before retrying, when the backend throttled the call (429 `retry_after`). */
|
|
675
709
|
get retryAfter() {
|
|
676
710
|
const v = this.bodyObject()["retry_after"];
|
|
@@ -954,7 +988,7 @@ function toDestinationsResult(raw, direction) {
|
|
|
954
988
|
}
|
|
955
989
|
|
|
956
990
|
// src/version.ts
|
|
957
|
-
var SDK_VERSION = "3.
|
|
991
|
+
var SDK_VERSION = "3.12.0";
|
|
958
992
|
|
|
959
993
|
// src/shared/types.ts
|
|
960
994
|
function isRefundPendingApproval(r) {
|
|
@@ -1126,7 +1160,7 @@ async function hmacHexSubtle(secret, message) {
|
|
|
1126
1160
|
|
|
1127
1161
|
// src/server.ts
|
|
1128
1162
|
var DEFAULT_UA = `invonetwork-web-sdk/${SDK_VERSION} (+https://invo.network)`;
|
|
1129
|
-
var MAX_USD_AMOUNT =
|
|
1163
|
+
var MAX_USD_AMOUNT = 999999.99;
|
|
1130
1164
|
var MAX_ITEM_PRICE = 999999.99;
|
|
1131
1165
|
function invalidInput(label, value, why) {
|
|
1132
1166
|
return new InvoError({
|
|
@@ -1163,6 +1197,19 @@ function assertE164(value, label) {
|
|
|
1163
1197
|
throw invalidInput(label, value, 'must be an E.164 phone number, e.g. "+15555550100"');
|
|
1164
1198
|
}
|
|
1165
1199
|
}
|
|
1200
|
+
function sessionTokenFromCreateCheckout(raw, checkoutUrl) {
|
|
1201
|
+
const field = raw["session_token"];
|
|
1202
|
+
if (typeof field === "string" && field.trim()) return field;
|
|
1203
|
+
return sessionTokenFromCheckoutUrl(checkoutUrl);
|
|
1204
|
+
}
|
|
1205
|
+
function sessionTokenFromCheckoutUrl(checkoutUrl) {
|
|
1206
|
+
try {
|
|
1207
|
+
const value = new URL(checkoutUrl).searchParams.get("session");
|
|
1208
|
+
return value && value.trim() ? value : void 0;
|
|
1209
|
+
} catch {
|
|
1210
|
+
return void 0;
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1166
1213
|
function toOrderDetails(raw) {
|
|
1167
1214
|
return {
|
|
1168
1215
|
order: raw["order"] ?? {},
|
|
@@ -1415,7 +1462,6 @@ function requireField(value, field, raw) {
|
|
|
1415
1462
|
}
|
|
1416
1463
|
var FUNDING_SOURCES = /* @__PURE__ */ new Set(["balance", "card"]);
|
|
1417
1464
|
var CARD_MIN_USD = 0.5;
|
|
1418
|
-
var CARD_MAX_USD = 999.99;
|
|
1419
1465
|
var PlatformCommerceServer = class {
|
|
1420
1466
|
constructor(http, auth) {
|
|
1421
1467
|
this.http = http;
|
|
@@ -1432,7 +1478,10 @@ var PlatformCommerceServer = class {
|
|
|
1432
1478
|
* Send the buyer to `checkoutUrl` — INVO's hosted page owns the card form, wallets,
|
|
1433
1479
|
* billing address, and 3-D Secure (there is NO billing address in this request, and no
|
|
1434
1480
|
* client payment code to write; optionally embed via
|
|
1435
|
-
* `InvoClient.platformCommerce.mountCheckout`). `totalPrice` is USD
|
|
1481
|
+
* `InvoClient.platformCommerce.mountCheckout`). `totalPrice` is USD, at least $0.50;
|
|
1482
|
+
* the maximum is an INVO setting ($100,000.00 by default) and is enforced on the
|
|
1483
|
+
* request, not here, so read the live figure off `ABOVE_CARD_MAXIMUM` rather than
|
|
1484
|
+
* pinning one.
|
|
1436
1485
|
* The sale is real only on the `platform_commerce.purchased` webhook — never on the
|
|
1437
1486
|
* client return.
|
|
1438
1487
|
*
|
|
@@ -1478,13 +1527,6 @@ var PlatformCommerceServer = class {
|
|
|
1478
1527
|
status: 0
|
|
1479
1528
|
});
|
|
1480
1529
|
}
|
|
1481
|
-
if (total > CARD_MAX_USD) {
|
|
1482
|
-
throw new InvoError({
|
|
1483
|
-
message: `Card purchases must be $${CARD_MAX_USD} or less.`,
|
|
1484
|
-
code: "ABOVE_CARD_MAXIMUM",
|
|
1485
|
-
status: 0
|
|
1486
|
-
});
|
|
1487
|
-
}
|
|
1488
1530
|
}
|
|
1489
1531
|
if (input.playerPhone !== void 0) assertE164(input.playerPhone, "playerPhone");
|
|
1490
1532
|
const body = {
|
|
@@ -2720,11 +2762,16 @@ var InvoServer = class {
|
|
|
2720
2762
|
{ signal: opts?.signal }
|
|
2721
2763
|
// not idempotent — never auto-retried
|
|
2722
2764
|
);
|
|
2765
|
+
const checkoutUrl = requireField(raw["checkout_url"], "checkout_url", raw);
|
|
2723
2766
|
return {
|
|
2724
2767
|
sessionId: String(raw["session_id"] ?? ""),
|
|
2725
|
-
checkoutUrl
|
|
2768
|
+
checkoutUrl,
|
|
2726
2769
|
expiresAt: String(raw["expires_at"] ?? ""),
|
|
2727
2770
|
expiresInSeconds: Number(raw["expires_in_seconds"] ?? 0),
|
|
2771
|
+
// INVO's own `session_token` field, falling back to the `checkout_url` query string
|
|
2772
|
+
// for a backend older than commit 856fa266. Either way a server that wants to read
|
|
2773
|
+
// the purchase status later does not have to parse a URL itself.
|
|
2774
|
+
sessionToken: sessionTokenFromCreateCheckout(raw, checkoutUrl),
|
|
2728
2775
|
raw
|
|
2729
2776
|
};
|
|
2730
2777
|
}
|
package/dist/server.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { I as InvoError, H as Http,
|
|
2
|
-
export {
|
|
1
|
+
import { I as InvoError, H as Http, x as AuthHeader, y as CardSetupSessionInput, g as CallOptions, z as CardSetupSessionResult, F as CardSetupInput, G as CardSetupResult, J as CardSetupConfirmInput, K as CardSetupConfirmResult, N as PlayerCardsResult, O as PlatformPurchaseInput, Q as PlatformPurchaseResult, S as PlatformOrderStatusResult, T as PlatformRefundInput, U as PlatformRefundResult, X as CreateSubscriptionInput, Y as SubscriptionResult, Z as GetSubscriptionOptions, _ as GetSubscriptionResult, $ as ListSubscriptionsOptions, a0 as SubscriptionListResult, a1 as CancelSubscriptionOptions, a2 as CancelResult, a3 as ChangeAmountResult, a4 as SetPaymentMethodInput, a5 as SetPaymentMethodResult, a6 as RefundSubscriptionInput, a7 as RefundResult, a8 as SteamSubscriptionInitInput, a9 as SteamInitResult, aa as SteamFinalizeSubscriptionResult, ab as SandboxClockResult, ac as SandboxFailureOutcome, ad as SandboxForceFailureOptions, ae as SandboxForceAuthChallengeOptions, af as ServerConfig, ag as PlayerToken, ah as InitiateSendInput, ai as InitiateResult, aj as InitiateTransferInput, ak as CreateCheckoutInput, al as CreateCheckoutResult, am as PurchaseInput, an as PurchaseResult, ao as ConfirmPaymentResult, ap as OrderDetailsResult, aq as SteamPacksQuery, ar as SteamPacksResult, as as SteamInitPurchaseInput, at as SteamInitPurchaseResult, au as SteamFinalizeInput, av as SteamFinalizeResult, aw as PurchaseItemInput, ax as PurchaseItemResult, ay as ItemHistoryQuery, az as ItemHistoryResult, aA as ItemOrderQuery, aB as PlayerBalanceQuery, aC as PlayerBalanceResult, aD as InboundPendingQuery, aE as InboundPendingResult, aF as LinkedIdentitiesQuery, aG as LinkedIdentitiesResult, aH as SmsVerifyResult, aI as ClaimTransferInput, aJ as ClaimResult, aK as ClaimCurrencyInput, aL as TransactionStatusResult, aM as GuardianApprovalStatusResult, aN as ServerDestinationsQuery, k as DestinationsResult, aO as PhoneShareContact, aP as PhoneShareInitiateResult, aQ as PhoneShareApproveInput, aR as PhoneShareApproveResult, aS as PhoneShareStatusResult, aT as BeginDeviceApprovalInput, aU as DeviceApprovalGrant, aV as PollDeviceApprovalInput, aW as DeviceApprovalPollResult, aX as ConfirmDeviceEnrollmentInput, aY as ConfirmDeviceEnrollmentResult, aZ as ApproveWithDeviceCodeInput, a_ as DeviceApprovalSettleResult, a$ as CompleteDeviceApprovalInput, b0 as CompleteDeviceApprovalResult } from './types-CT0Ksonp.cjs';
|
|
2
|
+
export { b1 as CardSetupStatus, b2 as CurrencyBalance, p as DestinationGame, b3 as DeviceApprovalChannel, b4 as DeviceApprovalEnrollment, b5 as DeviceApprovalFlow, b6 as DeviceApprovalPollStatus, b7 as DeviceEnrollmentDecision, b8 as DeviceEnrollmentRespond, b9 as FirstCharge, ba as FirstChargeStatus, bb as FundingSource, bc as InboundPendingItem, q as InvoErrorInfo, r as InvoHooks, s as InvoRequestInfo, t as InvoResponseInfo, bd as LinkedIdentityEmail, be as PlatformPurchaseStatus, w as Rail, bf as RefundInitiation, bg as RefundPendingApproval, bh as RefundProcessingFeeBasis, bi as RefundReceipt, bj as RefundRevenueShareAttribution, bk as RefundWarning, bl as SandboxClockState, bm as SavedCard, bn as SteamPack, bo as SteamUserSession, bp as Subscription, bq as SubscriptionBaseInput, br as SubscriptionConsent, bs as SubscriptionConsentInput, bt as SubscriptionFundingRail, bu as SubscriptionInterval, bv as SubscriptionRevenueShare, bw as SubscriptionRevenueShareInput, bx as SubscriptionStatus, V as VerificationMethod, by as isRefundPendingApproval } from './types-CT0Ksonp.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The package version, as sent in the server User-Agent. A test pins this to
|
|
6
6
|
* `package.json` so it cannot drift silently (it did: the UA read 3.0.0 through 3.7.0).
|
|
7
7
|
* Bump it with the changeset flow.
|
|
8
8
|
*/
|
|
9
|
-
declare const SDK_VERSION = "3.
|
|
9
|
+
declare const SDK_VERSION = "3.12.0";
|
|
10
10
|
|
|
11
11
|
interface VerifyWebhookOptions {
|
|
12
12
|
/** Max age of the signed timestamp, in seconds. Default 300 (5 min). */
|
|
@@ -584,7 +584,10 @@ declare class PlatformCommerceServer {
|
|
|
584
584
|
* Send the buyer to `checkoutUrl` — INVO's hosted page owns the card form, wallets,
|
|
585
585
|
* billing address, and 3-D Secure (there is NO billing address in this request, and no
|
|
586
586
|
* client payment code to write; optionally embed via
|
|
587
|
-
* `InvoClient.platformCommerce.mountCheckout`). `totalPrice` is USD
|
|
587
|
+
* `InvoClient.platformCommerce.mountCheckout`). `totalPrice` is USD, at least $0.50;
|
|
588
|
+
* the maximum is an INVO setting ($100,000.00 by default) and is enforced on the
|
|
589
|
+
* request, not here, so read the live figure off `ABOVE_CARD_MAXIMUM` rather than
|
|
590
|
+
* pinning one.
|
|
588
591
|
* The sale is real only on the `platform_commerce.purchased` webhook — never on the
|
|
589
592
|
* client return.
|
|
590
593
|
*
|
package/dist/server.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { I as InvoError, H as Http,
|
|
2
|
-
export {
|
|
1
|
+
import { I as InvoError, H as Http, x as AuthHeader, y as CardSetupSessionInput, g as CallOptions, z as CardSetupSessionResult, F as CardSetupInput, G as CardSetupResult, J as CardSetupConfirmInput, K as CardSetupConfirmResult, N as PlayerCardsResult, O as PlatformPurchaseInput, Q as PlatformPurchaseResult, S as PlatformOrderStatusResult, T as PlatformRefundInput, U as PlatformRefundResult, X as CreateSubscriptionInput, Y as SubscriptionResult, Z as GetSubscriptionOptions, _ as GetSubscriptionResult, $ as ListSubscriptionsOptions, a0 as SubscriptionListResult, a1 as CancelSubscriptionOptions, a2 as CancelResult, a3 as ChangeAmountResult, a4 as SetPaymentMethodInput, a5 as SetPaymentMethodResult, a6 as RefundSubscriptionInput, a7 as RefundResult, a8 as SteamSubscriptionInitInput, a9 as SteamInitResult, aa as SteamFinalizeSubscriptionResult, ab as SandboxClockResult, ac as SandboxFailureOutcome, ad as SandboxForceFailureOptions, ae as SandboxForceAuthChallengeOptions, af as ServerConfig, ag as PlayerToken, ah as InitiateSendInput, ai as InitiateResult, aj as InitiateTransferInput, ak as CreateCheckoutInput, al as CreateCheckoutResult, am as PurchaseInput, an as PurchaseResult, ao as ConfirmPaymentResult, ap as OrderDetailsResult, aq as SteamPacksQuery, ar as SteamPacksResult, as as SteamInitPurchaseInput, at as SteamInitPurchaseResult, au as SteamFinalizeInput, av as SteamFinalizeResult, aw as PurchaseItemInput, ax as PurchaseItemResult, ay as ItemHistoryQuery, az as ItemHistoryResult, aA as ItemOrderQuery, aB as PlayerBalanceQuery, aC as PlayerBalanceResult, aD as InboundPendingQuery, aE as InboundPendingResult, aF as LinkedIdentitiesQuery, aG as LinkedIdentitiesResult, aH as SmsVerifyResult, aI as ClaimTransferInput, aJ as ClaimResult, aK as ClaimCurrencyInput, aL as TransactionStatusResult, aM as GuardianApprovalStatusResult, aN as ServerDestinationsQuery, k as DestinationsResult, aO as PhoneShareContact, aP as PhoneShareInitiateResult, aQ as PhoneShareApproveInput, aR as PhoneShareApproveResult, aS as PhoneShareStatusResult, aT as BeginDeviceApprovalInput, aU as DeviceApprovalGrant, aV as PollDeviceApprovalInput, aW as DeviceApprovalPollResult, aX as ConfirmDeviceEnrollmentInput, aY as ConfirmDeviceEnrollmentResult, aZ as ApproveWithDeviceCodeInput, a_ as DeviceApprovalSettleResult, a$ as CompleteDeviceApprovalInput, b0 as CompleteDeviceApprovalResult } from './types-CT0Ksonp.js';
|
|
2
|
+
export { b1 as CardSetupStatus, b2 as CurrencyBalance, p as DestinationGame, b3 as DeviceApprovalChannel, b4 as DeviceApprovalEnrollment, b5 as DeviceApprovalFlow, b6 as DeviceApprovalPollStatus, b7 as DeviceEnrollmentDecision, b8 as DeviceEnrollmentRespond, b9 as FirstCharge, ba as FirstChargeStatus, bb as FundingSource, bc as InboundPendingItem, q as InvoErrorInfo, r as InvoHooks, s as InvoRequestInfo, t as InvoResponseInfo, bd as LinkedIdentityEmail, be as PlatformPurchaseStatus, w as Rail, bf as RefundInitiation, bg as RefundPendingApproval, bh as RefundProcessingFeeBasis, bi as RefundReceipt, bj as RefundRevenueShareAttribution, bk as RefundWarning, bl as SandboxClockState, bm as SavedCard, bn as SteamPack, bo as SteamUserSession, bp as Subscription, bq as SubscriptionBaseInput, br as SubscriptionConsent, bs as SubscriptionConsentInput, bt as SubscriptionFundingRail, bu as SubscriptionInterval, bv as SubscriptionRevenueShare, bw as SubscriptionRevenueShareInput, bx as SubscriptionStatus, V as VerificationMethod, by as isRefundPendingApproval } from './types-CT0Ksonp.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The package version, as sent in the server User-Agent. A test pins this to
|
|
6
6
|
* `package.json` so it cannot drift silently (it did: the UA read 3.0.0 through 3.7.0).
|
|
7
7
|
* Bump it with the changeset flow.
|
|
8
8
|
*/
|
|
9
|
-
declare const SDK_VERSION = "3.
|
|
9
|
+
declare const SDK_VERSION = "3.12.0";
|
|
10
10
|
|
|
11
11
|
interface VerifyWebhookOptions {
|
|
12
12
|
/** Max age of the signed timestamp, in seconds. Default 300 (5 min). */
|
|
@@ -584,7 +584,10 @@ declare class PlatformCommerceServer {
|
|
|
584
584
|
* Send the buyer to `checkoutUrl` — INVO's hosted page owns the card form, wallets,
|
|
585
585
|
* billing address, and 3-D Secure (there is NO billing address in this request, and no
|
|
586
586
|
* client payment code to write; optionally embed via
|
|
587
|
-
* `InvoClient.platformCommerce.mountCheckout`). `totalPrice` is USD
|
|
587
|
+
* `InvoClient.platformCommerce.mountCheckout`). `totalPrice` is USD, at least $0.50;
|
|
588
|
+
* the maximum is an INVO setting ($100,000.00 by default) and is enforced on the
|
|
589
|
+
* request, not here, so read the live figure off `ABOVE_CARD_MAXIMUM` rather than
|
|
590
|
+
* pinning one.
|
|
588
591
|
* The sale is real only on the `platform_commerce.purchased` webhook — never on the
|
|
589
592
|
* client return.
|
|
590
593
|
*
|
package/dist/server.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { InvoError, assertSecureBaseUrl, Http, toDestinationsResult } from './chunk-
|
|
2
|
-
export { InvoError } from './chunk-
|
|
1
|
+
import { InvoError, assertSecureBaseUrl, Http, toDestinationsResult } from './chunk-5BMM5ZTW.js';
|
|
2
|
+
export { InvoError } from './chunk-5BMM5ZTW.js';
|
|
3
3
|
import { createHmac, timingSafeEqual } from 'crypto';
|
|
4
4
|
|
|
5
5
|
// src/version.ts
|
|
6
|
-
var SDK_VERSION = "3.
|
|
6
|
+
var SDK_VERSION = "3.12.0";
|
|
7
7
|
|
|
8
8
|
// src/shared/types.ts
|
|
9
9
|
function isRefundPendingApproval(r) {
|
|
@@ -175,7 +175,7 @@ async function hmacHexSubtle(secret, message) {
|
|
|
175
175
|
|
|
176
176
|
// src/server.ts
|
|
177
177
|
var DEFAULT_UA = `invonetwork-web-sdk/${SDK_VERSION} (+https://invo.network)`;
|
|
178
|
-
var MAX_USD_AMOUNT =
|
|
178
|
+
var MAX_USD_AMOUNT = 999999.99;
|
|
179
179
|
var MAX_ITEM_PRICE = 999999.99;
|
|
180
180
|
function invalidInput(label, value, why) {
|
|
181
181
|
return new InvoError({
|
|
@@ -212,6 +212,19 @@ function assertE164(value, label) {
|
|
|
212
212
|
throw invalidInput(label, value, 'must be an E.164 phone number, e.g. "+15555550100"');
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
+
function sessionTokenFromCreateCheckout(raw, checkoutUrl) {
|
|
216
|
+
const field = raw["session_token"];
|
|
217
|
+
if (typeof field === "string" && field.trim()) return field;
|
|
218
|
+
return sessionTokenFromCheckoutUrl(checkoutUrl);
|
|
219
|
+
}
|
|
220
|
+
function sessionTokenFromCheckoutUrl(checkoutUrl) {
|
|
221
|
+
try {
|
|
222
|
+
const value = new URL(checkoutUrl).searchParams.get("session");
|
|
223
|
+
return value && value.trim() ? value : void 0;
|
|
224
|
+
} catch {
|
|
225
|
+
return void 0;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
215
228
|
function toOrderDetails(raw) {
|
|
216
229
|
return {
|
|
217
230
|
order: raw["order"] ?? {},
|
|
@@ -464,7 +477,6 @@ function requireField(value, field, raw) {
|
|
|
464
477
|
}
|
|
465
478
|
var FUNDING_SOURCES = /* @__PURE__ */ new Set(["balance", "card"]);
|
|
466
479
|
var CARD_MIN_USD = 0.5;
|
|
467
|
-
var CARD_MAX_USD = 999.99;
|
|
468
480
|
var PlatformCommerceServer = class {
|
|
469
481
|
constructor(http, auth) {
|
|
470
482
|
this.http = http;
|
|
@@ -481,7 +493,10 @@ var PlatformCommerceServer = class {
|
|
|
481
493
|
* Send the buyer to `checkoutUrl` — INVO's hosted page owns the card form, wallets,
|
|
482
494
|
* billing address, and 3-D Secure (there is NO billing address in this request, and no
|
|
483
495
|
* client payment code to write; optionally embed via
|
|
484
|
-
* `InvoClient.platformCommerce.mountCheckout`). `totalPrice` is USD
|
|
496
|
+
* `InvoClient.platformCommerce.mountCheckout`). `totalPrice` is USD, at least $0.50;
|
|
497
|
+
* the maximum is an INVO setting ($100,000.00 by default) and is enforced on the
|
|
498
|
+
* request, not here, so read the live figure off `ABOVE_CARD_MAXIMUM` rather than
|
|
499
|
+
* pinning one.
|
|
485
500
|
* The sale is real only on the `platform_commerce.purchased` webhook — never on the
|
|
486
501
|
* client return.
|
|
487
502
|
*
|
|
@@ -527,13 +542,6 @@ var PlatformCommerceServer = class {
|
|
|
527
542
|
status: 0
|
|
528
543
|
});
|
|
529
544
|
}
|
|
530
|
-
if (total > CARD_MAX_USD) {
|
|
531
|
-
throw new InvoError({
|
|
532
|
-
message: `Card purchases must be $${CARD_MAX_USD} or less.`,
|
|
533
|
-
code: "ABOVE_CARD_MAXIMUM",
|
|
534
|
-
status: 0
|
|
535
|
-
});
|
|
536
|
-
}
|
|
537
545
|
}
|
|
538
546
|
if (input.playerPhone !== void 0) assertE164(input.playerPhone, "playerPhone");
|
|
539
547
|
const body = {
|
|
@@ -1769,11 +1777,16 @@ var InvoServer = class {
|
|
|
1769
1777
|
{ signal: opts?.signal }
|
|
1770
1778
|
// not idempotent — never auto-retried
|
|
1771
1779
|
);
|
|
1780
|
+
const checkoutUrl = requireField(raw["checkout_url"], "checkout_url", raw);
|
|
1772
1781
|
return {
|
|
1773
1782
|
sessionId: String(raw["session_id"] ?? ""),
|
|
1774
|
-
checkoutUrl
|
|
1783
|
+
checkoutUrl,
|
|
1775
1784
|
expiresAt: String(raw["expires_at"] ?? ""),
|
|
1776
1785
|
expiresInSeconds: Number(raw["expires_in_seconds"] ?? 0),
|
|
1786
|
+
// INVO's own `session_token` field, falling back to the `checkout_url` query string
|
|
1787
|
+
// for a backend older than commit 856fa266. Either way a server that wants to read
|
|
1788
|
+
// the purchase status later does not have to parse a URL itself.
|
|
1789
|
+
sessionToken: sessionTokenFromCreateCheckout(raw, checkoutUrl),
|
|
1777
1790
|
raw
|
|
1778
1791
|
};
|
|
1779
1792
|
}
|
|
@@ -296,8 +296,15 @@ declare class InvoError extends Error {
|
|
|
296
296
|
/** True if a Platform Commerce CARD purchase was below the processor's floor of $0.50
|
|
297
297
|
* (backend code `BELOW_STRIPE_MINIMUM`, 400). Neutral name; matches the wire code. */
|
|
298
298
|
get isBelowCardMinimum(): boolean;
|
|
299
|
-
/** True if a
|
|
300
|
-
*
|
|
299
|
+
/** True if a CARD purchase exceeded INVO's maximum single card charge
|
|
300
|
+
* (`ABOVE_CARD_MAXIMUM`, 400) — split the sale or lower the amount. Do not retry it
|
|
301
|
+
* unchanged; nothing was charged.
|
|
302
|
+
*
|
|
303
|
+
* The cap is a runtime setting ($100,000.00 by default since 2026-09-18), editable by
|
|
304
|
+
* an INVO admin without a deploy and different per environment, so this SDK does not
|
|
305
|
+
* pin it and never raises this error locally. `err.message` carries the figure that was
|
|
306
|
+
* in force for the request that failed; the live figure for a tenant is also the
|
|
307
|
+
* `max_amount` of the hosted checkout's `validate-game` read. */
|
|
301
308
|
get isAboveCardMaximum(): boolean;
|
|
302
309
|
/**
|
|
303
310
|
* True if a Platform Commerce refund targeted an order that was already refunded
|
|
@@ -506,6 +513,26 @@ declare class InvoError extends Error {
|
|
|
506
513
|
* (`javascript:`, `data:`, `vbscript:`). http(s) and app deep-link schemes are fine.
|
|
507
514
|
*/
|
|
508
515
|
get isInvalidInput(): boolean;
|
|
516
|
+
/**
|
|
517
|
+
* True when a session token was refused because it belongs to a DIFFERENT checkout
|
|
518
|
+
* session than the id in the path (`SESSION_MISMATCH`, 403). The token is the
|
|
519
|
+
* credential and the id is only a label, so the two have to agree; pair a `sessionId`
|
|
520
|
+
* with the `sessionToken` minted for it.
|
|
521
|
+
*/
|
|
522
|
+
get isCheckoutSessionMismatch(): boolean;
|
|
523
|
+
/**
|
|
524
|
+
* True when a token minted to SAVE A CARD was used where a purchase token belongs
|
|
525
|
+
* (`WRONG_SESSION_PURPOSE`, 401). A card setup session settles nothing and has no
|
|
526
|
+
* purchase to report on.
|
|
527
|
+
*/
|
|
528
|
+
get isWrongSessionPurpose(): boolean;
|
|
529
|
+
/**
|
|
530
|
+
* True when a checkout session token is too far past its expiry to answer with
|
|
531
|
+
* (`SESSION_EXPIRED`, 410). A lapsed token still reads its own purchase for a bounded
|
|
532
|
+
* window, because a charge outlives a 15 minute link; past that, show the buyer the
|
|
533
|
+
* order id you already hold and a Contact support link rather than a blank screen.
|
|
534
|
+
*/
|
|
535
|
+
get isCheckoutSessionExpired(): boolean;
|
|
509
536
|
/** Seconds to wait before retrying, when the backend throttled the call (429 `retry_after`). */
|
|
510
537
|
get retryAfter(): number | undefined;
|
|
511
538
|
/** `body` as a plain object, or `{}` if it's a string/number/null (non-JSON responses).
|
|
@@ -702,6 +729,10 @@ interface InitiateResult {
|
|
|
702
729
|
}
|
|
703
730
|
interface CreateCheckoutInput {
|
|
704
731
|
playerEmail: string;
|
|
732
|
+
/** USD, two decimals. The advertised minimum is $0.50 (the card rail's own floor).
|
|
733
|
+
* The maximum is an INVO runtime setting, $100,000.00 by default, editable by an
|
|
734
|
+
* admin and different per environment, so it is enforced on the request rather than
|
|
735
|
+
* pinned here: expect a 400 carrying the live figure. */
|
|
705
736
|
usdAmount: string | number;
|
|
706
737
|
/** Which rail the hosted page presents. Default "platform" (card). The page
|
|
707
738
|
* renders the right experience per rail — all branded as INVO. */
|
|
@@ -717,10 +748,24 @@ interface CreateCheckoutResult {
|
|
|
717
748
|
expiresAt: string;
|
|
718
749
|
/** The `checkout_url` token TTL in seconds (e.g. 900 = 15 min). 0 if the backend omits it. */
|
|
719
750
|
expiresInSeconds: number;
|
|
751
|
+
/**
|
|
752
|
+
* The session token that authenticates {@link CheckoutClient.getPurchaseStatus}. Taken
|
|
753
|
+
* from INVO's `session_token` field, and only from `checkoutUrl`'s `session` parameter
|
|
754
|
+
* when talking to a backend that predates that field. `undefined` if neither carries one.
|
|
755
|
+
*
|
|
756
|
+
* IT IS A CREDENTIAL. It authorises reading this one purchase's status and nothing else,
|
|
757
|
+
* but it is still the thing that opens the checkout, so keep it server-side or hand it
|
|
758
|
+
* only to the buyer whose purchase it is.
|
|
759
|
+
*/
|
|
760
|
+
sessionToken?: string;
|
|
720
761
|
raw: Record<string, unknown>;
|
|
721
762
|
}
|
|
722
763
|
interface PurchaseInput {
|
|
723
764
|
playerEmail: string;
|
|
765
|
+
/** USD, two decimals. The advertised minimum is $0.50 (the card rail's own floor).
|
|
766
|
+
* The maximum is an INVO runtime setting, $100,000.00 by default, editable by an
|
|
767
|
+
* admin and different per environment, so it is enforced on the request rather than
|
|
768
|
+
* pinned here: expect a 400 carrying the live figure. */
|
|
724
769
|
usdAmount: string | number;
|
|
725
770
|
/** Idempotency key. Required. */
|
|
726
771
|
purchaseReference: string;
|
|
@@ -931,8 +976,9 @@ interface PlatformPurchaseInput {
|
|
|
931
976
|
/** Price PER UNIT. > 0. On the CARD leg this is USD; on the BALANCE leg it is the
|
|
932
977
|
* tenant's network-currency amount. */
|
|
933
978
|
unitPrice: string | number;
|
|
934
|
-
/** Must equal unitPrice × itemQuantity (±0.01). USD on the card leg (
|
|
935
|
-
*
|
|
979
|
+
/** Must equal unitPrice × itemQuantity (±0.01). USD on the card leg (at least $0.50;
|
|
980
|
+
* the maximum is an INVO setting, $100,000.00 by default, enforced on the request);
|
|
981
|
+
* network currency on the balance leg. */
|
|
936
982
|
totalPrice: string | number;
|
|
937
983
|
playerPhone?: string;
|
|
938
984
|
itemDescription?: string;
|
|
@@ -2288,5 +2334,165 @@ interface SandboxClockResult {
|
|
|
2288
2334
|
note?: string;
|
|
2289
2335
|
raw: Record<string, unknown>;
|
|
2290
2336
|
}
|
|
2337
|
+
/**
|
|
2338
|
+
* What a checkout purchase is DOING, in the six words INVO answers with.
|
|
2339
|
+
*
|
|
2340
|
+
* NAMED `Checkout…` BECAUSE `PurchaseStatus` WAS ALREADY TAKEN, by the direct
|
|
2341
|
+
* `purchaseCurrency` result (`success` | `requires_action` | `pending_payment`). That one
|
|
2342
|
+
* is unchanged and is a different question: it reports how a single call ended, while this
|
|
2343
|
+
* reports what happened to the buyer's money afterwards.
|
|
2344
|
+
*
|
|
2345
|
+
* | value | meaning |
|
|
2346
|
+
* |---|---|
|
|
2347
|
+
* | `pending` | No payment has been seen for this checkout yet. |
|
|
2348
|
+
* | `paid_pending_credit` | A charge is open and the coins are not in the balance yet. Normally seconds. |
|
|
2349
|
+
* | `credited` | Charged and credited. |
|
|
2350
|
+
* | `refused` | This purchase will not credit; `reasonCode` says why. |
|
|
2351
|
+
* | `refunded` | The money went back to the buyer. |
|
|
2352
|
+
* | `expired` | Never paid, can no longer be paid. |
|
|
2353
|
+
*
|
|
2354
|
+
* WIDENED ON PURPOSE. `(string & {})` keeps the six literals in autocomplete while
|
|
2355
|
+
* letting any string assign and compare, so a value INVO adds later cannot break a
|
|
2356
|
+
* build pinned to this release. `RefundResult.status` learned this in 3.10.0.
|
|
2357
|
+
*
|
|
2358
|
+
* **Never decide when to stop polling from this field.** Use
|
|
2359
|
+
* {@link PurchaseStatusResult.terminal}, which INVO sends.
|
|
2360
|
+
*/
|
|
2361
|
+
type CheckoutPurchaseStatus = "pending" | "paid_pending_credit" | "credited" | "refused" | "refunded" | "expired" | (string & {});
|
|
2362
|
+
/**
|
|
2363
|
+
* Why a purchase was refused or refunded. Pinned vocabulary; an unrecognised code is a
|
|
2364
|
+
* generic refusal and {@link PurchaseStatusResult.message} is still the thing to render.
|
|
2365
|
+
*
|
|
2366
|
+
* **Money was taken and the coins were withheld** (show `message`, show `orderId`, offer
|
|
2367
|
+
* Contact support, never a Try again): `CREDIT_REFUSED_MINT_CEILING`,
|
|
2368
|
+
* `CREDIT_REFUSED_UNKNOWN_RAIL`, `CREDIT_REFUSED_WRONG_ORDER_TYPE`,
|
|
2369
|
+
* `CREDIT_REFUSED_RATE_UNAVAILABLE`, `CREDIT_REFUSED_NO_PEG_BASIS`,
|
|
2370
|
+
* `CREDIT_REFUSED_NO_PAYMENT_REFERENCE`. They read identically to the buyer, because from
|
|
2371
|
+
* where they are standing they are identical; the code is for support to quote. INVO raises
|
|
2372
|
+
* a critical alert on every one of them.
|
|
2373
|
+
*
|
|
2374
|
+
* **Nothing was charged** (offer Try again beside Contact support): `PAYMENT_DECLINED`,
|
|
2375
|
+
* `PAYMENT_CANCELLED`. See {@link nothingWasCharged}.
|
|
2376
|
+
*
|
|
2377
|
+
* **The money went back**: `REFUNDED`, `CHARGEBACK_LOST`.
|
|
2378
|
+
*/
|
|
2379
|
+
type PurchaseRefusalReason = "PAYMENT_DECLINED" | "PAYMENT_CANCELLED" | "CREDIT_REFUSED_MINT_CEILING" | "CREDIT_REFUSED_UNKNOWN_RAIL" | "CREDIT_REFUSED_RATE_UNAVAILABLE" | "CREDIT_REFUSED_NO_PEG_BASIS" | "CREDIT_REFUSED_NO_PAYMENT_REFERENCE" | "CREDIT_REFUSED_WRONG_ORDER_TYPE" | "REFUNDED" | "CHARGEBACK_LOST" | (string & {});
|
|
2380
|
+
/** Identifies the checkout session to read. Both come from `createCheckout`. */
|
|
2381
|
+
interface PurchaseStatusInput {
|
|
2382
|
+
/** `createCheckout().sessionId`. It is an identifier, not a credential. */
|
|
2383
|
+
sessionId: string;
|
|
2384
|
+
/**
|
|
2385
|
+
* The session token. It is the credential, and it must be the token minted for
|
|
2386
|
+
* `sessionId` (a token for another session is refused `403 SESSION_MISMATCH`).
|
|
2387
|
+
* `createCheckout().sessionToken` carries it, and the hosted page reads it from
|
|
2388
|
+
* its own `?session=` parameter.
|
|
2389
|
+
*/
|
|
2390
|
+
sessionToken: string;
|
|
2391
|
+
}
|
|
2392
|
+
/** Options for `checkout.waitForPurchase`. */
|
|
2393
|
+
interface WaitForPurchaseInput extends PurchaseStatusInput {
|
|
2394
|
+
/**
|
|
2395
|
+
* Spacing between reads, in ms. Default 1500. INVO allows 600 reads per minute per
|
|
2396
|
+
* IP, so one every second or two is well inside the limit and no backoff is needed.
|
|
2397
|
+
*/
|
|
2398
|
+
intervalMs?: number;
|
|
2399
|
+
/**
|
|
2400
|
+
* The cap: stop waiting after this long, in ms. Default 180000 (3 minutes). On the cap
|
|
2401
|
+
* the LAST result is returned with its own `terminal` (false), never a thrown error and
|
|
2402
|
+
* never a guessed outcome, so keep showing the buyer what it says.
|
|
2403
|
+
*
|
|
2404
|
+
* A checkout that is never paid only turns `expired` about 45 minutes after it was
|
|
2405
|
+
* created, because a payment made in the last minutes of a link can still be found
|
|
2406
|
+
* afterwards. Raise the cap if you want to poll a page all the way to that.
|
|
2407
|
+
*/
|
|
2408
|
+
timeoutMs?: number;
|
|
2409
|
+
/** A second cap, on reads rather than time. Unlimited by default. */
|
|
2410
|
+
maxAttempts?: number;
|
|
2411
|
+
/** Cancels the wait. The rejection is an `InvoError` with `code: "ABORTED"`. */
|
|
2412
|
+
signal?: AbortSignal;
|
|
2413
|
+
/** Called with every result, terminal or not. Render the buyer's screen from it. */
|
|
2414
|
+
onUpdate?: (result: PurchaseStatusResult) => void;
|
|
2415
|
+
}
|
|
2416
|
+
/**
|
|
2417
|
+
* What happened to one checkout purchase, in fields a page can render. Every field is
|
|
2418
|
+
* exactly what INVO answered with; nothing here is inferred.
|
|
2419
|
+
*/
|
|
2420
|
+
interface PurchaseStatusResult {
|
|
2421
|
+
/** One of six words. See {@link CheckoutPurchaseStatus}. Do not stop polling on it. */
|
|
2422
|
+
status: CheckoutPurchaseStatus;
|
|
2423
|
+
/**
|
|
2424
|
+
* **INVO's answer to "is anything else going to happen".** `true` for `credited`,
|
|
2425
|
+
* `refused`, `refunded` and `expired`. Stop polling on it and on nothing else: it is
|
|
2426
|
+
* read straight off the response and is never re-derived from `status`, so a status
|
|
2427
|
+
* this build has never heard of cannot be mistaken for a finished purchase. A response
|
|
2428
|
+
* that omits it reads `false`, which keeps a poll going rather than ending it on a guess.
|
|
2429
|
+
*/
|
|
2430
|
+
terminal: boolean;
|
|
2431
|
+
/** The order. `null` until one exists. Always show it on a refusal. */
|
|
2432
|
+
orderId: string | null;
|
|
2433
|
+
/** Echo of the session read. */
|
|
2434
|
+
sessionId: string;
|
|
2435
|
+
/** Decimal string. Non-null only on `credited`. */
|
|
2436
|
+
coinsCredited: string | null;
|
|
2437
|
+
/** Non-null only on `credited`. */
|
|
2438
|
+
transactionId: string | null;
|
|
2439
|
+
/**
|
|
2440
|
+
* The player's balance after the credit, when it could be read cheaply. `null`
|
|
2441
|
+
* otherwise, never a guess, and always `null` once the session has passed its expiry
|
|
2442
|
+
* (the token rides in the checkout URL, so a stale link must not serve a live wallet).
|
|
2443
|
+
*/
|
|
2444
|
+
newBalance: string | null;
|
|
2445
|
+
/** Non-null on `refused` and `refunded`. See {@link PurchaseRefusalReason}. */
|
|
2446
|
+
reasonCode: PurchaseRefusalReason | null;
|
|
2447
|
+
/**
|
|
2448
|
+
* One player-safe sentence, present on `refused`, `refunded` and `expired`.
|
|
2449
|
+
* **Render it verbatim.** Do not paraphrase it, and do not show `reasonCode` on its own.
|
|
2450
|
+
*/
|
|
2451
|
+
message: string | null;
|
|
2452
|
+
/**
|
|
2453
|
+
* What the card is charged. Before payment it is what this checkout WILL charge.
|
|
2454
|
+
* `amountChargedUsd` minus `listedUsd` is the processing fee the buyer pays on the card
|
|
2455
|
+
* rail, which is the question a buyer billed 206.29 for a 200 pack will ask.
|
|
2456
|
+
*/
|
|
2457
|
+
amountChargedUsd: string | null;
|
|
2458
|
+
/** The listed pack price. */
|
|
2459
|
+
listedUsd: string | null;
|
|
2460
|
+
/** What the coins are called in this game, for your own copy. */
|
|
2461
|
+
currencyName: string | null;
|
|
2462
|
+
raw: Record<string, unknown>;
|
|
2463
|
+
}
|
|
2464
|
+
/** A {@link PurchaseStatusResult} narrowed by {@link isPurchaseCredited}. */
|
|
2465
|
+
interface PurchaseCredited extends PurchaseStatusResult {
|
|
2466
|
+
status: "credited";
|
|
2467
|
+
coinsCredited: string;
|
|
2468
|
+
transactionId: string;
|
|
2469
|
+
}
|
|
2470
|
+
/** A {@link PurchaseStatusResult} narrowed by {@link isPurchaseRefused}. */
|
|
2471
|
+
interface PurchaseRefused extends PurchaseStatusResult {
|
|
2472
|
+
status: "refused";
|
|
2473
|
+
reasonCode: PurchaseRefusalReason;
|
|
2474
|
+
message: string;
|
|
2475
|
+
}
|
|
2476
|
+
/** A {@link PurchaseStatusResult} narrowed by {@link isPurchaseRefunded}. */
|
|
2477
|
+
interface PurchaseRefunded extends PurchaseStatusResult {
|
|
2478
|
+
status: "refunded";
|
|
2479
|
+
reasonCode: PurchaseRefusalReason;
|
|
2480
|
+
message: string;
|
|
2481
|
+
}
|
|
2482
|
+
/** A {@link PurchaseStatusResult} narrowed by {@link isPurchaseExpired}. */
|
|
2483
|
+
interface PurchaseExpired extends PurchaseStatusResult {
|
|
2484
|
+
status: "expired";
|
|
2485
|
+
message: string;
|
|
2486
|
+
}
|
|
2487
|
+
/** Config for a standalone {@link CheckoutClient} (a page with no player token). */
|
|
2488
|
+
interface CheckoutClientConfig {
|
|
2489
|
+
/** e.g. `https://invo.network` or `https://sandbox.invo.network/sandbox`. */
|
|
2490
|
+
baseUrl: string;
|
|
2491
|
+
timeoutMs?: number;
|
|
2492
|
+
fetch?: typeof fetch;
|
|
2493
|
+
maxRetries?: number;
|
|
2494
|
+
retryBaseDelayMs?: number;
|
|
2495
|
+
hooks?: InvoHooks;
|
|
2496
|
+
}
|
|
2291
2497
|
|
|
2292
|
-
export { type
|
|
2498
|
+
export { type ListSubscriptionsOptions as $, type ApproveResult as A, type BalanceResult as B, type ConfirmReceiptResult as C, type DestinationsQuery as D, type EnrollmentBeginResult as E, type CardSetupInput as F, type CardSetupResult as G, Http as H, InvoError as I, type CardSetupConfirmInput as J, type CardSetupConfirmResult as K, type LinkDeviceResult as L, type MountCheckoutOptions as M, type PlayerCardsResult as N, type PlatformPurchaseInput as O, type PurchaseStatusResult as P, type PlatformPurchaseResult as Q, type RecoveryBeginResult as R, type PlatformOrderStatusResult as S, type PlatformRefundInput as T, type PlatformRefundResult as U, type VerificationMethod as V, type WaitForPurchaseInput as W, type CreateSubscriptionInput as X, type SubscriptionResult as Y, type GetSubscriptionOptions as Z, type GetSubscriptionResult as _, type PurchaseCredited as a, type CompleteDeviceApprovalInput as a$, type SubscriptionListResult as a0, type CancelSubscriptionOptions as a1, type CancelResult as a2, type ChangeAmountResult as a3, type SetPaymentMethodInput as a4, type SetPaymentMethodResult as a5, type RefundSubscriptionInput as a6, type RefundResult as a7, type SteamSubscriptionInitInput as a8, type SteamInitResult as a9, type ItemOrderQuery as aA, type PlayerBalanceQuery as aB, type PlayerBalanceResult as aC, type InboundPendingQuery as aD, type InboundPendingResult as aE, type LinkedIdentitiesQuery as aF, type LinkedIdentitiesResult as aG, type SmsVerifyResult as aH, type ClaimTransferInput as aI, type ClaimResult as aJ, type ClaimCurrencyInput as aK, type TransactionStatusResult as aL, type GuardianApprovalStatusResult as aM, type ServerDestinationsQuery as aN, type PhoneShareContact as aO, type PhoneShareInitiateResult as aP, type PhoneShareApproveInput as aQ, type PhoneShareApproveResult as aR, type PhoneShareStatusResult as aS, type BeginDeviceApprovalInput as aT, type DeviceApprovalGrant as aU, type PollDeviceApprovalInput as aV, type DeviceApprovalPollResult as aW, type ConfirmDeviceEnrollmentInput as aX, type ConfirmDeviceEnrollmentResult as aY, type ApproveWithDeviceCodeInput as aZ, type DeviceApprovalSettleResult as a_, type SteamFinalizeSubscriptionResult as aa, type SandboxClockResult as ab, type SandboxFailureOutcome as ac, type SandboxForceFailureOptions as ad, type SandboxForceAuthChallengeOptions as ae, type ServerConfig as af, type PlayerToken as ag, type InitiateSendInput as ah, type InitiateResult as ai, type InitiateTransferInput as aj, type CreateCheckoutInput as ak, type CreateCheckoutResult as al, type PurchaseInput as am, type PurchaseResult as an, type ConfirmPaymentResult as ao, type OrderDetailsResult as ap, type SteamPacksQuery as aq, type SteamPacksResult as ar, type SteamInitPurchaseInput as as, type SteamInitPurchaseResult as at, type SteamFinalizeInput as au, type SteamFinalizeResult as av, type PurchaseItemInput as aw, type PurchaseItemResult as ax, type ItemHistoryQuery as ay, type ItemHistoryResult as az, type PurchaseExpired as b, type CompleteDeviceApprovalResult as b0, type CardSetupStatus as b1, type CurrencyBalance as b2, type DeviceApprovalChannel as b3, type DeviceApprovalEnrollment as b4, type DeviceApprovalFlow as b5, type DeviceApprovalPollStatus as b6, type DeviceEnrollmentDecision as b7, type DeviceEnrollmentRespond as b8, type FirstCharge as b9, type FirstChargeStatus as ba, type FundingSource as bb, type InboundPendingItem as bc, type LinkedIdentityEmail as bd, type PlatformPurchaseStatus as be, type RefundInitiation as bf, type RefundPendingApproval as bg, type RefundProcessingFeeBasis as bh, type RefundReceipt as bi, type RefundRevenueShareAttribution as bj, type RefundWarning as bk, type SandboxClockState as bl, type SavedCard as bm, type SteamPack as bn, type SteamUserSession as bo, type Subscription as bp, type SubscriptionBaseInput as bq, type SubscriptionConsent as br, type SubscriptionConsentInput as bs, type SubscriptionFundingRail as bt, type SubscriptionInterval as bu, type SubscriptionRevenueShare as bv, type SubscriptionRevenueShareInput as bw, type SubscriptionStatus as bx, isRefundPendingApproval as by, type PurchaseRefunded as c, type PurchaseRefused as d, type CheckoutClientConfig as e, type PurchaseStatusInput as f, type CallOptions as g, type CheckoutMountHandle as h, type ClientConfig as i, type PendingCollectResult as j, type DestinationsResult as k, type EnrollmentVerifyResult as l, type RecoveryCompleteResult as m, type BalanceRow as n, type CheckoutPurchaseStatus as o, type DestinationGame as p, type InvoErrorInfo as q, type InvoHooks as r, type InvoRequestInfo as s, type InvoResponseInfo as t, type PendingCollectItem as u, type PurchaseRefusalReason as v, type Rail as w, type AuthHeader as x, type CardSetupSessionInput as y, type CardSetupSessionResult as z };
|