@invonetwork/web-sdk 3.30.0 → 3.30.2
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 +16 -0
- package/README.md +14 -14
- package/dist/{chunk-QDHOPJFL.js → chunk-7O5JT3LK.js} +4 -48
- package/dist/chunk-EJR7SOQK.js +6 -0
- package/dist/{chunk-664RAO2T.js → chunk-PED5RLYP.js} +25 -6
- package/dist/{chunk-TSTP2CWA.js → chunk-TCT2QSVB.js} +82 -38
- package/dist/game-server.cjs +123 -45
- package/dist/game-server.d.cts +6 -4
- package/dist/game-server.d.ts +6 -4
- package/dist/game-server.js +41 -8
- package/dist/game.cjs +3 -3
- package/dist/game.d.cts +3 -3
- package/dist/game.d.ts +3 -3
- package/dist/game.js +5 -5
- package/dist/{hosted-approval-DiKmtjEh.d.ts → hosted-approval-C3SWGsVT.d.ts} +1 -1
- package/dist/{hosted-approval-DcY4U2RN.d.cts → hosted-approval-P5ddmN-J.d.cts} +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/{server-DEh9wjF2.d.cts → server-4EjDN-L5.d.cts} +18 -7
- package/dist/{server-B0mvlGFY.d.ts → server-Brl2YvfT.d.ts} +18 -7
- package/dist/server.cjs +87 -42
- package/dist/server.d.cts +3 -3
- package/dist/server.d.ts +3 -3
- package/dist/server.js +3 -3
- package/dist/{types-BTbZicgj.d.ts → types-D_NgeTKV.d.cts} +4 -4
- package/dist/{types-BTbZicgj.d.cts → types-D_NgeTKV.d.ts} +4 -4
- package/dist/{version-DfVkILOj.d.cts → version-ENZ-BpKg.d.cts} +1 -1
- package/dist/{version-DfVkILOj.d.ts → version-ENZ-BpKg.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-BIK6UXY7.js +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as InvoError, H as Http, $ as AuthHeader, g as CallOptions, a0 as PlatformPurchaseInput, a1 as PlatformPurchaseResult, a2 as PlatformOrderStatusResult, a3 as PlatformPurchaseHistoryQuery, a4 as PlatformPurchaseHistoryResult, a5 as PlatformRefundInput, a6 as PlatformRefundResult, a7 as CreateSubscriptionInput, a8 as SubscriptionResult, a9 as GetSubscriptionOptions, aa as GetSubscriptionResult, ab as ListSubscriptionsOptions, ac as SubscriptionListResult, ad as CancelSubscriptionOptions, ae as CancelResult, af as ChangeAmountResult, ag as SetPaymentMethodInput, ah as SetPaymentMethodResult, ai as RefundSubscriptionInput, aj as RefundResult, ak as SteamSubscriptionInitInput, al as SteamInitResult, am as SteamFinalizeSubscriptionResult, an as CardSetupSessionInput, ao as CardSetupSessionResult, ap as CardSetupInput, aq as CardSetupResult, ar as CardSetupConfirmInput, as as CardSetupConfirmResult, at as PlayerCardsResult, au as SandboxClockResult, av as SandboxFailureOutcome, aw as SandboxForceFailureOptions, ax as SandboxForceAuthChallengeOptions, ay as ServerConfig, az as MintPlayerTokenInput, aA as PlayerToken, aB as RegisterPlayerInput, aC as RegisterPlayerResult, aD as UpdatePlayerPhoneInput, aE as UpdatePlayerPhoneResult, aF as RequestPhoneChangeInput, aG as RequestPhoneChangeResult, aH as PhoneChangeRequest, aI as InitiateSendInput, aJ as InitiateResult, aK as InitiateTransferInput, aL as CreateCheckoutInput, aM as CreateCheckoutResult, aN as PurchaseInput, aO as PurchaseResult, aP as CurrencyPurchaseQuoteInput, aQ as CurrencyPurchaseQuote, aR as ConfirmPaymentResult, aS as OrderDetailsResult, aT as SteamPacksQuery, aU as SteamPacksResult, aV as SteamInitPurchaseInput, aW as SteamInitPurchaseResult, aX as SteamFinalizeInput, aY as SteamFinalizeResult, aZ as PurchaseItemInput, a_ as PurchaseItemResult, a$ as ItemHistoryQuery, b0 as ItemHistoryResult, b1 as ItemOrderQuery, b2 as PlayerActivityQuery, b3 as PlayerActivityResult, b4 as PlayerActivityEntry, b5 as PlayerBalanceQuery, b6 as PlayerBalanceResult, q as LoyaltyCardsResult, b7 as InboundPendingQuery, b8 as InboundPendingResult, b9 as LinkedIdentitiesQuery, ba as LinkedIdentitiesResult, bb as SmsVerifyResult, bc as ClaimTransferInput, bd as ClaimResult, be as ClaimCurrencyInput, bf as TransactionStatusResult, bg as GuardianApprovalStatusResult, bh as ServerDestinationsQuery, p as DestinationsResult, bi as PhoneShareContact, bj as PhoneShareInitiateResult, bk as PhoneShareApproveInput, bl as PhoneShareApproveResult, bm as PhoneShareStatusResult, bn as BeginDeviceApprovalInput, bo as DeviceApprovalGrant, bp as PollDeviceApprovalInput, bq as DeviceApprovalPollResult, br as ConfirmDeviceEnrollmentInput, bs as ConfirmDeviceEnrollmentResult, bt as ApproveWithDeviceCodeInput, bu as DeviceApprovalSettleResult, bv as CompleteDeviceApprovalInput, bw as CompleteDeviceApprovalResult } from './types-
|
|
1
|
+
import { I as InvoError, H as Http, $ as AuthHeader, g as CallOptions, a0 as PlatformPurchaseInput, a1 as PlatformPurchaseResult, a2 as PlatformOrderStatusResult, a3 as PlatformPurchaseHistoryQuery, a4 as PlatformPurchaseHistoryResult, a5 as PlatformRefundInput, a6 as PlatformRefundResult, a7 as CreateSubscriptionInput, a8 as SubscriptionResult, a9 as GetSubscriptionOptions, aa as GetSubscriptionResult, ab as ListSubscriptionsOptions, ac as SubscriptionListResult, ad as CancelSubscriptionOptions, ae as CancelResult, af as ChangeAmountResult, ag as SetPaymentMethodInput, ah as SetPaymentMethodResult, ai as RefundSubscriptionInput, aj as RefundResult, ak as SteamSubscriptionInitInput, al as SteamInitResult, am as SteamFinalizeSubscriptionResult, an as CardSetupSessionInput, ao as CardSetupSessionResult, ap as CardSetupInput, aq as CardSetupResult, ar as CardSetupConfirmInput, as as CardSetupConfirmResult, at as PlayerCardsResult, au as SandboxClockResult, av as SandboxFailureOutcome, aw as SandboxForceFailureOptions, ax as SandboxForceAuthChallengeOptions, ay as ServerConfig, az as MintPlayerTokenInput, aA as PlayerToken, aB as RegisterPlayerInput, aC as RegisterPlayerResult, aD as UpdatePlayerPhoneInput, aE as UpdatePlayerPhoneResult, aF as RequestPhoneChangeInput, aG as RequestPhoneChangeResult, aH as PhoneChangeRequest, aI as InitiateSendInput, aJ as InitiateResult, aK as InitiateTransferInput, aL as CreateCheckoutInput, aM as CreateCheckoutResult, a as PurchaseStatusResult, aN as PurchaseInput, aO as PurchaseResult, aP as CurrencyPurchaseQuoteInput, aQ as CurrencyPurchaseQuote, aR as ConfirmPaymentResult, aS as OrderDetailsResult, aT as SteamPacksQuery, aU as SteamPacksResult, aV as SteamInitPurchaseInput, aW as SteamInitPurchaseResult, aX as SteamFinalizeInput, aY as SteamFinalizeResult, aZ as PurchaseItemInput, a_ as PurchaseItemResult, a$ as ItemHistoryQuery, b0 as ItemHistoryResult, b1 as ItemOrderQuery, b2 as PlayerActivityQuery, b3 as PlayerActivityResult, b4 as PlayerActivityEntry, b5 as PlayerBalanceQuery, b6 as PlayerBalanceResult, q as LoyaltyCardsResult, b7 as InboundPendingQuery, b8 as InboundPendingResult, b9 as LinkedIdentitiesQuery, ba as LinkedIdentitiesResult, bb as SmsVerifyResult, bc as ClaimTransferInput, bd as ClaimResult, be as ClaimCurrencyInput, bf as TransactionStatusResult, bg as GuardianApprovalStatusResult, bh as ServerDestinationsQuery, p as DestinationsResult, bi as PhoneShareContact, bj as PhoneShareInitiateResult, bk as PhoneShareApproveInput, bl as PhoneShareApproveResult, bm as PhoneShareStatusResult, bn as BeginDeviceApprovalInput, bo as DeviceApprovalGrant, bp as PollDeviceApprovalInput, bq as DeviceApprovalPollResult, br as ConfirmDeviceEnrollmentInput, bs as ConfirmDeviceEnrollmentResult, bt as ApproveWithDeviceCodeInput, bu as DeviceApprovalSettleResult, bv as CompleteDeviceApprovalInput, bw as CompleteDeviceApprovalResult } from './types-D_NgeTKV.cjs';
|
|
2
2
|
import { b as ReportServerGameEventInput, a as ReportGameEventResult } from './loyalty-events-CmDw2ZoR.cjs';
|
|
3
|
-
import './version-
|
|
3
|
+
import './version-ENZ-BpKg.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Pick the INVO environment from the game secret alone (3.28.0).
|
|
@@ -93,7 +93,7 @@ interface PurchaseCompletedData {
|
|
|
93
93
|
receipt_url?: string;
|
|
94
94
|
/**
|
|
95
95
|
* Additive (2026-09 pricing). INVO's card fee charged to you for this purchase, USD decimal
|
|
96
|
-
* string: 3.5% + $0.
|
|
96
|
+
* string: 3.5% + $0.15 on Open, 5.0% + $0.15 on Merchant of Record. The buyer paid the listed
|
|
97
97
|
* price (plus any tax) and received the listed coins; the fee nets against your earnings.
|
|
98
98
|
* Card purchases only; absent on purchases through a third-party storefront or payment rail,
|
|
99
99
|
* on an order charged before the 2026-09 pricing, and from backends that do not send it.
|
|
@@ -508,8 +508,8 @@ interface SubscriptionRenewalFunding {
|
|
|
508
508
|
[key: string]: unknown;
|
|
509
509
|
}
|
|
510
510
|
/**
|
|
511
|
-
* The fee split for one renewal. On the card rail INVO's fee (`invo_fee_usd`) is 3.5% + $0.
|
|
512
|
-
* on Open (5.
|
|
511
|
+
* The fee split for one renewal. On the card rail INVO's fee (`invo_fee_usd`) is 3.5% + $0.15
|
|
512
|
+
* on Open (5.0% + $0.15 on Merchant of Record) of the listed price (before tax). The 1.5%
|
|
513
513
|
* international card fee on a card issued outside the US is NOT inside `invo_fee_usd`: it is
|
|
514
514
|
* reported separately as `international_card_fee_usd` (also `pass_through_fees_usd`) and charged
|
|
515
515
|
* to you on top. Read the figures; do not recompute them. On Steam, `basis` is
|
|
@@ -1736,6 +1736,17 @@ declare class InvoServer {
|
|
|
1736
1736
|
* handles cards, saved cards, and 3-D Secure. Crediting is server-side via the
|
|
1737
1737
|
* purchase.completed webhook. */
|
|
1738
1738
|
createCheckout(input: CreateCheckoutInput, opts?: CallOptions): Promise<CreateCheckoutResult>;
|
|
1739
|
+
/**
|
|
1740
|
+
* Read a hosted checkout's status from INVO, server-side, with the session token that
|
|
1741
|
+
* {@link createCheckout} returned. Same answer as the browser's
|
|
1742
|
+
* `invo.checkout.getPurchaseStatus`. A game server uses it to confirm a purchase when
|
|
1743
|
+
* the signed webhook cannot reach it (for example a private development preview).
|
|
1744
|
+
* It is INVO's own record, read over TLS with the session credential, never the buyer's word.
|
|
1745
|
+
*/
|
|
1746
|
+
getCheckoutStatus(input: {
|
|
1747
|
+
sessionId: string;
|
|
1748
|
+
sessionToken: string;
|
|
1749
|
+
}, opts?: CallOptions): Promise<PurchaseStatusResult>;
|
|
1739
1750
|
/**
|
|
1740
1751
|
* Direct purchase via the rail selector. Use when you need a specific rail.
|
|
1741
1752
|
* - rail "platform" (default): standard card. May return status "requires_action"
|
|
@@ -1743,7 +1754,7 @@ declare class InvoServer {
|
|
|
1743
1754
|
* - rail "game": returns status "pending_payment" + paymentUrl (redirect the browser).
|
|
1744
1755
|
* - rail "steam": NOT a browser flow — the backend returns WRONG_RAIL_ENDPOINT.
|
|
1745
1756
|
*
|
|
1746
|
-
* INVO's card fee (3.5% + $0.
|
|
1757
|
+
* INVO's card fee (3.5% + $0.15 on Open, 5.0% + $0.15 on Merchant of Record, plus 1.5% of
|
|
1747
1758
|
* the listed price (before tax) on a card issued outside the US) is charged to you, the partner. The player
|
|
1748
1759
|
* pays the listed price (plus any tax) and receives the listed coins. Card purchases only;
|
|
1749
1760
|
* purchases through a third-party storefront or payment rail are unaffected. Two shapes,
|
|
@@ -1773,7 +1784,7 @@ declare class InvoServer {
|
|
|
1773
1784
|
*
|
|
1774
1785
|
* The player pays the listed price plus any tax (when you pass `country`) and receives the
|
|
1775
1786
|
* listed coins: `totalUsd` carries no card fee, and `processingFeeUsd` is `"0.00"`. INVO's
|
|
1776
|
-
* card fee (3.5% + $0.
|
|
1787
|
+
* card fee (3.5% + $0.15 on Open, 5.0% + $0.15 on Merchant of Record) is charged to you;
|
|
1777
1788
|
* `partnerFeeUsd` carries it when INVO sends it. $10.00 quotes a $10.00 total, 100.00 coins
|
|
1778
1789
|
* at the default 10 per USD, and a $0.65 partner fee on Open. Show the player `totalUsd`,
|
|
1779
1790
|
* then send the same figure back as `acknowledgedTotalUsd` on {@link purchaseCurrency}; the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as InvoError, H as Http, $ as AuthHeader, g as CallOptions, a0 as PlatformPurchaseInput, a1 as PlatformPurchaseResult, a2 as PlatformOrderStatusResult, a3 as PlatformPurchaseHistoryQuery, a4 as PlatformPurchaseHistoryResult, a5 as PlatformRefundInput, a6 as PlatformRefundResult, a7 as CreateSubscriptionInput, a8 as SubscriptionResult, a9 as GetSubscriptionOptions, aa as GetSubscriptionResult, ab as ListSubscriptionsOptions, ac as SubscriptionListResult, ad as CancelSubscriptionOptions, ae as CancelResult, af as ChangeAmountResult, ag as SetPaymentMethodInput, ah as SetPaymentMethodResult, ai as RefundSubscriptionInput, aj as RefundResult, ak as SteamSubscriptionInitInput, al as SteamInitResult, am as SteamFinalizeSubscriptionResult, an as CardSetupSessionInput, ao as CardSetupSessionResult, ap as CardSetupInput, aq as CardSetupResult, ar as CardSetupConfirmInput, as as CardSetupConfirmResult, at as PlayerCardsResult, au as SandboxClockResult, av as SandboxFailureOutcome, aw as SandboxForceFailureOptions, ax as SandboxForceAuthChallengeOptions, ay as ServerConfig, az as MintPlayerTokenInput, aA as PlayerToken, aB as RegisterPlayerInput, aC as RegisterPlayerResult, aD as UpdatePlayerPhoneInput, aE as UpdatePlayerPhoneResult, aF as RequestPhoneChangeInput, aG as RequestPhoneChangeResult, aH as PhoneChangeRequest, aI as InitiateSendInput, aJ as InitiateResult, aK as InitiateTransferInput, aL as CreateCheckoutInput, aM as CreateCheckoutResult, aN as PurchaseInput, aO as PurchaseResult, aP as CurrencyPurchaseQuoteInput, aQ as CurrencyPurchaseQuote, aR as ConfirmPaymentResult, aS as OrderDetailsResult, aT as SteamPacksQuery, aU as SteamPacksResult, aV as SteamInitPurchaseInput, aW as SteamInitPurchaseResult, aX as SteamFinalizeInput, aY as SteamFinalizeResult, aZ as PurchaseItemInput, a_ as PurchaseItemResult, a$ as ItemHistoryQuery, b0 as ItemHistoryResult, b1 as ItemOrderQuery, b2 as PlayerActivityQuery, b3 as PlayerActivityResult, b4 as PlayerActivityEntry, b5 as PlayerBalanceQuery, b6 as PlayerBalanceResult, q as LoyaltyCardsResult, b7 as InboundPendingQuery, b8 as InboundPendingResult, b9 as LinkedIdentitiesQuery, ba as LinkedIdentitiesResult, bb as SmsVerifyResult, bc as ClaimTransferInput, bd as ClaimResult, be as ClaimCurrencyInput, bf as TransactionStatusResult, bg as GuardianApprovalStatusResult, bh as ServerDestinationsQuery, p as DestinationsResult, bi as PhoneShareContact, bj as PhoneShareInitiateResult, bk as PhoneShareApproveInput, bl as PhoneShareApproveResult, bm as PhoneShareStatusResult, bn as BeginDeviceApprovalInput, bo as DeviceApprovalGrant, bp as PollDeviceApprovalInput, bq as DeviceApprovalPollResult, br as ConfirmDeviceEnrollmentInput, bs as ConfirmDeviceEnrollmentResult, bt as ApproveWithDeviceCodeInput, bu as DeviceApprovalSettleResult, bv as CompleteDeviceApprovalInput, bw as CompleteDeviceApprovalResult } from './types-
|
|
1
|
+
import { I as InvoError, H as Http, $ as AuthHeader, g as CallOptions, a0 as PlatformPurchaseInput, a1 as PlatformPurchaseResult, a2 as PlatformOrderStatusResult, a3 as PlatformPurchaseHistoryQuery, a4 as PlatformPurchaseHistoryResult, a5 as PlatformRefundInput, a6 as PlatformRefundResult, a7 as CreateSubscriptionInput, a8 as SubscriptionResult, a9 as GetSubscriptionOptions, aa as GetSubscriptionResult, ab as ListSubscriptionsOptions, ac as SubscriptionListResult, ad as CancelSubscriptionOptions, ae as CancelResult, af as ChangeAmountResult, ag as SetPaymentMethodInput, ah as SetPaymentMethodResult, ai as RefundSubscriptionInput, aj as RefundResult, ak as SteamSubscriptionInitInput, al as SteamInitResult, am as SteamFinalizeSubscriptionResult, an as CardSetupSessionInput, ao as CardSetupSessionResult, ap as CardSetupInput, aq as CardSetupResult, ar as CardSetupConfirmInput, as as CardSetupConfirmResult, at as PlayerCardsResult, au as SandboxClockResult, av as SandboxFailureOutcome, aw as SandboxForceFailureOptions, ax as SandboxForceAuthChallengeOptions, ay as ServerConfig, az as MintPlayerTokenInput, aA as PlayerToken, aB as RegisterPlayerInput, aC as RegisterPlayerResult, aD as UpdatePlayerPhoneInput, aE as UpdatePlayerPhoneResult, aF as RequestPhoneChangeInput, aG as RequestPhoneChangeResult, aH as PhoneChangeRequest, aI as InitiateSendInput, aJ as InitiateResult, aK as InitiateTransferInput, aL as CreateCheckoutInput, aM as CreateCheckoutResult, a as PurchaseStatusResult, aN as PurchaseInput, aO as PurchaseResult, aP as CurrencyPurchaseQuoteInput, aQ as CurrencyPurchaseQuote, aR as ConfirmPaymentResult, aS as OrderDetailsResult, aT as SteamPacksQuery, aU as SteamPacksResult, aV as SteamInitPurchaseInput, aW as SteamInitPurchaseResult, aX as SteamFinalizeInput, aY as SteamFinalizeResult, aZ as PurchaseItemInput, a_ as PurchaseItemResult, a$ as ItemHistoryQuery, b0 as ItemHistoryResult, b1 as ItemOrderQuery, b2 as PlayerActivityQuery, b3 as PlayerActivityResult, b4 as PlayerActivityEntry, b5 as PlayerBalanceQuery, b6 as PlayerBalanceResult, q as LoyaltyCardsResult, b7 as InboundPendingQuery, b8 as InboundPendingResult, b9 as LinkedIdentitiesQuery, ba as LinkedIdentitiesResult, bb as SmsVerifyResult, bc as ClaimTransferInput, bd as ClaimResult, be as ClaimCurrencyInput, bf as TransactionStatusResult, bg as GuardianApprovalStatusResult, bh as ServerDestinationsQuery, p as DestinationsResult, bi as PhoneShareContact, bj as PhoneShareInitiateResult, bk as PhoneShareApproveInput, bl as PhoneShareApproveResult, bm as PhoneShareStatusResult, bn as BeginDeviceApprovalInput, bo as DeviceApprovalGrant, bp as PollDeviceApprovalInput, bq as DeviceApprovalPollResult, br as ConfirmDeviceEnrollmentInput, bs as ConfirmDeviceEnrollmentResult, bt as ApproveWithDeviceCodeInput, bu as DeviceApprovalSettleResult, bv as CompleteDeviceApprovalInput, bw as CompleteDeviceApprovalResult } from './types-D_NgeTKV.js';
|
|
2
2
|
import { b as ReportServerGameEventInput, a as ReportGameEventResult } from './loyalty-events-CmDw2ZoR.js';
|
|
3
|
-
import './version-
|
|
3
|
+
import './version-ENZ-BpKg.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Pick the INVO environment from the game secret alone (3.28.0).
|
|
@@ -93,7 +93,7 @@ interface PurchaseCompletedData {
|
|
|
93
93
|
receipt_url?: string;
|
|
94
94
|
/**
|
|
95
95
|
* Additive (2026-09 pricing). INVO's card fee charged to you for this purchase, USD decimal
|
|
96
|
-
* string: 3.5% + $0.
|
|
96
|
+
* string: 3.5% + $0.15 on Open, 5.0% + $0.15 on Merchant of Record. The buyer paid the listed
|
|
97
97
|
* price (plus any tax) and received the listed coins; the fee nets against your earnings.
|
|
98
98
|
* Card purchases only; absent on purchases through a third-party storefront or payment rail,
|
|
99
99
|
* on an order charged before the 2026-09 pricing, and from backends that do not send it.
|
|
@@ -508,8 +508,8 @@ interface SubscriptionRenewalFunding {
|
|
|
508
508
|
[key: string]: unknown;
|
|
509
509
|
}
|
|
510
510
|
/**
|
|
511
|
-
* The fee split for one renewal. On the card rail INVO's fee (`invo_fee_usd`) is 3.5% + $0.
|
|
512
|
-
* on Open (5.
|
|
511
|
+
* The fee split for one renewal. On the card rail INVO's fee (`invo_fee_usd`) is 3.5% + $0.15
|
|
512
|
+
* on Open (5.0% + $0.15 on Merchant of Record) of the listed price (before tax). The 1.5%
|
|
513
513
|
* international card fee on a card issued outside the US is NOT inside `invo_fee_usd`: it is
|
|
514
514
|
* reported separately as `international_card_fee_usd` (also `pass_through_fees_usd`) and charged
|
|
515
515
|
* to you on top. Read the figures; do not recompute them. On Steam, `basis` is
|
|
@@ -1736,6 +1736,17 @@ declare class InvoServer {
|
|
|
1736
1736
|
* handles cards, saved cards, and 3-D Secure. Crediting is server-side via the
|
|
1737
1737
|
* purchase.completed webhook. */
|
|
1738
1738
|
createCheckout(input: CreateCheckoutInput, opts?: CallOptions): Promise<CreateCheckoutResult>;
|
|
1739
|
+
/**
|
|
1740
|
+
* Read a hosted checkout's status from INVO, server-side, with the session token that
|
|
1741
|
+
* {@link createCheckout} returned. Same answer as the browser's
|
|
1742
|
+
* `invo.checkout.getPurchaseStatus`. A game server uses it to confirm a purchase when
|
|
1743
|
+
* the signed webhook cannot reach it (for example a private development preview).
|
|
1744
|
+
* It is INVO's own record, read over TLS with the session credential, never the buyer's word.
|
|
1745
|
+
*/
|
|
1746
|
+
getCheckoutStatus(input: {
|
|
1747
|
+
sessionId: string;
|
|
1748
|
+
sessionToken: string;
|
|
1749
|
+
}, opts?: CallOptions): Promise<PurchaseStatusResult>;
|
|
1739
1750
|
/**
|
|
1740
1751
|
* Direct purchase via the rail selector. Use when you need a specific rail.
|
|
1741
1752
|
* - rail "platform" (default): standard card. May return status "requires_action"
|
|
@@ -1743,7 +1754,7 @@ declare class InvoServer {
|
|
|
1743
1754
|
* - rail "game": returns status "pending_payment" + paymentUrl (redirect the browser).
|
|
1744
1755
|
* - rail "steam": NOT a browser flow — the backend returns WRONG_RAIL_ENDPOINT.
|
|
1745
1756
|
*
|
|
1746
|
-
* INVO's card fee (3.5% + $0.
|
|
1757
|
+
* INVO's card fee (3.5% + $0.15 on Open, 5.0% + $0.15 on Merchant of Record, plus 1.5% of
|
|
1747
1758
|
* the listed price (before tax) on a card issued outside the US) is charged to you, the partner. The player
|
|
1748
1759
|
* pays the listed price (plus any tax) and receives the listed coins. Card purchases only;
|
|
1749
1760
|
* purchases through a third-party storefront or payment rail are unaffected. Two shapes,
|
|
@@ -1773,7 +1784,7 @@ declare class InvoServer {
|
|
|
1773
1784
|
*
|
|
1774
1785
|
* The player pays the listed price plus any tax (when you pass `country`) and receives the
|
|
1775
1786
|
* listed coins: `totalUsd` carries no card fee, and `processingFeeUsd` is `"0.00"`. INVO's
|
|
1776
|
-
* card fee (3.5% + $0.
|
|
1787
|
+
* card fee (3.5% + $0.15 on Open, 5.0% + $0.15 on Merchant of Record) is charged to you;
|
|
1777
1788
|
* `partnerFeeUsd` carries it when INVO sends it. $10.00 quotes a $10.00 total, 100.00 coins
|
|
1778
1789
|
* at the default 10 per USD, and a $0.65 partner fee on Open. Show the player `totalUsd`,
|
|
1779
1790
|
* then send the same figure back as `acknowledgedTotalUsd` on {@link purchaseCurrency}; the
|
package/dist/server.cjs
CHANGED
|
@@ -1386,10 +1386,53 @@ function toDestinationsResult(raw, direction) {
|
|
|
1386
1386
|
};
|
|
1387
1387
|
}
|
|
1388
1388
|
|
|
1389
|
+
// src/shared/receipt-fields.ts
|
|
1390
|
+
function creditFields(raw) {
|
|
1391
|
+
const c = raw["credited"];
|
|
1392
|
+
if (c === true) return { credited: true };
|
|
1393
|
+
if (c === false) {
|
|
1394
|
+
const r = raw["reason_code"];
|
|
1395
|
+
return { credited: false, reasonCode: r == null ? null : String(r) };
|
|
1396
|
+
}
|
|
1397
|
+
return {};
|
|
1398
|
+
}
|
|
1399
|
+
function receiptFields(raw) {
|
|
1400
|
+
const n = raw["receipt_number"];
|
|
1401
|
+
if (typeof n !== "string" || n === "") return {};
|
|
1402
|
+
const u = raw["receipt_url"];
|
|
1403
|
+
return typeof u === "string" && u !== "" ? { receiptNumber: n, receiptUrl: u } : { receiptNumber: n };
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
// src/shared/purchase-status.ts
|
|
1407
|
+
function str(v) {
|
|
1408
|
+
return typeof v === "string" ? v : v === null || v === void 0 ? null : String(v);
|
|
1409
|
+
}
|
|
1410
|
+
function toPurchaseStatusResult(raw, sessionId) {
|
|
1411
|
+
return {
|
|
1412
|
+
status: String(raw["status"] ?? ""),
|
|
1413
|
+
// INVO SAYS, AND ONLY AN EXPLICIT `true` SAYS IT. A missing or malformed field reads
|
|
1414
|
+
// false, which keeps a poll running; the alternative, guessing terminality from
|
|
1415
|
+
// `status`, is how an old SDK declares a future status finished.
|
|
1416
|
+
terminal: raw["terminal"] === true,
|
|
1417
|
+
orderId: str(raw["order_id"]),
|
|
1418
|
+
sessionId: String(raw["session_id"] ?? sessionId),
|
|
1419
|
+
coinsCredited: str(raw["coins_credited"]),
|
|
1420
|
+
transactionId: str(raw["transaction_id"]),
|
|
1421
|
+
newBalance: str(raw["new_balance"]),
|
|
1422
|
+
reasonCode: str(raw["reason_code"]),
|
|
1423
|
+
message: str(raw["message"]),
|
|
1424
|
+
amountChargedUsd: str(raw["amount_charged_usd"]),
|
|
1425
|
+
listedUsd: str(raw["listed_usd"]),
|
|
1426
|
+
currencyName: str(raw["currency_name"]),
|
|
1427
|
+
...receiptFields(raw),
|
|
1428
|
+
raw
|
|
1429
|
+
};
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1389
1432
|
// src/shared/loyalty.ts
|
|
1390
1433
|
var obj = (v) => v && typeof v === "object" && !Array.isArray(v) ? v : {};
|
|
1391
1434
|
var rows = (v) => Array.isArray(v) ? v.filter((r) => r && typeof r === "object" && !Array.isArray(r)) : [];
|
|
1392
|
-
var
|
|
1435
|
+
var str2 = (v) => v === void 0 || v === null ? "" : String(v);
|
|
1393
1436
|
var strOrNull = (v) => v === void 0 || v === null ? null : String(v);
|
|
1394
1437
|
var numOrNull = (v) => typeof v === "number" && Number.isFinite(v) ? v : null;
|
|
1395
1438
|
var int = (v, fallback = 0) => typeof v === "number" && Number.isFinite(v) ? v : fallback;
|
|
@@ -1406,22 +1449,22 @@ function toStep(row) {
|
|
|
1406
1449
|
return {
|
|
1407
1450
|
stepId: strOrNull(row["step_id"]),
|
|
1408
1451
|
index: int(row["index"]),
|
|
1409
|
-
action:
|
|
1410
|
-
label:
|
|
1411
|
-
summary:
|
|
1452
|
+
action: str2(row["action"]),
|
|
1453
|
+
label: str2(row["label"]),
|
|
1454
|
+
summary: str2(row["summary"]),
|
|
1412
1455
|
windowHours: numOrNull(row["window_hours"]),
|
|
1413
|
-
state:
|
|
1456
|
+
state: str2(row["state"]),
|
|
1414
1457
|
progress: toLoyaltyStepProgress(row["progress"]),
|
|
1415
1458
|
raw: row
|
|
1416
1459
|
};
|
|
1417
1460
|
}
|
|
1418
1461
|
function toCardReward(row) {
|
|
1419
1462
|
return {
|
|
1420
|
-
vaultEntryId:
|
|
1421
|
-
rewardId:
|
|
1422
|
-
state:
|
|
1423
|
-
unlockedAt:
|
|
1424
|
-
expiresAt:
|
|
1463
|
+
vaultEntryId: str2(row["vault_entry_id"]),
|
|
1464
|
+
rewardId: str2(row["reward_id"]),
|
|
1465
|
+
state: str2(row["state"]),
|
|
1466
|
+
unlockedAt: str2(row["unlocked_at"]),
|
|
1467
|
+
expiresAt: str2(row["expires_at"]),
|
|
1425
1468
|
redeemedAt: strOrNull(row["redeemed_at"]),
|
|
1426
1469
|
codeMasked: strOrNull(row["code_masked"]),
|
|
1427
1470
|
canRedeem: row["can_redeem"] === true,
|
|
@@ -1436,18 +1479,18 @@ function toLoyaltyCard(row) {
|
|
|
1436
1479
|
const steps = rows(row["steps"]).map(toStep);
|
|
1437
1480
|
return {
|
|
1438
1481
|
cardVersion: passThrough(row["card_version"]),
|
|
1439
|
-
mode:
|
|
1482
|
+
mode: str2(row["mode"]),
|
|
1440
1483
|
programId: strOrNull(row["program_id"]),
|
|
1441
1484
|
questId: strOrNull(row["quest_id"]),
|
|
1442
1485
|
questVersion: numOrNull(row["quest_version"]),
|
|
1443
1486
|
campaignId: strOrNull(row["campaign_id"]),
|
|
1444
|
-
title:
|
|
1445
|
-
description:
|
|
1487
|
+
title: str2(row["title"]),
|
|
1488
|
+
description: str2(row["description"]),
|
|
1446
1489
|
brand: { name: strOrNull(brand["name"]), logoUrl: strOrNull(brand["logo_url"]) },
|
|
1447
1490
|
artUrl: strOrNull(row["art_url"]),
|
|
1448
1491
|
reward: { rewardId: strOrNull(reward["reward_id"]), name: strOrNull(reward["name"]) },
|
|
1449
|
-
orderMode:
|
|
1450
|
-
status:
|
|
1492
|
+
orderMode: str2(row["order_mode"]),
|
|
1493
|
+
status: str2(row["status"]),
|
|
1451
1494
|
startsAt: strOrNull(row["starts_at"]),
|
|
1452
1495
|
endsAt: strOrNull(row["ends_at"]),
|
|
1453
1496
|
completionHours: numOrNull(row["completion_hours"]),
|
|
@@ -1534,23 +1577,6 @@ function toReportGameEventResult(raw, eventId) {
|
|
|
1534
1577
|
};
|
|
1535
1578
|
}
|
|
1536
1579
|
|
|
1537
|
-
// src/shared/receipt-fields.ts
|
|
1538
|
-
function creditFields(raw) {
|
|
1539
|
-
const c = raw["credited"];
|
|
1540
|
-
if (c === true) return { credited: true };
|
|
1541
|
-
if (c === false) {
|
|
1542
|
-
const r = raw["reason_code"];
|
|
1543
|
-
return { credited: false, reasonCode: r == null ? null : String(r) };
|
|
1544
|
-
}
|
|
1545
|
-
return {};
|
|
1546
|
-
}
|
|
1547
|
-
function receiptFields(raw) {
|
|
1548
|
-
const n = raw["receipt_number"];
|
|
1549
|
-
if (typeof n !== "string" || n === "") return {};
|
|
1550
|
-
const u = raw["receipt_url"];
|
|
1551
|
-
return typeof u === "string" && u !== "" ? { receiptNumber: n, receiptUrl: u } : { receiptNumber: n };
|
|
1552
|
-
}
|
|
1553
|
-
|
|
1554
1580
|
// src/shared/phone-change.ts
|
|
1555
1581
|
function requireField(value, field, raw) {
|
|
1556
1582
|
const s = value == null ? "" : String(value);
|
|
@@ -1564,16 +1590,16 @@ function requireField(value, field, raw) {
|
|
|
1564
1590
|
}
|
|
1565
1591
|
return s;
|
|
1566
1592
|
}
|
|
1567
|
-
var
|
|
1593
|
+
var str3 = (v) => v == null ? "" : String(v);
|
|
1568
1594
|
var strOrNull2 = (v) => typeof v === "string" ? v : v == null ? null : String(v);
|
|
1569
1595
|
function toRequestPhoneChangeResult(raw) {
|
|
1570
1596
|
return {
|
|
1571
1597
|
changeRequestId: requireField(raw["change_request_id"], "change_request_id", raw),
|
|
1572
1598
|
status: requireField(raw["status"], "status", raw),
|
|
1573
|
-
expiresAt:
|
|
1574
|
-
delivery:
|
|
1575
|
-
confirmation:
|
|
1576
|
-
message:
|
|
1599
|
+
expiresAt: str3(raw["expires_at"]),
|
|
1600
|
+
delivery: str3(raw["delivery"]),
|
|
1601
|
+
confirmation: str3(raw["confirmation"]),
|
|
1602
|
+
message: str3(raw["message"]),
|
|
1577
1603
|
raw
|
|
1578
1604
|
};
|
|
1579
1605
|
}
|
|
@@ -1581,8 +1607,8 @@ function toPhoneChangeRequest(raw) {
|
|
|
1581
1607
|
return {
|
|
1582
1608
|
changeRequestId: requireField(raw["change_request_id"], "change_request_id", raw),
|
|
1583
1609
|
status: requireField(raw["status"], "status", raw),
|
|
1584
|
-
confirmation:
|
|
1585
|
-
delivery:
|
|
1610
|
+
confirmation: str3(raw["confirmation"]),
|
|
1611
|
+
delivery: str3(raw["delivery"]),
|
|
1586
1612
|
newPhoneMasked: strOrNull2(raw["new_phone_masked"]),
|
|
1587
1613
|
createdAt: strOrNull2(raw["created_at"]),
|
|
1588
1614
|
expiresAt: strOrNull2(raw["expires_at"]),
|
|
@@ -1593,7 +1619,7 @@ function toPhoneChangeRequest(raw) {
|
|
|
1593
1619
|
}
|
|
1594
1620
|
|
|
1595
1621
|
// src/version.ts
|
|
1596
|
-
var SDK_VERSION = "3.30.
|
|
1622
|
+
var SDK_VERSION = "3.30.2";
|
|
1597
1623
|
|
|
1598
1624
|
// src/payouts.ts
|
|
1599
1625
|
var AMOUNT = /^\d+(\.\d{1,2})?$/;
|
|
@@ -4119,6 +4145,25 @@ var InvoServer = class {
|
|
|
4119
4145
|
raw
|
|
4120
4146
|
};
|
|
4121
4147
|
}
|
|
4148
|
+
/**
|
|
4149
|
+
* Read a hosted checkout's status from INVO, server-side, with the session token that
|
|
4150
|
+
* {@link createCheckout} returned. Same answer as the browser's
|
|
4151
|
+
* `invo.checkout.getPurchaseStatus`. A game server uses it to confirm a purchase when
|
|
4152
|
+
* the signed webhook cannot reach it (for example a private development preview).
|
|
4153
|
+
* It is INVO's own record, read over TLS with the session credential, never the buyer's word.
|
|
4154
|
+
*/
|
|
4155
|
+
async getCheckoutStatus(input, opts) {
|
|
4156
|
+
const sessionId = String(input?.sessionId ?? "").trim();
|
|
4157
|
+
const sessionToken = String(input?.sessionToken ?? "").trim();
|
|
4158
|
+
if (!sessionId) throw invalidInput2("sessionId", input?.sessionId, "is required");
|
|
4159
|
+
if (!sessionToken) throw invalidInput2("sessionToken", "(hidden)", "is required");
|
|
4160
|
+
const raw = await this.http.get(
|
|
4161
|
+
`/api/checkout/sessions/${encodeURIComponent(sessionId)}`,
|
|
4162
|
+
{ kind: "bearer", token: sessionToken },
|
|
4163
|
+
{ signal: opts?.signal }
|
|
4164
|
+
);
|
|
4165
|
+
return toPurchaseStatusResult(raw, sessionId);
|
|
4166
|
+
}
|
|
4122
4167
|
/**
|
|
4123
4168
|
* Direct purchase via the rail selector. Use when you need a specific rail.
|
|
4124
4169
|
* - rail "platform" (default): standard card. May return status "requires_action"
|
|
@@ -4126,7 +4171,7 @@ var InvoServer = class {
|
|
|
4126
4171
|
* - rail "game": returns status "pending_payment" + paymentUrl (redirect the browser).
|
|
4127
4172
|
* - rail "steam": NOT a browser flow — the backend returns WRONG_RAIL_ENDPOINT.
|
|
4128
4173
|
*
|
|
4129
|
-
* INVO's card fee (3.5% + $0.
|
|
4174
|
+
* INVO's card fee (3.5% + $0.15 on Open, 5.0% + $0.15 on Merchant of Record, plus 1.5% of
|
|
4130
4175
|
* the listed price (before tax) on a card issued outside the US) is charged to you, the partner. The player
|
|
4131
4176
|
* pays the listed price (plus any tax) and receives the listed coins. Card purchases only;
|
|
4132
4177
|
* purchases through a third-party storefront or payment rail are unaffected. Two shapes,
|
|
@@ -4215,7 +4260,7 @@ var InvoServer = class {
|
|
|
4215
4260
|
*
|
|
4216
4261
|
* The player pays the listed price plus any tax (when you pass `country`) and receives the
|
|
4217
4262
|
* listed coins: `totalUsd` carries no card fee, and `processingFeeUsd` is `"0.00"`. INVO's
|
|
4218
|
-
* card fee (3.5% + $0.
|
|
4263
|
+
* card fee (3.5% + $0.15 on Open, 5.0% + $0.15 on Merchant of Record) is charged to you;
|
|
4219
4264
|
* `partnerFeeUsd` carries it when INVO sends it. $10.00 quotes a $10.00 total, 100.00 coins
|
|
4220
4265
|
* at the default 10 per USD, and a $0.65 partner fee on Open. Show the player `totalUsd`,
|
|
4221
4266
|
* then send the same figure back as `acknowledgedTotalUsd` on {@link purchaseCurrency}; the
|
package/dist/server.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { bt as ApproveWithDeviceCodeInput, bn as BeginDeviceApprovalInput, g as CallOptions, ae as CancelResult, ad as CancelSubscriptionOptions, ar as CardSetupConfirmInput, as as CardSetupConfirmResult, ap as CardSetupInput, aq as CardSetupResult, an as CardSetupSessionInput, ao as CardSetupSessionResult, bx as CardSetupStatus, af as ChangeAmountResult, by as CheckoutWarning, be as ClaimCurrencyInput, y as ClaimDelivery, bd as ClaimResult, bc as ClaimTransferInput, bv as CompleteDeviceApprovalInput, bw as CompleteDeviceApprovalResult, br as ConfirmDeviceEnrollmentInput, bs as ConfirmDeviceEnrollmentResult, aR as ConfirmPaymentResult, aL as CreateCheckoutInput, aM as CreateCheckoutResult, a7 as CreateSubscriptionInput, bz as CurrencyBalance, aQ as CurrencyPurchaseQuote, bA as CurrencyPurchaseQuoteBreakdown, aP as CurrencyPurchaseQuoteInput, D as DestinationGame, p as DestinationsResult, bB as DeviceApprovalChannel, bC as DeviceApprovalEnrollment, bD as DeviceApprovalFlow, bo as DeviceApprovalGrant, bq as DeviceApprovalPollResult, bE as DeviceApprovalPollStatus, bu as DeviceApprovalSettleResult, bF as DeviceEnrollmentDecision, bG as DeviceEnrollmentRespond, bH as ExpiryReason, bI as FeeTakenFrom, bJ as FirstCharge, bK as FirstChargeStatus, bL as FundingSource, a9 as GetSubscriptionOptions, aa as GetSubscriptionResult, bg as GuardianApprovalStatusResult, bM as InboundPendingItem, b7 as InboundPendingQuery, b8 as InboundPendingResult, aJ as InitiateResult, aI as InitiateSendInput, aK as InitiateTransferInput, I as InvoError, z as InvoErrorInfo, F as InvoHooks, G as InvoRequestInfo, J as InvoResponseInfo, a$ as ItemHistoryQuery, b0 as ItemHistoryResult, b1 as ItemOrderQuery, b9 as LinkedIdentitiesQuery, ba as LinkedIdentitiesResult, bN as LinkedIdentityEmail, ab as ListSubscriptionsOptions, K as LoyaltyCard, N as LoyaltyCardReward, O as LoyaltyCardStep, q as LoyaltyCardsResult, Q as LoyaltyRewardState, S as LoyaltyStepProgress, T as LoyaltyStepState, bO as MinPurchaseWarning, az as MintPlayerTokenInput, aS as OrderDetailsResult, bP as PhoneChangeConfirmation, aH as PhoneChangeRequest, bQ as PhoneChangeRequestStatus, bk as PhoneShareApproveInput, bl as PhoneShareApproveResult, bi as PhoneShareContact, bj as PhoneShareInitiateResult, bm as PhoneShareStatusResult, a2 as PlatformOrderStatusResult, a3 as PlatformPurchaseHistoryQuery, a4 as PlatformPurchaseHistoryResult, a0 as PlatformPurchaseInput, a1 as PlatformPurchaseResult, bR as PlatformPurchaseStatus, a5 as PlatformRefundInput, a6 as PlatformRefundResult, b4 as PlayerActivityEntry, b2 as PlayerActivityQuery, b3 as PlayerActivityResult, bS as PlayerActivityType, b5 as PlayerBalanceQuery, b6 as PlayerBalanceResult, at as PlayerCardsResult, aA as PlayerToken, bp as PollDeviceApprovalInput, aN as PurchaseInput, aZ as PurchaseItemInput, a_ as PurchaseItemResult, aO as PurchaseResult, Z as Rail, bT as RefundInitiation, bU as RefundPendingApproval, bV as RefundProcessingFeeBasis, bW as RefundReceipt, aj as RefundResult, bX as RefundRevenueShareAttribution, ai as RefundSubscriptionInput, bY as RefundWarning, aB as RegisterPlayerInput, aC as RegisterPlayerResult, aF as RequestPhoneChangeInput, aG as RequestPhoneChangeResult, au as SandboxClockResult, bZ as SandboxClockState, av as SandboxFailureOutcome, ax as SandboxForceAuthChallengeOptions, aw as SandboxForceFailureOptions, b_ as SavedCard, ay as ServerConfig, bh as ServerDestinationsQuery, ag as SetPaymentMethodInput, ah as SetPaymentMethodResult, bb as SmsVerifyResult, aX as SteamFinalizeInput, aY as SteamFinalizeResult, am as SteamFinalizeSubscriptionResult, aV as SteamInitPurchaseInput, aW as SteamInitPurchaseResult, al as SteamInitResult, b$ as SteamPack, aT as SteamPacksQuery, aU as SteamPacksResult, ak as SteamSubscriptionInitInput, c0 as SteamUserSession, c1 as Subscription, c2 as SubscriptionBaseInput, c3 as SubscriptionConsent, c4 as SubscriptionConsentInput, c5 as SubscriptionFundingRail, c6 as SubscriptionInterval, ac as SubscriptionListResult, a8 as SubscriptionResult, c7 as SubscriptionRevenueShare, c8 as SubscriptionRevenueShareInput, c9 as SubscriptionStatus, bf as TransactionStatusResult, ca as UnacknowledgedPurchaseOutcome, aD as UpdatePlayerPhoneInput, aE as UpdatePlayerPhoneResult, _ as VerificationMethod, cb as isRefundPendingApproval } from './types-
|
|
1
|
+
export { bt as ApproveWithDeviceCodeInput, bn as BeginDeviceApprovalInput, g as CallOptions, ae as CancelResult, ad as CancelSubscriptionOptions, ar as CardSetupConfirmInput, as as CardSetupConfirmResult, ap as CardSetupInput, aq as CardSetupResult, an as CardSetupSessionInput, ao as CardSetupSessionResult, bx as CardSetupStatus, af as ChangeAmountResult, by as CheckoutWarning, be as ClaimCurrencyInput, y as ClaimDelivery, bd as ClaimResult, bc as ClaimTransferInput, bv as CompleteDeviceApprovalInput, bw as CompleteDeviceApprovalResult, br as ConfirmDeviceEnrollmentInput, bs as ConfirmDeviceEnrollmentResult, aR as ConfirmPaymentResult, aL as CreateCheckoutInput, aM as CreateCheckoutResult, a7 as CreateSubscriptionInput, bz as CurrencyBalance, aQ as CurrencyPurchaseQuote, bA as CurrencyPurchaseQuoteBreakdown, aP as CurrencyPurchaseQuoteInput, D as DestinationGame, p as DestinationsResult, bB as DeviceApprovalChannel, bC as DeviceApprovalEnrollment, bD as DeviceApprovalFlow, bo as DeviceApprovalGrant, bq as DeviceApprovalPollResult, bE as DeviceApprovalPollStatus, bu as DeviceApprovalSettleResult, bF as DeviceEnrollmentDecision, bG as DeviceEnrollmentRespond, bH as ExpiryReason, bI as FeeTakenFrom, bJ as FirstCharge, bK as FirstChargeStatus, bL as FundingSource, a9 as GetSubscriptionOptions, aa as GetSubscriptionResult, bg as GuardianApprovalStatusResult, bM as InboundPendingItem, b7 as InboundPendingQuery, b8 as InboundPendingResult, aJ as InitiateResult, aI as InitiateSendInput, aK as InitiateTransferInput, I as InvoError, z as InvoErrorInfo, F as InvoHooks, G as InvoRequestInfo, J as InvoResponseInfo, a$ as ItemHistoryQuery, b0 as ItemHistoryResult, b1 as ItemOrderQuery, b9 as LinkedIdentitiesQuery, ba as LinkedIdentitiesResult, bN as LinkedIdentityEmail, ab as ListSubscriptionsOptions, K as LoyaltyCard, N as LoyaltyCardReward, O as LoyaltyCardStep, q as LoyaltyCardsResult, Q as LoyaltyRewardState, S as LoyaltyStepProgress, T as LoyaltyStepState, bO as MinPurchaseWarning, az as MintPlayerTokenInput, aS as OrderDetailsResult, bP as PhoneChangeConfirmation, aH as PhoneChangeRequest, bQ as PhoneChangeRequestStatus, bk as PhoneShareApproveInput, bl as PhoneShareApproveResult, bi as PhoneShareContact, bj as PhoneShareInitiateResult, bm as PhoneShareStatusResult, a2 as PlatformOrderStatusResult, a3 as PlatformPurchaseHistoryQuery, a4 as PlatformPurchaseHistoryResult, a0 as PlatformPurchaseInput, a1 as PlatformPurchaseResult, bR as PlatformPurchaseStatus, a5 as PlatformRefundInput, a6 as PlatformRefundResult, b4 as PlayerActivityEntry, b2 as PlayerActivityQuery, b3 as PlayerActivityResult, bS as PlayerActivityType, b5 as PlayerBalanceQuery, b6 as PlayerBalanceResult, at as PlayerCardsResult, aA as PlayerToken, bp as PollDeviceApprovalInput, aN as PurchaseInput, aZ as PurchaseItemInput, a_ as PurchaseItemResult, aO as PurchaseResult, Z as Rail, bT as RefundInitiation, bU as RefundPendingApproval, bV as RefundProcessingFeeBasis, bW as RefundReceipt, aj as RefundResult, bX as RefundRevenueShareAttribution, ai as RefundSubscriptionInput, bY as RefundWarning, aB as RegisterPlayerInput, aC as RegisterPlayerResult, aF as RequestPhoneChangeInput, aG as RequestPhoneChangeResult, au as SandboxClockResult, bZ as SandboxClockState, av as SandboxFailureOutcome, ax as SandboxForceAuthChallengeOptions, aw as SandboxForceFailureOptions, b_ as SavedCard, ay as ServerConfig, bh as ServerDestinationsQuery, ag as SetPaymentMethodInput, ah as SetPaymentMethodResult, bb as SmsVerifyResult, aX as SteamFinalizeInput, aY as SteamFinalizeResult, am as SteamFinalizeSubscriptionResult, aV as SteamInitPurchaseInput, aW as SteamInitPurchaseResult, al as SteamInitResult, b$ as SteamPack, aT as SteamPacksQuery, aU as SteamPacksResult, ak as SteamSubscriptionInitInput, c0 as SteamUserSession, c1 as Subscription, c2 as SubscriptionBaseInput, c3 as SubscriptionConsent, c4 as SubscriptionConsentInput, c5 as SubscriptionFundingRail, c6 as SubscriptionInterval, ac as SubscriptionListResult, a8 as SubscriptionResult, c7 as SubscriptionRevenueShare, c8 as SubscriptionRevenueShareInput, c9 as SubscriptionStatus, bf as TransactionStatusResult, ca as UnacknowledgedPurchaseOutcome, aD as UpdatePlayerPhoneInput, aE as UpdatePlayerPhoneResult, _ as VerificationMethod, cb as isRefundPendingApproval } from './types-D_NgeTKV.cjs';
|
|
2
2
|
export { G as GameEventType, R as ReportGameEventInput, a as ReportGameEventResult, b as ReportServerGameEventInput } from './loyalty-events-CmDw2ZoR.cjs';
|
|
3
|
-
export { C as CardsServer, D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, c as IdentityPasskeyResetData, a as InvoEnvironment, I as InvoServer, d as InvoWebhookEvent, e as ItemPurchasedData, L as ListPayeesQuery, f as ListPayeesResult, g as ListPayoutsQuery, h as ListPayoutsResult, P as PRODUCTION_BASE_URL, j as PayableBlocker, k as Payee, l as PayeeInvite, m as PayeeStatus, n as PayeeStatusChangedData, o as Payout, p as PayoutStatus, q as PayoutStatusChangedData, s as PayoutsServer, t as PlatformCommercePurchasedData, u as PlatformCommerceRefundedData, w as PlatformCommerceServer, x as PlayerPhoneChangedData, y as PurchaseCompletedData, z as PurchaseEventData, R as RegisterPayeeInput, A as RegisterPayeeResult, B as RequestPayoutInput, F as RequestPayoutResult, G as ReturnReasonCode, S as SANDBOX_BASE_URL, H as SandboxServer, J as SandboxSubscriptionsServer, K as SubscriptionAuthenticationRequiredData, M as SubscriptionCanceledData, N as SubscriptionEventCommon, O as SubscriptionExpiredData, Q as SubscriptionPastDueData, T as SubscriptionPaymentFailedData, U as SubscriptionRefundApprovedData, V as SubscriptionRefundDetail, W as SubscriptionRefundRejectedData, X as SubscriptionRefundRequestData, Y as SubscriptionRefundedData, Z as SubscriptionRenewalFunding, _ as SubscriptionRenewalSplit, $ as SubscriptionRenewedData, a0 as SubscriptionRevenueShareAttribution, a1 as SubscriptionTrialEventFields, a2 as SubscriptionsServer, a3 as TransferEventData, a4 as VerifyWebhookOptions, a5 as WebhookHandlerOptions, b as baseUrlForKey, a6 as createWebhookHandler, i as isDemoKey, r as resolveEnvironment, a7 as verifyWebhook, a8 as verifyWebhookAsync } from './server-
|
|
4
|
-
export { S as SDK_VERSION } from './version-
|
|
3
|
+
export { C as CardsServer, D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, c as IdentityPasskeyResetData, a as InvoEnvironment, I as InvoServer, d as InvoWebhookEvent, e as ItemPurchasedData, L as ListPayeesQuery, f as ListPayeesResult, g as ListPayoutsQuery, h as ListPayoutsResult, P as PRODUCTION_BASE_URL, j as PayableBlocker, k as Payee, l as PayeeInvite, m as PayeeStatus, n as PayeeStatusChangedData, o as Payout, p as PayoutStatus, q as PayoutStatusChangedData, s as PayoutsServer, t as PlatformCommercePurchasedData, u as PlatformCommerceRefundedData, w as PlatformCommerceServer, x as PlayerPhoneChangedData, y as PurchaseCompletedData, z as PurchaseEventData, R as RegisterPayeeInput, A as RegisterPayeeResult, B as RequestPayoutInput, F as RequestPayoutResult, G as ReturnReasonCode, S as SANDBOX_BASE_URL, H as SandboxServer, J as SandboxSubscriptionsServer, K as SubscriptionAuthenticationRequiredData, M as SubscriptionCanceledData, N as SubscriptionEventCommon, O as SubscriptionExpiredData, Q as SubscriptionPastDueData, T as SubscriptionPaymentFailedData, U as SubscriptionRefundApprovedData, V as SubscriptionRefundDetail, W as SubscriptionRefundRejectedData, X as SubscriptionRefundRequestData, Y as SubscriptionRefundedData, Z as SubscriptionRenewalFunding, _ as SubscriptionRenewalSplit, $ as SubscriptionRenewedData, a0 as SubscriptionRevenueShareAttribution, a1 as SubscriptionTrialEventFields, a2 as SubscriptionsServer, a3 as TransferEventData, a4 as VerifyWebhookOptions, a5 as WebhookHandlerOptions, b as baseUrlForKey, a6 as createWebhookHandler, i as isDemoKey, r as resolveEnvironment, a7 as verifyWebhook, a8 as verifyWebhookAsync } from './server-4EjDN-L5.cjs';
|
|
4
|
+
export { S as SDK_VERSION } from './version-ENZ-BpKg.cjs';
|
package/dist/server.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { bt as ApproveWithDeviceCodeInput, bn as BeginDeviceApprovalInput, g as CallOptions, ae as CancelResult, ad as CancelSubscriptionOptions, ar as CardSetupConfirmInput, as as CardSetupConfirmResult, ap as CardSetupInput, aq as CardSetupResult, an as CardSetupSessionInput, ao as CardSetupSessionResult, bx as CardSetupStatus, af as ChangeAmountResult, by as CheckoutWarning, be as ClaimCurrencyInput, y as ClaimDelivery, bd as ClaimResult, bc as ClaimTransferInput, bv as CompleteDeviceApprovalInput, bw as CompleteDeviceApprovalResult, br as ConfirmDeviceEnrollmentInput, bs as ConfirmDeviceEnrollmentResult, aR as ConfirmPaymentResult, aL as CreateCheckoutInput, aM as CreateCheckoutResult, a7 as CreateSubscriptionInput, bz as CurrencyBalance, aQ as CurrencyPurchaseQuote, bA as CurrencyPurchaseQuoteBreakdown, aP as CurrencyPurchaseQuoteInput, D as DestinationGame, p as DestinationsResult, bB as DeviceApprovalChannel, bC as DeviceApprovalEnrollment, bD as DeviceApprovalFlow, bo as DeviceApprovalGrant, bq as DeviceApprovalPollResult, bE as DeviceApprovalPollStatus, bu as DeviceApprovalSettleResult, bF as DeviceEnrollmentDecision, bG as DeviceEnrollmentRespond, bH as ExpiryReason, bI as FeeTakenFrom, bJ as FirstCharge, bK as FirstChargeStatus, bL as FundingSource, a9 as GetSubscriptionOptions, aa as GetSubscriptionResult, bg as GuardianApprovalStatusResult, bM as InboundPendingItem, b7 as InboundPendingQuery, b8 as InboundPendingResult, aJ as InitiateResult, aI as InitiateSendInput, aK as InitiateTransferInput, I as InvoError, z as InvoErrorInfo, F as InvoHooks, G as InvoRequestInfo, J as InvoResponseInfo, a$ as ItemHistoryQuery, b0 as ItemHistoryResult, b1 as ItemOrderQuery, b9 as LinkedIdentitiesQuery, ba as LinkedIdentitiesResult, bN as LinkedIdentityEmail, ab as ListSubscriptionsOptions, K as LoyaltyCard, N as LoyaltyCardReward, O as LoyaltyCardStep, q as LoyaltyCardsResult, Q as LoyaltyRewardState, S as LoyaltyStepProgress, T as LoyaltyStepState, bO as MinPurchaseWarning, az as MintPlayerTokenInput, aS as OrderDetailsResult, bP as PhoneChangeConfirmation, aH as PhoneChangeRequest, bQ as PhoneChangeRequestStatus, bk as PhoneShareApproveInput, bl as PhoneShareApproveResult, bi as PhoneShareContact, bj as PhoneShareInitiateResult, bm as PhoneShareStatusResult, a2 as PlatformOrderStatusResult, a3 as PlatformPurchaseHistoryQuery, a4 as PlatformPurchaseHistoryResult, a0 as PlatformPurchaseInput, a1 as PlatformPurchaseResult, bR as PlatformPurchaseStatus, a5 as PlatformRefundInput, a6 as PlatformRefundResult, b4 as PlayerActivityEntry, b2 as PlayerActivityQuery, b3 as PlayerActivityResult, bS as PlayerActivityType, b5 as PlayerBalanceQuery, b6 as PlayerBalanceResult, at as PlayerCardsResult, aA as PlayerToken, bp as PollDeviceApprovalInput, aN as PurchaseInput, aZ as PurchaseItemInput, a_ as PurchaseItemResult, aO as PurchaseResult, Z as Rail, bT as RefundInitiation, bU as RefundPendingApproval, bV as RefundProcessingFeeBasis, bW as RefundReceipt, aj as RefundResult, bX as RefundRevenueShareAttribution, ai as RefundSubscriptionInput, bY as RefundWarning, aB as RegisterPlayerInput, aC as RegisterPlayerResult, aF as RequestPhoneChangeInput, aG as RequestPhoneChangeResult, au as SandboxClockResult, bZ as SandboxClockState, av as SandboxFailureOutcome, ax as SandboxForceAuthChallengeOptions, aw as SandboxForceFailureOptions, b_ as SavedCard, ay as ServerConfig, bh as ServerDestinationsQuery, ag as SetPaymentMethodInput, ah as SetPaymentMethodResult, bb as SmsVerifyResult, aX as SteamFinalizeInput, aY as SteamFinalizeResult, am as SteamFinalizeSubscriptionResult, aV as SteamInitPurchaseInput, aW as SteamInitPurchaseResult, al as SteamInitResult, b$ as SteamPack, aT as SteamPacksQuery, aU as SteamPacksResult, ak as SteamSubscriptionInitInput, c0 as SteamUserSession, c1 as Subscription, c2 as SubscriptionBaseInput, c3 as SubscriptionConsent, c4 as SubscriptionConsentInput, c5 as SubscriptionFundingRail, c6 as SubscriptionInterval, ac as SubscriptionListResult, a8 as SubscriptionResult, c7 as SubscriptionRevenueShare, c8 as SubscriptionRevenueShareInput, c9 as SubscriptionStatus, bf as TransactionStatusResult, ca as UnacknowledgedPurchaseOutcome, aD as UpdatePlayerPhoneInput, aE as UpdatePlayerPhoneResult, _ as VerificationMethod, cb as isRefundPendingApproval } from './types-
|
|
1
|
+
export { bt as ApproveWithDeviceCodeInput, bn as BeginDeviceApprovalInput, g as CallOptions, ae as CancelResult, ad as CancelSubscriptionOptions, ar as CardSetupConfirmInput, as as CardSetupConfirmResult, ap as CardSetupInput, aq as CardSetupResult, an as CardSetupSessionInput, ao as CardSetupSessionResult, bx as CardSetupStatus, af as ChangeAmountResult, by as CheckoutWarning, be as ClaimCurrencyInput, y as ClaimDelivery, bd as ClaimResult, bc as ClaimTransferInput, bv as CompleteDeviceApprovalInput, bw as CompleteDeviceApprovalResult, br as ConfirmDeviceEnrollmentInput, bs as ConfirmDeviceEnrollmentResult, aR as ConfirmPaymentResult, aL as CreateCheckoutInput, aM as CreateCheckoutResult, a7 as CreateSubscriptionInput, bz as CurrencyBalance, aQ as CurrencyPurchaseQuote, bA as CurrencyPurchaseQuoteBreakdown, aP as CurrencyPurchaseQuoteInput, D as DestinationGame, p as DestinationsResult, bB as DeviceApprovalChannel, bC as DeviceApprovalEnrollment, bD as DeviceApprovalFlow, bo as DeviceApprovalGrant, bq as DeviceApprovalPollResult, bE as DeviceApprovalPollStatus, bu as DeviceApprovalSettleResult, bF as DeviceEnrollmentDecision, bG as DeviceEnrollmentRespond, bH as ExpiryReason, bI as FeeTakenFrom, bJ as FirstCharge, bK as FirstChargeStatus, bL as FundingSource, a9 as GetSubscriptionOptions, aa as GetSubscriptionResult, bg as GuardianApprovalStatusResult, bM as InboundPendingItem, b7 as InboundPendingQuery, b8 as InboundPendingResult, aJ as InitiateResult, aI as InitiateSendInput, aK as InitiateTransferInput, I as InvoError, z as InvoErrorInfo, F as InvoHooks, G as InvoRequestInfo, J as InvoResponseInfo, a$ as ItemHistoryQuery, b0 as ItemHistoryResult, b1 as ItemOrderQuery, b9 as LinkedIdentitiesQuery, ba as LinkedIdentitiesResult, bN as LinkedIdentityEmail, ab as ListSubscriptionsOptions, K as LoyaltyCard, N as LoyaltyCardReward, O as LoyaltyCardStep, q as LoyaltyCardsResult, Q as LoyaltyRewardState, S as LoyaltyStepProgress, T as LoyaltyStepState, bO as MinPurchaseWarning, az as MintPlayerTokenInput, aS as OrderDetailsResult, bP as PhoneChangeConfirmation, aH as PhoneChangeRequest, bQ as PhoneChangeRequestStatus, bk as PhoneShareApproveInput, bl as PhoneShareApproveResult, bi as PhoneShareContact, bj as PhoneShareInitiateResult, bm as PhoneShareStatusResult, a2 as PlatformOrderStatusResult, a3 as PlatformPurchaseHistoryQuery, a4 as PlatformPurchaseHistoryResult, a0 as PlatformPurchaseInput, a1 as PlatformPurchaseResult, bR as PlatformPurchaseStatus, a5 as PlatformRefundInput, a6 as PlatformRefundResult, b4 as PlayerActivityEntry, b2 as PlayerActivityQuery, b3 as PlayerActivityResult, bS as PlayerActivityType, b5 as PlayerBalanceQuery, b6 as PlayerBalanceResult, at as PlayerCardsResult, aA as PlayerToken, bp as PollDeviceApprovalInput, aN as PurchaseInput, aZ as PurchaseItemInput, a_ as PurchaseItemResult, aO as PurchaseResult, Z as Rail, bT as RefundInitiation, bU as RefundPendingApproval, bV as RefundProcessingFeeBasis, bW as RefundReceipt, aj as RefundResult, bX as RefundRevenueShareAttribution, ai as RefundSubscriptionInput, bY as RefundWarning, aB as RegisterPlayerInput, aC as RegisterPlayerResult, aF as RequestPhoneChangeInput, aG as RequestPhoneChangeResult, au as SandboxClockResult, bZ as SandboxClockState, av as SandboxFailureOutcome, ax as SandboxForceAuthChallengeOptions, aw as SandboxForceFailureOptions, b_ as SavedCard, ay as ServerConfig, bh as ServerDestinationsQuery, ag as SetPaymentMethodInput, ah as SetPaymentMethodResult, bb as SmsVerifyResult, aX as SteamFinalizeInput, aY as SteamFinalizeResult, am as SteamFinalizeSubscriptionResult, aV as SteamInitPurchaseInput, aW as SteamInitPurchaseResult, al as SteamInitResult, b$ as SteamPack, aT as SteamPacksQuery, aU as SteamPacksResult, ak as SteamSubscriptionInitInput, c0 as SteamUserSession, c1 as Subscription, c2 as SubscriptionBaseInput, c3 as SubscriptionConsent, c4 as SubscriptionConsentInput, c5 as SubscriptionFundingRail, c6 as SubscriptionInterval, ac as SubscriptionListResult, a8 as SubscriptionResult, c7 as SubscriptionRevenueShare, c8 as SubscriptionRevenueShareInput, c9 as SubscriptionStatus, bf as TransactionStatusResult, ca as UnacknowledgedPurchaseOutcome, aD as UpdatePlayerPhoneInput, aE as UpdatePlayerPhoneResult, _ as VerificationMethod, cb as isRefundPendingApproval } from './types-D_NgeTKV.js';
|
|
2
2
|
export { G as GameEventType, R as ReportGameEventInput, a as ReportGameEventResult, b as ReportServerGameEventInput } from './loyalty-events-CmDw2ZoR.js';
|
|
3
|
-
export { C as CardsServer, D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, c as IdentityPasskeyResetData, a as InvoEnvironment, I as InvoServer, d as InvoWebhookEvent, e as ItemPurchasedData, L as ListPayeesQuery, f as ListPayeesResult, g as ListPayoutsQuery, h as ListPayoutsResult, P as PRODUCTION_BASE_URL, j as PayableBlocker, k as Payee, l as PayeeInvite, m as PayeeStatus, n as PayeeStatusChangedData, o as Payout, p as PayoutStatus, q as PayoutStatusChangedData, s as PayoutsServer, t as PlatformCommercePurchasedData, u as PlatformCommerceRefundedData, w as PlatformCommerceServer, x as PlayerPhoneChangedData, y as PurchaseCompletedData, z as PurchaseEventData, R as RegisterPayeeInput, A as RegisterPayeeResult, B as RequestPayoutInput, F as RequestPayoutResult, G as ReturnReasonCode, S as SANDBOX_BASE_URL, H as SandboxServer, J as SandboxSubscriptionsServer, K as SubscriptionAuthenticationRequiredData, M as SubscriptionCanceledData, N as SubscriptionEventCommon, O as SubscriptionExpiredData, Q as SubscriptionPastDueData, T as SubscriptionPaymentFailedData, U as SubscriptionRefundApprovedData, V as SubscriptionRefundDetail, W as SubscriptionRefundRejectedData, X as SubscriptionRefundRequestData, Y as SubscriptionRefundedData, Z as SubscriptionRenewalFunding, _ as SubscriptionRenewalSplit, $ as SubscriptionRenewedData, a0 as SubscriptionRevenueShareAttribution, a1 as SubscriptionTrialEventFields, a2 as SubscriptionsServer, a3 as TransferEventData, a4 as VerifyWebhookOptions, a5 as WebhookHandlerOptions, b as baseUrlForKey, a6 as createWebhookHandler, i as isDemoKey, r as resolveEnvironment, a7 as verifyWebhook, a8 as verifyWebhookAsync } from './server-
|
|
4
|
-
export { S as SDK_VERSION } from './version-
|
|
3
|
+
export { C as CardsServer, D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, c as IdentityPasskeyResetData, a as InvoEnvironment, I as InvoServer, d as InvoWebhookEvent, e as ItemPurchasedData, L as ListPayeesQuery, f as ListPayeesResult, g as ListPayoutsQuery, h as ListPayoutsResult, P as PRODUCTION_BASE_URL, j as PayableBlocker, k as Payee, l as PayeeInvite, m as PayeeStatus, n as PayeeStatusChangedData, o as Payout, p as PayoutStatus, q as PayoutStatusChangedData, s as PayoutsServer, t as PlatformCommercePurchasedData, u as PlatformCommerceRefundedData, w as PlatformCommerceServer, x as PlayerPhoneChangedData, y as PurchaseCompletedData, z as PurchaseEventData, R as RegisterPayeeInput, A as RegisterPayeeResult, B as RequestPayoutInput, F as RequestPayoutResult, G as ReturnReasonCode, S as SANDBOX_BASE_URL, H as SandboxServer, J as SandboxSubscriptionsServer, K as SubscriptionAuthenticationRequiredData, M as SubscriptionCanceledData, N as SubscriptionEventCommon, O as SubscriptionExpiredData, Q as SubscriptionPastDueData, T as SubscriptionPaymentFailedData, U as SubscriptionRefundApprovedData, V as SubscriptionRefundDetail, W as SubscriptionRefundRejectedData, X as SubscriptionRefundRequestData, Y as SubscriptionRefundedData, Z as SubscriptionRenewalFunding, _ as SubscriptionRenewalSplit, $ as SubscriptionRenewedData, a0 as SubscriptionRevenueShareAttribution, a1 as SubscriptionTrialEventFields, a2 as SubscriptionsServer, a3 as TransferEventData, a4 as VerifyWebhookOptions, a5 as WebhookHandlerOptions, b as baseUrlForKey, a6 as createWebhookHandler, i as isDemoKey, r as resolveEnvironment, a7 as verifyWebhook, a8 as verifyWebhookAsync } from './server-Brl2YvfT.js';
|
|
4
|
+
export { S as SDK_VERSION } from './version-ENZ-BpKg.js';
|
package/dist/server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CardsServer, DEMO_KEY_PREFIX, EnvironmentUnknownError, InvoServer, PRODUCTION_BASE_URL, PayoutsServer, PlatformCommerceServer, SANDBOX_BASE_URL, SandboxServer, SandboxSubscriptionsServer, SubscriptionsServer, baseUrlForKey, createWebhookHandler, isDemoKey, isRefundPendingApproval, resolveEnvironment, verifyWebhook, verifyWebhookAsync } from './chunk-
|
|
2
|
-
export { SDK_VERSION } from './chunk-
|
|
3
|
-
export { InvoError } from './chunk-
|
|
1
|
+
export { CardsServer, DEMO_KEY_PREFIX, EnvironmentUnknownError, InvoServer, PRODUCTION_BASE_URL, PayoutsServer, PlatformCommerceServer, SANDBOX_BASE_URL, SandboxServer, SandboxSubscriptionsServer, SubscriptionsServer, baseUrlForKey, createWebhookHandler, isDemoKey, isRefundPendingApproval, resolveEnvironment, verifyWebhook, verifyWebhookAsync } from './chunk-PED5RLYP.js';
|
|
2
|
+
export { SDK_VERSION } from './chunk-EJR7SOQK.js';
|
|
3
|
+
export { InvoError } from './chunk-TCT2QSVB.js';
|
|
4
4
|
//# sourceMappingURL=server.js.map
|
|
5
5
|
//# sourceMappingURL=server.js.map
|
|
@@ -1277,8 +1277,8 @@ interface PurchaseInput {
|
|
|
1277
1277
|
* USD, two decimals: the listed price of the coins.
|
|
1278
1278
|
*
|
|
1279
1279
|
* **Without `acknowledgedTotalUsd` this is exactly what the card is charged, never more**,
|
|
1280
|
-
* and the player receives the listed coins for it. INVO's card fee (3.5% + $0.
|
|
1281
|
-
* 5.
|
|
1280
|
+
* and the player receives the listed coins for it. INVO's card fee (3.5% + $0.15 on Open,
|
|
1281
|
+
* 5.0% + $0.15 on Merchant of Record, plus 1.5% of the listed price (before tax) on a card issued outside the
|
|
1282
1282
|
* US) is charged to you, the partner, never to the player: $10.00 buys 100.00 coins at the
|
|
1283
1283
|
* default 10 per USD and your fee is $0.65 on Open. Card purchases only; purchases through a
|
|
1284
1284
|
* third-party storefront or payment rail are unaffected.
|
|
@@ -1352,7 +1352,7 @@ interface PurchaseResult {
|
|
|
1352
1352
|
feeTakenFrom?: FeeTakenFrom;
|
|
1353
1353
|
/**
|
|
1354
1354
|
* INVO's card fee charged to you, the partner, for this purchase, decimal string: 3.5% +
|
|
1355
|
-
* $0.30 on Open, 5.
|
|
1355
|
+
* $0.30 on Open, 5.0% + $0.15 on Merchant of Record ($0.65 on a $10.00 Open purchase). It
|
|
1356
1356
|
* nets against your earnings and is not returned on a refund. Separate from
|
|
1357
1357
|
* {@link internationalCardFeeUsd}. `undefined` when the fee does not apply to the purchase
|
|
1358
1358
|
* (a third-party storefront or payment rail, an order charged before the 2026-09 pricing)
|
|
@@ -1501,7 +1501,7 @@ interface CurrencyPurchaseQuote {
|
|
|
1501
1501
|
processingFeeUsd: string;
|
|
1502
1502
|
/**
|
|
1503
1503
|
* INVO's card fee you will be charged for this purchase, decimal string, when the backend
|
|
1504
|
-
* sends it: 3.5% + $0.
|
|
1504
|
+
* sends it: 3.5% + $0.15 on Open, 5.0% + $0.15 on Merchant of Record ($0.65 on $10.00 on
|
|
1505
1505
|
* Open). The international card fee (1.5% of the listed price, before tax, on a card issued
|
|
1506
1506
|
* outside the US) is separate and known only once the card is. Read the figure; do not
|
|
1507
1507
|
* recompute it.
|
|
@@ -1277,8 +1277,8 @@ interface PurchaseInput {
|
|
|
1277
1277
|
* USD, two decimals: the listed price of the coins.
|
|
1278
1278
|
*
|
|
1279
1279
|
* **Without `acknowledgedTotalUsd` this is exactly what the card is charged, never more**,
|
|
1280
|
-
* and the player receives the listed coins for it. INVO's card fee (3.5% + $0.
|
|
1281
|
-
* 5.
|
|
1280
|
+
* and the player receives the listed coins for it. INVO's card fee (3.5% + $0.15 on Open,
|
|
1281
|
+
* 5.0% + $0.15 on Merchant of Record, plus 1.5% of the listed price (before tax) on a card issued outside the
|
|
1282
1282
|
* US) is charged to you, the partner, never to the player: $10.00 buys 100.00 coins at the
|
|
1283
1283
|
* default 10 per USD and your fee is $0.65 on Open. Card purchases only; purchases through a
|
|
1284
1284
|
* third-party storefront or payment rail are unaffected.
|
|
@@ -1352,7 +1352,7 @@ interface PurchaseResult {
|
|
|
1352
1352
|
feeTakenFrom?: FeeTakenFrom;
|
|
1353
1353
|
/**
|
|
1354
1354
|
* INVO's card fee charged to you, the partner, for this purchase, decimal string: 3.5% +
|
|
1355
|
-
* $0.30 on Open, 5.
|
|
1355
|
+
* $0.30 on Open, 5.0% + $0.15 on Merchant of Record ($0.65 on a $10.00 Open purchase). It
|
|
1356
1356
|
* nets against your earnings and is not returned on a refund. Separate from
|
|
1357
1357
|
* {@link internationalCardFeeUsd}. `undefined` when the fee does not apply to the purchase
|
|
1358
1358
|
* (a third-party storefront or payment rail, an order charged before the 2026-09 pricing)
|
|
@@ -1501,7 +1501,7 @@ interface CurrencyPurchaseQuote {
|
|
|
1501
1501
|
processingFeeUsd: string;
|
|
1502
1502
|
/**
|
|
1503
1503
|
* INVO's card fee you will be charged for this purchase, decimal string, when the backend
|
|
1504
|
-
* sends it: 3.5% + $0.
|
|
1504
|
+
* sends it: 3.5% + $0.15 on Open, 5.0% + $0.15 on Merchant of Record ($0.65 on $10.00 on
|
|
1505
1505
|
* Open). The international card fee (1.5% of the listed price, before tax, on a card issued
|
|
1506
1506
|
* outside the US) is separate and known only once the card is. Read the figure; do not
|
|
1507
1507
|
* recompute it.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@invonetwork/web-sdk",
|
|
3
|
-
"version": "3.30.
|
|
3
|
+
"version": "3.30.2",
|
|
4
4
|
"description": "INVO Web SDK — currency purchase, passkey (WebAuthn) verification, loyalty, and a drop-in game economy layer (wallet, shop, hosted checkout) for partner web platforms and browser games.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"private": false,
|