@paynow-gg/typescript-sdk 1.0.42 → 1.0.44

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.
@@ -2191,7 +2191,7 @@ export interface components {
2191
2191
  };
2192
2192
  /** @description Represents a line item in a checkout session request.
2193
2193
  * Opposed to CreateCheckoutSessionLineDto, this is used while creating a checkout session using the Management API,
2194
- * and allows for creating inline products (which is subject to special approval) */
2194
+ * and allows for creating inline products and payout splits (subject to special approval) */
2195
2195
  CreateCheckoutSessionLineManagementDto: {
2196
2196
  /** @description Determines whether this line should create a subscription */
2197
2197
  subscription?: null | boolean;
@@ -2212,12 +2212,32 @@ export interface components {
2212
2212
  };
2213
2213
  product_id?: components["schemas"]["FlakeId"];
2214
2214
  inline_product?: components["schemas"]["InlineProductCreateDto"];
2215
+ /** @description Optional payout splits for line items (requires approval) */
2216
+ payout_splits?: null | components["schemas"]["CreateCheckoutSessionLineManagementPayoutSplitDto"][];
2215
2217
  /** @description Optional metadata to associate with the checkout session line.
2216
2218
  * Do not store any sensitive information here. */
2217
2219
  metadata?: null | {
2218
2220
  [key: string]: string;
2219
2221
  };
2220
2222
  };
2223
+ CreateCheckoutSessionLineManagementPayoutSplitDto: {
2224
+ /** @description The ID of the user's payout balance. */
2225
+ payout_id: string;
2226
+ /**
2227
+ * Format: int64
2228
+ * @description The percentage of the line amount this user receives (in basis points, e.g., 5000 = 50%)
2229
+ * NOTE: The last payout split needs to have a null percentage set (so the remaining amount gets properly allocated)
2230
+ * @example 5000
2231
+ */
2232
+ percentage?: null | number;
2233
+ /**
2234
+ * Format: int64
2235
+ * @description The platform fee percentage applied to this split (in basis points)
2236
+ * Only applicable to platforms.
2237
+ * @example 500
2238
+ */
2239
+ platform_fee?: null | number;
2240
+ };
2221
2241
  /** @description Request to create a new checkout session from your back-end server using the management API.
2222
2242
  * `customer_id` needs to be specified explicitly here instead of using a Customer token. */
2223
2243
  CreateCheckoutSessionManagementDto: {
@@ -2338,6 +2358,7 @@ export interface components {
2338
2358
  store_tax_inclusive_pricing: boolean;
2339
2359
  block_prepaid_cards: components["schemas"]["PrepaidCardsBlockingTypeDto"];
2340
2360
  adaptive_currency_enabled: boolean;
2361
+ show_adaptive_currency_on_storefront: boolean;
2341
2362
  };
2342
2363
  CreateTrialEligibilityOverrideDto: {
2343
2364
  product_id: components["schemas"]["FlakeId"];
@@ -4671,6 +4692,8 @@ export interface components {
4671
4692
  block_prepaid_cards: components["schemas"]["PrepaidCardsBlockingTypeDto"];
4672
4693
  /** @description Whether the 'Adaptive Currency' feature is enabled. */
4673
4694
  adaptive_currency_enabled: boolean;
4695
+ /** @description Whether the displayed currency on the storefront should be the Adaptive Currency by default. */
4696
+ show_adaptive_currency_on_storefront: boolean;
4674
4697
  /**
4675
4698
  * Format: int64
4676
4699
  * @description Maximum checkout amount allowed in cents.
@@ -5265,6 +5288,7 @@ export interface components {
5265
5288
  store_tax_inclusive_pricing?: boolean;
5266
5289
  block_prepaid_cards?: components["schemas"]["PrepaidCardsBlockingTypeDto"];
5267
5290
  adaptive_currency_enabled?: boolean;
5291
+ show_adaptive_currency_on_storefront?: boolean;
5268
5292
  };
5269
5293
  UpdateTrialEligibilityOverrideDto: {
5270
5294
  product_id?: components["schemas"]["FlakeId"];
@@ -5467,7 +5491,7 @@ export interface components {
5467
5491
  validation: string;
5468
5492
  };
5469
5493
  /** @enum {string} */
5470
- 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";
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" | "OnChargebackClosed";
5471
5495
  WebhookHistoryDto: {
5472
5496
  /** Format: int32 */
5473
5497
  page: number;