@invonetwork/web-sdk 3.37.0 → 3.38.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 +24 -0
- package/README.md +49 -8
- package/dist/{chunk-AUHRMREF.js → chunk-3HK32FE4.js} +3 -3
- package/dist/{chunk-KWAUFFDY.js → chunk-7B7MFAQ3.js} +33 -5
- package/dist/chunk-MOHWLDOQ.js +6 -0
- package/dist/{chunk-ZHEQAZLW.js → chunk-NS33T5FB.js} +64 -15
- package/dist/game-server.cjs +99 -22
- package/dist/game-server.d.cts +4 -4
- package/dist/game-server.d.ts +4 -4
- package/dist/game-server.js +5 -5
- package/dist/game.cjs +32 -4
- package/dist/game.d.cts +3 -3
- package/dist/game.d.ts +3 -3
- package/dist/game.js +3 -3
- package/dist/{hosted-approval-DS9gcCF5.d.cts → hosted-approval-B-kbdFDL.d.cts} +1 -1
- package/dist/{hosted-approval-Dv462L4e.d.ts → hosted-approval-CtAZ1Rzt.d.ts} +1 -1
- package/dist/index.cjs +31 -3
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/{server-B9PtYZaM.d.cts → server-BWGl9v5j.d.cts} +93 -13
- package/dist/{server-B7Pw1HMp.d.ts → server-CaaP-Nc3.d.ts} +93 -13
- package/dist/server.cjs +99 -22
- package/dist/server.d.cts +3 -3
- package/dist/server.d.ts +3 -3
- package/dist/server.js +3 -3
- package/dist/{types-BdKpJX93.d.cts → types-DGgWWX1v.d.cts} +89 -9
- package/dist/{types-BdKpJX93.d.ts → types-DGgWWX1v.d.ts} +89 -9
- package/dist/{version-CuhMO-6s.d.cts → version-D_cJUvMp.d.cts} +1 -1
- package/dist/{version-CuhMO-6s.d.ts → version-D_cJUvMp.d.ts} +1 -1
- package/docs/merchant-of-record-tax.md +176 -0
- package/package.json +2 -1
- package/dist/chunk-MENRG67H.js +0 -6
package/dist/server.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { bC as AppleEnvironment, bD as AppleProduct, b0 as AppleProductsResult, a1 as ApplePurchaseResult, bE as ApplePurchaseStatus, bF as AppleUnavailableReason, by as ApproveWithDeviceCodeInput, bs as BeginDeviceApprovalInput, g as CallOptions, ah as CancelResult, ag as CancelSubscriptionOptions, au as CardSetupConfirmInput, av as CardSetupConfirmResult, as as CardSetupInput, at as CardSetupResult, aq as CardSetupSessionInput, ar as CardSetupSessionResult, bG as CardSetupStatus, ai as ChangeAmountResult, bH as CheckoutWarning, bj as ClaimCurrencyInput, y as ClaimDelivery, bi as ClaimResult, bh as ClaimTransferInput, bA as CompleteDeviceApprovalInput, bB as CompleteDeviceApprovalResult, bw as ConfirmDeviceEnrollmentInput, bx as ConfirmDeviceEnrollmentResult, aU as ConfirmPaymentResult, aO as CreateCheckoutInput, aP as CreateCheckoutResult, aa as CreateSubscriptionInput, bI as CurrencyBalance, aT as CurrencyPurchaseQuote, bJ as CurrencyPurchaseQuoteBreakdown, aS as CurrencyPurchaseQuoteInput, D as DestinationGame, p as DestinationsResult, bK as DeviceApprovalChannel, bL as DeviceApprovalEnrollment, bM as DeviceApprovalFlow, bt as DeviceApprovalGrant, bv as DeviceApprovalPollResult, bN as DeviceApprovalPollStatus, bz as DeviceApprovalSettleResult, bO as DeviceEnrollmentDecision, bP as DeviceEnrollmentRespond, bQ as ExpiryReason, bR as FeeTakenFrom, bS as FirstCharge, bT as FirstChargeStatus, bU as FundingSource, ac as GetSubscriptionOptions, ad as GetSubscriptionResult, bl as GuardianApprovalStatusResult, bV as InboundPendingItem, bc as InboundPendingQuery, bd as InboundPendingResult, aM as InitiateResult, aL as InitiateSendInput, aN as InitiateTransferInput, I as InvoError, z as InvoErrorInfo, F as InvoHooks, G as InvoRequestInfo, J as InvoResponseInfo, b4 as ItemHistoryQuery, b5 as ItemHistoryResult, b6 as ItemOrderQuery, be as LinkedIdentitiesQuery, bf as LinkedIdentitiesResult, bW as LinkedIdentityEmail, ae as ListSubscriptionsOptions, K as LoyaltyCard, N as LoyaltyCardReward, O as LoyaltyCardStep, q as LoyaltyCardsResult, Q as LoyaltyRewardState, S as LoyaltyStepProgress, T as LoyaltyStepState, bX as MinPurchaseWarning, aC as MintPlayerTokenInput, aV as OrderDetailsResult, bY as PhoneChangeConfirmation, aK as PhoneChangeRequest, bZ as PhoneChangeRequestStatus, bp as PhoneShareApproveInput, bq as PhoneShareApproveResult, bn as PhoneShareContact, bo as PhoneShareInitiateResult, br as PhoneShareStatusResult, a4 as PlatformApprovalResult, a5 as PlatformOrderStatusResult, a6 as PlatformPurchaseHistoryQuery, a7 as PlatformPurchaseHistoryResult, a2 as PlatformPurchaseInput, a3 as PlatformPurchaseResult, b_ as PlatformPurchaseStatus, a8 as PlatformRefundInput, a9 as PlatformRefundResult, b9 as PlayerActivityEntry, b7 as PlayerActivityQuery, b8 as PlayerActivityResult, b$ as PlayerActivityType, ba as PlayerBalanceQuery, bb as PlayerBalanceResult, aw as PlayerCardsResult, aD as PlayerToken, bu as PollDeviceApprovalInput, aQ as PurchaseInput, b2 as PurchaseItemInput, b3 as PurchaseItemResult, aR as PurchaseResult, Z as Rail, c0 as RefundInitiation, c1 as RefundPendingApproval, c2 as RefundProcessingFeeBasis, c3 as RefundReceipt, am as RefundResult, c4 as RefundRevenueShareAttribution, al as RefundSubscriptionInput, c5 as RefundWarning, aE as RegisterPlayerInput, aF as RegisterPlayerResult, aI as RequestPhoneChangeInput, aJ as RequestPhoneChangeResult, ax as SandboxClockResult, c6 as SandboxClockState, ay as SandboxFailureOutcome, aA as SandboxForceAuthChallengeOptions, az as SandboxForceFailureOptions, c7 as SavedCard, aB as ServerConfig, bm as ServerDestinationsQuery, aj as SetPaymentMethodInput, ak as SetPaymentMethodResult, bg as SmsVerifyResult, a_ as SteamFinalizeInput, a$ as SteamFinalizeResult, ap as SteamFinalizeSubscriptionResult, aY as SteamInitPurchaseInput, aZ as SteamInitPurchaseResult, ao as SteamInitResult, c8 as SteamPack, aW as SteamPacksQuery, aX as SteamPacksResult, an as SteamSubscriptionInitInput, c9 as SteamUnavailableReason, ca as SteamUserSession, cb as Subscription, cc as SubscriptionBaseInput, cd as SubscriptionConsent, ce as SubscriptionConsentInput, cf as SubscriptionFundingRail, cg as SubscriptionInterval, af as SubscriptionListResult, ab as SubscriptionResult, ch as SubscriptionRevenueShare, ci as SubscriptionRevenueShareInput, cj as SubscriptionStatus, $ as TaxPriceDisplay, bk as TransactionStatusResult, ck as UnacknowledgedPurchaseOutcome, aG as UpdatePlayerPhoneInput, aH as UpdatePlayerPhoneResult, _ as VerificationMethod, b1 as VerifyApplePurchaseInput, cl as isRefundPendingApproval } from './types-DGgWWX1v.cjs';
|
|
2
2
|
export { G as GameEventType, R as ReportGameEventInput, a as ReportGameEventResult, b as ReportServerGameEventInput } from './loyalty-events-CmDw2ZoR.cjs';
|
|
3
|
-
export { A as APPLE_FINISH_ERROR_CODES, d as AppleWebhookDetails, C as CardsServer, D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, f as IdentityPasskeyResetData, a as InvoEnvironment, I as InvoServer, g as InvoWebhookEvent, h as ItemPurchasedData, K as KeyEnvironmentMismatchError, L as LIVE_KEY_PREFIX, j as ListPayeesQuery, k as ListPayeesResult, l as ListPayoutsQuery, m as ListPayoutsResult, P as PRODUCTION_BASE_URL, n as PayableBlocker, o as Payee, p as PayeeInvite, q as PayeeStatus, s as PayeeStatusChangedData, t as Payout, u as PayoutStatus, w as PayoutStatusChangedData, x as PayoutsServer, y as PlatformCommercePurchasedData, z as PlatformCommerceRefundedData, B as PlatformCommerceServer, F as PlayerPhoneChangedData, G as PurchaseCompletedData, H as PurchaseEventData, R as RegisterPayeeInput, J as RegisterPayeeResult, M as RequestPayoutInput, N as RequestPayoutResult, O as ReturnReasonCode, S as SANDBOX_BASE_URL, Q as SandboxServer, U as SandboxSubscriptionsServer, V as SubscriptionAuthenticationRequiredData, W as SubscriptionCanceledData, X as SubscriptionEventCommon, Y as SubscriptionExpiredData, Z as SubscriptionPastDueData, _ as SubscriptionPaymentFailedData, $ as SubscriptionRefundApprovedData, a0 as SubscriptionRefundDetail, a1 as SubscriptionRefundRejectedData, a2 as SubscriptionRefundRequestData, a3 as SubscriptionRefundedData, a4 as SubscriptionRenewalFunding, a5 as SubscriptionRenewalSplit, a6 as SubscriptionRenewedData, a7 as SubscriptionRevenueShareAttribution, a8 as SubscriptionTrialEventFields, a9 as SubscriptionsServer, T as TEST_KEY_PREFIX, aa as TransferEventData, ab as VerifyWebhookOptions, ac as WebhookHandlerOptions, b as baseUrlForKey, ad as createWebhookHandler, e as environmentForBaseUrl, c as environmentFromKeyPrefix, ae as isAppleCreditPending, i as isDemoKey, r as resolveEnvironment, af as shouldFinishAppleTransaction, ag as verifyWebhook, ah as verifyWebhookAsync } from './server-
|
|
4
|
-
export { S as SDK_VERSION } from './version-
|
|
3
|
+
export { A as APPLE_FINISH_ERROR_CODES, d as AppleWebhookDetails, C as CardsServer, D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, f as IdentityPasskeyResetData, a as InvoEnvironment, I as InvoServer, g as InvoWebhookEvent, h as ItemPurchasedData, K as KeyEnvironmentMismatchError, L as LIVE_KEY_PREFIX, j as ListPayeesQuery, k as ListPayeesResult, l as ListPayoutsQuery, m as ListPayoutsResult, P as PRODUCTION_BASE_URL, n as PayableBlocker, o as Payee, p as PayeeInvite, q as PayeeStatus, s as PayeeStatusChangedData, t as Payout, u as PayoutStatus, w as PayoutStatusChangedData, x as PayoutsServer, y as PlatformCommercePurchasedData, z as PlatformCommerceRefundedData, B as PlatformCommerceServer, F as PlayerPhoneChangedData, G as PurchaseCompletedData, H as PurchaseEventData, R as RegisterPayeeInput, J as RegisterPayeeResult, M as RequestPayoutInput, N as RequestPayoutResult, O as ReturnReasonCode, S as SANDBOX_BASE_URL, Q as SandboxServer, U as SandboxSubscriptionsServer, V as SubscriptionAuthenticationRequiredData, W as SubscriptionCanceledData, X as SubscriptionEventCommon, Y as SubscriptionExpiredData, Z as SubscriptionPastDueData, _ as SubscriptionPaymentFailedData, $ as SubscriptionRefundApprovedData, a0 as SubscriptionRefundDetail, a1 as SubscriptionRefundRejectedData, a2 as SubscriptionRefundRequestData, a3 as SubscriptionRefundedData, a4 as SubscriptionRenewalFunding, a5 as SubscriptionRenewalSplit, a6 as SubscriptionRenewedData, a7 as SubscriptionRevenueShareAttribution, a8 as SubscriptionTrialEventFields, a9 as SubscriptionsServer, T as TEST_KEY_PREFIX, aa as TransferEventData, ab as VerifyWebhookOptions, ac as WebhookHandlerOptions, b as baseUrlForKey, ad as createWebhookHandler, e as environmentForBaseUrl, c as environmentFromKeyPrefix, ae as isAppleCreditPending, i as isDemoKey, r as resolveEnvironment, af as shouldFinishAppleTransaction, ag as verifyWebhook, ah as verifyWebhookAsync } from './server-BWGl9v5j.cjs';
|
|
4
|
+
export { S as SDK_VERSION } from './version-D_cJUvMp.cjs';
|
package/dist/server.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { bC as AppleEnvironment, bD as AppleProduct, b0 as AppleProductsResult, a1 as ApplePurchaseResult, bE as ApplePurchaseStatus, bF as AppleUnavailableReason, by as ApproveWithDeviceCodeInput, bs as BeginDeviceApprovalInput, g as CallOptions, ah as CancelResult, ag as CancelSubscriptionOptions, au as CardSetupConfirmInput, av as CardSetupConfirmResult, as as CardSetupInput, at as CardSetupResult, aq as CardSetupSessionInput, ar as CardSetupSessionResult, bG as CardSetupStatus, ai as ChangeAmountResult, bH as CheckoutWarning, bj as ClaimCurrencyInput, y as ClaimDelivery, bi as ClaimResult, bh as ClaimTransferInput, bA as CompleteDeviceApprovalInput, bB as CompleteDeviceApprovalResult, bw as ConfirmDeviceEnrollmentInput, bx as ConfirmDeviceEnrollmentResult, aU as ConfirmPaymentResult, aO as CreateCheckoutInput, aP as CreateCheckoutResult, aa as CreateSubscriptionInput, bI as CurrencyBalance, aT as CurrencyPurchaseQuote, bJ as CurrencyPurchaseQuoteBreakdown, aS as CurrencyPurchaseQuoteInput, D as DestinationGame, p as DestinationsResult, bK as DeviceApprovalChannel, bL as DeviceApprovalEnrollment, bM as DeviceApprovalFlow, bt as DeviceApprovalGrant, bv as DeviceApprovalPollResult, bN as DeviceApprovalPollStatus, bz as DeviceApprovalSettleResult, bO as DeviceEnrollmentDecision, bP as DeviceEnrollmentRespond, bQ as ExpiryReason, bR as FeeTakenFrom, bS as FirstCharge, bT as FirstChargeStatus, bU as FundingSource, ac as GetSubscriptionOptions, ad as GetSubscriptionResult, bl as GuardianApprovalStatusResult, bV as InboundPendingItem, bc as InboundPendingQuery, bd as InboundPendingResult, aM as InitiateResult, aL as InitiateSendInput, aN as InitiateTransferInput, I as InvoError, z as InvoErrorInfo, F as InvoHooks, G as InvoRequestInfo, J as InvoResponseInfo, b4 as ItemHistoryQuery, b5 as ItemHistoryResult, b6 as ItemOrderQuery, be as LinkedIdentitiesQuery, bf as LinkedIdentitiesResult, bW as LinkedIdentityEmail, ae as ListSubscriptionsOptions, K as LoyaltyCard, N as LoyaltyCardReward, O as LoyaltyCardStep, q as LoyaltyCardsResult, Q as LoyaltyRewardState, S as LoyaltyStepProgress, T as LoyaltyStepState, bX as MinPurchaseWarning, aC as MintPlayerTokenInput, aV as OrderDetailsResult, bY as PhoneChangeConfirmation, aK as PhoneChangeRequest, bZ as PhoneChangeRequestStatus, bp as PhoneShareApproveInput, bq as PhoneShareApproveResult, bn as PhoneShareContact, bo as PhoneShareInitiateResult, br as PhoneShareStatusResult, a4 as PlatformApprovalResult, a5 as PlatformOrderStatusResult, a6 as PlatformPurchaseHistoryQuery, a7 as PlatformPurchaseHistoryResult, a2 as PlatformPurchaseInput, a3 as PlatformPurchaseResult, b_ as PlatformPurchaseStatus, a8 as PlatformRefundInput, a9 as PlatformRefundResult, b9 as PlayerActivityEntry, b7 as PlayerActivityQuery, b8 as PlayerActivityResult, b$ as PlayerActivityType, ba as PlayerBalanceQuery, bb as PlayerBalanceResult, aw as PlayerCardsResult, aD as PlayerToken, bu as PollDeviceApprovalInput, aQ as PurchaseInput, b2 as PurchaseItemInput, b3 as PurchaseItemResult, aR as PurchaseResult, Z as Rail, c0 as RefundInitiation, c1 as RefundPendingApproval, c2 as RefundProcessingFeeBasis, c3 as RefundReceipt, am as RefundResult, c4 as RefundRevenueShareAttribution, al as RefundSubscriptionInput, c5 as RefundWarning, aE as RegisterPlayerInput, aF as RegisterPlayerResult, aI as RequestPhoneChangeInput, aJ as RequestPhoneChangeResult, ax as SandboxClockResult, c6 as SandboxClockState, ay as SandboxFailureOutcome, aA as SandboxForceAuthChallengeOptions, az as SandboxForceFailureOptions, c7 as SavedCard, aB as ServerConfig, bm as ServerDestinationsQuery, aj as SetPaymentMethodInput, ak as SetPaymentMethodResult, bg as SmsVerifyResult, a_ as SteamFinalizeInput, a$ as SteamFinalizeResult, ap as SteamFinalizeSubscriptionResult, aY as SteamInitPurchaseInput, aZ as SteamInitPurchaseResult, ao as SteamInitResult, c8 as SteamPack, aW as SteamPacksQuery, aX as SteamPacksResult, an as SteamSubscriptionInitInput, c9 as SteamUnavailableReason, ca as SteamUserSession, cb as Subscription, cc as SubscriptionBaseInput, cd as SubscriptionConsent, ce as SubscriptionConsentInput, cf as SubscriptionFundingRail, cg as SubscriptionInterval, af as SubscriptionListResult, ab as SubscriptionResult, ch as SubscriptionRevenueShare, ci as SubscriptionRevenueShareInput, cj as SubscriptionStatus, $ as TaxPriceDisplay, bk as TransactionStatusResult, ck as UnacknowledgedPurchaseOutcome, aG as UpdatePlayerPhoneInput, aH as UpdatePlayerPhoneResult, _ as VerificationMethod, b1 as VerifyApplePurchaseInput, cl as isRefundPendingApproval } from './types-DGgWWX1v.js';
|
|
2
2
|
export { G as GameEventType, R as ReportGameEventInput, a as ReportGameEventResult, b as ReportServerGameEventInput } from './loyalty-events-CmDw2ZoR.js';
|
|
3
|
-
export { A as APPLE_FINISH_ERROR_CODES, d as AppleWebhookDetails, C as CardsServer, D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, f as IdentityPasskeyResetData, a as InvoEnvironment, I as InvoServer, g as InvoWebhookEvent, h as ItemPurchasedData, K as KeyEnvironmentMismatchError, L as LIVE_KEY_PREFIX, j as ListPayeesQuery, k as ListPayeesResult, l as ListPayoutsQuery, m as ListPayoutsResult, P as PRODUCTION_BASE_URL, n as PayableBlocker, o as Payee, p as PayeeInvite, q as PayeeStatus, s as PayeeStatusChangedData, t as Payout, u as PayoutStatus, w as PayoutStatusChangedData, x as PayoutsServer, y as PlatformCommercePurchasedData, z as PlatformCommerceRefundedData, B as PlatformCommerceServer, F as PlayerPhoneChangedData, G as PurchaseCompletedData, H as PurchaseEventData, R as RegisterPayeeInput, J as RegisterPayeeResult, M as RequestPayoutInput, N as RequestPayoutResult, O as ReturnReasonCode, S as SANDBOX_BASE_URL, Q as SandboxServer, U as SandboxSubscriptionsServer, V as SubscriptionAuthenticationRequiredData, W as SubscriptionCanceledData, X as SubscriptionEventCommon, Y as SubscriptionExpiredData, Z as SubscriptionPastDueData, _ as SubscriptionPaymentFailedData, $ as SubscriptionRefundApprovedData, a0 as SubscriptionRefundDetail, a1 as SubscriptionRefundRejectedData, a2 as SubscriptionRefundRequestData, a3 as SubscriptionRefundedData, a4 as SubscriptionRenewalFunding, a5 as SubscriptionRenewalSplit, a6 as SubscriptionRenewedData, a7 as SubscriptionRevenueShareAttribution, a8 as SubscriptionTrialEventFields, a9 as SubscriptionsServer, T as TEST_KEY_PREFIX, aa as TransferEventData, ab as VerifyWebhookOptions, ac as WebhookHandlerOptions, b as baseUrlForKey, ad as createWebhookHandler, e as environmentForBaseUrl, c as environmentFromKeyPrefix, ae as isAppleCreditPending, i as isDemoKey, r as resolveEnvironment, af as shouldFinishAppleTransaction, ag as verifyWebhook, ah as verifyWebhookAsync } from './server-
|
|
4
|
-
export { S as SDK_VERSION } from './version-
|
|
3
|
+
export { A as APPLE_FINISH_ERROR_CODES, d as AppleWebhookDetails, C as CardsServer, D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, f as IdentityPasskeyResetData, a as InvoEnvironment, I as InvoServer, g as InvoWebhookEvent, h as ItemPurchasedData, K as KeyEnvironmentMismatchError, L as LIVE_KEY_PREFIX, j as ListPayeesQuery, k as ListPayeesResult, l as ListPayoutsQuery, m as ListPayoutsResult, P as PRODUCTION_BASE_URL, n as PayableBlocker, o as Payee, p as PayeeInvite, q as PayeeStatus, s as PayeeStatusChangedData, t as Payout, u as PayoutStatus, w as PayoutStatusChangedData, x as PayoutsServer, y as PlatformCommercePurchasedData, z as PlatformCommerceRefundedData, B as PlatformCommerceServer, F as PlayerPhoneChangedData, G as PurchaseCompletedData, H as PurchaseEventData, R as RegisterPayeeInput, J as RegisterPayeeResult, M as RequestPayoutInput, N as RequestPayoutResult, O as ReturnReasonCode, S as SANDBOX_BASE_URL, Q as SandboxServer, U as SandboxSubscriptionsServer, V as SubscriptionAuthenticationRequiredData, W as SubscriptionCanceledData, X as SubscriptionEventCommon, Y as SubscriptionExpiredData, Z as SubscriptionPastDueData, _ as SubscriptionPaymentFailedData, $ as SubscriptionRefundApprovedData, a0 as SubscriptionRefundDetail, a1 as SubscriptionRefundRejectedData, a2 as SubscriptionRefundRequestData, a3 as SubscriptionRefundedData, a4 as SubscriptionRenewalFunding, a5 as SubscriptionRenewalSplit, a6 as SubscriptionRenewedData, a7 as SubscriptionRevenueShareAttribution, a8 as SubscriptionTrialEventFields, a9 as SubscriptionsServer, T as TEST_KEY_PREFIX, aa as TransferEventData, ab as VerifyWebhookOptions, ac as WebhookHandlerOptions, b as baseUrlForKey, ad as createWebhookHandler, e as environmentForBaseUrl, c as environmentFromKeyPrefix, ae as isAppleCreditPending, i as isDemoKey, r as resolveEnvironment, af as shouldFinishAppleTransaction, ag as verifyWebhook, ah as verifyWebhookAsync } from './server-CaaP-Nc3.js';
|
|
4
|
+
export { S as SDK_VERSION } from './version-D_cJUvMp.js';
|
package/dist/server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { APPLE_FINISH_ERROR_CODES, CardsServer, DEMO_KEY_PREFIX, EnvironmentUnknownError, InvoServer, KeyEnvironmentMismatchError, LIVE_KEY_PREFIX, PRODUCTION_BASE_URL, PayoutsServer, PlatformCommerceServer, SANDBOX_BASE_URL, SandboxServer, SandboxSubscriptionsServer, SubscriptionsServer, TEST_KEY_PREFIX, baseUrlForKey, createWebhookHandler, environmentForBaseUrl, environmentFromKeyPrefix, isAppleCreditPending, isDemoKey, isRefundPendingApproval, resolveEnvironment, shouldFinishAppleTransaction, verifyWebhook, verifyWebhookAsync } from './chunk-
|
|
2
|
-
export { SDK_VERSION } from './chunk-
|
|
3
|
-
export { InvoError } from './chunk-
|
|
1
|
+
export { APPLE_FINISH_ERROR_CODES, CardsServer, DEMO_KEY_PREFIX, EnvironmentUnknownError, InvoServer, KeyEnvironmentMismatchError, LIVE_KEY_PREFIX, PRODUCTION_BASE_URL, PayoutsServer, PlatformCommerceServer, SANDBOX_BASE_URL, SandboxServer, SandboxSubscriptionsServer, SubscriptionsServer, TEST_KEY_PREFIX, baseUrlForKey, createWebhookHandler, environmentForBaseUrl, environmentFromKeyPrefix, isAppleCreditPending, isDemoKey, isRefundPendingApproval, resolveEnvironment, shouldFinishAppleTransaction, verifyWebhook, verifyWebhookAsync } from './chunk-NS33T5FB.js';
|
|
2
|
+
export { SDK_VERSION } from './chunk-MOHWLDOQ.js';
|
|
3
|
+
export { InvoError } from './chunk-7B7MFAQ3.js';
|
|
4
4
|
//# sourceMappingURL=server.js.map
|
|
5
5
|
//# sourceMappingURL=server.js.map
|
|
@@ -91,7 +91,11 @@ declare class InvoError extends Error {
|
|
|
91
91
|
* - registration/token-mint (phone already on another INVO account), and
|
|
92
92
|
* - **claim + confirm-receipt** (`claimTransfer`/`claimCurrency`,
|
|
93
93
|
* `confirmReceiptSend`/`confirmReceiptTransfer`) — the receiver phone is contested,
|
|
94
|
-
* so INVO holds the money and
|
|
94
|
+
* so INVO holds the money and asks the phone owner to approve.
|
|
95
|
+
*
|
|
96
|
+
* Either way the 409 has already created an approval request and contacted the phone's
|
|
97
|
+
* existing owner: by email when INVO has verified their address, otherwise by a text code
|
|
98
|
+
* (the body's `consent_channel` says which).
|
|
95
99
|
*
|
|
96
100
|
* NOT a failure. Show `err.message` verbatim (the backend supplies the user-facing text;
|
|
97
101
|
* `phoneShareLast4` tells the UI which phone), keep the funds pending, and **retry the same
|
|
@@ -103,7 +107,8 @@ declare class InvoError extends Error {
|
|
|
103
107
|
get isPhoneShareApprovalRequired(): boolean;
|
|
104
108
|
/** The `approval_id` from a phone-share 409 body, for `phoneShareApprove`. */
|
|
105
109
|
get phoneShareApprovalId(): string | undefined;
|
|
106
|
-
/** Last 4 digits of the phone that must approve (`phone_last4
|
|
110
|
+
/** Last 4 digits of the phone that must approve (`phone_last4`, a string such as `"4567"`),
|
|
111
|
+
* for the UI message. `undefined` when the body has none (an older server). */
|
|
107
112
|
get phoneShareLast4(): string | undefined;
|
|
108
113
|
/**
|
|
109
114
|
* True if a transfer/send initiate was blocked because it would move more than the player's
|
|
@@ -428,6 +433,20 @@ declare class InvoError extends Error {
|
|
|
428
433
|
get isTaxPlaceUnavailable(): boolean;
|
|
429
434
|
/** On `TAX_PLACE_UNAVAILABLE`: the total without tax (`untaxed_total_usd`), decimal string. */
|
|
430
435
|
get untaxedTotalUsd(): string | undefined;
|
|
436
|
+
/**
|
|
437
|
+
* Additive (3.38.0). True when a Merchant of Record card sale was refused because the buyer is in
|
|
438
|
+
* a country where INVO does not yet sell as Merchant of Record (`SALE_NOT_AVAILABLE_IN_COUNTRY`,
|
|
439
|
+
* 409; today the EU member states until January 1, 2027). NOTHING WAS CHARGED. The body carries
|
|
440
|
+
* `retryable: false`: do not retry, and do not ask for another card (the refusal follows where
|
|
441
|
+
* the buyer is). Show the message (`err.message`), for example "Purchases aren't available in
|
|
442
|
+
* your country yet. Nothing was charged." Returned by the quote, the purchase, hosted checkout
|
|
443
|
+
* and Platform Commerce card purchases. Branch on this, never on a country list.
|
|
444
|
+
* See https://docs.invo.network/docs/merchant-of-record-tax#sale-not-available
|
|
445
|
+
*/
|
|
446
|
+
get isSaleNotAvailableInCountry(): boolean;
|
|
447
|
+
/** On `SALE_NOT_AVAILABLE_IN_COUNTRY`: the buyer's country, ISO 3166-1 alpha-2 (`country`), or
|
|
448
|
+
* `undefined` when INVO did not know it. */
|
|
449
|
+
get unavailableCountry(): string | undefined;
|
|
431
450
|
/**
|
|
432
451
|
* True if a Platform Commerce refund targeted an order that was already refunded
|
|
433
452
|
* (409). Idempotent outcome — the original refund did happen, so treat this as
|
|
@@ -805,7 +824,10 @@ declare class InvoError extends Error {
|
|
|
805
824
|
/**
|
|
806
825
|
* True when the phone you supplied belongs to another email
|
|
807
826
|
* (`PHONE_SHARE_APPROVAL_REQUIRED`, 409) on `mintPlayerToken`, `registerPlayer` or
|
|
808
|
-
* `updatePlayerPhone`.
|
|
827
|
+
* `updatePlayerPhone`. The phone may be held by a player in any game or by an INVO wallet
|
|
828
|
+
* (including one created in the INVO app). No player was created or changed, but INVO has
|
|
829
|
+
* created an approval request and asked the phone's owner to approve; retry the same call
|
|
830
|
+
* once they have and it succeeds. The same condition as
|
|
809
831
|
* {@link isPhoneShareApprovalRequired}, named for these registration calls.
|
|
810
832
|
*/
|
|
811
833
|
get isPhoneShareRefused(): boolean;
|
|
@@ -1131,8 +1153,10 @@ interface RegisterPlayerInput {
|
|
|
1131
1153
|
}
|
|
1132
1154
|
/** Result of `InvoServer.registerPlayer`. */
|
|
1133
1155
|
interface RegisterPlayerResult {
|
|
1134
|
-
/** `"created"` (HTTP 201
|
|
1156
|
+
/** `"created"` (HTTP 201, new to your game; it may have joined the person's existing INVO
|
|
1157
|
+
* wallet) or `"exists"` (HTTP 200, already in your game with that phone). */
|
|
1135
1158
|
status: "created" | "exists";
|
|
1159
|
+
/** Derived from the email and phone, so the same `identity_id` other games see for them. */
|
|
1136
1160
|
identityId: string;
|
|
1137
1161
|
/** A player token for this player, when INVO can issue one for your game. */
|
|
1138
1162
|
playerToken?: string;
|
|
@@ -1514,6 +1538,29 @@ interface PurchaseResult {
|
|
|
1514
1538
|
* `receiptNumber` is.
|
|
1515
1539
|
*/
|
|
1516
1540
|
receiptUrl?: string;
|
|
1541
|
+
/**
|
|
1542
|
+
* Additive (3.38.0), Merchant of Record only, and ONLY on a sale whose price INCLUDES the tax
|
|
1543
|
+
* (outside the US): `true`. `chargeTotalUsd` is then the listed price the buyer paid, with the
|
|
1544
|
+
* tax inside it. `undefined` on every other purchase, which carries none of the tax fields
|
|
1545
|
+
* below. See https://docs.invo.network/docs/merchant-of-record-tax
|
|
1546
|
+
*/
|
|
1547
|
+
taxIncluded?: boolean;
|
|
1548
|
+
/** Additive (3.38.0), tax-inclusive sales only: the tax inside the price (what INVO remits),
|
|
1549
|
+
* for example `"1.67"` on $10.00 at 20%. Equal to {@link taxIncludedUsd}. */
|
|
1550
|
+
taxUsd?: string;
|
|
1551
|
+
/** Additive (3.38.0), tax-inclusive sales only: the tax inside the price. */
|
|
1552
|
+
taxIncludedUsd?: string;
|
|
1553
|
+
/** Additive (3.38.0), tax-inclusive sales only: `"inclusive"`. */
|
|
1554
|
+
taxPriceDisplay?: TaxPriceDisplay;
|
|
1555
|
+
/** Additive (3.38.0), tax-inclusive sales only: where the tax is owed, for example `"GB"`. */
|
|
1556
|
+
taxJurisdiction?: string | null;
|
|
1557
|
+
/** Additive (3.38.0), tax-inclusive sales only: the rate, a decimal string such as `"20"`
|
|
1558
|
+
* (compare as a number). */
|
|
1559
|
+
taxRatePct?: string | null;
|
|
1560
|
+
/** Additive (3.38.0), tax-inclusive sales only: `"VAT"`, `"GST"` or `"tax"`. */
|
|
1561
|
+
taxLabel?: string;
|
|
1562
|
+
/** Additive (3.38.0), tax-inclusive sales only: `"Includes VAT 20% ($1.67)"`, ready to show. */
|
|
1563
|
+
taxLine?: string;
|
|
1517
1564
|
raw: Record<string, unknown>;
|
|
1518
1565
|
}
|
|
1519
1566
|
/**
|
|
@@ -1583,8 +1630,35 @@ interface CurrencyPurchaseQuoteBreakdown {
|
|
|
1583
1630
|
totalUsd: string;
|
|
1584
1631
|
coins: string;
|
|
1585
1632
|
currencyName: string;
|
|
1633
|
+
/**
|
|
1634
|
+
* Additive (3.38.0), Merchant of Record only, and ONLY on a sale whose price INCLUDES the tax
|
|
1635
|
+
* (a registered place outside the US): `true`. The tax is then INSIDE {@link subtotalUsd} (the
|
|
1636
|
+
* listed price), nothing is added on top, and `totalUsd = subtotalUsd + processingFeeUsd`.
|
|
1637
|
+
* Never add `taxUsd` or `taxIncludedUsd` to the price: show `totalUsd`, then {@link taxLine}
|
|
1638
|
+
* beneath it. `undefined` on every other quote (Open, US tax added on top, a place whose
|
|
1639
|
+
* registration is pending, storefront rails). See https://docs.invo.network/docs/merchant-of-record-tax
|
|
1640
|
+
*/
|
|
1641
|
+
taxIncluded?: boolean;
|
|
1642
|
+
/** Additive (3.38.0), tax-inclusive sales only: the tax inside the price, for example `"1.67"` on
|
|
1643
|
+
* $10.00 at 20%. What INVO pays to the tax authority. `taxUsd` carries the same figure. */
|
|
1644
|
+
taxIncludedUsd?: string;
|
|
1645
|
+
/** Additive (3.38.0), tax-inclusive sales only: the tax ADDED on top, `"0.00"`. */
|
|
1646
|
+
taxAddedUsd?: string;
|
|
1647
|
+
/** Additive (3.38.0), tax-inclusive sales only: `"VAT"`, `"GST"` or `"tax"`. */
|
|
1648
|
+
taxLabel?: string;
|
|
1649
|
+
/** Additive (3.38.0), tax-inclusive sales only: the sentence to show the buyer, for example
|
|
1650
|
+
* `"Includes VAT 20% ($1.67)"`. */
|
|
1651
|
+
taxLine?: string;
|
|
1652
|
+
/** Additive (3.38.0), tax-inclusive sales only: `"inclusive"`. */
|
|
1653
|
+
taxPriceDisplay?: TaxPriceDisplay;
|
|
1586
1654
|
raw: Record<string, unknown>;
|
|
1587
1655
|
}
|
|
1656
|
+
/**
|
|
1657
|
+
* How the tax sits in the price on a Merchant of Record sale: `"inclusive"` (inside the listed
|
|
1658
|
+
* price, outside the US). Widened so a value a later backend adds still compiles; treat an
|
|
1659
|
+
* unknown value as informational.
|
|
1660
|
+
*/
|
|
1661
|
+
type TaxPriceDisplay = "inclusive" | "exclusive" | (string & {});
|
|
1588
1662
|
/**
|
|
1589
1663
|
* What an UNACKNOWLEDGED purchase of the same amount would do. On INVO's card rail the buyer
|
|
1590
1664
|
* pays no card fee either way, so this matches the acknowledged outcome apart from any tax.
|
|
@@ -2662,14 +2736,20 @@ interface PhoneShareApproveInput {
|
|
|
2662
2736
|
otp: string;
|
|
2663
2737
|
}
|
|
2664
2738
|
/** Result of `phoneShareApprove`. Known fields are surfaced; the rest stays on `raw`.
|
|
2665
|
-
* On success the
|
|
2666
|
-
*
|
|
2739
|
+
* On success the approval is stored server-side, permanently and network-wide (there is
|
|
2740
|
+
* no revoke), so the caller simply re-issues the identical original request.
|
|
2741
|
+
*
|
|
2742
|
+
* The server answers `{ status: "success", approved: true, approval_id, phone,
|
|
2743
|
+
* approved_email, approved_at, message }`; `phone`, `approved_email` and `approved_at`
|
|
2744
|
+
* are read from `raw`. Approving an already approved request returns the same body. */
|
|
2667
2745
|
interface PhoneShareApproveResult {
|
|
2746
|
+
/** `approval_id`. */
|
|
2668
2747
|
approvalId?: string;
|
|
2669
|
-
/** true
|
|
2748
|
+
/** `approved`: `true` on success. `undefined` from an older server that did not send it. */
|
|
2670
2749
|
approved?: boolean;
|
|
2671
|
-
/**
|
|
2750
|
+
/** Not sent by the approve endpoint (always `undefined` there); kept for compatibility. */
|
|
2672
2751
|
alreadyApproved?: boolean;
|
|
2752
|
+
/** Not sent by the approve endpoint (always `undefined` there); kept for compatibility. */
|
|
2673
2753
|
expiresAt?: string;
|
|
2674
2754
|
raw: Record<string, unknown>;
|
|
2675
2755
|
}
|
|
@@ -3987,4 +4067,4 @@ interface RewardsPageLink {
|
|
|
3987
4067
|
raw: Record<string, unknown>;
|
|
3988
4068
|
}
|
|
3989
4069
|
|
|
3990
|
-
export { type
|
|
4070
|
+
export { type TaxPriceDisplay as $, type ApproveResult as A, type BalanceResult as B, type CheckoutClientConfig as C, type DestinationGame as D, type EnrollmentBeginResult as E, type InvoHooks as F, type InvoRequestInfo as G, Http as H, InvoError as I, type InvoResponseInfo as J, type LoyaltyCard as K, type LinkDeviceResult as L, type MountCheckoutOptions as M, type LoyaltyCardReward as N, type LoyaltyCardStep as O, type PendingCollectItem as P, type LoyaltyRewardState as Q, type RedeemRewardResult as R, type LoyaltyStepProgress as S, type LoyaltyStepState as T, type LoyaltyVaultEntry as U, type PhoneChangeApproval as V, type WaitForPurchaseInput as W, type PhoneChangeDeviceSignal as X, type PurchaseRefusalReason as Y, type Rail as Z, type VerificationMethod as _, type PurchaseStatusResult as a, type SteamFinalizeResult as a$, type AuthHeader as a0, type ApplePurchaseResult as a1, type PlatformPurchaseInput as a2, type PlatformPurchaseResult as a3, type PlatformApprovalResult as a4, type PlatformOrderStatusResult as a5, type PlatformPurchaseHistoryQuery as a6, type PlatformPurchaseHistoryResult as a7, type PlatformRefundInput as a8, type PlatformRefundResult as a9, type SandboxForceAuthChallengeOptions as aA, type ServerConfig as aB, type MintPlayerTokenInput as aC, type PlayerToken as aD, type RegisterPlayerInput as aE, type RegisterPlayerResult as aF, type UpdatePlayerPhoneInput as aG, type UpdatePlayerPhoneResult as aH, type RequestPhoneChangeInput as aI, type RequestPhoneChangeResult as aJ, type PhoneChangeRequest as aK, type InitiateSendInput as aL, type InitiateResult as aM, type InitiateTransferInput as aN, type CreateCheckoutInput as aO, type CreateCheckoutResult as aP, type PurchaseInput as aQ, type PurchaseResult as aR, type CurrencyPurchaseQuoteInput as aS, type CurrencyPurchaseQuote as aT, type ConfirmPaymentResult as aU, type OrderDetailsResult as aV, type SteamPacksQuery as aW, type SteamPacksResult as aX, type SteamInitPurchaseInput as aY, type SteamInitPurchaseResult as aZ, type SteamFinalizeInput as a_, type CreateSubscriptionInput as aa, type SubscriptionResult as ab, type GetSubscriptionOptions as ac, type GetSubscriptionResult as ad, type ListSubscriptionsOptions as ae, type SubscriptionListResult as af, type CancelSubscriptionOptions as ag, type CancelResult as ah, type ChangeAmountResult as ai, type SetPaymentMethodInput as aj, type SetPaymentMethodResult as ak, type RefundSubscriptionInput as al, type RefundResult as am, type SteamSubscriptionInitInput as an, type SteamInitResult as ao, type SteamFinalizeSubscriptionResult as ap, type CardSetupSessionInput as aq, type CardSetupSessionResult as ar, type CardSetupInput as as, type CardSetupResult as at, type CardSetupConfirmInput as au, type CardSetupConfirmResult as av, type PlayerCardsResult as aw, type SandboxClockResult as ax, type SandboxFailureOutcome as ay, type SandboxForceFailureOptions as az, type PurchaseCredited as b, type PlayerActivityType as b$, type AppleProductsResult as b0, type VerifyApplePurchaseInput as b1, type PurchaseItemInput as b2, type PurchaseItemResult as b3, type ItemHistoryQuery as b4, type ItemHistoryResult as b5, type ItemOrderQuery as b6, type PlayerActivityQuery as b7, type PlayerActivityResult as b8, type PlayerActivityEntry as b9, type CompleteDeviceApprovalInput as bA, type CompleteDeviceApprovalResult as bB, type AppleEnvironment as bC, type AppleProduct as bD, type ApplePurchaseStatus as bE, type AppleUnavailableReason as bF, type CardSetupStatus as bG, type CheckoutWarning as bH, type CurrencyBalance as bI, type CurrencyPurchaseQuoteBreakdown as bJ, type DeviceApprovalChannel as bK, type DeviceApprovalEnrollment as bL, type DeviceApprovalFlow as bM, type DeviceApprovalPollStatus as bN, type DeviceEnrollmentDecision as bO, type DeviceEnrollmentRespond as bP, type ExpiryReason as bQ, type FeeTakenFrom as bR, type FirstCharge as bS, type FirstChargeStatus as bT, type FundingSource as bU, type InboundPendingItem as bV, type LinkedIdentityEmail as bW, type MinPurchaseWarning as bX, type PhoneChangeConfirmation as bY, type PhoneChangeRequestStatus as bZ, type PlatformPurchaseStatus as b_, type PlayerBalanceQuery as ba, type PlayerBalanceResult as bb, type InboundPendingQuery as bc, type InboundPendingResult as bd, type LinkedIdentitiesQuery as be, type LinkedIdentitiesResult as bf, type SmsVerifyResult as bg, type ClaimTransferInput as bh, type ClaimResult as bi, type ClaimCurrencyInput as bj, type TransactionStatusResult as bk, type GuardianApprovalStatusResult as bl, type ServerDestinationsQuery as bm, type PhoneShareContact as bn, type PhoneShareInitiateResult as bo, type PhoneShareApproveInput as bp, type PhoneShareApproveResult as bq, type PhoneShareStatusResult as br, type BeginDeviceApprovalInput as bs, type DeviceApprovalGrant as bt, type PollDeviceApprovalInput as bu, type DeviceApprovalPollResult as bv, type ConfirmDeviceEnrollmentInput as bw, type ConfirmDeviceEnrollmentResult as bx, type ApproveWithDeviceCodeInput as by, type DeviceApprovalSettleResult as bz, type PurchaseExpired as c, type RefundInitiation as c0, type RefundPendingApproval as c1, type RefundProcessingFeeBasis as c2, type RefundReceipt as c3, type RefundRevenueShareAttribution as c4, type RefundWarning as c5, type SandboxClockState as c6, type SavedCard as c7, type SteamPack as c8, type SteamUnavailableReason as c9, type SteamUserSession as ca, type Subscription as cb, type SubscriptionBaseInput as cc, type SubscriptionConsent as cd, type SubscriptionConsentInput as ce, type SubscriptionFundingRail as cf, type SubscriptionInterval as cg, type SubscriptionRevenueShare as ch, type SubscriptionRevenueShareInput as ci, type SubscriptionStatus as cj, type UnacknowledgedPurchaseOutcome as ck, isRefundPendingApproval as cl, type PurchaseRefunded as d, type PurchaseRefused as e, type PurchaseStatusInput as f, type CallOptions as g, type CheckoutMountHandle as h, type ClientConfig as i, type ConfirmReceiptResult as j, type PhoneChangeApprovalsResult as k, type ApprovePhoneChangeInput as l, type ApprovePhoneChangeResult as m, type PendingCollectResult as n, type DestinationsQuery as o, type DestinationsResult as p, type LoyaltyCardsResult as q, type LoyaltyVaultResult as r, type RewardsPageLink as s, type EnrollmentVerifyResult as t, type RecoveryBeginResult as u, type RecoveryCompleteResult as v, type BalanceRow as w, type CheckoutPurchaseStatus as x, type ClaimDelivery as y, type InvoErrorInfo as z };
|
|
@@ -91,7 +91,11 @@ declare class InvoError extends Error {
|
|
|
91
91
|
* - registration/token-mint (phone already on another INVO account), and
|
|
92
92
|
* - **claim + confirm-receipt** (`claimTransfer`/`claimCurrency`,
|
|
93
93
|
* `confirmReceiptSend`/`confirmReceiptTransfer`) — the receiver phone is contested,
|
|
94
|
-
* so INVO holds the money and
|
|
94
|
+
* so INVO holds the money and asks the phone owner to approve.
|
|
95
|
+
*
|
|
96
|
+
* Either way the 409 has already created an approval request and contacted the phone's
|
|
97
|
+
* existing owner: by email when INVO has verified their address, otherwise by a text code
|
|
98
|
+
* (the body's `consent_channel` says which).
|
|
95
99
|
*
|
|
96
100
|
* NOT a failure. Show `err.message` verbatim (the backend supplies the user-facing text;
|
|
97
101
|
* `phoneShareLast4` tells the UI which phone), keep the funds pending, and **retry the same
|
|
@@ -103,7 +107,8 @@ declare class InvoError extends Error {
|
|
|
103
107
|
get isPhoneShareApprovalRequired(): boolean;
|
|
104
108
|
/** The `approval_id` from a phone-share 409 body, for `phoneShareApprove`. */
|
|
105
109
|
get phoneShareApprovalId(): string | undefined;
|
|
106
|
-
/** Last 4 digits of the phone that must approve (`phone_last4
|
|
110
|
+
/** Last 4 digits of the phone that must approve (`phone_last4`, a string such as `"4567"`),
|
|
111
|
+
* for the UI message. `undefined` when the body has none (an older server). */
|
|
107
112
|
get phoneShareLast4(): string | undefined;
|
|
108
113
|
/**
|
|
109
114
|
* True if a transfer/send initiate was blocked because it would move more than the player's
|
|
@@ -428,6 +433,20 @@ declare class InvoError extends Error {
|
|
|
428
433
|
get isTaxPlaceUnavailable(): boolean;
|
|
429
434
|
/** On `TAX_PLACE_UNAVAILABLE`: the total without tax (`untaxed_total_usd`), decimal string. */
|
|
430
435
|
get untaxedTotalUsd(): string | undefined;
|
|
436
|
+
/**
|
|
437
|
+
* Additive (3.38.0). True when a Merchant of Record card sale was refused because the buyer is in
|
|
438
|
+
* a country where INVO does not yet sell as Merchant of Record (`SALE_NOT_AVAILABLE_IN_COUNTRY`,
|
|
439
|
+
* 409; today the EU member states until January 1, 2027). NOTHING WAS CHARGED. The body carries
|
|
440
|
+
* `retryable: false`: do not retry, and do not ask for another card (the refusal follows where
|
|
441
|
+
* the buyer is). Show the message (`err.message`), for example "Purchases aren't available in
|
|
442
|
+
* your country yet. Nothing was charged." Returned by the quote, the purchase, hosted checkout
|
|
443
|
+
* and Platform Commerce card purchases. Branch on this, never on a country list.
|
|
444
|
+
* See https://docs.invo.network/docs/merchant-of-record-tax#sale-not-available
|
|
445
|
+
*/
|
|
446
|
+
get isSaleNotAvailableInCountry(): boolean;
|
|
447
|
+
/** On `SALE_NOT_AVAILABLE_IN_COUNTRY`: the buyer's country, ISO 3166-1 alpha-2 (`country`), or
|
|
448
|
+
* `undefined` when INVO did not know it. */
|
|
449
|
+
get unavailableCountry(): string | undefined;
|
|
431
450
|
/**
|
|
432
451
|
* True if a Platform Commerce refund targeted an order that was already refunded
|
|
433
452
|
* (409). Idempotent outcome — the original refund did happen, so treat this as
|
|
@@ -805,7 +824,10 @@ declare class InvoError extends Error {
|
|
|
805
824
|
/**
|
|
806
825
|
* True when the phone you supplied belongs to another email
|
|
807
826
|
* (`PHONE_SHARE_APPROVAL_REQUIRED`, 409) on `mintPlayerToken`, `registerPlayer` or
|
|
808
|
-
* `updatePlayerPhone`.
|
|
827
|
+
* `updatePlayerPhone`. The phone may be held by a player in any game or by an INVO wallet
|
|
828
|
+
* (including one created in the INVO app). No player was created or changed, but INVO has
|
|
829
|
+
* created an approval request and asked the phone's owner to approve; retry the same call
|
|
830
|
+
* once they have and it succeeds. The same condition as
|
|
809
831
|
* {@link isPhoneShareApprovalRequired}, named for these registration calls.
|
|
810
832
|
*/
|
|
811
833
|
get isPhoneShareRefused(): boolean;
|
|
@@ -1131,8 +1153,10 @@ interface RegisterPlayerInput {
|
|
|
1131
1153
|
}
|
|
1132
1154
|
/** Result of `InvoServer.registerPlayer`. */
|
|
1133
1155
|
interface RegisterPlayerResult {
|
|
1134
|
-
/** `"created"` (HTTP 201
|
|
1156
|
+
/** `"created"` (HTTP 201, new to your game; it may have joined the person's existing INVO
|
|
1157
|
+
* wallet) or `"exists"` (HTTP 200, already in your game with that phone). */
|
|
1135
1158
|
status: "created" | "exists";
|
|
1159
|
+
/** Derived from the email and phone, so the same `identity_id` other games see for them. */
|
|
1136
1160
|
identityId: string;
|
|
1137
1161
|
/** A player token for this player, when INVO can issue one for your game. */
|
|
1138
1162
|
playerToken?: string;
|
|
@@ -1514,6 +1538,29 @@ interface PurchaseResult {
|
|
|
1514
1538
|
* `receiptNumber` is.
|
|
1515
1539
|
*/
|
|
1516
1540
|
receiptUrl?: string;
|
|
1541
|
+
/**
|
|
1542
|
+
* Additive (3.38.0), Merchant of Record only, and ONLY on a sale whose price INCLUDES the tax
|
|
1543
|
+
* (outside the US): `true`. `chargeTotalUsd` is then the listed price the buyer paid, with the
|
|
1544
|
+
* tax inside it. `undefined` on every other purchase, which carries none of the tax fields
|
|
1545
|
+
* below. See https://docs.invo.network/docs/merchant-of-record-tax
|
|
1546
|
+
*/
|
|
1547
|
+
taxIncluded?: boolean;
|
|
1548
|
+
/** Additive (3.38.0), tax-inclusive sales only: the tax inside the price (what INVO remits),
|
|
1549
|
+
* for example `"1.67"` on $10.00 at 20%. Equal to {@link taxIncludedUsd}. */
|
|
1550
|
+
taxUsd?: string;
|
|
1551
|
+
/** Additive (3.38.0), tax-inclusive sales only: the tax inside the price. */
|
|
1552
|
+
taxIncludedUsd?: string;
|
|
1553
|
+
/** Additive (3.38.0), tax-inclusive sales only: `"inclusive"`. */
|
|
1554
|
+
taxPriceDisplay?: TaxPriceDisplay;
|
|
1555
|
+
/** Additive (3.38.0), tax-inclusive sales only: where the tax is owed, for example `"GB"`. */
|
|
1556
|
+
taxJurisdiction?: string | null;
|
|
1557
|
+
/** Additive (3.38.0), tax-inclusive sales only: the rate, a decimal string such as `"20"`
|
|
1558
|
+
* (compare as a number). */
|
|
1559
|
+
taxRatePct?: string | null;
|
|
1560
|
+
/** Additive (3.38.0), tax-inclusive sales only: `"VAT"`, `"GST"` or `"tax"`. */
|
|
1561
|
+
taxLabel?: string;
|
|
1562
|
+
/** Additive (3.38.0), tax-inclusive sales only: `"Includes VAT 20% ($1.67)"`, ready to show. */
|
|
1563
|
+
taxLine?: string;
|
|
1517
1564
|
raw: Record<string, unknown>;
|
|
1518
1565
|
}
|
|
1519
1566
|
/**
|
|
@@ -1583,8 +1630,35 @@ interface CurrencyPurchaseQuoteBreakdown {
|
|
|
1583
1630
|
totalUsd: string;
|
|
1584
1631
|
coins: string;
|
|
1585
1632
|
currencyName: string;
|
|
1633
|
+
/**
|
|
1634
|
+
* Additive (3.38.0), Merchant of Record only, and ONLY on a sale whose price INCLUDES the tax
|
|
1635
|
+
* (a registered place outside the US): `true`. The tax is then INSIDE {@link subtotalUsd} (the
|
|
1636
|
+
* listed price), nothing is added on top, and `totalUsd = subtotalUsd + processingFeeUsd`.
|
|
1637
|
+
* Never add `taxUsd` or `taxIncludedUsd` to the price: show `totalUsd`, then {@link taxLine}
|
|
1638
|
+
* beneath it. `undefined` on every other quote (Open, US tax added on top, a place whose
|
|
1639
|
+
* registration is pending, storefront rails). See https://docs.invo.network/docs/merchant-of-record-tax
|
|
1640
|
+
*/
|
|
1641
|
+
taxIncluded?: boolean;
|
|
1642
|
+
/** Additive (3.38.0), tax-inclusive sales only: the tax inside the price, for example `"1.67"` on
|
|
1643
|
+
* $10.00 at 20%. What INVO pays to the tax authority. `taxUsd` carries the same figure. */
|
|
1644
|
+
taxIncludedUsd?: string;
|
|
1645
|
+
/** Additive (3.38.0), tax-inclusive sales only: the tax ADDED on top, `"0.00"`. */
|
|
1646
|
+
taxAddedUsd?: string;
|
|
1647
|
+
/** Additive (3.38.0), tax-inclusive sales only: `"VAT"`, `"GST"` or `"tax"`. */
|
|
1648
|
+
taxLabel?: string;
|
|
1649
|
+
/** Additive (3.38.0), tax-inclusive sales only: the sentence to show the buyer, for example
|
|
1650
|
+
* `"Includes VAT 20% ($1.67)"`. */
|
|
1651
|
+
taxLine?: string;
|
|
1652
|
+
/** Additive (3.38.0), tax-inclusive sales only: `"inclusive"`. */
|
|
1653
|
+
taxPriceDisplay?: TaxPriceDisplay;
|
|
1586
1654
|
raw: Record<string, unknown>;
|
|
1587
1655
|
}
|
|
1656
|
+
/**
|
|
1657
|
+
* How the tax sits in the price on a Merchant of Record sale: `"inclusive"` (inside the listed
|
|
1658
|
+
* price, outside the US). Widened so a value a later backend adds still compiles; treat an
|
|
1659
|
+
* unknown value as informational.
|
|
1660
|
+
*/
|
|
1661
|
+
type TaxPriceDisplay = "inclusive" | "exclusive" | (string & {});
|
|
1588
1662
|
/**
|
|
1589
1663
|
* What an UNACKNOWLEDGED purchase of the same amount would do. On INVO's card rail the buyer
|
|
1590
1664
|
* pays no card fee either way, so this matches the acknowledged outcome apart from any tax.
|
|
@@ -2662,14 +2736,20 @@ interface PhoneShareApproveInput {
|
|
|
2662
2736
|
otp: string;
|
|
2663
2737
|
}
|
|
2664
2738
|
/** Result of `phoneShareApprove`. Known fields are surfaced; the rest stays on `raw`.
|
|
2665
|
-
* On success the
|
|
2666
|
-
*
|
|
2739
|
+
* On success the approval is stored server-side, permanently and network-wide (there is
|
|
2740
|
+
* no revoke), so the caller simply re-issues the identical original request.
|
|
2741
|
+
*
|
|
2742
|
+
* The server answers `{ status: "success", approved: true, approval_id, phone,
|
|
2743
|
+
* approved_email, approved_at, message }`; `phone`, `approved_email` and `approved_at`
|
|
2744
|
+
* are read from `raw`. Approving an already approved request returns the same body. */
|
|
2667
2745
|
interface PhoneShareApproveResult {
|
|
2746
|
+
/** `approval_id`. */
|
|
2668
2747
|
approvalId?: string;
|
|
2669
|
-
/** true
|
|
2748
|
+
/** `approved`: `true` on success. `undefined` from an older server that did not send it. */
|
|
2670
2749
|
approved?: boolean;
|
|
2671
|
-
/**
|
|
2750
|
+
/** Not sent by the approve endpoint (always `undefined` there); kept for compatibility. */
|
|
2672
2751
|
alreadyApproved?: boolean;
|
|
2752
|
+
/** Not sent by the approve endpoint (always `undefined` there); kept for compatibility. */
|
|
2673
2753
|
expiresAt?: string;
|
|
2674
2754
|
raw: Record<string, unknown>;
|
|
2675
2755
|
}
|
|
@@ -3987,4 +4067,4 @@ interface RewardsPageLink {
|
|
|
3987
4067
|
raw: Record<string, unknown>;
|
|
3988
4068
|
}
|
|
3989
4069
|
|
|
3990
|
-
export { type
|
|
4070
|
+
export { type TaxPriceDisplay as $, type ApproveResult as A, type BalanceResult as B, type CheckoutClientConfig as C, type DestinationGame as D, type EnrollmentBeginResult as E, type InvoHooks as F, type InvoRequestInfo as G, Http as H, InvoError as I, type InvoResponseInfo as J, type LoyaltyCard as K, type LinkDeviceResult as L, type MountCheckoutOptions as M, type LoyaltyCardReward as N, type LoyaltyCardStep as O, type PendingCollectItem as P, type LoyaltyRewardState as Q, type RedeemRewardResult as R, type LoyaltyStepProgress as S, type LoyaltyStepState as T, type LoyaltyVaultEntry as U, type PhoneChangeApproval as V, type WaitForPurchaseInput as W, type PhoneChangeDeviceSignal as X, type PurchaseRefusalReason as Y, type Rail as Z, type VerificationMethod as _, type PurchaseStatusResult as a, type SteamFinalizeResult as a$, type AuthHeader as a0, type ApplePurchaseResult as a1, type PlatformPurchaseInput as a2, type PlatformPurchaseResult as a3, type PlatformApprovalResult as a4, type PlatformOrderStatusResult as a5, type PlatformPurchaseHistoryQuery as a6, type PlatformPurchaseHistoryResult as a7, type PlatformRefundInput as a8, type PlatformRefundResult as a9, type SandboxForceAuthChallengeOptions as aA, type ServerConfig as aB, type MintPlayerTokenInput as aC, type PlayerToken as aD, type RegisterPlayerInput as aE, type RegisterPlayerResult as aF, type UpdatePlayerPhoneInput as aG, type UpdatePlayerPhoneResult as aH, type RequestPhoneChangeInput as aI, type RequestPhoneChangeResult as aJ, type PhoneChangeRequest as aK, type InitiateSendInput as aL, type InitiateResult as aM, type InitiateTransferInput as aN, type CreateCheckoutInput as aO, type CreateCheckoutResult as aP, type PurchaseInput as aQ, type PurchaseResult as aR, type CurrencyPurchaseQuoteInput as aS, type CurrencyPurchaseQuote as aT, type ConfirmPaymentResult as aU, type OrderDetailsResult as aV, type SteamPacksQuery as aW, type SteamPacksResult as aX, type SteamInitPurchaseInput as aY, type SteamInitPurchaseResult as aZ, type SteamFinalizeInput as a_, type CreateSubscriptionInput as aa, type SubscriptionResult as ab, type GetSubscriptionOptions as ac, type GetSubscriptionResult as ad, type ListSubscriptionsOptions as ae, type SubscriptionListResult as af, type CancelSubscriptionOptions as ag, type CancelResult as ah, type ChangeAmountResult as ai, type SetPaymentMethodInput as aj, type SetPaymentMethodResult as ak, type RefundSubscriptionInput as al, type RefundResult as am, type SteamSubscriptionInitInput as an, type SteamInitResult as ao, type SteamFinalizeSubscriptionResult as ap, type CardSetupSessionInput as aq, type CardSetupSessionResult as ar, type CardSetupInput as as, type CardSetupResult as at, type CardSetupConfirmInput as au, type CardSetupConfirmResult as av, type PlayerCardsResult as aw, type SandboxClockResult as ax, type SandboxFailureOutcome as ay, type SandboxForceFailureOptions as az, type PurchaseCredited as b, type PlayerActivityType as b$, type AppleProductsResult as b0, type VerifyApplePurchaseInput as b1, type PurchaseItemInput as b2, type PurchaseItemResult as b3, type ItemHistoryQuery as b4, type ItemHistoryResult as b5, type ItemOrderQuery as b6, type PlayerActivityQuery as b7, type PlayerActivityResult as b8, type PlayerActivityEntry as b9, type CompleteDeviceApprovalInput as bA, type CompleteDeviceApprovalResult as bB, type AppleEnvironment as bC, type AppleProduct as bD, type ApplePurchaseStatus as bE, type AppleUnavailableReason as bF, type CardSetupStatus as bG, type CheckoutWarning as bH, type CurrencyBalance as bI, type CurrencyPurchaseQuoteBreakdown as bJ, type DeviceApprovalChannel as bK, type DeviceApprovalEnrollment as bL, type DeviceApprovalFlow as bM, type DeviceApprovalPollStatus as bN, type DeviceEnrollmentDecision as bO, type DeviceEnrollmentRespond as bP, type ExpiryReason as bQ, type FeeTakenFrom as bR, type FirstCharge as bS, type FirstChargeStatus as bT, type FundingSource as bU, type InboundPendingItem as bV, type LinkedIdentityEmail as bW, type MinPurchaseWarning as bX, type PhoneChangeConfirmation as bY, type PhoneChangeRequestStatus as bZ, type PlatformPurchaseStatus as b_, type PlayerBalanceQuery as ba, type PlayerBalanceResult as bb, type InboundPendingQuery as bc, type InboundPendingResult as bd, type LinkedIdentitiesQuery as be, type LinkedIdentitiesResult as bf, type SmsVerifyResult as bg, type ClaimTransferInput as bh, type ClaimResult as bi, type ClaimCurrencyInput as bj, type TransactionStatusResult as bk, type GuardianApprovalStatusResult as bl, type ServerDestinationsQuery as bm, type PhoneShareContact as bn, type PhoneShareInitiateResult as bo, type PhoneShareApproveInput as bp, type PhoneShareApproveResult as bq, type PhoneShareStatusResult as br, type BeginDeviceApprovalInput as bs, type DeviceApprovalGrant as bt, type PollDeviceApprovalInput as bu, type DeviceApprovalPollResult as bv, type ConfirmDeviceEnrollmentInput as bw, type ConfirmDeviceEnrollmentResult as bx, type ApproveWithDeviceCodeInput as by, type DeviceApprovalSettleResult as bz, type PurchaseExpired as c, type RefundInitiation as c0, type RefundPendingApproval as c1, type RefundProcessingFeeBasis as c2, type RefundReceipt as c3, type RefundRevenueShareAttribution as c4, type RefundWarning as c5, type SandboxClockState as c6, type SavedCard as c7, type SteamPack as c8, type SteamUnavailableReason as c9, type SteamUserSession as ca, type Subscription as cb, type SubscriptionBaseInput as cc, type SubscriptionConsent as cd, type SubscriptionConsentInput as ce, type SubscriptionFundingRail as cf, type SubscriptionInterval as cg, type SubscriptionRevenueShare as ch, type SubscriptionRevenueShareInput as ci, type SubscriptionStatus as cj, type UnacknowledgedPurchaseOutcome as ck, isRefundPendingApproval as cl, type PurchaseRefunded as d, type PurchaseRefused as e, type PurchaseStatusInput as f, type CallOptions as g, type CheckoutMountHandle as h, type ClientConfig as i, type ConfirmReceiptResult as j, type PhoneChangeApprovalsResult as k, type ApprovePhoneChangeInput as l, type ApprovePhoneChangeResult as m, type PendingCollectResult as n, type DestinationsQuery as o, type DestinationsResult as p, type LoyaltyCardsResult as q, type LoyaltyVaultResult as r, type RewardsPageLink as s, type EnrollmentVerifyResult as t, type RecoveryBeginResult as u, type RecoveryCompleteResult as v, type BalanceRow as w, type CheckoutPurchaseStatus as x, type ClaimDelivery as y, type InvoErrorInfo as z };
|