@epcc-sdk/sdks-shopper 0.0.25 → 0.0.26

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.
@@ -598,6 +598,143 @@ export var listOfferingProductsResponseTransformer = function (data) { return __
598
598
  return [2 /*return*/, data];
599
599
  });
600
600
  }); };
601
+ var subscriptionIncludesSchemaResponseTransformer = function (data) {
602
+ if (data.products) {
603
+ data.products = data.products.map(function (item) {
604
+ return offeringProductSchemaResponseTransformer(item);
605
+ });
606
+ }
607
+ return data;
608
+ };
609
+ export var listSubscriptionsResponseTransformer = function (data) { return __awaiter(void 0, void 0, void 0, function () {
610
+ return __generator(this, function (_a) {
611
+ if (data.included) {
612
+ data.included = subscriptionIncludesSchemaResponseTransformer(data.included);
613
+ }
614
+ return [2 /*return*/, data];
615
+ });
616
+ }); };
617
+ export var getSubscriptionResponseTransformer = function (data) { return __awaiter(void 0, void 0, void 0, function () {
618
+ return __generator(this, function (_a) {
619
+ if (data.included) {
620
+ data.included = subscriptionIncludesSchemaResponseTransformer(data.included);
621
+ }
622
+ return [2 /*return*/, data];
623
+ });
624
+ }); };
625
+ export var listSubscriptionProductsResponseTransformer = function (data) { return __awaiter(void 0, void 0, void 0, function () {
626
+ return __generator(this, function (_a) {
627
+ if (data.data) {
628
+ data.data = data.data.map(function (item) {
629
+ return offeringProductSchemaResponseTransformer(item);
630
+ });
631
+ }
632
+ return [2 /*return*/, data];
633
+ });
634
+ }); };
635
+ var timePeriodSchemaResponseTransformer = function (data) {
636
+ data.start = new Date(data.start);
637
+ data.end = new Date(data.end);
638
+ return data;
639
+ };
640
+ var singleCurrencyPriceSchemaResponseTransformer = function (data) {
641
+ data.amount = BigInt(data.amount.toString());
642
+ return data;
643
+ };
644
+ var subscriptionInvoiceItemSchemaResponseTransformer = function (data) {
645
+ data.price = singleCurrencyPriceSchemaResponseTransformer(data.price);
646
+ return data;
647
+ };
648
+ var subscriptionInvoiceAttributesSchemaResponseTransformer = function (data) {
649
+ data.billing_period = timePeriodSchemaResponseTransformer(data.billing_period);
650
+ data.invoice_items = data.invoice_items.map(function (item) {
651
+ return subscriptionInvoiceItemSchemaResponseTransformer(item);
652
+ });
653
+ return data;
654
+ };
655
+ var prorationEventSchemaResponseTransformer = function (data) {
656
+ data.billing_cost_before_proration = BigInt(data.billing_cost_before_proration.toString());
657
+ data.refunded_amount_for_unused_plan = BigInt(data.refunded_amount_for_unused_plan.toString());
658
+ data.new_plan_cost = BigInt(data.new_plan_cost.toString());
659
+ return data;
660
+ };
661
+ var subscriptionInvoiceMetaSchemaResponseTransformer = function (data) {
662
+ if (data.price) {
663
+ data.price = singleCurrencyPriceSchemaResponseTransformer(data.price);
664
+ }
665
+ data.proration_events = data.proration_events.map(function (item) {
666
+ return prorationEventSchemaResponseTransformer(item);
667
+ });
668
+ return data;
669
+ };
670
+ var subscriptionInvoiceSchemaResponseTransformer = function (data) {
671
+ data.attributes = subscriptionInvoiceAttributesSchemaResponseTransformer(data.attributes);
672
+ data.meta = subscriptionInvoiceMetaSchemaResponseTransformer(data.meta);
673
+ return data;
674
+ };
675
+ export var listSubscriptionInvoicesResponseTransformer = function (data) { return __awaiter(void 0, void 0, void 0, function () {
676
+ return __generator(this, function (_a) {
677
+ if (data.data) {
678
+ data.data = data.data.map(function (item) {
679
+ return subscriptionInvoiceSchemaResponseTransformer(item);
680
+ });
681
+ }
682
+ return [2 /*return*/, data];
683
+ });
684
+ }); };
685
+ var subscriptionInvoicePaymentAttributesSchemaResponseTransformer = function (data) {
686
+ data.amount = singleCurrencyPriceSchemaResponseTransformer(data.amount);
687
+ return data;
688
+ };
689
+ var subscriptionInvoicePaymentSchemaResponseTransformer = function (data) {
690
+ data.attributes =
691
+ subscriptionInvoicePaymentAttributesSchemaResponseTransformer(data.attributes);
692
+ return data;
693
+ };
694
+ export var listSubscriptionInvoicePaymentsResponseTransformer = function (data) { return __awaiter(void 0, void 0, void 0, function () {
695
+ return __generator(this, function (_a) {
696
+ if (data.data) {
697
+ data.data = data.data.map(function (item) {
698
+ return subscriptionInvoicePaymentSchemaResponseTransformer(item);
699
+ });
700
+ }
701
+ return [2 /*return*/, data];
702
+ });
703
+ }); };
704
+ export var getSubscriptionInvoicePaymentResponseTransformer = function (data) { return __awaiter(void 0, void 0, void 0, function () {
705
+ return __generator(this, function (_a) {
706
+ if (data.data) {
707
+ data.data = subscriptionInvoicePaymentSchemaResponseTransformer(data.data);
708
+ }
709
+ return [2 /*return*/, data];
710
+ });
711
+ }); };
712
+ export var getSubscriptionInvoiceResponseTransformer = function (data) { return __awaiter(void 0, void 0, void 0, function () {
713
+ return __generator(this, function (_a) {
714
+ if (data.data) {
715
+ data.data = subscriptionInvoiceSchemaResponseTransformer(data.data);
716
+ }
717
+ return [2 /*return*/, data];
718
+ });
719
+ }); };
720
+ export var listInvoicesResponseTransformer = function (data) { return __awaiter(void 0, void 0, void 0, function () {
721
+ return __generator(this, function (_a) {
722
+ if (data.data) {
723
+ data.data = data.data.map(function (item) {
724
+ return subscriptionInvoiceSchemaResponseTransformer(item);
725
+ });
726
+ }
727
+ return [2 /*return*/, data];
728
+ });
729
+ }); };
730
+ export var getInvoiceResponseTransformer = function (data) { return __awaiter(void 0, void 0, void 0, function () {
731
+ return __generator(this, function (_a) {
732
+ if (data.data) {
733
+ data.data = subscriptionInvoiceSchemaResponseTransformer(data.data);
734
+ }
735
+ return [2 /*return*/, data];
736
+ });
737
+ }); };
601
738
  var stockResponseAttributesSchemaResponseTransformer = function (data) {
602
739
  data.available = BigInt(data.available.toString());
603
740
  data.allocated = BigInt(data.allocated.toString());
@@ -9233,6 +9233,454 @@ export type ListOfferingProductsResponses = {
9233
9233
  };
9234
9234
  };
