@invonetwork/web-sdk 3.37.1 → 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 +13 -0
- package/README.md +14 -2
- package/dist/{chunk-QD5G355J.js → chunk-3HK32FE4.js} +3 -3
- package/dist/{chunk-I4GDKZFL.js → chunk-7B7MFAQ3.js} +22 -2
- package/dist/chunk-MOHWLDOQ.js +6 -0
- package/dist/{chunk-YFNQKYUI.js → chunk-NS33T5FB.js} +46 -5
- package/dist/game-server.cjs +70 -9
- 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 +21 -1
- package/dist/game.d.cts +3 -3
- package/dist/game.d.ts +3 -3
- package/dist/game.js +3 -3
- package/dist/{hosted-approval-CxWyQOfU.d.cts → hosted-approval-B-kbdFDL.d.cts} +1 -1
- package/dist/{hosted-approval-D-CGX-LO.d.ts → hosted-approval-CtAZ1Rzt.d.ts} +1 -1
- package/dist/index.cjs +20 -0
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/{server-BuByP1JU.d.cts → server-BWGl9v5j.d.cts} +75 -3
- package/dist/{server-DzczMA-z.d.ts → server-CaaP-Nc3.d.ts} +75 -3
- package/dist/server.cjs +70 -9
- package/dist/server.d.cts +3 -3
- package/dist/server.d.ts +3 -3
- package/dist/server.js +3 -3
- package/dist/{types-IRNjMV47.d.cts → types-DGgWWX1v.d.cts} +65 -1
- package/dist/{types-IRNjMV47.d.ts → types-DGgWWX1v.d.ts} +65 -1
- package/dist/{version-BIHJFKuj.d.cts → version-D_cJUvMp.d.cts} +1 -1
- package/dist/{version-BIHJFKuj.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-OYJUX2TH.js +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as InvoError, H as Http,
|
|
1
|
+
import { $ as TaxPriceDisplay, I as InvoError, H as Http, a0 as AuthHeader, g as CallOptions, a1 as ApplePurchaseResult, a2 as PlatformPurchaseInput, a3 as PlatformPurchaseResult, a4 as PlatformApprovalResult, a5 as PlatformOrderStatusResult, a6 as PlatformPurchaseHistoryQuery, a7 as PlatformPurchaseHistoryResult, a8 as PlatformRefundInput, a9 as PlatformRefundResult, aa as CreateSubscriptionInput, ab as SubscriptionResult, ac as GetSubscriptionOptions, ad as GetSubscriptionResult, ae as ListSubscriptionsOptions, af as SubscriptionListResult, ag as CancelSubscriptionOptions, ah as CancelResult, ai as ChangeAmountResult, aj as SetPaymentMethodInput, ak as SetPaymentMethodResult, al as RefundSubscriptionInput, am as RefundResult, an as SteamSubscriptionInitInput, ao as SteamInitResult, ap as SteamFinalizeSubscriptionResult, aq as CardSetupSessionInput, ar as CardSetupSessionResult, as as CardSetupInput, at as CardSetupResult, au as CardSetupConfirmInput, av as CardSetupConfirmResult, aw as PlayerCardsResult, ax as SandboxClockResult, ay as SandboxFailureOutcome, az as SandboxForceFailureOptions, aA as SandboxForceAuthChallengeOptions, aB as ServerConfig, aC as MintPlayerTokenInput, aD as PlayerToken, aE as RegisterPlayerInput, aF as RegisterPlayerResult, aG as UpdatePlayerPhoneInput, aH as UpdatePlayerPhoneResult, aI as RequestPhoneChangeInput, aJ as RequestPhoneChangeResult, aK as PhoneChangeRequest, aL as InitiateSendInput, aM as InitiateResult, aN as InitiateTransferInput, aO as CreateCheckoutInput, aP as CreateCheckoutResult, a as PurchaseStatusResult, aQ as PurchaseInput, aR as PurchaseResult, aS as CurrencyPurchaseQuoteInput, aT as CurrencyPurchaseQuote, aU as ConfirmPaymentResult, aV as OrderDetailsResult, aW as SteamPacksQuery, aX as SteamPacksResult, aY as SteamInitPurchaseInput, aZ as SteamInitPurchaseResult, a_ as SteamFinalizeInput, a$ as SteamFinalizeResult, b0 as AppleProductsResult, b1 as VerifyApplePurchaseInput, b2 as PurchaseItemInput, b3 as PurchaseItemResult, b4 as ItemHistoryQuery, b5 as ItemHistoryResult, b6 as ItemOrderQuery, b7 as PlayerActivityQuery, b8 as PlayerActivityResult, b9 as PlayerActivityEntry, ba as PlayerBalanceQuery, bb as PlayerBalanceResult, q as LoyaltyCardsResult, bc as InboundPendingQuery, bd as InboundPendingResult, be as LinkedIdentitiesQuery, bf as LinkedIdentitiesResult, bg as SmsVerifyResult, bh as ClaimTransferInput, bi as ClaimResult, bj as ClaimCurrencyInput, bk as TransactionStatusResult, bl as GuardianApprovalStatusResult, bm as ServerDestinationsQuery, p as DestinationsResult, bn as PhoneShareContact, bo as PhoneShareInitiateResult, bp as PhoneShareApproveInput, bq as PhoneShareApproveResult, br as PhoneShareStatusResult, bs as BeginDeviceApprovalInput, bt as DeviceApprovalGrant, bu as PollDeviceApprovalInput, bv as DeviceApprovalPollResult, bw as ConfirmDeviceEnrollmentInput, bx as ConfirmDeviceEnrollmentResult, by as ApproveWithDeviceCodeInput, bz as DeviceApprovalSettleResult, bA as CompleteDeviceApprovalInput, bB as CompleteDeviceApprovalResult } from './types-DGgWWX1v.cjs';
|
|
2
2
|
import { b as ReportServerGameEventInput, a as ReportGameEventResult } from './loyalty-events-CmDw2ZoR.cjs';
|
|
3
|
-
import './version-
|
|
3
|
+
import './version-D_cJUvMp.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Pick the INVO environment from the game secret alone (3.28.0).
|
|
@@ -169,6 +169,22 @@ interface PurchaseCompletedData {
|
|
|
169
169
|
* Card purchases only; absent and `null` on the same terms as `partner_fee_usd`.
|
|
170
170
|
*/
|
|
171
171
|
international_card_fee_usd?: string | null;
|
|
172
|
+
/** What the card was charged, tax included, USD decimal string. */
|
|
173
|
+
charge_total_usd?: string | null;
|
|
174
|
+
/** `charge_total_usd` less the tax. On a tax-inclusive sale this is the NET price
|
|
175
|
+
* ($10.00 UK sale at 20%: `"8.33"`). */
|
|
176
|
+
subtotal_usd?: string | null;
|
|
177
|
+
/** The consumption tax INVO remits on this sale, USD decimal string (`"0.00"` when none). */
|
|
178
|
+
tax_usd?: string;
|
|
179
|
+
/** Where the tax is owed (for example `"GB"`, `"US-CA"`), or `null`. */
|
|
180
|
+
tax_jurisdiction?: string | null;
|
|
181
|
+
/** The rate applied, decimal string (compare as a number), or `null`. */
|
|
182
|
+
tax_rate_pct?: string | null;
|
|
183
|
+
/** Additive (3.38.0), Merchant of Record, tax-inclusive sales only: `"inclusive"` (the tax is
|
|
184
|
+
* INSIDE the price the buyer paid; nothing was added). Absent otherwise. See https://docs.invo.network/docs/merchant-of-record-tax */
|
|
185
|
+
tax_price_display?: TaxPriceDisplay;
|
|
186
|
+
/** Additive (3.38.0), tax-inclusive sales only: `true`. Absent otherwise. */
|
|
187
|
+
tax_included?: boolean;
|
|
172
188
|
/**
|
|
173
189
|
* Additive (3.35.0), Apple rail only (`rail: "apple"`, `channel: "ios"`): the verified App
|
|
174
190
|
* Store transaction. `usd_amount` is what the player paid in USD (exact on a USD storefront;
|
|
@@ -182,6 +198,15 @@ interface PurchaseEventData {
|
|
|
182
198
|
order_id?: string;
|
|
183
199
|
player_email?: string;
|
|
184
200
|
identity_id?: string;
|
|
201
|
+
/** On purchase.refunded: the tax returned to the buyer so far, USD decimal string. On a
|
|
202
|
+
* tax-inclusive sale it is the tax inside the refunded price. */
|
|
203
|
+
tax_refunded_usd?: string;
|
|
204
|
+
/** On purchase.refunded: where the tax was owed, or `null`. */
|
|
205
|
+
tax_jurisdiction?: string | null;
|
|
206
|
+
/** Additive (3.38.0), on purchase.refunded for a tax-inclusive sale only: `true`. */
|
|
207
|
+
tax_included?: boolean;
|
|
208
|
+
/** Additive (3.38.0), on purchase.refunded for a tax-inclusive sale only: `"inclusive"`. See https://docs.invo.network/docs/merchant-of-record-tax */
|
|
209
|
+
tax_price_display?: TaxPriceDisplay;
|
|
185
210
|
/** Present on purchase.disputed, e.g. "lost". */
|
|
186
211
|
dispute_status?: string;
|
|
187
212
|
/**
|
|
@@ -336,8 +361,24 @@ interface PlatformCommercePurchasedData {
|
|
|
336
361
|
* Since the 2026-09 pricing it also carries `international_card_fee_usd` (the part of
|
|
337
362
|
* `platform_fee` that is the international card fee, `"0.00"` on a US card and on the
|
|
338
363
|
* balance leg), so the card rate part is `platform_fee - international_card_fee_usd`.
|
|
364
|
+
* Additive (3.38.0), Merchant of Record: `tax_set_aside_usd` when the price contained tax (a
|
|
365
|
+
* tax-inclusive sale, or a place whose registration is pending): the tax taken out of the price
|
|
366
|
+
* before the fee and your share were worked out; `total_paid` is then the net. See https://docs.invo.network/docs/merchant-of-record-tax
|
|
339
367
|
*/
|
|
340
368
|
fee_breakdown?: Record<string, unknown>;
|
|
369
|
+
/** Card leg: the sale less any tax (on a tax-inclusive sale, the net price). */
|
|
370
|
+
item_price_usd?: string;
|
|
371
|
+
/** Card leg: the tax INVO remits on the sale (`"0.00"` when none). On a tax-inclusive sale,
|
|
372
|
+
* the tax inside `total_price_usd`. */
|
|
373
|
+
tax_usd?: string;
|
|
374
|
+
/** Card leg: where the tax is owed, or `null`. */
|
|
375
|
+
tax_jurisdiction?: string | null;
|
|
376
|
+
/** Additive (3.38.0), tax-inclusive card sales only: `"inclusive"`. */
|
|
377
|
+
tax_price_display?: TaxPriceDisplay;
|
|
378
|
+
/** Additive (3.38.0), tax-inclusive card sales only: `true`. */
|
|
379
|
+
tax_included?: boolean;
|
|
380
|
+
/** Additive (3.38.0), tax-inclusive card sales only: the rate, decimal string, or `null`. */
|
|
381
|
+
tax_rate_pct?: string | null;
|
|
341
382
|
/**
|
|
342
383
|
* Additive (2026-09 pricing). The international card fee on this sale, USD decimal string:
|
|
343
384
|
* 1.5% of the listed price (before tax) on a card issued outside the US, `"0.00"` otherwise
|
|
@@ -376,6 +417,15 @@ interface PlatformCommerceRefundedData {
|
|
|
376
417
|
receipt_number?: string;
|
|
377
418
|
/** Merchant of Record only: link to the printable refund receipt page. */
|
|
378
419
|
receipt_url?: string;
|
|
420
|
+
/** The tax returned to the buyer by this refund, USD decimal string (`"0.00"` on the balance
|
|
421
|
+
* leg). On a tax-inclusive sale, the tax inside the refunded price. */
|
|
422
|
+
tax_refunded_usd?: string;
|
|
423
|
+
/** Where the tax was owed, or `null`. */
|
|
424
|
+
tax_jurisdiction?: string | null;
|
|
425
|
+
/** Additive (3.38.0), tax-inclusive card sales only: `true`. */
|
|
426
|
+
tax_included?: boolean;
|
|
427
|
+
/** Additive (3.38.0), tax-inclusive card sales only: `"inclusive"`. */
|
|
428
|
+
tax_price_display?: TaxPriceDisplay;
|
|
379
429
|
/**
|
|
380
430
|
* Additive (2026-09 pricing), card refunds only: the part of INVO's card fee on this refund
|
|
381
431
|
* that stays charged to you, USD decimal string. The card fee is not returned on a refund.
|
|
@@ -597,6 +647,22 @@ interface SubscriptionRenewalFunding {
|
|
|
597
647
|
steam_charged_usd: string;
|
|
598
648
|
minted_coins: string;
|
|
599
649
|
new_balance: string;
|
|
650
|
+
/** Card rail: the tax ADDED on top of the price (US sales), USD decimal string. `"0.00"` on a
|
|
651
|
+
* tax-inclusive renewal, where the tax is inside the price instead. */
|
|
652
|
+
tax_usd?: string;
|
|
653
|
+
/** Card rail: what the card was authorised for (the price plus any tax added on top). */
|
|
654
|
+
card_authorised_usd?: string;
|
|
655
|
+
/** Card rail: where the tax is owed, or `null`. */
|
|
656
|
+
tax_jurisdiction?: string | null;
|
|
657
|
+
/** Additive (3.38.0), Merchant of Record tax-inclusive renewals only: the tax INSIDE
|
|
658
|
+
* `card_charged_usd`, for example `"1.67"` on $10.00 at 20%. See https://docs.invo.network/docs/merchant-of-record-tax */
|
|
659
|
+
tax_included_usd?: string;
|
|
660
|
+
/** Additive (3.38.0), tax-inclusive renewals only: `true`. */
|
|
661
|
+
tax_included?: boolean;
|
|
662
|
+
/** Additive (3.38.0), tax-inclusive renewals only: `"inclusive"`. */
|
|
663
|
+
tax_price_display?: TaxPriceDisplay;
|
|
664
|
+
/** Additive (3.38.0), tax-inclusive renewals only: the rate, decimal string, or `null`. */
|
|
665
|
+
tax_rate_pct?: string | null;
|
|
600
666
|
[key: string]: unknown;
|
|
601
667
|
}
|
|
602
668
|
/**
|
|
@@ -1952,8 +2018,14 @@ declare class InvoServer {
|
|
|
1952
2018
|
* accepted. Card purchases only; purchases through a third-party storefront or payment
|
|
1953
2019
|
* rail are unaffected.
|
|
1954
2020
|
*
|
|
2021
|
+
* Merchant of Record: in the US tax is added on top (`totalUsd` above the price); outside the
|
|
2022
|
+
* US the price includes the tax, and `breakdown.taxIncluded` is `true` with
|
|
2023
|
+
* `breakdown.taxLine` ("Includes VAT 20% ($1.67)") to show under `totalUsd`.
|
|
2024
|
+
*
|
|
1955
2025
|
* Refusals: `400 INVALID_INPUT` (amount missing, not above zero, or above INVO's card
|
|
1956
|
-
* maximum), `400 CURRENCY_NOT_CONFIGURED`, `503 RATE_UNAVAILABLE
|
|
2026
|
+
* maximum), `400 CURRENCY_NOT_CONFIGURED`, `503 RATE_UNAVAILABLE`, and on Merchant of Record
|
|
2027
|
+
* `409 SALE_NOT_AVAILABLE_IN_COUNTRY` (`err.isSaleNotAvailableInCountry`) for a buyer in a
|
|
2028
|
+
* country where INVO does not yet sell as Merchant of Record.
|
|
1957
2029
|
*/
|
|
1958
2030
|
quoteCurrencyPurchase(input: CurrencyPurchaseQuoteInput, opts?: CallOptions): Promise<CurrencyPurchaseQuote>;
|
|
1959
2031
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as InvoError, H as Http,
|
|
1
|
+
import { $ as TaxPriceDisplay, I as InvoError, H as Http, a0 as AuthHeader, g as CallOptions, a1 as ApplePurchaseResult, a2 as PlatformPurchaseInput, a3 as PlatformPurchaseResult, a4 as PlatformApprovalResult, a5 as PlatformOrderStatusResult, a6 as PlatformPurchaseHistoryQuery, a7 as PlatformPurchaseHistoryResult, a8 as PlatformRefundInput, a9 as PlatformRefundResult, aa as CreateSubscriptionInput, ab as SubscriptionResult, ac as GetSubscriptionOptions, ad as GetSubscriptionResult, ae as ListSubscriptionsOptions, af as SubscriptionListResult, ag as CancelSubscriptionOptions, ah as CancelResult, ai as ChangeAmountResult, aj as SetPaymentMethodInput, ak as SetPaymentMethodResult, al as RefundSubscriptionInput, am as RefundResult, an as SteamSubscriptionInitInput, ao as SteamInitResult, ap as SteamFinalizeSubscriptionResult, aq as CardSetupSessionInput, ar as CardSetupSessionResult, as as CardSetupInput, at as CardSetupResult, au as CardSetupConfirmInput, av as CardSetupConfirmResult, aw as PlayerCardsResult, ax as SandboxClockResult, ay as SandboxFailureOutcome, az as SandboxForceFailureOptions, aA as SandboxForceAuthChallengeOptions, aB as ServerConfig, aC as MintPlayerTokenInput, aD as PlayerToken, aE as RegisterPlayerInput, aF as RegisterPlayerResult, aG as UpdatePlayerPhoneInput, aH as UpdatePlayerPhoneResult, aI as RequestPhoneChangeInput, aJ as RequestPhoneChangeResult, aK as PhoneChangeRequest, aL as InitiateSendInput, aM as InitiateResult, aN as InitiateTransferInput, aO as CreateCheckoutInput, aP as CreateCheckoutResult, a as PurchaseStatusResult, aQ as PurchaseInput, aR as PurchaseResult, aS as CurrencyPurchaseQuoteInput, aT as CurrencyPurchaseQuote, aU as ConfirmPaymentResult, aV as OrderDetailsResult, aW as SteamPacksQuery, aX as SteamPacksResult, aY as SteamInitPurchaseInput, aZ as SteamInitPurchaseResult, a_ as SteamFinalizeInput, a$ as SteamFinalizeResult, b0 as AppleProductsResult, b1 as VerifyApplePurchaseInput, b2 as PurchaseItemInput, b3 as PurchaseItemResult, b4 as ItemHistoryQuery, b5 as ItemHistoryResult, b6 as ItemOrderQuery, b7 as PlayerActivityQuery, b8 as PlayerActivityResult, b9 as PlayerActivityEntry, ba as PlayerBalanceQuery, bb as PlayerBalanceResult, q as LoyaltyCardsResult, bc as InboundPendingQuery, bd as InboundPendingResult, be as LinkedIdentitiesQuery, bf as LinkedIdentitiesResult, bg as SmsVerifyResult, bh as ClaimTransferInput, bi as ClaimResult, bj as ClaimCurrencyInput, bk as TransactionStatusResult, bl as GuardianApprovalStatusResult, bm as ServerDestinationsQuery, p as DestinationsResult, bn as PhoneShareContact, bo as PhoneShareInitiateResult, bp as PhoneShareApproveInput, bq as PhoneShareApproveResult, br as PhoneShareStatusResult, bs as BeginDeviceApprovalInput, bt as DeviceApprovalGrant, bu as PollDeviceApprovalInput, bv as DeviceApprovalPollResult, bw as ConfirmDeviceEnrollmentInput, bx as ConfirmDeviceEnrollmentResult, by as ApproveWithDeviceCodeInput, bz as DeviceApprovalSettleResult, bA as CompleteDeviceApprovalInput, bB as CompleteDeviceApprovalResult } from './types-DGgWWX1v.js';
|
|
2
2
|
import { b as ReportServerGameEventInput, a as ReportGameEventResult } from './loyalty-events-CmDw2ZoR.js';
|
|
3
|
-
import './version-
|
|
3
|
+
import './version-D_cJUvMp.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Pick the INVO environment from the game secret alone (3.28.0).
|
|
@@ -169,6 +169,22 @@ interface PurchaseCompletedData {
|
|
|
169
169
|
* Card purchases only; absent and `null` on the same terms as `partner_fee_usd`.
|
|
170
170
|
*/
|
|
171
171
|
international_card_fee_usd?: string | null;
|
|
172
|
+
/** What the card was charged, tax included, USD decimal string. */
|
|
173
|
+
charge_total_usd?: string | null;
|
|
174
|
+
/** `charge_total_usd` less the tax. On a tax-inclusive sale this is the NET price
|
|
175
|
+
* ($10.00 UK sale at 20%: `"8.33"`). */
|
|
176
|
+
subtotal_usd?: string | null;
|
|
177
|
+
/** The consumption tax INVO remits on this sale, USD decimal string (`"0.00"` when none). */
|
|
178
|
+
tax_usd?: string;
|
|
179
|
+
/** Where the tax is owed (for example `"GB"`, `"US-CA"`), or `null`. */
|
|
180
|
+
tax_jurisdiction?: string | null;
|
|
181
|
+
/** The rate applied, decimal string (compare as a number), or `null`. */
|
|
182
|
+
tax_rate_pct?: string | null;
|
|
183
|
+
/** Additive (3.38.0), Merchant of Record, tax-inclusive sales only: `"inclusive"` (the tax is
|
|
184
|
+
* INSIDE the price the buyer paid; nothing was added). Absent otherwise. See https://docs.invo.network/docs/merchant-of-record-tax */
|
|
185
|
+
tax_price_display?: TaxPriceDisplay;
|
|
186
|
+
/** Additive (3.38.0), tax-inclusive sales only: `true`. Absent otherwise. */
|
|
187
|
+
tax_included?: boolean;
|
|
172
188
|
/**
|
|
173
189
|
* Additive (3.35.0), Apple rail only (`rail: "apple"`, `channel: "ios"`): the verified App
|
|
174
190
|
* Store transaction. `usd_amount` is what the player paid in USD (exact on a USD storefront;
|
|
@@ -182,6 +198,15 @@ interface PurchaseEventData {
|
|
|
182
198
|
order_id?: string;
|
|
183
199
|
player_email?: string;
|
|
184
200
|
identity_id?: string;
|
|
201
|
+
/** On purchase.refunded: the tax returned to the buyer so far, USD decimal string. On a
|
|
202
|
+
* tax-inclusive sale it is the tax inside the refunded price. */
|
|
203
|
+
tax_refunded_usd?: string;
|
|
204
|
+
/** On purchase.refunded: where the tax was owed, or `null`. */
|
|
205
|
+
tax_jurisdiction?: string | null;
|
|
206
|
+
/** Additive (3.38.0), on purchase.refunded for a tax-inclusive sale only: `true`. */
|
|
207
|
+
tax_included?: boolean;
|
|
208
|
+
/** Additive (3.38.0), on purchase.refunded for a tax-inclusive sale only: `"inclusive"`. See https://docs.invo.network/docs/merchant-of-record-tax */
|
|
209
|
+
tax_price_display?: TaxPriceDisplay;
|
|
185
210
|
/** Present on purchase.disputed, e.g. "lost". */
|
|
186
211
|
dispute_status?: string;
|
|
187
212
|
/**
|
|
@@ -336,8 +361,24 @@ interface PlatformCommercePurchasedData {
|
|
|
336
361
|
* Since the 2026-09 pricing it also carries `international_card_fee_usd` (the part of
|
|
337
362
|
* `platform_fee` that is the international card fee, `"0.00"` on a US card and on the
|
|
338
363
|
* balance leg), so the card rate part is `platform_fee - international_card_fee_usd`.
|
|
364
|
+
* Additive (3.38.0), Merchant of Record: `tax_set_aside_usd` when the price contained tax (a
|
|
365
|
+
* tax-inclusive sale, or a place whose registration is pending): the tax taken out of the price
|
|
366
|
+
* before the fee and your share were worked out; `total_paid` is then the net. See https://docs.invo.network/docs/merchant-of-record-tax
|
|
339
367
|
*/
|
|
340
368
|
fee_breakdown?: Record<string, unknown>;
|
|
369
|
+
/** Card leg: the sale less any tax (on a tax-inclusive sale, the net price). */
|
|
370
|
+
item_price_usd?: string;
|
|
371
|
+
/** Card leg: the tax INVO remits on the sale (`"0.00"` when none). On a tax-inclusive sale,
|
|
372
|
+
* the tax inside `total_price_usd`. */
|
|
373
|
+
tax_usd?: string;
|
|
374
|
+
/** Card leg: where the tax is owed, or `null`. */
|
|
375
|
+
tax_jurisdiction?: string | null;
|
|
376
|
+
/** Additive (3.38.0), tax-inclusive card sales only: `"inclusive"`. */
|
|
377
|
+
tax_price_display?: TaxPriceDisplay;
|
|
378
|
+
/** Additive (3.38.0), tax-inclusive card sales only: `true`. */
|
|
379
|
+
tax_included?: boolean;
|
|
380
|
+
/** Additive (3.38.0), tax-inclusive card sales only: the rate, decimal string, or `null`. */
|
|
381
|
+
tax_rate_pct?: string | null;
|
|
341
382
|
/**
|
|
342
383
|
* Additive (2026-09 pricing). The international card fee on this sale, USD decimal string:
|
|
343
384
|
* 1.5% of the listed price (before tax) on a card issued outside the US, `"0.00"` otherwise
|
|
@@ -376,6 +417,15 @@ interface PlatformCommerceRefundedData {
|
|
|
376
417
|
receipt_number?: string;
|
|
377
418
|
/** Merchant of Record only: link to the printable refund receipt page. */
|
|
378
419
|
receipt_url?: string;
|
|
420
|
+
/** The tax returned to the buyer by this refund, USD decimal string (`"0.00"` on the balance
|
|
421
|
+
* leg). On a tax-inclusive sale, the tax inside the refunded price. */
|
|
422
|
+
tax_refunded_usd?: string;
|
|
423
|
+
/** Where the tax was owed, or `null`. */
|
|
424
|
+
tax_jurisdiction?: string | null;
|
|
425
|
+
/** Additive (3.38.0), tax-inclusive card sales only: `true`. */
|
|
426
|
+
tax_included?: boolean;
|
|
427
|
+
/** Additive (3.38.0), tax-inclusive card sales only: `"inclusive"`. */
|
|
428
|
+
tax_price_display?: TaxPriceDisplay;
|
|
379
429
|
/**
|
|
380
430
|
* Additive (2026-09 pricing), card refunds only: the part of INVO's card fee on this refund
|
|
381
431
|
* that stays charged to you, USD decimal string. The card fee is not returned on a refund.
|
|
@@ -597,6 +647,22 @@ interface SubscriptionRenewalFunding {
|
|
|
597
647
|
steam_charged_usd: string;
|
|
598
648
|
minted_coins: string;
|
|
599
649
|
new_balance: string;
|
|
650
|
+
/** Card rail: the tax ADDED on top of the price (US sales), USD decimal string. `"0.00"` on a
|
|
651
|
+
* tax-inclusive renewal, where the tax is inside the price instead. */
|
|
652
|
+
tax_usd?: string;
|
|
653
|
+
/** Card rail: what the card was authorised for (the price plus any tax added on top). */
|
|
654
|
+
card_authorised_usd?: string;
|
|
655
|
+
/** Card rail: where the tax is owed, or `null`. */
|
|
656
|
+
tax_jurisdiction?: string | null;
|
|
657
|
+
/** Additive (3.38.0), Merchant of Record tax-inclusive renewals only: the tax INSIDE
|
|
658
|
+
* `card_charged_usd`, for example `"1.67"` on $10.00 at 20%. See https://docs.invo.network/docs/merchant-of-record-tax */
|
|
659
|
+
tax_included_usd?: string;
|
|
660
|
+
/** Additive (3.38.0), tax-inclusive renewals only: `true`. */
|
|
661
|
+
tax_included?: boolean;
|
|
662
|
+
/** Additive (3.38.0), tax-inclusive renewals only: `"inclusive"`. */
|
|
663
|
+
tax_price_display?: TaxPriceDisplay;
|
|
664
|
+
/** Additive (3.38.0), tax-inclusive renewals only: the rate, decimal string, or `null`. */
|
|
665
|
+
tax_rate_pct?: string | null;
|
|
600
666
|
[key: string]: unknown;
|
|
601
667
|
}
|
|
602
668
|
/**
|
|
@@ -1952,8 +2018,14 @@ declare class InvoServer {
|
|
|
1952
2018
|
* accepted. Card purchases only; purchases through a third-party storefront or payment
|
|
1953
2019
|
* rail are unaffected.
|
|
1954
2020
|
*
|
|
2021
|
+
* Merchant of Record: in the US tax is added on top (`totalUsd` above the price); outside the
|
|
2022
|
+
* US the price includes the tax, and `breakdown.taxIncluded` is `true` with
|
|
2023
|
+
* `breakdown.taxLine` ("Includes VAT 20% ($1.67)") to show under `totalUsd`.
|
|
2024
|
+
*
|
|
1955
2025
|
* Refusals: `400 INVALID_INPUT` (amount missing, not above zero, or above INVO's card
|
|
1956
|
-
* maximum), `400 CURRENCY_NOT_CONFIGURED`, `503 RATE_UNAVAILABLE
|
|
2026
|
+
* maximum), `400 CURRENCY_NOT_CONFIGURED`, `503 RATE_UNAVAILABLE`, and on Merchant of Record
|
|
2027
|
+
* `409 SALE_NOT_AVAILABLE_IN_COUNTRY` (`err.isSaleNotAvailableInCountry`) for a buyer in a
|
|
2028
|
+
* country where INVO does not yet sell as Merchant of Record.
|
|
1957
2029
|
*/
|
|
1958
2030
|
quoteCurrencyPurchase(input: CurrencyPurchaseQuoteInput, opts?: CallOptions): Promise<CurrencyPurchaseQuote>;
|
|
1959
2031
|
/**
|
package/dist/server.cjs
CHANGED
|
@@ -547,6 +547,26 @@ var InvoError = class _InvoError extends Error {
|
|
|
547
547
|
const v = this.bodyObject()["untaxed_total_usd"];
|
|
548
548
|
return typeof v === "string" && v ? v : void 0;
|
|
549
549
|
}
|
|
550
|
+
/**
|
|
551
|
+
* Additive (3.38.0). True when a Merchant of Record card sale was refused because the buyer is in
|
|
552
|
+
* a country where INVO does not yet sell as Merchant of Record (`SALE_NOT_AVAILABLE_IN_COUNTRY`,
|
|
553
|
+
* 409; today the EU member states until January 1, 2027). NOTHING WAS CHARGED. The body carries
|
|
554
|
+
* `retryable: false`: do not retry, and do not ask for another card (the refusal follows where
|
|
555
|
+
* the buyer is). Show the message (`err.message`), for example "Purchases aren't available in
|
|
556
|
+
* your country yet. Nothing was charged." Returned by the quote, the purchase, hosted checkout
|
|
557
|
+
* and Platform Commerce card purchases. Branch on this, never on a country list.
|
|
558
|
+
* See https://docs.invo.network/docs/merchant-of-record-tax#sale-not-available
|
|
559
|
+
*/
|
|
560
|
+
get isSaleNotAvailableInCountry() {
|
|
561
|
+
return this.code === "SALE_NOT_AVAILABLE_IN_COUNTRY";
|
|
562
|
+
}
|
|
563
|
+
/** On `SALE_NOT_AVAILABLE_IN_COUNTRY`: the buyer's country, ISO 3166-1 alpha-2 (`country`), or
|
|
564
|
+
* `undefined` when INVO did not know it. */
|
|
565
|
+
get unavailableCountry() {
|
|
566
|
+
if (!this.isSaleNotAvailableInCountry) return void 0;
|
|
567
|
+
const v = this.bodyObject()["country"];
|
|
568
|
+
return typeof v === "string" && v ? v : void 0;
|
|
569
|
+
}
|
|
550
570
|
/**
|
|
551
571
|
* True if a Platform Commerce refund targeted an order that was already refunded
|
|
552
572
|
* (409). Idempotent outcome — the original refund did happen, so treat this as
|
|
@@ -1855,6 +1875,39 @@ function toReportGameEventResult(raw, eventId) {
|
|
|
1855
1875
|
};
|
|
1856
1876
|
}
|
|
1857
1877
|
|
|
1878
|
+
// src/shared/tax-fields.ts
|
|
1879
|
+
function str3(v) {
|
|
1880
|
+
return v == null ? void 0 : String(v);
|
|
1881
|
+
}
|
|
1882
|
+
function includedTaxFields(raw) {
|
|
1883
|
+
const out = {};
|
|
1884
|
+
if (typeof raw["tax_included"] === "boolean") out.taxIncluded = raw["tax_included"];
|
|
1885
|
+
const inc = str3(raw["tax_included_usd"]);
|
|
1886
|
+
if (inc !== void 0) out.taxIncludedUsd = inc;
|
|
1887
|
+
const display = str3(raw["tax_price_display"]);
|
|
1888
|
+
if (display !== void 0) out.taxPriceDisplay = display;
|
|
1889
|
+
const label = str3(raw["tax_label"]);
|
|
1890
|
+
if (label !== void 0) out.taxLabel = label;
|
|
1891
|
+
const line = str3(raw["tax_line"]);
|
|
1892
|
+
if (line !== void 0) out.taxLine = line;
|
|
1893
|
+
return out;
|
|
1894
|
+
}
|
|
1895
|
+
function includedTaxBreakdownFields(raw) {
|
|
1896
|
+
const out = includedTaxFields(raw);
|
|
1897
|
+
const added = str3(raw["tax_added_usd"]);
|
|
1898
|
+
if (added !== void 0) out.taxAddedUsd = added;
|
|
1899
|
+
return out;
|
|
1900
|
+
}
|
|
1901
|
+
function includedTaxPurchaseFields(raw) {
|
|
1902
|
+
const out = includedTaxFields(raw);
|
|
1903
|
+
if (out.taxIncluded !== true) return out;
|
|
1904
|
+
const tax = str3(raw["tax_usd"]);
|
|
1905
|
+
if (tax !== void 0) out.taxUsd = tax;
|
|
1906
|
+
if (Object.prototype.hasOwnProperty.call(raw, "tax_jurisdiction")) out.taxJurisdiction = str3(raw["tax_jurisdiction"]) ?? null;
|
|
1907
|
+
if (Object.prototype.hasOwnProperty.call(raw, "tax_rate_pct")) out.taxRatePct = str3(raw["tax_rate_pct"]) ?? null;
|
|
1908
|
+
return out;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1858
1911
|
// src/shared/phone-change.ts
|
|
1859
1912
|
function requireField(value, field, raw) {
|
|
1860
1913
|
const s = value == null ? "" : String(value);
|
|
@@ -1868,16 +1921,16 @@ function requireField(value, field, raw) {
|
|
|
1868
1921
|
}
|
|
1869
1922
|
return s;
|
|
1870
1923
|
}
|
|
1871
|
-
var
|
|
1924
|
+
var str4 = (v) => v == null ? "" : String(v);
|
|
1872
1925
|
var strOrNull2 = (v) => typeof v === "string" ? v : v == null ? null : String(v);
|
|
1873
1926
|
function toRequestPhoneChangeResult(raw) {
|
|
1874
1927
|
return {
|
|
1875
1928
|
changeRequestId: requireField(raw["change_request_id"], "change_request_id", raw),
|
|
1876
1929
|
status: requireField(raw["status"], "status", raw),
|
|
1877
|
-
expiresAt:
|
|
1878
|
-
delivery:
|
|
1879
|
-
confirmation:
|
|
1880
|
-
message:
|
|
1930
|
+
expiresAt: str4(raw["expires_at"]),
|
|
1931
|
+
delivery: str4(raw["delivery"]),
|
|
1932
|
+
confirmation: str4(raw["confirmation"]),
|
|
1933
|
+
message: str4(raw["message"]),
|
|
1881
1934
|
raw
|
|
1882
1935
|
};
|
|
1883
1936
|
}
|
|
@@ -1885,8 +1938,8 @@ function toPhoneChangeRequest(raw) {
|
|
|
1885
1938
|
return {
|
|
1886
1939
|
changeRequestId: requireField(raw["change_request_id"], "change_request_id", raw),
|
|
1887
1940
|
status: requireField(raw["status"], "status", raw),
|
|
1888
|
-
confirmation:
|
|
1889
|
-
delivery:
|
|
1941
|
+
confirmation: str4(raw["confirmation"]),
|
|
1942
|
+
delivery: str4(raw["delivery"]),
|
|
1890
1943
|
newPhoneMasked: strOrNull2(raw["new_phone_masked"]),
|
|
1891
1944
|
createdAt: strOrNull2(raw["created_at"]),
|
|
1892
1945
|
expiresAt: strOrNull2(raw["expires_at"]),
|
|
@@ -1897,7 +1950,7 @@ function toPhoneChangeRequest(raw) {
|
|
|
1897
1950
|
}
|
|
1898
1951
|
|
|
1899
1952
|
// src/version.ts
|
|
1900
|
-
var SDK_VERSION = "3.
|
|
1953
|
+
var SDK_VERSION = "3.38.0";
|
|
1901
1954
|
|
|
1902
1955
|
// src/payouts.ts
|
|
1903
1956
|
var AMOUNT = /^\d+(\.\d{1,2})?$/;
|
|
@@ -2459,6 +2512,7 @@ function toQuoteBreakdown(row) {
|
|
|
2459
2512
|
totalUsd: String(r["total_usd"] ?? ""),
|
|
2460
2513
|
coins: String(r["coins"] ?? ""),
|
|
2461
2514
|
currencyName: String(r["currency_name"] ?? ""),
|
|
2515
|
+
...includedTaxBreakdownFields(r),
|
|
2462
2516
|
raw: r
|
|
2463
2517
|
};
|
|
2464
2518
|
}
|
|
@@ -4682,6 +4736,7 @@ var InvoServer = class {
|
|
|
4682
4736
|
chargeTotalUsd: optionalDecimalString(raw["charge_total_usd"]),
|
|
4683
4737
|
...pricingFields(raw),
|
|
4684
4738
|
...receiptFields(raw),
|
|
4739
|
+
...includedTaxPurchaseFields(raw),
|
|
4685
4740
|
raw
|
|
4686
4741
|
};
|
|
4687
4742
|
}
|
|
@@ -4702,8 +4757,14 @@ var InvoServer = class {
|
|
|
4702
4757
|
* accepted. Card purchases only; purchases through a third-party storefront or payment
|
|
4703
4758
|
* rail are unaffected.
|
|
4704
4759
|
*
|
|
4760
|
+
* Merchant of Record: in the US tax is added on top (`totalUsd` above the price); outside the
|
|
4761
|
+
* US the price includes the tax, and `breakdown.taxIncluded` is `true` with
|
|
4762
|
+
* `breakdown.taxLine` ("Includes VAT 20% ($1.67)") to show under `totalUsd`.
|
|
4763
|
+
*
|
|
4705
4764
|
* Refusals: `400 INVALID_INPUT` (amount missing, not above zero, or above INVO's card
|
|
4706
|
-
* maximum), `400 CURRENCY_NOT_CONFIGURED`, `503 RATE_UNAVAILABLE
|
|
4765
|
+
* maximum), `400 CURRENCY_NOT_CONFIGURED`, `503 RATE_UNAVAILABLE`, and on Merchant of Record
|
|
4766
|
+
* `409 SALE_NOT_AVAILABLE_IN_COUNTRY` (`err.isSaleNotAvailableInCountry`) for a buyer in a
|
|
4767
|
+
* country where INVO does not yet sell as Merchant of Record.
|
|
4707
4768
|
*/
|
|
4708
4769
|
async quoteCurrencyPurchase(input, opts) {
|
|
4709
4770
|
assertUsdAmount(input.usdAmount);
|
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
|