@paynow-gg/typescript-sdk 1.0.34 → 1.0.36
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 +219 -61
- package/dist/generated/management.d.ts.map +1 -1
- package/dist/generated/management.js +16 -8
- package/dist/generated/management.js.map +1 -1
- package/package.json +29 -29
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.
|
|
@@ -1067,7 +1067,7 @@ export interface paths {
|
|
|
1067
1067
|
patch?: never;
|
|
1068
1068
|
trace?: never;
|
|
1069
1069
|
};
|
|
1070
|
-
"/v1/stores/{storeId}/
|
|
1070
|
+
"/v1/stores/{storeId}/payment-method-types": {
|
|
1071
1071
|
parameters: {
|
|
1072
1072
|
query?: never;
|
|
1073
1073
|
header?: never;
|
|
@@ -1075,10 +1075,10 @@ export interface paths {
|
|
|
1075
1075
|
cookie?: never;
|
|
1076
1076
|
};
|
|
1077
1077
|
/**
|
|
1078
|
-
* Get
|
|
1079
|
-
* @description Retrieves all
|
|
1078
|
+
* Get store payment method types
|
|
1079
|
+
* @description Retrieves all payment method types associated with a store
|
|
1080
1080
|
*/
|
|
1081
|
-
get: operations["
|
|
1081
|
+
get: operations["PaymentMethodTypes_GetStorePaymentMethodTypes"];
|
|
1082
1082
|
put?: never;
|
|
1083
1083
|
post?: never;
|
|
1084
1084
|
delete?: never;
|
|
@@ -1087,27 +1087,27 @@ export interface paths {
|
|
|
1087
1087
|
patch?: never;
|
|
1088
1088
|
trace?: never;
|
|
1089
1089
|
};
|
|
1090
|
-
"/v1/stores/{storeId}/
|
|
1090
|
+
"/v1/stores/{storeId}/payment-method-types/{paymentMethodTypeId}/toggle": {
|
|
1091
1091
|
parameters: {
|
|
1092
1092
|
query?: never;
|
|
1093
1093
|
header?: never;
|
|
1094
1094
|
path?: never;
|
|
1095
1095
|
cookie?: never;
|
|
1096
1096
|
};
|
|
1097
|
-
|
|
1098
|
-
* Get payment by ID
|
|
1099
|
-
* @description Retrieves a payment by an ID.
|
|
1100
|
-
*/
|
|
1101
|
-
get: operations["Payments_GetPaymentById"];
|
|
1097
|
+
get?: never;
|
|
1102
1098
|
put?: never;
|
|
1103
1099
|
post?: never;
|
|
1104
1100
|
delete?: never;
|
|
1105
1101
|
options?: never;
|
|
1106
1102
|
head?: never;
|
|
1107
|
-
|
|
1103
|
+
/**
|
|
1104
|
+
* Toggle a store payment method type
|
|
1105
|
+
* @description Enables or disabled a payment method type for a store
|
|
1106
|
+
*/
|
|
1107
|
+
patch: operations["PaymentMethodTypes_ToggleStorePaymentMethodType"];
|
|
1108
1108
|
trace?: never;
|
|
1109
1109
|
};
|
|
1110
|
-
"/v1/stores/{storeId}/
|
|
1110
|
+
"/v1/stores/{storeId}/payment-settings": {
|
|
1111
1111
|
parameters: {
|
|
1112
1112
|
query?: never;
|
|
1113
1113
|
header?: never;
|
|
@@ -1118,7 +1118,7 @@ export interface paths {
|
|
|
1118
1118
|
* Get store payment settings
|
|
1119
1119
|
* @description Retrieves payment settings for a store.
|
|
1120
1120
|
*/
|
|
1121
|
-
get: operations["
|
|
1121
|
+
get: operations["PaymentSettings_GetStorePaymentSettings"];
|
|
1122
1122
|
put?: never;
|
|
1123
1123
|
post?: never;
|
|
1124
1124
|
delete?: never;
|
|
@@ -1128,7 +1128,47 @@ export interface paths {
|
|
|
1128
1128
|
* Updates store payment settings
|
|
1129
1129
|
* @description Updates payment settings for a store.
|
|
1130
1130
|
*/
|
|
1131
|
-
patch: operations["
|
|
1131
|
+
patch: operations["PaymentSettings_UpdateStorePaymentSettings"];
|
|
1132
|
+
trace?: never;
|
|
1133
|
+
};
|
|
1134
|
+
"/v1/stores/{storeId}/payments": {
|
|
1135
|
+
parameters: {
|
|
1136
|
+
query?: never;
|
|
1137
|
+
header?: never;
|
|
1138
|
+
path?: never;
|
|
1139
|
+
cookie?: never;
|
|
1140
|
+
};
|
|
1141
|
+
/**
|
|
1142
|
+
* Get payments
|
|
1143
|
+
* @description Retrieves all payments for the specified store using the filter specified.
|
|
1144
|
+
*/
|
|
1145
|
+
get: operations["Payments_GetPayments"];
|
|
1146
|
+
put?: never;
|
|
1147
|
+
post?: never;
|
|
1148
|
+
delete?: never;
|
|
1149
|
+
options?: never;
|
|
1150
|
+
head?: never;
|
|
1151
|
+
patch?: never;
|
|
1152
|
+
trace?: never;
|
|
1153
|
+
};
|
|
1154
|
+
"/v1/stores/{storeId}/payments/{paymentId}": {
|
|
1155
|
+
parameters: {
|
|
1156
|
+
query?: never;
|
|
1157
|
+
header?: never;
|
|
1158
|
+
path?: never;
|
|
1159
|
+
cookie?: never;
|
|
1160
|
+
};
|
|
1161
|
+
/**
|
|
1162
|
+
* Get payment by ID
|
|
1163
|
+
* @description Retrieves a payment by an ID.
|
|
1164
|
+
*/
|
|
1165
|
+
get: operations["Payments_GetPaymentById"];
|
|
1166
|
+
put?: never;
|
|
1167
|
+
post?: never;
|
|
1168
|
+
delete?: never;
|
|
1169
|
+
options?: never;
|
|
1170
|
+
head?: never;
|
|
1171
|
+
patch?: never;
|
|
1132
1172
|
trace?: never;
|
|
1133
1173
|
};
|
|
1134
1174
|
"/v1/stores/{storeId}/products": {
|
|
@@ -2803,6 +2843,7 @@ export interface components {
|
|
|
2803
2843
|
online_only: boolean;
|
|
2804
2844
|
/** @description List of specific game server IDs where this command should be executed, overriding default behavior. */
|
|
2805
2845
|
override_execute_on_gameserver_ids: components["schemas"]["FlakeId"][];
|
|
2846
|
+
execution_rule: components["schemas"]["ProductCommandExecutionRuleDto"];
|
|
2806
2847
|
/**
|
|
2807
2848
|
* Format: date-time
|
|
2808
2849
|
* @description Timestamp when the command was created.
|
|
@@ -3536,6 +3577,8 @@ export interface components {
|
|
|
3536
3577
|
chargeback_at?: null | string;
|
|
3537
3578
|
last_payment_error?: components["schemas"]["LastPaymentErrorDto"];
|
|
3538
3579
|
};
|
|
3580
|
+
/** @enum {string} */
|
|
3581
|
+
PaymentGatewayDto: "invalid" | "stripe" | "paypal" | "forumpay" | "steamskins" | "nuvei" | "pagseguro" | "tazapay";
|
|
3539
3582
|
/** @description Contains detailed information about a payment method.
|
|
3540
3583
|
* DISCLAIMER: These fields are not guaranteed to be backwards compatible and may change or be removed without notice. */
|
|
3541
3584
|
PaymentMethodDetailsDto: {
|
|
@@ -3589,6 +3632,43 @@ export interface components {
|
|
|
3589
3632
|
*/
|
|
3590
3633
|
updated_at?: null | string;
|
|
3591
3634
|
};
|
|
3635
|
+
PaymentMethodTypeCountryCurrencyMappingDto: {
|
|
3636
|
+
country: string;
|
|
3637
|
+
currencies: string[];
|
|
3638
|
+
};
|
|
3639
|
+
PaymentMethodTypeDto: {
|
|
3640
|
+
id: string;
|
|
3641
|
+
name: string;
|
|
3642
|
+
logo_url?: null | string;
|
|
3643
|
+
checkout_logo_url_light?: null | string;
|
|
3644
|
+
checkout_logo_url_dark?: null | string;
|
|
3645
|
+
category: string;
|
|
3646
|
+
confirmation: string;
|
|
3647
|
+
enabled: boolean;
|
|
3648
|
+
refunds_supported: boolean;
|
|
3649
|
+
subscriptions_supported: boolean;
|
|
3650
|
+
kyc_required: boolean;
|
|
3651
|
+
supported_currencies: string[];
|
|
3652
|
+
supported_settlement_currencies: string[];
|
|
3653
|
+
supported_countries: string[];
|
|
3654
|
+
gateways: components["schemas"]["PaymentGatewayDto"][];
|
|
3655
|
+
fee_overrides: components["schemas"]["PaymentMethodTypeFeeOverrideDto"][];
|
|
3656
|
+
country_currency_mapping: components["schemas"]["PaymentMethodTypeCountryCurrencyMappingDto"][];
|
|
3657
|
+
/** Format: int64 */
|
|
3658
|
+
revenue_usage: number;
|
|
3659
|
+
/** Format: int64 */
|
|
3660
|
+
monthly_revenue_limit?: null | number;
|
|
3661
|
+
/** Format: int64 */
|
|
3662
|
+
default_monthly_revenue_limit?: null | number;
|
|
3663
|
+
settlement_time?: null | string;
|
|
3664
|
+
};
|
|
3665
|
+
PaymentMethodTypeFeeOverrideDto: {
|
|
3666
|
+
/** Format: int32 */
|
|
3667
|
+
fee_percentage: number;
|
|
3668
|
+
/** Format: int32 */
|
|
3669
|
+
fee_cents: number;
|
|
3670
|
+
countries: string[];
|
|
3671
|
+
};
|
|
3592
3672
|
/** @description Represents payout split results for multi-party payments */
|
|
3593
3673
|
PaymentPayoutSplitResultDto: {
|
|
3594
3674
|
user_id: components["schemas"]["FlakeId"];
|
|
@@ -3709,6 +3789,8 @@ export interface components {
|
|
|
3709
3789
|
* (executing on all game servers or on the selected game server is selection is enabled) */
|
|
3710
3790
|
override_execute_on_gameserver_ids?: null | components["schemas"]["FlakeId"][];
|
|
3711
3791
|
};
|
|
3792
|
+
/** @enum {string} */
|
|
3793
|
+
ProductCommandExecutionRuleDto: "invalid" | "once_per_item" | "once_per_order";
|
|
3712
3794
|
/**
|
|
3713
3795
|
* @description Defines the stages at which product commands can be executed.
|
|
3714
3796
|
* @enum {string}
|
|
@@ -4613,6 +4695,9 @@ export interface components {
|
|
|
4613
4695
|
updated_at?: null | string;
|
|
4614
4696
|
updated_by?: components["schemas"]["ActorDto"];
|
|
4615
4697
|
};
|
|
4698
|
+
ToggleStorePaymentMethodTypeRequestDto: {
|
|
4699
|
+
enabled: boolean;
|
|
4700
|
+
};
|
|
4616
4701
|
TrialDto: {
|
|
4617
4702
|
id: components["schemas"]["FlakeId"];
|
|
4618
4703
|
/** @description The human-readable formatted version of the trial identifier. */
|
|
@@ -4972,6 +5057,7 @@ export interface components {
|
|
|
4972
5057
|
online_only: boolean;
|
|
4973
5058
|
/** @description List of specific game server IDs where this command should be executed. */
|
|
4974
5059
|
override_execute_on_gameserver_ids?: null | components["schemas"]["FlakeId"][];
|
|
5060
|
+
execution_rule: components["schemas"]["ProductCommandExecutionRuleDto"];
|
|
4975
5061
|
};
|
|
4976
5062
|
UpsertProductRequestDto: {
|
|
4977
5063
|
/** @description The unique URL-safe identifier (slug) for the product. */
|
|
@@ -5109,7 +5195,7 @@ export interface components {
|
|
|
5109
5195
|
validation: string;
|
|
5110
5196
|
};
|
|
5111
5197
|
/** @enum {string} */
|
|
5112
|
-
WebhookEventType: "
|
|
5198
|
+
WebhookEventType: "OnIgnore" | "OnOrderCompleted" | "OnRefund" | "OnChargeback" | "OnDeliveryItemAdded" | "OnDeliveryItemActivated" | "OnDeliveryItemUsed" | "OnDeliveryItemRevoked" | "OnSubscriptionActivated" | "OnSubscriptionRenewed" | "OnSubscriptionCanceled" | "OnDiscordOrderActionsQueued" | "OnConnectedUserRegistered" | "OnConnectedUserBecamePayable" | "OnConnectedUserPayoutCreated" | "OnConnectedUserPayoutCompleted" | "OnConnectedUserTransactionInserted" | "OnConnectedUserBecameUnpayable" | "OnTrialActivated" | "OnTrialCompleted" | "OnTrialCanceled" | "OnPurchaseFollowUpAttemptEmailSent" | "OnPurchaseFollowUpAttemptSucceeded" | "OnAbandonedCheckoutRecoveryAttemptEmailSent" | "OnAbandonedCheckoutRecoveryAttemptSucceeded";
|
|
5113
5199
|
WebhookHistoryDto: {
|
|
5114
5200
|
/** Format: int32 */
|
|
5115
5201
|
page: number;
|
|
@@ -8195,34 +8281,9 @@ export interface operations {
|
|
|
8195
8281
|
};
|
|
8196
8282
|
};
|
|
8197
8283
|
};
|
|
8198
|
-
|
|
8284
|
+
PaymentMethodTypes_GetStorePaymentMethodTypes: {
|
|
8199
8285
|
parameters: {
|
|
8200
|
-
query?:
|
|
8201
|
-
/** @description The maximum number of items to return in a single request. */
|
|
8202
|
-
limit?: number;
|
|
8203
|
-
/**
|
|
8204
|
-
* @description Returns items after the specified ID.
|
|
8205
|
-
* Used for forward pagination through results.
|
|
8206
|
-
* @example null
|
|
8207
|
-
*/
|
|
8208
|
-
after?: components["schemas"]["FlakeId"];
|
|
8209
|
-
/**
|
|
8210
|
-
* @description Returns items before the specified ID.
|
|
8211
|
-
* Used for backward pagination through results.
|
|
8212
|
-
* @example null
|
|
8213
|
-
*/
|
|
8214
|
-
before?: components["schemas"]["FlakeId"];
|
|
8215
|
-
/** @description Determines the sort order of returned items.
|
|
8216
|
-
* When true, items are returned in ascending order.
|
|
8217
|
-
* When false, items are returned in descending order. */
|
|
8218
|
-
asc?: boolean;
|
|
8219
|
-
/** @description Filter by payment statuses */
|
|
8220
|
-
status?: components["schemas"]["PaymentStatusDto"][];
|
|
8221
|
-
/** @description Filter by order ID */
|
|
8222
|
-
order_id?: components["schemas"]["FlakeId"];
|
|
8223
|
-
/** @description Filter by customer ID */
|
|
8224
|
-
customer_id?: components["schemas"]["FlakeId"];
|
|
8225
|
-
};
|
|
8286
|
+
query?: never;
|
|
8226
8287
|
header?: never;
|
|
8227
8288
|
path?: never;
|
|
8228
8289
|
cookie?: never;
|
|
@@ -8235,7 +8296,7 @@ export interface operations {
|
|
|
8235
8296
|
[name: string]: unknown;
|
|
8236
8297
|
};
|
|
8237
8298
|
content: {
|
|
8238
|
-
"application/json": components["schemas"]["
|
|
8299
|
+
"application/json": components["schemas"]["PaymentMethodTypeDto"][];
|
|
8239
8300
|
};
|
|
8240
8301
|
};
|
|
8241
8302
|
/** @description Error response */
|
|
@@ -8249,25 +8310,29 @@ export interface operations {
|
|
|
8249
8310
|
};
|
|
8250
8311
|
};
|
|
8251
8312
|
};
|
|
8252
|
-
|
|
8313
|
+
PaymentMethodTypes_ToggleStorePaymentMethodType: {
|
|
8253
8314
|
parameters: {
|
|
8254
8315
|
query?: never;
|
|
8255
8316
|
header?: never;
|
|
8256
8317
|
path: {
|
|
8257
|
-
|
|
8318
|
+
paymentMethodTypeId: string;
|
|
8258
8319
|
};
|
|
8259
8320
|
cookie?: never;
|
|
8260
8321
|
};
|
|
8261
|
-
requestBody?:
|
|
8322
|
+
requestBody?: {
|
|
8323
|
+
content: {
|
|
8324
|
+
"application/json": components["schemas"]["ToggleStorePaymentMethodTypeRequestDto"];
|
|
8325
|
+
"text/json": components["schemas"]["ToggleStorePaymentMethodTypeRequestDto"];
|
|
8326
|
+
"application/*+json": components["schemas"]["ToggleStorePaymentMethodTypeRequestDto"];
|
|
8327
|
+
};
|
|
8328
|
+
};
|
|
8262
8329
|
responses: {
|
|
8263
|
-
/** @description
|
|
8264
|
-
|
|
8330
|
+
/** @description No Content */
|
|
8331
|
+
204: {
|
|
8265
8332
|
headers: {
|
|
8266
8333
|
[name: string]: unknown;
|
|
8267
8334
|
};
|
|
8268
|
-
content
|
|
8269
|
-
"application/json": components["schemas"]["PaymentDto"];
|
|
8270
|
-
};
|
|
8335
|
+
content?: never;
|
|
8271
8336
|
};
|
|
8272
8337
|
/** @description Error response */
|
|
8273
8338
|
default: {
|
|
@@ -8280,7 +8345,7 @@ export interface operations {
|
|
|
8280
8345
|
};
|
|
8281
8346
|
};
|
|
8282
8347
|
};
|
|
8283
|
-
|
|
8348
|
+
PaymentSettings_GetStorePaymentSettings: {
|
|
8284
8349
|
parameters: {
|
|
8285
8350
|
query?: never;
|
|
8286
8351
|
header?: never;
|
|
@@ -8309,7 +8374,7 @@ export interface operations {
|
|
|
8309
8374
|
};
|
|
8310
8375
|
};
|
|
8311
8376
|
};
|
|
8312
|
-
|
|
8377
|
+
PaymentSettings_UpdateStorePaymentSettings: {
|
|
8313
8378
|
parameters: {
|
|
8314
8379
|
query?: never;
|
|
8315
8380
|
header?: never;
|
|
@@ -8342,6 +8407,91 @@ export interface operations {
|
|
|
8342
8407
|
};
|
|
8343
8408
|
};
|
|
8344
8409
|
};
|
|
8410
|
+
Payments_GetPayments: {
|
|
8411
|
+
parameters: {
|
|
8412
|
+
query?: {
|
|
8413
|
+
/** @description The maximum number of items to return in a single request. */
|
|
8414
|
+
limit?: number;
|
|
8415
|
+
/**
|
|
8416
|
+
* @description Returns items after the specified ID.
|
|
8417
|
+
* Used for forward pagination through results.
|
|
8418
|
+
* @example null
|
|
8419
|
+
*/
|
|
8420
|
+
after?: components["schemas"]["FlakeId"];
|
|
8421
|
+
/**
|
|
8422
|
+
* @description Returns items before the specified ID.
|
|
8423
|
+
* Used for backward pagination through results.
|
|
8424
|
+
* @example null
|
|
8425
|
+
*/
|
|
8426
|
+
before?: components["schemas"]["FlakeId"];
|
|
8427
|
+
/** @description Determines the sort order of returned items.
|
|
8428
|
+
* When true, items are returned in ascending order.
|
|
8429
|
+
* When false, items are returned in descending order. */
|
|
8430
|
+
asc?: boolean;
|
|
8431
|
+
/** @description Filter by payment statuses */
|
|
8432
|
+
status?: components["schemas"]["PaymentStatusDto"][];
|
|
8433
|
+
/** @description Filter by order ID */
|
|
8434
|
+
order_id?: components["schemas"]["FlakeId"];
|
|
8435
|
+
/** @description Filter by customer ID */
|
|
8436
|
+
customer_id?: components["schemas"]["FlakeId"];
|
|
8437
|
+
};
|
|
8438
|
+
header?: never;
|
|
8439
|
+
path?: never;
|
|
8440
|
+
cookie?: never;
|
|
8441
|
+
};
|
|
8442
|
+
requestBody?: never;
|
|
8443
|
+
responses: {
|
|
8444
|
+
/** @description OK */
|
|
8445
|
+
200: {
|
|
8446
|
+
headers: {
|
|
8447
|
+
[name: string]: unknown;
|
|
8448
|
+
};
|
|
8449
|
+
content: {
|
|
8450
|
+
"application/json": components["schemas"]["PaymentDto"][];
|
|
8451
|
+
};
|
|
8452
|
+
};
|
|
8453
|
+
/** @description Error response */
|
|
8454
|
+
default: {
|
|
8455
|
+
headers: {
|
|
8456
|
+
[name: string]: unknown;
|
|
8457
|
+
};
|
|
8458
|
+
content: {
|
|
8459
|
+
"application/json": components["schemas"]["PayNowError"];
|
|
8460
|
+
};
|
|
8461
|
+
};
|
|
8462
|
+
};
|
|
8463
|
+
};
|
|
8464
|
+
Payments_GetPaymentById: {
|
|
8465
|
+
parameters: {
|
|
8466
|
+
query?: never;
|
|
8467
|
+
header?: never;
|
|
8468
|
+
path: {
|
|
8469
|
+
paymentId: components["schemas"]["FlakeId"];
|
|
8470
|
+
};
|
|
8471
|
+
cookie?: never;
|
|
8472
|
+
};
|
|
8473
|
+
requestBody?: never;
|
|
8474
|
+
responses: {
|
|
8475
|
+
/** @description OK */
|
|
8476
|
+
200: {
|
|
8477
|
+
headers: {
|
|
8478
|
+
[name: string]: unknown;
|
|
8479
|
+
};
|
|
8480
|
+
content: {
|
|
8481
|
+
"application/json": components["schemas"]["PaymentDto"];
|
|
8482
|
+
};
|
|
8483
|
+
};
|
|
8484
|
+
/** @description Error response */
|
|
8485
|
+
default: {
|
|
8486
|
+
headers: {
|
|
8487
|
+
[name: string]: unknown;
|
|
8488
|
+
};
|
|
8489
|
+
content: {
|
|
8490
|
+
"application/json": components["schemas"]["PayNowError"];
|
|
8491
|
+
};
|
|
8492
|
+
};
|
|
8493
|
+
};
|
|
8494
|
+
};
|
|
8345
8495
|
Products_GetProducts: {
|
|
8346
8496
|
parameters: {
|
|
8347
8497
|
query?: never;
|
|
@@ -10021,6 +10171,22 @@ export declare const operationMappings: {
|
|
|
10021
10171
|
readonly method: "POST";
|
|
10022
10172
|
readonly path: "/v1/stores/{storeId}/orders/{orderId}/refund";
|
|
10023
10173
|
};
|
|
10174
|
+
readonly PaymentMethodTypes_GetStorePaymentMethodTypes: {
|
|
10175
|
+
readonly method: "GET";
|
|
10176
|
+
readonly path: "/v1/stores/{storeId}/payment-method-types";
|
|
10177
|
+
};
|
|
10178
|
+
readonly PaymentMethodTypes_ToggleStorePaymentMethodType: {
|
|
10179
|
+
readonly method: "PATCH";
|
|
10180
|
+
readonly path: "/v1/stores/{storeId}/payment-method-types/{paymentMethodTypeId}/toggle";
|
|
10181
|
+
};
|
|
10182
|
+
readonly PaymentSettings_GetStorePaymentSettings: {
|
|
10183
|
+
readonly method: "GET";
|
|
10184
|
+
readonly path: "/v1/stores/{storeId}/payment-settings";
|
|
10185
|
+
};
|
|
10186
|
+
readonly PaymentSettings_UpdateStorePaymentSettings: {
|
|
10187
|
+
readonly method: "PATCH";
|
|
10188
|
+
readonly path: "/v1/stores/{storeId}/payment-settings";
|
|
10189
|
+
};
|
|
10024
10190
|
readonly Payments_GetPayments: {
|
|
10025
10191
|
readonly method: "GET";
|
|
10026
10192
|
readonly path: "/v1/stores/{storeId}/payments";
|
|
@@ -10029,14 +10195,6 @@ export declare const operationMappings: {
|
|
|
10029
10195
|
readonly method: "GET";
|
|
10030
10196
|
readonly path: "/v1/stores/{storeId}/payments/{paymentId}";
|
|
10031
10197
|
};
|
|
10032
|
-
readonly Payments_GetStorePaymentSettings: {
|
|
10033
|
-
readonly method: "GET";
|
|
10034
|
-
readonly path: "/v1/stores/{storeId}/payments/settings";
|
|
10035
|
-
};
|
|
10036
|
-
readonly Payments_UpdateStorePaymentSettings: {
|
|
10037
|
-
readonly method: "PATCH";
|
|
10038
|
-
readonly path: "/v1/stores/{storeId}/payments/settings";
|
|
10039
|
-
};
|
|
10040
10198
|
readonly Products_GetProducts: {
|
|
10041
10199
|
readonly method: "GET";
|
|
10042
10200
|
readonly path: "/v1/stores/{storeId}/products";
|