@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.
Files changed (86) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +93 -0
  3. package/dist/index.d.ts +5 -0
  4. package/dist/index.es.js +19915 -0
  5. package/dist/index.es.js.map +1 -0
  6. package/dist/index.js +19917 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/sdk/api/apiKeys/index.d.ts +66 -0
  9. package/dist/sdk/api/apiKeys/item/index.d.ts +48 -0
  10. package/dist/sdk/api/cartItems/index.d.ts +131 -0
  11. package/dist/sdk/api/cartItems/item/index.d.ts +31 -0
  12. package/dist/sdk/api/carts/batch/index.d.ts +36 -0
  13. package/dist/sdk/api/carts/index.d.ts +88 -0
  14. package/dist/sdk/api/carts/item/checkout/index.d.ts +35 -0
  15. package/dist/sdk/api/carts/item/index.d.ts +78 -0
  16. package/dist/sdk/api/checkout/index.d.ts +360 -0
  17. package/dist/sdk/api/currencyOptions/index.d.ts +56 -0
  18. package/dist/sdk/api/currencyOptions/item/index.d.ts +42 -0
  19. package/dist/sdk/api/destinations/index.d.ts +52 -0
  20. package/dist/sdk/api/destinations/item/index.d.ts +58 -0
  21. package/dist/sdk/api/entitlements/check/index.d.ts +40 -0
  22. package/dist/sdk/api/entitlements/index.d.ts +74 -0
  23. package/dist/sdk/api/entitlements/item/index.d.ts +67 -0
  24. package/dist/sdk/api/eventAttempts/index.d.ts +57 -0
  25. package/dist/sdk/api/events/index.d.ts +60 -0
  26. package/dist/sdk/api/events/item/index.d.ts +42 -0
  27. package/dist/sdk/api/grantees/index.d.ts +68 -0
  28. package/dist/sdk/api/grantees/item/index.d.ts +77 -0
  29. package/dist/sdk/api/groups/index.d.ts +73 -0
  30. package/dist/sdk/api/groups/item/grantees/index.d.ts +53 -0
  31. package/dist/sdk/api/groups/item/index.d.ts +88 -0
  32. package/dist/sdk/api/index.d.ts +164 -0
  33. package/dist/sdk/api/lineItems/index.d.ts +51 -0
  34. package/dist/sdk/api/lineItems/item/archive/index.d.ts +32 -0
  35. package/dist/sdk/api/lineItems/item/index.d.ts +109 -0
  36. package/dist/sdk/api/memberships/index.d.ts +52 -0
  37. package/dist/sdk/api/memberships/item/index.d.ts +42 -0
  38. package/dist/sdk/api/meters/index.d.ts +39 -0
  39. package/dist/sdk/api/owners/index.d.ts +51 -0
  40. package/dist/sdk/api/owners/item/index.d.ts +63 -0
  41. package/dist/sdk/api/paymentIntegrations/index.d.ts +91 -0
  42. package/dist/sdk/api/paymentIntegrations/item/index.d.ts +40 -0
  43. package/dist/sdk/api/paymentIntegrations/item/onboarding/index.d.ts +32 -0
  44. package/dist/sdk/api/plans/index.d.ts +236 -0
  45. package/dist/sdk/api/plans/item/archive/index.d.ts +32 -0
  46. package/dist/sdk/api/plans/item/index.d.ts +97 -0
  47. package/dist/sdk/api/plans/save/index.d.ts +33 -0
  48. package/dist/sdk/api/prices/index.d.ts +49 -0
  49. package/dist/sdk/api/prices/item/archive/index.d.ts +32 -0
  50. package/dist/sdk/api/prices/item/index.d.ts +57 -0
  51. package/dist/sdk/api/products/exportEscaped/index.d.ts +21 -0
  52. package/dist/sdk/api/products/exportEscaped/item/index.d.ts +32 -0
  53. package/dist/sdk/api/products/importEscaped/index.d.ts +32 -0
  54. package/dist/sdk/api/products/index.d.ts +92 -0
  55. package/dist/sdk/api/products/item/archive/index.d.ts +32 -0
  56. package/dist/sdk/api/products/item/index.d.ts +90 -0
  57. package/dist/sdk/api/receipts/index.d.ts +59 -0
  58. package/dist/sdk/api/receipts/item/index.d.ts +43 -0
  59. package/dist/sdk/api/signingKeys/index.d.ts +31 -0
  60. package/dist/sdk/api/stripe/accountSession/index.d.ts +31 -0
  61. package/dist/sdk/api/stripe/index.d.ts +19 -0
  62. package/dist/sdk/api/subscriptionPlanLineItems/index.d.ts +21 -0
  63. package/dist/sdk/api/subscriptionPlanLineItems/item/index.d.ts +86 -0
  64. package/dist/sdk/api/subscriptionPlanLineItems/item/sync/index.d.ts +31 -0
  65. package/dist/sdk/api/subscriptionPlans/index.d.ts +447 -0
  66. package/dist/sdk/api/subscriptionPlans/item/index.d.ts +1138 -0
  67. package/dist/sdk/api/subscriptionPlans/item/seats/index.d.ts +58 -0
  68. package/dist/sdk/api/subscriptions/batch/index.d.ts +35 -0
  69. package/dist/sdk/api/subscriptions/index.d.ts +312 -0
  70. package/dist/sdk/api/subscriptions/item/autoRenew/index.d.ts +43 -0
  71. package/dist/sdk/api/subscriptions/item/cancel/index.d.ts +32 -0
  72. package/dist/sdk/api/subscriptions/item/index.d.ts +90 -0
  73. package/dist/sdk/api/subscriptions/item/invoices/index.d.ts +33 -0
  74. package/dist/sdk/api/subscriptions/item/items/index.d.ts +34 -0
  75. package/dist/sdk/api/subscriptions/item/portal/index.d.ts +34 -0
  76. package/dist/sdk/api/tierTags/index.d.ts +58 -0
  77. package/dist/sdk/api/tiers/index.d.ts +50 -0
  78. package/dist/sdk/api/tiers/item/index.d.ts +31 -0
  79. package/dist/sdk/api/usage/index.d.ts +19 -0
  80. package/dist/sdk/api/usage/record/index.d.ts +33 -0
  81. package/dist/sdk/api/usageRecords/index.d.ts +55 -0
  82. package/dist/sdk/api/webhooks/index.d.ts +72 -0
  83. package/dist/sdk/api/webhooks/item/index.d.ts +77 -0
  84. package/dist/sdk/models/index.d.ts +16552 -0
  85. package/dist/sdk/salable.d.ts +24 -0
  86. package/package.json +48 -0
