@paynow-gg/typescript-sdk 1.0.21 → 1.0.22
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/client.js +1 -1
- package/dist/generated/management.d.ts +11 -3
- package/dist/generated/management.d.ts.map +1 -1
- package/dist/generated/management.js.map +1 -1
- package/dist/generated/storefront.d.ts +1 -1
- package/dist/generated/storefront.d.ts.map +1 -1
- package/package.json +29 -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.
|
package/dist/client.js
CHANGED
|
@@ -2063,7 +2063,7 @@ export interface components {
|
|
|
2063
2063
|
CreateCheckoutSessionLineDto: {
|
|
2064
2064
|
product_id: components["schemas"]["FlakeId"];
|
|
2065
2065
|
/** @description Determines whether this line should create a subscription */
|
|
2066
|
-
subscription
|
|
2066
|
+
subscription?: boolean | null;
|
|
2067
2067
|
/** @description Indicates whether the product should be trialed */
|
|
2068
2068
|
trial?: boolean | null;
|
|
2069
2069
|
gift_to?: components["schemas"]["CustomerPlatformAccountDto"];
|
|
@@ -2090,7 +2090,7 @@ export interface components {
|
|
|
2090
2090
|
* and allows for creating inline products (which is subject to special approval) */
|
|
2091
2091
|
CreateCheckoutSessionLineManagementDto: {
|
|
2092
2092
|
/** @description Determines whether this line should create a subscription */
|
|
2093
|
-
subscription
|
|
2093
|
+
subscription?: boolean | null;
|
|
2094
2094
|
/** @description Indicates whether the product should be trialed */
|
|
2095
2095
|
trial?: boolean | null;
|
|
2096
2096
|
gift_to?: components["schemas"]["CustomerPlatformAccountDto"];
|
|
@@ -2227,6 +2227,7 @@ export interface components {
|
|
|
2227
2227
|
CreateStorePaymentSettingsDto: {
|
|
2228
2228
|
show_all_payment_methods_for_subscriptions: boolean;
|
|
2229
2229
|
store_tax_inclusive_pricing: boolean;
|
|
2230
|
+
block_prepaid_cards: components["schemas"]["PrepaidCardsBlockingTypeDto"];
|
|
2230
2231
|
};
|
|
2231
2232
|
CreateTrialEligibilityOverrideDto: {
|
|
2232
2233
|
product_id: components["schemas"]["FlakeId"];
|
|
@@ -3380,7 +3381,7 @@ export interface components {
|
|
|
3380
3381
|
* @description A payment decline reason code.
|
|
3381
3382
|
* @enum {string}
|
|
3382
3383
|
*/
|
|
3383
|
-
PaymentDeclineCode: "unknown" | "generic_decline" | "call_issuer" | "authentication_required" | "currency_not_supported" | "duplicate_transaction" | "expired_card" | "fraudulent" | "incorrect_number" | "incorrect_cvc" | "incorrect_pin" | "incorrect_zip" | "insufficient_funds" | "invalid_account" | "invalid_amount" | "invalid_expiry_month" | "invalid_expiry_year" | "issuer_not_available" | "lost_card" | "merchant_blacklist" | "new_account_information_available" | "no_action_taken" | "pickup_card" | "pin_try_exceeded" | "restricted_card" | "stolen_card" | "testmode_decline" | "try_again_later" | "security_violation" | "card_velocity_exceeded" | "do_not_honor" | "processing_error" | "card_not_supported" | "transaction_not_allowed" | "authorization_revoked";
|
|
3384
|
+
PaymentDeclineCode: "unknown" | "generic_decline" | "call_issuer" | "authentication_required" | "currency_not_supported" | "duplicate_transaction" | "expired_card" | "fraudulent" | "incorrect_number" | "incorrect_cvc" | "incorrect_pin" | "incorrect_zip" | "insufficient_funds" | "invalid_account" | "invalid_amount" | "invalid_expiry_month" | "invalid_expiry_year" | "issuer_not_available" | "lost_card" | "merchant_blacklist" | "new_account_information_available" | "no_action_taken" | "pickup_card" | "pin_try_exceeded" | "restricted_card" | "stolen_card" | "testmode_decline" | "try_again_later" | "security_violation" | "card_velocity_exceeded" | "do_not_honor" | "processing_error" | "card_not_supported" | "transaction_not_allowed" | "authorization_revoked" | "store_blocked";
|
|
3384
3385
|
/** @description Represents a payment transaction */
|
|
3385
3386
|
PaymentDto: {
|
|
3386
3387
|
id: components["schemas"]["FlakeId"];
|
|
@@ -3672,6 +3673,11 @@ export interface components {
|
|
|
3672
3673
|
*/
|
|
3673
3674
|
payer_name?: string | null;
|
|
3674
3675
|
};
|
|
3676
|
+
/**
|
|
3677
|
+
* @description Defines when prepaid cards should be blocked from use.
|
|
3678
|
+
* @enum {string}
|
|
3679
|
+
*/
|
|
3680
|
+
PrepaidCardsBlockingTypeDto: "unspecified" | "none" | "trials" | "all_recurring";
|
|
3675
3681
|
ProductCommandDto: {
|
|
3676
3682
|
stage: components["schemas"]["ProductCommandStage"];
|
|
3677
3683
|
/** @description Content of the command. */
|
|
@@ -4347,6 +4353,7 @@ export interface components {
|
|
|
4347
4353
|
show_all_payment_methods_for_subscriptions: boolean;
|
|
4348
4354
|
/** @description Whether store pricing is tax-inclusive. */
|
|
4349
4355
|
store_tax_inclusive_pricing: boolean;
|
|
4356
|
+
block_prepaid_cards: components["schemas"]["PrepaidCardsBlockingTypeDto"];
|
|
4350
4357
|
/**
|
|
4351
4358
|
* Format: int64
|
|
4352
4359
|
* @description Maximum checkout amount allowed in cents.
|
|
@@ -4873,6 +4880,7 @@ export interface components {
|
|
|
4873
4880
|
UpdateStorePaymentSettingsDto: {
|
|
4874
4881
|
show_all_payment_methods_for_subscriptions?: boolean;
|
|
4875
4882
|
store_tax_inclusive_pricing?: boolean;
|
|
4883
|
+
block_prepaid_cards?: components["schemas"]["PrepaidCardsBlockingTypeDto"];
|
|
4876
4884
|
};
|
|
4877
4885
|
UpdateTrialEligibilityOverrideDto: {
|
|
4878
4886
|
product_id?: components["schemas"]["FlakeId"];
|