@paynow-gg/typescript-sdk 1.0.43 → 1.0.45
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/dist/generated/management.d.ts +180 -1
- package/dist/generated/management.d.ts.map +1 -1
- package/dist/generated/management.js +8 -0
- package/dist/generated/management.js.map +1 -1
- package/dist/generated/storefront.d.ts +3 -0
- package/dist/generated/storefront.d.ts.map +1 -1
- package/dist/generated/storefront.js.map +1 -1
- package/dist/generated/webhooks.d.ts +277 -137
- package/dist/generated/webhooks.d.ts.map +1 -1
- package/dist/generated/webhooks.js.map +1 -1
- package/package.json +1 -1
|
@@ -1678,6 +1678,30 @@ export interface paths {
|
|
|
1678
1678
|
patch?: never;
|
|
1679
1679
|
trace?: never;
|
|
1680
1680
|
};
|
|
1681
|
+
"/v1/stores/{storeId}/upsell-settings": {
|
|
1682
|
+
parameters: {
|
|
1683
|
+
query?: never;
|
|
1684
|
+
header?: never;
|
|
1685
|
+
path?: never;
|
|
1686
|
+
cookie?: never;
|
|
1687
|
+
};
|
|
1688
|
+
/**
|
|
1689
|
+
* Get store upselling settings
|
|
1690
|
+
* @description Retrieves upselling settings for the store.
|
|
1691
|
+
*/
|
|
1692
|
+
get: operations["UpsellSettings_GetStoreUpsellSettings"];
|
|
1693
|
+
put?: never;
|
|
1694
|
+
post?: never;
|
|
1695
|
+
delete?: never;
|
|
1696
|
+
options?: never;
|
|
1697
|
+
head?: never;
|
|
1698
|
+
/**
|
|
1699
|
+
* Updates store upselling settings
|
|
1700
|
+
* @description Updates upselling settings for a store.
|
|
1701
|
+
*/
|
|
1702
|
+
patch: operations["UpsellSettings_UpdateStoreUpsellSettings"];
|
|
1703
|
+
trace?: never;
|
|
1704
|
+
};
|
|
1681
1705
|
"/v1/stores/{storeId}/webhooks": {
|
|
1682
1706
|
parameters: {
|
|
1683
1707
|
query?: never;
|
|
@@ -2360,6 +2384,12 @@ export interface components {
|
|
|
2360
2384
|
adaptive_currency_enabled: boolean;
|
|
2361
2385
|
show_adaptive_currency_on_storefront: boolean;
|
|
2362
2386
|
};
|
|
2387
|
+
CreateStoreUpsellSettingsDto: {
|
|
2388
|
+
enabled: boolean;
|
|
2389
|
+
automatic_recommendations_enabled: boolean;
|
|
2390
|
+
recommendation_overrides_enabled: boolean;
|
|
2391
|
+
recommendation_overrides: components["schemas"]["StoreUpsellRecommendationDto"][];
|
|
2392
|
+
};
|
|
2363
2393
|
CreateTrialEligibilityOverrideDto: {
|
|
2364
2394
|
product_id: components["schemas"]["FlakeId"];
|
|
2365
2395
|
/** Format: date-time */
|
|
@@ -2980,6 +3010,7 @@ export interface components {
|
|
|
2980
3010
|
subscription_interval_value?: null | number;
|
|
2981
3011
|
subscription_interval_scale?: components["schemas"]["ProductSubscriptionIntervalScale"];
|
|
2982
3012
|
trial?: components["schemas"]["UpsertProductTrialConfigurationDto"];
|
|
3013
|
+
upselling?: components["schemas"]["UpsertProductUpsellConfigurationDto"];
|
|
2983
3014
|
/** @description Indicates whether automatic removal is enabled. */
|
|
2984
3015
|
remove_after_enabled?: null | boolean;
|
|
2985
3016
|
/**
|
|
@@ -4082,6 +4113,7 @@ export interface components {
|
|
|
4082
4113
|
subscription_interval_value: number;
|
|
4083
4114
|
subscription_interval_scale: components["schemas"]["ProductSubscriptionIntervalScale"];
|
|
4084
4115
|
trial: components["schemas"]["ProductTrialConfigurationDto"];
|
|
4116
|
+
upselling: components["schemas"]["ProductUpsellConfigurationDto"];
|
|
4085
4117
|
/** @description Indicates whether automatic removal is enabled. */
|
|
4086
4118
|
remove_after_enabled: boolean;
|
|
4087
4119
|
/**
|
|
@@ -4292,6 +4324,29 @@ export interface components {
|
|
|
4292
4324
|
repeat_trial_cooldown_value: number;
|
|
4293
4325
|
repeat_trial_cooldown_scale: components["schemas"]["ProductSubscriptionIntervalScale"];
|
|
4294
4326
|
};
|
|
4327
|
+
ProductUpsellConfigurationDto: {
|
|
4328
|
+
/** @description Indicates if upselling should be enabled for the product.
|
|
4329
|
+
* If disabled, the product will never be recommended regardless of the global config. */
|
|
4330
|
+
enabled: boolean;
|
|
4331
|
+
/** @description Upselling recommendation for the product. */
|
|
4332
|
+
recommendations: components["schemas"]["ProductUpsellRecommendationDto"][];
|
|
4333
|
+
};
|
|
4334
|
+
ProductUpsellRecommendationDto: {
|
|
4335
|
+
recommended_product_id: components["schemas"]["FlakeId"];
|
|
4336
|
+
type: components["schemas"]["UpsellTypeDto"];
|
|
4337
|
+
/** Format: int32 */
|
|
4338
|
+
priority: number;
|
|
4339
|
+
discount_type: components["schemas"]["UpsellDiscountTypeDto"];
|
|
4340
|
+
/** Format: int64 */
|
|
4341
|
+
discount_amount: number;
|
|
4342
|
+
/** Format: int32 */
|
|
4343
|
+
minimum_base_product_quantity?: null | number;
|
|
4344
|
+
/** Format: int32 */
|
|
4345
|
+
minimum_recommended_product_quantity?: null | number;
|
|
4346
|
+
/** Format: int32 */
|
|
4347
|
+
quantity_to_add?: null | number;
|
|
4348
|
+
prefer_as_subscription: boolean;
|
|
4349
|
+
};
|
|
4295
4350
|
/** @description Represents a command associated with the store-level purchase follow uo configuration. */
|
|
4296
4351
|
PurchaseFollowUpStoreConfigurationCommandDto: {
|
|
4297
4352
|
id: components["schemas"]["FlakeId"];
|
|
@@ -4962,6 +5017,29 @@ export interface components {
|
|
|
4962
5017
|
/** @description Reason provided for cancellation. */
|
|
4963
5018
|
cancel_reason?: null | string;
|
|
4964
5019
|
};
|
|
5020
|
+
StoreUpsellRecommendationDto: {
|
|
5021
|
+
recommended_product_id: components["schemas"]["FlakeId"];
|
|
5022
|
+
type: components["schemas"]["UpsellTypeDto"];
|
|
5023
|
+
/** Format: int32 */
|
|
5024
|
+
priority: number;
|
|
5025
|
+
discount_type: components["schemas"]["UpsellDiscountTypeDto"];
|
|
5026
|
+
/** Format: int64 */
|
|
5027
|
+
discount_amount: number;
|
|
5028
|
+
/** Format: int32 */
|
|
5029
|
+
minimum_base_product_quantity?: null | number;
|
|
5030
|
+
/** Format: int32 */
|
|
5031
|
+
quantity_to_add?: null | number;
|
|
5032
|
+
prefer_as_subscription: boolean;
|
|
5033
|
+
};
|
|
5034
|
+
StoreUpsellSettingsDto: {
|
|
5035
|
+
enabled: boolean;
|
|
5036
|
+
automatic_recommendations_enabled: boolean;
|
|
5037
|
+
recommendation_overrides_enabled: boolean;
|
|
5038
|
+
recommendation_overrides: components["schemas"]["StoreUpsellRecommendationDto"][];
|
|
5039
|
+
/** Format: date-time */
|
|
5040
|
+
updated_at: string;
|
|
5041
|
+
updated_by: components["schemas"]["ActorDto"];
|
|
5042
|
+
};
|
|
4965
5043
|
/**
|
|
4966
5044
|
* @description Represents the current state of a subscription.
|
|
4967
5045
|
* @enum {string}
|
|
@@ -5290,6 +5368,12 @@ export interface components {
|
|
|
5290
5368
|
adaptive_currency_enabled?: boolean;
|
|
5291
5369
|
show_adaptive_currency_on_storefront?: boolean;
|
|
5292
5370
|
};
|
|
5371
|
+
UpdateStoreUpsellSettingsDto: {
|
|
5372
|
+
enabled?: boolean;
|
|
5373
|
+
automatic_recommendations_enabled?: boolean;
|
|
5374
|
+
recommendation_overrides_enabled?: boolean;
|
|
5375
|
+
recommendation_overrides?: components["schemas"]["StoreUpsellRecommendationDto"][];
|
|
5376
|
+
};
|
|
5293
5377
|
UpdateTrialEligibilityOverrideDto: {
|
|
5294
5378
|
product_id?: components["schemas"]["FlakeId"];
|
|
5295
5379
|
/** Format: date-time */
|
|
@@ -5304,6 +5388,10 @@ export interface components {
|
|
|
5304
5388
|
discord_title?: null | string;
|
|
5305
5389
|
discord_color?: null | string;
|
|
5306
5390
|
};
|
|
5391
|
+
/** @enum {string} */
|
|
5392
|
+
UpsellDiscountTypeDto: "unknown" | "none" | "fixed" | "percentage";
|
|
5393
|
+
/** @enum {string} */
|
|
5394
|
+
UpsellTypeDto: "unknown" | "additional" | "alternative" | "increase_quantity";
|
|
5307
5395
|
UpsertBanRequestDto: {
|
|
5308
5396
|
reason?: null | string;
|
|
5309
5397
|
identities?: null | components["schemas"]["BanIdentityDto"][];
|
|
@@ -5382,6 +5470,7 @@ export interface components {
|
|
|
5382
5470
|
subscription_interval_value?: null | number;
|
|
5383
5471
|
subscription_interval_scale?: components["schemas"]["ProductSubscriptionIntervalScale"];
|
|
5384
5472
|
trial?: components["schemas"]["UpsertProductTrialConfigurationDto"];
|
|
5473
|
+
upselling?: components["schemas"]["UpsertProductUpsellConfigurationDto"];
|
|
5385
5474
|
/** @description Indicates whether automatic removal is enabled. */
|
|
5386
5475
|
remove_after_enabled?: null | boolean;
|
|
5387
5476
|
/**
|
|
@@ -5473,6 +5562,26 @@ export interface components {
|
|
|
5473
5562
|
repeat_trial_cooldown_value?: null | number;
|
|
5474
5563
|
repeat_trial_cooldown_scale?: components["schemas"]["ProductSubscriptionIntervalScale"];
|
|
5475
5564
|
};
|
|
5565
|
+
UpsertProductUpsellConfigurationDto: {
|
|
5566
|
+
enabled?: null | boolean;
|
|
5567
|
+
recommendations?: null | components["schemas"]["UpsertProductUpsellRecommendationDto"][];
|
|
5568
|
+
};
|
|
5569
|
+
UpsertProductUpsellRecommendationDto: {
|
|
5570
|
+
recommended_product_id: components["schemas"]["FlakeId"];
|
|
5571
|
+
type: components["schemas"]["UpsellTypeDto"];
|
|
5572
|
+
/** Format: int32 */
|
|
5573
|
+
priority: number;
|
|
5574
|
+
discount_type: components["schemas"]["UpsellDiscountTypeDto"];
|
|
5575
|
+
/** Format: int64 */
|
|
5576
|
+
discount_amount: number;
|
|
5577
|
+
/** Format: int32 */
|
|
5578
|
+
minimum_base_product_quantity?: null | number;
|
|
5579
|
+
/** Format: int32 */
|
|
5580
|
+
minimum_recommended_product_quantity?: null | number;
|
|
5581
|
+
/** Format: int32 */
|
|
5582
|
+
quantity_to_add?: null | number;
|
|
5583
|
+
prefer_as_subscription: boolean;
|
|
5584
|
+
};
|
|
5476
5585
|
UpsertTagRequestDto: {
|
|
5477
5586
|
name?: null | string;
|
|
5478
5587
|
slug?: null | string;
|
|
@@ -5491,7 +5600,7 @@ export interface components {
|
|
|
5491
5600
|
validation: string;
|
|
5492
5601
|
};
|
|
5493
5602
|
/** @enum {string} */
|
|
5494
|
-
WebhookEventType: "OnIgnore" | "OnOrderCompleted" | "OnRefund" | "OnChargeback" | "OnDeliveryItemAdded" | "OnDeliveryItemActivated" | "OnDeliveryItemUsed" | "OnDeliveryItemRevoked" | "OnSubscriptionActivated" | "OnSubscriptionRenewed" | "OnSubscriptionCanceled" | "OnDiscordOrderActionsQueued" | "OnConnectedUserRegistered" | "OnConnectedUserBecamePayable" | "OnConnectedUserPayoutCreated" | "OnConnectedUserPayoutCompleted" | "OnConnectedUserTransactionInserted" | "OnConnectedUserBecameUnpayable" | "OnTrialActivated" | "OnTrialCompleted" | "OnTrialCanceled" | "OnPurchaseFollowUpAttemptEmailSent" | "OnPurchaseFollowUpAttemptSucceeded" | "OnAbandonedCheckoutRecoveryAttemptEmailSent" | "OnAbandonedCheckoutRecoveryAttemptSucceeded";
|
|
5603
|
+
WebhookEventType: "OnIgnore" | "OnOrderCompleted" | "OnRefund" | "OnChargeback" | "OnDeliveryItemAdded" | "OnDeliveryItemActivated" | "OnDeliveryItemUsed" | "OnDeliveryItemRevoked" | "OnSubscriptionActivated" | "OnSubscriptionRenewed" | "OnSubscriptionCanceled" | "OnDiscordOrderActionsQueued" | "OnConnectedUserRegistered" | "OnConnectedUserBecamePayable" | "OnConnectedUserPayoutCreated" | "OnConnectedUserPayoutCompleted" | "OnConnectedUserTransactionInserted" | "OnConnectedUserBecameUnpayable" | "OnTrialActivated" | "OnTrialCompleted" | "OnTrialCanceled" | "OnPurchaseFollowUpAttemptEmailSent" | "OnPurchaseFollowUpAttemptSucceeded" | "OnAbandonedCheckoutRecoveryAttemptEmailSent" | "OnAbandonedCheckoutRecoveryAttemptSucceeded" | "OnChargebackClosed";
|
|
5495
5604
|
WebhookHistoryDto: {
|
|
5496
5605
|
/** Format: int32 */
|
|
5497
5606
|
page: number;
|
|
@@ -10059,6 +10168,68 @@ export interface operations {
|
|
|
10059
10168
|
};
|
|
10060
10169
|
};
|
|
10061
10170
|
};
|
|
10171
|
+
UpsellSettings_GetStoreUpsellSettings: {
|
|
10172
|
+
parameters: {
|
|
10173
|
+
query?: never;
|
|
10174
|
+
header?: never;
|
|
10175
|
+
path?: never;
|
|
10176
|
+
cookie?: never;
|
|
10177
|
+
};
|
|
10178
|
+
requestBody?: never;
|
|
10179
|
+
responses: {
|
|
10180
|
+
/** @description OK */
|
|
10181
|
+
200: {
|
|
10182
|
+
headers: {
|
|
10183
|
+
[name: string]: unknown;
|
|
10184
|
+
};
|
|
10185
|
+
content: {
|
|
10186
|
+
"application/json": components["schemas"]["StoreUpsellSettingsDto"];
|
|
10187
|
+
};
|
|
10188
|
+
};
|
|
10189
|
+
/** @description Error response */
|
|
10190
|
+
default: {
|
|
10191
|
+
headers: {
|
|
10192
|
+
[name: string]: unknown;
|
|
10193
|
+
};
|
|
10194
|
+
content: {
|
|
10195
|
+
"application/json": components["schemas"]["PayNowError"];
|
|
10196
|
+
};
|
|
10197
|
+
};
|
|
10198
|
+
};
|
|
10199
|
+
};
|
|
10200
|
+
UpsellSettings_UpdateStoreUpsellSettings: {
|
|
10201
|
+
parameters: {
|
|
10202
|
+
query?: never;
|
|
10203
|
+
header?: never;
|
|
10204
|
+
path?: never;
|
|
10205
|
+
cookie?: never;
|
|
10206
|
+
};
|
|
10207
|
+
requestBody?: {
|
|
10208
|
+
content: {
|
|
10209
|
+
"application/json": components["schemas"]["UpdateStoreUpsellSettingsDto"];
|
|
10210
|
+
"text/json": components["schemas"]["UpdateStoreUpsellSettingsDto"];
|
|
10211
|
+
"application/*+json": components["schemas"]["UpdateStoreUpsellSettingsDto"];
|
|
10212
|
+
};
|
|
10213
|
+
};
|
|
10214
|
+
responses: {
|
|
10215
|
+
/** @description No Content */
|
|
10216
|
+
204: {
|
|
10217
|
+
headers: {
|
|
10218
|
+
[name: string]: unknown;
|
|
10219
|
+
};
|
|
10220
|
+
content?: never;
|
|
10221
|
+
};
|
|
10222
|
+
/** @description Error response */
|
|
10223
|
+
default: {
|
|
10224
|
+
headers: {
|
|
10225
|
+
[name: string]: unknown;
|
|
10226
|
+
};
|
|
10227
|
+
content: {
|
|
10228
|
+
"application/json": components["schemas"]["PayNowError"];
|
|
10229
|
+
};
|
|
10230
|
+
};
|
|
10231
|
+
};
|
|
10232
|
+
};
|
|
10062
10233
|
Webhooks_GetSubscriptions: {
|
|
10063
10234
|
parameters: {
|
|
10064
10235
|
query?: never;
|
|
@@ -10803,6 +10974,14 @@ export declare const operationMappings: {
|
|
|
10803
10974
|
readonly method: "DELETE";
|
|
10804
10975
|
readonly path: "/v1/stores/{storeId}/customers/{customerId}/trials/eligibility/overrides/{trialEligibilityOverrideId}";
|
|
10805
10976
|
};
|
|
10977
|
+
readonly UpsellSettings_GetStoreUpsellSettings: {
|
|
10978
|
+
readonly method: "GET";
|
|
10979
|
+
readonly path: "/v1/stores/{storeId}/upsell-settings";
|
|
10980
|
+
};
|
|
10981
|
+
readonly UpsellSettings_UpdateStoreUpsellSettings: {
|
|
10982
|
+
readonly method: "PATCH";
|
|
10983
|
+
readonly path: "/v1/stores/{storeId}/upsell-settings";
|
|
10984
|
+
};
|
|
10806
10985
|
readonly Webhooks_GetSubscriptions: {
|
|
10807
10986
|
readonly method: "GET";
|
|
10808
10987
|
readonly path: "/v1/stores/{storeId}/webhooks";
|