@@ -0,0 +1,21 @@
1
+ import { type SubscriptionPlanLineItemsItemRequestBuilder } from './item/index.js';
2
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Builds and executes requests for operations under /api/subscription-plan-line-items
5
+ */
6
+ export interface SubscriptionPlanLineItemsRequestBuilder extends BaseRequestBuilder<SubscriptionPlanLineItemsRequestBuilder> {
7
+ /**
8
+ * Gets an item from the ApiSdk.api.subscriptionPlanLineItems.item collection
9
+ * @param id Resource ID
10
+ * @returns {SubscriptionPlanLineItemsItemRequestBuilder}
11
+ */
12
+ byId(id: string): SubscriptionPlanLineItemsItemRequestBuilder;
13
+ }
14
+ /**
15
+ * Uri template for the request builder.
16
+ */
17
+ export declare const SubscriptionPlanLineItemsRequestBuilderUriTemplate = "{+baseurl}/api/subscription-plan-line-items";
18
+ /**
19
+ * Metadata for all the navigation properties in the request builder.
20
+ */
21
+ export declare const SubscriptionPlanLineItemsRequestBuilderNavigationMetadata: Record<Exclude<keyof SubscriptionPlanLineItemsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
@@ -0,0 +1,86 @@
1
+ import { type GetSubscriptionPlanLineItemSchema } from '../../../models/index.js';
2
+ import { type SyncRequestBuilder } from './sync/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 {SubscriptionPlanLineItemsPutRequestBody}
8
+ */
9
+ export declare function createSubscriptionPlanLineItemsPutRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
10
+ /**
11
+ * The deserialization information for the current model
12
+ * @param SubscriptionPlanLineItemsPutRequestBody The instance to deserialize into.
13
+ * @returns {Record<string, (node: ParseNode) => void>}
14
+ */
15
+ export declare function deserializeIntoSubscriptionPlanLineItemsPutRequestBody(subscriptionPlanLineItemsPutRequestBody?: Partial<SubscriptionPlanLineItemsPutRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
16
+ /**
17
+ * Serializes information the current object
18
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
19
+ * @param SubscriptionPlanLineItemsPutRequestBody The instance to serialize from.
20
+ * @param writer Serialization writer to use to serialize this model
21
+ */
22
+ export declare function serializeSubscriptionPlanLineItemsPutRequestBody(writer: SerializationWriter, subscriptionPlanLineItemsPutRequestBody?: Partial<SubscriptionPlanLineItemsPutRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void;
23
+ /**
24
+ * Builds and executes requests for operations under /api/subscription-plan-line-items/{id}
25
+ */
26
+ export interface SubscriptionPlanLineItemsItemRequestBuilder extends BaseRequestBuilder<SubscriptionPlanLineItemsItemRequestBuilder> {
27
+ /**
28
+ * The sync property
29
+ */
30
+ get sync(): SyncRequestBuilder;
31
+ /**
32
+ * Get Subscription Plan Line Item
33
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
34
+ * @returns {Promise<GetSubscriptionPlanLineItemSchema>}
35
+ * @throws {ErrorResponseBody} error when the service returns a 400 status code
36
+ * @throws {ErrorResponseBody} error when the service returns a 401 status code
37
+ * @throws {ErrorResponseBody} error when the service returns a 403 status code
38
+ * @throws {ErrorResponseBody} error when the service returns a 404 status code
39
+ * @throws {ErrorResponseBody} error when the service returns a 405 status code
40
+ * @throws {ErrorResponseBody} error when the service returns a 500 status code
41
+ */
42
+ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<GetSubscriptionPlanLineItemSchema | undefined>;
43
+ /**
44
+ * Update Subscription Plan Line Item
45
+ * @param body The request body
46
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
47
+ * @throws {ErrorResponseBody} error when the service returns a 400 status code
48
+ * @throws {ErrorResponseBody} error when the service returns a 401 status code
49
+ * @throws {ErrorResponseBody} error when the service returns a 403 status code
50
+ * @throws {ErrorResponseBody} error when the service returns a 404 status code
51
+ * @throws {ErrorResponseBody} error when the service returns a 405 status code
52
+ * @throws {ErrorResponseBody} error when the service returns a 500 status code
53
+ */
54
+ put(body: SubscriptionPlanLineItemsPutRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
55
+ /**
56
+ * Get Subscription Plan Line Item
57
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
58
+ * @returns {RequestInformation}
59
+ */
60
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
61
+ /**
62
+ * Update Subscription Plan Line Item
63
+ * @param body The request body
64
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
65
+ * @returns {RequestInformation}
66
+ */
67
+ toPutRequestInformation(body: SubscriptionPlanLineItemsPutRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
68
+ }
69
+ export interface SubscriptionPlanLineItemsPutRequestBody extends AdditionalDataHolder, Parsable {
70
+ /**
71
+ * The new quantity of the item. If the item is per-seat, the quantity cannot exceed minimum or maximum seat limits.
72
+ */
73
+ quantity?: number | null;
74
+ }
75
+ /**
76
+ * Uri template for the request builder.
77
+ */
78
+ export declare const SubscriptionPlanLineItemsItemRequestBuilderUriTemplate = "{+baseurl}/api/subscription-plan-line-items/{id}";
79
+ /**
80
+ * Metadata for all the navigation properties in the request builder.
81
+ */
82
+ export declare const SubscriptionPlanLineItemsItemRequestBuilderNavigationMetadata: Record<Exclude<keyof SubscriptionPlanLineItemsItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
83
+ /**
84
+ * Metadata for all the requests in the request builder.
85
+ */
86
+ export declare const SubscriptionPlanLineItemsItemRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,31 @@
1
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
2
+ /**
3
+ * Builds and executes requests for operations under /api/subscription-plan-line-items/{id}/sync
4
+ */
5
+ export interface SyncRequestBuilder extends BaseRequestBuilder<SyncRequestBuilder> {
6
+ /**
7
+ * Sync Subscription Plan Line Item Price
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 500 status code
15
+ */
16
+ put(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
17
+ /**
18
+ * Sync Subscription Plan Line Item Price
19
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
20
+ * @returns {RequestInformation}
21
+ */
22
+ toPutRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
23
+ }
24
+ /**
25
+ * Uri template for the request builder.
26
+ */
27
+ export declare const SyncRequestBuilderUriTemplate = "{+baseurl}/api/subscription-plan-line-items/{id}/sync";
28
+ /**
29
+ * Metadata for all the requests in the request builder.
30
+ */
31
+ export declare const SyncRequestBuilderRequestsMetadata: RequestsMetadata;
@@ -0,0 +1,447 @@
1
+ import { type SubscriptionPlansItemRequestBuilder } from './item/index.js';
2
+ import { type AdditionalDataHolder, type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter, type UntypedNode } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Creates a new instance of the appropriate class based on discriminator value
5
+ * @param parseNode The parse node to use to read the discriminator value and create the object
6
+ * @returns {SubscriptionPlansGetResponse_data_plan}
7
+ */
8
+ export declare function createSubscriptionPlansGetResponse_data_planFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
9
+ /**
10
+ * Creates a new instance of the appropriate class based on discriminator value
11
+ * @param parseNode The parse node to use to read the discriminator value and create the object
12
+ * @returns {SubscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem}
13
+ */
14
+ export declare function createSubscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItemFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
15
+ /**
16
+ * Creates a new instance of the appropriate class based on discriminator value
17
+ * @param parseNode The parse node to use to read the discriminator value and create the object
18
+ * @returns {SubscriptionPlansGetResponse_data_subscriptionPlanLineItems_data}
19
+ */
20
+ export declare function createSubscriptionPlansGetResponse_data_subscriptionPlanLineItems_dataFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
21
+ /**
22
+ * Creates a new instance of the appropriate class based on discriminator value
23
+ * @param parseNode The parse node to use to read the discriminator value and create the object
24
+ * @returns {SubscriptionPlansGetResponse_data_subscriptionPlanLineItems}
25
+ */
26
+ export declare function createSubscriptionPlansGetResponse_data_subscriptionPlanLineItemsFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
27
+ /**
28
+ * Creates a new instance of the appropriate class based on discriminator value
29
+ * @param parseNode The parse node to use to read the discriminator value and create the object
30
+ * @returns {SubscriptionPlansGetResponse_data}
31
+ */
32
+ export declare function createSubscriptionPlansGetResponse_dataFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
33
+ /**
34
+ * Creates a new instance of the appropriate class based on discriminator value
35
+ * @param parseNode The parse node to use to read the discriminator value and create the object
36
+ * @returns {SubscriptionPlansGetResponse}
37
+ */
38
+ export declare function createSubscriptionPlansGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
39
+ /**
40
+ * The deserialization information for the current model
41
+ * @param SubscriptionPlansGetResponse The instance to deserialize into.
42
+ * @returns {Record<string, (node: ParseNode) => void>}
43
+ */
44
+ export declare function deserializeIntoSubscriptionPlansGetResponse(subscriptionPlansGetResponse?: Partial<SubscriptionPlansGetResponse> | undefined): Record<string, (node: ParseNode) => void>;
45
+ /**
46
+ * The deserialization information for the current model
47
+ * @param SubscriptionPlansGetResponse_data The instance to deserialize into.
48
+ * @returns {Record<string, (node: ParseNode) => void>}
49
+ */
50
+ export declare function deserializeIntoSubscriptionPlansGetResponse_data(subscriptionPlansGetResponse_data?: Partial<SubscriptionPlansGetResponse_data> | undefined): Record<string, (node: ParseNode) => void>;
51
+ /**
52
+ * The deserialization information for the current model
53
+ * @param SubscriptionPlansGetResponse_data_plan The instance to deserialize into.
54
+ * @returns {Record<string, (node: ParseNode) => void>}
55
+ */
56
+ export declare function deserializeIntoSubscriptionPlansGetResponse_data_plan(subscriptionPlansGetResponse_data_plan?: Partial<SubscriptionPlansGetResponse_data_plan> | undefined): Record<string, (node: ParseNode) => void>;
57
+ /**
58
+ * The deserialization information for the current model
59
+ * @param SubscriptionPlansGetResponse_data_subscriptionPlanLineItems The instance to deserialize into.
60
+ * @returns {Record<string, (node: ParseNode) => void>}
61
+ */
62
+ export declare function deserializeIntoSubscriptionPlansGetResponse_data_subscriptionPlanLineItems(subscriptionPlansGetResponse_data_subscriptionPlanLineItems?: Partial<SubscriptionPlansGetResponse_data_subscriptionPlanLineItems> | undefined): Record<string, (node: ParseNode) => void>;
63
+ /**
64
+ * The deserialization information for the current model
65
+ * @param SubscriptionPlansGetResponse_data_subscriptionPlanLineItems_data The instance to deserialize into.
66
+ * @returns {Record<string, (node: ParseNode) => void>}
67
+ */
68
+ export declare function deserializeIntoSubscriptionPlansGetResponse_data_subscriptionPlanLineItems_data(subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data?: Partial<SubscriptionPlansGetResponse_data_subscriptionPlanLineItems_data> | undefined): Record<string, (node: ParseNode) => void>;
69
+ /**
70
+ * The deserialization information for the current model
71
+ * @param SubscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem The instance to deserialize into.
72
+ * @returns {Record<string, (node: ParseNode) => void>}
73
+ */
74
+ export declare function deserializeIntoSubscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem(subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem?: Partial<SubscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem> | undefined): Record<string, (node: ParseNode) => void>;
75
+ export type GetExpandQueryParameterType = (typeof GetExpandQueryParameterTypeObject)[keyof typeof GetExpandQueryParameterTypeObject];
76
+ export type GetStatusQueryParameterType = (typeof GetStatusQueryParameterTypeObject)[keyof typeof GetStatusQueryParameterTypeObject];
77
+ /**
78
+ * Serializes information the current object
79
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
80
+ * @param SubscriptionPlansGetResponse The instance to serialize from.
81
+ * @param writer Serialization writer to use to serialize this model
82
+ */
83
+ export declare function serializeSubscriptionPlansGetResponse(writer: SerializationWriter, subscriptionPlansGetResponse?: Partial<SubscriptionPlansGetResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
84
+ /**
85
+ * Serializes information the current object
86
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
87
+ * @param SubscriptionPlansGetResponse_data The instance to serialize from.
88
+ * @param writer Serialization writer to use to serialize this model
89
+ */
90
+ export declare function serializeSubscriptionPlansGetResponse_data(writer: SerializationWriter, subscriptionPlansGetResponse_data?: Partial<SubscriptionPlansGetResponse_data> | undefined | null, isSerializingDerivedType?: boolean): void;
91
+ /**
92
+ * Serializes information the current object
93
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
94
+ * @param SubscriptionPlansGetResponse_data_plan The instance to serialize from.
95
+ * @param writer Serialization writer to use to serialize this model
96
+ */
97
+ export declare function serializeSubscriptionPlansGetResponse_data_plan(writer: SerializationWriter, subscriptionPlansGetResponse_data_plan?: Partial<SubscriptionPlansGetResponse_data_plan> | undefined | null, isSerializingDerivedType?: boolean): void;
98
+ /**
99
+ * Serializes information the current object
100
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
101
+ * @param SubscriptionPlansGetResponse_data_subscriptionPlanLineItems The instance to serialize from.
102
+ * @param writer Serialization writer to use to serialize this model
103
+ */
104
+ export declare function serializeSubscriptionPlansGetResponse_data_subscriptionPlanLineItems(writer: SerializationWriter, subscriptionPlansGetResponse_data_subscriptionPlanLineItems?: Partial<SubscriptionPlansGetResponse_data_subscriptionPlanLineItems> | undefined | null, isSerializingDerivedType?: boolean): void;
105
+ /**
106
+ * Serializes information the current object
107
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
108
+ * @param SubscriptionPlansGetResponse_data_subscriptionPlanLineItems_data The instance to serialize from.
109
+ * @param writer Serialization writer to use to serialize this model
110
+ */
111
+ export declare function serializeSubscriptionPlansGetResponse_data_subscriptionPlanLineItems_data(writer: SerializationWriter, subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data?: Partial<SubscriptionPlansGetResponse_data_subscriptionPlanLineItems_data> | undefined | null, isSerializingDerivedType?: boolean): void;
112
+ /**
113
+ * Serializes information the current object
114
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
115
+ * @param SubscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem The instance to serialize from.
116
+ * @param writer Serialization writer to use to serialize this model
117
+ */
118
+ export declare function serializeSubscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem(writer: SerializationWriter, subscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem?: Partial<SubscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem> | undefined | null, isSerializingDerivedType?: boolean): void;
119
+ export interface SubscriptionPlansGetResponse extends Parsable {
120
+ /**
121
+ * The data property
122
+ */
123
+ data?: SubscriptionPlansGetResponse_data[] | null;
124
+ /**
125
+ * The hasMore property
126
+ */
127
+ hasMore?: boolean | null;
128
+ /**
129
+ * The nextCursor property
130
+ */
131
+ nextCursor?: string | null;
132
+ /**
133
+ * The previousCursor property
134
+ */
135
+ previousCursor?: string | null;
136
+ /**
137
+ * The type property
138
+ */
139
+ type?: string | null;
140
+ }
141
+ export interface SubscriptionPlansGetResponse_data extends Parsable {
142
+ /**
143
+ * The createdAt property
144
+ */
145
+ createdAt?: string | null;
146
+ /**
147
+ * The groupId property
148
+ */
149
+ groupId?: string | null;
150
+ /**
151
+ * The id property
152
+ */
153
+ id?: string | null;
154
+ /**
155
+ * The organisation property
156
+ */
157
+ organisation?: string | null;
158
+ /**
159
+ * The ownerId property
160
+ */
161
+ ownerId?: string | null;
162
+ /**
163
+ * The plan property
164
+ */
165
+ plan?: SubscriptionPlansGetResponse_data_plan | null;
166
+ /**
167
+ * The planId property
168
+ */
169
+ planId?: string | null;
170
+ /**
171
+ * The seats property
172
+ */
173
+ seats?: number | null;
174
+ /**
175
+ * The status property
176
+ */
177
+ status?: UntypedNode | null;
178
+ /**
179
+ * The subscriptionId property
180
+ */
181
+ subscriptionId?: string | null;
182
+ /**
183
+ * The subscriptionPlanLineItems property
184
+ */
185
+ subscriptionPlanLineItems?: SubscriptionPlansGetResponse_data_subscriptionPlanLineItems | null;
186
+ /**
187
+ * The updatedAt property
188
+ */
189
+ updatedAt?: string | null;
190
+ }
191
+ export interface SubscriptionPlansGetResponse_data_plan extends Parsable {
192
+ /**
193
+ * The archivedAt property
194
+ */
195
+ archivedAt?: string | null;
196
+ /**
197
+ * The createdAt property
198
+ */
199
+ createdAt?: string | null;
200
+ /**
201
+ * The id property
202
+ */
203
+ id?: string | null;
204
+ /**
205
+ * The isActive property
206
+ */
207
+ isActive?: boolean | null;
208
+ /**
209
+ * The name property
210
+ */
211
+ name?: string | null;
212
+ /**
213
+ * The organisation property
214
+ */
215
+ organisation?: string | null;
216
+ /**
217
+ * The productId property
218
+ */
219
+ productId?: string | null;
220
+ /**
221
+ * The tierTagId property
222
+ */
223
+ tierTagId?: string | null;
224
+ /**
225
+ * The trialPeriodDays property
226
+ */
227
+ trialPeriodDays?: number | null;
228
+ /**
229
+ * The updatedAt property
230
+ */
231
+ updatedAt?: string | null;
232
+ }
233
+ export interface SubscriptionPlansGetResponse_data_subscriptionPlanLineItems extends Parsable {
234
+ /**
235
+ * The data property
236
+ */
237
+ data?: SubscriptionPlansGetResponse_data_subscriptionPlanLineItems_data[] | null;
238
+ /**
239
+ * The hasMore property
240
+ */
241
+ hasMore?: boolean | null;
242
+ /**
243
+ * The path property
244
+ */
245
+ path?: string | null;
246
+ /**
247
+ * The type property
248
+ */
249
+ type?: string | null;
250
+ }
251
+ export interface SubscriptionPlansGetResponse_data_subscriptionPlanLineItems_data extends AdditionalDataHolder, Parsable {
252
+ /**
253
+ * The createdAt property
254
+ */
255
+ createdAt?: string | null;
256
+ /**
257
+ * The expiryDate property
258
+ */
259
+ expiryDate?: string | null;
260
+ /**
261
+ * The id property
262
+ */
263
+ id?: string | null;
264
+ /**
265
+ * The lineItem property
266
+ */
267
+ lineItem?: SubscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem | null;
268
+ /**
269
+ * The lineItemStripeProductId property
270
+ */
271
+ lineItemStripeProductId?: string | null;
272
+ /**
273
+ * The organisation property
274
+ */
275
+ organisation?: string | null;
276
+ /**
277
+ * The quantity property
278
+ */
279
+ quantity?: number | null;
280
+ /**
281
+ * The stripePriceId property
282
+ */
283
+ stripePriceId?: string | null;
284
+ /**
285
+ * The stripeSubscriptionItemId property
286
+ */
287
+ stripeSubscriptionItemId?: string | null;
288
+ /**
289
+ * The subscriptionPlanId property
290
+ */
291
+ subscriptionPlanId?: string | null;
292
+ /**
293
+ * The type property
294
+ */
295
+ type?: UntypedNode | null;
296
+ /**
297
+ * The updatedAt property
298
+ */
299
+ updatedAt?: string | null;
300
+ /**
301
+ * The usageId property
302
+ */
303
+ usageId?: string | null;
304
+ }
305
+ export interface SubscriptionPlansGetResponse_data_subscriptionPlanLineItems_data_lineItem extends Parsable {
306
+ /**
307
+ * The allowChangingQuantity property
308
+ */
309
+ allowChangingQuantity?: boolean | null;
310
+ /**
311
+ * The archivedAt property
312
+ */
313
+ archivedAt?: string | null;
314
+ /**
315
+ * The billingScheme property
316
+ */
317
+ billingScheme?: UntypedNode | null;
318
+ /**
319
+ * The createdAt property
320
+ */
321
+ createdAt?: string | null;
322
+ /**
323
+ * The id property
324
+ */
325
+ id?: string | null;
326
+ /**
327
+ * The intervalType property
328
+ */
329
+ intervalType?: UntypedNode | null;
330
+ /**
331
+ * The isActive property
332
+ */
333
+ isActive?: boolean | null;
334
+ /**
335
+ * The maxQuantity property
336
+ */
337
+ maxQuantity?: number | null;
338
+ /**
339
+ * The meterId property
340
+ */
341
+ meterId?: string | null;
342
+ /**
343
+ * The minQuantity property
344
+ */
345
+ minQuantity?: number | null;
346
+ /**
347
+ * The name property
348
+ */
349
+ name?: string | null;
350
+ /**
351
+ * The nickname property
352
+ */
353
+ nickname?: string | null;
354
+ /**
355
+ * The organisation property
356
+ */
357
+ organisation?: string | null;
358
+ /**
359
+ * The planId property
360
+ */
361
+ planId?: string | null;
362
+ /**
363
+ * The priceType property
364
+ */
365
+ priceType?: UntypedNode | null;
366
+ /**
367
+ * The slug property
368
+ */
369
+ slug?: string | null;
370
+ /**
371
+ * The stripeProductId property
372
+ */
373
+ stripeProductId?: string | null;
374
+ /**
375
+ * The tiersMode property
376
+ */
377
+ tiersMode?: UntypedNode | null;
378
+ /**
379
+ * The unitLabel property
380
+ */
381
+ unitLabel?: string | null;
382
+ /**
383
+ * The updatedAt property
384
+ */
385
+ updatedAt?: string | null;
386
+ }
387
+ /**
388
+ * Builds and executes requests for operations under /api/subscription-plans
389
+ */
390
+ export interface SubscriptionPlansRequestBuilder extends BaseRequestBuilder<SubscriptionPlansRequestBuilder> {
391
+ /**
392
+ * Gets an item from the ApiSdk.api.subscriptionPlans.item collection
393
+ * @param id Resource ID
394
+ * @returns {SubscriptionPlansItemRequestBuilder}
395
+ */
396
+ byId(id: string): SubscriptionPlansItemRequestBuilder;
397
+ /**
398
+ * List Subscription Plans
399
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
400
+ * @returns {Promise<SubscriptionPlansGetResponse>}
401
+ * @throws {ErrorResponseBody} error when the service returns a 400 status code
402
+ * @throws {ErrorResponseBody} error when the service returns a 401 status code
403
+ * @throws {ErrorResponseBody} error when the service returns a 403 status code
404
+ * @throws {ErrorResponseBody} error when the service returns a 404 status code
405
+ * @throws {ErrorResponseBody} error when the service returns a 405 status code
406
+ * @throws {ErrorResponseBody} error when the service returns a 500 status code
407
+ */
408
+ get(requestConfiguration?: RequestConfiguration<SubscriptionPlansRequestBuilderGetQueryParameters> | undefined): Promise<SubscriptionPlansGetResponse | undefined>;
409
+ /**
410
+ * List Subscription Plans
411
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
412
+ * @returns {RequestInformation}
413
+ */
414
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<SubscriptionPlansRequestBuilderGetQueryParameters> | undefined): RequestInformation;
415
+ }
416
+ /**
417
+ * List Subscription Plans
418
+ */
419
+ export interface SubscriptionPlansRequestBuilderGetQueryParameters {
420
+ after?: string;
421
+ before?: string;
422
+ expand?: GetExpandQueryParameterType[];
423
+ limit?: string;
424
+ owner?: string;
425
+ plans?: string;
426
+ status?: GetStatusQueryParameterType;
427
+ }
428
+ /**
429
+ * Uri template for the request builder.
430
+ */
431
+ export declare const SubscriptionPlansRequestBuilderUriTemplate = "{+baseurl}/api/subscription-plans{?after*,before*,expand,limit*,owner*,plans*,status*}";
432
+ export declare const GetExpandQueryParameterTypeObject: {
433
+ readonly SubscriptionPlanLineItems: "subscriptionPlanLineItems";
434
+ readonly Plan: "plan";
435
+ };
436
+ export declare const GetStatusQueryParameterTypeObject: {
437
+ readonly Active: "active";
438
+ readonly Inactive: "inactive";
439
+ };
440
+ /**
441
+ * Metadata for all the navigation properties in the request builder.
442
+ */
443
+ export declare const SubscriptionPlansRequestBuilderNavigationMetadata: Record<Exclude<keyof SubscriptionPlansRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
444
+ /**
445
+ * Metadata for all the requests in the request builder.
446
+ */
447
+ export declare const SubscriptionPlansRequestBuilderRequestsMetadata: RequestsMetadata;