9235
9235
  export type ListOfferingProductsResponse = ListOfferingProductsResponses[keyof ListOfferingProductsResponses];
9236
+ export type ListSubscriptionsData = {
9237
+ body?: never;
9238
+ path?: never;
9239
+ query?: {
9240
+ /**
9241
+ * Some Subscriptions API endpoints support filtering. For the general syntax, see [**Filtering**](/guides/Getting-Started/filtering), but you must go to a specific endpoint to understand the attributes and operators an endpoint supports.
9242
+ *
9243
+ */
9244
+ filter?: string;
9245
+ /**
9246
+ * The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [page length](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
9247
+ */
9248
+ "page[offset]"?: BigInt;
9249
+ /**
9250
+ * The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the [page length](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
9251
+ */
9252
+ "page[limit]"?: BigInt;
9253
+ /**
9254
+ * A comma-separated list of resources to include. See [Characteristics of Include Parameter](/guides/Getting-Started/includes#characteristics-of-include-parameter).
9255
+ */
9256
+ include?: string;
9257
+ };
9258
+ url: "/v2/subscriptions/subscriptions";
9259
+ };
9260
+ export type ListSubscriptionsErrors = {
9261
+ /**
9262
+ * Bad request. The request failed validation.
9263
+ */
9264
+ 400: SubscriptionsErrorResponse;
9265
+ /**
9266
+ * Internal server error. There was a system failure in the platform.
9267
+ */
9268
+ 500: SubscriptionsErrorResponse;
9269
+ };
9270
+ export type ListSubscriptionsError = ListSubscriptionsErrors[keyof ListSubscriptionsErrors];
9271
+ export type ListSubscriptionsResponses = {
9272
+ /**
9273
+ * Success. A list of subscriptions is returned.
9274
+ */
9275
+ 200: {
9276
+ data?: Array<Subscription>;
9277
+ included?: SubscriptionIncludes;
9278
+ links?: Links2;
9279
+ };
9280
+ };
9281
+ export type ListSubscriptionsResponse = ListSubscriptionsResponses[keyof ListSubscriptionsResponses];
9282
+ export type GetSubscriptionData = {
9283
+ body?: never;
9284
+ path: {
9285
+ /**
9286
+ * The unique identifier of the subscription.
9287
+ */
9288
+ subscription_uuid: SubscriptionsUuid;
9289
+ };
9290
+ query?: {
9291
+ /**
9292
+ * A comma-separated list of resources to include. See [Characteristics of Include Parameter](/guides/Getting-Started/includes#characteristics-of-include-parameter).
9293
+ */
9294
+ include?: string;
9295
+ };
9296
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}";
9297
+ };
9298
+ export type GetSubscriptionErrors = {
9299
+ /**
9300
+ * Bad request. The request failed validation.
9301
+ */
9302
+ 400: SubscriptionsErrorResponse;
9303
+ /**
9304
+ * Not found. The requested entity does not exist.
9305
+ */
9306
+ 404: SubscriptionsErrorResponse;
9307
+ /**
9308
+ * Internal server error. There was a system failure in the platform.
9309
+ */
9310
+ 500: SubscriptionsErrorResponse;
9311
+ };
9312
+ export type GetSubscriptionError = GetSubscriptionErrors[keyof GetSubscriptionErrors];
9313
+ export type GetSubscriptionResponses = {
9314
+ /**
9315
+ * Success. The details of a subscription are returned.
9316
+ */
9317
+ 200: {
9318
+ data?: Subscription;
9319
+ included?: SubscriptionIncludes;
9320
+ };
9321
+ };
9322
+ export type GetSubscriptionResponse = GetSubscriptionResponses[keyof GetSubscriptionResponses];
9323
+ export type ListSubscriptionProductsData = {
9324
+ body?: never;
9325
+ path: {
9326
+ /**
9327
+ * The unique identifier of the subscription.
9328
+ */
9329
+ subscription_uuid: SubscriptionsUuid;
9330
+ };
9331
+ query?: never;
9332
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}/products";
9333
+ };
9334
+ export type ListSubscriptionProductsErrors = {
9335
+ /**
9336
+ * Bad request. The request failed validation.
9337
+ */
9338
+ 400: SubscriptionsErrorResponse;
9339
+ /**
9340
+ * Not found. The requested entity does not exist.
9341
+ */
9342
+ 404: SubscriptionsErrorResponse;
9343
+ /**
9344
+ * Internal server error. There was a system failure in the platform.
9345
+ */
9346
+ 500: SubscriptionsErrorResponse;
9347
+ };
9348
+ export type ListSubscriptionProductsError = ListSubscriptionProductsErrors[keyof ListSubscriptionProductsErrors];
9349
+ export type ListSubscriptionProductsResponses = {
9350
+ /**
9351
+ * Success. A list of subscription products is returned.
9352
+ */
9353
+ 200: {
9354
+ data?: Array<OfferingProduct>;
9355
+ };
9356
+ };
9357
+ export type ListSubscriptionProductsResponse = ListSubscriptionProductsResponses[keyof ListSubscriptionProductsResponses];
9358
+ export type ListSubscriptionPlansData = {
9359
+ body?: never;
9360
+ path: {
9361
+ /**
9362
+ * The unique identifier of the subscription.
9363
+ */
9364
+ subscription_uuid: SubscriptionsUuid;
9365
+ };
9366
+ query?: never;
9367
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}/plans";
9368
+ };
9369
+ export type ListSubscriptionPlansErrors = {
9370
+ /**
9371
+ * Bad request. The request failed validation.
9372
+ */
9373
+ 400: SubscriptionsErrorResponse;
9374
+ /**
9375
+ * Not found. The requested entity does not exist.
9376
+ */
9377
+ 404: SubscriptionsErrorResponse;
9378
+ /**
9379
+ * Internal server error. There was a system failure in the platform.
9380
+ */
9381
+ 500: SubscriptionsErrorResponse;
9382
+ };
9383
+ export type ListSubscriptionPlansError = ListSubscriptionPlansErrors[keyof ListSubscriptionPlansErrors];
9384
+ export type ListSubscriptionPlansResponses = {
9385
+ /**
9386
+ * Success. A list of subscription plans is returned.
9387
+ */
9388
+ 200: {
9389
+ data?: Array<OfferingPlan>;
9390
+ };
9391
+ };
9392
+ export type ListSubscriptionPlansResponse = ListSubscriptionPlansResponses[keyof ListSubscriptionPlansResponses];
9393
+ export type ListSubscriptionStatesData = {
9394
+ body?: never;
9395
+ path: {
9396
+ /**
9397
+ * The unique identifier of the subscription.
9398
+ */
9399
+ subscription_uuid: SubscriptionsUuid;
9400
+ };
9401
+ query?: never;
9402
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}/states";
9403
+ };
9404
+ export type ListSubscriptionStatesErrors = {
9405
+ /**
9406
+ * Bad request. The request failed validation.
9407
+ */
9408
+ 400: SubscriptionsErrorResponse;
9409
+ /**
9410
+ * Not found. The requested entity does not exist.
9411
+ */
9412
+ 404: SubscriptionsErrorResponse;
9413
+ /**
9414
+ * Internal server error. There was a system failure in the platform.
9415
+ */
9416
+ 500: SubscriptionsErrorResponse;
9417
+ };
9418
+ export type ListSubscriptionStatesError = ListSubscriptionStatesErrors[keyof ListSubscriptionStatesErrors];
9419
+ export type ListSubscriptionStatesResponses = {
9420
+ /**
9421
+ * Success. A list of subscription states is returned.
9422
+ */
9423
+ 200: {
9424
+ data?: Array<SubscriptionState>;
9425
+ };
9426
+ };
9427
+ export type ListSubscriptionStatesResponse = ListSubscriptionStatesResponses[keyof ListSubscriptionStatesResponses];
9428
+ export type GetSubscriptionStateData = {
9429
+ body?: never;
9430
+ path: {
9431
+ /**
9432
+ * The unique identifier of the subscription.
9433
+ */
9434
+ subscription_uuid: SubscriptionsUuid;
9435
+ /**
9436
+ * The unique identifier of the subscription state.
9437
+ */
9438
+ state_uuid: SubscriptionsUuid;
9439
+ };
9440
+ query?: never;
9441
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}/states/{state_uuid}";
9442
+ };
9443
+ export type GetSubscriptionStateErrors = {
9444
+ /**
9445
+ * Bad request. The request failed validation.
9446
+ */
9447
+ 400: SubscriptionsErrorResponse;
9448
+ /**
9449
+ * Not found. The requested entity does not exist.
9450
+ */
9451
+ 404: SubscriptionsErrorResponse;
9452
+ /**
9453
+ * Internal server error. There was a system failure in the platform.
9454
+ */
9455
+ 500: SubscriptionsErrorResponse;
9456
+ };
9457
+ export type GetSubscriptionStateError = GetSubscriptionStateErrors[keyof GetSubscriptionStateErrors];
9458
+ export type GetSubscriptionStateResponses = {
9459
+ /**
9460
+ * Success. A subscription state is returned.
9461
+ */
9462
+ 200: {
9463
+ data?: SubscriptionState;
9464
+ };
9465
+ };
9466
+ export type GetSubscriptionStateResponse = GetSubscriptionStateResponses[keyof GetSubscriptionStateResponses];
9467
+ export type ListSubscriptionInvoicesData = {
9468
+ body?: never;
9469
+ path: {
9470
+ /**
9471
+ * The unique identifier of the subscription.
9472
+ */
9473
+ subscription_uuid: SubscriptionsUuid;
9474
+ };
9475
+ query?: {
9476
+ /**
9477
+ * The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [page length](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
9478
+ */
9479
+ "page[offset]"?: BigInt;
9480
+ /**
9481
+ * The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the [page length](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
9482
+ */
9483
+ "page[limit]"?: BigInt;
9484
+ };
9485
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}/invoices";
9486
+ };
9487
+ export type ListSubscriptionInvoicesErrors = {
9488
+ /**
9489
+ * Internal server error. There was a system failure in the platform.
9490
+ */
9491
+ 500: SubscriptionsErrorResponse;
9492
+ };
9493
+ export type ListSubscriptionInvoicesError = ListSubscriptionInvoicesErrors[keyof ListSubscriptionInvoicesErrors];
9494
+ export type ListSubscriptionInvoicesResponses = {
9495
+ /**
9496
+ * Success. A list of invoices is returned.
9497
+ */
9498
+ 200: {
9499
+ data?: Array<SubscriptionInvoice>;
9500
+ links?: Links2;
9501
+ };
9502
+ };
9503
+ export type ListSubscriptionInvoicesResponse = ListSubscriptionInvoicesResponses[keyof ListSubscriptionInvoicesResponses];
9504
+ export type ListSubscriptionInvoicePaymentsData = {
9505
+ body?: never;
9506
+ path: {
9507
+ /**
9508
+ * The unique identifier of the subscription.
9509
+ */
9510
+ subscription_uuid: SubscriptionsUuid;
9511
+ /**
9512
+ * The unique identifier of the invoice.
9513
+ */
9514
+ invoice_uuid: SubscriptionsUuid;
9515
+ };
9516
+ query?: {
9517
+ /**
9518
+ * The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [page length](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
9519
+ */
9520
+ "page[offset]"?: BigInt;
9521
+ /**
9522
+ * The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the [page length](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
9523
+ */
9524
+ "page[limit]"?: BigInt;
9525
+ };
9526
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}/invoices/{invoice_uuid}/payments";
9527
+ };
9528
+ export type ListSubscriptionInvoicePaymentsResponses = {
9529
+ /**
9530
+ * Success. Payments for the invoice are returned.
9531
+ */
9532
+ 200: {
9533
+ data?: Array<SubscriptionInvoicePayment>;
9534
+ links?: Links2;
9535
+ };
9536
+ };
9537
+ export type ListSubscriptionInvoicePaymentsResponse = ListSubscriptionInvoicePaymentsResponses[keyof ListSubscriptionInvoicePaymentsResponses];
9538
+ export type GetSubscriptionInvoicePaymentData = {
9539
+ body?: never;
9540
+ path: {
9541
+ /**
9542
+ * The unique identifier of the subscription.
9543
+ */
9544
+ subscription_uuid: SubscriptionsUuid;
9545
+ /**
9546
+ * The unique identifier of the invoice.
9547
+ */
9548
+ invoice_uuid: SubscriptionsUuid;
9549
+ /**
9550
+ * The unique identifier of the payment.
9551
+ */
9552
+ payment_uuid: SubscriptionsUuid;
9553
+ };
9554
+ query?: never;
9555
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}/invoices/{invoice_uuid}/payments/{payment_uuid}";
9556
+ };
9557
+ export type GetSubscriptionInvoicePaymentErrors = {
9558
+ /**
9559
+ * Not found. The requested entity does not exist.
9560
+ */
9561
+ 404: SubscriptionsErrorResponse;
9562
+ };
9563
+ export type GetSubscriptionInvoicePaymentError = GetSubscriptionInvoicePaymentErrors[keyof GetSubscriptionInvoicePaymentErrors];
9564
+ export type GetSubscriptionInvoicePaymentResponses = {
9565
+ /**
9566
+ * Success. Specific payment for the invoice is returned.
9567
+ */
9568
+ 200: {
9569
+ data?: SubscriptionInvoicePayment;
9570
+ };
9571
+ };
9572
+ export type GetSubscriptionInvoicePaymentResponse = GetSubscriptionInvoicePaymentResponses[keyof GetSubscriptionInvoicePaymentResponses];
9573
+ export type GetSubscriptionInvoiceData = {
9574
+ body?: never;
9575
+ path: {
9576
+ /**
9577
+ * The unique identifier of the subscription.
9578
+ */
9579
+ subscription_uuid: SubscriptionsUuid;
9580
+ /**
9581
+ * The unique identifier of the invoice.
9582
+ */
9583
+ invoice_uuid: SubscriptionsUuid;
9584
+ };
9585
+ query?: never;
9586
+ url: "/v2/subscriptions/subscriptions/{subscription_uuid}/invoices/{invoice_uuid}";
9587
+ };
9588
+ export type GetSubscriptionInvoiceErrors = {
9589
+ /**
9590
+ * Not found. The requested entity does not exist.
9591
+ */
9592
+ 404: SubscriptionsErrorResponse;
9593
+ /**
9594
+ * Internal server error. There was a system failure in the platform.
9595
+ */
9596
+ 500: SubscriptionsErrorResponse;
9597
+ };
9598
+ export type GetSubscriptionInvoiceError = GetSubscriptionInvoiceErrors[keyof GetSubscriptionInvoiceErrors];
9599
+ export type GetSubscriptionInvoiceResponses = {
9600
+ /**
9601
+ * Success. An invoice is returned.
9602
+ */
9603
+ 200: {
9604
+ data?: SubscriptionInvoice;
9605
+ };
9606
+ };
9607
+ export type GetSubscriptionInvoiceResponse = GetSubscriptionInvoiceResponses[keyof GetSubscriptionInvoiceResponses];
9608
+ export type ListInvoicesData = {
9609
+ body?: never;
9610
+ path?: never;
9611
+ query?: {
9612
+ /**
9613
+ * Some Subscriptions API endpoints support filtering. For the general syntax, see [**Filtering**](/guides/Getting-Started/filtering), but you must go to a specific endpoint to understand the attributes and operators an endpoint supports.
9614
+ *
9615
+ */
9616
+ filter?: string;
9617
+ /**
9618
+ * The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [page length](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
9619
+ */
9620
+ "page[offset]"?: BigInt;
9621
+ /**
9622
+ * The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the [page length](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
9623
+ */
9624
+ "page[limit]"?: BigInt;
9625
+ };
9626
+ url: "/v2/subscriptions/invoices";
9627
+ };
9628
+ export type ListInvoicesErrors = {
9629
+ /**
9630
+ * Bad request. The request failed validation.
9631
+ */
9632
+ 400: SubscriptionsErrorResponse;
9633
+ /**
9634
+ * Internal server error. There was a system failure in the platform.
9635
+ */
9636
+ 500: SubscriptionsErrorResponse;
9637
+ };
9638
+ export type ListInvoicesError = ListInvoicesErrors[keyof ListInvoicesErrors];
9639
+ export type ListInvoicesResponses = {
9640
+ /**
9641
+ * Success. A list of invoices is returned.
9642
+ */
9643
+ 200: {
9644
+ data?: Array<SubscriptionInvoice>;
9645
+ links?: Links2;
9646
+ };
9647
+ };
9648
+ export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
9649
+ export type GetInvoiceData = {
9650
+ body?: never;
9651
+ path: {
9652
+ /**
9653
+ * The unique identifier of the invoice.
9654
+ */
9655
+ invoice_uuid: SubscriptionsUuid;
9656
+ };
9657
+ query?: never;
9658
+ url: "/v2/subscriptions/invoices/{invoice_uuid}";
9659
+ };
9660
+ export type GetInvoiceErrors = {
9661
+ /**
9662
+ * Bad request. The request failed validation.
9663
+ */
9664
+ 400: SubscriptionsErrorResponse;
9665
+ /**
9666
+ * Not found. The requested entity does not exist.
9667
+ */
9668
+ 404: SubscriptionsErrorResponse;
9669
+ /**
9670
+ * Internal server error. There was a system failure in the platform.
9671
+ */
9672
+ 500: SubscriptionsErrorResponse;
9673
+ };
9674
+ export type GetInvoiceError = GetInvoiceErrors[keyof GetInvoiceErrors];
9675
+ export type GetInvoiceResponses = {
9676
+ /**
9677
+ * Success. The details of the invoice are returned.
9678
+ */
9679
+ 200: {
9680
+ data?: SubscriptionInvoice;
9681
+ };
9682
+ };
9683
+ export type GetInvoiceResponse = GetInvoiceResponses[keyof GetInvoiceResponses];
9236
9684
  export type GetFeatureData = {
9237
9685
  body?: never;
9238
9686
  path: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epcc-sdk/sdks-shopper",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "exports": {