@passly-nl/data 1.3.2 → 1.3.4

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.mjs CHANGED
@@ -3438,6 +3438,12 @@ let OrderDto = class OrderDto {
3438
3438
  set refundedTotal(value) {
3439
3439
  this.#refundedTotal = value;
3440
3440
  }
3441
+ get refundStatus() {
3442
+ return this.#refundStatus;
3443
+ }
3444
+ set refundStatus(value) {
3445
+ this.#refundStatus = value;
3446
+ }
3441
3447
  get subTotal() {
3442
3448
  return this.#subTotal;
3443
3449
  }
@@ -3502,6 +3508,7 @@ let OrderDto = class OrderDto {
3502
3508
  #paymentProvider;
3503
3509
  #platformCost;
3504
3510
  #refundedTotal;
3511
+ #refundStatus;
3505
3512
  #subTotal;
3506
3513
  #total;
3507
3514
  #url;
@@ -3511,7 +3518,7 @@ let OrderDto = class OrderDto {
3511
3518
  #shop;
3512
3519
  #transaction;
3513
3520
  #attribution;
3514
- constructor(id, code, origin, type, createdOn, discountAmount, discountCodeApplied, paymentProvider, platformCost, refundedTotal, subTotal, total, url, buyer, event, lines, shop, transaction, attribution) {
3521
+ constructor(id, code, origin, type, createdOn, discountAmount, discountCodeApplied, paymentProvider, platformCost, refundedTotal, refundStatus, subTotal, total, url, buyer, event, lines, shop, transaction, attribution) {
3515
3522
  this.#id = id;
3516
3523
  this.#code = code;
3517
3524
  this.#origin = origin;
@@ -3522,6 +3529,7 @@ let OrderDto = class OrderDto {
3522
3529
  this.#paymentProvider = paymentProvider;
3523
3530
  this.#platformCost = platformCost;
3524
3531
  this.#refundedTotal = refundedTotal;
3532
+ this.#refundStatus = refundStatus;
3525
3533
  this.#subTotal = subTotal;
3526
3534
  this.#total = total;
3527
3535
  this.#url = url;
@@ -4741,6 +4749,30 @@ let PublicShopTimeSlotDto = class PublicShopTimeSlotDto {
4741
4749
  };
4742
4750
  PublicShopTimeSlotDto = __decorate([dto], PublicShopTimeSlotDto);
4743
4751
 
4752
+ //#endregion
4753
+ //#region src/dto/refund/RefundabilityDto.ts
4754
+ let RefundabilityDto = class RefundabilityDto {
4755
+ get supported() {
4756
+ return this.#supported;
4757
+ }
4758
+ set supported(value) {
4759
+ this.#supported = value;
4760
+ }
4761
+ get reason() {
4762
+ return this.#reason;
4763
+ }
4764
+ set reason(value) {
4765
+ this.#reason = value;
4766
+ }
4767
+ #supported;
4768
+ #reason;
4769
+ constructor(supported, reason) {
4770
+ this.#supported = supported;
4771
+ this.#reason = reason;
4772
+ }
4773
+ };
4774
+ RefundabilityDto = __decorate([dto], RefundabilityDto);
4775
+
4744
4776
  //#endregion
4745
4777
  //#region src/dto/refund/RefundDto.ts
4746
4778
  let RefundDto = class RefundDto {
@@ -8277,7 +8309,7 @@ MerchantDashboardAdapter = __decorate([adapter], MerchantDashboardAdapter);
8277
8309
  var _OrderAdapter;
8278
8310
  let OrderAdapter = _OrderAdapter = class OrderAdapter {
8279
8311
  static parseOrder(data) {
8280
- return new OrderDto(data.id, data.code, data.origin, data.type, DateTimeAdapter.parseDateTime(data.created_on), optional_default(data.discount_amount, PaymentAdapter.parseCost), data.discount_code_applied ?? null, optional_default(data.payment_provider, _OrderAdapter.parseOrderPaymentProvider), optional_default(data.platform_cost, PaymentAdapter.parseCost), optional_default(data.refunded_total, PaymentAdapter.parseCost), optional_default(data.sub_total, PaymentAdapter.parseCost), optional_default(data.total, PaymentAdapter.parseCost), data.url, optional_default(data.buyer, BuyerAdapter.parseBuyer), optional_default(data.event, EventAdapter.parseEvent), optionalArray_default(data.lines, _OrderAdapter.parseOrderLine), optional_default(data.shop, PublicShopAdapter.parsePublicShop), optional_default(data.transaction, PaymentAdapter.parseTransaction), optional_default(data.attribution, MarketingAttributionAdapter.parseMarketingAttribution));
8312
+ return new OrderDto(data.id, data.code, data.origin, data.type, DateTimeAdapter.parseDateTime(data.created_on), optional_default(data.discount_amount, PaymentAdapter.parseCost), data.discount_code_applied ?? null, optional_default(data.payment_provider, _OrderAdapter.parseOrderPaymentProvider), optional_default(data.platform_cost, PaymentAdapter.parseCost), optional_default(data.refunded_total, PaymentAdapter.parseCost), data.refund_status, optional_default(data.sub_total, PaymentAdapter.parseCost), optional_default(data.total, PaymentAdapter.parseCost), data.url, optional_default(data.buyer, BuyerAdapter.parseBuyer), optional_default(data.event, EventAdapter.parseEvent), optionalArray_default(data.lines, _OrderAdapter.parseOrderLine), optional_default(data.shop, PublicShopAdapter.parsePublicShop), optional_default(data.transaction, PaymentAdapter.parseTransaction), optional_default(data.attribution, MarketingAttributionAdapter.parseMarketingAttribution));
8281
8313
  }
8282
8314
  static parseOrderLine(data) {
8283
8315
  return new OrderLineDto(data.id, PaymentAdapter.parseCost(data.price), data.quantity, _OrderAdapter.parseOrderProduct(data.product), PaymentAdapter.parseCost(data.sub_total), DateTimeAdapter.parseDateTime(data.created_on), DateTimeAdapter.parseDateTime(data.updated_on));
@@ -8380,6 +8412,9 @@ let RefundAdapter = class RefundAdapter {
8380
8412
  static parseRefund(data) {
8381
8413
  return new RefundDto(data.id, data.status, PaymentAdapter.parseCost(data.amount), data.reason, data.reason_label, data.note, DateTimeAdapter.parseDateTime(data.created_on), optional_default(data.completed_on, DateTimeAdapter.parseDateTime));
8382
8414
  }
8415
+ static parseRefundability(data) {
8416
+ return new RefundabilityDto(data.supported, data.reason);
8417
+ }
8383
8418
  static parseRefundInitiator(data) {
8384
8419
  return new RefundInitiatorDto(data.id, data.name);
8385
8420
  }
@@ -9486,6 +9521,9 @@ var MerchantOrderService = class extends BaseService {
9486
9521
  async getCashFlow(merchantId, orderId) {
9487
9522
  return await this.request(`/merchants/${merchantId}/orders/${orderId}/cash-flow`).method("get").bearerToken().queryString(QueryString.builder().append("language", "nl")).runAdapter(CashFlowAdapter.parseCashFlow);
9488
9523
  }
9524
+ async getRefundability(merchantId, orderId) {
9525
+ return await this.request(`/merchants/${merchantId}/orders/${orderId}/refundability`).method("get").bearerToken().runAdapter(RefundAdapter.parseRefundability);
9526
+ }
9489
9527
  async getPasses(merchantId, orderId) {
9490
9528
  return await this.request(`/merchants/${merchantId}/orders/${orderId}/passes`).method("get").bearerToken().queryString(QueryString.builder().append("language", "nl")).fetchBlob();
9491
9529
  }
@@ -10483,5 +10521,5 @@ var UiSelectOptionsService = class extends BaseService {
10483
10521
  };
10484
10522
 
10485
10523
  //#endregion
10486
- export { AddressAdapter, AddressDto, AdminMerchantService, AdminMerchantSubscriptionService, AdminMerchantsService, AdminService, AiChatAdapter, AiChatConversationDto, AiChatMessageDto, AiChatToolCallDto, AiUsageAdapter, AiUsageDto, AiUsageFeatureStatusDto, AiUsagePeriodDto, AppTeamDto, AuthAdapter, AuthService, BuyerAdapter, BuyerDto, CashFlowAdapter, CashFlowDiscountDto, CashFlowDto, CashFlowPaymentDto, CashFlowPlatformCostDto, CashFlowRefundDto, CashFlowTimelineEventDto, CommonAdapter, ContentCalendarAdapter, ContentCalendarItemCreatorDto, ContentCalendarItemDto, ContractDto, CostDto, DateTimeAdapter, DiscountCodeAdapter, DiscountCodeDto, EMAIL_TEMPLATE_EDITOR_CONTEXTS, EmailTemplateAdapter, EmailTemplateDto, EventAdapter, EventAvailabilityDto, EventCountersDto, EventDto, EventStatisticsAppTeamDto, EventStatisticsAttendanceDto, EventStatisticsBuyersAdapter, EventStatisticsBuyersOverviewDto, EventStatisticsFinancialDto, EventStatisticsKpisDto, EventStatisticsOperationsAdapter, EventStatisticsOperationsOverviewDto, EventStatisticsOverviewAdapter, EventStatisticsStatusDto, EventStatisticsSwapsDto, FileSystemAdapter, FinanceAdapter, FinanceOverviewDto, FluxAdapter, InsightDto, InsightSignalDto, InsightsResponseDto, InvitationDto, InvitationService, InvoiceDto, InvoiceLineDto, MarketingAttributionAdapter, MarketingAttributionDto, MeService, MerchantAdapter, MerchantAiChatService, MerchantAiSettingsService, MerchantAiUsageService, MerchantBuyerService, MerchantBuyersService, MerchantContractService, MerchantDashboardAdapter, MerchantDashboardKeyMetricsDto, MerchantDashboardService, MerchantDashboardUpcomingEventDto, MerchantDiscountCodeService, MerchantDiscountCodesService, MerchantDto, MerchantEmailTemplateService, MerchantEmailTemplatesService, MerchantEventAppTeamService, MerchantEventAppTeamsService, MerchantEventContentCalendarService, MerchantEventEmailTemplateService, MerchantEventEmailTemplatesService, MerchantEventProductService, MerchantEventProductsService, MerchantEventService, MerchantEventShopService, MerchantEventShopsService, MerchantEventStatisticsBuyersService, MerchantEventStatisticsOperationsService, MerchantEventStatisticsOverviewService, MerchantEventStatisticsSalesService, MerchantEventStockPoolsService, MerchantEventTicketTemplateService, MerchantEventTicketTemplatesService, MerchantEventTimeSlotService, MerchantEventTimeSlotsService, MerchantEventsService, MerchantFinanceInvoiceService, MerchantFinanceInvoicesService, MerchantFinanceService, MerchantOrderService, MerchantOrdersService, MerchantService, MerchantShopService, MerchantShopsService, MerchantStatisticsBuyersService, MerchantStatisticsEventsService, MerchantStatisticsGrowthService, MerchantStatisticsInsightsService, MerchantStatisticsMarketingService, MerchantStatisticsOperationsService, MerchantStatisticsOverviewService, MerchantStatisticsRefundsService, MerchantStatisticsSalesService, MerchantStatisticsService, MerchantSubscriptionDto, MerchantTicketService, MerchantTicketsService, MerchantUserDto, MerchantUserService, MerchantUsersService, MerchantsService, MilestoneDto, OrderAdapter, OrderDto, OrderLineDto, OrderPaymentProviderDto, OrderProductDto, PaymentAdapter, PaymentMethodDto, PaymentProviderDto, PictureDto, ProductAdapter, ProductDto, PublicOrderService, PublicPayAdapter, PublicPaymentMethodDto, PublicShopAdapter, PublicShopCartProductDto, PublicShopDesignDto, PublicShopDto, PublicShopElementButtonDto, PublicShopElementDividerDto, PublicShopElementDto, PublicShopElementHeadingDto, PublicShopElementInformationDto, PublicShopElementNoticeDto, PublicShopElementProductDto, PublicShopElementTextDto, PublicShopEventDto, PublicShopMerchantDto, PublicShopProductDto, PublicShopReservationDto, PublicShopReservationProductDetailsDto, PublicShopReservationProductDto, PublicShopService, PublicShopTimeSlotDto, RefundAdapter, RefundDto, RefundInitiatorDto, RefundTicketRefDto, RenderedMailDto, ReservationAdapter, ReservationDto, ReservationItemDto, ReservationProductDto, ReservationService, ServiceAdapter, ServiceInfoDto, ServicesService, ShopDesignDto, ShopDto, ShopElementButtonDto, ShopElementDividerDto, ShopElementDto, ShopElementHeadingDto, ShopElementInformationDto, ShopElementNoticeDto, ShopElementProductDto, ShopElementTextDto, ShortlinkAdapter, ShortlinkDto, StatisticsAdapter, StatisticsBuyersAcquisitionSourceDto, StatisticsBuyersAdapter, StatisticsBuyersAgeGenderMatrixDto, StatisticsBuyersCohortRetentionDto, StatisticsBuyersDeviceConversionDto, StatisticsBuyersGeographicDistributionDto, StatisticsBuyersOverviewDto, StatisticsBuyersRankedDto, StatisticsBuyersSpendBucketsDto, StatisticsChartAdapter, StatisticsChartDto, StatisticsEventsAdapter, StatisticsEventsOverviewDto, StatisticsEventsSalesCurveDto, StatisticsEventsSalesCurveEventDto, StatisticsEventsSellOutTimingDto, StatisticsEventsSellOutTimingEventDto, StatisticsEventsTimeToEventDto, StatisticsGrowthAdapter, StatisticsGrowthCmgrDto, StatisticsGrowthOverviewDto, StatisticsInsightsAdapter, StatisticsMarketingAdapter, StatisticsMarketingCampaignDto, StatisticsMarketingOverviewDto, StatisticsMarketingReferrerDto, StatisticsMarketingShortlinkRoiDto, StatisticsMarketingSourceBreakdownDto, StatisticsMarketingSourceFunnelDto, StatisticsMarketingSourceMediumMatrixDto, StatisticsOperationsAdapter, StatisticsOperationsAppTeamDto, StatisticsOperationsNoShowRateDto, StatisticsOperationsNoShowRateEventDto, StatisticsOperationsOverviewDto, StatisticsOperationsScanTimeDistributionDto, StatisticsOperationsStewardDto, StatisticsOperationsStockUtilizationDto, StatisticsOverviewAdapter, StatisticsOverviewBestRevenueMonthDto, StatisticsOverviewCancellationFunnelDto, StatisticsOverviewEventPerformanceDto, StatisticsOverviewEventPerformanceEventDto, StatisticsOverviewEventPerformanceSummaryDto, StatisticsOverviewKPIsDto, StatisticsOverviewKPIsTotalEventsHostedDto, StatisticsOverviewKPIsTotalRevenueDto, StatisticsOverviewKPIsTotalTicketsSoldDto, StatisticsOverviewReservationConversionRateDto, StatisticsOverviewTopShopDto, StatisticsPieChartDto, StatisticsRefundsAdapter, StatisticsRefundsAmountDistributionDto, StatisticsRefundsOverviewDto, StatisticsRefundsTopEventDto, StatisticsRefundsVelocityDto, StatisticsSalesAdapter, StatisticsSalesDiscountEfficacyDto, StatisticsSalesFailedTransactionReasonDto, StatisticsSalesLifetimeTotalsDto, StatisticsSalesOrderValueDistributionDto, StatisticsSalesPurchaseBehaviorDto, StatisticsSalesRepeatPurchaseVelocityDto, StatisticsSalesTransactionSuccessRateDto, StatisticsTrendDto, StatusResponseDto, StockOverviewDto, StockOverviewItemDto, StockPoolDto, SubscriptionAdapter, SubscriptionPlanDto, TicketAdapter, TicketDto, TicketTemplateDto, TimeSlotDto, TotpStateDto, TransactionDto, UiSelectOptionsService, UserDto, UserTokenDto, VatNumberDto, emptyNull_default as emptyNull, jsonBlob_default as jsonBlob, optional_default as optional, optionalArray_default as optionalArray, parseEmailTemplate, serializeBlocks };
10524
+ export { AddressAdapter, AddressDto, AdminMerchantService, AdminMerchantSubscriptionService, AdminMerchantsService, AdminService, AiChatAdapter, AiChatConversationDto, AiChatMessageDto, AiChatToolCallDto, AiUsageAdapter, AiUsageDto, AiUsageFeatureStatusDto, AiUsagePeriodDto, AppTeamDto, AuthAdapter, AuthService, BuyerAdapter, BuyerDto, CashFlowAdapter, CashFlowDiscountDto, CashFlowDto, CashFlowPaymentDto, CashFlowPlatformCostDto, CashFlowRefundDto, CashFlowTimelineEventDto, CommonAdapter, ContentCalendarAdapter, ContentCalendarItemCreatorDto, ContentCalendarItemDto, ContractDto, CostDto, DateTimeAdapter, DiscountCodeAdapter, DiscountCodeDto, EMAIL_TEMPLATE_EDITOR_CONTEXTS, EmailTemplateAdapter, EmailTemplateDto, EventAdapter, EventAvailabilityDto, EventCountersDto, EventDto, EventStatisticsAppTeamDto, EventStatisticsAttendanceDto, EventStatisticsBuyersAdapter, EventStatisticsBuyersOverviewDto, EventStatisticsFinancialDto, EventStatisticsKpisDto, EventStatisticsOperationsAdapter, EventStatisticsOperationsOverviewDto, EventStatisticsOverviewAdapter, EventStatisticsStatusDto, EventStatisticsSwapsDto, FileSystemAdapter, FinanceAdapter, FinanceOverviewDto, FluxAdapter, InsightDto, InsightSignalDto, InsightsResponseDto, InvitationDto, InvitationService, InvoiceDto, InvoiceLineDto, MarketingAttributionAdapter, MarketingAttributionDto, MeService, MerchantAdapter, MerchantAiChatService, MerchantAiSettingsService, MerchantAiUsageService, MerchantBuyerService, MerchantBuyersService, MerchantContractService, MerchantDashboardAdapter, MerchantDashboardKeyMetricsDto, MerchantDashboardService, MerchantDashboardUpcomingEventDto, MerchantDiscountCodeService, MerchantDiscountCodesService, MerchantDto, MerchantEmailTemplateService, MerchantEmailTemplatesService, MerchantEventAppTeamService, MerchantEventAppTeamsService, MerchantEventContentCalendarService, MerchantEventEmailTemplateService, MerchantEventEmailTemplatesService, MerchantEventProductService, MerchantEventProductsService, MerchantEventService, MerchantEventShopService, MerchantEventShopsService, MerchantEventStatisticsBuyersService, MerchantEventStatisticsOperationsService, MerchantEventStatisticsOverviewService, MerchantEventStatisticsSalesService, MerchantEventStockPoolsService, MerchantEventTicketTemplateService, MerchantEventTicketTemplatesService, MerchantEventTimeSlotService, MerchantEventTimeSlotsService, MerchantEventsService, MerchantFinanceInvoiceService, MerchantFinanceInvoicesService, MerchantFinanceService, MerchantOrderService, MerchantOrdersService, MerchantService, MerchantShopService, MerchantShopsService, MerchantStatisticsBuyersService, MerchantStatisticsEventsService, MerchantStatisticsGrowthService, MerchantStatisticsInsightsService, MerchantStatisticsMarketingService, MerchantStatisticsOperationsService, MerchantStatisticsOverviewService, MerchantStatisticsRefundsService, MerchantStatisticsSalesService, MerchantStatisticsService, MerchantSubscriptionDto, MerchantTicketService, MerchantTicketsService, MerchantUserDto, MerchantUserService, MerchantUsersService, MerchantsService, MilestoneDto, OrderAdapter, OrderDto, OrderLineDto, OrderPaymentProviderDto, OrderProductDto, PaymentAdapter, PaymentMethodDto, PaymentProviderDto, PictureDto, ProductAdapter, ProductDto, PublicOrderService, PublicPayAdapter, PublicPaymentMethodDto, PublicShopAdapter, PublicShopCartProductDto, PublicShopDesignDto, PublicShopDto, PublicShopElementButtonDto, PublicShopElementDividerDto, PublicShopElementDto, PublicShopElementHeadingDto, PublicShopElementInformationDto, PublicShopElementNoticeDto, PublicShopElementProductDto, PublicShopElementTextDto, PublicShopEventDto, PublicShopMerchantDto, PublicShopProductDto, PublicShopReservationDto, PublicShopReservationProductDetailsDto, PublicShopReservationProductDto, PublicShopService, PublicShopTimeSlotDto, RefundAdapter, RefundDto, RefundInitiatorDto, RefundTicketRefDto, RefundabilityDto, RenderedMailDto, ReservationAdapter, ReservationDto, ReservationItemDto, ReservationProductDto, ReservationService, ServiceAdapter, ServiceInfoDto, ServicesService, ShopDesignDto, ShopDto, ShopElementButtonDto, ShopElementDividerDto, ShopElementDto, ShopElementHeadingDto, ShopElementInformationDto, ShopElementNoticeDto, ShopElementProductDto, ShopElementTextDto, ShortlinkAdapter, ShortlinkDto, StatisticsAdapter, StatisticsBuyersAcquisitionSourceDto, StatisticsBuyersAdapter, StatisticsBuyersAgeGenderMatrixDto, StatisticsBuyersCohortRetentionDto, StatisticsBuyersDeviceConversionDto, StatisticsBuyersGeographicDistributionDto, StatisticsBuyersOverviewDto, StatisticsBuyersRankedDto, StatisticsBuyersSpendBucketsDto, StatisticsChartAdapter, StatisticsChartDto, StatisticsEventsAdapter, StatisticsEventsOverviewDto, StatisticsEventsSalesCurveDto, StatisticsEventsSalesCurveEventDto, StatisticsEventsSellOutTimingDto, StatisticsEventsSellOutTimingEventDto, StatisticsEventsTimeToEventDto, StatisticsGrowthAdapter, StatisticsGrowthCmgrDto, StatisticsGrowthOverviewDto, StatisticsInsightsAdapter, StatisticsMarketingAdapter, StatisticsMarketingCampaignDto, StatisticsMarketingOverviewDto, StatisticsMarketingReferrerDto, StatisticsMarketingShortlinkRoiDto, StatisticsMarketingSourceBreakdownDto, StatisticsMarketingSourceFunnelDto, StatisticsMarketingSourceMediumMatrixDto, StatisticsOperationsAdapter, StatisticsOperationsAppTeamDto, StatisticsOperationsNoShowRateDto, StatisticsOperationsNoShowRateEventDto, StatisticsOperationsOverviewDto, StatisticsOperationsScanTimeDistributionDto, StatisticsOperationsStewardDto, StatisticsOperationsStockUtilizationDto, StatisticsOverviewAdapter, StatisticsOverviewBestRevenueMonthDto, StatisticsOverviewCancellationFunnelDto, StatisticsOverviewEventPerformanceDto, StatisticsOverviewEventPerformanceEventDto, StatisticsOverviewEventPerformanceSummaryDto, StatisticsOverviewKPIsDto, StatisticsOverviewKPIsTotalEventsHostedDto, StatisticsOverviewKPIsTotalRevenueDto, StatisticsOverviewKPIsTotalTicketsSoldDto, StatisticsOverviewReservationConversionRateDto, StatisticsOverviewTopShopDto, StatisticsPieChartDto, StatisticsRefundsAdapter, StatisticsRefundsAmountDistributionDto, StatisticsRefundsOverviewDto, StatisticsRefundsTopEventDto, StatisticsRefundsVelocityDto, StatisticsSalesAdapter, StatisticsSalesDiscountEfficacyDto, StatisticsSalesFailedTransactionReasonDto, StatisticsSalesLifetimeTotalsDto, StatisticsSalesOrderValueDistributionDto, StatisticsSalesPurchaseBehaviorDto, StatisticsSalesRepeatPurchaseVelocityDto, StatisticsSalesTransactionSuccessRateDto, StatisticsTrendDto, StatusResponseDto, StockOverviewDto, StockOverviewItemDto, StockPoolDto, SubscriptionAdapter, SubscriptionPlanDto, TicketAdapter, TicketDto, TicketTemplateDto, TimeSlotDto, TotpStateDto, TransactionDto, UiSelectOptionsService, UserDto, UserTokenDto, VatNumberDto, emptyNull_default as emptyNull, jsonBlob_default as jsonBlob, optional_default as optional, optionalArray_default as optionalArray, parseEmailTemplate, serializeBlocks };
10487
10525
  //# sourceMappingURL=index.mjs.map