@paynow-gg/typescript-sdk 1.0.59 → 1.0.61

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.
@@ -2522,14 +2522,12 @@ export interface components {
2522
2522
  CreateCheckoutSessionManagementDto: {
2523
2523
  /** @description The line items to include in the checkout */
2524
2524
  lines: components["schemas"]["CreateCheckoutSessionLineManagementDto"][];
2525
- /**
2526
- * @deprecated
2527
- * @description Whether this checkout creates a subscription.
2528
- * DEPRECATED: Use 'subscription' field in 'lines' array objects instead.
2529
- */
2530
- subscription?: null | boolean;
2531
2525
  coupon_id?: components["schemas"]["FlakeId"];
2532
- /** @description Optional affiliate code to track referrals */
2526
+ /** @description Optional array of promo codes (coupons, gift cards, affiliates) to apply.
2527
+ * An invalid promo code will cause an error. */
2528
+ promo_codes?: null | string[];
2529
+ /** @description Optional affiliate code to track referrals.
2530
+ * An invalid affiliate code will NOT cause an error. */
2533
2531
  affiliate_code?: null | string;
2534
2532
  /** @description Optional URL to redirect to after successful checkout */
2535
2533
  return_url?: null | string;
@@ -2690,6 +2688,7 @@ export interface components {
2690
2688
  discord_description_template?: null | string;
2691
2689
  discord_title?: null | string;
2692
2690
  discord_color?: null | string;
2691
+ discord_format?: components["schemas"]["WebhookDiscordFormatDto"];
2693
2692
  };
2694
2693
  /** @description Cryptocurrency payment method details */
2695
2694
  CryptoDetailsDto: {
@@ -6388,6 +6387,7 @@ export interface components {
6388
6387
  discord_description_template?: null | string;
6389
6388
  discord_title?: null | string;
6390
6389
  discord_color?: null | string;
6390
+ discord_format?: components["schemas"]["WebhookDiscordFormatDto"];
6391
6391
  };
6392
6392
  /** @enum {string} */
6393
6393
  UpsellDiscountType: "unknown" | "none" | "fixed" | "percentage";
@@ -6602,6 +6602,8 @@ export interface components {
6602
6602
  validation: string;
6603
6603
  };
6604
6604
  /** @enum {string} */
6605
+ WebhookDiscordFormatDto: "Invalid" | "Embed" | "Text";
6606
+ /** @enum {string} */
6605
6607
  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";
6606
6608
  WebhookHistoryDto: {
6607
6609
  /** Format: int32 */
@@ -6619,6 +6621,7 @@ export interface components {
6619
6621
  discord_description_template?: null | string;
6620
6622
  discord_title?: null | string;
6621
6623
  discord_color?: null | string;
6624
+ discord_format?: components["schemas"]["WebhookDiscordFormatDto"];
6622
6625
  };
6623
6626
  /** @enum {string} */
6624
6627
  WebhookType: "json_v1" | "discord_v1";