@salable/sdk 1.0.0-beta.1
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 +201 -0
- package/README.md +93 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.es.js +19915 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.js +19917 -0
- package/dist/index.js.map +1 -0
- package/dist/sdk/api/apiKeys/index.d.ts +66 -0
- package/dist/sdk/api/apiKeys/item/index.d.ts +48 -0
- package/dist/sdk/api/cartItems/index.d.ts +131 -0
- package/dist/sdk/api/cartItems/item/index.d.ts +31 -0
- package/dist/sdk/api/carts/batch/index.d.ts +36 -0
- package/dist/sdk/api/carts/index.d.ts +88 -0
- package/dist/sdk/api/carts/item/checkout/index.d.ts +35 -0
- package/dist/sdk/api/carts/item/index.d.ts +78 -0
- package/dist/sdk/api/checkout/index.d.ts +360 -0
- package/dist/sdk/api/currencyOptions/index.d.ts +56 -0
- package/dist/sdk/api/currencyOptions/item/index.d.ts +42 -0
- package/dist/sdk/api/destinations/index.d.ts +52 -0
- package/dist/sdk/api/destinations/item/index.d.ts +58 -0
- package/dist/sdk/api/entitlements/check/index.d.ts +40 -0
- package/dist/sdk/api/entitlements/index.d.ts +74 -0
- package/dist/sdk/api/entitlements/item/index.d.ts +67 -0
- package/dist/sdk/api/eventAttempts/index.d.ts +57 -0
- package/dist/sdk/api/events/index.d.ts +60 -0
- package/dist/sdk/api/events/item/index.d.ts +42 -0
- package/dist/sdk/api/grantees/index.d.ts +68 -0
- package/dist/sdk/api/grantees/item/index.d.ts +77 -0
- package/dist/sdk/api/groups/index.d.ts +73 -0
- package/dist/sdk/api/groups/item/grantees/index.d.ts +53 -0
- package/dist/sdk/api/groups/item/index.d.ts +88 -0
- package/dist/sdk/api/index.d.ts +164 -0
- package/dist/sdk/api/lineItems/index.d.ts +51 -0
- package/dist/sdk/api/lineItems/item/archive/index.d.ts +32 -0
- package/dist/sdk/api/lineItems/item/index.d.ts +109 -0
- package/dist/sdk/api/memberships/index.d.ts +52 -0
- package/dist/sdk/api/memberships/item/index.d.ts +42 -0
- package/dist/sdk/api/meters/index.d.ts +39 -0
- package/dist/sdk/api/owners/index.d.ts +51 -0
- package/dist/sdk/api/owners/item/index.d.ts +63 -0
- package/dist/sdk/api/paymentIntegrations/index.d.ts +91 -0
- package/dist/sdk/api/paymentIntegrations/item/index.d.ts +40 -0
- package/dist/sdk/api/paymentIntegrations/item/onboarding/index.d.ts +32 -0
- package/dist/sdk/api/plans/index.d.ts +236 -0
- package/dist/sdk/api/plans/item/archive/index.d.ts +32 -0
- package/dist/sdk/api/plans/item/index.d.ts +97 -0
- package/dist/sdk/api/plans/save/index.d.ts +33 -0
- package/dist/sdk/api/prices/index.d.ts +49 -0
- package/dist/sdk/api/prices/item/archive/index.d.ts +32 -0
- package/dist/sdk/api/prices/item/index.d.ts +57 -0
- package/dist/sdk/api/products/exportEscaped/index.d.ts +21 -0
- package/dist/sdk/api/products/exportEscaped/item/index.d.ts +32 -0
- package/dist/sdk/api/products/importEscaped/index.d.ts +32 -0
- package/dist/sdk/api/products/index.d.ts +92 -0
- package/dist/sdk/api/products/item/archive/index.d.ts +32 -0
- package/dist/sdk/api/products/item/index.d.ts +90 -0
- package/dist/sdk/api/receipts/index.d.ts +59 -0
- package/dist/sdk/api/receipts/item/index.d.ts +43 -0
- package/dist/sdk/api/signingKeys/index.d.ts +31 -0
- package/dist/sdk/api/stripe/accountSession/index.d.ts +31 -0
- package/dist/sdk/api/stripe/index.d.ts +19 -0
- package/dist/sdk/api/subscriptionPlanLineItems/index.d.ts +21 -0
- package/dist/sdk/api/subscriptionPlanLineItems/item/index.d.ts +86 -0
- package/dist/sdk/api/subscriptionPlanLineItems/item/sync/index.d.ts +31 -0
- package/dist/sdk/api/subscriptionPlans/index.d.ts +447 -0
- package/dist/sdk/api/subscriptionPlans/item/index.d.ts +1138 -0
- package/dist/sdk/api/subscriptionPlans/item/seats/index.d.ts +58 -0
- package/dist/sdk/api/subscriptions/batch/index.d.ts +35 -0
- package/dist/sdk/api/subscriptions/index.d.ts +312 -0
- package/dist/sdk/api/subscriptions/item/autoRenew/index.d.ts +43 -0
- package/dist/sdk/api/subscriptions/item/cancel/index.d.ts +32 -0
- package/dist/sdk/api/subscriptions/item/index.d.ts +90 -0
- package/dist/sdk/api/subscriptions/item/invoices/index.d.ts +33 -0
- package/dist/sdk/api/subscriptions/item/items/index.d.ts +34 -0
- package/dist/sdk/api/subscriptions/item/portal/index.d.ts +34 -0
- package/dist/sdk/api/tierTags/index.d.ts +58 -0
- package/dist/sdk/api/tiers/index.d.ts +50 -0
- package/dist/sdk/api/tiers/item/index.d.ts +31 -0
- package/dist/sdk/api/usage/index.d.ts +19 -0
- package/dist/sdk/api/usage/record/index.d.ts +33 -0
- package/dist/sdk/api/usageRecords/index.d.ts +55 -0
- package/dist/sdk/api/webhooks/index.d.ts +72 -0
- package/dist/sdk/api/webhooks/item/index.d.ts +77 -0
- package/dist/sdk/models/index.d.ts +16552 -0
- package/dist/sdk/salable.d.ts +24 -0
- package/package.json +48 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { type GetOwnerDetailSchema, type UpdateOwnerRequestSchema } from '../../../models/index.js';
|
|
2
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
+
export type GetExpandQueryParameterType = (typeof GetExpandQueryParameterTypeObject)[keyof typeof GetExpandQueryParameterTypeObject];
|
|
4
|
+
/**
|
|
5
|
+
* Builds and executes requests for operations under /api/owners/{id}
|
|
6
|
+
*/
|
|
7
|
+
export interface OwnersItemRequestBuilder extends BaseRequestBuilder<OwnersItemRequestBuilder> {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve Owner
|
|
10
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
11
|
+
* @returns {Promise<GetOwnerDetailSchema>}
|
|
12
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
13
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
14
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
15
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
16
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
17
|
+
*/
|
|
18
|
+
get(requestConfiguration?: RequestConfiguration<OwnersItemRequestBuilderGetQueryParameters> | undefined): Promise<GetOwnerDetailSchema | undefined>;
|
|
19
|
+
/**
|
|
20
|
+
* Update Owner
|
|
21
|
+
* @param body The request body
|
|
22
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
23
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
24
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
25
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
26
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
27
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
28
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
29
|
+
*/
|
|
30
|
+
put(body: UpdateOwnerRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieve Owner
|
|
33
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
34
|
+
* @returns {RequestInformation}
|
|
35
|
+
*/
|
|
36
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<OwnersItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
37
|
+
/**
|
|
38
|
+
* Update Owner
|
|
39
|
+
* @param body The request body
|
|
40
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
41
|
+
* @returns {RequestInformation}
|
|
42
|
+
*/
|
|
43
|
+
toPutRequestInformation(body: UpdateOwnerRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Retrieve Owner
|
|
47
|
+
*/
|
|
48
|
+
export interface OwnersItemRequestBuilderGetQueryParameters {
|
|
49
|
+
expand?: GetExpandQueryParameterType[];
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Uri template for the request builder.
|
|
53
|
+
*/
|
|
54
|
+
export declare const OwnersItemRequestBuilderUriTemplate = "{+baseurl}/api/owners/{id}{?expand}";
|
|
55
|
+
export declare const GetExpandQueryParameterTypeObject: {
|
|
56
|
+
readonly Carts: "carts";
|
|
57
|
+
readonly Subscriptions: "subscriptions";
|
|
58
|
+
readonly Groups: "groups";
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Metadata for all the requests in the request builder.
|
|
62
|
+
*/
|
|
63
|
+
export declare const OwnersItemRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { type GetPaymentIntegrationListSchema } from '../../models/index.js';
|
|
2
|
+
import { type PaymentIntegrationsItemRequestBuilder } from './item/index.js';
|
|
3
|
+
import { type AdditionalDataHolder, type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
4
|
+
/**
|
|
5
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
6
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
7
|
+
* @returns {PaymentIntegrationsPostRequestBody}
|
|
8
|
+
*/
|
|
9
|
+
export declare function createPaymentIntegrationsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
10
|
+
/**
|
|
11
|
+
* The deserialization information for the current model
|
|
12
|
+
* @param PaymentIntegrationsPostRequestBody The instance to deserialize into.
|
|
13
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
14
|
+
*/
|
|
15
|
+
export declare function deserializeIntoPaymentIntegrationsPostRequestBody(paymentIntegrationsPostRequestBody?: Partial<PaymentIntegrationsPostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
|
|
16
|
+
export interface PaymentIntegrationsPostRequestBody extends AdditionalDataHolder, Parsable {
|
|
17
|
+
/**
|
|
18
|
+
* Email address for the Stripe account
|
|
19
|
+
*/
|
|
20
|
+
emailAddress?: string | null;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Builds and executes requests for operations under /api/payment-integrations
|
|
24
|
+
*/
|
|
25
|
+
export interface PaymentIntegrationsRequestBuilder extends BaseRequestBuilder<PaymentIntegrationsRequestBuilder> {
|
|
26
|
+
/**
|
|
27
|
+
* Gets an item from the ApiSdk.api.paymentIntegrations.item collection
|
|
28
|
+
* @param id Resource ID
|
|
29
|
+
* @returns {PaymentIntegrationsItemRequestBuilder}
|
|
30
|
+
*/
|
|
31
|
+
byId(id: string): PaymentIntegrationsItemRequestBuilder;
|
|
32
|
+
/**
|
|
33
|
+
* List Payment Integrations
|
|
34
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
35
|
+
* @returns {Promise<GetPaymentIntegrationListSchema>}
|
|
36
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
37
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
38
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
39
|
+
*/
|
|
40
|
+
get(requestConfiguration?: RequestConfiguration<PaymentIntegrationsRequestBuilderGetQueryParameters> | undefined): Promise<GetPaymentIntegrationListSchema | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* Create a new Stripe standard account for the organisation
|
|
43
|
+
* @param body The request body
|
|
44
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
45
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
46
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
47
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
48
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
49
|
+
*/
|
|
50
|
+
post(body: PaymentIntegrationsPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* List Payment Integrations
|
|
53
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
54
|
+
* @returns {RequestInformation}
|
|
55
|
+
*/
|
|
56
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<PaymentIntegrationsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
57
|
+
/**
|
|
58
|
+
* Create a new Stripe standard account for the organisation
|
|
59
|
+
* @param body The request body
|
|
60
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
61
|
+
* @returns {RequestInformation}
|
|
62
|
+
*/
|
|
63
|
+
toPostRequestInformation(body: PaymentIntegrationsPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* List Payment Integrations
|
|
67
|
+
*/
|
|
68
|
+
export interface PaymentIntegrationsRequestBuilderGetQueryParameters {
|
|
69
|
+
after?: string;
|
|
70
|
+
before?: string;
|
|
71
|
+
limit?: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Serializes information the current object
|
|
75
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
76
|
+
* @param PaymentIntegrationsPostRequestBody The instance to serialize from.
|
|
77
|
+
* @param writer Serialization writer to use to serialize this model
|
|
78
|
+
*/
|
|
79
|
+
export declare function serializePaymentIntegrationsPostRequestBody(writer: SerializationWriter, paymentIntegrationsPostRequestBody?: Partial<PaymentIntegrationsPostRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
80
|
+
/**
|
|
81
|
+
* Uri template for the request builder.
|
|
82
|
+
*/
|
|
83
|
+
export declare const PaymentIntegrationsRequestBuilderUriTemplate = "{+baseurl}/api/payment-integrations{?after*,before*,limit*}";
|
|
84
|
+
/**
|
|
85
|
+
* Metadata for all the navigation properties in the request builder.
|
|
86
|
+
*/
|
|
87
|
+
export declare const PaymentIntegrationsRequestBuilderNavigationMetadata: Record<Exclude<keyof PaymentIntegrationsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
88
|
+
/**
|
|
89
|
+
* Metadata for all the requests in the request builder.
|
|
90
|
+
*/
|
|
91
|
+
export declare const PaymentIntegrationsRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type OnboardingRequestBuilder } from './onboarding/index.js';
|
|
2
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Builds and executes requests for operations under /api/payment-integrations/{id}
|
|
5
|
+
*/
|
|
6
|
+
export interface PaymentIntegrationsItemRequestBuilder extends BaseRequestBuilder<PaymentIntegrationsItemRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* The onboarding property
|
|
9
|
+
*/
|
|
10
|
+
get onboarding(): OnboardingRequestBuilder;
|
|
11
|
+
/**
|
|
12
|
+
* Delete Payment Integration
|
|
13
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
14
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
15
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
16
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
17
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
18
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
19
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
20
|
+
*/
|
|
21
|
+
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Delete Payment Integration
|
|
24
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
25
|
+
* @returns {RequestInformation}
|
|
26
|
+
*/
|
|
27
|
+
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Uri template for the request builder.
|
|
31
|
+
*/
|
|
32
|
+
export declare const PaymentIntegrationsItemRequestBuilderUriTemplate = "{+baseurl}/api/payment-integrations/{id}";
|
|
33
|
+
/**
|
|
34
|
+
* Metadata for all the navigation properties in the request builder.
|
|
35
|
+
*/
|
|
36
|
+
export declare const PaymentIntegrationsItemRequestBuilderNavigationMetadata: Record<Exclude<keyof PaymentIntegrationsItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
37
|
+
/**
|
|
38
|
+
* Metadata for all the requests in the request builder.
|
|
39
|
+
*/
|
|
40
|
+
export declare const PaymentIntegrationsItemRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
2
|
+
/**
|
|
3
|
+
* Builds and executes requests for operations under /api/payment-integrations/{id}/onboarding
|
|
4
|
+
*/
|
|
5
|
+
export interface OnboardingRequestBuilder extends BaseRequestBuilder<OnboardingRequestBuilder> {
|
|
6
|
+
/**
|
|
7
|
+
* Generate a new Stripe onboarding link for an existing payment integration
|
|
8
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
9
|
+
* @returns {Promise<ArrayBuffer>}
|
|
10
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
11
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
12
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
13
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
14
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
15
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
16
|
+
*/
|
|
17
|
+
post(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ArrayBuffer | undefined>;
|
|
18
|
+
/**
|
|
19
|
+
* Generate a new Stripe onboarding link for an existing payment integration
|
|
20
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
21
|
+
* @returns {RequestInformation}
|
|
22
|
+
*/
|
|
23
|
+
toPostRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Uri template for the request builder.
|
|
27
|
+
*/
|
|
28
|
+
export declare const OnboardingRequestBuilderUriTemplate = "{+baseurl}/api/payment-integrations/{id}/onboarding";
|
|
29
|
+
/**
|
|
30
|
+
* Metadata for all the requests in the request builder.
|
|
31
|
+
*/
|
|
32
|
+
export declare const OnboardingRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { type CreatePlanResponseSchema, type GetPlanListSchema, type PlanRequestSchema } from '../../models/index.js';
|
|
2
|
+
import { type PlansItemRequestBuilder } from './item/index.js';
|
|
3
|
+
import { type SaveRequestBuilder } from './save/index.js';
|
|
4
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
5
|
+
export type GetDefaultCurrencyQueryParameterType = (typeof GetDefaultCurrencyQueryParameterTypeObject)[keyof typeof GetDefaultCurrencyQueryParameterTypeObject];
|
|
6
|
+
export type GetExpandQueryParameterType = (typeof GetExpandQueryParameterTypeObject)[keyof typeof GetExpandQueryParameterTypeObject];
|
|
7
|
+
export type GetIntervalQueryParameterType = (typeof GetIntervalQueryParameterTypeObject)[keyof typeof GetIntervalQueryParameterTypeObject];
|
|
8
|
+
/**
|
|
9
|
+
* Builds and executes requests for operations under /api/plans
|
|
10
|
+
*/
|
|
11
|
+
export interface PlansRequestBuilder extends BaseRequestBuilder<PlansRequestBuilder> {
|
|
12
|
+
/**
|
|
13
|
+
* The save property
|
|
14
|
+
*/
|
|
15
|
+
get save(): SaveRequestBuilder;
|
|
16
|
+
/**
|
|
17
|
+
* Gets an item from the ApiSdk.api.plans.item collection
|
|
18
|
+
* @param id Resource ID
|
|
19
|
+
* @returns {PlansItemRequestBuilder}
|
|
20
|
+
*/
|
|
21
|
+
byId(id: string): PlansItemRequestBuilder;
|
|
22
|
+
/**
|
|
23
|
+
* List Plans
|
|
24
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
25
|
+
* @returns {Promise<GetPlanListSchema>}
|
|
26
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
27
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
28
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
29
|
+
*/
|
|
30
|
+
get(requestConfiguration?: RequestConfiguration<PlansRequestBuilderGetQueryParameters> | undefined): Promise<GetPlanListSchema | undefined>;
|
|
31
|
+
/**
|
|
32
|
+
* Create Plan
|
|
33
|
+
* @param body The request body
|
|
34
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
35
|
+
* @returns {Promise<CreatePlanResponseSchema>}
|
|
36
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
37
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
38
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
39
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
40
|
+
*/
|
|
41
|
+
post(body: PlanRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<CreatePlanResponseSchema | undefined>;
|
|
42
|
+
/**
|
|
43
|
+
* List Plans
|
|
44
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
45
|
+
* @returns {RequestInformation}
|
|
46
|
+
*/
|
|
47
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<PlansRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
48
|
+
/**
|
|
49
|
+
* Create Plan
|
|
50
|
+
* @param body The request body
|
|
51
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
52
|
+
* @returns {RequestInformation}
|
|
53
|
+
*/
|
|
54
|
+
toPostRequestInformation(body: PlanRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* List Plans
|
|
58
|
+
*/
|
|
59
|
+
export interface PlansRequestBuilderGetQueryParameters {
|
|
60
|
+
after?: string;
|
|
61
|
+
before?: string;
|
|
62
|
+
defaultCurrency?: GetDefaultCurrencyQueryParameterType;
|
|
63
|
+
expand?: GetExpandQueryParameterType[];
|
|
64
|
+
includeArchived?: string;
|
|
65
|
+
includeFilterOptions?: string;
|
|
66
|
+
interval?: GetIntervalQueryParameterType;
|
|
67
|
+
intervalCount?: string;
|
|
68
|
+
isActive?: string;
|
|
69
|
+
limit?: string;
|
|
70
|
+
productId?: string;
|
|
71
|
+
search?: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Uri template for the request builder.
|
|
75
|
+
*/
|
|
76
|
+
export declare const PlansRequestBuilderUriTemplate = "{+baseurl}/api/plans{?after*,before*,defaultCurrency*,expand,includeArchived*,includeFilterOptions*,interval*,intervalCount*,isActive*,limit*,productId*,search*}";
|
|
77
|
+
export declare const GetDefaultCurrencyQueryParameterTypeObject: {
|
|
78
|
+
readonly USD: "USD";
|
|
79
|
+
readonly AED: "AED";
|
|
80
|
+
readonly AFN: "AFN";
|
|
81
|
+
readonly ALL: "ALL";
|
|
82
|
+
readonly AMD: "AMD";
|
|
83
|
+
readonly ANG: "ANG";
|
|
84
|
+
readonly AOA: "AOA";
|
|
85
|
+
readonly ARS: "ARS";
|
|
86
|
+
readonly AUD: "AUD";
|
|
87
|
+
readonly AWG: "AWG";
|
|
88
|
+
readonly AZN: "AZN";
|
|
89
|
+
readonly BAM: "BAM";
|
|
90
|
+
readonly BBD: "BBD";
|
|
91
|
+
readonly BDT: "BDT";
|
|
92
|
+
readonly BGN: "BGN";
|
|
93
|
+
readonly BIF: "BIF";
|
|
94
|
+
readonly BMD: "BMD";
|
|
95
|
+
readonly BND: "BND";
|
|
96
|
+
readonly BOB: "BOB";
|
|
97
|
+
readonly BRL: "BRL";
|
|
98
|
+
readonly BSD: "BSD";
|
|
99
|
+
readonly BWP: "BWP";
|
|
100
|
+
readonly BYN: "BYN";
|
|
101
|
+
readonly BZD: "BZD";
|
|
102
|
+
readonly CAD: "CAD";
|
|
103
|
+
readonly CDF: "CDF";
|
|
104
|
+
readonly CHF: "CHF";
|
|
105
|
+
readonly CLP: "CLP";
|
|
106
|
+
readonly CNY: "CNY";
|
|
107
|
+
readonly COP: "COP";
|
|
108
|
+
readonly CRC: "CRC";
|
|
109
|
+
readonly CVE: "CVE";
|
|
110
|
+
readonly CZK: "CZK";
|
|
111
|
+
readonly DJF: "DJF";
|
|
112
|
+
readonly DKK: "DKK";
|
|
113
|
+
readonly DOP: "DOP";
|
|
114
|
+
readonly DZD: "DZD";
|
|
115
|
+
readonly EGP: "EGP";
|
|
116
|
+
readonly ETB: "ETB";
|
|
117
|
+
readonly EUR: "EUR";
|
|
118
|
+
readonly FJD: "FJD";
|
|
119
|
+
readonly FKP: "FKP";
|
|
120
|
+
readonly GBP: "GBP";
|
|
121
|
+
readonly GEL: "GEL";
|
|
122
|
+
readonly GIP: "GIP";
|
|
123
|
+
readonly GMD: "GMD";
|
|
124
|
+
readonly GNF: "GNF";
|
|
125
|
+
readonly GTQ: "GTQ";
|
|
126
|
+
readonly GYD: "GYD";
|
|
127
|
+
readonly HKD: "HKD";
|
|
128
|
+
readonly HNL: "HNL";
|
|
129
|
+
readonly HTG: "HTG";
|
|
130
|
+
readonly HUF: "HUF";
|
|
131
|
+
readonly IDR: "IDR";
|
|
132
|
+
readonly ILS: "ILS";
|
|
133
|
+
readonly INR: "INR";
|
|
134
|
+
readonly ISK: "ISK";
|
|
135
|
+
readonly JMD: "JMD";
|
|
136
|
+
readonly JPY: "JPY";
|
|
137
|
+
readonly KES: "KES";
|
|
138
|
+
readonly KGS: "KGS";
|
|
139
|
+
readonly KHR: "KHR";
|
|
140
|
+
readonly KMF: "KMF";
|
|
141
|
+
readonly KRW: "KRW";
|
|
142
|
+
readonly KYD: "KYD";
|
|
143
|
+
readonly KZT: "KZT";
|
|
144
|
+
readonly LAK: "LAK";
|
|
145
|
+
readonly LBP: "LBP";
|
|
146
|
+
readonly LKR: "LKR";
|
|
147
|
+
readonly LRD: "LRD";
|
|
148
|
+
readonly LSL: "LSL";
|
|
149
|
+
readonly MAD: "MAD";
|
|
150
|
+
readonly MDL: "MDL";
|
|
151
|
+
readonly MGA: "MGA";
|
|
152
|
+
readonly MKD: "MKD";
|
|
153
|
+
readonly MMK: "MMK";
|
|
154
|
+
readonly MNT: "MNT";
|
|
155
|
+
readonly MOP: "MOP";
|
|
156
|
+
readonly MUR: "MUR";
|
|
157
|
+
readonly MVR: "MVR";
|
|
158
|
+
readonly MWK: "MWK";
|
|
159
|
+
readonly MXN: "MXN";
|
|
160
|
+
readonly MYR: "MYR";
|
|
161
|
+
readonly MZN: "MZN";
|
|
162
|
+
readonly NAD: "NAD";
|
|
163
|
+
readonly NGN: "NGN";
|
|
164
|
+
readonly NIO: "NIO";
|
|
165
|
+
readonly NOK: "NOK";
|
|
166
|
+
readonly NPR: "NPR";
|
|
167
|
+
readonly NZD: "NZD";
|
|
168
|
+
readonly PAB: "PAB";
|
|
169
|
+
readonly PEN: "PEN";
|
|
170
|
+
readonly PGK: "PGK";
|
|
171
|
+
readonly PHP: "PHP";
|
|
172
|
+
readonly PKR: "PKR";
|
|
173
|
+
readonly PLN: "PLN";
|
|
174
|
+
readonly PYG: "PYG";
|
|
175
|
+
readonly QAR: "QAR";
|
|
176
|
+
readonly RON: "RON";
|
|
177
|
+
readonly RSD: "RSD";
|
|
178
|
+
readonly RUB: "RUB";
|
|
179
|
+
readonly RWF: "RWF";
|
|
180
|
+
readonly SAR: "SAR";
|
|
181
|
+
readonly SBD: "SBD";
|
|
182
|
+
readonly SCR: "SCR";
|
|
183
|
+
readonly SEK: "SEK";
|
|
184
|
+
readonly SGD: "SGD";
|
|
185
|
+
readonly SHP: "SHP";
|
|
186
|
+
readonly SLE: "SLE";
|
|
187
|
+
readonly SOS: "SOS";
|
|
188
|
+
readonly SRD: "SRD";
|
|
189
|
+
readonly STD: "STD";
|
|
190
|
+
readonly SZL: "SZL";
|
|
191
|
+
readonly THB: "THB";
|
|
192
|
+
readonly TJS: "TJS";
|
|
193
|
+
readonly TOP: "TOP";
|
|
194
|
+
readonly TRYEscaped: "TRY";
|
|
195
|
+
readonly TTD: "TTD";
|
|
196
|
+
readonly TWD: "TWD";
|
|
197
|
+
readonly TZS: "TZS";
|
|
198
|
+
readonly UAH: "UAH";
|
|
199
|
+
readonly UGX: "UGX";
|
|
200
|
+
readonly UYU: "UYU";
|
|
201
|
+
readonly UZS: "UZS";
|
|
202
|
+
readonly VND: "VND";
|
|
203
|
+
readonly VUV: "VUV";
|
|
204
|
+
readonly WST: "WST";
|
|
205
|
+
readonly XAF: "XAF";
|
|
206
|
+
readonly XCD: "XCD";
|
|
207
|
+
readonly XCG: "XCG";
|
|
208
|
+
readonly XOF: "XOF";
|
|
209
|
+
readonly XPF: "XPF";
|
|
210
|
+
readonly YER: "YER";
|
|
211
|
+
readonly ZAR: "ZAR";
|
|
212
|
+
readonly ZMW: "ZMW";
|
|
213
|
+
readonly BHD: "BHD";
|
|
214
|
+
readonly KWD: "KWD";
|
|
215
|
+
readonly OMR: "OMR";
|
|
216
|
+
};
|
|
217
|
+
export declare const GetExpandQueryParameterTypeObject: {
|
|
218
|
+
readonly Entitlements: "entitlements";
|
|
219
|
+
readonly LineItems: "lineItems";
|
|
220
|
+
readonly Product: "product";
|
|
221
|
+
readonly TierTag: "tierTag";
|
|
222
|
+
};
|
|
223
|
+
export declare const GetIntervalQueryParameterTypeObject: {
|
|
224
|
+
readonly Day: "day";
|
|
225
|
+
readonly Week: "week";
|
|
226
|
+
readonly Month: "month";
|
|
227
|
+
readonly Year: "year";
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* Metadata for all the navigation properties in the request builder.
|
|
231
|
+
*/
|
|
232
|
+
export declare const PlansRequestBuilderNavigationMetadata: Record<Exclude<keyof PlansRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
233
|
+
/**
|
|
234
|
+
* Metadata for all the requests in the request builder.
|
|
235
|
+
*/
|
|
236
|
+
export declare const PlansRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
2
|
+
/**
|
|
3
|
+
* Builds and executes requests for operations under /api/plans/{id}/archive
|
|
4
|
+
*/
|
|
5
|
+
export interface ArchiveRequestBuilder extends BaseRequestBuilder<ArchiveRequestBuilder> {
|
|
6
|
+
/**
|
|
7
|
+
* Archives a plan. Archived plans cannot be modified. Cannot archive a plan if its parent product is already archived.
|
|
8
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
9
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
10
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
11
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
12
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
13
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
14
|
+
* @throws {ErrorResponseBody} error when the service returns a 429 status code
|
|
15
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
16
|
+
*/
|
|
17
|
+
post(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Archives a plan. Archived plans cannot be modified. Cannot archive a plan if its parent product is already archived.
|
|
20
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
21
|
+
* @returns {RequestInformation}
|
|
22
|
+
*/
|
|
23
|
+
toPostRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Uri template for the request builder.
|
|
27
|
+
*/
|
|
28
|
+
export declare const ArchiveRequestBuilderUriTemplate = "{+baseurl}/api/plans/{id}/archive";
|
|
29
|
+
/**
|
|
30
|
+
* Metadata for all the requests in the request builder.
|
|
31
|
+
*/
|
|
32
|
+
export declare const ArchiveRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { type GetPlanDetailSchema, type PlanRequestSchema, type UpdatePlanResponseSchema } from '../../../models/index.js';
|
|
2
|
+
import { type ArchiveRequestBuilder } from './archive/index.js';
|
|
3
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
4
|
+
export type GetExpandQueryParameterType = (typeof GetExpandQueryParameterTypeObject)[keyof typeof GetExpandQueryParameterTypeObject];
|
|
5
|
+
export type GetIncludeArchivedQueryParameterType = (typeof GetIncludeArchivedQueryParameterTypeObject)[keyof typeof GetIncludeArchivedQueryParameterTypeObject];
|
|
6
|
+
/**
|
|
7
|
+
* Builds and executes requests for operations under /api/plans/{id}
|
|
8
|
+
*/
|
|
9
|
+
export interface PlansItemRequestBuilder extends BaseRequestBuilder<PlansItemRequestBuilder> {
|
|
10
|
+
/**
|
|
11
|
+
* The archive property
|
|
12
|
+
*/
|
|
13
|
+
get archive(): ArchiveRequestBuilder;
|
|
14
|
+
/**
|
|
15
|
+
* Delete Plan
|
|
16
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
17
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
18
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
19
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
20
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
21
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
22
|
+
*/
|
|
23
|
+
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Retrieve Plan
|
|
26
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
27
|
+
* @returns {Promise<GetPlanDetailSchema>}
|
|
28
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
29
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
30
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
31
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
32
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
33
|
+
*/
|
|
34
|
+
get(requestConfiguration?: RequestConfiguration<PlansItemRequestBuilderGetQueryParameters> | undefined): Promise<GetPlanDetailSchema | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* Update Plan
|
|
37
|
+
* @param body The request body
|
|
38
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
39
|
+
* @returns {Promise<UpdatePlanResponseSchema>}
|
|
40
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
41
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
42
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
43
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
44
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
45
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
46
|
+
*/
|
|
47
|
+
put(body: PlanRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<UpdatePlanResponseSchema | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* Delete Plan
|
|
50
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
51
|
+
* @returns {RequestInformation}
|
|
52
|
+
*/
|
|
53
|
+
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
54
|
+
/**
|
|
55
|
+
* Retrieve Plan
|
|
56
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
57
|
+
* @returns {RequestInformation}
|
|
58
|
+
*/
|
|
59
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<PlansItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
60
|
+
/**
|
|
61
|
+
* Update Plan
|
|
62
|
+
* @param body The request body
|
|
63
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
64
|
+
* @returns {RequestInformation}
|
|
65
|
+
*/
|
|
66
|
+
toPutRequestInformation(body: PlanRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Retrieve Plan
|
|
70
|
+
*/
|
|
71
|
+
export interface PlansItemRequestBuilderGetQueryParameters {
|
|
72
|
+
expand?: GetExpandQueryParameterType[];
|
|
73
|
+
includeArchived?: GetIncludeArchivedQueryParameterType;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Uri template for the request builder.
|
|
77
|
+
*/
|
|
78
|
+
export declare const PlansItemRequestBuilderUriTemplate = "{+baseurl}/api/plans/{id}{?expand,includeArchived*}";
|
|
79
|
+
export declare const GetExpandQueryParameterTypeObject: {
|
|
80
|
+
readonly Entitlements: "entitlements";
|
|
81
|
+
readonly LineItems: "lineItems";
|
|
82
|
+
readonly Product: "product";
|
|
83
|
+
readonly SubscriptionPlans: "subscriptionPlans";
|
|
84
|
+
readonly TierTag: "tierTag";
|
|
85
|
+
};
|
|
86
|
+
export declare const GetIncludeArchivedQueryParameterTypeObject: {
|
|
87
|
+
readonly TrueEscaped: "true";
|
|
88
|
+
readonly FalseEscaped: "false";
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Metadata for all the navigation properties in the request builder.
|
|
92
|
+
*/
|
|
93
|
+
export declare const PlansItemRequestBuilderNavigationMetadata: Record<Exclude<keyof PlansItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
94
|
+
/**
|
|
95
|
+
* Metadata for all the requests in the request builder.
|
|
96
|
+
*/
|
|
97
|
+
export declare const PlansItemRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type SavePlanRequestSchema, type SavePlanResponseSchema } from '../../../models/index.js';
|
|
2
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Builds and executes requests for operations under /api/plans/save
|
|
5
|
+
*/
|
|
6
|
+
export interface SaveRequestBuilder extends BaseRequestBuilder<SaveRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* Create or update a plan with complex nested data including line items, prices, currency options, and tiers
|
|
9
|
+
* @param body The request body
|
|
10
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
11
|
+
* @returns {Promise<SavePlanResponseSchema>}
|
|
12
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
13
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
14
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
15
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
16
|
+
*/
|
|
17
|
+
post(body: SavePlanRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<SavePlanResponseSchema | undefined>;
|
|
18
|
+
/**
|
|
19
|
+
* Create or update a plan with complex nested data including line items, prices, currency options, and tiers
|
|
20
|
+
* @param body The request body
|
|
21
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
22
|
+
* @returns {RequestInformation}
|
|
23
|
+
*/
|
|
24
|
+
toPostRequestInformation(body: SavePlanRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Uri template for the request builder.
|
|
28
|
+
*/
|
|
29
|
+
export declare const SaveRequestBuilderUriTemplate = "{+baseurl}/api/plans/save";
|
|
30
|
+
/**
|
|
31
|
+
* Metadata for all the requests in the request builder.
|
|
32
|
+
*/
|
|
33
|
+
export declare const SaveRequestBuilderRequestsMetadata: RequestsMetadata;
|