@paynow-gg/typescript-sdk 1.0.14 → 1.0.16
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/LICENSE +21 -21
- package/README.md +31 -31
- package/dist/generated/management.d.ts +10 -10
- package/dist/generated/management.d.ts.map +1 -1
- package/dist/generated/management.js +3 -3
- package/dist/generated/management.js.map +1 -1
- package/package.json +28 -28
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 PayNow Services Inc
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 PayNow Services Inc
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
# PayNow TypeScript SDK
|
|
2
|
-
|
|
3
|
-
A TypeScript/JavaScript SDK for the [PayNow.gg API](https://paynow.gitbook.io/paynow-api)
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install @paynow-gg/typescript-sdk
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Quick Start
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { createStorefrontClient } from "@paynow-gg/typescript-sdk";
|
|
15
|
-
|
|
16
|
-
const storefront = createStorefrontClient("411486491630370816");
|
|
17
|
-
|
|
18
|
-
storefront.store.getStorefrontStore().then((res) => console.log(res.data));
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
For issues with the SDK, please open an issue on GitHub.
|
|
22
|
-
For PayNow API documentation and support, visit the PayNow developer portal.
|
|
23
|
-
|
|
24
|
-
## PayNow.gg Support
|
|
25
|
-
|
|
26
|
-
For support, questions, or more information, join our Discord community:
|
|
27
|
-
|
|
28
|
-
- [Discord](https://discord.com/invite/paynow)
|
|
29
|
-
|
|
30
|
-
## Contributing
|
|
31
|
-
|
|
1
|
+
# PayNow TypeScript SDK
|
|
2
|
+
|
|
3
|
+
A TypeScript/JavaScript SDK for the [PayNow.gg API](https://paynow.gitbook.io/paynow-api)
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @paynow-gg/typescript-sdk
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { createStorefrontClient } from "@paynow-gg/typescript-sdk";
|
|
15
|
+
|
|
16
|
+
const storefront = createStorefrontClient("411486491630370816");
|
|
17
|
+
|
|
18
|
+
storefront.store.getStorefrontStore().then((res) => console.log(res.data));
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
For issues with the SDK, please open an issue on GitHub.
|
|
22
|
+
For PayNow API documentation and support, visit the PayNow developer portal.
|
|
23
|
+
|
|
24
|
+
## PayNow.gg Support
|
|
25
|
+
|
|
26
|
+
For support, questions, or more information, join our Discord community:
|
|
27
|
+
|
|
28
|
+
- [Discord](https://discord.com/invite/paynow)
|
|
29
|
+
|
|
30
|
+
## Contributing
|
|
31
|
+
|
|
32
32
|
Contributions are welcome! If you'd like to improve the SDK or suggest new features, please fork the repository, make your changes, and submit a pull request.
|
|
@@ -1077,7 +1077,7 @@ export interface paths {
|
|
|
1077
1077
|
/**
|
|
1078
1078
|
* Get products
|
|
1079
1079
|
* @description Retrieves all products for the specified store.
|
|
1080
|
-
* DO NOT USE THIS ROUTE FOR DISPLAYING PRODUCTS ON YOUR STOREFRONT, use the storefront API instead
|
|
1080
|
+
* DO NOT USE THIS ROUTE FOR DISPLAYING PRODUCTS ON YOUR STOREFRONT, use the storefront API instead!
|
|
1081
1081
|
*/
|
|
1082
1082
|
get: operations["Products_GetProducts"];
|
|
1083
1083
|
put?: never;
|
|
@@ -1461,13 +1461,13 @@ export interface paths {
|
|
|
1461
1461
|
* Get trial eligibility overrides for a specific customer
|
|
1462
1462
|
* @description Retrieves all trial eligibility overrides for the specified customer.
|
|
1463
1463
|
*/
|
|
1464
|
-
get: operations["
|
|
1464
|
+
get: operations["Trials_GetEligibilityOverridesForCustomer"];
|
|
1465
1465
|
put?: never;
|
|
1466
1466
|
/**
|
|
1467
1467
|
* Create trial eligibility override for a customer
|
|
1468
1468
|
* @description Creates a new trial eligibility override for the specified customer.
|
|
1469
1469
|
*/
|
|
1470
|
-
post: operations["
|
|
1470
|
+
post: operations["Trials_CreateEligibilityOverrideForCustomer"];
|
|
1471
1471
|
delete?: never;
|
|
1472
1472
|
options?: never;
|
|
1473
1473
|
head?: never;
|
|
@@ -1488,7 +1488,7 @@ export interface paths {
|
|
|
1488
1488
|
* Delete trial eligibility override for a customer
|
|
1489
1489
|
* @description Deletes an existing trial eligibility override.
|
|
1490
1490
|
*/
|
|
1491
|
-
delete: operations["
|
|
1491
|
+
delete: operations["Trials_DeleteEligibilityOverrideForCustomer"];
|
|
1492
1492
|
options?: never;
|
|
1493
1493
|
head?: never;
|
|
1494
1494
|
patch?: never;
|
|
@@ -8461,7 +8461,7 @@ export interface operations {
|
|
|
8461
8461
|
};
|
|
8462
8462
|
};
|
|
8463
8463
|
};
|
|
8464
|
-
|
|
8464
|
+
Trials_GetEligibilityOverridesForCustomer: {
|
|
8465
8465
|
parameters: {
|
|
8466
8466
|
query?: {
|
|
8467
8467
|
/** @description The maximum number of items to return in a single request. */
|
|
@@ -8512,7 +8512,7 @@ export interface operations {
|
|
|
8512
8512
|
};
|
|
8513
8513
|
};
|
|
8514
8514
|
};
|
|
8515
|
-
|
|
8515
|
+
Trials_CreateEligibilityOverrideForCustomer: {
|
|
8516
8516
|
parameters: {
|
|
8517
8517
|
query?: never;
|
|
8518
8518
|
header?: never;
|
|
@@ -8551,7 +8551,7 @@ export interface operations {
|
|
|
8551
8551
|
};
|
|
8552
8552
|
};
|
|
8553
8553
|
};
|
|
8554
|
-
|
|
8554
|
+
Trials_DeleteEligibilityOverrideForCustomer: {
|
|
8555
8555
|
parameters: {
|
|
8556
8556
|
query?: never;
|
|
8557
8557
|
header?: never;
|
|
@@ -9241,15 +9241,15 @@ export declare const operationMappings: {
|
|
|
9241
9241
|
readonly method: "GET";
|
|
9242
9242
|
readonly path: "/v1/stores/{storeId}/trials/{trialId}";
|
|
9243
9243
|
};
|
|
9244
|
-
readonly
|
|
9244
|
+
readonly Trials_GetEligibilityOverridesForCustomer: {
|
|
9245
9245
|
readonly method: "GET";
|
|
9246
9246
|
readonly path: "/v1/stores/{storeId}/customers/{customerId}/trials/eligibility/overrides";
|
|
9247
9247
|
};
|
|
9248
|
-
readonly
|
|
9248
|
+
readonly Trials_CreateEligibilityOverrideForCustomer: {
|
|
9249
9249
|
readonly method: "POST";
|
|
9250
9250
|
readonly path: "/v1/stores/{storeId}/customers/{customerId}/trials/eligibility/overrides";
|
|
9251
9251
|
};
|
|
9252
|
-
readonly
|
|
9252
|
+
readonly Trials_DeleteEligibilityOverrideForCustomer: {
|
|
9253
9253
|
readonly method: "DELETE";
|
|
9254
9254
|
readonly path: "/v1/stores/{storeId}/customers/{customerId}/trials/eligibility/overrides/{trialEligibilityOverrideId}";
|
|
9255
9255
|
};
|