@paynow-gg/typescript-sdk 1.0.54 → 1.0.56

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.
@@ -1791,6 +1791,43 @@ export interface paths {
1791
1791
  patch?: never;
1792
1792
  trace?: never;
1793
1793
  };
1794
+ "/v1/stores/{storeId}/tier-groups": {
1795
+ parameters: {
1796
+ query?: never;
1797
+ header?: never;
1798
+ path?: never;
1799
+ cookie?: never;
1800
+ };
1801
+ /** List all tier groups for a store */
1802
+ get: operations["TierGroups_ListTierGroups"];
1803
+ put?: never;
1804
+ /** Create a new tier group */
1805
+ post: operations["TierGroups_CreateTierGroup"];
1806
+ delete?: never;
1807
+ options?: never;
1808
+ head?: never;
1809
+ patch?: never;
1810
+ trace?: never;
1811
+ };
1812
+ "/v1/stores/{storeId}/tier-groups/{tierGroupId}": {
1813
+ parameters: {
1814
+ query?: never;
1815
+ header?: never;
1816
+ path?: never;
1817
+ cookie?: never;
1818
+ };
1819
+ /** Get a tier group by ID */
1820
+ get: operations["TierGroups_GetTierGroup"];
1821
+ put?: never;
1822
+ post?: never;
1823
+ /** Delete a tier group by ID */
1824
+ delete: operations["TierGroups_DeleteTierGroup"];
1825
+ options?: never;
1826
+ head?: never;
1827
+ /** Update a tier group by ID */
1828
+ patch: operations["TierGroups_UpdateTierGroup"];
1829
+ trace?: never;
1830
+ };
1794
1831
  "/v1/stores/{storeId}/trials": {
1795
1832
  parameters: {
1796
1833
  query?: never;
@@ -2272,9 +2309,10 @@ export interface components {
2272
2309
  status: string;
2273
2310
  /** @description Indicates whether the payment was declined. */
2274
2311
  declined: boolean;
2275
- decline_code: components["schemas"]["PaymentDeclineCode"];
2276
- /** @description Client-side payment token for completing 3DS or other redirect-based flows. */
2277
- payment_token?: null | string;
2312
+ /** @description The customer readable decline reason, if the payment was declined. */
2313
+ decline_message?: null | string;
2314
+ /** @description Checkout URL to redirect to for on-session payments. */
2315
+ checkout_url?: null | string;
2278
2316
  };
2279
2317
  CommandAttemptDto: {
2280
2318
  id: components["schemas"]["FlakeId"];
@@ -2621,6 +2659,7 @@ export interface components {
2621
2659
  show_all_payment_methods_for_subscriptions: boolean;
2622
2660
  store_tax_inclusive_pricing: boolean;
2623
2661
  block_prepaid_cards: components["schemas"]["PrepaidCardsBlockingTypeDto"];
2662
+ promo_code_stacking_behavior: components["schemas"]["StorePromoCodeStackingBehaviorDto"];
2624
2663
  adaptive_currency_enabled: boolean;
2625
2664
  show_adaptive_currency_on_storefront: boolean;
2626
2665
  };
@@ -2634,6 +2673,10 @@ export interface components {
2634
2673
  recommendation_overrides: components["schemas"]["StoreUpsellRecommendationDto"][];
2635
2674
  checkout_style: components["schemas"]["StoreUpsellCheckoutStyleDto"];
2636
2675
  };
2676
+ CreateTierGroupRequestDto: {
2677
+ /** @description The name of the tier group. */
2678
+ name: string;
2679
+ };
2637
2680
  CreateTrialEligibilityOverrideDto: {
2638
2681
  product_id: components["schemas"]["FlakeId"];
2639
2682
  /** Format: date-time */
@@ -3346,6 +3389,7 @@ export interface components {
3346
3389
  is_coupons_disabled?: null | boolean;
3347
3390
  /** @description Indicates if applying affiliate links should be disabled on the product. */
3348
3391
  is_affiliate_links_disabled?: null | boolean;
3392
+ tier_group_id?: components["schemas"]["FlakeId"];
3349
3393
  };
3350
3394
  /** @description Klarna payment method details */
3351
3395
  KlarnaDetailsDto: {
@@ -3440,6 +3484,11 @@ export interface components {
3440
3484
  /** Format: int32 */
3441
3485
  order?: null | number;
3442
3486
  };
3487
+ OrderCouponUsageDto: {
3488
+ coupon_id: components["schemas"]["FlakeId"];
3489
+ /** Format: int64 */
3490
+ usage_amount: number;
3491
+ };
3443
3492
  /** @description Represents a customer order */
3444
3493
  OrderDto: {
3445
3494
  id: components["schemas"]["FlakeId"];
@@ -3463,7 +3512,11 @@ export interface components {
3463
3512
  /** @description Signifies if the order is a subscription order */
3464
3513
  readonly is_subscription: boolean;
3465
3514
  coupon_id?: components["schemas"]["FlakeId"];
3515
+ /** @description Applied coupons to this order */
3516
+ applied_coupons: components["schemas"]["OrderCouponUsageDto"][];
3466
3517
  giftcard_id?: components["schemas"]["FlakeId"];
3518
+ /** @description Applied gift cards to this order */
3519
+ applied_giftcards: components["schemas"]["OrderGiftCardUsageDto"][];
3467
3520
  affiliate_id?: components["schemas"]["FlakeId"];
3468
3521
  /**
3469
3522
  * @description The billing name for this order
@@ -3628,6 +3681,11 @@ export interface components {
3628
3681
  tax_jurisdictions?: null | components["schemas"]["SalesTaxJurisdictionDto"][];
3629
3682
  last_payment_error?: components["schemas"]["LastPaymentErrorDto"];
3630
3683
  };
3684
+ OrderGiftCardUsageDto: {
3685
+ giftcard_id: components["schemas"]["FlakeId"];
3686
+ /** Format: int64 */
3687
+ usage_amount: number;
3688
+ };
3631
3689
  /** @description Represents an order line item in a customer's order */
3632
3690
  OrderLineDto: {
3633
3691
  id: components["schemas"]["FlakeId"];
@@ -4496,6 +4554,7 @@ export interface components {
4496
4554
  is_coupons_disabled?: null | boolean;
4497
4555
  /** @description Indicates if applying affiliate links should be disabled on the product. */
4498
4556
  is_affiliate_links_disabled?: null | boolean;
4557
+ tier_group_id?: components["schemas"]["FlakeId"];
4499
4558
  };
4500
4559
  ProductGameServerDto: {
4501
4560
  id: components["schemas"]["FlakeId"];
@@ -5165,6 +5224,7 @@ export interface components {
5165
5224
  /** @description Whether store pricing is tax-inclusive. */
5166
5225
  store_tax_inclusive_pricing: boolean;
5167
5226
  block_prepaid_cards: components["schemas"]["PrepaidCardsBlockingTypeDto"];
5227
+ promo_code_stacking_behavior: components["schemas"]["StorePromoCodeStackingBehaviorDto"];
5168
5228
  /** @description Whether the 'Adaptive Currency' feature is enabled. */
5169
5229
  adaptive_currency_enabled: boolean;
5170
5230
  /** @description Whether the displayed currency on the storefront should be the Adaptive Currency by default. */
@@ -5190,6 +5250,11 @@ export interface components {
5190
5250
  currency?: null | string;
5191
5251
  tax_inclusive?: null | boolean;
5192
5252
  };
5253
+ /**
5254
+ * @description Defines the behavior of promo code stacking.
5255
+ * @enum {string}
5256
+ */
5257
+ StorePromoCodeStackingBehaviorDto: "invalid" | "disabled" | "enabled" | "gift_cards_only";
5193
5258
  /**
5194
5259
  * @description Determines the party that needs to perform or requests a verification
5195
5260
  * @enum {string}
@@ -5498,7 +5563,7 @@ export interface components {
5498
5563
  * @description Represents the status of a subscription change.
5499
5564
  * @enum {string}
5500
5565
  */
5501
- SubscriptionChangeStatusDto: "invalid" | "pending_payment" | "pending_renewal" | "applied" | "canceled";
5566
+ SubscriptionChangeStatusDto: "invalid" | "pending_payment" | "pending_renewal" | "applied" | "canceled" | "pending_verification";
5502
5567
  /** @description Data transfer object representing a store subscription. */
5503
5568
  SubscriptionDto: {
5504
5569
  id: components["schemas"]["FlakeId"];
@@ -5514,8 +5579,11 @@ export interface components {
5514
5579
  next_billing_presentment_amount: components["schemas"]["SubscriptionBillingAmountDto"];
5515
5580
  status: components["schemas"]["SubscriptionStatus"];
5516
5581
  coupon_id?: components["schemas"]["FlakeId"];
5582
+ /** @description Identifiers of coupons applied to this subscription. */
5583
+ coupon_ids: components["schemas"]["FlakeId"][];
5517
5584
  /**
5518
5585
  * Format: date-time
5586
+ * @deprecated
5519
5587
  * @description Date when a repeating coupon ends for this subscription.
5520
5588
  */
5521
5589
  coupon_repeating_ends_at?: null | string;
@@ -5763,6 +5831,7 @@ export interface components {
5763
5831
  /** @description Represents a line item within a subscription. */
5764
5832
  SubscriptionLineDto: {
5765
5833
  id: components["schemas"]["FlakeId"];
5834
+ store_id: components["schemas"]["FlakeId"];
5766
5835
  subscription_id: components["schemas"]["FlakeId"];
5767
5836
  checkout_line_id?: components["schemas"]["FlakeId"];
5768
5837
  initial_order_line_id?: components["schemas"]["FlakeId"];
@@ -5948,6 +6017,24 @@ export interface components {
5948
6017
  updated_at?: null | string;
5949
6018
  updated_by?: components["schemas"]["ActorDto"];
5950
6019
  };
6020
+ TierGroupDto: {
6021
+ id: components["schemas"]["FlakeId"];
6022
+ store_id: components["schemas"]["FlakeId"];
6023
+ /** @description The name of the tier group. */
6024
+ name: string;
6025
+ /**
6026
+ * Format: date-time
6027
+ * @description When the tier group was created.
6028
+ */
6029
+ created_at: string;
6030
+ created_by: components["schemas"]["ActorDto"];
6031
+ /**
6032
+ * Format: date-time
6033
+ * @description When was the tier group last updated.
6034
+ */
6035
+ updated_at?: null | string;
6036
+ updated_by?: components["schemas"]["ActorDto"];
6037
+ };
5951
6038
  ToggleStorePaymentMethodTypeRequestDto: {
5952
6039
  enabled: boolean;
5953
6040
  };
@@ -6249,6 +6336,7 @@ export interface components {
6249
6336
  show_all_payment_methods_for_subscriptions?: boolean;
6250
6337
  store_tax_inclusive_pricing?: boolean;
6251
6338
  block_prepaid_cards?: components["schemas"]["PrepaidCardsBlockingTypeDto"];
6339
+ promo_code_stacking_behavior?: components["schemas"]["StorePromoCodeStackingBehaviorDto"];
6252
6340
  adaptive_currency_enabled?: boolean;
6253
6341
  show_adaptive_currency_on_storefront?: boolean;
6254
6342
  };
@@ -6281,6 +6369,10 @@ export interface components {
6281
6369
  subscription_change: components["schemas"]["SubscriptionChangeDto"];
6282
6370
  pending_payment?: components["schemas"]["CheckoutPaymentInfoDto"];
6283
6371
  };
6372
+ UpdateTierGroupRequestDto: {
6373
+ /** @description The name of the tier group. */
6374
+ name: string;
6375
+ };
6284
6376
  UpdateTrialEligibilityOverrideDto: {
6285
6377
  product_id?: components["schemas"]["FlakeId"];
6286
6378
  /** Format: date-time */
@@ -6437,6 +6529,7 @@ export interface components {
6437
6529
  is_coupons_disabled?: null | boolean;
6438
6530
  /** @description Indicates if applying affiliate links should be disabled on the product. */
6439
6531
  is_affiliate_links_disabled?: null | boolean;
6532
+ tier_group_id?: components["schemas"]["FlakeId"];
6440
6533
  };
6441
6534
  /** @description Represents the configuration for trials of a product */
6442
6535
  UpsertProductTrialConfigurationDto: {
@@ -11372,6 +11465,167 @@ export interface operations {
11372
11465
  };
11373
11466
  };
11374
11467
  };
11468
+ TierGroups_ListTierGroups: {
11469
+ parameters: {
11470
+ query?: never;
11471
+ header?: never;
11472
+ path?: never;
11473
+ cookie?: never;
11474
+ };
11475
+ requestBody?: never;
11476
+ responses: {
11477
+ /** @description OK */
11478
+ 200: {
11479
+ headers: {
11480
+ [name: string]: unknown;
11481
+ };
11482
+ content: {
11483
+ "application/json": components["schemas"]["TierGroupDto"][];
11484
+ };
11485
+ };
11486
+ /** @description Error response */
11487
+ default: {
11488
+ headers: {
11489
+ [name: string]: unknown;
11490
+ };
11491
+ content: {
11492
+ "application/json": components["schemas"]["PayNowError"];
11493
+ };
11494
+ };
11495
+ };
11496
+ };
11497
+ TierGroups_CreateTierGroup: {
11498
+ parameters: {
11499
+ query?: never;
11500
+ header?: never;
11501
+ path?: never;
11502
+ cookie?: never;
11503
+ };
11504
+ requestBody?: {
11505
+ content: {
11506
+ "application/json": components["schemas"]["CreateTierGroupRequestDto"];
11507
+ "text/json": components["schemas"]["CreateTierGroupRequestDto"];
11508
+ "application/*+json": components["schemas"]["CreateTierGroupRequestDto"];
11509
+ };
11510
+ };
11511
+ responses: {
11512
+ /** @description OK */
11513
+ 200: {
11514
+ headers: {
11515
+ [name: string]: unknown;
11516
+ };
11517
+ content: {
11518
+ "application/json": components["schemas"]["TierGroupDto"];
11519
+ };
11520
+ };
11521
+ /** @description Error response */
11522
+ default: {
11523
+ headers: {
11524
+ [name: string]: unknown;
11525
+ };
11526
+ content: {
11527
+ "application/json": components["schemas"]["PayNowError"];
11528
+ };
11529
+ };
11530
+ };
11531
+ };
11532
+ TierGroups_GetTierGroup: {
11533
+ parameters: {
11534
+ query?: never;
11535
+ header?: never;
11536
+ path: {
11537
+ tierGroupId: components["schemas"]["FlakeId"];
11538
+ };
11539
+ cookie?: never;
11540
+ };
11541
+ requestBody?: never;
11542
+ responses: {
11543
+ /** @description OK */
11544
+ 200: {
11545
+ headers: {
11546
+ [name: string]: unknown;
11547
+ };
11548
+ content: {
11549
+ "application/json": components["schemas"]["TierGroupDto"];
11550
+ };
11551
+ };
11552
+ /** @description Error response */
11553
+ default: {
11554
+ headers: {
11555
+ [name: string]: unknown;
11556
+ };
11557
+ content: {
11558
+ "application/json": components["schemas"]["PayNowError"];
11559
+ };
11560
+ };
11561
+ };
11562
+ };
11563
+ TierGroups_DeleteTierGroup: {
11564
+ parameters: {
11565
+ query?: never;
11566
+ header?: never;
11567
+ path: {
11568
+ tierGroupId: components["schemas"]["FlakeId"];
11569
+ };
11570
+ cookie?: never;
11571
+ };
11572
+ requestBody?: never;
11573
+ responses: {
11574
+ /** @description No Content */
11575
+ 204: {
11576
+ headers: {
11577
+ [name: string]: unknown;
11578
+ };
11579
+ content?: never;
11580
+ };
11581
+ /** @description Error response */
11582
+ default: {
11583
+ headers: {
11584
+ [name: string]: unknown;
11585
+ };
11586
+ content: {
11587
+ "application/json": components["schemas"]["PayNowError"];
11588
+ };
11589
+ };
11590
+ };
11591
+ };
11592
+ TierGroups_UpdateTierGroup: {
11593
+ parameters: {
11594
+ query?: never;
11595
+ header?: never;
11596
+ path: {
11597
+ tierGroupId: components["schemas"]["FlakeId"];
11598
+ };
11599
+ cookie?: never;
11600
+ };
11601
+ requestBody?: {
11602
+ content: {
11603
+ "application/json": components["schemas"]["UpdateTierGroupRequestDto"];
11604
+ "text/json": components["schemas"]["UpdateTierGroupRequestDto"];
11605
+ "application/*+json": components["schemas"]["UpdateTierGroupRequestDto"];
11606
+ };
11607
+ };
11608
+ responses: {
11609
+ /** @description OK */
11610
+ 200: {
11611
+ headers: {
11612
+ [name: string]: unknown;
11613
+ };
11614
+ content: {
11615
+ "application/json": components["schemas"]["TierGroupDto"];
11616
+ };
11617
+ };
11618
+ /** @description Error response */
11619
+ default: {
11620
+ headers: {
11621
+ [name: string]: unknown;
11622
+ };
11623
+ content: {
11624
+ "application/json": components["schemas"]["PayNowError"];
11625
+ };
11626
+ };
11627
+ };
11628
+ };
11375
11629
  Trials_GetTrials: {
11376
11630
  parameters: {
11377
11631
  query?: {
@@ -12428,6 +12682,26 @@ export declare const operationMappings: {
12428
12682
  readonly method: "DELETE";
12429
12683
  readonly path: "/v1/stores/{storeId}/tags/{tagId}/image";
12430
12684
  };
12685
+ readonly TierGroups_ListTierGroups: {
12686
+ readonly method: "GET";
12687
+ readonly path: "/v1/stores/{storeId}/tier-groups";
12688
+ };
12689
+ readonly TierGroups_CreateTierGroup: {
12690
+ readonly method: "POST";
12691
+ readonly path: "/v1/stores/{storeId}/tier-groups";
12692
+ };
12693
+ readonly TierGroups_GetTierGroup: {
12694
+ readonly method: "GET";
12695
+ readonly path: "/v1/stores/{storeId}/tier-groups/{tierGroupId}";
12696
+ };
12697
+ readonly TierGroups_UpdateTierGroup: {
12698
+ readonly method: "PATCH";
12699
+ readonly path: "/v1/stores/{storeId}/tier-groups/{tierGroupId}";
12700
+ };
12701
+ readonly TierGroups_DeleteTierGroup: {
12702
+ readonly method: "DELETE";
12703
+ readonly path: "/v1/stores/{storeId}/tier-groups/{tierGroupId}";
12704
+ };
12431
12705
  readonly Trials_GetTrials: {
12432
12706
  readonly method: "GET";
12433
12707
  readonly path: "/v1/stores/{storeId}/trials";