@paygentic/sdk 0.10.2 → 0.10.4
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/README.md +19 -62
- package/dist/commonjs/funcs/meGetMe.d.ts +18 -0
- package/dist/commonjs/funcs/meGetMe.d.ts.map +1 -0
- package/dist/commonjs/funcs/meGetMe.js +108 -0
- package/dist/commonjs/funcs/meGetMe.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/costreportresponse.d.ts +14 -2
- package/dist/commonjs/models/costreportresponse.d.ts.map +1 -1
- package/dist/commonjs/models/costreportresponse.js.map +1 -1
- package/dist/commonjs/models/errors/error.d.ts +6 -0
- package/dist/commonjs/models/errors/error.d.ts.map +1 -1
- package/dist/commonjs/models/errors/error.js +3 -0
- package/dist/commonjs/models/errors/error.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +3 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +3 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/me.d.ts +34 -0
- package/dist/commonjs/models/me.d.ts.map +1 -0
- package/dist/commonjs/models/me.js +63 -0
- package/dist/commonjs/models/me.js.map +1 -0
- package/dist/commonjs/models/mecredential.d.ts +31 -0
- package/dist/commonjs/models/mecredential.d.ts.map +1 -0
- package/dist/commonjs/models/mecredential.js +60 -0
- package/dist/commonjs/models/mecredential.js.map +1 -0
- package/dist/commonjs/models/operations/getcostreport.d.ts +2 -2
- package/dist/commonjs/models/operations/getcostsummary.d.ts +2 -2
- package/dist/commonjs/models/operations/getprofitability.d.ts +2 -2
- package/dist/commonjs/models/operations/getrevenue.d.ts +2 -2
- package/dist/commonjs/models/operations/listentitlements.d.ts +16 -0
- package/dist/commonjs/models/operations/listentitlements.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listentitlements.js +11 -1
- package/dist/commonjs/models/operations/listentitlements.js.map +1 -1
- package/dist/commonjs/models/outstandingblock.d.ts +5 -1
- package/dist/commonjs/models/outstandingblock.d.ts.map +1 -1
- package/dist/commonjs/models/outstandingblock.js +1 -0
- package/dist/commonjs/models/outstandingblock.js.map +1 -1
- package/dist/commonjs/models/permission.d.ts +113 -0
- package/dist/commonjs/models/permission.d.ts.map +1 -0
- package/dist/commonjs/models/permission.js +148 -0
- package/dist/commonjs/models/permission.js.map +1 -0
- package/dist/commonjs/models/profitabilitysummaryresponse.d.ts +4 -4
- package/dist/commonjs/models/revenueaccountrow.d.ts +1 -1
- package/dist/commonjs/models/revenueaccounttotal.d.ts +1 -1
- package/dist/commonjs/models/revenuesummaryresponse.d.ts +2 -2
- package/dist/commonjs/sdk/me.d.ts +12 -0
- package/dist/commonjs/sdk/me.d.ts.map +1 -0
- package/dist/commonjs/sdk/me.js +22 -0
- package/dist/commonjs/sdk/me.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/meGetMe.d.ts +18 -0
- package/dist/esm/funcs/meGetMe.d.ts.map +1 -0
- package/dist/esm/funcs/meGetMe.js +72 -0
- package/dist/esm/funcs/meGetMe.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/costreportresponse.d.ts +14 -2
- package/dist/esm/models/costreportresponse.d.ts.map +1 -1
- package/dist/esm/models/costreportresponse.js.map +1 -1
- package/dist/esm/models/errors/error.d.ts +6 -0
- package/dist/esm/models/errors/error.d.ts.map +1 -1
- package/dist/esm/models/errors/error.js +3 -0
- package/dist/esm/models/errors/error.js.map +1 -1
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/me.d.ts +34 -0
- package/dist/esm/models/me.d.ts.map +1 -0
- package/dist/esm/models/me.js +26 -0
- package/dist/esm/models/me.js.map +1 -0
- package/dist/esm/models/mecredential.d.ts +31 -0
- package/dist/esm/models/mecredential.d.ts.map +1 -0
- package/dist/esm/models/mecredential.js +23 -0
- package/dist/esm/models/mecredential.js.map +1 -0
- package/dist/esm/models/operations/getcostreport.d.ts +2 -2
- package/dist/esm/models/operations/getcostsummary.d.ts +2 -2
- package/dist/esm/models/operations/getprofitability.d.ts +2 -2
- package/dist/esm/models/operations/getrevenue.d.ts +2 -2
- package/dist/esm/models/operations/listentitlements.d.ts +16 -0
- package/dist/esm/models/operations/listentitlements.d.ts.map +1 -1
- package/dist/esm/models/operations/listentitlements.js +9 -0
- package/dist/esm/models/operations/listentitlements.js.map +1 -1
- package/dist/esm/models/outstandingblock.d.ts +5 -1
- package/dist/esm/models/outstandingblock.d.ts.map +1 -1
- package/dist/esm/models/outstandingblock.js +1 -0
- package/dist/esm/models/outstandingblock.js.map +1 -1
- package/dist/esm/models/permission.d.ts +113 -0
- package/dist/esm/models/permission.d.ts.map +1 -0
- package/dist/esm/models/permission.js +112 -0
- package/dist/esm/models/permission.js.map +1 -0
- package/dist/esm/models/profitabilitysummaryresponse.d.ts +4 -4
- package/dist/esm/models/revenueaccountrow.d.ts +1 -1
- package/dist/esm/models/revenueaccounttotal.d.ts +1 -1
- package/dist/esm/models/revenuesummaryresponse.d.ts +2 -2
- package/dist/esm/sdk/me.d.ts +12 -0
- package/dist/esm/sdk/me.d.ts.map +1 -0
- package/dist/esm/sdk/me.js +18 -0
- package/dist/esm/sdk/me.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/meGetMe.ts +151 -0
- package/src/lib/config.ts +2 -2
- package/src/models/costreportresponse.ts +14 -2
- package/src/models/errors/error.ts +6 -0
- package/src/models/index.ts +3 -0
- package/src/models/me.ts +60 -0
- package/src/models/mecredential.ts +58 -0
- package/src/models/operations/getcostreport.ts +2 -2
- package/src/models/operations/getcostsummary.ts +2 -2
- package/src/models/operations/getprofitability.ts +2 -2
- package/src/models/operations/getrevenue.ts +2 -2
- package/src/models/operations/listentitlements.ts +33 -0
- package/src/models/outstandingblock.ts +6 -1
- package/src/models/permission.ts +119 -0
- package/src/models/profitabilitysummaryresponse.ts +4 -4
- package/src/models/revenueaccountrow.ts +1 -1
- package/src/models/revenueaccounttotal.ts +1 -1
- package/src/models/revenuesummaryresponse.ts +2 -2
- package/src/sdk/me.ts +25 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v3";
|
|
5
|
+
import { safeParse } from "../lib/schemas.js";
|
|
6
|
+
export const MeCredentialType = {
|
|
7
|
+
Session: "session",
|
|
8
|
+
ApiKey: "apiKey",
|
|
9
|
+
Oauth: "oauth",
|
|
10
|
+
System: "system",
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const MeCredentialType$inboundSchema = z.nativeEnum(MeCredentialType);
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const MeCredential$inboundSchema = z.object({
|
|
16
|
+
type: MeCredentialType$inboundSchema,
|
|
17
|
+
clientId: z.string().optional(),
|
|
18
|
+
apiKeyId: z.string().optional(),
|
|
19
|
+
});
|
|
20
|
+
export function meCredentialFromJSON(jsonString) {
|
|
21
|
+
return safeParse(jsonString, (x) => MeCredential$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MeCredential' from JSON`);
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=mecredential.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mecredential.js","sourceRoot":"","sources":["../../../src/models/mecredential.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAK9C,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;CACR,CAAC;AAkBX,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B,GAEvC,CAAC,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;AAEnC,gBAAgB;AAChB,MAAM,CAAC,MAAM,0BAA0B,GAInC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,8BAA8B;IACpC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEH,MAAM,UAAU,oBAAoB,CAClC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0BAA0B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtD,0CAA0C,CAC3C,CAAC;AACJ,CAAC"}
|
|
@@ -40,11 +40,11 @@ export type GetCostReportRequest = {
|
|
|
40
40
|
*/
|
|
41
41
|
merchantId?: string | undefined;
|
|
42
42
|
/**
|
|
43
|
-
* Start of the query window (ISO 8601).
|
|
43
|
+
* Start of the query window, included (ISO 8601).
|
|
44
44
|
*/
|
|
45
45
|
from: Date;
|
|
46
46
|
/**
|
|
47
|
-
* End of the query window (ISO 8601).
|
|
47
|
+
* End of the query window, excluded: the read counts from <= t < to (ISO 8601).
|
|
48
48
|
*/
|
|
49
49
|
to: Date;
|
|
50
50
|
/**
|
|
@@ -22,11 +22,11 @@ export type GetCostSummaryRequest = {
|
|
|
22
22
|
*/
|
|
23
23
|
subject?: string | undefined;
|
|
24
24
|
/**
|
|
25
|
-
* Start of the query window (ISO 8601). Required together with 'to'.
|
|
25
|
+
* Start of the query window, included (ISO 8601). Required together with 'to'.
|
|
26
26
|
*/
|
|
27
27
|
from: Date;
|
|
28
28
|
/**
|
|
29
|
-
* End of the query window (ISO 8601). Required together with 'from'.
|
|
29
|
+
* End of the query window, excluded: the read counts from <= t < to (ISO 8601). Required together with 'from'.
|
|
30
30
|
*/
|
|
31
31
|
to: Date;
|
|
32
32
|
/**
|
|
@@ -5,11 +5,11 @@ export type GetProfitabilityRequest = {
|
|
|
5
5
|
*/
|
|
6
6
|
merchantId: string;
|
|
7
7
|
/**
|
|
8
|
-
* Start of the
|
|
8
|
+
* Start of the read window, included (ISO 8601 format)
|
|
9
9
|
*/
|
|
10
10
|
from: Date;
|
|
11
11
|
/**
|
|
12
|
-
* End of the
|
|
12
|
+
* End of the read window, excluded: the read counts from <= t < to, so a month ends at the first instant of the next month (ISO 8601 format)
|
|
13
13
|
*/
|
|
14
14
|
to: Date;
|
|
15
15
|
/**
|
|
@@ -37,11 +37,11 @@ export declare const PeriodBasis: {
|
|
|
37
37
|
export type PeriodBasis = ClosedEnum<typeof PeriodBasis>;
|
|
38
38
|
export type GetRevenueRequest = {
|
|
39
39
|
/**
|
|
40
|
-
* Start of the
|
|
40
|
+
* Start of the read window, included (ISO 8601 format)
|
|
41
41
|
*/
|
|
42
42
|
startTime: Date;
|
|
43
43
|
/**
|
|
44
|
-
* End of the
|
|
44
|
+
* End of the read window, excluded: the read counts startTime <= t < endTime, so a month ends at the first instant of the next month (ISO 8601 format)
|
|
45
45
|
*/
|
|
46
46
|
endTime: Date;
|
|
47
47
|
/**
|
|
@@ -45,6 +45,15 @@ export declare const ListEntitlementsObject: {
|
|
|
45
45
|
readonly List: "list";
|
|
46
46
|
};
|
|
47
47
|
export type ListEntitlementsObject = ClosedEnum<typeof ListEntitlementsObject>;
|
|
48
|
+
/**
|
|
49
|
+
* Present only when the database can't be reached, or the list takes more than a second to compute. The response is then the last result for this same request in the past hour, computed at `computedAt`.
|
|
50
|
+
*/
|
|
51
|
+
export type Stale = {
|
|
52
|
+
/**
|
|
53
|
+
* When this result was computed.
|
|
54
|
+
*/
|
|
55
|
+
computedAt: Date;
|
|
56
|
+
};
|
|
48
57
|
/**
|
|
49
58
|
* Successfully retrieved the list of entitlements for the customer.
|
|
50
59
|
*/
|
|
@@ -58,6 +67,10 @@ export type ListEntitlementsResponse = {
|
|
|
58
67
|
* Offset-based pagination response.
|
|
59
68
|
*/
|
|
60
69
|
pagination: models.OffsetPagination;
|
|
70
|
+
/**
|
|
71
|
+
* Present only when the database can't be reached, or the list takes more than a second to compute. The response is then the last result for this same request in the past hour, computed at `computedAt`.
|
|
72
|
+
*/
|
|
73
|
+
stale?: Stale | undefined;
|
|
61
74
|
};
|
|
62
75
|
/** @internal */
|
|
63
76
|
export type ListEntitlementsRequest$Outbound = {
|
|
@@ -77,6 +90,9 @@ export declare function listEntitlementsRequestToJSON(listEntitlementsRequest: L
|
|
|
77
90
|
/** @internal */
|
|
78
91
|
export declare const ListEntitlementsObject$inboundSchema: z.ZodNativeEnum<typeof ListEntitlementsObject>;
|
|
79
92
|
/** @internal */
|
|
93
|
+
export declare const Stale$inboundSchema: z.ZodType<Stale, z.ZodTypeDef, unknown>;
|
|
94
|
+
export declare function staleFromJSON(jsonString: string): SafeParseResult<Stale, SDKValidationError>;
|
|
95
|
+
/** @internal */
|
|
80
96
|
export declare const ListEntitlementsResponse$inboundSchema: z.ZodType<ListEntitlementsResponse, z.ZodTypeDef, unknown>;
|
|
81
97
|
export declare function listEntitlementsResponseFromJSON(jsonString: string): SafeParseResult<ListEntitlementsResponse, SDKValidationError>;
|
|
82
98
|
//# sourceMappingURL=listentitlements.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":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AgB,CAAC;
|
|
1
|
+
{"version":3,"file":"listentitlements.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/listentitlements.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,EAAE,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;CAEzB,CAAC;AACX,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,UAAU,EAAE,IAAI,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,sBAAsB,CA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EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
|
|
@@ -25,10 +25,19 @@ export function listEntitlementsRequestToJSON(listEntitlementsRequest) {
|
|
|
25
25
|
/** @internal */
|
|
26
26
|
export const ListEntitlementsObject$inboundSchema = z.nativeEnum(ListEntitlementsObject);
|
|
27
27
|
/** @internal */
|
|
28
|
+
export const Stale$inboundSchema = z
|
|
29
|
+
.object({
|
|
30
|
+
computedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
31
|
+
});
|
|
32
|
+
export function staleFromJSON(jsonString) {
|
|
33
|
+
return safeParse(jsonString, (x) => Stale$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Stale' from JSON`);
|
|
34
|
+
}
|
|
35
|
+
/** @internal */
|
|
28
36
|
export const ListEntitlementsResponse$inboundSchema = z.object({
|
|
29
37
|
object: ListEntitlementsObject$inboundSchema.default("list"),
|
|
30
38
|
data: z.array(models.EntitlementListItem$inboundSchema),
|
|
31
39
|
pagination: models.OffsetPagination$inboundSchema,
|
|
40
|
+
stale: z.lazy(() => Stale$inboundSchema).optional(),
|
|
32
41
|
});
|
|
33
42
|
export function listEntitlementsResponseFromJSON(jsonString) {
|
|
34
43
|
return safeParse(jsonString, (x) => ListEntitlementsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListEntitlementsResponse' from JSON`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listentitlements.js","sourceRoot":"","sources":["../../../../src/models/operations/listentitlements.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,KAAK,MAA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vD,CAAC;AACJ,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { Result as SafeParseResult } from "../types/fp.js";
|
|
|
3
3
|
import { AccountFigure } from "./accountfigure.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
5
|
/**
|
|
6
|
-
* What is owed, gross of tax, from any date. `awaitingPayment` and `paymentFailed` add up to it, in count and amount.
|
|
6
|
+
* What is owed, gross of tax, from any date. `awaitingPayment` and `paymentFailed` add up to it, in count and amount. `overdue` is a part of `awaitingPayment`.
|
|
7
7
|
*/
|
|
8
8
|
export type OutstandingBlock = {
|
|
9
9
|
/**
|
|
@@ -22,6 +22,10 @@ export type OutstandingBlock = {
|
|
|
22
22
|
* The part with status `PAYMENT_FAILED`: collection has ended
|
|
23
23
|
*/
|
|
24
24
|
paymentFailed: AccountFigure;
|
|
25
|
+
/**
|
|
26
|
+
* The invoices of `awaitingPayment` past their due date: status `ISSUED`, no card retry scheduled, and a due date before the start of today, UTC. Today is the subscription's test clock when test clocks are enabled. A subset of `awaitingPayment` by count. A credit invoice is never overdue, so the amount can exceed `awaitingPayment.amount`.
|
|
27
|
+
*/
|
|
28
|
+
overdue: AccountFigure;
|
|
25
29
|
};
|
|
26
30
|
/** @internal */
|
|
27
31
|
export declare const OutstandingBlock$inboundSchema: z.ZodType<OutstandingBlock, z.ZodTypeDef, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outstandingblock.d.ts","sourceRoot":"","sources":["../../../src/models/outstandingblock.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAA+B,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,eAAe,EAAE,aAAa,CAAC;IAC/B;;OAEG;IACH,aAAa,EAAE,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"outstandingblock.d.ts","sourceRoot":"","sources":["../../../src/models/outstandingblock.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAA+B,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,eAAe,EAAE,aAAa,CAAC;IAC/B;;OAEG;IACH,aAAa,EAAE,aAAa,CAAC;IAC7B;;OAEG;IACH,OAAO,EAAE,aAAa,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
|
|
@@ -10,6 +10,7 @@ export const OutstandingBlock$inboundSchema = z.object({
|
|
|
10
10
|
amount: z.string(),
|
|
11
11
|
awaitingPayment: AccountFigure$inboundSchema,
|
|
12
12
|
paymentFailed: AccountFigure$inboundSchema,
|
|
13
|
+
overdue: AccountFigure$inboundSchema,
|
|
13
14
|
});
|
|
14
15
|
export function outstandingBlockFromJSON(jsonString) {
|
|
15
16
|
return safeParse(jsonString, (x) => OutstandingBlock$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutstandingBlock' from JSON`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outstandingblock.js","sourceRoot":"","sources":["../../../src/models/outstandingblock.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAiB,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"outstandingblock.js","sourceRoot":"","sources":["../../../src/models/outstandingblock.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAiB,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AA6BhF,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,eAAe,EAAE,2BAA2B;IAC5C,aAAa,EAAE,2BAA2B;IAC1C,OAAO,EAAE,2BAA2B;CACrC,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB,CACtC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8BAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* A permission of the catalog: a resource read or write, or a sensitive action.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Permission: {
|
|
7
|
+
readonly OrganizationRead: "organization:read";
|
|
8
|
+
readonly MembersRead: "members:read";
|
|
9
|
+
readonly ProfileRead: "profile:read";
|
|
10
|
+
readonly ApiKeysRead: "apiKeys:read";
|
|
11
|
+
readonly MerchantsRead: "merchants:read";
|
|
12
|
+
readonly ConsumersRead: "consumers:read";
|
|
13
|
+
readonly CustomersRead: "customers:read";
|
|
14
|
+
readonly PlansRead: "plans:read";
|
|
15
|
+
readonly PricesRead: "prices:read";
|
|
16
|
+
readonly ProductsRead: "products:read";
|
|
17
|
+
readonly FeaturesRead: "features:read";
|
|
18
|
+
readonly FeesRead: "fees:read";
|
|
19
|
+
readonly BillableMetricsRead: "billableMetrics:read";
|
|
20
|
+
readonly ItemsRead: "items:read";
|
|
21
|
+
readonly PricingUnitsRead: "pricingUnits:read";
|
|
22
|
+
readonly SubscriptionsRead: "subscriptions:read";
|
|
23
|
+
readonly SubscriptionAdjustmentsRead: "subscriptionAdjustments:read";
|
|
24
|
+
readonly DiscountsRead: "discounts:read";
|
|
25
|
+
readonly GrantsRead: "grants:read";
|
|
26
|
+
readonly EntitlementsRead: "entitlements:read";
|
|
27
|
+
readonly CreditPoolsRead: "creditPools:read";
|
|
28
|
+
readonly OrdersRead: "orders:read";
|
|
29
|
+
readonly BillingSchedulesRead: "billingSchedules:read";
|
|
30
|
+
readonly InvoicesRead: "invoices:read";
|
|
31
|
+
readonly PaymentsRead: "payments:read";
|
|
32
|
+
readonly PaymentSessionsRead: "paymentSessions:read";
|
|
33
|
+
readonly PortalSessionsRead: "portalSessions:read";
|
|
34
|
+
readonly PlatformUsersRead: "platformUsers:read";
|
|
35
|
+
readonly PlatformAdminRead: "platformAdmin:read";
|
|
36
|
+
readonly OrganizationCreationRead: "organizationCreation:read";
|
|
37
|
+
readonly ComplianceRead: "compliance:read";
|
|
38
|
+
readonly TaxSettingsRead: "taxSettings:read";
|
|
39
|
+
readonly CostsRead: "costs:read";
|
|
40
|
+
readonly PaymentAccountsRead: "paymentAccounts:read";
|
|
41
|
+
readonly PayoutsRead: "payouts:read";
|
|
42
|
+
readonly ExternalAccountsRead: "externalAccounts:read";
|
|
43
|
+
readonly ExternalReferencesRead: "externalReferences:read";
|
|
44
|
+
readonly MerchantIntegrationsRead: "merchantIntegrations:read";
|
|
45
|
+
readonly WebhooksRead: "webhooks:read";
|
|
46
|
+
readonly TestClocksRead: "testClocks:read";
|
|
47
|
+
readonly ApprovalsRead: "approvals:read";
|
|
48
|
+
readonly SourcesRead: "sources:read";
|
|
49
|
+
readonly RevenueRead: "revenue:read";
|
|
50
|
+
readonly OrganizationWrite: "organization:write";
|
|
51
|
+
readonly MembersWrite: "members:write";
|
|
52
|
+
readonly ProfileWrite: "profile:write";
|
|
53
|
+
readonly ApiKeysWrite: "apiKeys:write";
|
|
54
|
+
readonly MerchantsWrite: "merchants:write";
|
|
55
|
+
readonly ConsumersWrite: "consumers:write";
|
|
56
|
+
readonly CustomersWrite: "customers:write";
|
|
57
|
+
readonly PlansWrite: "plans:write";
|
|
58
|
+
readonly PricesWrite: "prices:write";
|
|
59
|
+
readonly ProductsWrite: "products:write";
|
|
60
|
+
readonly FeaturesWrite: "features:write";
|
|
61
|
+
readonly FeesWrite: "fees:write";
|
|
62
|
+
readonly BillableMetricsWrite: "billableMetrics:write";
|
|
63
|
+
readonly ItemsWrite: "items:write";
|
|
64
|
+
readonly PricingUnitsWrite: "pricingUnits:write";
|
|
65
|
+
readonly SubscriptionsWrite: "subscriptions:write";
|
|
66
|
+
readonly SubscriptionAdjustmentsWrite: "subscriptionAdjustments:write";
|
|
67
|
+
readonly DiscountsWrite: "discounts:write";
|
|
68
|
+
readonly GrantsWrite: "grants:write";
|
|
69
|
+
readonly EntitlementsWrite: "entitlements:write";
|
|
70
|
+
readonly CreditPoolsWrite: "creditPools:write";
|
|
71
|
+
readonly OrdersWrite: "orders:write";
|
|
72
|
+
readonly BillingSchedulesWrite: "billingSchedules:write";
|
|
73
|
+
readonly InvoicesWrite: "invoices:write";
|
|
74
|
+
readonly PaymentsWrite: "payments:write";
|
|
75
|
+
readonly PaymentSessionsWrite: "paymentSessions:write";
|
|
76
|
+
readonly PortalSessionsWrite: "portalSessions:write";
|
|
77
|
+
readonly PlatformUsersWrite: "platformUsers:write";
|
|
78
|
+
readonly PlatformAdminWrite: "platformAdmin:write";
|
|
79
|
+
readonly OrganizationCreationWrite: "organizationCreation:write";
|
|
80
|
+
readonly ComplianceWrite: "compliance:write";
|
|
81
|
+
readonly TaxSettingsWrite: "taxSettings:write";
|
|
82
|
+
readonly CostsWrite: "costs:write";
|
|
83
|
+
readonly PaymentAccountsWrite: "paymentAccounts:write";
|
|
84
|
+
readonly PayoutsWrite: "payouts:write";
|
|
85
|
+
readonly ExternalAccountsWrite: "externalAccounts:write";
|
|
86
|
+
readonly ExternalReferencesWrite: "externalReferences:write";
|
|
87
|
+
readonly MerchantIntegrationsWrite: "merchantIntegrations:write";
|
|
88
|
+
readonly WebhooksWrite: "webhooks:write";
|
|
89
|
+
readonly TestClocksWrite: "testClocks:write";
|
|
90
|
+
readonly ApprovalsWrite: "approvals:write";
|
|
91
|
+
readonly SourcesWrite: "sources:write";
|
|
92
|
+
readonly EventsWrite: "events:write";
|
|
93
|
+
readonly InvoicesIssue: "invoices:issue";
|
|
94
|
+
readonly InvoicesVoid: "invoices:void";
|
|
95
|
+
readonly PaymentsRefund: "payments:refund";
|
|
96
|
+
readonly OrganizationDelete: "organization:delete";
|
|
97
|
+
readonly OwnershipTransfer: "ownership:transfer";
|
|
98
|
+
readonly SubscriptionsTerminate: "subscriptions:terminate";
|
|
99
|
+
readonly SubscriptionsTerminateWithReason: "subscriptions:terminateWithReason";
|
|
100
|
+
readonly SubscriptionsReconcile: "subscriptions:reconcile";
|
|
101
|
+
readonly SubscriptionsUpdate: "subscriptions:update";
|
|
102
|
+
readonly SubscriptionsDelete: "subscriptions:delete";
|
|
103
|
+
readonly SubscriptionsTaxExempt: "subscriptions:taxExempt";
|
|
104
|
+
readonly SubscriptionsAutoApprove: "subscriptions:autoApprove";
|
|
105
|
+
readonly OrganizationResetData: "organization:resetData";
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* A permission of the catalog: a resource read or write, or a sensitive action.
|
|
109
|
+
*/
|
|
110
|
+
export type Permission = ClosedEnum<typeof Permission>;
|
|
111
|
+
/** @internal */
|
|
112
|
+
export declare const Permission$inboundSchema: z.ZodNativeEnum<typeof Permission>;
|
|
113
|
+
//# sourceMappingURL=permission.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission.d.ts","sourceRoot":"","sources":["../../../src/models/permission.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGb,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAEvD,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,UAAU,CAC/C,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v3";
|
|
5
|
+
/**
|
|
6
|
+
* A permission of the catalog: a resource read or write, or a sensitive action.
|
|
7
|
+
*/
|
|
8
|
+
export const Permission = {
|
|
9
|
+
OrganizationRead: "organization:read",
|
|
10
|
+
MembersRead: "members:read",
|
|
11
|
+
ProfileRead: "profile:read",
|
|
12
|
+
ApiKeysRead: "apiKeys:read",
|
|
13
|
+
MerchantsRead: "merchants:read",
|
|
14
|
+
ConsumersRead: "consumers:read",
|
|
15
|
+
CustomersRead: "customers:read",
|
|
16
|
+
PlansRead: "plans:read",
|
|
17
|
+
PricesRead: "prices:read",
|
|
18
|
+
ProductsRead: "products:read",
|
|
19
|
+
FeaturesRead: "features:read",
|
|
20
|
+
FeesRead: "fees:read",
|
|
21
|
+
BillableMetricsRead: "billableMetrics:read",
|
|
22
|
+
ItemsRead: "items:read",
|
|
23
|
+
PricingUnitsRead: "pricingUnits:read",
|
|
24
|
+
SubscriptionsRead: "subscriptions:read",
|
|
25
|
+
SubscriptionAdjustmentsRead: "subscriptionAdjustments:read",
|
|
26
|
+
DiscountsRead: "discounts:read",
|
|
27
|
+
GrantsRead: "grants:read",
|
|
28
|
+
EntitlementsRead: "entitlements:read",
|
|
29
|
+
CreditPoolsRead: "creditPools:read",
|
|
30
|
+
OrdersRead: "orders:read",
|
|
31
|
+
BillingSchedulesRead: "billingSchedules:read",
|
|
32
|
+
InvoicesRead: "invoices:read",
|
|
33
|
+
PaymentsRead: "payments:read",
|
|
34
|
+
PaymentSessionsRead: "paymentSessions:read",
|
|
35
|
+
PortalSessionsRead: "portalSessions:read",
|
|
36
|
+
PlatformUsersRead: "platformUsers:read",
|
|
37
|
+
PlatformAdminRead: "platformAdmin:read",
|
|
38
|
+
OrganizationCreationRead: "organizationCreation:read",
|
|
39
|
+
ComplianceRead: "compliance:read",
|
|
40
|
+
TaxSettingsRead: "taxSettings:read",
|
|
41
|
+
CostsRead: "costs:read",
|
|
42
|
+
PaymentAccountsRead: "paymentAccounts:read",
|
|
43
|
+
PayoutsRead: "payouts:read",
|
|
44
|
+
ExternalAccountsRead: "externalAccounts:read",
|
|
45
|
+
ExternalReferencesRead: "externalReferences:read",
|
|
46
|
+
MerchantIntegrationsRead: "merchantIntegrations:read",
|
|
47
|
+
WebhooksRead: "webhooks:read",
|
|
48
|
+
TestClocksRead: "testClocks:read",
|
|
49
|
+
ApprovalsRead: "approvals:read",
|
|
50
|
+
SourcesRead: "sources:read",
|
|
51
|
+
RevenueRead: "revenue:read",
|
|
52
|
+
OrganizationWrite: "organization:write",
|
|
53
|
+
MembersWrite: "members:write",
|
|
54
|
+
ProfileWrite: "profile:write",
|
|
55
|
+
ApiKeysWrite: "apiKeys:write",
|
|
56
|
+
MerchantsWrite: "merchants:write",
|
|
57
|
+
ConsumersWrite: "consumers:write",
|
|
58
|
+
CustomersWrite: "customers:write",
|
|
59
|
+
PlansWrite: "plans:write",
|
|
60
|
+
PricesWrite: "prices:write",
|
|
61
|
+
ProductsWrite: "products:write",
|
|
62
|
+
FeaturesWrite: "features:write",
|
|
63
|
+
FeesWrite: "fees:write",
|
|
64
|
+
BillableMetricsWrite: "billableMetrics:write",
|
|
65
|
+
ItemsWrite: "items:write",
|
|
66
|
+
PricingUnitsWrite: "pricingUnits:write",
|
|
67
|
+
SubscriptionsWrite: "subscriptions:write",
|
|
68
|
+
SubscriptionAdjustmentsWrite: "subscriptionAdjustments:write",
|
|
69
|
+
DiscountsWrite: "discounts:write",
|
|
70
|
+
GrantsWrite: "grants:write",
|
|
71
|
+
EntitlementsWrite: "entitlements:write",
|
|
72
|
+
CreditPoolsWrite: "creditPools:write",
|
|
73
|
+
OrdersWrite: "orders:write",
|
|
74
|
+
BillingSchedulesWrite: "billingSchedules:write",
|
|
75
|
+
InvoicesWrite: "invoices:write",
|
|
76
|
+
PaymentsWrite: "payments:write",
|
|
77
|
+
PaymentSessionsWrite: "paymentSessions:write",
|
|
78
|
+
PortalSessionsWrite: "portalSessions:write",
|
|
79
|
+
PlatformUsersWrite: "platformUsers:write",
|
|
80
|
+
PlatformAdminWrite: "platformAdmin:write",
|
|
81
|
+
OrganizationCreationWrite: "organizationCreation:write",
|
|
82
|
+
ComplianceWrite: "compliance:write",
|
|
83
|
+
TaxSettingsWrite: "taxSettings:write",
|
|
84
|
+
CostsWrite: "costs:write",
|
|
85
|
+
PaymentAccountsWrite: "paymentAccounts:write",
|
|
86
|
+
PayoutsWrite: "payouts:write",
|
|
87
|
+
ExternalAccountsWrite: "externalAccounts:write",
|
|
88
|
+
ExternalReferencesWrite: "externalReferences:write",
|
|
89
|
+
MerchantIntegrationsWrite: "merchantIntegrations:write",
|
|
90
|
+
WebhooksWrite: "webhooks:write",
|
|
91
|
+
TestClocksWrite: "testClocks:write",
|
|
92
|
+
ApprovalsWrite: "approvals:write",
|
|
93
|
+
SourcesWrite: "sources:write",
|
|
94
|
+
EventsWrite: "events:write",
|
|
95
|
+
InvoicesIssue: "invoices:issue",
|
|
96
|
+
InvoicesVoid: "invoices:void",
|
|
97
|
+
PaymentsRefund: "payments:refund",
|
|
98
|
+
OrganizationDelete: "organization:delete",
|
|
99
|
+
OwnershipTransfer: "ownership:transfer",
|
|
100
|
+
SubscriptionsTerminate: "subscriptions:terminate",
|
|
101
|
+
SubscriptionsTerminateWithReason: "subscriptions:terminateWithReason",
|
|
102
|
+
SubscriptionsReconcile: "subscriptions:reconcile",
|
|
103
|
+
SubscriptionsUpdate: "subscriptions:update",
|
|
104
|
+
SubscriptionsDelete: "subscriptions:delete",
|
|
105
|
+
SubscriptionsTaxExempt: "subscriptions:taxExempt",
|
|
106
|
+
SubscriptionsAutoApprove: "subscriptions:autoApprove",
|
|
107
|
+
OrganizationResetData: "organization:resetData",
|
|
108
|
+
};
|
|
109
|
+
/** @internal */
|
|
110
|
+
export const Permission$inboundSchema = z
|
|
111
|
+
.nativeEnum(Permission);
|
|
112
|
+
//# sourceMappingURL=permission.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission.js","sourceRoot":"","sources":["../../../src/models/permission.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,gBAAgB,EAAE,mBAAmB;IACrC,WAAW,EAAE,cAAc;IAC3B,WAAW,E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IACrE,sBAAsB,EAAE,yBAAyB;IACjD,mBAAmB,EAAE,sBAAsB;IAC3C,mBAAmB,EAAE,sBAAsB;IAC3C,sBAAsB,EAAE,yBAAyB;IACjD,wBAAwB,EAAE,2BAA2B;IACrD,qBAAqB,EAAE,wBAAwB;CACvC,CAAC;AAMX,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB,GAAuC,CAAC;KAC1E,UAAU,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { Result as SafeParseResult } from "../types/fp.js";
|
|
|
3
3
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
4
|
import { ProfitabilityRow } from "./profitabilityrow.js";
|
|
5
5
|
/**
|
|
6
|
-
* Where the caller's revenue actually lies in time. Scoped by the same filters as the request (merchant, and where given customer, subscription and currency), so it is not an account-wide statement. Present only when the selected range returned nothing. An object carries the bounds of the real revenue; null means no revenue under these filters at any time; an absent field means the extent was not resolved, because the result was not empty or because the lookup failed. An absent field must never be read as an absence. The bounds may span more than this endpoint's maximum queryable range, so clamp before re-querying.
|
|
6
|
+
* Where the caller's revenue actually lies in time. Scoped by the same filters as the request (merchant, and where given customer, subscription and currency), so it is not an account-wide statement. Present only when the selected range returned nothing. An object carries the bounds of the real revenue; null means no revenue under these filters at any time; an absent field means the extent was not resolved, because the result was not empty or because the lookup failed. An absent field must never be read as an absence. The bounds are instants that exist and both are included, so a window that holds `to` ends after it. The bounds may span more than this endpoint's maximum queryable range, so clamp before re-querying.
|
|
7
7
|
*/
|
|
8
8
|
export type ProfitabilitySummaryResponseRevenueRange = {
|
|
9
9
|
/**
|
|
@@ -16,7 +16,7 @@ export type ProfitabilitySummaryResponseRevenueRange = {
|
|
|
16
16
|
to: Date;
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
|
-
* Where the caller's cost data actually lies in time. Present only when the selected range returned no cost. An object carries the bounds of the real cost events; null means the caller has no cost event at any time; an absent field means the extent was not resolved, because the result was not empty, because the lookup failed, or because the metering service does not serve the bounds method. An absent field must never be read as an absence.
|
|
19
|
+
* Where the caller's cost data actually lies in time. Present only when the selected range returned no cost. An object carries the bounds of the real cost events; null means the caller has no cost event at any time; an absent field means the extent was not resolved, because the result was not empty, because the lookup failed, or because the metering service does not serve the bounds method. An absent field must never be read as an absence. The bounds are instants that exist and both are included, so a window that holds `to` ends after it.
|
|
20
20
|
*/
|
|
21
21
|
export type ProfitabilitySummaryResponseCostRange = {
|
|
22
22
|
/**
|
|
@@ -62,11 +62,11 @@ export type ProfitabilitySummaryResponse = {
|
|
|
62
62
|
*/
|
|
63
63
|
warnings?: Array<string> | undefined;
|
|
64
64
|
/**
|
|
65
|
-
* Where the caller's revenue actually lies in time. Scoped by the same filters as the request (merchant, and where given customer, subscription and currency), so it is not an account-wide statement. Present only when the selected range returned nothing. An object carries the bounds of the real revenue; null means no revenue under these filters at any time; an absent field means the extent was not resolved, because the result was not empty or because the lookup failed. An absent field must never be read as an absence. The bounds may span more than this endpoint's maximum queryable range, so clamp before re-querying.
|
|
65
|
+
* Where the caller's revenue actually lies in time. Scoped by the same filters as the request (merchant, and where given customer, subscription and currency), so it is not an account-wide statement. Present only when the selected range returned nothing. An object carries the bounds of the real revenue; null means no revenue under these filters at any time; an absent field means the extent was not resolved, because the result was not empty or because the lookup failed. An absent field must never be read as an absence. The bounds are instants that exist and both are included, so a window that holds `to` ends after it. The bounds may span more than this endpoint's maximum queryable range, so clamp before re-querying.
|
|
66
66
|
*/
|
|
67
67
|
revenueRange?: ProfitabilitySummaryResponseRevenueRange | null | undefined;
|
|
68
68
|
/**
|
|
69
|
-
* Where the caller's cost data actually lies in time. Present only when the selected range returned no cost. An object carries the bounds of the real cost events; null means the caller has no cost event at any time; an absent field means the extent was not resolved, because the result was not empty, because the lookup failed, or because the metering service does not serve the bounds method. An absent field must never be read as an absence.
|
|
69
|
+
* Where the caller's cost data actually lies in time. Present only when the selected range returned no cost. An object carries the bounds of the real cost events; null means the caller has no cost event at any time; an absent field means the extent was not resolved, because the result was not empty, because the lookup failed, or because the metering service does not serve the bounds method. An absent field must never be read as an absence. The bounds are instants that exist and both are included, so a window that holds `to` ends after it.
|
|
70
70
|
*/
|
|
71
71
|
costRange?: ProfitabilitySummaryResponseCostRange | null | undefined;
|
|
72
72
|
};
|
|
@@ -16,7 +16,7 @@ export type RevenueAccountRow = {
|
|
|
16
16
|
*/
|
|
17
17
|
currency: string;
|
|
18
18
|
/**
|
|
19
|
-
* What is owed, gross of tax, from any date. `awaitingPayment` and `paymentFailed` add up to it, in count and amount.
|
|
19
|
+
* What is owed, gross of tax, from any date. `awaitingPayment` and `paymentFailed` add up to it, in count and amount. `overdue` is a part of `awaitingPayment`.
|
|
20
20
|
*/
|
|
21
21
|
outstanding: OutstandingBlock;
|
|
22
22
|
};
|
|
@@ -8,7 +8,7 @@ export type RevenueAccountTotal = {
|
|
|
8
8
|
*/
|
|
9
9
|
currency: string;
|
|
10
10
|
/**
|
|
11
|
-
* What is owed, gross of tax, from any date. `awaitingPayment` and `paymentFailed` add up to it, in count and amount.
|
|
11
|
+
* What is owed, gross of tax, from any date. `awaitingPayment` and `paymentFailed` add up to it, in count and amount. `overdue` is a part of `awaitingPayment`.
|
|
12
12
|
*/
|
|
13
13
|
outstanding: OutstandingBlock;
|
|
14
14
|
};
|
|
@@ -7,7 +7,7 @@ import { InvoiceSummary } from "./invoicesummary.js";
|
|
|
7
7
|
import { PaymentSummary } from "./paymentsummary.js";
|
|
8
8
|
import { RevenueTrendBucket } from "./revenuetrendbucket.js";
|
|
9
9
|
/**
|
|
10
|
-
* Where the caller's revenue actually lies in time. Scoped by the same filters as the request (merchant, and where given customer, subscription and currency), so it is not an account-wide statement. Present only when the selected range returned nothing. An object carries the bounds of the real revenue; null means no revenue under these filters at any time; an absent field means the extent was not resolved, because the result was not empty or because the lookup failed. An absent field must never be read as an absence. The bounds may span more than this endpoint's maximum queryable range, so clamp before re-querying.
|
|
10
|
+
* Where the caller's revenue actually lies in time. Scoped by the same filters as the request (merchant, and where given customer, subscription and currency), so it is not an account-wide statement. Present only when the selected range returned nothing. An object carries the bounds of the real revenue; null means no revenue under these filters at any time; an absent field means the extent was not resolved, because the result was not empty or because the lookup failed. An absent field must never be read as an absence. The bounds are instants that exist and both are included, so a window that holds `to` ends after it. The bounds may span more than this endpoint's maximum queryable range, so clamp before re-querying.
|
|
11
11
|
*/
|
|
12
12
|
export type RevenueSummaryResponseRevenueRange = {
|
|
13
13
|
/**
|
|
@@ -63,7 +63,7 @@ export type RevenueSummaryResponse = {
|
|
|
63
63
|
*/
|
|
64
64
|
currencyBreakdown?: Array<CurrencyBreakdownEntry> | undefined;
|
|
65
65
|
/**
|
|
66
|
-
* Where the caller's revenue actually lies in time. Scoped by the same filters as the request (merchant, and where given customer, subscription and currency), so it is not an account-wide statement. Present only when the selected range returned nothing. An object carries the bounds of the real revenue; null means no revenue under these filters at any time; an absent field means the extent was not resolved, because the result was not empty or because the lookup failed. An absent field must never be read as an absence. The bounds may span more than this endpoint's maximum queryable range, so clamp before re-querying.
|
|
66
|
+
* Where the caller's revenue actually lies in time. Scoped by the same filters as the request (merchant, and where given customer, subscription and currency), so it is not an account-wide statement. Present only when the selected range returned nothing. An object carries the bounds of the real revenue; null means no revenue under these filters at any time; an absent field means the extent was not resolved, because the result was not empty or because the lookup failed. An absent field must never be read as an absence. The bounds are instants that exist and both are included, so a window that holds `to` ends after it. The bounds may span more than this endpoint's maximum queryable range, so clamp before re-querying.
|
|
67
67
|
*/
|
|
68
68
|
revenueRange?: RevenueSummaryResponseRevenueRange | null | undefined;
|
|
69
69
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
+
import * as models from "../models/index.js";
|
|
3
|
+
export declare class Me extends ClientSDK {
|
|
4
|
+
/**
|
|
5
|
+
* Get the caller
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* Returns the caller's identity in its active organization, its roles, and the permissions that its credential holds there. The permissions are the effective set for the credential of the call: for a session or an API key, those of the principal; for an OAuth token, those of the principal narrowed to the scopes of the token.
|
|
9
|
+
*/
|
|
10
|
+
getMe(options?: RequestOptions): Promise<models.Me>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=me.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"me.d.ts","sourceRoot":"","sources":["../../../src/sdk/me.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAG7C,qBAAa,EAAG,SAAQ,SAAS;IAC/B;;;;;OAKG;IACG,KAAK,CACT,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;CAMtB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { meGetMe } from "../funcs/meGetMe.js";
|
|
5
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
6
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
7
|
+
export class Me extends ClientSDK {
|
|
8
|
+
/**
|
|
9
|
+
* Get the caller
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* Returns the caller's identity in its active organization, its roles, and the permissions that its credential holds there. The permissions are the effective set for the credential of the call: for a session or an API key, those of the principal; for an OAuth token, those of the principal narrowed to the scopes of the token.
|
|
13
|
+
*/
|
|
14
|
+
async getMe(options) {
|
|
15
|
+
return unwrapAsync(meGetMe(this, options));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=me.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"me.js","sourceRoot":"","sources":["../../../src/sdk/me.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,EAAG,SAAQ,SAAS;IAC/B;;;;;OAKG;IACH,KAAK,CAAC,KAAK,CACT,OAAwB;QAExB,OAAO,WAAW,CAAC,OAAO,CACxB,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/dist/esm/sdk/sdk.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { Features } from "./features.js";
|
|
|
11
11
|
import { Fees } from "./fees.js";
|
|
12
12
|
import { InvoicesV2 } from "./invoicesv2.js";
|
|
13
13
|
import { Items } from "./items.js";
|
|
14
|
+
import { Me } from "./me.js";
|
|
14
15
|
import { MerchantIntegrations } from "./merchantintegrations.js";
|
|
15
16
|
import { Merchants } from "./merchants.js";
|
|
16
17
|
import { Orders } from "./orders.js";
|
|
@@ -28,6 +29,8 @@ import { TestClocks } from "./testclocks.js";
|
|
|
28
29
|
import { Users } from "./users.js";
|
|
29
30
|
import { Webhooks } from "./webhooks.js";
|
|
30
31
|
export declare class Paygentic extends ClientSDK {
|
|
32
|
+
private _me?;
|
|
33
|
+
get me(): Me;
|
|
31
34
|
private _billableMetrics?;
|
|
32
35
|
get billableMetrics(): BillableMetrics;
|
|
33
36
|
private _customers?;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../src/sdk/sdk.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACz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