@moovio/sdk 0.0.0-dev.32 → 0.0.0-dev.34
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/bin/mcp-server.js +73 -15
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/authtokenrequest.d.ts +6 -0
- package/models/components/authtokenrequest.js +5 -0
- package/models/components/cardpaymenttransactionstatus.d.ts +1 -1
- package/models/components/cardpaymenttransactionstatus.js +1 -1
- package/models/components/index.d.ts +2 -0
- package/models/components/index.js +2 -0
- package/models/components/issuedcardauthorization.d.ts +9 -0
- package/models/components/issuedcardauthorization.js +3 -0
- package/models/components/issuedcardauthorizationevent.d.ts +9 -0
- package/models/components/issuedcardauthorizationevent.js +3 -0
- package/models/components/issuingdeclinereason.d.ts +37 -0
- package/models/components/issuingdeclinereason.js +68 -0
- package/models/components/oauth2clienttype.d.ts +22 -0
- package/models/components/oauth2clienttype.js +56 -0
- package/models/components/product.d.ts +5 -0
- package/models/components/product.js +2 -0
- package/models/components/productrequest.d.ts +5 -0
- package/models/components/productrequest.js +2 -0
- package/package.json +1 -1
package/bin/mcp-server.js
CHANGED
|
@@ -53621,9 +53621,9 @@ var init_config = __esm(() => {
|
|
|
53621
53621
|
SDK_METADATA = {
|
|
53622
53622
|
language: "typescript",
|
|
53623
53623
|
openapiDocVersion: "dev",
|
|
53624
|
-
sdkVersion: "0.0.0-dev.
|
|
53625
|
-
genVersion: "2.
|
|
53626
|
-
userAgent: "speakeasy-sdk/typescript 0.0.0-dev.
|
|
53624
|
+
sdkVersion: "0.0.0-dev.34",
|
|
53625
|
+
genVersion: "2.938.0",
|
|
53626
|
+
userAgent: "speakeasy-sdk/typescript 0.0.0-dev.34 2.938.0 dev @moovio/sdk"
|
|
53627
53627
|
};
|
|
53628
53628
|
});
|
|
53629
53629
|
|
|
@@ -57675,6 +57675,22 @@ var init_granttype = __esm(() => {
|
|
|
57675
57675
|
GrantType$outboundSchema = GrantType$inboundSchema;
|
|
57676
57676
|
});
|
|
57677
57677
|
|
|
57678
|
+
// src/models/components/oauth2clienttype.ts
|
|
57679
|
+
var OAuth2ClientType, OAuth2ClientType$inboundSchema, OAuth2ClientType$outboundSchema;
|
|
57680
|
+
var init_oauth2clienttype = __esm(() => {
|
|
57681
|
+
init_v3();
|
|
57682
|
+
OAuth2ClientType = {
|
|
57683
|
+
Web: "web",
|
|
57684
|
+
Device: "device",
|
|
57685
|
+
Service: "service",
|
|
57686
|
+
W: "w",
|
|
57687
|
+
D: "d",
|
|
57688
|
+
S: "s"
|
|
57689
|
+
};
|
|
57690
|
+
OAuth2ClientType$inboundSchema = nativeEnumType(OAuth2ClientType);
|
|
57691
|
+
OAuth2ClientType$outboundSchema = OAuth2ClientType$inboundSchema;
|
|
57692
|
+
});
|
|
57693
|
+
|
|
57678
57694
|
// src/models/components/authtokenrequest.ts
|
|
57679
57695
|
var AuthTokenRequest$inboundSchema, AuthTokenRequest$outboundSchema;
|
|
57680
57696
|
var init_authtokenrequest = __esm(() => {
|
|
@@ -57682,18 +57698,21 @@ var init_authtokenrequest = __esm(() => {
|
|
|
57682
57698
|
init_primitives();
|
|
57683
57699
|
init_primitives2();
|
|
57684
57700
|
init_granttype();
|
|
57701
|
+
init_oauth2clienttype();
|
|
57685
57702
|
AuthTokenRequest$inboundSchema = objectType({
|
|
57686
57703
|
grant_type: GrantType$inboundSchema,
|
|
57687
57704
|
client_id: optional3(string4()),
|
|
57688
57705
|
client_secret: optional3(string4()),
|
|
57689
57706
|
scope: optional3(string4()),
|
|
57690
|
-
refresh_token: optional3(string4())
|
|
57707
|
+
refresh_token: optional3(string4()),
|
|
57708
|
+
client_type: optional3(OAuth2ClientType$inboundSchema)
|
|
57691
57709
|
}).transform((v2) => {
|
|
57692
57710
|
return remap(v2, {
|
|
57693
57711
|
grant_type: "grantType",
|
|
57694
57712
|
client_id: "clientId",
|
|
57695
57713
|
client_secret: "clientSecret",
|
|
57696
|
-
refresh_token: "refreshToken"
|
|
57714
|
+
refresh_token: "refreshToken",
|
|
57715
|
+
client_type: "clientType"
|
|
57697
57716
|
});
|
|
57698
57717
|
});
|
|
57699
57718
|
AuthTokenRequest$outboundSchema = objectType({
|
|
@@ -57701,13 +57720,15 @@ var init_authtokenrequest = __esm(() => {
|
|
|
57701
57720
|
clientId: stringType().optional(),
|
|
57702
57721
|
clientSecret: stringType().optional(),
|
|
57703
57722
|
scope: stringType().optional(),
|
|
57704
|
-
refreshToken: stringType().optional()
|
|
57723
|
+
refreshToken: stringType().optional(),
|
|
57724
|
+
clientType: OAuth2ClientType$outboundSchema.optional()
|
|
57705
57725
|
}).transform((v2) => {
|
|
57706
57726
|
return remap(v2, {
|
|
57707
57727
|
grantType: "grant_type",
|
|
57708
57728
|
clientId: "client_id",
|
|
57709
57729
|
clientSecret: "client_secret",
|
|
57710
|
-
refreshToken: "refresh_token"
|
|
57730
|
+
refreshToken: "refresh_token",
|
|
57731
|
+
clientType: "client_type"
|
|
57711
57732
|
});
|
|
57712
57733
|
});
|
|
57713
57734
|
});
|
|
@@ -61991,7 +62012,7 @@ var init_cardpaymenttransactionstatus = __esm(() => {
|
|
|
61991
62012
|
Settled: "settled",
|
|
61992
62013
|
Failed: "failed",
|
|
61993
62014
|
Completed: "completed",
|
|
61994
|
-
|
|
62015
|
+
ClearedExternally: "cleared-externally"
|
|
61995
62016
|
};
|
|
61996
62017
|
CardPaymentTransactionStatus$inboundSchema = inboundSchema(CardPaymentTransactionStatus);
|
|
61997
62018
|
CardPaymentTransactionStatus$outboundSchema = outboundSchema(CardPaymentTransactionStatus);
|
|
@@ -67416,6 +67437,31 @@ var init_issuingauthorizationstatus = __esm(() => {
|
|
|
67416
67437
|
IssuingAuthorizationStatus$outboundSchema = outboundSchema(IssuingAuthorizationStatus);
|
|
67417
67438
|
});
|
|
67418
67439
|
|
|
67440
|
+
// src/models/components/issuingdeclinereason.ts
|
|
67441
|
+
var IssuingDeclineReason, IssuingDeclineReason$inboundSchema, IssuingDeclineReason$outboundSchema;
|
|
67442
|
+
var init_issuingdeclinereason = __esm(() => {
|
|
67443
|
+
init_enums();
|
|
67444
|
+
IssuingDeclineReason = {
|
|
67445
|
+
InsufficientFunds: "insufficient-funds",
|
|
67446
|
+
CardNotActive: "card-not-active",
|
|
67447
|
+
CardExpiration: "card-expiration",
|
|
67448
|
+
SpendCutoffReached: "spend-cutoff-reached",
|
|
67449
|
+
OutsideAllowedSchedule: "outside-allowed-schedule",
|
|
67450
|
+
SpendLimitExceeded: "spend-limit-exceeded",
|
|
67451
|
+
MerchantCategoryNotSupported: "merchant-category-not-supported",
|
|
67452
|
+
MerchantCategoryRestricted: "merchant-category-restricted",
|
|
67453
|
+
MerchantRestricted: "merchant-restricted",
|
|
67454
|
+
MerchantCountryNotSupported: "merchant-country-not-supported",
|
|
67455
|
+
UnsupportedTransaction: "unsupported-transaction",
|
|
67456
|
+
NetworkStandIn: "network-stand-in",
|
|
67457
|
+
DeclinedByIssuer: "declined-by-issuer",
|
|
67458
|
+
InvalidRequest: "invalid-request",
|
|
67459
|
+
SystemError: "system-error"
|
|
67460
|
+
};
|
|
67461
|
+
IssuingDeclineReason$inboundSchema = inboundSchema(IssuingDeclineReason);
|
|
67462
|
+
IssuingDeclineReason$outboundSchema = outboundSchema(IssuingDeclineReason);
|
|
67463
|
+
});
|
|
67464
|
+
|
|
67419
67465
|
// src/models/components/issuingmerchantdata.ts
|
|
67420
67466
|
var IssuingMerchantData$inboundSchema, IssuingMerchantData$outboundSchema;
|
|
67421
67467
|
var init_issuingmerchantdata = __esm(() => {
|
|
@@ -67448,6 +67494,7 @@ var init_issuedcardauthorization = __esm(() => {
|
|
|
67448
67494
|
init_primitives2();
|
|
67449
67495
|
init_cardissuingnetwork();
|
|
67450
67496
|
init_issuingauthorizationstatus();
|
|
67497
|
+
init_issuingdeclinereason();
|
|
67451
67498
|
init_issuingmerchantdata();
|
|
67452
67499
|
IssuedCardAuthorization$inboundSchema = objectType({
|
|
67453
67500
|
authorizationID: string4(),
|
|
@@ -67459,7 +67506,8 @@ var init_issuedcardauthorization = __esm(() => {
|
|
|
67459
67506
|
status: IssuingAuthorizationStatus$inboundSchema,
|
|
67460
67507
|
merchantData: IssuingMerchantData$inboundSchema,
|
|
67461
67508
|
createdOn: date4(),
|
|
67462
|
-
cardTransactions: optional3(arrayType(string4()))
|
|
67509
|
+
cardTransactions: optional3(arrayType(string4())),
|
|
67510
|
+
declineReason: optional3(IssuingDeclineReason$inboundSchema)
|
|
67463
67511
|
});
|
|
67464
67512
|
IssuedCardAuthorization$outboundSchema = objectType({
|
|
67465
67513
|
authorizationID: stringType(),
|
|
@@ -67471,7 +67519,8 @@ var init_issuedcardauthorization = __esm(() => {
|
|
|
67471
67519
|
status: IssuingAuthorizationStatus$outboundSchema,
|
|
67472
67520
|
merchantData: IssuingMerchantData$outboundSchema,
|
|
67473
67521
|
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
67474
|
-
cardTransactions: arrayType(stringType()).optional()
|
|
67522
|
+
cardTransactions: arrayType(stringType()).optional(),
|
|
67523
|
+
declineReason: IssuingDeclineReason$outboundSchema.optional()
|
|
67475
67524
|
});
|
|
67476
67525
|
});
|
|
67477
67526
|
|
|
@@ -67511,19 +67560,22 @@ var init_issuedcardauthorizationevent = __esm(() => {
|
|
|
67511
67560
|
init_primitives2();
|
|
67512
67561
|
init_issuedcardauthorizationeventresult();
|
|
67513
67562
|
init_issuedcardeventtype();
|
|
67563
|
+
init_issuingdeclinereason();
|
|
67514
67564
|
IssuedCardAuthorizationEvent$inboundSchema = objectType({
|
|
67515
67565
|
eventID: string4(),
|
|
67516
67566
|
eventType: IssuedCardEventType$inboundSchema,
|
|
67517
67567
|
amount: string4(),
|
|
67518
67568
|
result: IssuedCardAuthorizationEventResult$inboundSchema,
|
|
67519
|
-
createdOn: date4()
|
|
67569
|
+
createdOn: date4(),
|
|
67570
|
+
declineReason: optional3(IssuingDeclineReason$inboundSchema)
|
|
67520
67571
|
});
|
|
67521
67572
|
IssuedCardAuthorizationEvent$outboundSchema = objectType({
|
|
67522
67573
|
eventID: stringType(),
|
|
67523
67574
|
eventType: IssuedCardEventType$outboundSchema,
|
|
67524
67575
|
amount: stringType(),
|
|
67525
67576
|
result: IssuedCardAuthorizationEventResult$outboundSchema,
|
|
67526
|
-
createdOn: dateType().transform((v2) => v2.toISOString())
|
|
67577
|
+
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
67578
|
+
declineReason: IssuingDeclineReason$outboundSchema.optional()
|
|
67527
67579
|
});
|
|
67528
67580
|
});
|
|
67529
67581
|
|
|
@@ -69664,6 +69716,7 @@ var init_product = __esm(() => {
|
|
|
69664
69716
|
title: string4(),
|
|
69665
69717
|
description: optional3(string4()),
|
|
69666
69718
|
basePrice: AmountDecimal$inboundSchema,
|
|
69719
|
+
isTaxable: boolean4(),
|
|
69667
69720
|
optionGroups: optional3(arrayType(ProductOptionGroup$inboundSchema)),
|
|
69668
69721
|
images: optional3(arrayType(ProductImageMetadata$inboundSchema)),
|
|
69669
69722
|
category: optional3(ProductCategory$inboundSchema),
|
|
@@ -69676,6 +69729,7 @@ var init_product = __esm(() => {
|
|
|
69676
69729
|
title: stringType(),
|
|
69677
69730
|
description: stringType().optional(),
|
|
69678
69731
|
basePrice: AmountDecimal$outboundSchema,
|
|
69732
|
+
isTaxable: booleanType(),
|
|
69679
69733
|
optionGroups: arrayType(ProductOptionGroup$outboundSchema).optional(),
|
|
69680
69734
|
images: arrayType(ProductImageMetadata$outboundSchema).optional(),
|
|
69681
69735
|
category: ProductCategory$outboundSchema.optional(),
|
|
@@ -69753,6 +69807,7 @@ var init_productrequest = __esm(() => {
|
|
|
69753
69807
|
title: string4(),
|
|
69754
69808
|
description: optional3(string4()),
|
|
69755
69809
|
basePrice: AmountDecimal$inboundSchema,
|
|
69810
|
+
isTaxable: optional3(boolean4()),
|
|
69756
69811
|
images: optional3(arrayType(AssignProductImage$inboundSchema)),
|
|
69757
69812
|
optionGroups: optional3(arrayType(CreateProductOptionGroup$inboundSchema)),
|
|
69758
69813
|
categoryID: optional3(string4())
|
|
@@ -69761,6 +69816,7 @@ var init_productrequest = __esm(() => {
|
|
|
69761
69816
|
title: stringType(),
|
|
69762
69817
|
description: stringType().optional(),
|
|
69763
69818
|
basePrice: AmountDecimal$outboundSchema,
|
|
69819
|
+
isTaxable: booleanType().optional(),
|
|
69764
69820
|
images: arrayType(AssignProductImage$outboundSchema).optional(),
|
|
69765
69821
|
optionGroups: arrayType(CreateProductOptionGroup$outboundSchema).optional(),
|
|
69766
69822
|
categoryID: stringType().optional()
|
|
@@ -73395,6 +73451,7 @@ var init_components = __esm(() => {
|
|
|
73395
73451
|
init_issuingcontrols();
|
|
73396
73452
|
init_issuingcontrolserror();
|
|
73397
73453
|
init_issuingcontrolsrestrictionmode();
|
|
73454
|
+
init_issuingdeclinereason();
|
|
73398
73455
|
init_issuingintervallimit();
|
|
73399
73456
|
init_issuingmerchantcategory();
|
|
73400
73457
|
init_issuingmerchantdata();
|
|
@@ -73442,6 +73499,7 @@ var init_components = __esm(() => {
|
|
|
73442
73499
|
init_moovwallettransferpaymentmethod();
|
|
73443
73500
|
init_mxauthorizationcode();
|
|
73444
73501
|
init_mxpayload();
|
|
73502
|
+
init_oauth2clienttype();
|
|
73445
73503
|
init_occurrence();
|
|
73446
73504
|
init_occurrencesresponse();
|
|
73447
73505
|
init_occurrencestatus();
|
|
@@ -108134,7 +108192,7 @@ var init_webhooksUpdate2 = __esm(() => {
|
|
|
108134
108192
|
function createMCPServer(deps) {
|
|
108135
108193
|
const server = new McpServer({
|
|
108136
108194
|
name: "Moov",
|
|
108137
|
-
version: "0.0.0-dev.
|
|
108195
|
+
version: "0.0.0-dev.34"
|
|
108138
108196
|
});
|
|
108139
108197
|
const client = new MoovCore({
|
|
108140
108198
|
security: deps.security,
|
|
@@ -109756,7 +109814,7 @@ var routes = rn({
|
|
|
109756
109814
|
var app = Ve(routes, {
|
|
109757
109815
|
name: "mcp",
|
|
109758
109816
|
versionInfo: {
|
|
109759
|
-
currentVersion: "0.0.0-dev.
|
|
109817
|
+
currentVersion: "0.0.0-dev.34"
|
|
109760
109818
|
}
|
|
109761
109819
|
});
|
|
109762
109820
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -109764,5 +109822,5 @@ export {
|
|
|
109764
109822
|
app
|
|
109765
109823
|
};
|
|
109766
109824
|
|
|
109767
|
-
//# debugId=
|
|
109825
|
+
//# debugId=4D6B7C1842FAB8A264756E2164756E21
|
|
109768
109826
|
//# sourceMappingURL=mcp-server.js.map
|
package/lib/config.d.ts
CHANGED
|
@@ -39,8 +39,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
39
39
|
export declare const SDK_METADATA: {
|
|
40
40
|
readonly language: "typescript";
|
|
41
41
|
readonly openapiDocVersion: "dev";
|
|
42
|
-
readonly sdkVersion: "0.0.0-dev.
|
|
43
|
-
readonly genVersion: "2.
|
|
44
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0.0-dev.
|
|
42
|
+
readonly sdkVersion: "0.0.0-dev.34";
|
|
43
|
+
readonly genVersion: "2.938.0";
|
|
44
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.0.0-dev.34 2.938.0 dev @moovio/sdk";
|
|
45
45
|
};
|
|
46
46
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -31,8 +31,8 @@ function serverURLFromOptions(options) {
|
|
|
31
31
|
exports.SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "dev",
|
|
34
|
-
sdkVersion: "0.0.0-dev.
|
|
35
|
-
genVersion: "2.
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.0.0-dev.
|
|
34
|
+
sdkVersion: "0.0.0-dev.34",
|
|
35
|
+
genVersion: "2.938.0",
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.0.0-dev.34 2.938.0 dev @moovio/sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
package/mcp-server/mcp-server.js
CHANGED
|
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
|
|
|
22
22
|
exports.app = (0, core_1.buildApplication)(routes, {
|
|
23
23
|
name: "mcp",
|
|
24
24
|
versionInfo: {
|
|
25
|
-
currentVersion: "0.0.0-dev.
|
|
25
|
+
currentVersion: "0.0.0-dev.34",
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
(0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
|
package/mcp-server/server.js
CHANGED
|
@@ -211,7 +211,7 @@ const webhooksUpdate_js_1 = require("./tools/webhooksUpdate.js");
|
|
|
211
211
|
function createMCPServer(deps) {
|
|
212
212
|
const server = new mcp_js_1.McpServer({
|
|
213
213
|
name: "Moov",
|
|
214
|
-
version: "0.0.0-dev.
|
|
214
|
+
version: "0.0.0-dev.34",
|
|
215
215
|
});
|
|
216
216
|
const client = new core_js_1.MoovCore({
|
|
217
217
|
security: deps.security,
|
|
@@ -2,6 +2,7 @@ import * as z from "zod/v3";
|
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
import { GrantType } from "./granttype.js";
|
|
5
|
+
import { OAuth2ClientType } from "./oauth2clienttype.js";
|
|
5
6
|
export type AuthTokenRequest = {
|
|
6
7
|
/**
|
|
7
8
|
* The type of grant being requested.
|
|
@@ -28,6 +29,10 @@ export type AuthTokenRequest = {
|
|
|
28
29
|
* The refresh_token returned alongside the access token being refreshed. Required when `grant_type` is `refresh_token`.
|
|
29
30
|
*/
|
|
30
31
|
refreshToken?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The client type requesting a token. `device` and `service` clients do not require browser origin binding. Defaults to `web` when omitted. This field applies to the `client_credentials` grant; refreshed tokens keep the original client type.
|
|
34
|
+
*/
|
|
35
|
+
clientType?: OAuth2ClientType | undefined;
|
|
31
36
|
};
|
|
32
37
|
/** @internal */
|
|
33
38
|
export declare const AuthTokenRequest$inboundSchema: z.ZodType<AuthTokenRequest, z.ZodTypeDef, unknown>;
|
|
@@ -38,6 +43,7 @@ export type AuthTokenRequest$Outbound = {
|
|
|
38
43
|
client_secret?: string | undefined;
|
|
39
44
|
scope?: string | undefined;
|
|
40
45
|
refresh_token?: string | undefined;
|
|
46
|
+
client_type?: string | undefined;
|
|
41
47
|
};
|
|
42
48
|
/** @internal */
|
|
43
49
|
export declare const AuthTokenRequest$outboundSchema: z.ZodType<AuthTokenRequest$Outbound, z.ZodTypeDef, AuthTokenRequest>;
|
|
@@ -44,6 +44,7 @@ const primitives_js_1 = require("../../lib/primitives.js");
|
|
|
44
44
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
45
|
const types = __importStar(require("../../types/primitives.js"));
|
|
46
46
|
const granttype_js_1 = require("./granttype.js");
|
|
47
|
+
const oauth2clienttype_js_1 = require("./oauth2clienttype.js");
|
|
47
48
|
/** @internal */
|
|
48
49
|
exports.AuthTokenRequest$inboundSchema = z.object({
|
|
49
50
|
grant_type: granttype_js_1.GrantType$inboundSchema,
|
|
@@ -51,12 +52,14 @@ exports.AuthTokenRequest$inboundSchema = z.object({
|
|
|
51
52
|
client_secret: types.optional(types.string()),
|
|
52
53
|
scope: types.optional(types.string()),
|
|
53
54
|
refresh_token: types.optional(types.string()),
|
|
55
|
+
client_type: types.optional(oauth2clienttype_js_1.OAuth2ClientType$inboundSchema),
|
|
54
56
|
}).transform((v) => {
|
|
55
57
|
return (0, primitives_js_1.remap)(v, {
|
|
56
58
|
"grant_type": "grantType",
|
|
57
59
|
"client_id": "clientId",
|
|
58
60
|
"client_secret": "clientSecret",
|
|
59
61
|
"refresh_token": "refreshToken",
|
|
62
|
+
"client_type": "clientType",
|
|
60
63
|
});
|
|
61
64
|
});
|
|
62
65
|
/** @internal */
|
|
@@ -66,12 +69,14 @@ exports.AuthTokenRequest$outboundSchema = z.object({
|
|
|
66
69
|
clientSecret: z.string().optional(),
|
|
67
70
|
scope: z.string().optional(),
|
|
68
71
|
refreshToken: z.string().optional(),
|
|
72
|
+
clientType: oauth2clienttype_js_1.OAuth2ClientType$outboundSchema.optional(),
|
|
69
73
|
}).transform((v) => {
|
|
70
74
|
return (0, primitives_js_1.remap)(v, {
|
|
71
75
|
grantType: "grant_type",
|
|
72
76
|
clientId: "client_id",
|
|
73
77
|
clientSecret: "client_secret",
|
|
74
78
|
refreshToken: "refresh_token",
|
|
79
|
+
clientType: "client_type",
|
|
75
80
|
});
|
|
76
81
|
});
|
|
77
82
|
function authTokenRequestToJSON(authTokenRequest) {
|
|
@@ -10,7 +10,7 @@ export declare const CardPaymentTransactionStatus: {
|
|
|
10
10
|
readonly Settled: "settled";
|
|
11
11
|
readonly Failed: "failed";
|
|
12
12
|
readonly Completed: "completed";
|
|
13
|
-
readonly
|
|
13
|
+
readonly ClearedExternally: "cleared-externally";
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* Status of a card payment transaction.
|
|
@@ -48,7 +48,7 @@ exports.CardPaymentTransactionStatus = {
|
|
|
48
48
|
Settled: "settled",
|
|
49
49
|
Failed: "failed",
|
|
50
50
|
Completed: "completed",
|
|
51
|
-
|
|
51
|
+
ClearedExternally: "cleared-externally",
|
|
52
52
|
};
|
|
53
53
|
/** @internal */
|
|
54
54
|
exports.CardPaymentTransactionStatus$inboundSchema = openEnums.inboundSchema(exports.CardPaymentTransactionStatus);
|
|
@@ -343,6 +343,7 @@ export * from "./issuingauthorizationstatus.js";
|
|
|
343
343
|
export * from "./issuingcontrols.js";
|
|
344
344
|
export * from "./issuingcontrolserror.js";
|
|
345
345
|
export * from "./issuingcontrolsrestrictionmode.js";
|
|
346
|
+
export * from "./issuingdeclinereason.js";
|
|
346
347
|
export * from "./issuingintervallimit.js";
|
|
347
348
|
export * from "./issuingmerchantcategory.js";
|
|
348
349
|
export * from "./issuingmerchantdata.js";
|
|
@@ -390,6 +391,7 @@ export * from "./moovwalletpaymentmethod.js";
|
|
|
390
391
|
export * from "./moovwallettransferpaymentmethod.js";
|
|
391
392
|
export * from "./mxauthorizationcode.js";
|
|
392
393
|
export * from "./mxpayload.js";
|
|
394
|
+
export * from "./oauth2clienttype.js";
|
|
393
395
|
export * from "./occurrence.js";
|
|
394
396
|
export * from "./occurrencesresponse.js";
|
|
395
397
|
export * from "./occurrencestatus.js";
|
|
@@ -362,6 +362,7 @@ __exportStar(require("./issuingauthorizationstatus.js"), exports);
|
|
|
362
362
|
__exportStar(require("./issuingcontrols.js"), exports);
|
|
363
363
|
__exportStar(require("./issuingcontrolserror.js"), exports);
|
|
364
364
|
__exportStar(require("./issuingcontrolsrestrictionmode.js"), exports);
|
|
365
|
+
__exportStar(require("./issuingdeclinereason.js"), exports);
|
|
365
366
|
__exportStar(require("./issuingintervallimit.js"), exports);
|
|
366
367
|
__exportStar(require("./issuingmerchantcategory.js"), exports);
|
|
367
368
|
__exportStar(require("./issuingmerchantdata.js"), exports);
|
|
@@ -409,6 +410,7 @@ __exportStar(require("./moovwalletpaymentmethod.js"), exports);
|
|
|
409
410
|
__exportStar(require("./moovwallettransferpaymentmethod.js"), exports);
|
|
410
411
|
__exportStar(require("./mxauthorizationcode.js"), exports);
|
|
411
412
|
__exportStar(require("./mxpayload.js"), exports);
|
|
413
|
+
__exportStar(require("./oauth2clienttype.js"), exports);
|
|
412
414
|
__exportStar(require("./occurrence.js"), exports);
|
|
413
415
|
__exportStar(require("./occurrencesresponse.js"), exports);
|
|
414
416
|
__exportStar(require("./occurrencestatus.js"), exports);
|
|
@@ -3,6 +3,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
import { CardIssuingNetwork } from "./cardissuingnetwork.js";
|
|
5
5
|
import { IssuingAuthorizationStatus } from "./issuingauthorizationstatus.js";
|
|
6
|
+
import { IssuingDeclineReason } from "./issuingdeclinereason.js";
|
|
6
7
|
import { IssuingMerchantData, IssuingMerchantData$Outbound } from "./issuingmerchantdata.js";
|
|
7
8
|
export type IssuedCardAuthorization = {
|
|
8
9
|
authorizationID: string;
|
|
@@ -30,6 +31,13 @@ export type IssuedCardAuthorization = {
|
|
|
30
31
|
* List of card transaction IDs associated with this authorization.
|
|
31
32
|
*/
|
|
32
33
|
cardTransactions?: Array<string> | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The reason an authorization or authorization event was declined. Only present if the
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* authorization or event has been declined.
|
|
39
|
+
*/
|
|
40
|
+
declineReason?: IssuingDeclineReason | undefined;
|
|
33
41
|
};
|
|
34
42
|
/** @internal */
|
|
35
43
|
export declare const IssuedCardAuthorization$inboundSchema: z.ZodType<IssuedCardAuthorization, z.ZodTypeDef, unknown>;
|
|
@@ -45,6 +53,7 @@ export type IssuedCardAuthorization$Outbound = {
|
|
|
45
53
|
merchantData: IssuingMerchantData$Outbound;
|
|
46
54
|
createdOn: string;
|
|
47
55
|
cardTransactions?: Array<string> | undefined;
|
|
56
|
+
declineReason?: string | undefined;
|
|
48
57
|
};
|
|
49
58
|
/** @internal */
|
|
50
59
|
export declare const IssuedCardAuthorization$outboundSchema: z.ZodType<IssuedCardAuthorization$Outbound, z.ZodTypeDef, IssuedCardAuthorization>;
|
|
@@ -44,6 +44,7 @@ const schemas_js_1 = require("../../lib/schemas.js");
|
|
|
44
44
|
const types = __importStar(require("../../types/primitives.js"));
|
|
45
45
|
const cardissuingnetwork_js_1 = require("./cardissuingnetwork.js");
|
|
46
46
|
const issuingauthorizationstatus_js_1 = require("./issuingauthorizationstatus.js");
|
|
47
|
+
const issuingdeclinereason_js_1 = require("./issuingdeclinereason.js");
|
|
47
48
|
const issuingmerchantdata_js_1 = require("./issuingmerchantdata.js");
|
|
48
49
|
/** @internal */
|
|
49
50
|
exports.IssuedCardAuthorization$inboundSchema = z.object({
|
|
@@ -57,6 +58,7 @@ exports.IssuedCardAuthorization$inboundSchema = z.object({
|
|
|
57
58
|
merchantData: issuingmerchantdata_js_1.IssuingMerchantData$inboundSchema,
|
|
58
59
|
createdOn: types.date(),
|
|
59
60
|
cardTransactions: types.optional(z.array(types.string())),
|
|
61
|
+
declineReason: types.optional(issuingdeclinereason_js_1.IssuingDeclineReason$inboundSchema),
|
|
60
62
|
});
|
|
61
63
|
/** @internal */
|
|
62
64
|
exports.IssuedCardAuthorization$outboundSchema = z.object({
|
|
@@ -70,6 +72,7 @@ exports.IssuedCardAuthorization$outboundSchema = z.object({
|
|
|
70
72
|
merchantData: issuingmerchantdata_js_1.IssuingMerchantData$outboundSchema,
|
|
71
73
|
createdOn: z.date().transform(v => v.toISOString()),
|
|
72
74
|
cardTransactions: z.array(z.string()).optional(),
|
|
75
|
+
declineReason: issuingdeclinereason_js_1.IssuingDeclineReason$outboundSchema.optional(),
|
|
73
76
|
});
|
|
74
77
|
function issuedCardAuthorizationToJSON(issuedCardAuthorization) {
|
|
75
78
|
return JSON.stringify(exports.IssuedCardAuthorization$outboundSchema.parse(issuedCardAuthorization));
|
|
@@ -3,6 +3,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
import { IssuedCardAuthorizationEventResult } from "./issuedcardauthorizationeventresult.js";
|
|
5
5
|
import { IssuedCardEventType } from "./issuedcardeventtype.js";
|
|
6
|
+
import { IssuingDeclineReason } from "./issuingdeclinereason.js";
|
|
6
7
|
export type IssuedCardAuthorizationEvent = {
|
|
7
8
|
/**
|
|
8
9
|
* The identifier for this event. Use the `eventType` field to determine what resource is identified by this ID (`authorization`, `reversal`, etc.).
|
|
@@ -21,6 +22,13 @@ export type IssuedCardAuthorizationEvent = {
|
|
|
21
22
|
*/
|
|
22
23
|
result: IssuedCardAuthorizationEventResult;
|
|
23
24
|
createdOn: Date;
|
|
25
|
+
/**
|
|
26
|
+
* The reason an authorization or authorization event was declined. Only present if the
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* authorization or event has been declined.
|
|
30
|
+
*/
|
|
31
|
+
declineReason?: IssuingDeclineReason | undefined;
|
|
24
32
|
};
|
|
25
33
|
/** @internal */
|
|
26
34
|
export declare const IssuedCardAuthorizationEvent$inboundSchema: z.ZodType<IssuedCardAuthorizationEvent, z.ZodTypeDef, unknown>;
|
|
@@ -31,6 +39,7 @@ export type IssuedCardAuthorizationEvent$Outbound = {
|
|
|
31
39
|
amount: string;
|
|
32
40
|
result: string;
|
|
33
41
|
createdOn: string;
|
|
42
|
+
declineReason?: string | undefined;
|
|
34
43
|
};
|
|
35
44
|
/** @internal */
|
|
36
45
|
export declare const IssuedCardAuthorizationEvent$outboundSchema: z.ZodType<IssuedCardAuthorizationEvent$Outbound, z.ZodTypeDef, IssuedCardAuthorizationEvent>;
|
|
@@ -44,6 +44,7 @@ const schemas_js_1 = require("../../lib/schemas.js");
|
|
|
44
44
|
const types = __importStar(require("../../types/primitives.js"));
|
|
45
45
|
const issuedcardauthorizationeventresult_js_1 = require("./issuedcardauthorizationeventresult.js");
|
|
46
46
|
const issuedcardeventtype_js_1 = require("./issuedcardeventtype.js");
|
|
47
|
+
const issuingdeclinereason_js_1 = require("./issuingdeclinereason.js");
|
|
47
48
|
/** @internal */
|
|
48
49
|
exports.IssuedCardAuthorizationEvent$inboundSchema = z.object({
|
|
49
50
|
eventID: types.string(),
|
|
@@ -51,6 +52,7 @@ exports.IssuedCardAuthorizationEvent$inboundSchema = z.object({
|
|
|
51
52
|
amount: types.string(),
|
|
52
53
|
result: issuedcardauthorizationeventresult_js_1.IssuedCardAuthorizationEventResult$inboundSchema,
|
|
53
54
|
createdOn: types.date(),
|
|
55
|
+
declineReason: types.optional(issuingdeclinereason_js_1.IssuingDeclineReason$inboundSchema),
|
|
54
56
|
});
|
|
55
57
|
/** @internal */
|
|
56
58
|
exports.IssuedCardAuthorizationEvent$outboundSchema = z.object({
|
|
@@ -59,6 +61,7 @@ exports.IssuedCardAuthorizationEvent$outboundSchema = z.object({
|
|
|
59
61
|
amount: z.string(),
|
|
60
62
|
result: issuedcardauthorizationeventresult_js_1.IssuedCardAuthorizationEventResult$outboundSchema,
|
|
61
63
|
createdOn: z.date().transform(v => v.toISOString()),
|
|
64
|
+
declineReason: issuingdeclinereason_js_1.IssuingDeclineReason$outboundSchema.optional(),
|
|
62
65
|
});
|
|
63
66
|
function issuedCardAuthorizationEventToJSON(issuedCardAuthorizationEvent) {
|
|
64
67
|
return JSON.stringify(exports.IssuedCardAuthorizationEvent$outboundSchema.parse(issuedCardAuthorizationEvent));
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* The reason an authorization or authorization event was declined. Only present if the
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* authorization or event has been declined.
|
|
8
|
+
*/
|
|
9
|
+
export declare const IssuingDeclineReason: {
|
|
10
|
+
readonly InsufficientFunds: "insufficient-funds";
|
|
11
|
+
readonly CardNotActive: "card-not-active";
|
|
12
|
+
readonly CardExpiration: "card-expiration";
|
|
13
|
+
readonly SpendCutoffReached: "spend-cutoff-reached";
|
|
14
|
+
readonly OutsideAllowedSchedule: "outside-allowed-schedule";
|
|
15
|
+
readonly SpendLimitExceeded: "spend-limit-exceeded";
|
|
16
|
+
readonly MerchantCategoryNotSupported: "merchant-category-not-supported";
|
|
17
|
+
readonly MerchantCategoryRestricted: "merchant-category-restricted";
|
|
18
|
+
readonly MerchantRestricted: "merchant-restricted";
|
|
19
|
+
readonly MerchantCountryNotSupported: "merchant-country-not-supported";
|
|
20
|
+
readonly UnsupportedTransaction: "unsupported-transaction";
|
|
21
|
+
readonly NetworkStandIn: "network-stand-in";
|
|
22
|
+
readonly DeclinedByIssuer: "declined-by-issuer";
|
|
23
|
+
readonly InvalidRequest: "invalid-request";
|
|
24
|
+
readonly SystemError: "system-error";
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* The reason an authorization or authorization event was declined. Only present if the
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* authorization or event has been declined.
|
|
31
|
+
*/
|
|
32
|
+
export type IssuingDeclineReason = OpenEnum<typeof IssuingDeclineReason>;
|
|
33
|
+
/** @internal */
|
|
34
|
+
export declare const IssuingDeclineReason$inboundSchema: z.ZodType<IssuingDeclineReason, z.ZodTypeDef, unknown>;
|
|
35
|
+
/** @internal */
|
|
36
|
+
export declare const IssuingDeclineReason$outboundSchema: z.ZodType<string, z.ZodTypeDef, IssuingDeclineReason>;
|
|
37
|
+
//# sourceMappingURL=issuingdeclinereason.d.ts.map
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.IssuingDeclineReason$outboundSchema = exports.IssuingDeclineReason$inboundSchema = exports.IssuingDeclineReason = void 0;
|
|
40
|
+
const openEnums = __importStar(require("../../types/enums.js"));
|
|
41
|
+
/**
|
|
42
|
+
* The reason an authorization or authorization event was declined. Only present if the
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* authorization or event has been declined.
|
|
46
|
+
*/
|
|
47
|
+
exports.IssuingDeclineReason = {
|
|
48
|
+
InsufficientFunds: "insufficient-funds",
|
|
49
|
+
CardNotActive: "card-not-active",
|
|
50
|
+
CardExpiration: "card-expiration",
|
|
51
|
+
SpendCutoffReached: "spend-cutoff-reached",
|
|
52
|
+
OutsideAllowedSchedule: "outside-allowed-schedule",
|
|
53
|
+
SpendLimitExceeded: "spend-limit-exceeded",
|
|
54
|
+
MerchantCategoryNotSupported: "merchant-category-not-supported",
|
|
55
|
+
MerchantCategoryRestricted: "merchant-category-restricted",
|
|
56
|
+
MerchantRestricted: "merchant-restricted",
|
|
57
|
+
MerchantCountryNotSupported: "merchant-country-not-supported",
|
|
58
|
+
UnsupportedTransaction: "unsupported-transaction",
|
|
59
|
+
NetworkStandIn: "network-stand-in",
|
|
60
|
+
DeclinedByIssuer: "declined-by-issuer",
|
|
61
|
+
InvalidRequest: "invalid-request",
|
|
62
|
+
SystemError: "system-error",
|
|
63
|
+
};
|
|
64
|
+
/** @internal */
|
|
65
|
+
exports.IssuingDeclineReason$inboundSchema = openEnums.inboundSchema(exports.IssuingDeclineReason);
|
|
66
|
+
/** @internal */
|
|
67
|
+
exports.IssuingDeclineReason$outboundSchema = openEnums.outboundSchema(exports.IssuingDeclineReason);
|
|
68
|
+
//# sourceMappingURL=issuingdeclinereason.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* The type of client requesting an OAuth2 token. Short codes are accepted as aliases for the corresponding client types.
|
|
5
|
+
*/
|
|
6
|
+
export declare const OAuth2ClientType: {
|
|
7
|
+
readonly Web: "web";
|
|
8
|
+
readonly Device: "device";
|
|
9
|
+
readonly Service: "service";
|
|
10
|
+
readonly W: "w";
|
|
11
|
+
readonly D: "d";
|
|
12
|
+
readonly S: "s";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The type of client requesting an OAuth2 token. Short codes are accepted as aliases for the corresponding client types.
|
|
16
|
+
*/
|
|
17
|
+
export type OAuth2ClientType = ClosedEnum<typeof OAuth2ClientType>;
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const OAuth2ClientType$inboundSchema: z.ZodNativeEnum<typeof OAuth2ClientType>;
|
|
20
|
+
/** @internal */
|
|
21
|
+
export declare const OAuth2ClientType$outboundSchema: z.ZodNativeEnum<typeof OAuth2ClientType>;
|
|
22
|
+
//# sourceMappingURL=oauth2clienttype.d.ts.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.OAuth2ClientType$outboundSchema = exports.OAuth2ClientType$inboundSchema = exports.OAuth2ClientType = void 0;
|
|
40
|
+
const z = __importStar(require("zod/v3"));
|
|
41
|
+
/**
|
|
42
|
+
* The type of client requesting an OAuth2 token. Short codes are accepted as aliases for the corresponding client types.
|
|
43
|
+
*/
|
|
44
|
+
exports.OAuth2ClientType = {
|
|
45
|
+
Web: "web",
|
|
46
|
+
Device: "device",
|
|
47
|
+
Service: "service",
|
|
48
|
+
W: "w",
|
|
49
|
+
D: "d",
|
|
50
|
+
S: "s",
|
|
51
|
+
};
|
|
52
|
+
/** @internal */
|
|
53
|
+
exports.OAuth2ClientType$inboundSchema = z.nativeEnum(exports.OAuth2ClientType);
|
|
54
|
+
/** @internal */
|
|
55
|
+
exports.OAuth2ClientType$outboundSchema = exports.OAuth2ClientType$inboundSchema;
|
|
56
|
+
//# sourceMappingURL=oauth2clienttype.js.map
|
|
@@ -28,6 +28,10 @@ export type Product = {
|
|
|
28
28
|
* A product's starting price, before applying modifiers.
|
|
29
29
|
*/
|
|
30
30
|
basePrice: AmountDecimal;
|
|
31
|
+
/**
|
|
32
|
+
* Whether applicable tax rules may be applied to this product. True does not guarantee tax is charged; false excludes the product from tax calculation. This setting does not determine jurisdiction-specific taxability.
|
|
33
|
+
*/
|
|
34
|
+
isTaxable: boolean;
|
|
31
35
|
/**
|
|
32
36
|
* Optional configuration options for a product, such as size or color.
|
|
33
37
|
*/
|
|
@@ -61,6 +65,7 @@ export type Product$Outbound = {
|
|
|
61
65
|
title: string;
|
|
62
66
|
description?: string | undefined;
|
|
63
67
|
basePrice: AmountDecimal$Outbound;
|
|
68
|
+
isTaxable: boolean;
|
|
64
69
|
optionGroups?: Array<ProductOptionGroup$Outbound> | undefined;
|
|
65
70
|
images?: Array<ProductImageMetadata$Outbound> | undefined;
|
|
66
71
|
category?: ProductCategory$Outbound | undefined;
|
|
@@ -52,6 +52,7 @@ exports.Product$inboundSchema = z.object({
|
|
|
52
52
|
title: types.string(),
|
|
53
53
|
description: types.optional(types.string()),
|
|
54
54
|
basePrice: amountdecimal_js_1.AmountDecimal$inboundSchema,
|
|
55
|
+
isTaxable: types.boolean(),
|
|
55
56
|
optionGroups: types.optional(z.array(productoptiongroup_js_1.ProductOptionGroup$inboundSchema)),
|
|
56
57
|
images: types.optional(z.array(productimagemetadata_js_1.ProductImageMetadata$inboundSchema)),
|
|
57
58
|
category: types.optional(productcategory_js_1.ProductCategory$inboundSchema),
|
|
@@ -65,6 +66,7 @@ exports.Product$outboundSchema = z.object({
|
|
|
65
66
|
title: z.string(),
|
|
66
67
|
description: z.string().optional(),
|
|
67
68
|
basePrice: amountdecimal_js_1.AmountDecimal$outboundSchema,
|
|
69
|
+
isTaxable: z.boolean(),
|
|
68
70
|
optionGroups: z.array(productoptiongroup_js_1.ProductOptionGroup$outboundSchema).optional(),
|
|
69
71
|
images: z.array(productimagemetadata_js_1.ProductImageMetadata$outboundSchema).optional(),
|
|
70
72
|
category: productcategory_js_1.ProductCategory$outboundSchema.optional(),
|
|
@@ -23,6 +23,10 @@ export type ProductRequest = {
|
|
|
23
23
|
* A product's starting price, before applying modifiers.
|
|
24
24
|
*/
|
|
25
25
|
basePrice: AmountDecimal;
|
|
26
|
+
/**
|
|
27
|
+
* Whether applicable tax rules may be applied to this product. True does not guarantee tax is charged; false excludes the product from tax calculation. Omitted values default to true on creation and preserve the existing setting on update.
|
|
28
|
+
*/
|
|
29
|
+
isTaxable?: boolean | undefined;
|
|
26
30
|
/**
|
|
27
31
|
* Assign previously uploaded images to a product or option.
|
|
28
32
|
*/
|
|
@@ -43,6 +47,7 @@ export type ProductRequest$Outbound = {
|
|
|
43
47
|
title: string;
|
|
44
48
|
description?: string | undefined;
|
|
45
49
|
basePrice: AmountDecimal$Outbound;
|
|
50
|
+
isTaxable?: boolean | undefined;
|
|
46
51
|
images?: Array<AssignProductImage$Outbound> | undefined;
|
|
47
52
|
optionGroups?: Array<CreateProductOptionGroup$Outbound> | undefined;
|
|
48
53
|
categoryID?: string | undefined;
|
|
@@ -50,6 +50,7 @@ exports.ProductRequest$inboundSchema = z.object({
|
|
|
50
50
|
title: types.string(),
|
|
51
51
|
description: types.optional(types.string()),
|
|
52
52
|
basePrice: amountdecimal_js_1.AmountDecimal$inboundSchema,
|
|
53
|
+
isTaxable: types.optional(types.boolean()),
|
|
53
54
|
images: types.optional(z.array(assignproductimage_js_1.AssignProductImage$inboundSchema)),
|
|
54
55
|
optionGroups: types.optional(z.array(createproductoptiongroup_js_1.CreateProductOptionGroup$inboundSchema)),
|
|
55
56
|
categoryID: types.optional(types.string()),
|
|
@@ -59,6 +60,7 @@ exports.ProductRequest$outboundSchema = z.object({
|
|
|
59
60
|
title: z.string(),
|
|
60
61
|
description: z.string().optional(),
|
|
61
62
|
basePrice: amountdecimal_js_1.AmountDecimal$outboundSchema,
|
|
63
|
+
isTaxable: z.boolean().optional(),
|
|
62
64
|
images: z.array(assignproductimage_js_1.AssignProductImage$outboundSchema).optional(),
|
|
63
65
|
optionGroups: z.array(createproductoptiongroup_js_1.CreateProductOptionGroup$outboundSchema).optional(),
|
|
64
66
|
categoryID: z.string().optional(),
|