@salable/sdk 1.0.0 → 1.0.2

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.
@@ -1,6 +1,7 @@
1
1
  import { type GetOwnerListSchema } from '../../models/index.js';
2
2
  import { type OwnersItemRequestBuilder } from './item/index.js';
3
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];
4
5
  /**
5
6
  * Builds and executes requests for operations under /api/owners
6
7
  */
@@ -33,6 +34,7 @@ export interface OwnersRequestBuilder extends BaseRequestBuilder<OwnersRequestBu
33
34
  export interface OwnersRequestBuilderGetQueryParameters {
34
35
  after?: string;
35
36
  before?: string;
37
+ expand?: GetExpandQueryParameterType[];
36
38
  limit?: string;
37
39
  search?: string;
38
40
  stripeCustomerId?: string;
@@ -40,7 +42,11 @@ export interface OwnersRequestBuilderGetQueryParameters {
40
42
  /**
41
43
  * Uri template for the request builder.
42
44
  */
43
- export declare const OwnersRequestBuilderUriTemplate = "{+baseurl}/api/owners{?after*,before*,limit*,search*,stripeCustomerId*}";
45
+ export declare const OwnersRequestBuilderUriTemplate = "{+baseurl}/api/owners{?after*,before*,expand,limit*,search*,stripeCustomerId*}";
46
+ export declare const GetExpandQueryParameterTypeObject: {
47
+ readonly Subscriptions: "subscriptions";
48
+ readonly Receipts: "receipts";
49
+ };
44
50
  /**
45
51
  * Metadata for all the navigation properties in the request builder.
46
52
  */
@@ -5,6 +5,17 @@ export type GetExpandQueryParameterType = (typeof GetExpandQueryParameterTypeObj
5
5
  * Builds and executes requests for operations under /api/owners/{id}
6
6
  */
7
7
  export interface OwnersItemRequestBuilder extends BaseRequestBuilder<OwnersItemRequestBuilder> {
8
+ /**
9
+ * Delete Owner
10
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
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 409 status code
16
+ * @throws {ErrorResponseBody} error when the service returns a 500 status code
17
+ */
18
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
8
19
  /**
9
20
  * Retrieve Owner
10
21
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
@@ -28,6 +39,12 @@ export interface OwnersItemRequestBuilder extends BaseRequestBuilder<OwnersItemR
28
39
  * @throws {ErrorResponseBody} error when the service returns a 500 status code
29
40
  */
30
41
  put(body: UpdateOwnerRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
42
+ /**
43
+ * Delete Owner
44
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
45
+ * @returns {RequestInformation}
46
+ */
47
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
31
48
  /**
32
49
  * Retrieve Owner
33
50
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
@@ -2,7 +2,7 @@ import { type CreatePlanResponseSchema, type GetPlanListSchema, type PlanRequest
2
2
  import { type PlansItemRequestBuilder } from './item/index.js';
3
3
  import { type SaveRequestBuilder } from './save/index.js';
4
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];
5
+ export type GetCurrencyQueryParameterType = (typeof GetCurrencyQueryParameterTypeObject)[keyof typeof GetCurrencyQueryParameterTypeObject];
6
6
  export type GetExpandQueryParameterType = (typeof GetExpandQueryParameterTypeObject)[keyof typeof GetExpandQueryParameterTypeObject];
7
7
  export type GetIntervalQueryParameterType = (typeof GetIntervalQueryParameterTypeObject)[keyof typeof GetIntervalQueryParameterTypeObject];
8
8
  /**
@@ -59,7 +59,7 @@ export interface PlansRequestBuilder extends BaseRequestBuilder<PlansRequestBuil
59
59
  export interface PlansRequestBuilderGetQueryParameters {
60
60
  after?: string;
61
61
  before?: string;
62
- defaultCurrency?: GetDefaultCurrencyQueryParameterType;
62
+ currency?: GetCurrencyQueryParameterType;
63
63
  expand?: GetExpandQueryParameterType[];
64
64
  includeArchived?: string;
65
65
  includeFilterOptions?: string;
@@ -73,8 +73,8 @@ export interface PlansRequestBuilderGetQueryParameters {
73
73
  /**
74
74
  * Uri template for the request builder.
75
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: {
76
+ export declare const PlansRequestBuilderUriTemplate = "{+baseurl}/api/plans{?after*,before*,currency*,expand,includeArchived*,includeFilterOptions*,interval*,intervalCount*,isActive*,limit*,productId*,search*}";
77
+ export declare const GetCurrencyQueryParameterTypeObject: {
78
78
  readonly USD: "USD";
79
79
  readonly AED: "AED";
80
80
  readonly AFN: "AFN";
@@ -225,6 +225,7 @@ export declare const GetIntervalQueryParameterTypeObject: {
225
225
  readonly Week: "week";
226
226
  readonly Month: "month";
227
227
  readonly Year: "year";
228
+ readonly One_off: "one_off";
228
229
  };
229
230
  /**
230
231
  * Metadata for all the navigation properties in the request builder.
@@ -1470,6 +1470,30 @@ export declare function createGetOwnerDetailSchema_dataFromDiscriminatorValue(pa
1470
1470
  * @returns {GetOwnerDetailSchema}
1471
1471
  */
1472
1472
  export declare function createGetOwnerDetailSchemaFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
1473
+ /**
1474
+ * Creates a new instance of the appropriate class based on discriminator value
1475
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1476
+ * @returns {GetOwnerListSchema_data_receipts_data}
1477
+ */
1478
+ export declare function createGetOwnerListSchema_data_receipts_dataFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
1479
+ /**
1480
+ * Creates a new instance of the appropriate class based on discriminator value
1481
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1482
+ * @returns {GetOwnerListSchema_data_receipts}
1483
+ */
1484
+ export declare function createGetOwnerListSchema_data_receiptsFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
1485
+ /**
1486
+ * Creates a new instance of the appropriate class based on discriminator value
1487
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1488
+ * @returns {GetOwnerListSchema_data_subscriptions_data}
1489
+ */
1490
+ export declare function createGetOwnerListSchema_data_subscriptions_dataFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
1491
+ /**
1492
+ * Creates a new instance of the appropriate class based on discriminator value
1493
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1494
+ * @returns {GetOwnerListSchema_data_subscriptions}
1495
+ */
1496
+ export declare function createGetOwnerListSchema_data_subscriptionsFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
1473
1497
  /**
1474
1498
  * Creates a new instance of the appropriate class based on discriminator value
1475
1499
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -4226,6 +4250,30 @@ export declare function deserializeIntoGetOwnerListSchema(getOwnerListSchema?: P
4226
4250
  * @returns {Record<string, (node: ParseNode) => void>}
4227
4251
  */
4228
4252
  export declare function deserializeIntoGetOwnerListSchema_data(getOwnerListSchema_data?: Partial<GetOwnerListSchema_data> | undefined): Record<string, (node: ParseNode) => void>;
4253
+ /**
4254
+ * The deserialization information for the current model
4255
+ * @param GetOwnerListSchema_data_receipts The instance to deserialize into.
4256
+ * @returns {Record<string, (node: ParseNode) => void>}
4257
+ */
4258
+ export declare function deserializeIntoGetOwnerListSchema_data_receipts(getOwnerListSchema_data_receipts?: Partial<GetOwnerListSchema_data_receipts> | undefined): Record<string, (node: ParseNode) => void>;
4259
+ /**
4260
+ * The deserialization information for the current model
4261
+ * @param GetOwnerListSchema_data_receipts_data The instance to deserialize into.
4262
+ * @returns {Record<string, (node: ParseNode) => void>}
4263
+ */
4264
+ export declare function deserializeIntoGetOwnerListSchema_data_receipts_data(getOwnerListSchema_data_receipts_data?: Partial<GetOwnerListSchema_data_receipts_data> | undefined): Record<string, (node: ParseNode) => void>;
4265
+ /**
4266
+ * The deserialization information for the current model
4267
+ * @param GetOwnerListSchema_data_subscriptions The instance to deserialize into.
4268
+ * @returns {Record<string, (node: ParseNode) => void>}
4269
+ */
4270
+ export declare function deserializeIntoGetOwnerListSchema_data_subscriptions(getOwnerListSchema_data_subscriptions?: Partial<GetOwnerListSchema_data_subscriptions> | undefined): Record<string, (node: ParseNode) => void>;
4271
+ /**
4272
+ * The deserialization information for the current model
4273
+ * @param GetOwnerListSchema_data_subscriptions_data The instance to deserialize into.
4274
+ * @returns {Record<string, (node: ParseNode) => void>}
4275
+ */
4276
+ export declare function deserializeIntoGetOwnerListSchema_data_subscriptions_data(getOwnerListSchema_data_subscriptions_data?: Partial<GetOwnerListSchema_data_subscriptions_data> | undefined): Record<string, (node: ParseNode) => void>;
4229
4277
  /**
4230
4278
  * The deserialization information for the current model
4231
4279
  * @param GetPaymentIntegrationListSchema The instance to deserialize into.
@@ -9000,10 +9048,18 @@ export interface GetOwnerListSchema_data extends Parsable {
9000
9048
  * The organisation property
9001
9049
  */
9002
9050
  organisation?: string | null;
9051
+ /**
9052
+ * The receipts property
9053
+ */
9054
+ receipts?: GetOwnerListSchema_data_receipts | null;
9003
9055
  /**
9004
9056
  * The stripeCustomerId property
9005
9057
  */
9006
9058
  stripeCustomerId?: string | null;
9059
+ /**
9060
+ * The subscriptions property
9061
+ */
9062
+ subscriptions?: GetOwnerListSchema_data_subscriptions | null;
9007
9063
  /**
9008
9064
  * The updatedAt property
9009
9065
  */
@@ -9013,6 +9069,134 @@ export interface GetOwnerListSchema_data extends Parsable {
9013
9069
  */
9014
9070
  value?: string | null;
9015
9071
  }
9072
+ export interface GetOwnerListSchema_data_receipts extends Parsable {
9073
+ /**
9074
+ * The data property
9075
+ */
9076
+ data?: GetOwnerListSchema_data_receipts_data[] | null;
9077
+ /**
9078
+ * The hasMore property
9079
+ */
9080
+ hasMore?: boolean | null;
9081
+ /**
9082
+ * The path property
9083
+ */
9084
+ path?: string | null;
9085
+ /**
9086
+ * The type property
9087
+ */
9088
+ type?: string | null;
9089
+ }
9090
+ export interface GetOwnerListSchema_data_receipts_data extends Parsable {
9091
+ /**
9092
+ * The createdAt property
9093
+ */
9094
+ createdAt?: string | null;
9095
+ /**
9096
+ * The id property
9097
+ */
9098
+ id?: string | null;
9099
+ /**
9100
+ * The organisation property
9101
+ */
9102
+ organisation?: string | null;
9103
+ /**
9104
+ * The ownerId property
9105
+ */
9106
+ ownerId?: string | null;
9107
+ /**
9108
+ * The subscriptionId property
9109
+ */
9110
+ subscriptionId?: string | null;
9111
+ /**
9112
+ * The updatedAt property
9113
+ */
9114
+ updatedAt?: string | null;
9115
+ }
9116
+ export interface GetOwnerListSchema_data_subscriptions extends Parsable {
9117
+ /**
9118
+ * The data property
9119
+ */
9120
+ data?: GetOwnerListSchema_data_subscriptions_data[] | null;
9121
+ /**
9122
+ * The hasMore property
9123
+ */
9124
+ hasMore?: boolean | null;
9125
+ /**
9126
+ * The path property
9127
+ */
9128
+ path?: string | null;
9129
+ /**
9130
+ * The type property
9131
+ */
9132
+ type?: string | null;
9133
+ }
9134
+ export interface GetOwnerListSchema_data_subscriptions_data extends Parsable {
9135
+ /**
9136
+ * The cancelAtPeriodEnd property
9137
+ */
9138
+ cancelAtPeriodEnd?: boolean | null;
9139
+ /**
9140
+ * The cancelledAt property
9141
+ */
9142
+ cancelledAt?: string | null;
9143
+ /**
9144
+ * The createdAt property
9145
+ */
9146
+ createdAt?: string | null;
9147
+ /**
9148
+ * The currencyShortCode property
9149
+ */
9150
+ currencyShortCode?: string | null;
9151
+ /**
9152
+ * The customerId property
9153
+ */
9154
+ customerId?: string | null;
9155
+ /**
9156
+ * The id property
9157
+ */
9158
+ id?: string | null;
9159
+ /**
9160
+ * The interval property
9161
+ */
9162
+ interval?: UntypedNode | null;
9163
+ /**
9164
+ * The intervalCount property
9165
+ */
9166
+ intervalCount?: number | null;
9167
+ /**
9168
+ * The isPerpetual property
9169
+ */
9170
+ isPerpetual?: boolean | null;
9171
+ /**
9172
+ * The isSalableOnly property
9173
+ */
9174
+ isSalableOnly?: boolean | null;
9175
+ /**
9176
+ * The organisation property
9177
+ */
9178
+ organisation?: string | null;
9179
+ /**
9180
+ * The ownerId property
9181
+ */
9182
+ ownerId?: string | null;
9183
+ /**
9184
+ * The startDate property
9185
+ */
9186
+ startDate?: string | null;
9187
+ /**
9188
+ * The status property
9189
+ */
9190
+ status?: string | null;
9191
+ /**
9192
+ * The stripeSubscriptionId property
9193
+ */
9194
+ stripeSubscriptionId?: string | null;
9195
+ /**
9196
+ * The updatedAt property
9197
+ */
9198
+ updatedAt?: string | null;
9199
+ }
9016
9200
  export interface GetPaymentIntegrationListSchema extends Parsable {
9017
9201
  /**
9018
9202
  * The data property
@@ -10130,14 +10314,30 @@ export interface GetPlanListSchema_data_product extends Parsable {
10130
10314
  * The archivedAt property
10131
10315
  */
10132
10316
  archivedAt?: string | null;
10317
+ /**
10318
+ * The createdAt property
10319
+ */
10320
+ createdAt?: string | null;
10133
10321
  /**
10134
10322
  * The id property
10135
10323
  */
10136
10324
  id?: string | null;
10325
+ /**
10326
+ * The isActive property
10327
+ */
10328
+ isActive?: boolean | null;
10137
10329
  /**
10138
10330
  * The name property
10139
10331
  */
10140
10332
  name?: string | null;
10333
+ /**
10334
+ * The organisation property
10335
+ */
10336
+ organisation?: string | null;
10337
+ /**
10338
+ * The updatedAt property
10339
+ */
10340
+ updatedAt?: string | null;
10141
10341
  }
10142
10342
  export interface GetPlanListSchema_data_tierTag extends Parsable {
10143
10343
  /**
@@ -15192,6 +15392,34 @@ export declare function serializeGetOwnerListSchema(writer: SerializationWriter,
15192
15392
  * @param writer Serialization writer to use to serialize this model
15193
15393
  */
15194
15394
  export declare function serializeGetOwnerListSchema_data(writer: SerializationWriter, getOwnerListSchema_data?: Partial<GetOwnerListSchema_data> | undefined | null, isSerializingDerivedType?: boolean): void;
15395
+ /**
15396
+ * Serializes information the current object
15397
+ * @param GetOwnerListSchema_data_receipts The instance to serialize from.
15398
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
15399
+ * @param writer Serialization writer to use to serialize this model
15400
+ */
15401
+ export declare function serializeGetOwnerListSchema_data_receipts(writer: SerializationWriter, getOwnerListSchema_data_receipts?: Partial<GetOwnerListSchema_data_receipts> | undefined | null, isSerializingDerivedType?: boolean): void;
15402
+ /**
15403
+ * Serializes information the current object
15404
+ * @param GetOwnerListSchema_data_receipts_data The instance to serialize from.
15405
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
15406
+ * @param writer Serialization writer to use to serialize this model
15407
+ */
15408
+ export declare function serializeGetOwnerListSchema_data_receipts_data(writer: SerializationWriter, getOwnerListSchema_data_receipts_data?: Partial<GetOwnerListSchema_data_receipts_data> | undefined | null, isSerializingDerivedType?: boolean): void;
15409
+ /**
15410
+ * Serializes information the current object
15411
+ * @param GetOwnerListSchema_data_subscriptions The instance to serialize from.
15412
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
15413
+ * @param writer Serialization writer to use to serialize this model
15414
+ */
15415
+ export declare function serializeGetOwnerListSchema_data_subscriptions(writer: SerializationWriter, getOwnerListSchema_data_subscriptions?: Partial<GetOwnerListSchema_data_subscriptions> | undefined | null, isSerializingDerivedType?: boolean): void;
15416
+ /**
15417
+ * Serializes information the current object
15418
+ * @param GetOwnerListSchema_data_subscriptions_data The instance to serialize from.
15419
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
15420
+ * @param writer Serialization writer to use to serialize this model
15421
+ */
15422
+ export declare function serializeGetOwnerListSchema_data_subscriptions_data(writer: SerializationWriter, getOwnerListSchema_data_subscriptions_data?: Partial<GetOwnerListSchema_data_subscriptions_data> | undefined | null, isSerializingDerivedType?: boolean): void;
15195
15423
  /**
15196
15424
  * Serializes information the current object
15197
15425
  * @param GetPaymentIntegrationListSchema The instance to serialize from.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salable/sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",