@passly-nl/data 1.3.2 → 1.3.3

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
@@ -4741,6 +4741,30 @@ let PublicShopTimeSlotDto = class PublicShopTimeSlotDto {
4741
4741
  };
4742
4742
  PublicShopTimeSlotDto = __decorate([dto], PublicShopTimeSlotDto);
4743
4743
 
4744
+ //#endregion
4745
+ //#region src/dto/refund/RefundabilityDto.ts
4746
+ let RefundabilityDto = class RefundabilityDto {
4747
+ get supported() {
4748
+ return this.#supported;
4749
+ }
4750
+ set supported(value) {
4751
+ this.#supported = value;
4752
+ }
4753
+ get reason() {
4754
+ return this.#reason;
4755
+ }
4756
+ set reason(value) {
4757
+ this.#reason = value;
4758
+ }
4759
+ #supported;
4760
+ #reason;
4761
+ constructor(supported, reason) {
4762
+ this.#supported = supported;
4763
+ this.#reason = reason;
4764
+ }
4765
+ };
4766
+ RefundabilityDto = __decorate([dto], RefundabilityDto);
4767
+
4744
4768
  //#endregion
4745
4769
  //#region src/dto/refund/RefundDto.ts
4746
4770
  let RefundDto = class RefundDto {
@@ -8380,6 +8404,9 @@ let RefundAdapter = class RefundAdapter {
8380
8404
  static parseRefund(data) {
8381
8405
  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
8406
  }
8407
+ static parseRefundability(data) {
8408
+ return new RefundabilityDto(data.supported, data.reason);
8409
+ }
8383
8410
  static parseRefundInitiator(data) {
8384
8411
  return new RefundInitiatorDto(data.id, data.name);
8385
8412
  }
@@ -9486,6 +9513,9 @@ var MerchantOrderService = class extends BaseService {
9486
9513
  async getCashFlow(merchantId, orderId) {
9487
9514
  return await this.request(`/merchants/${merchantId}/orders/${orderId}/cash-flow`).method("get").bearerToken().queryString(QueryString.builder().append("language", "nl")).runAdapter(CashFlowAdapter.parseCashFlow);
9488
9515
  }
9516
+ async getRefundability(merchantId, orderId) {
9517
+ return await this.request(`/merchants/${merchantId}/orders/${orderId}/refundability`).method("get").bearerToken().runAdapter(RefundAdapter.parseRefundability);
9518
+ }
9489
9519
  async getPasses(merchantId, orderId) {
9490
9520
  return await this.request(`/merchants/${merchantId}/orders/${orderId}/passes`).method("get").bearerToken().queryString(QueryString.builder().append("language", "nl")).fetchBlob();
9491
9521
  }
@@ -10483,5 +10513,5 @@ var UiSelectOptionsService = class extends BaseService {
10483
10513
  };
10484
10514
 
10485
10515
  //#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 };
10516
+ 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
10517
  //# sourceMappingURL=index.mjs.map