@salable/sdk 1.0.0 → 1.0.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/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.
@@ -16702,6 +16810,19 @@ const OwnersItemRequestBuilderUriTemplate = "{+baseurl}/api/owners/{id}{?expand}
16702
16810
  * Metadata for all the requests in the request builder.
16703
16811
  */
16704
16812
  const OwnersItemRequestBuilderRequestsMetadata = {
16813
+ delete: {
16814
+ uriTemplate: OwnersItemRequestBuilderUriTemplate,
16815
+ responseBodyContentType: "application/json",
16816
+ errorMappings: {
16817
+ 401: createErrorResponseBodyFromDiscriminatorValue,
16818
+ 403: createErrorResponseBodyFromDiscriminatorValue,
16819
+ 404: createErrorResponseBodyFromDiscriminatorValue,
16820
+ 405: createErrorResponseBodyFromDiscriminatorValue,
16821
+ 409: createErrorResponseBodyFromDiscriminatorValue,
16822
+ 500: createErrorResponseBodyFromDiscriminatorValue,
16823
+ },
16824
+ adapterMethodName: "sendNoResponseContent",
16825
+ },
16705
16826
  get: {
16706
16827
  uriTemplate: OwnersItemRequestBuilderUriTemplate,
16707
16828
  responseBodyContentType: "application/json",
@@ -16742,7 +16863,7 @@ const OwnersItemRequestBuilderRequestsMetadata = {
16742
16863
  /**
16743
16864
  * Uri template for the request builder.
16744
16865
  */
16745
- const OwnersRequestBuilderUriTemplate = "{+baseurl}/api/owners{?after*,before*,limit*,search*,stripeCustomerId*}";
16866
+ const OwnersRequestBuilderUriTemplate = "{+baseurl}/api/owners{?after*,before*,expand,limit*,search*,stripeCustomerId*}";
16746
16867
  /**
16747
16868
  * Metadata for all the navigation properties in the request builder.
16748
16869
  */