@paynow-gg/typescript-sdk 1.0.55 → 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"];
@@ -2635,6 +2673,10 @@ export interface components {
2635
2673
  recommendation_overrides: components["schemas"]["StoreUpsellRecommendationDto"][];
2636
2674
  checkout_style: components["schemas"]["StoreUpsellCheckoutStyleDto"];
2637
2675
  };
2676
+ CreateTierGroupRequestDto: {
2677
+ /** @description The name of the tier group. */
2678
+ name: string;
2679
+ };
2638
2680
  CreateTrialEligibilityOverrideDto: {
2639
2681
  product_id: components["schemas"]["FlakeId"];
2640
2682
  /** Format: date-time */
@@ -3347,6 +3389,7 @@ export interface components {
3347
3389
  is_coupons_disabled?: null | boolean;
3348
3390
  /** @description Indicates if applying affiliate links should be disabled on the product. */
3349
3391
  is_affiliate_links_disabled?: null | boolean;
3392
+ tier_group_id?: components["schemas"]["FlakeId"];
3350
3393
  };
3351
3394
  /** @description Klarna payment method details */
3352
3395
  KlarnaDetailsDto: {
@@ -4511,6 +4554,7 @@ export interface components {
4511
4554
  is_coupons_disabled?: null | boolean;
4512
4555
  /** @description Indicates if applying affiliate links should be disabled on the product. */
4513
4556
  is_affiliate_links_disabled?: null | boolean;
4557
+ tier_group_id?: components["schemas"]["FlakeId"];
4514
4558
  };
4515
4559
  ProductGameServerDto: {
4516
4560
  id: components["schemas"]["FlakeId"];
@@ -5519,7 +5563,7 @@ export interface components {
5519
5563
  * @description Represents the status of a subscription change.
5520
5564
  * @enum {string}
5521
5565
  */
5522
- SubscriptionChangeStatusDto: "invalid" | "pending_payment" | "pending_renewal" | "applied" | "canceled";
5566
+ SubscriptionChangeStatusDto: "invalid" | "pending_payment" | "pending_renewal" | "applied" | "canceled" | "pending_verification";
5523
5567
  /** @description Data transfer object representing a store subscription. */
5524
5568
  SubscriptionDto: {
5525
5569
  id: components["schemas"]["FlakeId"];
@@ -5787,6 +5831,7 @@ export interface components {
5787
5831
  /** @description Represents a line item within a subscription. */
5788
5832
  SubscriptionLineDto: {
5789
5833
  id: components["schemas"]["FlakeId"];
5834
+ store_id: components["schemas"]["FlakeId"];
5790
5835
  subscription_id: components["schemas"]["FlakeId"];
5791
5836
  checkout_line_id?: components["schemas"]["FlakeId"];
5792
5837
  initial_order_line_id?: components["schemas"]["FlakeId"];
@@ -5972,6 +6017,24 @@ export interface components {
5972
6017
  updated_at?: null | string;
5973
6018
  updated_by?: components["schemas"]["ActorDto"];
5974
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
+ };
5975
6038
  ToggleStorePaymentMethodTypeRequestDto: {
5976
6039
  enabled: boolean;
5977
6040
  };
@@ -6306,6 +6369,10 @@ export interface components {
6306
6369
  subscription_change: components["schemas"]["SubscriptionChangeDto"];
6307
6370
  pending_payment?: components["schemas"]["CheckoutPaymentInfoDto"];
6308
6371
  };
6372
+ UpdateTierGroupRequestDto: {
6373
+ /** @description The name of the tier group. */
6374
+ name: string;
6375
+ };
6309
6376
  UpdateTrialEligibilityOverrideDto: {
6310
6377
  product_id?: components["schemas"]["FlakeId"];
6311
6378
  /** Format: date-time */
@@ -6462,6 +6529,7 @@ export interface components {
6462
6529
  is_coupons_disabled?: null | boolean;
6463
6530
  /** @description Indicates if applying affiliate links should be disabled on the product. */
6464
6531
  is_affiliate_links_disabled?: null | boolean;
6532
+ tier_group_id?: components["schemas"]["FlakeId"];
6465
6533
  };
6466
6534
  /** @description Represents the configuration for trials of a product */
6467
6535
  UpsertProductTrialConfigurationDto: {
@@ -11397,6 +11465,167 @@ export interface operations {
11397
11465
  };
11398
11466
  };
11399
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
+ };
11400
11629
  Trials_GetTrials: {
11401
11630
  parameters: {
11402
11631
  query?: {
@@ -12453,6 +12682,26 @@ export declare const operationMappings: {
12453
12682
  readonly method: "DELETE";
12454
12683
  readonly path: "/v1/stores/{storeId}/tags/{tagId}/image";
12455
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
+ };
12456
12705
  readonly Trials_GetTrials: {
12457
12706
  readonly method: "GET";
12458
12707
  readonly path: "/v1/stores/{storeId}/trials";