@paynow-gg/typescript-sdk 1.0.34 → 1.0.35
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 +215 -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": {
|
|
@@ -3536,6 +3576,8 @@ export interface components {
|
|
|
3536
3576
|
chargeback_at?: null | string;
|
|
3537
3577
|
last_payment_error?: components["schemas"]["LastPaymentErrorDto"];
|
|
3538
3578
|
};
|
|
3579
|
+
/** @enum {string} */
|
|
3580
|
+
PaymentGatewayDto: "invalid" | "stripe" | "paypal" | "forumpay" | "steamskins" | "nuvei" | "pagseguro" | "tazapay";
|
|
3539
3581
|
/** @description Contains detailed information about a payment method.
|
|
3540
3582
|
* DISCLAIMER: These fields are not guaranteed to be backwards compatible and may change or be removed without notice. */
|
|
3541
3583
|
PaymentMethodDetailsDto: {
|
|
@@ -3589,6 +3631,43 @@ export interface components {
|
|
|
3589
3631
|
*/
|
|
3590
3632
|
updated_at?: null | string;
|
|
3591
3633
|
};
|
|
3634
|
+
PaymentMethodTypeCountryCurrencyMappingDto: {
|
|
3635
|
+
country: string;
|
|
3636
|
+
currencies: string[];
|
|
3637
|
+
};
|
|
3638
|
+
PaymentMethodTypeDto: {
|
|
3639
|
+
id: string;
|
|
3640
|
+
name: string;
|
|
3641
|
+
logo_url?: null | string;
|
|
3642
|
+
checkout_logo_url_light?: null | string;
|
|
3643
|
+
checkout_logo_url_dark?: null | string;
|
|
3644
|
+
category: string;
|
|
3645
|
+
confirmation: string;
|
|
3646
|
+
enabled: boolean;
|
|
3647
|
+
refunds_supported: boolean;
|
|
3648
|
+
subscriptions_supported: boolean;
|
|
3649
|
+
kyc_required: boolean;
|
|
3650
|
+
supported_currencies: string[];
|
|
3651
|
+
supported_settlement_currencies: string[];
|
|
3652
|
+
supported_countries: string[];
|
|
3653
|
+
gateways: components["schemas"]["PaymentGatewayDto"][];
|
|
3654
|
+
fee_overrides: components["schemas"]["PaymentMethodTypeFeeOverrideDto"][];
|
|
3655
|
+
country_currency_mapping: components["schemas"]["PaymentMethodTypeCountryCurrencyMappingDto"][];
|
|
3656
|
+
/** Format: int64 */
|
|
3657
|
+
revenue_usage: number;
|
|
3658
|
+
/** Format: int64 */
|
|
3659
|
+
monthly_revenue_limit?: null | number;
|
|
3660
|
+
/** Format: int64 */
|
|
3661
|
+
default_monthly_revenue_limit?: null | number;
|
|
3662
|
+
settlement_time?: null | string;
|
|
3663
|
+
};
|
|
3664
|
+
PaymentMethodTypeFeeOverrideDto: {
|
|
3665
|
+
/** Format: int32 */
|
|
3666
|
+
fee_percentage: number;
|
|
3667
|
+
/** Format: int32 */
|
|
3668
|
+
fee_cents: number;
|
|
3669
|
+
countries: string[];
|
|
3670
|
+
};
|
|
3592
3671
|
/** @description Represents payout split results for multi-party payments */
|
|
3593
3672
|
PaymentPayoutSplitResultDto: {
|
|
3594
3673
|
user_id: components["schemas"]["FlakeId"];
|
|
@@ -4613,6 +4692,9 @@ export interface components {
|
|
|
4613
4692
|
updated_at?: null | string;
|
|
4614
4693
|
updated_by?: components["schemas"]["ActorDto"];
|
|
4615
4694
|
};
|
|
4695
|
+
ToggleStorePaymentMethodTypeRequestDto: {
|
|
4696
|
+
enabled: boolean;
|
|
4697
|
+
};
|
|
4616
4698
|
TrialDto: {
|
|
4617
4699
|
id: components["schemas"]["FlakeId"];
|
|
4618
4700
|
/** @description The human-readable formatted version of the trial identifier. */
|
|
@@ -5109,7 +5191,7 @@ export interface components {
|
|
|
5109
5191
|
validation: string;
|
|
5110
5192
|
};
|
|
5111
5193
|
/** @enum {string} */
|
|
5112
|
-
WebhookEventType: "
|
|
5194
|
+
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
5195
|
WebhookHistoryDto: {
|
|
5114
5196
|
/** Format: int32 */
|
|
5115
5197
|
page: number;
|
|
@@ -8195,34 +8277,9 @@ export interface operations {
|
|
|
8195
8277
|
};
|
|
8196
8278
|
};
|
|
8197
8279
|
};
|
|
8198
|
-
|
|
8280
|
+
PaymentMethodTypes_GetStorePaymentMethodTypes: {
|
|
8199
8281
|
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
|
-
};
|
|
8282
|
+
query?: never;
|
|
8226
8283
|
header?: never;
|
|
8227
8284
|
path?: never;
|
|
8228
8285
|
cookie?: never;
|
|
@@ -8235,7 +8292,7 @@ export interface operations {
|
|
|
8235
8292
|
[name: string]: unknown;
|
|
8236
8293
|
};
|
|
8237
8294
|
content: {
|
|
8238
|
-
"application/json": components["schemas"]["
|
|
8295
|
+
"application/json": components["schemas"]["PaymentMethodTypeDto"][];
|
|
8239
8296
|
};
|
|
8240
8297
|
};
|
|
8241
8298
|
/** @description Error response */
|
|
@@ -8249,25 +8306,29 @@ export interface operations {
|
|
|
8249
8306
|
};
|
|
8250
8307
|
};
|
|
8251
8308
|
};
|
|
8252
|
-
|
|
8309
|
+
PaymentMethodTypes_ToggleStorePaymentMethodType: {
|
|
8253
8310
|
parameters: {
|
|
8254
8311
|
query?: never;
|
|
8255
8312
|
header?: never;
|
|
8256
8313
|
path: {
|
|
8257
|
-
|
|
8314
|
+
paymentMethodTypeId: string;
|
|
8258
8315
|
};
|
|
8259
8316
|
cookie?: never;
|
|
8260
8317
|
};
|
|
8261
|
-
requestBody?:
|
|
8318
|
+
requestBody?: {
|
|
8319
|
+
content: {
|
|
8320
|
+
"application/json": components["schemas"]["ToggleStorePaymentMethodTypeRequestDto"];
|
|
8321
|
+
"text/json": components["schemas"]["ToggleStorePaymentMethodTypeRequestDto"];
|
|
8322
|
+
"application/*+json": components["schemas"]["ToggleStorePaymentMethodTypeRequestDto"];
|
|
8323
|
+
};
|
|
8324
|
+
};
|
|
8262
8325
|
responses: {
|
|
8263
|
-
/** @description
|
|
8264
|
-
|
|
8326
|
+
/** @description No Content */
|
|
8327
|
+
204: {
|
|
8265
8328
|
headers: {
|
|
8266
8329
|
[name: string]: unknown;
|
|
8267
8330
|
};
|
|
8268
|
-
content
|
|
8269
|
-
"application/json": components["schemas"]["PaymentDto"];
|
|
8270
|
-
};
|
|
8331
|
+
content?: never;
|
|
8271
8332
|
};
|
|
8272
8333
|
/** @description Error response */
|
|
8273
8334
|
default: {
|
|
@@ -8280,7 +8341,7 @@ export interface operations {
|
|
|
8280
8341
|
};
|
|
8281
8342
|
};
|
|
8282
8343
|
};
|
|
8283
|
-
|
|
8344
|
+
PaymentSettings_GetStorePaymentSettings: {
|
|
8284
8345
|
parameters: {
|
|
8285
8346
|
query?: never;
|
|
8286
8347
|
header?: never;
|
|
@@ -8309,7 +8370,7 @@ export interface operations {
|
|
|
8309
8370
|
};
|
|
8310
8371
|
};
|
|
8311
8372
|
};
|
|
8312
|
-
|
|
8373
|
+
PaymentSettings_UpdateStorePaymentSettings: {
|
|
8313
8374
|
parameters: {
|
|
8314
8375
|
query?: never;
|
|
8315
8376
|
header?: never;
|
|
@@ -8342,6 +8403,91 @@ export interface operations {
|
|
|
8342
8403
|
};
|
|
8343
8404
|
};
|
|
8344
8405
|
};
|
|
8406
|
+
Payments_GetPayments: {
|
|
8407
|
+
parameters: {
|
|
8408
|
+
query?: {
|
|
8409
|
+
/** @description The maximum number of items to return in a single request. */
|
|
8410
|
+
limit?: number;
|
|
8411
|
+
/**
|
|
8412
|
+
* @description Returns items after the specified ID.
|
|
8413
|
+
* Used for forward pagination through results.
|
|
8414
|
+
* @example null
|
|
8415
|
+
*/
|
|
8416
|
+
after?: components["schemas"]["FlakeId"];
|
|
8417
|
+
/**
|
|
8418
|
+
* @description Returns items before the specified ID.
|
|
8419
|
+
* Used for backward pagination through results.
|
|
8420
|
+
* @example null
|
|
8421
|
+
*/
|
|
8422
|
+
before?: components["schemas"]["FlakeId"];
|
|
8423
|
+
/** @description Determines the sort order of returned items.
|
|
8424
|
+
* When true, items are returned in ascending order.
|
|
8425
|
+
* When false, items are returned in descending order. */
|
|
8426
|
+
asc?: boolean;
|
|
8427
|
+
/** @description Filter by payment statuses */
|
|
8428
|
+
status?: components["schemas"]["PaymentStatusDto"][];
|
|
8429
|
+
/** @description Filter by order ID */
|
|
8430
|
+
order_id?: components["schemas"]["FlakeId"];
|
|
8431
|
+
/** @description Filter by customer ID */
|
|
8432
|
+
customer_id?: components["schemas"]["FlakeId"];
|
|
8433
|
+
};
|
|
8434
|
+
header?: never;
|
|
8435
|
+
path?: never;
|
|
8436
|
+
cookie?: never;
|
|
8437
|
+
};
|
|
8438
|
+
requestBody?: never;
|
|
8439
|
+
responses: {
|
|
8440
|
+
/** @description OK */
|
|
8441
|
+
200: {
|
|
8442
|
+
headers: {
|
|
8443
|
+
[name: string]: unknown;
|
|
8444
|
+
};
|
|
8445
|
+
content: {
|
|
8446
|
+
"application/json": components["schemas"]["PaymentDto"][];
|
|
8447
|
+
};
|
|
8448
|
+
};
|
|
8449
|
+
/** @description Error response */
|
|
8450
|
+
default: {
|
|
8451
|
+
headers: {
|
|
8452
|
+
[name: string]: unknown;
|
|
8453
|
+
};
|
|
8454
|
+
content: {
|
|
8455
|
+
"application/json": components["schemas"]["PayNowError"];
|
|
8456
|
+
};
|
|
8457
|
+
};
|
|
8458
|
+
};
|
|
8459
|
+
};
|
|
8460
|
+
Payments_GetPaymentById: {
|
|
8461
|
+
parameters: {
|
|
8462
|
+
query?: never;
|
|
8463
|
+
header?: never;
|
|
8464
|
+
path: {
|
|
8465
|
+
paymentId: components["schemas"]["FlakeId"];
|
|
8466
|
+
};
|
|
8467
|
+
cookie?: never;
|
|
8468
|
+
};
|
|
8469
|
+
requestBody?: never;
|
|
8470
|
+
responses: {
|
|
8471
|
+
/** @description OK */
|
|
8472
|
+
200: {
|
|
8473
|
+
headers: {
|
|
8474
|
+
[name: string]: unknown;
|
|
8475
|
+
};
|
|
8476
|
+
content: {
|
|
8477
|
+
"application/json": components["schemas"]["PaymentDto"];
|
|
8478
|
+
};
|
|
8479
|
+
};
|
|
8480
|
+
/** @description Error response */
|
|
8481
|
+
default: {
|
|
8482
|
+
headers: {
|
|
8483
|
+
[name: string]: unknown;
|
|
8484
|
+
};
|
|
8485
|
+
content: {
|
|
8486
|
+
"application/json": components["schemas"]["PayNowError"];
|
|
8487
|
+
};
|
|
8488
|
+
};
|
|
8489
|
+
};
|
|
8490
|
+
};
|
|
8345
8491
|
Products_GetProducts: {
|
|
8346
8492
|
parameters: {
|
|
8347
8493
|
query?: never;
|
|
@@ -10021,6 +10167,22 @@ export declare const operationMappings: {
|
|
|
10021
10167
|
readonly method: "POST";
|
|
10022
10168
|
readonly path: "/v1/stores/{storeId}/orders/{orderId}/refund";
|
|
10023
10169
|
};
|
|
10170
|
+
readonly PaymentMethodTypes_GetStorePaymentMethodTypes: {
|
|
10171
|
+
readonly method: "GET";
|
|
10172
|
+
readonly path: "/v1/stores/{storeId}/payment-method-types";
|
|
10173
|
+
};
|
|
10174
|
+
readonly PaymentMethodTypes_ToggleStorePaymentMethodType: {
|
|
10175
|
+
readonly method: "PATCH";
|
|
10176
|
+
readonly path: "/v1/stores/{storeId}/payment-method-types/{paymentMethodTypeId}/toggle";
|
|
10177
|
+
};
|
|
10178
|
+
readonly PaymentSettings_GetStorePaymentSettings: {
|
|
10179
|
+
readonly method: "GET";
|
|
10180
|
+
readonly path: "/v1/stores/{storeId}/payment-settings";
|
|
10181
|
+
};
|
|
10182
|
+
readonly PaymentSettings_UpdateStorePaymentSettings: {
|
|
10183
|
+
readonly method: "PATCH";
|
|
10184
|
+
readonly path: "/v1/stores/{storeId}/payment-settings";
|
|
10185
|
+
};
|
|
10024
10186
|
readonly Payments_GetPayments: {
|
|
10025
10187
|
readonly method: "GET";
|
|
10026
10188
|
readonly path: "/v1/stores/{storeId}/payments";
|
|
@@ -10029,14 +10191,6 @@ export declare const operationMappings: {
|
|
|
10029
10191
|
readonly method: "GET";
|
|
10030
10192
|
readonly path: "/v1/stores/{storeId}/payments/{paymentId}";
|
|
10031
10193
|
};
|
|
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
10194
|
readonly Products_GetProducts: {
|
|
10041
10195
|
readonly method: "GET";
|
|
10042
10196
|
readonly path: "/v1/stores/{storeId}/products";
|