@paynow-gg/typescript-sdk 1.0.55 → 1.0.57
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 +286 -5
- package/dist/generated/management.d.ts.map +1 -1
- package/dist/generated/management.js +20 -0
- package/dist/generated/management.js.map +1 -1
- package/dist/generated/storefront.d.ts +257 -1
- package/dist/generated/storefront.d.ts.map +1 -1
- package/dist/generated/storefront.js +12 -0
- package/dist/generated/storefront.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
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: {
|
|
@@ -4091,7 +4134,7 @@ export interface components {
|
|
|
4091
4134
|
last_payment_error?: components["schemas"]["LastPaymentErrorDto"];
|
|
4092
4135
|
};
|
|
4093
4136
|
/** @enum {string} */
|
|
4094
|
-
PaymentGatewayDto: "invalid" | "stripe" | "paypal" | "forumpay" | "steamskins" | "nuvei" | "pagseguro" | "tazapay";
|
|
4137
|
+
PaymentGatewayDto: "invalid" | "stripe" | "paypal" | "forumpay" | "steamskins" | "nuvei" | "pagseguro" | "tazapay" | "paysafecard";
|
|
4095
4138
|
/** @description Contains detailed information about a payment method.
|
|
4096
4139
|
* DISCLAIMER: These fields are not guaranteed to be backwards compatible and may change or be removed without notice. */
|
|
4097
4140
|
PaymentMethodDetailsDto: {
|
|
@@ -4108,6 +4151,7 @@ export interface components {
|
|
|
4108
4151
|
alipay?: components["schemas"]["AlipayDetailsDto"];
|
|
4109
4152
|
pay_by_bank?: components["schemas"]["PayByBankDetailsDto"];
|
|
4110
4153
|
pix?: components["schemas"]["PixDetailsDto"];
|
|
4154
|
+
paysafecard?: components["schemas"]["PaysafeCardDetailsDto"];
|
|
4111
4155
|
};
|
|
4112
4156
|
/** @description Represents a stored payment method */
|
|
4113
4157
|
PaymentMethodDto: {
|
|
@@ -4262,6 +4306,37 @@ export interface components {
|
|
|
4262
4306
|
* @enum {string}
|
|
4263
4307
|
*/
|
|
4264
4308
|
PaymentStatusDto: "unknown" | "created" | "pending" | "completed" | "canceled" | "failed" | "refunded" | "chargeback" | "refund_failed" | "refund_processing";
|
|
4309
|
+
/** @description A single paysafecard card */
|
|
4310
|
+
PaysafeCardCardDto: {
|
|
4311
|
+
/**
|
|
4312
|
+
* @description The card serial number
|
|
4313
|
+
* @example 1234567890123456
|
|
4314
|
+
*/
|
|
4315
|
+
serial: string;
|
|
4316
|
+
/**
|
|
4317
|
+
* @description The currency code
|
|
4318
|
+
* @example eur
|
|
4319
|
+
*/
|
|
4320
|
+
currency: string;
|
|
4321
|
+
/**
|
|
4322
|
+
* Format: int64
|
|
4323
|
+
* @description The amount in minor units
|
|
4324
|
+
* @example 1000
|
|
4325
|
+
*/
|
|
4326
|
+
amount: number;
|
|
4327
|
+
/** @description The card type */
|
|
4328
|
+
type: string;
|
|
4329
|
+
/**
|
|
4330
|
+
* @description The country code
|
|
4331
|
+
* @example DE
|
|
4332
|
+
*/
|
|
4333
|
+
country: string;
|
|
4334
|
+
};
|
|
4335
|
+
/** @description Paysafecard payment method details */
|
|
4336
|
+
PaysafeCardDetailsDto: {
|
|
4337
|
+
/** @description The paysafecard cards used for payment */
|
|
4338
|
+
cards?: null | components["schemas"]["PaysafeCardCardDto"][];
|
|
4339
|
+
};
|
|
4265
4340
|
/**
|
|
4266
4341
|
* Format: period
|
|
4267
4342
|
* @description ISO 8601 duration format
|
|
@@ -4511,6 +4586,7 @@ export interface components {
|
|
|
4511
4586
|
is_coupons_disabled?: null | boolean;
|
|
4512
4587
|
/** @description Indicates if applying affiliate links should be disabled on the product. */
|
|
4513
4588
|
is_affiliate_links_disabled?: null | boolean;
|
|
4589
|
+
tier_group_id?: components["schemas"]["FlakeId"];
|
|
4514
4590
|
};
|
|
4515
4591
|
ProductGameServerDto: {
|
|
4516
4592
|
id: components["schemas"]["FlakeId"];
|
|
@@ -5519,7 +5595,7 @@ export interface components {
|
|
|
5519
5595
|
* @description Represents the status of a subscription change.
|
|
5520
5596
|
* @enum {string}
|
|
5521
5597
|
*/
|
|
5522
|
-
SubscriptionChangeStatusDto: "invalid" | "pending_payment" | "pending_renewal" | "applied" | "canceled";
|
|
5598
|
+
SubscriptionChangeStatusDto: "invalid" | "pending_payment" | "pending_renewal" | "applied" | "canceled" | "pending_verification";
|
|
5523
5599
|
/** @description Data transfer object representing a store subscription. */
|
|
5524
5600
|
SubscriptionDto: {
|
|
5525
5601
|
id: components["schemas"]["FlakeId"];
|
|
@@ -5787,6 +5863,7 @@ export interface components {
|
|
|
5787
5863
|
/** @description Represents a line item within a subscription. */
|
|
5788
5864
|
SubscriptionLineDto: {
|
|
5789
5865
|
id: components["schemas"]["FlakeId"];
|
|
5866
|
+
store_id: components["schemas"]["FlakeId"];
|
|
5790
5867
|
subscription_id: components["schemas"]["FlakeId"];
|
|
5791
5868
|
checkout_line_id?: components["schemas"]["FlakeId"];
|
|
5792
5869
|
initial_order_line_id?: components["schemas"]["FlakeId"];
|
|
@@ -5972,6 +6049,24 @@ export interface components {
|
|
|
5972
6049
|
updated_at?: null | string;
|
|
5973
6050
|
updated_by?: components["schemas"]["ActorDto"];
|
|
5974
6051
|
};
|
|
6052
|
+
TierGroupDto: {
|
|
6053
|
+
id: components["schemas"]["FlakeId"];
|
|
6054
|
+
store_id: components["schemas"]["FlakeId"];
|
|
6055
|
+
/** @description The name of the tier group. */
|
|
6056
|
+
name: string;
|
|
6057
|
+
/**
|
|
6058
|
+
* Format: date-time
|
|
6059
|
+
* @description When the tier group was created.
|
|
6060
|
+
*/
|
|
6061
|
+
created_at: string;
|
|
6062
|
+
created_by: components["schemas"]["ActorDto"];
|
|
6063
|
+
/**
|
|
6064
|
+
* Format: date-time
|
|
6065
|
+
* @description When was the tier group last updated.
|
|
6066
|
+
*/
|
|
6067
|
+
updated_at?: null | string;
|
|
6068
|
+
updated_by?: components["schemas"]["ActorDto"];
|
|
6069
|
+
};
|
|
5975
6070
|
ToggleStorePaymentMethodTypeRequestDto: {
|
|
5976
6071
|
enabled: boolean;
|
|
5977
6072
|
};
|
|
@@ -6306,6 +6401,10 @@ export interface components {
|
|
|
6306
6401
|
subscription_change: components["schemas"]["SubscriptionChangeDto"];
|
|
6307
6402
|
pending_payment?: components["schemas"]["CheckoutPaymentInfoDto"];
|
|
6308
6403
|
};
|
|
6404
|
+
UpdateTierGroupRequestDto: {
|
|
6405
|
+
/** @description The name of the tier group. */
|
|
6406
|
+
name: string;
|
|
6407
|
+
};
|
|
6309
6408
|
UpdateTrialEligibilityOverrideDto: {
|
|
6310
6409
|
product_id?: components["schemas"]["FlakeId"];
|
|
6311
6410
|
/** Format: date-time */
|
|
@@ -6462,6 +6561,7 @@ export interface components {
|
|
|
6462
6561
|
is_coupons_disabled?: null | boolean;
|
|
6463
6562
|
/** @description Indicates if applying affiliate links should be disabled on the product. */
|
|
6464
6563
|
is_affiliate_links_disabled?: null | boolean;
|
|
6564
|
+
tier_group_id?: components["schemas"]["FlakeId"];
|
|
6465
6565
|
};
|
|
6466
6566
|
/** @description Represents the configuration for trials of a product */
|
|
6467
6567
|
UpsertProductTrialConfigurationDto: {
|
|
@@ -11397,6 +11497,167 @@ export interface operations {
|
|
|
11397
11497
|
};
|
|
11398
11498
|
};
|
|
11399
11499
|
};
|
|
11500
|
+
TierGroups_ListTierGroups: {
|
|
11501
|
+
parameters: {
|
|
11502
|
+
query?: never;
|
|
11503
|
+
header?: never;
|
|
11504
|
+
path?: never;
|
|
11505
|
+
cookie?: never;
|
|
11506
|
+
};
|
|
11507
|
+
requestBody?: never;
|
|
11508
|
+
responses: {
|
|
11509
|
+
/** @description OK */
|
|
11510
|
+
200: {
|
|
11511
|
+
headers: {
|
|
11512
|
+
[name: string]: unknown;
|
|
11513
|
+
};
|
|
11514
|
+
content: {
|
|
11515
|
+
"application/json": components["schemas"]["TierGroupDto"][];
|
|
11516
|
+
};
|
|
11517
|
+
};
|
|
11518
|
+
/** @description Error response */
|
|
11519
|
+
default: {
|
|
11520
|
+
headers: {
|
|
11521
|
+
[name: string]: unknown;
|
|
11522
|
+
};
|
|
11523
|
+
content: {
|
|
11524
|
+
"application/json": components["schemas"]["PayNowError"];
|
|
11525
|
+
};
|
|
11526
|
+
};
|
|
11527
|
+
};
|
|
11528
|
+
};
|
|
11529
|
+
TierGroups_CreateTierGroup: {
|
|
11530
|
+
parameters: {
|
|
11531
|
+
query?: never;
|
|
11532
|
+
header?: never;
|
|
11533
|
+
path?: never;
|
|
11534
|
+
cookie?: never;
|
|
11535
|
+
};
|
|
11536
|
+
requestBody?: {
|
|
11537
|
+
content: {
|
|
11538
|
+
"application/json": components["schemas"]["CreateTierGroupRequestDto"];
|
|
11539
|
+
"text/json": components["schemas"]["CreateTierGroupRequestDto"];
|
|
11540
|
+
"application/*+json": components["schemas"]["CreateTierGroupRequestDto"];
|
|
11541
|
+
};
|
|
11542
|
+
};
|
|
11543
|
+
responses: {
|
|
11544
|
+
/** @description OK */
|
|
11545
|
+
200: {
|
|
11546
|
+
headers: {
|
|
11547
|
+
[name: string]: unknown;
|
|
11548
|
+
};
|
|
11549
|
+
content: {
|
|
11550
|
+
"application/json": components["schemas"]["TierGroupDto"];
|
|
11551
|
+
};
|
|
11552
|
+
};
|
|
11553
|
+
/** @description Error response */
|
|
11554
|
+
default: {
|
|
11555
|
+
headers: {
|
|
11556
|
+
[name: string]: unknown;
|
|
11557
|
+
};
|
|
11558
|
+
content: {
|
|
11559
|
+
"application/json": components["schemas"]["PayNowError"];
|
|
11560
|
+
};
|
|
11561
|
+
};
|
|
11562
|
+
};
|
|
11563
|
+
};
|
|
11564
|
+
TierGroups_GetTierGroup: {
|
|
11565
|
+
parameters: {
|
|
11566
|
+
query?: never;
|
|
11567
|
+
header?: never;
|
|
11568
|
+
path: {
|
|
11569
|
+
tierGroupId: components["schemas"]["FlakeId"];
|
|
11570
|
+
};
|
|
11571
|
+
cookie?: never;
|
|
11572
|
+
};
|
|
11573
|
+
requestBody?: never;
|
|
11574
|
+
responses: {
|
|
11575
|
+
/** @description OK */
|
|
11576
|
+
200: {
|
|
11577
|
+
headers: {
|
|
11578
|
+
[name: string]: unknown;
|
|
11579
|
+
};
|
|
11580
|
+
content: {
|
|
11581
|
+
"application/json": components["schemas"]["TierGroupDto"];
|
|
11582
|
+
};
|
|
11583
|
+
};
|
|
11584
|
+
/** @description Error response */
|
|
11585
|
+
default: {
|
|
11586
|
+
headers: {
|
|
11587
|
+
[name: string]: unknown;
|
|
11588
|
+
};
|
|
11589
|
+
content: {
|
|
11590
|
+
"application/json": components["schemas"]["PayNowError"];
|
|
11591
|
+
};
|
|
11592
|
+
};
|
|
11593
|
+
};
|
|
11594
|
+
};
|
|
11595
|
+
TierGroups_DeleteTierGroup: {
|
|
11596
|
+
parameters: {
|
|
11597
|
+
query?: never;
|
|
11598
|
+
header?: never;
|
|
11599
|
+
path: {
|
|
11600
|
+
tierGroupId: components["schemas"]["FlakeId"];
|
|
11601
|
+
};
|
|
11602
|
+
cookie?: never;
|
|
11603
|
+
};
|
|
11604
|
+
requestBody?: never;
|
|
11605
|
+
responses: {
|
|
11606
|
+
/** @description No Content */
|
|
11607
|
+
204: {
|
|
11608
|
+
headers: {
|
|
11609
|
+
[name: string]: unknown;
|
|
11610
|
+
};
|
|
11611
|
+
content?: never;
|
|
11612
|
+
};
|
|
11613
|
+
/** @description Error response */
|
|
11614
|
+
default: {
|
|
11615
|
+
headers: {
|
|
11616
|
+
[name: string]: unknown;
|
|
11617
|
+
};
|
|
11618
|
+
content: {
|
|
11619
|
+
"application/json": components["schemas"]["PayNowError"];
|
|
11620
|
+
};
|
|
11621
|
+
};
|
|
11622
|
+
};
|
|
11623
|
+
};
|
|
11624
|
+
TierGroups_UpdateTierGroup: {
|
|
11625
|
+
parameters: {
|
|
11626
|
+
query?: never;
|
|
11627
|
+
header?: never;
|
|
11628
|
+
path: {
|
|
11629
|
+
tierGroupId: components["schemas"]["FlakeId"];
|
|
11630
|
+
};
|
|
11631
|
+
cookie?: never;
|
|
11632
|
+
};
|
|
11633
|
+
requestBody?: {
|
|
11634
|
+
content: {
|
|
11635
|
+
"application/json": components["schemas"]["UpdateTierGroupRequestDto"];
|
|
11636
|
+
"text/json": components["schemas"]["UpdateTierGroupRequestDto"];
|
|
11637
|
+
"application/*+json": components["schemas"]["UpdateTierGroupRequestDto"];
|
|
11638
|
+
};
|
|
11639
|
+
};
|
|
11640
|
+
responses: {
|
|
11641
|
+
/** @description OK */
|
|
11642
|
+
200: {
|
|
11643
|
+
headers: {
|
|
11644
|
+
[name: string]: unknown;
|
|
11645
|
+
};
|
|
11646
|
+
content: {
|
|
11647
|
+
"application/json": components["schemas"]["TierGroupDto"];
|
|
11648
|
+
};
|
|
11649
|
+
};
|
|
11650
|
+
/** @description Error response */
|
|
11651
|
+
default: {
|
|
11652
|
+
headers: {
|
|
11653
|
+
[name: string]: unknown;
|
|
11654
|
+
};
|
|
11655
|
+
content: {
|
|
11656
|
+
"application/json": components["schemas"]["PayNowError"];
|
|
11657
|
+
};
|
|
11658
|
+
};
|
|
11659
|
+
};
|
|
11660
|
+
};
|
|
11400
11661
|
Trials_GetTrials: {
|
|
11401
11662
|
parameters: {
|
|
11402
11663
|
query?: {
|
|
@@ -12453,6 +12714,26 @@ export declare const operationMappings: {
|
|
|
12453
12714
|
readonly method: "DELETE";
|
|
12454
12715
|
readonly path: "/v1/stores/{storeId}/tags/{tagId}/image";
|
|
12455
12716
|
};
|
|
12717
|
+
readonly TierGroups_ListTierGroups: {
|
|
12718
|
+
readonly method: "GET";
|
|
12719
|
+
readonly path: "/v1/stores/{storeId}/tier-groups";
|
|
12720
|
+
};
|
|
12721
|
+
readonly TierGroups_CreateTierGroup: {
|
|
12722
|
+
readonly method: "POST";
|
|
12723
|
+
readonly path: "/v1/stores/{storeId}/tier-groups";
|
|
12724
|
+
};
|
|
12725
|
+
readonly TierGroups_GetTierGroup: {
|
|
12726
|
+
readonly method: "GET";
|
|
12727
|
+
readonly path: "/v1/stores/{storeId}/tier-groups/{tierGroupId}";
|
|
12728
|
+
};
|
|
12729
|
+
readonly TierGroups_UpdateTierGroup: {
|
|
12730
|
+
readonly method: "PATCH";
|
|
12731
|
+
readonly path: "/v1/stores/{storeId}/tier-groups/{tierGroupId}";
|
|
12732
|
+
};
|
|
12733
|
+
readonly TierGroups_DeleteTierGroup: {
|
|
12734
|
+
readonly method: "DELETE";
|
|
12735
|
+
readonly path: "/v1/stores/{storeId}/tier-groups/{tierGroupId}";
|
|
12736
|
+
};
|
|
12456
12737
|
readonly Trials_GetTrials: {
|
|
12457
12738
|
readonly method: "GET";
|
|
12458
12739
|
readonly path: "/v1/stores/{storeId}/trials";
|