@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.
package/dist/index.js CHANGED
@@ -7628,6 +7628,42 @@ function createGetOwnerDetailSchema_dataFromDiscriminatorValue(parseNode) {
7628
7628
  function createGetOwnerDetailSchemaFromDiscriminatorValue(parseNode) {
7629
7629
  return deserializeIntoGetOwnerDetailSchema;
7630
7630
  }
7631
+ /**
7632
+ * Creates a new instance of the appropriate class based on discriminator value
7633
+ * @param parseNode The parse node to use to read the discriminator value and create the object
7634
+ * @returns {GetOwnerListSchema_data_receipts_data}
7635
+ */
7636
+ // @ts-ignore
7637
+ function createGetOwnerListSchema_data_receipts_dataFromDiscriminatorValue(parseNode) {
7638
+ return deserializeIntoGetOwnerListSchema_data_receipts_data;
7639
+ }
7640
+ /**
7641
+ * Creates a new instance of the appropriate class based on discriminator value
7642
+ * @param parseNode The parse node to use to read the discriminator value and create the object
7643
+ * @returns {GetOwnerListSchema_data_receipts}
7644
+ */
7645
+ // @ts-ignore
7646
+ function createGetOwnerListSchema_data_receiptsFromDiscriminatorValue(parseNode) {
7647
+ return deserializeIntoGetOwnerListSchema_data_receipts;
7648
+ }
7649
+ /**
7650
+ * Creates a new instance of the appropriate class based on discriminator value
7651
+ * @param parseNode The parse node to use to read the discriminator value and create the object
7652
+ * @returns {GetOwnerListSchema_data_subscriptions_data}
7653
+ */
7654
+ // @ts-ignore
7655
+ function createGetOwnerListSchema_data_subscriptions_dataFromDiscriminatorValue(parseNode) {
7656
+ return deserializeIntoGetOwnerListSchema_data_subscriptions_data;
7657
+ }
7658
+ /**
7659
+ * Creates a new instance of the appropriate class based on discriminator value
7660
+ * @param parseNode The parse node to use to read the discriminator value and create the object
7661
+ * @returns {GetOwnerListSchema_data_subscriptions}
7662
+ */
7663
+ // @ts-ignore
7664
+ function createGetOwnerListSchema_data_subscriptionsFromDiscriminatorValue(parseNode) {
7665
+ return deserializeIntoGetOwnerListSchema_data_subscriptions;
7666
+ }
7631
7667
  /**
7632
7668
  * Creates a new instance of the appropriate class based on discriminator value
7633
7669
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -11617,11 +11653,83 @@ function deserializeIntoGetOwnerListSchema_data(getOwnerListSchema_data = {}) {
11617
11653
  "emailAddress": n => { getOwnerListSchema_data.emailAddress = n.getStringValue(); },
11618
11654
  "id": n => { getOwnerListSchema_data.id = n.getStringValue(); },
11619
11655
  "organisation": n => { getOwnerListSchema_data.organisation = n.getStringValue(); },
11656
+ "receipts": n => { getOwnerListSchema_data.receipts = n.getObjectValue(createGetOwnerListSchema_data_receiptsFromDiscriminatorValue); },
11620
11657
  "stripeCustomerId": n => { getOwnerListSchema_data.stripeCustomerId = n.getStringValue(); },
11658
+ "subscriptions": n => { getOwnerListSchema_data.subscriptions = n.getObjectValue(createGetOwnerListSchema_data_subscriptionsFromDiscriminatorValue); },
11621
11659
  "updatedAt": n => { getOwnerListSchema_data.updatedAt = n.getStringValue(); },
11622
11660
  "value": n => { getOwnerListSchema_data.value = n.getStringValue(); },
11623
11661
  };
11624
11662
  }
11663
+ /**
11664
+ * The deserialization information for the current model
11665
+ * @param GetOwnerListSchema_data_receipts The instance to deserialize into.
11666
+ * @returns {Record<string, (node: ParseNode) => void>}
11667
+ */
11668
+ // @ts-ignore
11669
+ function deserializeIntoGetOwnerListSchema_data_receipts(getOwnerListSchema_data_receipts = {}) {
11670
+ return {
11671
+ "data": n => { getOwnerListSchema_data_receipts.data = n.getCollectionOfObjectValues(createGetOwnerListSchema_data_receipts_dataFromDiscriminatorValue); },
11672
+ "hasMore": n => { getOwnerListSchema_data_receipts.hasMore = n.getBooleanValue(); },
11673
+ "path": n => { getOwnerListSchema_data_receipts.path = n.getStringValue(); },
11674
+ "type": n => { getOwnerListSchema_data_receipts.type = n.getStringValue(); },
11675
+ };
11676
+ }
11677
+ /**
11678
+ * The deserialization information for the current model
11679
+ * @param GetOwnerListSchema_data_receipts_data The instance to deserialize into.
11680
+ * @returns {Record<string, (node: ParseNode) => void>}
11681
+ */
11682
+ // @ts-ignore
11683
+ function deserializeIntoGetOwnerListSchema_data_receipts_data(getOwnerListSchema_data_receipts_data = {}) {
11684
+ return {
11685
+ "createdAt": n => { getOwnerListSchema_data_receipts_data.createdAt = n.getStringValue(); },
11686
+ "id": n => { getOwnerListSchema_data_receipts_data.id = n.getStringValue(); },
11687
+ "organisation": n => { getOwnerListSchema_data_receipts_data.organisation = n.getStringValue(); },
11688
+ "ownerId": n => { getOwnerListSchema_data_receipts_data.ownerId = n.getStringValue(); },
11689
+ "subscriptionId": n => { getOwnerListSchema_data_receipts_data.subscriptionId = n.getStringValue(); },
11690
+ "updatedAt": n => { getOwnerListSchema_data_receipts_data.updatedAt = n.getStringValue(); },
11691
+ };
11692
+ }
11693
+ /**
11694
+ * The deserialization information for the current model
11695
+ * @param GetOwnerListSchema_data_subscriptions The instance to deserialize into.
11696
+ * @returns {Record<string, (node: ParseNode) => void>}
11697
+ */
11698
+ // @ts-ignore
11699
+ function deserializeIntoGetOwnerListSchema_data_subscriptions(getOwnerListSchema_data_subscriptions = {}) {
11700
+ return {
11701
+ "data": n => { getOwnerListSchema_data_subscriptions.data = n.getCollectionOfObjectValues(createGetOwnerListSchema_data_subscriptions_dataFromDiscriminatorValue); },
11702
+ "hasMore": n => { getOwnerListSchema_data_subscriptions.hasMore = n.getBooleanValue(); },
11703
+ "path": n => { getOwnerListSchema_data_subscriptions.path = n.getStringValue(); },
11704
+ "type": n => { getOwnerListSchema_data_subscriptions.type = n.getStringValue(); },
11705
+ };
11706
+ }
11707
+ /**
11708
+ * The deserialization information for the current model
11709
+ * @param GetOwnerListSchema_data_subscriptions_data The instance to deserialize into.
11710
+ * @returns {Record<string, (node: ParseNode) => void>}
11711
+ */
11712
+ // @ts-ignore
11713
+ function deserializeIntoGetOwnerListSchema_data_subscriptions_data(getOwnerListSchema_data_subscriptions_data = {}) {
11714
+ return {
11715
+ "cancelAtPeriodEnd": n => { getOwnerListSchema_data_subscriptions_data.cancelAtPeriodEnd = n.getBooleanValue(); },
11716
+ "cancelledAt": n => { getOwnerListSchema_data_subscriptions_data.cancelledAt = n.getStringValue(); },
11717
+ "createdAt": n => { getOwnerListSchema_data_subscriptions_data.createdAt = n.getStringValue(); },
11718
+ "currencyShortCode": n => { getOwnerListSchema_data_subscriptions_data.currencyShortCode = n.getStringValue(); },
11719
+ "customerId": n => { getOwnerListSchema_data_subscriptions_data.customerId = n.getStringValue(); },
11720
+ "id": n => { getOwnerListSchema_data_subscriptions_data.id = n.getStringValue(); },
11721
+ "interval": n => { getOwnerListSchema_data_subscriptions_data.interval = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
11722
+ "intervalCount": n => { getOwnerListSchema_data_subscriptions_data.intervalCount = n.getNumberValue(); },
11723
+ "isPerpetual": n => { getOwnerListSchema_data_subscriptions_data.isPerpetual = n.getBooleanValue(); },
11724
+ "isSalableOnly": n => { getOwnerListSchema_data_subscriptions_data.isSalableOnly = n.getBooleanValue(); },
11725
+ "organisation": n => { getOwnerListSchema_data_subscriptions_data.organisation = n.getStringValue(); },
11726
+ "ownerId": n => { getOwnerListSchema_data_subscriptions_data.ownerId = n.getStringValue(); },
11727
+ "startDate": n => { getOwnerListSchema_data_subscriptions_data.startDate = n.getStringValue(); },
11728
+ "status": n => { getOwnerListSchema_data_subscriptions_data.status = n.getStringValue(); },
11729
+ "stripeSubscriptionId": n => { getOwnerListSchema_data_subscriptions_data.stripeSubscriptionId = n.getStringValue(); },
11730
+ "updatedAt": n => { getOwnerListSchema_data_subscriptions_data.updatedAt = n.getStringValue(); },
11731
+ };
11732
+ }
11625
11733
  /**
11626
11734
  * The deserialization information for the current model
11627
11735
  * @param GetPaymentIntegrationListSchema The instance to deserialize into.
@@ -12248,8 +12356,12 @@ function deserializeIntoGetPlanListSchema_data_lineItems_data_prices_data_curren
12248
12356
  function deserializeIntoGetPlanListSchema_data_product(getPlanListSchema_data_product = {}) {
12249
12357
  return {
12250
12358
  "archivedAt": n => { getPlanListSchema_data_product.archivedAt = n.getStringValue(); },
12359
+ "createdAt": n => { getPlanListSchema_data_product.createdAt = n.getStringValue(); },
12251
12360
  "id": n => { getPlanListSchema_data_product.id = n.getStringValue(); },
12361
+ "isActive": n => { getPlanListSchema_data_product.isActive = n.getBooleanValue(); },
12252
12362
  "name": n => { getPlanListSchema_data_product.name = n.getStringValue(); },
12363
+ "organisation": n => { getPlanListSchema_data_product.organisation = n.getStringValue(); },
12364
+ "updatedAt": n => { getPlanListSchema_data_product.updatedAt = n.getStringValue(); },
12253
12365
  };
12254
12366
  }
12255
12367
  /**
@@ -16702,6 +16814,19 @@ const OwnersItemRequestBuilderUriTemplate = "{+baseurl}/api/owners/{id}{?expand}
16702
16814
  * Metadata for all the requests in the request builder.
16703
16815
  */
16704
16816
  const OwnersItemRequestBuilderRequestsMetadata = {
16817
+ delete: {
16818
+ uriTemplate: OwnersItemRequestBuilderUriTemplate,
16819
+ responseBodyContentType: "application/json",
16820
+ errorMappings: {
16821
+ 401: createErrorResponseBodyFromDiscriminatorValue,
16822
+ 403: createErrorResponseBodyFromDiscriminatorValue,
16823
+ 404: createErrorResponseBodyFromDiscriminatorValue,
16824
+ 405: createErrorResponseBodyFromDiscriminatorValue,
16825
+ 409: createErrorResponseBodyFromDiscriminatorValue,
16826
+ 500: createErrorResponseBodyFromDiscriminatorValue,
16827
+ },
16828
+ adapterMethodName: "sendNoResponseContent",
16829
+ },
16705
16830
  get: {
16706
16831
  uriTemplate: OwnersItemRequestBuilderUriTemplate,
16707
16832
  responseBodyContentType: "application/json",
@@ -16742,7 +16867,7 @@ const OwnersItemRequestBuilderRequestsMetadata = {
16742
16867
  /**
16743
16868
  * Uri template for the request builder.
16744
16869
  */
16745
- const OwnersRequestBuilderUriTemplate = "{+baseurl}/api/owners{?after*,before*,limit*,search*,stripeCustomerId*}";
16870
+ const OwnersRequestBuilderUriTemplate = "{+baseurl}/api/owners{?after*,before*,expand,limit*,search*,stripeCustomerId*}";
16746
16871
  /**
16747
16872
  * Metadata for all the navigation properties in the request builder.
16748
16873
  */
@@ -17037,7 +17162,7 @@ const SaveRequestBuilderRequestsMetadata = {
17037
17162
  /**
17038
17163
  * Uri template for the request builder.
17039
17164
  */
17040
- const PlansRequestBuilderUriTemplate = "{+baseurl}/api/plans{?after*,before*,defaultCurrency*,expand,includeArchived*,includeFilterOptions*,interval*,intervalCount*,isActive*,limit*,productId*,search*}";
17165
+ const PlansRequestBuilderUriTemplate = "{+baseurl}/api/plans{?after*,before*,currency*,expand,includeArchived*,includeFilterOptions*,interval*,intervalCount*,isActive*,limit*,productId*,search*}";
17041
17166
  /**
17042
17167
  * Metadata for all the navigation properties in the request builder.
17043
17168
  */