@paynow-gg/typescript-sdk 1.0.13 → 1.0.15
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.
|
@@ -1416,79 +1416,79 @@ export interface paths {
|
|
|
1416
1416
|
patch?: never;
|
|
1417
1417
|
trace?: never;
|
|
1418
1418
|
};
|
|
1419
|
-
"/v1/stores/{storeId}/
|
|
1419
|
+
"/v1/stores/{storeId}/trials": {
|
|
1420
1420
|
parameters: {
|
|
1421
1421
|
query?: never;
|
|
1422
1422
|
header?: never;
|
|
1423
1423
|
path?: never;
|
|
1424
1424
|
cookie?: never;
|
|
1425
1425
|
};
|
|
1426
|
-
/**
|
|
1427
|
-
|
|
1428
|
-
* @description Retrieves all trial eligibility overrides for the specified customer.
|
|
1429
|
-
*/
|
|
1430
|
-
get: operations["TrialEligibility_GetOverrides"];
|
|
1426
|
+
/** Get trials for a store */
|
|
1427
|
+
get: operations["Trials_GetTrials"];
|
|
1431
1428
|
put?: never;
|
|
1432
|
-
|
|
1433
|
-
* Create trial eligibility override
|
|
1434
|
-
* @description Creates a new trial eligibility override for the specified customer.
|
|
1435
|
-
*/
|
|
1436
|
-
post: operations["TrialEligibility_CreateOverride"];
|
|
1429
|
+
post?: never;
|
|
1437
1430
|
delete?: never;
|
|
1438
1431
|
options?: never;
|
|
1439
1432
|
head?: never;
|
|
1440
1433
|
patch?: never;
|
|
1441
1434
|
trace?: never;
|
|
1442
1435
|
};
|
|
1443
|
-
"/v1/stores/{storeId}/
|
|
1436
|
+
"/v1/stores/{storeId}/trials/{trialId}": {
|
|
1444
1437
|
parameters: {
|
|
1445
1438
|
query?: never;
|
|
1446
1439
|
header?: never;
|
|
1447
1440
|
path?: never;
|
|
1448
1441
|
cookie?: never;
|
|
1449
1442
|
};
|
|
1450
|
-
|
|
1443
|
+
/** Get a trial by ID for a store */
|
|
1444
|
+
get: operations["Trials_GetTrial"];
|
|
1451
1445
|
put?: never;
|
|
1452
1446
|
post?: never;
|
|
1453
|
-
|
|
1454
|
-
* Delete trial eligibility override
|
|
1455
|
-
* @description Deletes an existing trial eligibility override.
|
|
1456
|
-
*/
|
|
1457
|
-
delete: operations["TrialEligibility_DeleteOverride"];
|
|
1447
|
+
delete?: never;
|
|
1458
1448
|
options?: never;
|
|
1459
1449
|
head?: never;
|
|
1460
1450
|
patch?: never;
|
|
1461
1451
|
trace?: never;
|
|
1462
1452
|
};
|
|
1463
|
-
"/v1/stores/{storeId}/trials": {
|
|
1453
|
+
"/v1/stores/{storeId}/customers/{customerId}/trials/eligibility/overrides": {
|
|
1464
1454
|
parameters: {
|
|
1465
1455
|
query?: never;
|
|
1466
1456
|
header?: never;
|
|
1467
1457
|
path?: never;
|
|
1468
1458
|
cookie?: never;
|
|
1469
1459
|
};
|
|
1470
|
-
/**
|
|
1471
|
-
|
|
1460
|
+
/**
|
|
1461
|
+
* Get trial eligibility overrides for a specific customer
|
|
1462
|
+
* @description Retrieves all trial eligibility overrides for the specified customer.
|
|
1463
|
+
*/
|
|
1464
|
+
get: operations["Trials_GetEligibilityOverridesForCustomer"];
|
|
1472
1465
|
put?: never;
|
|
1473
|
-
|
|
1466
|
+
/**
|
|
1467
|
+
* Create trial eligibility override for a customer
|
|
1468
|
+
* @description Creates a new trial eligibility override for the specified customer.
|
|
1469
|
+
*/
|
|
1470
|
+
post: operations["Trials_CreateEligibilityOverrideForCustomer"];
|
|
1474
1471
|
delete?: never;
|
|
1475
1472
|
options?: never;
|
|
1476
1473
|
head?: never;
|
|
1477
1474
|
patch?: never;
|
|
1478
1475
|
trace?: never;
|
|
1479
1476
|
};
|
|
1480
|
-
"/v1/stores/{storeId}/trials/{
|
|
1477
|
+
"/v1/stores/{storeId}/customers/{customerId}/trials/eligibility/overrides/{trialEligibilityOverrideId}": {
|
|
1481
1478
|
parameters: {
|
|
1482
1479
|
query?: never;
|
|
1483
1480
|
header?: never;
|
|
1484
1481
|
path?: never;
|
|
1485
1482
|
cookie?: never;
|
|
1486
1483
|
};
|
|
1487
|
-
|
|
1488
|
-
get: operations["Trials_GetTrial"];
|
|
1484
|
+
get?: never;
|
|
1489
1485
|
put?: never;
|
|
1490
1486
|
post?: never;
|
|
1491
|
-
|
|
1487
|
+
/**
|
|
1488
|
+
* Delete trial eligibility override for a customer
|
|
1489
|
+
* @description Deletes an existing trial eligibility override.
|
|
1490
|
+
*/
|
|
1491
|
+
delete: operations["Trials_DeleteEligibilityOverrideForCustomer"];
|
|
1492
1492
|
options?: never;
|
|
1493
1493
|
head?: never;
|
|
1494
1494
|
patch?: never;
|
|
@@ -8372,9 +8372,19 @@ export interface operations {
|
|
|
8372
8372
|
};
|
|
8373
8373
|
};
|
|
8374
8374
|
};
|
|
8375
|
-
|
|
8375
|
+
Trials_GetTrials: {
|
|
8376
8376
|
parameters: {
|
|
8377
8377
|
query?: {
|
|
8378
|
+
/** @description Filters trials by their status. Multiple statuses can be specified. */
|
|
8379
|
+
status?: components["schemas"]["TrialStatusDto"][];
|
|
8380
|
+
/** @description Filters trials by the customer identifier. */
|
|
8381
|
+
customer_id?: components["schemas"]["FlakeId"];
|
|
8382
|
+
/** @description Filters trials by the associated subscription identifier. */
|
|
8383
|
+
subscription_id?: components["schemas"]["FlakeId"];
|
|
8384
|
+
/** @description Filters trials by the checkout session identifier that initiated them. */
|
|
8385
|
+
checkout_id?: components["schemas"]["FlakeId"];
|
|
8386
|
+
/** @description Filters to a specific trial by its identifier. */
|
|
8387
|
+
trial_id?: components["schemas"]["FlakeId"];
|
|
8378
8388
|
/** @description The maximum number of items to return in a single request. */
|
|
8379
8389
|
limit?: number;
|
|
8380
8390
|
/**
|
|
@@ -8395,10 +8405,7 @@ export interface operations {
|
|
|
8395
8405
|
asc?: boolean;
|
|
8396
8406
|
};
|
|
8397
8407
|
header?: never;
|
|
8398
|
-
path
|
|
8399
|
-
/** @description The ID of the customer to retrieve trial eligibility overrides for. */
|
|
8400
|
-
customerId: components["schemas"]["FlakeId"];
|
|
8401
|
-
};
|
|
8408
|
+
path?: never;
|
|
8402
8409
|
cookie?: never;
|
|
8403
8410
|
};
|
|
8404
8411
|
requestBody?: never;
|
|
@@ -8409,7 +8416,7 @@ export interface operations {
|
|
|
8409
8416
|
[name: string]: unknown;
|
|
8410
8417
|
};
|
|
8411
8418
|
content: {
|
|
8412
|
-
"application/json": components["schemas"]["
|
|
8419
|
+
"application/json": components["schemas"]["TrialDto"][];
|
|
8413
8420
|
};
|
|
8414
8421
|
};
|
|
8415
8422
|
/** @description Error response */
|
|
@@ -8423,24 +8430,16 @@ export interface operations {
|
|
|
8423
8430
|
};
|
|
8424
8431
|
};
|
|
8425
8432
|
};
|
|
8426
|
-
|
|
8433
|
+
Trials_GetTrial: {
|
|
8427
8434
|
parameters: {
|
|
8428
8435
|
query?: never;
|
|
8429
8436
|
header?: never;
|
|
8430
8437
|
path: {
|
|
8431
|
-
|
|
8432
|
-
customerId: components["schemas"]["FlakeId"];
|
|
8438
|
+
trialId: components["schemas"]["FlakeId"];
|
|
8433
8439
|
};
|
|
8434
8440
|
cookie?: never;
|
|
8435
8441
|
};
|
|
8436
|
-
|
|
8437
|
-
requestBody?: {
|
|
8438
|
-
content: {
|
|
8439
|
-
"application/json": components["schemas"]["CreateTrialEligibilityOverrideDto"];
|
|
8440
|
-
"text/json": components["schemas"]["CreateTrialEligibilityOverrideDto"];
|
|
8441
|
-
"application/*+json": components["schemas"]["CreateTrialEligibilityOverrideDto"];
|
|
8442
|
-
};
|
|
8443
|
-
};
|
|
8442
|
+
requestBody?: never;
|
|
8444
8443
|
responses: {
|
|
8445
8444
|
/** @description OK */
|
|
8446
8445
|
200: {
|
|
@@ -8448,39 +8447,8 @@ export interface operations {
|
|
|
8448
8447
|
[name: string]: unknown;
|
|
8449
8448
|
};
|
|
8450
8449
|
content: {
|
|
8451
|
-
"application/json": components["schemas"]["
|
|
8452
|
-
};
|
|
8453
|
-
};
|
|
8454
|
-
/** @description Error response */
|
|
8455
|
-
default: {
|
|
8456
|
-
headers: {
|
|
8457
|
-
[name: string]: unknown;
|
|
8458
|
-
};
|
|
8459
|
-
content: {
|
|
8460
|
-
"application/json": components["schemas"]["PayNowError"];
|
|
8461
|
-
};
|
|
8462
|
-
};
|
|
8463
|
-
};
|
|
8464
|
-
};
|
|
8465
|
-
TrialEligibility_DeleteOverride: {
|
|
8466
|
-
parameters: {
|
|
8467
|
-
query?: never;
|
|
8468
|
-
header?: never;
|
|
8469
|
-
path: {
|
|
8470
|
-
/** @description The ID of the trial eligibility override to delete. */
|
|
8471
|
-
trialEligibilityOverrideId: components["schemas"]["FlakeId"];
|
|
8472
|
-
customerId: string;
|
|
8473
|
-
};
|
|
8474
|
-
cookie?: never;
|
|
8475
|
-
};
|
|
8476
|
-
requestBody?: never;
|
|
8477
|
-
responses: {
|
|
8478
|
-
/** @description No Content */
|
|
8479
|
-
204: {
|
|
8480
|
-
headers: {
|
|
8481
|
-
[name: string]: unknown;
|
|
8450
|
+
"application/json": components["schemas"]["TrialDto"];
|
|
8482
8451
|
};
|
|
8483
|
-
content?: never;
|
|
8484
8452
|
};
|
|
8485
8453
|
/** @description Error response */
|
|
8486
8454
|
default: {
|
|
@@ -8493,19 +8461,9 @@ export interface operations {
|
|
|
8493
8461
|
};
|
|
8494
8462
|
};
|
|
8495
8463
|
};
|
|
8496
|
-
|
|
8464
|
+
Trials_GetEligibilityOverridesForCustomer: {
|
|
8497
8465
|
parameters: {
|
|
8498
8466
|
query?: {
|
|
8499
|
-
/** @description Filters trials by their status. Multiple statuses can be specified. */
|
|
8500
|
-
status?: components["schemas"]["TrialStatusDto"][];
|
|
8501
|
-
/** @description Filters trials by the customer identifier. */
|
|
8502
|
-
customer_id?: components["schemas"]["FlakeId"];
|
|
8503
|
-
/** @description Filters trials by the associated subscription identifier. */
|
|
8504
|
-
subscription_id?: components["schemas"]["FlakeId"];
|
|
8505
|
-
/** @description Filters trials by the checkout session identifier that initiated them. */
|
|
8506
|
-
checkout_id?: components["schemas"]["FlakeId"];
|
|
8507
|
-
/** @description Filters to a specific trial by its identifier. */
|
|
8508
|
-
trial_id?: components["schemas"]["FlakeId"];
|
|
8509
8467
|
/** @description The maximum number of items to return in a single request. */
|
|
8510
8468
|
limit?: number;
|
|
8511
8469
|
/**
|
|
@@ -8526,7 +8484,10 @@ export interface operations {
|
|
|
8526
8484
|
asc?: boolean;
|
|
8527
8485
|
};
|
|
8528
8486
|
header?: never;
|
|
8529
|
-
path
|
|
8487
|
+
path: {
|
|
8488
|
+
/** @description The ID of the customer to retrieve trial eligibility overrides for. */
|
|
8489
|
+
customerId: components["schemas"]["FlakeId"];
|
|
8490
|
+
};
|
|
8530
8491
|
cookie?: never;
|
|
8531
8492
|
};
|
|
8532
8493
|
requestBody?: never;
|
|
@@ -8537,7 +8498,7 @@ export interface operations {
|
|
|
8537
8498
|
[name: string]: unknown;
|
|
8538
8499
|
};
|
|
8539
8500
|
content: {
|
|
8540
|
-
"application/json": components["schemas"]["
|
|
8501
|
+
"application/json": components["schemas"]["TrialEligibilityOverrideDto"][];
|
|
8541
8502
|
};
|
|
8542
8503
|
};
|
|
8543
8504
|
/** @description Error response */
|
|
@@ -8551,16 +8512,24 @@ export interface operations {
|
|
|
8551
8512
|
};
|
|
8552
8513
|
};
|
|
8553
8514
|
};
|
|
8554
|
-
|
|
8515
|
+
Trials_CreateEligibilityOverrideForCustomer: {
|
|
8555
8516
|
parameters: {
|
|
8556
8517
|
query?: never;
|
|
8557
8518
|
header?: never;
|
|
8558
8519
|
path: {
|
|
8559
|
-
|
|
8520
|
+
/** @description The ID of the customer to create the trial eligibility override for. */
|
|
8521
|
+
customerId: components["schemas"]["FlakeId"];
|
|
8560
8522
|
};
|
|
8561
8523
|
cookie?: never;
|
|
8562
8524
|
};
|
|
8563
|
-
|
|
8525
|
+
/** @description The trial eligibility override data. */
|
|
8526
|
+
requestBody?: {
|
|
8527
|
+
content: {
|
|
8528
|
+
"application/json": components["schemas"]["CreateTrialEligibilityOverrideDto"];
|
|
8529
|
+
"text/json": components["schemas"]["CreateTrialEligibilityOverrideDto"];
|
|
8530
|
+
"application/*+json": components["schemas"]["CreateTrialEligibilityOverrideDto"];
|
|
8531
|
+
};
|
|
8532
|
+
};
|
|
8564
8533
|
responses: {
|
|
8565
8534
|
/** @description OK */
|
|
8566
8535
|
200: {
|
|
@@ -8568,7 +8537,7 @@ export interface operations {
|
|
|
8568
8537
|
[name: string]: unknown;
|
|
8569
8538
|
};
|
|
8570
8539
|
content: {
|
|
8571
|
-
"application/json": components["schemas"]["
|
|
8540
|
+
"application/json": components["schemas"]["TrialEligibilityOverrideDto"];
|
|
8572
8541
|
};
|
|
8573
8542
|
};
|
|
8574
8543
|
/** @description Error response */
|
|
@@ -8582,6 +8551,37 @@ export interface operations {
|
|
|
8582
8551
|
};
|
|
8583
8552
|
};
|
|
8584
8553
|
};
|
|
8554
|
+
Trials_DeleteEligibilityOverrideForCustomer: {
|
|
8555
|
+
parameters: {
|
|
8556
|
+
query?: never;
|
|
8557
|
+
header?: never;
|
|
8558
|
+
path: {
|
|
8559
|
+
/** @description The ID of the trial eligibility override to delete. */
|
|
8560
|
+
trialEligibilityOverrideId: components["schemas"]["FlakeId"];
|
|
8561
|
+
customerId: string;
|
|
8562
|
+
};
|
|
8563
|
+
cookie?: never;
|
|
8564
|
+
};
|
|
8565
|
+
requestBody?: never;
|
|
8566
|
+
responses: {
|
|
8567
|
+
/** @description No Content */
|
|
8568
|
+
204: {
|
|
8569
|
+
headers: {
|
|
8570
|
+
[name: string]: unknown;
|
|
8571
|
+
};
|
|
8572
|
+
content?: never;
|
|
8573
|
+
};
|
|
8574
|
+
/** @description Error response */
|
|
8575
|
+
default: {
|
|
8576
|
+
headers: {
|
|
8577
|
+
[name: string]: unknown;
|
|
8578
|
+
};
|
|
8579
|
+
content: {
|
|
8580
|
+
"application/json": components["schemas"]["PayNowError"];
|
|
8581
|
+
};
|
|
8582
|
+
};
|
|
8583
|
+
};
|
|
8584
|
+
};
|
|
8585
8585
|
Webhooks_GetSubscriptions: {
|
|
8586
8586
|
parameters: {
|
|
8587
8587
|
query?: never;
|
|
@@ -9233,18 +9233,6 @@ export declare const operationMappings: {
|
|
|
9233
9233
|
readonly method: "DELETE";
|
|
9234
9234
|
readonly path: "/v1/stores/{storeId}/tags/{tagId}/image";
|
|
9235
9235
|
};
|
|
9236
|
-
readonly TrialEligibility_GetOverrides: {
|
|
9237
|
-
readonly method: "GET";
|
|
9238
|
-
readonly path: "/v1/stores/{storeId}/customers/{customerId}/trial-eligibility/overrides";
|
|
9239
|
-
};
|
|
9240
|
-
readonly TrialEligibility_CreateOverride: {
|
|
9241
|
-
readonly method: "POST";
|
|
9242
|
-
readonly path: "/v1/stores/{storeId}/customers/{customerId}/trial-eligibility/overrides";
|
|
9243
|
-
};
|
|
9244
|
-
readonly TrialEligibility_DeleteOverride: {
|
|
9245
|
-
readonly method: "DELETE";
|
|
9246
|
-
readonly path: "/v1/stores/{storeId}/customers/{customerId}/trial-eligibility/overrides/{trialEligibilityOverrideId}";
|
|
9247
|
-
};
|
|
9248
9236
|
readonly Trials_GetTrials: {
|
|
9249
9237
|
readonly method: "GET";
|
|
9250
9238
|
readonly path: "/v1/stores/{storeId}/trials";
|
|
@@ -9253,6 +9241,18 @@ export declare const operationMappings: {
|
|
|
9253
9241
|
readonly method: "GET";
|
|
9254
9242
|
readonly path: "/v1/stores/{storeId}/trials/{trialId}";
|
|
9255
9243
|
};
|
|
9244
|
+
readonly Trials_GetEligibilityOverridesForCustomer: {
|
|
9245
|
+
readonly method: "GET";
|
|
9246
|
+
readonly path: "/v1/stores/{storeId}/customers/{customerId}/trials/eligibility/overrides";
|
|
9247
|
+
};
|
|
9248
|
+
readonly Trials_CreateEligibilityOverrideForCustomer: {
|
|
9249
|
+
readonly method: "POST";
|
|
9250
|
+
readonly path: "/v1/stores/{storeId}/customers/{customerId}/trials/eligibility/overrides";
|
|
9251
|
+
};
|
|
9252
|
+
readonly Trials_DeleteEligibilityOverrideForCustomer: {
|
|
9253
|
+
readonly method: "DELETE";
|
|
9254
|
+
readonly path: "/v1/stores/{storeId}/customers/{customerId}/trials/eligibility/overrides/{trialEligibilityOverrideId}";
|
|
9255
|
+
};
|
|
9256
9256
|
readonly Webhooks_GetSubscriptions: {
|
|
9257
9257
|
readonly method: "GET";
|
|
9258
9258
|
readonly path: "/v1/stores/{storeId}/webhooks";
|