@flowio/api-factories 0.0.88 → 0.0.89
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/cjs/api.js +214 -16
- package/dist/esm/api.js +196 -2
- package/dist/types/api.d.ts +4 -0
- package/package.json +2 -2
- package/src/api.ts +229 -2
package/dist/cjs/api.js
CHANGED
|
@@ -25,20 +25,20 @@ exports.makeOrderNumberGeneratorGeneratedNumber = exports.makeOrderNumberGenerat
|
|
|
25
25
|
exports.makeOrderUpserted = exports.makeOrderType = exports.makeOrderSummaryPriceDetail = exports.makeOrderSummaryLineItem = exports.makeOrderSummaryLevy = exports.makeOrderSummaryItem = exports.makeOrderSummaryImage = exports.makeOrderSummary = exports.makeOrderSubmissionIdentifierForm = exports.makeOrderSubmissionForm = exports.makeOrderStorage = exports.makeOrderStatus = exports.makeOrderServiceChangeRequestData = exports.makeOrderServiceChangeRequest = exports.makeOrderServiceChangeForm = exports.makeOrderServiceChange = exports.makeOrderRulesSummary = exports.makeOrderRuleReference = exports.makeOrderReplacementUpserted = exports.makeOrderReplacementForm = exports.makeOrderReplacementDeleted = exports.makeOrderReplacement = exports.makeOrderRefundSummaryPartialIncludes = exports.makeOrderRefundSummaryPartialForm = exports.makeOrderRefundSummaryPartialCharged = exports.makeOrderRefundSummaryItem = exports.makeOrderRefundSummaryIncludes = exports.makeOrderRefundSummaryFullForm = exports.makeOrderRefundSummaryForm = exports.makeOrderRefundSummaryAmounts = exports.makeOrderRefundSummary = exports.makeOrderReference = exports.makeOrderPutForm = exports.makeOrderPromotionTrigger = exports.makeOrderPromotionForm = exports.makeOrderPromotion = exports.makeOrderPriceDetailKey = exports.makeOrderPriceDetailComponentKey = exports.makeOrderPriceDetailComponent = exports.makeOrderPriceDetail = exports.makeOrderPlacedV2 = exports.makeOrderPlacedDetails = exports.makeOrderPlaced = exports.makeOrderPaymentType = exports.makeOrderPayment = exports.makeOrderOptions = exports.makeOrderNumberReference = exports.makeOrderNumberGeneratorUuid = exports.makeOrderNumberGeneratorPrefixSuffix = exports.makeOrderNumberGeneratorHexadecimal = void 0;
|
|
26
26
|
exports.makeOversizePieceSurchargeRatecardFee = exports.makeOutboundCartonFee = exports.makeOriginalPrices = exports.makeOrganizationVersion = exports.makeOrganizationUpsertedV2 = exports.makeOrganizationUpserted = exports.makeOrganizationType = exports.makeOrganizationTransactionUpserted = exports.makeOrganizationTransactionDeleted = exports.makeOrganizationTokenV2Reference = exports.makeOrganizationTokenV2 = exports.makeOrganizationTokenReference = exports.makeOrganizationTokenFormV2 = exports.makeOrganizationTokenForm = exports.makeOrganizationToken = exports.makeOrganizationSummary = exports.makeOrganizationStatus = exports.makeOrganizationSessionAuthorization = exports.makeOrganizationSession = exports.makeOrganizationReference = exports.makeOrganizationRatesPublished = exports.makeOrganizationRatesData = exports.makeOrganizationPutForm = exports.makeOrganizationPendingPayoutTransactionUpserted = exports.makeOrganizationPendingPayoutTransactionDeleted = exports.makeOrganizationPendingPayoutTransaction = exports.makeOrganizationPayoutUpserted = exports.makeOrganizationPayoutDeleted = exports.makeOrganizationPayout = exports.makeOrganizationPaymentMethodTag = exports.makeOrganizationOnboardingStateUpserted = exports.makeOrganizationOnboardingStateDeleted = exports.makeOrganizationOnboardingState = exports.makeOrganizationForm = exports.makeOrganizationDeletedV2 = exports.makeOrganizationDeleted = exports.makeOrganizationDefaults = exports.makeOrganizationDefaultConfigurationsUpserted = exports.makeOrganizationDefaultConfigurationsForm = exports.makeOrganizationDefaultConfigurationsDeleted = exports.makeOrganizationDefaultConfigurations = exports.makeOrganizationDefaultBankAccount = exports.makeOrganizationConfigurationReference = exports.makeOrganizationBankAccount = exports.makeOrganizationAuthorizationForm = exports.makeOrganizationAuthorization = exports.makeOrganization = exports.makeOrderWithDiscountsForm = exports.makeOrderVersion = exports.makeOrderUpsertedV2 = void 0;
|
|
27
27
|
exports.makePaymentMethodCardToken = exports.makePaymentMethodCardPciDetails = exports.makePaymentMethodCardNumberCleartext = exports.makePaymentMethodCardNumberCipher = exports.makePaymentMethodCard = exports.makePaymentMethodCapability = exports.makePaymentMethodBrand = exports.makePaymentMethodActionCancellation = exports.makePaymentMethod = exports.makePaymentInformation = exports.makePaymentForm = exports.makePaymentFailureCode = exports.makePaymentFailure = exports.makePaymentErrorCode = exports.makePaymentError = exports.makePaymentDuty = exports.makePaymentDiscount = exports.makePaymentDeleted = exports.makePaymentCryptopay = exports.makePaymentContactShipping = exports.makePaymentContactBilling = exports.makePaymentCaptureStatus = exports.makePaymentCaptureOptionManual = exports.makePaymentCaptureOptionAutomaticImmediate = exports.makePaymentCaptureOption = exports.makePaymentCaptureForm = exports.makePaymentCapture = exports.makePaymentAuthorizationStatus = exports.makePaymentAuthorization = exports.makePaymentAddressShipping = exports.makePaymentAddressBilling = exports.makePaymentAddress = exports.makePaymentActionType = exports.makePayment = exports.makePasswordResetRequestForm = exports.makePasswordResetForm = exports.makePasswordChangeForm = exports.makePartnerTokenReference = exports.makePartnerTokenForm = exports.makePartnerToken = exports.makePartnerReference = exports.makePartnerCenterForm = exports.makePartnerCenterFee = exports.makePartnerCenter = exports.makeParentTransactionSummary = exports.makePackaging = exports.makePackageDimensionsSource = exports.makePackageDimensionsForm = exports.makePackageDimensions = exports.makeOversizePieceSurchargeServiceFee = void 0;
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.makeZone = exports.makeZeroLevyReasonCode = exports.makeZeroAmountIndicator = exports.makeWithholdingDeductionType = exports.makeWithholdingDeduction = exports.makeWebhookStatus = exports.makeWebhookSettings = exports.makeWebhookResponse = exports.makeWebhookRequestReference = exports.makeWebhookRequest = void 0;
|
|
28
|
+
exports.makePaymentMethodSummaryTwint = exports.makePaymentMethodSummarySofort = exports.makePaymentMethodSummaryPrzelewy24 = exports.makePaymentMethodSummaryPaypal = exports.makePaymentMethodSummaryKlarna = exports.makePaymentMethodSummaryIdeal = exports.makePaymentMethodSummaryGooglepay = exports.makePaymentMethodSummaryCard = exports.makePaymentMethodSummaryBancontact = exports.makePaymentMethodSummaryApplepay = exports.makePaymentMethodSummaryAfterpay = exports.makePaymentMethodSummary = exports.makePaymentMethodStoredDetailsCardSubsequent = exports.makePaymentMethodStoredDetailsCardInitial = exports.makePaymentMethodStoredDetailsCard = exports.makePaymentMethodRuleContentKey = exports.makePaymentMethodRuleContent = exports.makePaymentMethodRule = exports.makePaymentMethodIssuer = exports.makePaymentMethodImages = exports.makePaymentMethodImage = exports.makePaymentMethodDataValidateApplepay = exports.makePaymentMethodDataSelectedPaymentOption = exports.makePaymentMethodDataPaymentOption = exports.makePaymentMethodDataOptionType = exports.makePaymentMethodDataOptionLogoSvg = exports.makePaymentMethodDataOptionLogo = exports.makePaymentMethodDataInitTwint = exports.makePaymentMethodDataInitSofort = exports.makePaymentMethodDataInitPrzelewy24 = exports.makePaymentMethodDataInitPaypal = exports.makePaymentMethodDataInitKlarna = exports.makePaymentMethodDataInitIdeal = exports.makePaymentMethodDataInitGooglepay = exports.makePaymentMethodDataInitBancontact = exports.makePaymentMethodDataInitApplepay = exports.makePaymentMethodDataInitAfterpay = exports.makePaymentMethodDataCompleteAuthorizationCard = exports.makePaymentMethodDataAuthorizePaypal = exports.makePaymentMethodDataAuthorizeKlarnaResultSuccess = exports.makePaymentMethodDataAuthorizeKlarnaResultFailure = exports.makePaymentMethodDataAuthorizeKlarnaResult = exports.makePaymentMethodDataAuthorizeKlarna = exports.makePaymentMethodDataAuthorizeGooglepay = exports.makePaymentMethodDataAuthorizeCard = exports.makePaymentMethodDataAuthorizeApplepayResultSuccess = exports.makePaymentMethodDataAuthorizeApplepayResultFailure = exports.makePaymentMethodDataAuthorizeApplepayResult = exports.makePaymentMethodDataAuthorizeApplepay = exports.makePaymentMethodData = void 0;
|
|
29
|
+
exports.makePayoutAttachmentType = exports.makePayoutAttachment = exports.makePaymentVersion = exports.makePaymentUpserted = exports.makePaymentType = exports.makePaymentTax = exports.makePaymentStatus = exports.makePaymentSourceForm = exports.makePaymentSourceConfirmationActionType = exports.makePaymentSourceConfirmationAction = exports.makePaymentSource = exports.makePaymentReversalStatus = exports.makePaymentReversalForm = exports.makePaymentReversal = exports.makePaymentRequestUpserted = exports.makePaymentRequestReviewStatus = exports.makePaymentRequestReviewCheckType = exports.makePaymentRequestReviewCheckStatus = exports.makePaymentRequestReviewCheck = exports.makePaymentRequestReview = exports.makePaymentRequestReference = exports.makePaymentRequestForm = exports.makePaymentRequestDeleted = exports.makePaymentRequestCancellationReasonOrderMissing = exports.makePaymentRequestCancellationReason = exports.makePaymentRequestBundleForm = exports.makePaymentRequestBundle = exports.makePaymentRequestBillingFees = exports.makePaymentRequestBillingCurrencyRate = exports.makePaymentRequestBilling = exports.makePaymentRequest = exports.makePaymentRefundStatus = exports.makePaymentRefundForm = exports.makePaymentRefund = exports.makePaymentReference = exports.makePaymentProcessorTransactionDetailsCard = exports.makePaymentProcessorTransactionDetailsApm = exports.makePaymentProcessorTransactionDetails = exports.makePaymentProcessorReference = exports.makePaymentProcessorIdentifier = exports.makePaymentProcessorAccountReference = exports.makePaymentProcessorAccount = exports.makePaymentProcessor = exports.makePaymentPaypal = exports.makePaymentPaymentRequestReference = exports.makePaymentPaymentMethod = exports.makePaymentOrderReference = exports.makePaymentOrderDetailsLineItem = exports.makePaymentMethodType = exports.makePaymentMethodTag = void 0;
|
|
30
|
+
exports.makePriceDetailKey = exports.makePriceDetailComponentKey = exports.makePriceDetailComponent = exports.makePriceDetail = exports.makePriceCheck = exports.makePriceBookUpserted = exports.makePriceBookStatus = exports.makePriceBookReference = exports.makePriceBookItemUpserted = exports.makePriceBookItemSchedule = exports.makePriceBookItemQueryForm = exports.makePriceBookItemForm = exports.makePriceBookItemExportType = exports.makePriceBookItemExportOptions = exports.makePriceBookItemDeleted = exports.makePriceBookItem = exports.makePriceBookForm = exports.makePriceBookDeleted = exports.makePriceBook = exports.makePriceAccuracy = exports.makePrice = exports.makePreferredServiceSelectionStrategy = exports.makePostalType = exports.makePostPaymentRedirectUrls = exports.makePhysicalDeliverySpecialSerivce = exports.makePhysicalDeliveryPreferredService = exports.makePhysicalDelivery = exports.makePfsInventoryStatus = exports.makePfsInventoryCheckResponseItem = exports.makePfsInventoryCheckResponse = exports.makePermittedRoute = exports.makePermittedHttpMethod = exports.makePermissionCheck = exports.makePermissionAudit = exports.makePercentMargin = exports.makePendingPayoutTransactionTimeout = exports.makePendingPayoutTransactionReasonCode = exports.makePendingPayoutTransactionReason = exports.makePeakSurchargeServiceFee = exports.makePeakSurchargeRatecardFee = exports.makePeakSurchargeByWeightServiceFee = exports.makePaypalAuthorizationForm = exports.makePaypalAuthorizationDetails = exports.makePayoutTransaction = exports.makePayoutStatusSent = exports.makePayoutStatusScheduled = exports.makePayoutStatusFailureCode = exports.makePayoutStatusFailed = exports.makePayoutStatus = exports.makePayoutReference = void 0;
|
|
31
|
+
exports.makeRateDeleted = exports.makeRate = exports.makeQuoteVersion = exports.makeQuoteSummary = exports.makeQuoteLineItemForm = exports.makeQuoteForm = exports.makeQuoteErrorCode = exports.makeQuoteError = exports.makeQuote = exports.makeQueryFilterUnstructuredForm = exports.makeQueryFilterUnstructured = exports.makeQueryFilterStructuredForm = exports.makeQueryFilterStructured = exports.makeQueryFilterForm = exports.makeQueryFilter = exports.makeQueryBuilderQueryForm = exports.makeQueryBuilderForm = exports.makeQueryBuilderFilterForm = exports.makeQueryBuilder = exports.makeQuery = exports.makePublicKey = exports.makeProvinceType = exports.makeProvince = exports.makePromotions = exports.makePromotionTriggerType = exports.makePromotionTriggerForm = exports.makePromotionTrigger = exports.makePromotion = exports.makeProductRestrictionRule = exports.makeProductRestrictionResultUpserted = exports.makeProductRestrictionResultDeleted = exports.makeProductRestrictionResult = exports.makeProcessingEstimate = exports.makePricingVersion = exports.makePricingUpserted = exports.makePricingSettings = exports.makePricingLevySetting = exports.makePricingDeleted = exports.makePricing = exports.makePriceWithBaseAndDetails = exports.makePriceWithBase = exports.makePriceSourceProvided = exports.makePriceSourcePriceBookReference = exports.makePriceSourcePriceBook = exports.makePriceSourceCatalog = exports.makePriceSource = exports.makePriceForm = exports.makePriceFacetBoundary = exports.makePriceEquation = exports.makePriceDetails = void 0;
|
|
32
|
+
exports.makeRefundIdentifierDeleted = exports.makeRefundIdentifier = exports.makeRefundForm = exports.makeRefundError = exports.makeRefundDeletedV2 = exports.makeRefundDeclineCode = exports.makeRefundCaptureUpsertedV2 = exports.makeRefundCaptureSummary = exports.makeRefundCapture = exports.makeRefund = exports.makeRedirectAuthorizationForm = exports.makeRedirectAuthorizationDetails = exports.makeReasonsPerRegion = exports.makeReadyToFulfillV2 = exports.makeReadyToFulfillDetails = exports.makeReadyToFulfill = exports.makeRatecardVersion = exports.makeRatecardUpserted = exports.makeRatecardSummary = exports.makeRatecardServiceSummary = exports.makeRatecardRegionReference = exports.makeRatecardReference = exports.makeRatecardRateVersion = exports.makeRatecardRateForm = exports.makeRatecardRate = exports.makeRatecardOwner = exports.makeRatecardLanesImportRequestData = exports.makeRatecardLaneVersion = exports.makeRatecardLaneUpserted = exports.makeRatecardLaneImportForm = exports.makeRatecardLaneForm = exports.makeRatecardLaneDeleted = exports.makeRatecardLane = exports.makeRatecardForm = exports.makeRatecardFee = exports.makeRatecardEstimateV4 = exports.makeRatecardEstimateV3 = exports.makeRatecardEstimateV2 = exports.makeRatecardEstimateV1 = exports.makeRatecardEstimateSummaryForm = exports.makeRatecardEstimateForm = exports.makeRatecardEstimate = exports.makeRatecardDeleted = exports.makeRatecardCarrierSummary = exports.makeRatecard = exports.makeRateVersion = exports.makeRateUpsertedV3 = exports.makeRateUpserted = exports.makeRateForm = exports.makeRateDeletedV3 = void 0;
|
|
33
|
+
exports.makeReturnSourceFlow = exports.makeReturnSourceExternalVendor = exports.makeReturnSource = exports.makeReturnReasonPutForm = exports.makeReturnReasonForm = exports.makeReturnReason = exports.makeReturnPolicyVersion = exports.makeReturnPolicyStatistic = exports.makeReturnPolicyState = exports.makeReturnPolicyItemResult = exports.makeReturnPolicyForm = exports.makeReturnPolicy = exports.makeReturnPackageRatecardFee = exports.makeReturnOrderReference = exports.makeReturnLineItem = exports.makeReturnItemStatus = exports.makeReturnItemReference = exports.makeReturnForm = exports.makeReturnDeletedV2 = exports.makeReturnDeleted = exports.makeReturn = exports.makeRestrictedReviewStatus = exports.makeReservationOrderReference = exports.makeReservationItemReference = exports.makeReservationItemForm = exports.makeReservationItem = exports.makeReservationForm = exports.makeReservationError = exports.makeReservation = exports.makeRepeatWeekly = exports.makeRepeatSchedule = exports.makeRepeatMonthly = exports.makeRepeatHourly = exports.makeRepeatDaily = exports.makeRemoteAreaServiceFee = exports.makeRemoteAreaRatecardFee = exports.makeRemoteAreaByWeightServiceFee = exports.makeRejectionPutForm = exports.makeRegionType = exports.makeRegionSettingForm = exports.makeRegionSetting = exports.makeRegionReference = exports.makeRegion = exports.makeRefundVersion = exports.makeRefundUpsertedV2 = exports.makeRefundStatus = exports.makeRefundReference = exports.makeRefundOrderSummaryAmounts = exports.makeRefundOrderSummary = exports.makeRefundIdentifierUpserted = void 0;
|
|
34
|
+
exports.makeSessionFormat = exports.makeSessionForm = exports.makeSessionExpirationConfig = exports.makeSessionExperimentVariantForm = exports.makeSessionExperimentVariant = exports.makeSessionExperimentForm = exports.makeSessionExperiment = exports.makeSessionCurrencyFormat = exports.makeSessionContextExperiment = exports.makeSessionAuthorizationForm = exports.makeSessionAuthorization = exports.makeSession = exports.makeServiceUnknown = exports.makeServiceSummary = exports.makeServiceReference = exports.makeServiceFee = exports.makeServiceDescription = exports.makeSelectIssuerOptionActionDetails = exports.makeSecurityServiceFee = exports.makeSecurityRatecardFee = exports.makeSdkAdyenV3AuthenticationToken = exports.makeScheduledPickup = exports.makeScheduledExportForm = exports.makeScheduledExport = exports.makeScheduleExceptionStatus = exports.makeSchedule = exports.makeRuleUpserted = exports.makeRuleDeleted = exports.makeRouteAudit = exports.makeRoundingType = exports.makeRoundingMethod = exports.makeRounding = exports.makeRomanizationForm = exports.makeRomanization = exports.makeRole = exports.makeReviewStatus = exports.makeReversalVersion = exports.makeReversalUpserted = exports.makeReversalStatus = exports.makeReversalPutForm = exports.makeReversalForm = exports.makeReversalErrorCode = exports.makeReversalError = exports.makeReversalDeleted = exports.makeReversal = exports.makeReturnVersion = exports.makeReturnUpsertedV2 = exports.makeReturnUpserted = exports.makeReturnTrackingStatus = exports.makeReturnStatus = void 0;
|
|
35
|
+
exports.makeShippingLaneVersion = exports.makeShippingLaneUpserted = exports.makeShippingLaneSummary = exports.makeShippingLaneForm = exports.makeShippingLaneDeleted = exports.makeShippingLaneDefaultTierForm = exports.makeShippingLaneDefaultTier = exports.makeShippingLane = exports.makeShippingLabelVersion = exports.makeShippingLabelSummary = exports.makeShippingLabelRatecardSummary = exports.makeShippingLabelPackage = exports.makeShippingLabelLaneSummary = exports.makeShippingLabelHopSummary = exports.makeShippingLabelHopCostItemizedEstimate = exports.makeShippingLabelForm = exports.makeShippingLabelDocument = exports.makeShippingLabel = exports.makeShippingConfigurationVersion = exports.makeShippingConfigurationUpserted = exports.makeShippingConfigurationType = exports.makeShippingConfigurationSummary = exports.makeShippingConfigurationReference = exports.makeShippingConfigurationItemShippingPricingUpserted = exports.makeShippingConfigurationItemShippingPricingDeleted = exports.makeShippingConfigurationItemShippingPricing = exports.makeShippingConfigurationItemAvailabilityUpserted = exports.makeShippingConfigurationItemAvailabilityDeleted = exports.makeShippingConfigurationItemAvailability = exports.makeShippingConfigurationForm = exports.makeShippingConfigurationDeleted = exports.makeShippingConfigurationCopyForm = exports.makeShippingConfigurationCopy = exports.makeShippingConfiguration = exports.makeShippingAddress = exports.makeShipping = exports.makeShipmentWindow = exports.makeShipmentRecipient = exports.makeShipmentIntegrationType = exports.makeSetupInProgress = exports.makeSetupCompleted = exports.makeSetupBlocked = exports.makeSettlementPayout = exports.makeSettlementNoPayout = exports.makeSettlement = exports.makeSessionVisitor = exports.makeSessionVisit = exports.makeSessionReference = exports.makeSessionPutForm = exports.makeSessionGeo = void 0;
|
|
36
|
+
exports.makeSimplePermissionCheck = exports.makeShopifyVariantInventoryMetafield = exports.makeShopifyVariantFlowMetafield = exports.makeShopifySyncStatus = exports.makeShopifySyncCheck = exports.makeShopifyPrivateAppForm = exports.makeShopifyPrivateApp = exports.makeShopifyPrice = exports.makeShopifyOrderRomanizationMetafield = exports.makeShopifyOrderPriceAttributesMetafield = exports.makeShopifyOrderDeliveryMetafieldItem = exports.makeShopifyOrderDeliveryMetafield = exports.makeShopifyOrderAttributesForm = exports.makeShopifyMerchantApplicationsSummary = exports.makeShopifyMerchantApplicationPutForm = exports.makeShopifyMerchantApplicationForm = exports.makeShopifyMerchantApplication = exports.makeShopifyLocationReference = exports.makeShopifyLocationFlowCenterMappingForm = exports.makeShopifyLocationFlowCenterMapping = exports.makeShopifyLocalizedVariantPrices = exports.makeShopifyLocalizedVariant = exports.makeShopifyLocalizedOrder = exports.makeShopifyLocalizationSettingUpserted = exports.makeShopifyLocalizationSettingForm = exports.makeShopifyLocalizationSettingDeleted = exports.makeShopifyLocalizationSetting = exports.makeShopifyLocalizationMethod = exports.makeShopifyLocalPriceMetadata = exports.makeShopifyLocalCartMetadata = exports.makeShopifyLocalCartItemMetadata = exports.makeShopifyLine = exports.makeShopifyItemEventData = exports.makeShopifyItemEventBucket = exports.makeShopifyGrant = exports.makeShopifyEventBucket = exports.makeShopifyCustomerMetafieldValue = exports.makeShopifyCartItem = exports.makeShopifyCartConversionShopifyCart = exports.makeShopifyCartConversionFlowOrder = exports.makeShopifyCartConversion = exports.makeShopifyCartChangeForm = exports.makeShopifyCartAddSingleForm = exports.makeShopifyCartAddMultipleForm = exports.makeShopifyCartAddForm = exports.makeShopifyCart = exports.makeShop = exports.makeShippingNotificationVersion = exports.makeShippingNotificationForm = exports.makeShippingNotification = void 0;
|
|
37
|
+
exports.makeSyncStreamType = exports.makeSyncStreamSettingsForm = exports.makeSyncStreamSettings = exports.makeSyncStreamReference = exports.makeSyncStreamForm = exports.makeSyncStream = exports.makeSyncRecordForm = exports.makeSyncRecordFailureReason = exports.makeSyncRecordFailureForm = exports.makeSyncRecordFailure = exports.makeSyncRecord = exports.makeSyncPendingRecord = exports.makeSyncDuration = exports.makeSurchargeSettingDisplay = exports.makeSurchargeSetting = exports.makeSurchargeResponsiblePartyDisplay = exports.makeSurchargeResponsibleParty = exports.makeSummaryShippingNotificationForm = exports.makeSummaryShippingLabelForm = exports.makeSuggestion = exports.makeSubcatalogVersion = exports.makeSubcatalogUpserted = exports.makeSubcatalogStatistics = exports.makeSubcatalogSettingsForm = exports.makeSubcatalogSettings = exports.makeSubcatalogReference = exports.makeSubcatalogItemVersion = exports.makeSubcatalogItemUpserted = exports.makeSubcatalogItemStatus = exports.makeSubcatalogItemDeleted = exports.makeSubcatalogItem = exports.makeSubcatalogForm = exports.makeSubcatalogDeleted = exports.makeSubcatalog = exports.makeStripeAuthorizationResultActionDetails = exports.makeStripeAuthenticationDataForm = exports.makeStripeAuthenticationData = exports.makeStreetAddress = exports.makeStrategy = exports.makeStoredMethodUsageStep = exports.makeStatementUpserted = exports.makeStatementDeleted = exports.makeStatementAttachmentType = exports.makeStatement = exports.makeSortDirection = exports.makeSolidusVariantExportType = exports.makeSolidusProductExportType = exports.makeSnapshotUpserted = exports.makeSnapshotDeleted = exports.makeSinglePackageShippingNotificationForm = void 0;
|
|
38
|
+
exports.makeTierStrategy = exports.makeTierSettings = exports.makeTierRuleVersion = exports.makeTierRuleOutcomeForm = exports.makeTierRuleOutcome = exports.makeTierRuleForm = exports.makeTierRule = exports.makeTierReference = exports.makeTierForm = exports.makeTierEstimateType = exports.makeTierEstimate = exports.makeTierDisplayForm = exports.makeTierDisplay = exports.makeTierDeletedV2 = exports.makeTierAvailability = exports.makeTier = exports.makeThreedsTwoMethod = exports.makeThreedsTwoChallengeViewport = exports.makeThreedsTwoChallengeRequest = exports.makeThreedsIdentifyActionDetails = exports.makeThreedsIdentifyAction = exports.makeThreedsChallengeActionDetails = exports.makeThreedsChallengeAction = exports.makeThreeDSecureCode = exports.makeThreeDSecure = exports.makeThirdPartyLogisticsPartner = exports.makeTestUpserted = exports.makeTaxabilityValue = exports.makeTaxabilityType = exports.makeTaxVerificationResult = exports.makeTaxSetting = exports.makeTaxReportType = exports.makeTaxReport = exports.makeTaxRegistrationForm = exports.makeTaxRegistration = exports.makeTaxDutyQuoteValues = exports.makeTaxDutyQuoteSimpleShippingForm = exports.makeTaxDutyQuoteSimpleShipping = exports.makeTaxDutyQuoteSimpleLevyValue = exports.makeTaxDutyQuoteLineItemForm = exports.makeTaxDutyQuoteLineItem = exports.makeTaxDutyQuoteLevyValue = exports.makeTaxDutyQuoteForm = exports.makeTaxDutyQuoteFeeValue = exports.makeTaxDutyQuote = exports.makeTaxDutyCalculatorValidationErrorCode = exports.makeTaxDutyCalculatorValidationError = exports.makeTaxApplicability = exports.makeTax = exports.makeSyncUnitOfTime = void 0;
|
|
39
|
+
exports.makeTransactionMetadataTrueup = exports.makeTransactionMetadataShippingLabelCarrier = exports.makeTransactionMetadataShippingLabel = exports.makeTransactionMetadataPaymentTransaction = exports.makeTransactionMetadataOutboundTransaction = exports.makeTransactionMetadataOriginalTransaction = exports.makeTransactionMetadataManual = exports.makeTransactionMetadataFailedPayoutReference = exports.makeTransactionMetadataFailedPayout = exports.makeTransactionMetadataChannelOrganizationTransaction = exports.makeTransactionMetadataChannelCardMetadataIssuerSummary = exports.makeTransactionMetadataChannelCardMetadata = exports.makeTransactionMetadataChannel = exports.makeTransactionMetadataCarrierCharge = exports.makeTransactionMetadata = exports.makeTransactionDetailsCard = exports.makeTransactionDetails = exports.makeTransaction = exports.makeTradeAgreementStatus = exports.makeTradeAgreementName = exports.makeTradeAgreementDuty = exports.makeTradeAgreementCertifier = exports.makeTradeAgreement = exports.makeTrackingVersion = exports.makeTrackingSummary = exports.makeTrackingStatus = exports.makeTrackingNumberType = exports.makeTrackingLabelVersion = exports.makeTrackingLabelSummary = exports.makeTrackingLabelForm = exports.makeTrackingLabelEventUpserted = exports.makeTrackingLabel = exports.makeTrackingForm = exports.makeTrackingEventVersion = exports.makeTrackingEventSummary = exports.makeTrackingEventForm = exports.makeTrackingEvent = exports.makeTracking = exports.makeTokenValidationForm = exports.makeTokenValidation = exports.makeTokenType = exports.makeTokenReference = exports.makeTokenRbacAuthenticationForm = exports.makeTokenPartnerReference = exports.makeTokenAuthenticationForm = exports.makeToken = exports.makeTimezone = exports.makeTierVersion = exports.makeTierUpsertedV2 = exports.makeTierSummary = void 0;
|
|
40
|
+
exports.makeVisibility = exports.makeVirtualCardVersion = exports.makeVirtualCardRefundVersion = exports.makeVirtualCardRefundUpserted = exports.makeVirtualCardRefundDeleted = exports.makeVirtualCardRefund = exports.makeVirtualCardReference = exports.makeVirtualCardCaptureVersion = exports.makeVirtualCardCaptureUpserted = exports.makeVirtualCardCaptureDeleted = exports.makeVirtualCardCapture = exports.makeVirtualCard = exports.makeValueThresholdExceededDetails = exports.makeValueAddedService = exports.makeUserVersion = exports.makeUserStatus = exports.makeUserReference = exports.makeUserPutForm = exports.makeUserForm = exports.makeUser = exports.makeUpload = exports.makeUpdateType = exports.makeUpdatePolicy = exports.makeUnitOfWeight = exports.makeUnitOfVolume = exports.makeUnitOfTime = exports.makeUnitOfMeasurement = exports.makeUnitOfLength = exports.makeUnharmonizedItemExportType = exports.makeUltimateBeneficiaryOwner = exports.makeTrueupSurchargeType = exports.makeTrueupSource = exports.makeTrueupLabelWeights = exports.makeTrueupLabelUnits = exports.makeTrueupLabelSurcharge = exports.makeTrueupLabelFuel = exports.makeTrueupLabelBaseWeight = exports.makeTrueupLabelBaseV2 = exports.makeTrueupLabelBase = exports.makeTransitWindow = exports.makeTransitEstimate = exports.makeTransactionUpserted = exports.makeTransactionSource = exports.makeTransactionReference = exports.makeTransactionNetworkDetailsCard = exports.makeTransactionMetadataTrueupSurchargeData = exports.makeTransactionMetadataTrueupSurcharge = exports.makeTransactionMetadataTrueupData = exports.makeTransactionMetadataTrueupBaseData = exports.makeTransactionMetadataTrueupBase = void 0;
|
|
41
|
+
exports.makeZone = exports.makeZeroLevyReasonCode = exports.makeZeroAmountIndicator = exports.makeWithholdingDeductionType = exports.makeWithholdingDeduction = exports.makeWebhookStatus = exports.makeWebhookSettings = exports.makeWebhookResponse = exports.makeWebhookRequestReference = exports.makeWebhookRequest = exports.makeWebhookReference = exports.makeWebhookForm = exports.makeWebhookDelivery = exports.makeWebhook = void 0;
|
|
42
42
|
var faker_1 = __importDefault(require("@faker-js/faker"));
|
|
43
43
|
var arrayOf = function (f) {
|
|
44
44
|
var length = 3;
|
|
@@ -322,6 +322,7 @@ var factories = {
|
|
|
322
322
|
'io.flow.shopify.external.v0.enums.format': function () { return faker_1.default.helpers.arrayElement(['json', 'xml']); },
|
|
323
323
|
'io.flow.shopify.external.v0.enums.fulfillment_service': function () { return faker_1.default.helpers.arrayElement(['manual', 'gift_card']); },
|
|
324
324
|
'io.flow.shopify.external.v0.enums.fulfillment_status_type': function () { return faker_1.default.helpers.arrayElement(['fulfilled', 'null', 'partial']); },
|
|
325
|
+
'io.flow.shopify.external.v0.enums.graphql_weight_unit': function () { return faker_1.default.helpers.arrayElement(['GRAMS', 'KILOGRAMS', 'OUNCES', 'POUNDS']); },
|
|
325
326
|
'io.flow.shopify.external.v0.enums.inventory_behaviour': function () { return faker_1.default.helpers.arrayElement(['bypass', 'decrement_ignoring_policy', 'decrement_obeying_policy']); },
|
|
326
327
|
'io.flow.shopify.external.v0.enums.inventory_management': function () { return faker_1.default.helpers.arrayElement(['blank', 'shopify']); },
|
|
327
328
|
'io.flow.shopify.external.v0.enums.inventory_policy': function () { return faker_1.default.helpers.arrayElement(['deny', 'continue']); },
|
|
@@ -455,6 +456,66 @@ var factories = {
|
|
|
455
456
|
'io.flow.shopify.external.v0.models.count': function () { return ({
|
|
456
457
|
count: factories.long(),
|
|
457
458
|
}); },
|
|
459
|
+
'io.flow.shopify.external.v0.models.graphql_inventory_item': function () { return ({
|
|
460
|
+
id: factories.string(),
|
|
461
|
+
tracked: factories.boolean(),
|
|
462
|
+
requiresShipping: factories.boolean(),
|
|
463
|
+
measurement: factories['io.flow.shopify.external.v0.models.graphql_measurement'](),
|
|
464
|
+
}); },
|
|
465
|
+
'io.flow.shopify.external.v0.models.graphql_measurement': function () { return ({
|
|
466
|
+
weight: factories['io.flow.shopify.external.v0.models.graphql_weight'](),
|
|
467
|
+
}); },
|
|
468
|
+
'io.flow.shopify.external.v0.models.graphql_option': function () { return ({
|
|
469
|
+
id: factories.string(),
|
|
470
|
+
values: arrayOf(function () { return factories.string(); }),
|
|
471
|
+
name: factories.string(),
|
|
472
|
+
position: factories.integer(),
|
|
473
|
+
}); },
|
|
474
|
+
'io.flow.shopify.external.v0.models.graphql_product': function () { return ({
|
|
475
|
+
id: factories.string(),
|
|
476
|
+
legacyResourceId: factories.string(),
|
|
477
|
+
handle: factories.string(),
|
|
478
|
+
variants: arrayOf(function () { return factories['io.flow.shopify.external.v0.models.graphql_product_variant'](); }),
|
|
479
|
+
images: arrayOf(function () { return factories['io.flow.shopify.external.v0.models.graphql_product_image'](); }),
|
|
480
|
+
title: factories.string(),
|
|
481
|
+
vendor: factories.string(),
|
|
482
|
+
descriptionHtml: factories.string(),
|
|
483
|
+
productType: factories.string(),
|
|
484
|
+
status: factories.string(),
|
|
485
|
+
options: arrayOf(function () { return factories['io.flow.shopify.external.v0.models.graphql_option'](); }),
|
|
486
|
+
tags: arrayOf(function () { return factories.string(); }),
|
|
487
|
+
templateSuffix: factories.string(),
|
|
488
|
+
publishedAt: factories.date_time_iso_8601(),
|
|
489
|
+
createdAt: factories.date_time_iso_8601(),
|
|
490
|
+
updatedAt: factories.date_time_iso_8601(),
|
|
491
|
+
hasVariantsThatRequiresComponents: factories.boolean(),
|
|
492
|
+
}); },
|
|
493
|
+
'io.flow.shopify.external.v0.models.graphql_product_image': function () { return ({
|
|
494
|
+
id: factories.string(),
|
|
495
|
+
url: factories.string(),
|
|
496
|
+
altText: factories.string(),
|
|
497
|
+
}); },
|
|
498
|
+
'io.flow.shopify.external.v0.models.graphql_product_variant': function () { return ({
|
|
499
|
+
id: factories.string(),
|
|
500
|
+
legacyResourceId: factories.string(),
|
|
501
|
+
sku: factories.string(),
|
|
502
|
+
price: factories.string(),
|
|
503
|
+
title: factories.string(),
|
|
504
|
+
taxable: factories.boolean(),
|
|
505
|
+
compareAtPrice: factories.string(),
|
|
506
|
+
barcode: factories.string(),
|
|
507
|
+
inventoryPolicy: factories['io.flow.shopify.external.v0.enums.inventory_policy'](),
|
|
508
|
+
inventoryQuantity: factories.long(),
|
|
509
|
+
image: factories['io.flow.shopify.external.v0.models.graphql_variant_image'](),
|
|
510
|
+
inventoryItem: factories['io.flow.shopify.external.v0.models.graphql_inventory_item'](),
|
|
511
|
+
}); },
|
|
512
|
+
'io.flow.shopify.external.v0.models.graphql_variant_image': function () { return ({
|
|
513
|
+
id: factories.string(),
|
|
514
|
+
}); },
|
|
515
|
+
'io.flow.shopify.external.v0.models.graphql_weight': function () { return ({
|
|
516
|
+
unit: factories['io.flow.shopify.external.v0.enums.graphql_weight_unit'](),
|
|
517
|
+
value: factories.double(),
|
|
518
|
+
}); },
|
|
458
519
|
'io.flow.shopify.external.v0.models.metafield': function () { return ({
|
|
459
520
|
id: factories.long(),
|
|
460
521
|
key: factories.string(),
|
|
@@ -702,6 +763,10 @@ var factories = {
|
|
|
702
763
|
session_hash: factories.string(),
|
|
703
764
|
user_agent: factories.string(),
|
|
704
765
|
}); },
|
|
766
|
+
'io.flow.shopify.external.v0.models.shopify_country_harmonized_system_code': function () { return ({
|
|
767
|
+
country_code: factories.string(),
|
|
768
|
+
harmonized_system_code: factories.string(),
|
|
769
|
+
}); },
|
|
705
770
|
'io.flow.shopify.external.v0.models.shopify_customer': function () { return ({
|
|
706
771
|
id: factories.long(),
|
|
707
772
|
addresses: arrayOf(function () { return factories['io.flow.shopify.external.v0.models.shopify_customer_address'](); }),
|
|
@@ -902,6 +967,13 @@ var factories = {
|
|
|
902
967
|
'io.flow.shopify.external.v0.models.shopify_inventory_item_delete': function () { return ({
|
|
903
968
|
id: factories.long(),
|
|
904
969
|
}); },
|
|
970
|
+
'io.flow.shopify.external.v0.models.shopify_inventory_item_summary': function () { return ({
|
|
971
|
+
country_code_of_origin: factories.string(),
|
|
972
|
+
country_harmonized_system_codes: arrayOf(function () { return factories['io.flow.shopify.external.v0.models.shopify_country_harmonized_system_code'](); }),
|
|
973
|
+
harmonized_system_code: factories.string(),
|
|
974
|
+
updated_at: factories.date_time_iso_8601(),
|
|
975
|
+
requires_shipping: factories.boolean(),
|
|
976
|
+
}); },
|
|
905
977
|
'io.flow.shopify.external.v0.models.shopify_inventory_level': function () { return ({
|
|
906
978
|
inventory_item_id: factories.long(),
|
|
907
979
|
location_id: factories.long(),
|
|
@@ -1212,6 +1284,48 @@ var factories = {
|
|
|
1212
1284
|
}); },
|
|
1213
1285
|
'io.flow.stripe.v0.enums.account_type': function () { return faker_1.default.helpers.arrayElement(['platform', 'custom', 'standard', 'express']); },
|
|
1214
1286
|
'io.flow.stripe.v0.enums.apple_pay_type': function () { return faker_1.default.helpers.arrayElement(['apple_pay', 'apple_pay_later']); },
|
|
1287
|
+
'io.flow.stripe.v0.enums.balance_transaction_type': function () { return faker_1.default.helpers.arrayElement([
|
|
1288
|
+
'adjustment',
|
|
1289
|
+
'advance',
|
|
1290
|
+
'advance_funding',
|
|
1291
|
+
'anticipation_repayment',
|
|
1292
|
+
'application_fee',
|
|
1293
|
+
'application_fee_refund',
|
|
1294
|
+
'charge',
|
|
1295
|
+
'climate_order_purchase',
|
|
1296
|
+
'climate_order_refund',
|
|
1297
|
+
'connect_collection_transfer',
|
|
1298
|
+
'contribution',
|
|
1299
|
+
'issuing_authorization_hold',
|
|
1300
|
+
'issuing_authorization_release',
|
|
1301
|
+
'issuing_dispute',
|
|
1302
|
+
'issuing_transaction',
|
|
1303
|
+
'obligation_outbound',
|
|
1304
|
+
'obligation_reversal_inbound',
|
|
1305
|
+
'payment',
|
|
1306
|
+
'payment_failure_refund',
|
|
1307
|
+
'payment_network_reserve_hold',
|
|
1308
|
+
'payment_network_reserve_release',
|
|
1309
|
+
'payment_refund',
|
|
1310
|
+
'payment_reversal',
|
|
1311
|
+
'payment_unreconciled',
|
|
1312
|
+
'payout',
|
|
1313
|
+
'payout_cancel',
|
|
1314
|
+
'payout_failure',
|
|
1315
|
+
'refund',
|
|
1316
|
+
'refund_failure',
|
|
1317
|
+
'reserve_transaction',
|
|
1318
|
+
'reserved_funds',
|
|
1319
|
+
'stripe_fee',
|
|
1320
|
+
'stripe_fx_fee',
|
|
1321
|
+
'tax_fee',
|
|
1322
|
+
'topup',
|
|
1323
|
+
'topup_reversal',
|
|
1324
|
+
'transfer',
|
|
1325
|
+
'transfer_cancel',
|
|
1326
|
+
'transfer_failure',
|
|
1327
|
+
'transfer_refund',
|
|
1328
|
+
]); },
|
|
1215
1329
|
'io.flow.stripe.v0.enums.bank_ideal': function () { return faker_1.default.helpers.arrayElement([
|
|
1216
1330
|
'abn_amro',
|
|
1217
1331
|
'asn_bank',
|
|
@@ -1809,19 +1923,73 @@ var factories = {
|
|
|
1809
1923
|
amount: factories.integer(),
|
|
1810
1924
|
charge: factories.string(),
|
|
1811
1925
|
currency: factories.string(),
|
|
1812
|
-
evidence: factories.
|
|
1926
|
+
evidence: factories['io.flow.stripe.v0.models.dispute_evidence'](),
|
|
1813
1927
|
metadata: objectOf(function () { return factories.string(); }),
|
|
1814
1928
|
payment_intent: factories.string(),
|
|
1815
1929
|
reason: factories['io.flow.stripe.v0.enums.dispute_reason'](),
|
|
1816
1930
|
status: factories['io.flow.stripe.v0.enums.dispute_status'](),
|
|
1817
1931
|
object: factories.string(),
|
|
1818
|
-
balance_transactions: arrayOf(function () { return factories.
|
|
1932
|
+
balance_transactions: arrayOf(function () { return factories['io.flow.stripe.v0.models.dispute_balance_transaction'](); }),
|
|
1819
1933
|
created: factories.long(),
|
|
1820
1934
|
evidence_details: factories['io.flow.stripe.v0.models.dispute_evidence_details'](),
|
|
1821
1935
|
is_charge_refundable: factories.boolean(),
|
|
1822
1936
|
livemode: factories.boolean(),
|
|
1823
1937
|
payment_method_details: factories['io.flow.stripe.v0.models.dispute_payment_method_details'](),
|
|
1824
1938
|
}); },
|
|
1939
|
+
'io.flow.stripe.v0.models.dispute_balance_transaction': function () { return ({
|
|
1940
|
+
payment_intent: factories.string(),
|
|
1941
|
+
id: factories.string(),
|
|
1942
|
+
object: factories.string(),
|
|
1943
|
+
amount: factories.integer(),
|
|
1944
|
+
available_on: factories.long(),
|
|
1945
|
+
created: factories.long(),
|
|
1946
|
+
currency: factories.string(),
|
|
1947
|
+
description: factories.string(),
|
|
1948
|
+
exchange_rate: factories.decimal(),
|
|
1949
|
+
fee: factories.integer(),
|
|
1950
|
+
fee_details: arrayOf(function () { return factories['io.flow.stripe.v0.models.dispute_balance_transaction_fee_details'](); }),
|
|
1951
|
+
net: factories.integer(),
|
|
1952
|
+
reporting_category: factories.string(),
|
|
1953
|
+
source: factories.string(),
|
|
1954
|
+
status: factories.string(),
|
|
1955
|
+
type: factories['io.flow.stripe.v0.enums.balance_transaction_type'](),
|
|
1956
|
+
}); },
|
|
1957
|
+
'io.flow.stripe.v0.models.dispute_balance_transaction_fee_details': function () { return ({
|
|
1958
|
+
amount: factories.integer(),
|
|
1959
|
+
application: factories.string(),
|
|
1960
|
+
currency: factories.string(),
|
|
1961
|
+
description: factories.string(),
|
|
1962
|
+
type: factories.string(),
|
|
1963
|
+
}); },
|
|
1964
|
+
'io.flow.stripe.v0.models.dispute_evidence': function () { return ({
|
|
1965
|
+
access_activity_log: factories.string(),
|
|
1966
|
+
billing_address: factories.string(),
|
|
1967
|
+
cancellation_policy: factories.string(),
|
|
1968
|
+
cancellation_policy_disclosure: factories.string(),
|
|
1969
|
+
cancellation_rebuttal: factories.string(),
|
|
1970
|
+
customer_communication: factories.string(),
|
|
1971
|
+
customer_email_address: factories.string(),
|
|
1972
|
+
customer_name: factories.string(),
|
|
1973
|
+
'evidence.customer_purchase_ip': factories.string(),
|
|
1974
|
+
customer_signature: factories.string(),
|
|
1975
|
+
duplicate_charge_documentation: factories.string(),
|
|
1976
|
+
duplicate_charge_explanation: factories.string(),
|
|
1977
|
+
duplicate_charge_id: factories.string(),
|
|
1978
|
+
product_description: factories.string(),
|
|
1979
|
+
receipt: factories.string(),
|
|
1980
|
+
refund_policy: factories.string(),
|
|
1981
|
+
refund_policy_disclosure: factories.string(),
|
|
1982
|
+
refund_refusal_explanation: factories.string(),
|
|
1983
|
+
service_date: factories.string(),
|
|
1984
|
+
service_documentation: factories.string(),
|
|
1985
|
+
shipping_address: factories.string(),
|
|
1986
|
+
shipping_carrier: factories.string(),
|
|
1987
|
+
shipping_date: factories.string(),
|
|
1988
|
+
shipping_documentation: factories.string(),
|
|
1989
|
+
shipping_tracking_number: factories.string(),
|
|
1990
|
+
uncategorized_file: factories.string(),
|
|
1991
|
+
uncategorized_text: factories.string(),
|
|
1992
|
+
}); },
|
|
1825
1993
|
'io.flow.stripe.v0.models.dispute_evidence_details': function () { return ({
|
|
1826
1994
|
due_by: factories.long(),
|
|
1827
1995
|
has_evidence: factories.boolean(),
|
|
@@ -3295,6 +3463,8 @@ var factories = {
|
|
|
3295
3463
|
'sofort',
|
|
3296
3464
|
'afterpay',
|
|
3297
3465
|
'bancontact',
|
|
3466
|
+
'twint',
|
|
3467
|
+
'przelewy24',
|
|
3298
3468
|
]); },
|
|
3299
3469
|
'io.flow.v0.enums.payout_attachment_type': function () { return faker_1.default.helpers.arrayElement(['transactions']); },
|
|
3300
3470
|
'io.flow.v0.enums.payout_status_failure_code': function () { return faker_1.default.helpers.arrayElement(['invalid_account_number', 'account_closed', 'could_not_process']); },
|
|
@@ -9232,10 +9402,18 @@ var factories = {
|
|
|
9232
9402
|
type: 'init_paypal',
|
|
9233
9403
|
reference: factories.string(),
|
|
9234
9404
|
}); },
|
|
9405
|
+
'io.flow.v0.models.payment_method_data_init_przelewy24': function () { return ({
|
|
9406
|
+
type: 'init_przelewy24',
|
|
9407
|
+
reference: factories.string(),
|
|
9408
|
+
}); },
|
|
9235
9409
|
'io.flow.v0.models.payment_method_data_init_sofort': function () { return ({
|
|
9236
9410
|
type: 'init_sofort',
|
|
9237
9411
|
reference: factories.string(),
|
|
9238
9412
|
}); },
|
|
9413
|
+
'io.flow.v0.models.payment_method_data_init_twint': function () { return ({
|
|
9414
|
+
type: 'init_twint',
|
|
9415
|
+
reference: factories.string(),
|
|
9416
|
+
}); },
|
|
9239
9417
|
'io.flow.v0.models.payment_method_data_option_logo_svg': function () { return ({
|
|
9240
9418
|
type: 'svg',
|
|
9241
9419
|
url: factories.string(),
|
|
@@ -9328,10 +9506,18 @@ var factories = {
|
|
|
9328
9506
|
type: 'paypal',
|
|
9329
9507
|
merchant_of_record: factories['io.flow.v0.enums.merchant_of_record'](),
|
|
9330
9508
|
}); },
|
|
9509
|
+
'io.flow.v0.models.payment_method_summary_przelewy24': function () { return ({
|
|
9510
|
+
type: 'przelewy24',
|
|
9511
|
+
merchant_of_record: factories['io.flow.v0.enums.merchant_of_record'](),
|
|
9512
|
+
}); },
|
|
9331
9513
|
'io.flow.v0.models.payment_method_summary_sofort': function () { return ({
|
|
9332
9514
|
type: 'sofort',
|
|
9333
9515
|
merchant_of_record: factories['io.flow.v0.enums.merchant_of_record'](),
|
|
9334
9516
|
}); },
|
|
9517
|
+
'io.flow.v0.models.payment_method_summary_twint': function () { return ({
|
|
9518
|
+
type: 'twint',
|
|
9519
|
+
merchant_of_record: factories['io.flow.v0.enums.merchant_of_record'](),
|
|
9520
|
+
}); },
|
|
9335
9521
|
'io.flow.v0.models.payment_order_details_line_item': function () { return ({
|
|
9336
9522
|
id: factories.string(),
|
|
9337
9523
|
description: factories.string(),
|
|
@@ -13170,6 +13356,8 @@ var factories = {
|
|
|
13170
13356
|
function () { return factories['io.flow.v0.models.payment_method_data_init_paypal'](); },
|
|
13171
13357
|
function () { return factories['io.flow.v0.models.payment_method_data_init_ideal'](); },
|
|
13172
13358
|
function () { return factories['io.flow.v0.models.payment_method_data_init_sofort'](); },
|
|
13359
|
+
function () { return factories['io.flow.v0.models.payment_method_data_init_twint'](); },
|
|
13360
|
+
function () { return factories['io.flow.v0.models.payment_method_data_init_przelewy24'](); },
|
|
13173
13361
|
function () { return factories['io.flow.v0.models.payment_method_data_init_bancontact'](); },
|
|
13174
13362
|
function () { return factories['io.flow.v0.models.payment_method_data_validate_applepay'](); },
|
|
13175
13363
|
function () { return factories['io.flow.v0.models.payment_method_data_authorize_card'](); },
|
|
@@ -13216,6 +13404,8 @@ var factories = {
|
|
|
13216
13404
|
function () { return factories['io.flow.v0.models.payment_method_summary_googlepay'](); },
|
|
13217
13405
|
function () { return factories['io.flow.v0.models.payment_method_summary_paypal'](); },
|
|
13218
13406
|
function () { return factories['io.flow.v0.models.payment_method_summary_ideal'](); },
|
|
13407
|
+
function () { return factories['io.flow.v0.models.payment_method_summary_twint'](); },
|
|
13408
|
+
function () { return factories['io.flow.v0.models.payment_method_summary_przelewy24'](); },
|
|
13219
13409
|
function () { return factories['io.flow.v0.models.payment_method_summary_sofort'](); },
|
|
13220
13410
|
function () { return factories['io.flow.v0.models.payment_method_summary_bancontact'](); },
|
|
13221
13411
|
]);
|
|
@@ -15744,8 +15934,12 @@ var makePaymentMethodDataInitKlarna = function () { return factories['io.flow.v0
|
|
|
15744
15934
|
exports.makePaymentMethodDataInitKlarna = makePaymentMethodDataInitKlarna;
|
|
15745
15935
|
var makePaymentMethodDataInitPaypal = function () { return factories['io.flow.v0.models.payment_method_data_init_paypal'](); };
|
|
15746
15936
|
exports.makePaymentMethodDataInitPaypal = makePaymentMethodDataInitPaypal;
|
|
15937
|
+
var makePaymentMethodDataInitPrzelewy24 = function () { return factories['io.flow.v0.models.payment_method_data_init_przelewy24'](); };
|
|
15938
|
+
exports.makePaymentMethodDataInitPrzelewy24 = makePaymentMethodDataInitPrzelewy24;
|
|
15747
15939
|
var makePaymentMethodDataInitSofort = function () { return factories['io.flow.v0.models.payment_method_data_init_sofort'](); };
|
|
15748
15940
|
exports.makePaymentMethodDataInitSofort = makePaymentMethodDataInitSofort;
|
|
15941
|
+
var makePaymentMethodDataInitTwint = function () { return factories['io.flow.v0.models.payment_method_data_init_twint'](); };
|
|
15942
|
+
exports.makePaymentMethodDataInitTwint = makePaymentMethodDataInitTwint;
|
|
15749
15943
|
var makePaymentMethodDataOptionLogo = function () { return factories['io.flow.v0.unions.payment_method_data_option_logo'](); };
|
|
15750
15944
|
exports.makePaymentMethodDataOptionLogo = makePaymentMethodDataOptionLogo;
|
|
15751
15945
|
var makePaymentMethodDataOptionLogoSvg = function () { return factories['io.flow.v0.models.payment_method_data_option_logo_svg'](); };
|
|
@@ -15794,8 +15988,12 @@ var makePaymentMethodSummaryKlarna = function () { return factories['io.flow.v0.
|
|
|
15794
15988
|
exports.makePaymentMethodSummaryKlarna = makePaymentMethodSummaryKlarna;
|
|
15795
15989
|
var makePaymentMethodSummaryPaypal = function () { return factories['io.flow.v0.models.payment_method_summary_paypal'](); };
|
|
15796
15990
|
exports.makePaymentMethodSummaryPaypal = makePaymentMethodSummaryPaypal;
|
|
15991
|
+
var makePaymentMethodSummaryPrzelewy24 = function () { return factories['io.flow.v0.models.payment_method_summary_przelewy24'](); };
|
|
15992
|
+
exports.makePaymentMethodSummaryPrzelewy24 = makePaymentMethodSummaryPrzelewy24;
|
|
15797
15993
|
var makePaymentMethodSummarySofort = function () { return factories['io.flow.v0.models.payment_method_summary_sofort'](); };
|
|
15798
15994
|
exports.makePaymentMethodSummarySofort = makePaymentMethodSummarySofort;
|
|
15995
|
+
var makePaymentMethodSummaryTwint = function () { return factories['io.flow.v0.models.payment_method_summary_twint'](); };
|
|
15996
|
+
exports.makePaymentMethodSummaryTwint = makePaymentMethodSummaryTwint;
|
|
15799
15997
|
var makePaymentMethodTag = function () { return factories['io.flow.v0.unions.payment_method_tag'](); };
|
|
15800
15998
|
exports.makePaymentMethodTag = makePaymentMethodTag;
|
|
15801
15999
|
var makePaymentMethodType = function () { return factories['io.flow.v0.enums.payment_method_type'](); };
|
package/dist/esm/api.js
CHANGED
|
@@ -281,6 +281,7 @@ var factories = {
|
|
|
281
281
|
'io.flow.shopify.external.v0.enums.format': function () { return faker.helpers.arrayElement(['json', 'xml']); },
|
|
282
282
|
'io.flow.shopify.external.v0.enums.fulfillment_service': function () { return faker.helpers.arrayElement(['manual', 'gift_card']); },
|
|
283
283
|
'io.flow.shopify.external.v0.enums.fulfillment_status_type': function () { return faker.helpers.arrayElement(['fulfilled', 'null', 'partial']); },
|
|
284
|
+
'io.flow.shopify.external.v0.enums.graphql_weight_unit': function () { return faker.helpers.arrayElement(['GRAMS', 'KILOGRAMS', 'OUNCES', 'POUNDS']); },
|
|
284
285
|
'io.flow.shopify.external.v0.enums.inventory_behaviour': function () { return faker.helpers.arrayElement(['bypass', 'decrement_ignoring_policy', 'decrement_obeying_policy']); },
|
|
285
286
|
'io.flow.shopify.external.v0.enums.inventory_management': function () { return faker.helpers.arrayElement(['blank', 'shopify']); },
|
|
286
287
|
'io.flow.shopify.external.v0.enums.inventory_policy': function () { return faker.helpers.arrayElement(['deny', 'continue']); },
|
|
@@ -414,6 +415,66 @@ var factories = {
|
|
|
414
415
|
'io.flow.shopify.external.v0.models.count': function () { return ({
|
|
415
416
|
count: factories.long(),
|
|
416
417
|
}); },
|
|
418
|
+
'io.flow.shopify.external.v0.models.graphql_inventory_item': function () { return ({
|
|
419
|
+
id: factories.string(),
|
|
420
|
+
tracked: factories.boolean(),
|
|
421
|
+
requiresShipping: factories.boolean(),
|
|
422
|
+
measurement: factories['io.flow.shopify.external.v0.models.graphql_measurement'](),
|
|
423
|
+
}); },
|
|
424
|
+
'io.flow.shopify.external.v0.models.graphql_measurement': function () { return ({
|
|
425
|
+
weight: factories['io.flow.shopify.external.v0.models.graphql_weight'](),
|
|
426
|
+
}); },
|
|
427
|
+
'io.flow.shopify.external.v0.models.graphql_option': function () { return ({
|
|
428
|
+
id: factories.string(),
|
|
429
|
+
values: arrayOf(function () { return factories.string(); }),
|
|
430
|
+
name: factories.string(),
|
|
431
|
+
position: factories.integer(),
|
|
432
|
+
}); },
|
|
433
|
+
'io.flow.shopify.external.v0.models.graphql_product': function () { return ({
|
|
434
|
+
id: factories.string(),
|
|
435
|
+
legacyResourceId: factories.string(),
|
|
436
|
+
handle: factories.string(),
|
|
437
|
+
variants: arrayOf(function () { return factories['io.flow.shopify.external.v0.models.graphql_product_variant'](); }),
|
|
438
|
+
images: arrayOf(function () { return factories['io.flow.shopify.external.v0.models.graphql_product_image'](); }),
|
|
439
|
+
title: factories.string(),
|
|
440
|
+
vendor: factories.string(),
|
|
441
|
+
descriptionHtml: factories.string(),
|
|
442
|
+
productType: factories.string(),
|
|
443
|
+
status: factories.string(),
|
|
444
|
+
options: arrayOf(function () { return factories['io.flow.shopify.external.v0.models.graphql_option'](); }),
|
|
445
|
+
tags: arrayOf(function () { return factories.string(); }),
|
|
446
|
+
templateSuffix: factories.string(),
|
|
447
|
+
publishedAt: factories.date_time_iso_8601(),
|
|
448
|
+
createdAt: factories.date_time_iso_8601(),
|
|
449
|
+
updatedAt: factories.date_time_iso_8601(),
|
|
450
|
+
hasVariantsThatRequiresComponents: factories.boolean(),
|
|
451
|
+
}); },
|
|
452
|
+
'io.flow.shopify.external.v0.models.graphql_product_image': function () { return ({
|
|
453
|
+
id: factories.string(),
|
|
454
|
+
url: factories.string(),
|
|
455
|
+
altText: factories.string(),
|
|
456
|
+
}); },
|
|
457
|
+
'io.flow.shopify.external.v0.models.graphql_product_variant': function () { return ({
|
|
458
|
+
id: factories.string(),
|
|
459
|
+
legacyResourceId: factories.string(),
|
|
460
|
+
sku: factories.string(),
|
|
461
|
+
price: factories.string(),
|
|
462
|
+
title: factories.string(),
|
|
463
|
+
taxable: factories.boolean(),
|
|
464
|
+
compareAtPrice: factories.string(),
|
|
465
|
+
barcode: factories.string(),
|
|
466
|
+
inventoryPolicy: factories['io.flow.shopify.external.v0.enums.inventory_policy'](),
|
|
467
|
+
inventoryQuantity: factories.long(),
|
|
468
|
+
image: factories['io.flow.shopify.external.v0.models.graphql_variant_image'](),
|
|
469
|
+
inventoryItem: factories['io.flow.shopify.external.v0.models.graphql_inventory_item'](),
|
|
470
|
+
}); },
|
|
471
|
+
'io.flow.shopify.external.v0.models.graphql_variant_image': function () { return ({
|
|
472
|
+
id: factories.string(),
|
|
473
|
+
}); },
|
|
474
|
+
'io.flow.shopify.external.v0.models.graphql_weight': function () { return ({
|
|
475
|
+
unit: factories['io.flow.shopify.external.v0.enums.graphql_weight_unit'](),
|
|
476
|
+
value: factories.double(),
|
|
477
|
+
}); },
|
|
417
478
|
'io.flow.shopify.external.v0.models.metafield': function () { return ({
|
|
418
479
|
id: factories.long(),
|
|
419
480
|
key: factories.string(),
|
|
@@ -661,6 +722,10 @@ var factories = {
|
|
|
661
722
|
session_hash: factories.string(),
|
|
662
723
|
user_agent: factories.string(),
|
|
663
724
|
}); },
|
|
725
|
+
'io.flow.shopify.external.v0.models.shopify_country_harmonized_system_code': function () { return ({
|
|
726
|
+
country_code: factories.string(),
|
|
727
|
+
harmonized_system_code: factories.string(),
|
|
728
|
+
}); },
|
|
664
729
|
'io.flow.shopify.external.v0.models.shopify_customer': function () { return ({
|
|
665
730
|
id: factories.long(),
|
|
666
731
|
addresses: arrayOf(function () { return factories['io.flow.shopify.external.v0.models.shopify_customer_address'](); }),
|
|
@@ -861,6 +926,13 @@ var factories = {
|
|
|
861
926
|
'io.flow.shopify.external.v0.models.shopify_inventory_item_delete': function () { return ({
|
|
862
927
|
id: factories.long(),
|
|
863
928
|
}); },
|
|
929
|
+
'io.flow.shopify.external.v0.models.shopify_inventory_item_summary': function () { return ({
|
|
930
|
+
country_code_of_origin: factories.string(),
|
|
931
|
+
country_harmonized_system_codes: arrayOf(function () { return factories['io.flow.shopify.external.v0.models.shopify_country_harmonized_system_code'](); }),
|
|
932
|
+
harmonized_system_code: factories.string(),
|
|
933
|
+
updated_at: factories.date_time_iso_8601(),
|
|
934
|
+
requires_shipping: factories.boolean(),
|
|
935
|
+
}); },
|
|
864
936
|
'io.flow.shopify.external.v0.models.shopify_inventory_level': function () { return ({
|
|
865
937
|
inventory_item_id: factories.long(),
|
|
866
938
|
location_id: factories.long(),
|
|
@@ -1171,6 +1243,48 @@ var factories = {
|
|
|
1171
1243
|
}); },
|
|
1172
1244
|
'io.flow.stripe.v0.enums.account_type': function () { return faker.helpers.arrayElement(['platform', 'custom', 'standard', 'express']); },
|
|
1173
1245
|
'io.flow.stripe.v0.enums.apple_pay_type': function () { return faker.helpers.arrayElement(['apple_pay', 'apple_pay_later']); },
|
|
1246
|
+
'io.flow.stripe.v0.enums.balance_transaction_type': function () { return faker.helpers.arrayElement([
|
|
1247
|
+
'adjustment',
|
|
1248
|
+
'advance',
|
|
1249
|
+
'advance_funding',
|
|
1250
|
+
'anticipation_repayment',
|
|
1251
|
+
'application_fee',
|
|
1252
|
+
'application_fee_refund',
|
|
1253
|
+
'charge',
|
|
1254
|
+
'climate_order_purchase',
|
|
1255
|
+
'climate_order_refund',
|
|
1256
|
+
'connect_collection_transfer',
|
|
1257
|
+
'contribution',
|
|
1258
|
+
'issuing_authorization_hold',
|
|
1259
|
+
'issuing_authorization_release',
|
|
1260
|
+
'issuing_dispute',
|
|
1261
|
+
'issuing_transaction',
|
|
1262
|
+
'obligation_outbound',
|
|
1263
|
+
'obligation_reversal_inbound',
|
|
1264
|
+
'payment',
|
|
1265
|
+
'payment_failure_refund',
|
|
1266
|
+
'payment_network_reserve_hold',
|
|
1267
|
+
'payment_network_reserve_release',
|
|
1268
|
+
'payment_refund',
|
|
1269
|
+
'payment_reversal',
|
|
1270
|
+
'payment_unreconciled',
|
|
1271
|
+
'payout',
|
|
1272
|
+
'payout_cancel',
|
|
1273
|
+
'payout_failure',
|
|
1274
|
+
'refund',
|
|
1275
|
+
'refund_failure',
|
|
1276
|
+
'reserve_transaction',
|
|
1277
|
+
'reserved_funds',
|
|
1278
|
+
'stripe_fee',
|
|
1279
|
+
'stripe_fx_fee',
|
|
1280
|
+
'tax_fee',
|
|
1281
|
+
'topup',
|
|
1282
|
+
'topup_reversal',
|
|
1283
|
+
'transfer',
|
|
1284
|
+
'transfer_cancel',
|
|
1285
|
+
'transfer_failure',
|
|
1286
|
+
'transfer_refund',
|
|
1287
|
+
]); },
|
|
1174
1288
|
'io.flow.stripe.v0.enums.bank_ideal': function () { return faker.helpers.arrayElement([
|
|
1175
1289
|
'abn_amro',
|
|
1176
1290
|
'asn_bank',
|
|
@@ -1768,19 +1882,73 @@ var factories = {
|
|
|
1768
1882
|
amount: factories.integer(),
|
|
1769
1883
|
charge: factories.string(),
|
|
1770
1884
|
currency: factories.string(),
|
|
1771
|
-
evidence: factories.
|
|
1885
|
+
evidence: factories['io.flow.stripe.v0.models.dispute_evidence'](),
|
|
1772
1886
|
metadata: objectOf(function () { return factories.string(); }),
|
|
1773
1887
|
payment_intent: factories.string(),
|
|
1774
1888
|
reason: factories['io.flow.stripe.v0.enums.dispute_reason'](),
|
|
1775
1889
|
status: factories['io.flow.stripe.v0.enums.dispute_status'](),
|
|
1776
1890
|
object: factories.string(),
|
|
1777
|
-
balance_transactions: arrayOf(function () { return factories.
|
|
1891
|
+
balance_transactions: arrayOf(function () { return factories['io.flow.stripe.v0.models.dispute_balance_transaction'](); }),
|
|
1778
1892
|
created: factories.long(),
|
|
1779
1893
|
evidence_details: factories['io.flow.stripe.v0.models.dispute_evidence_details'](),
|
|
1780
1894
|
is_charge_refundable: factories.boolean(),
|
|
1781
1895
|
livemode: factories.boolean(),
|
|
1782
1896
|
payment_method_details: factories['io.flow.stripe.v0.models.dispute_payment_method_details'](),
|
|
1783
1897
|
}); },
|
|
1898
|
+
'io.flow.stripe.v0.models.dispute_balance_transaction': function () { return ({
|
|
1899
|
+
payment_intent: factories.string(),
|
|
1900
|
+
id: factories.string(),
|
|
1901
|
+
object: factories.string(),
|
|
1902
|
+
amount: factories.integer(),
|
|
1903
|
+
available_on: factories.long(),
|
|
1904
|
+
created: factories.long(),
|
|
1905
|
+
currency: factories.string(),
|
|
1906
|
+
description: factories.string(),
|
|
1907
|
+
exchange_rate: factories.decimal(),
|
|
1908
|
+
fee: factories.integer(),
|
|
1909
|
+
fee_details: arrayOf(function () { return factories['io.flow.stripe.v0.models.dispute_balance_transaction_fee_details'](); }),
|
|
1910
|
+
net: factories.integer(),
|
|
1911
|
+
reporting_category: factories.string(),
|
|
1912
|
+
source: factories.string(),
|
|
1913
|
+
status: factories.string(),
|
|
1914
|
+
type: factories['io.flow.stripe.v0.enums.balance_transaction_type'](),
|
|
1915
|
+
}); },
|
|
1916
|
+
'io.flow.stripe.v0.models.dispute_balance_transaction_fee_details': function () { return ({
|
|
1917
|
+
amount: factories.integer(),
|
|
1918
|
+
application: factories.string(),
|
|
1919
|
+
currency: factories.string(),
|
|
1920
|
+
description: factories.string(),
|
|
1921
|
+
type: factories.string(),
|
|
1922
|
+
}); },
|
|
1923
|
+
'io.flow.stripe.v0.models.dispute_evidence': function () { return ({
|
|
1924
|
+
access_activity_log: factories.string(),
|
|
1925
|
+
billing_address: factories.string(),
|
|
1926
|
+
cancellation_policy: factories.string(),
|
|
1927
|
+
cancellation_policy_disclosure: factories.string(),
|
|
1928
|
+
cancellation_rebuttal: factories.string(),
|
|
1929
|
+
customer_communication: factories.string(),
|
|
1930
|
+
customer_email_address: factories.string(),
|
|
1931
|
+
customer_name: factories.string(),
|
|
1932
|
+
'evidence.customer_purchase_ip': factories.string(),
|
|
1933
|
+
customer_signature: factories.string(),
|
|
1934
|
+
duplicate_charge_documentation: factories.string(),
|
|
1935
|
+
duplicate_charge_explanation: factories.string(),
|
|
1936
|
+
duplicate_charge_id: factories.string(),
|
|
1937
|
+
product_description: factories.string(),
|
|
1938
|
+
receipt: factories.string(),
|
|
1939
|
+
refund_policy: factories.string(),
|
|
1940
|
+
refund_policy_disclosure: factories.string(),
|
|
1941
|
+
refund_refusal_explanation: factories.string(),
|
|
1942
|
+
service_date: factories.string(),
|
|
1943
|
+
service_documentation: factories.string(),
|
|
1944
|
+
shipping_address: factories.string(),
|
|
1945
|
+
shipping_carrier: factories.string(),
|
|
1946
|
+
shipping_date: factories.string(),
|
|
1947
|
+
shipping_documentation: factories.string(),
|
|
1948
|
+
shipping_tracking_number: factories.string(),
|
|
1949
|
+
uncategorized_file: factories.string(),
|
|
1950
|
+
uncategorized_text: factories.string(),
|
|
1951
|
+
}); },
|
|
1784
1952
|
'io.flow.stripe.v0.models.dispute_evidence_details': function () { return ({
|
|
1785
1953
|
due_by: factories.long(),
|
|
1786
1954
|
has_evidence: factories.boolean(),
|
|
@@ -3254,6 +3422,8 @@ var factories = {
|
|
|
3254
3422
|
'sofort',
|
|
3255
3423
|
'afterpay',
|
|
3256
3424
|
'bancontact',
|
|
3425
|
+
'twint',
|
|
3426
|
+
'przelewy24',
|
|
3257
3427
|
]); },
|
|
3258
3428
|
'io.flow.v0.enums.payout_attachment_type': function () { return faker.helpers.arrayElement(['transactions']); },
|
|
3259
3429
|
'io.flow.v0.enums.payout_status_failure_code': function () { return faker.helpers.arrayElement(['invalid_account_number', 'account_closed', 'could_not_process']); },
|
|
@@ -9191,10 +9361,18 @@ var factories = {
|
|
|
9191
9361
|
type: 'init_paypal',
|
|
9192
9362
|
reference: factories.string(),
|
|
9193
9363
|
}); },
|
|
9364
|
+
'io.flow.v0.models.payment_method_data_init_przelewy24': function () { return ({
|
|
9365
|
+
type: 'init_przelewy24',
|
|
9366
|
+
reference: factories.string(),
|
|
9367
|
+
}); },
|
|
9194
9368
|
'io.flow.v0.models.payment_method_data_init_sofort': function () { return ({
|
|
9195
9369
|
type: 'init_sofort',
|
|
9196
9370
|
reference: factories.string(),
|
|
9197
9371
|
}); },
|
|
9372
|
+
'io.flow.v0.models.payment_method_data_init_twint': function () { return ({
|
|
9373
|
+
type: 'init_twint',
|
|
9374
|
+
reference: factories.string(),
|
|
9375
|
+
}); },
|
|
9198
9376
|
'io.flow.v0.models.payment_method_data_option_logo_svg': function () { return ({
|
|
9199
9377
|
type: 'svg',
|
|
9200
9378
|
url: factories.string(),
|
|
@@ -9287,10 +9465,18 @@ var factories = {
|
|
|
9287
9465
|
type: 'paypal',
|
|
9288
9466
|
merchant_of_record: factories['io.flow.v0.enums.merchant_of_record'](),
|
|
9289
9467
|
}); },
|
|
9468
|
+
'io.flow.v0.models.payment_method_summary_przelewy24': function () { return ({
|
|
9469
|
+
type: 'przelewy24',
|
|
9470
|
+
merchant_of_record: factories['io.flow.v0.enums.merchant_of_record'](),
|
|
9471
|
+
}); },
|
|
9290
9472
|
'io.flow.v0.models.payment_method_summary_sofort': function () { return ({
|
|
9291
9473
|
type: 'sofort',
|
|
9292
9474
|
merchant_of_record: factories['io.flow.v0.enums.merchant_of_record'](),
|
|
9293
9475
|
}); },
|
|
9476
|
+
'io.flow.v0.models.payment_method_summary_twint': function () { return ({
|
|
9477
|
+
type: 'twint',
|
|
9478
|
+
merchant_of_record: factories['io.flow.v0.enums.merchant_of_record'](),
|
|
9479
|
+
}); },
|
|
9294
9480
|
'io.flow.v0.models.payment_order_details_line_item': function () { return ({
|
|
9295
9481
|
id: factories.string(),
|
|
9296
9482
|
description: factories.string(),
|
|
@@ -13129,6 +13315,8 @@ var factories = {
|
|
|
13129
13315
|
function () { return factories['io.flow.v0.models.payment_method_data_init_paypal'](); },
|
|
13130
13316
|
function () { return factories['io.flow.v0.models.payment_method_data_init_ideal'](); },
|
|
13131
13317
|
function () { return factories['io.flow.v0.models.payment_method_data_init_sofort'](); },
|
|
13318
|
+
function () { return factories['io.flow.v0.models.payment_method_data_init_twint'](); },
|
|
13319
|
+
function () { return factories['io.flow.v0.models.payment_method_data_init_przelewy24'](); },
|
|
13132
13320
|
function () { return factories['io.flow.v0.models.payment_method_data_init_bancontact'](); },
|
|
13133
13321
|
function () { return factories['io.flow.v0.models.payment_method_data_validate_applepay'](); },
|
|
13134
13322
|
function () { return factories['io.flow.v0.models.payment_method_data_authorize_card'](); },
|
|
@@ -13175,6 +13363,8 @@ var factories = {
|
|
|
13175
13363
|
function () { return factories['io.flow.v0.models.payment_method_summary_googlepay'](); },
|
|
13176
13364
|
function () { return factories['io.flow.v0.models.payment_method_summary_paypal'](); },
|
|
13177
13365
|
function () { return factories['io.flow.v0.models.payment_method_summary_ideal'](); },
|
|
13366
|
+
function () { return factories['io.flow.v0.models.payment_method_summary_twint'](); },
|
|
13367
|
+
function () { return factories['io.flow.v0.models.payment_method_summary_przelewy24'](); },
|
|
13178
13368
|
function () { return factories['io.flow.v0.models.payment_method_summary_sofort'](); },
|
|
13179
13369
|
function () { return factories['io.flow.v0.models.payment_method_summary_bancontact'](); },
|
|
13180
13370
|
]);
|
|
@@ -14583,7 +14773,9 @@ export var makePaymentMethodDataInitGooglepay = function () { return factories['
|
|
|
14583
14773
|
export var makePaymentMethodDataInitIdeal = function () { return factories['io.flow.v0.models.payment_method_data_init_ideal'](); };
|
|
14584
14774
|
export var makePaymentMethodDataInitKlarna = function () { return factories['io.flow.v0.models.payment_method_data_init_klarna'](); };
|
|
14585
14775
|
export var makePaymentMethodDataInitPaypal = function () { return factories['io.flow.v0.models.payment_method_data_init_paypal'](); };
|
|
14776
|
+
export var makePaymentMethodDataInitPrzelewy24 = function () { return factories['io.flow.v0.models.payment_method_data_init_przelewy24'](); };
|
|
14586
14777
|
export var makePaymentMethodDataInitSofort = function () { return factories['io.flow.v0.models.payment_method_data_init_sofort'](); };
|
|
14778
|
+
export var makePaymentMethodDataInitTwint = function () { return factories['io.flow.v0.models.payment_method_data_init_twint'](); };
|
|
14587
14779
|
export var makePaymentMethodDataOptionLogo = function () { return factories['io.flow.v0.unions.payment_method_data_option_logo'](); };
|
|
14588
14780
|
export var makePaymentMethodDataOptionLogoSvg = function () { return factories['io.flow.v0.models.payment_method_data_option_logo_svg'](); };
|
|
14589
14781
|
export var makePaymentMethodDataOptionType = function () { return factories['io.flow.v0.enums.payment_method_data_option_type'](); };
|
|
@@ -14608,7 +14800,9 @@ export var makePaymentMethodSummaryGooglepay = function () { return factories['i
|
|
|
14608
14800
|
export var makePaymentMethodSummaryIdeal = function () { return factories['io.flow.v0.models.payment_method_summary_ideal'](); };
|
|
14609
14801
|
export var makePaymentMethodSummaryKlarna = function () { return factories['io.flow.v0.models.payment_method_summary_klarna'](); };
|
|
14610
14802
|
export var makePaymentMethodSummaryPaypal = function () { return factories['io.flow.v0.models.payment_method_summary_paypal'](); };
|
|
14803
|
+
export var makePaymentMethodSummaryPrzelewy24 = function () { return factories['io.flow.v0.models.payment_method_summary_przelewy24'](); };
|
|
14611
14804
|
export var makePaymentMethodSummarySofort = function () { return factories['io.flow.v0.models.payment_method_summary_sofort'](); };
|
|
14805
|
+
export var makePaymentMethodSummaryTwint = function () { return factories['io.flow.v0.models.payment_method_summary_twint'](); };
|
|
14612
14806
|
export var makePaymentMethodTag = function () { return factories['io.flow.v0.unions.payment_method_tag'](); };
|
|
14613
14807
|
export var makePaymentMethodType = function () { return factories['io.flow.v0.enums.payment_method_type'](); };
|
|
14614
14808
|
export var makePaymentOrderDetailsLineItem = function () { return factories['io.flow.v0.models.payment_order_details_line_item'](); };
|
package/dist/types/api.d.ts
CHANGED
|
@@ -1119,7 +1119,9 @@ export declare const makePaymentMethodDataInitGooglepay: () => io.flow.v0.models
|
|
|
1119
1119
|
export declare const makePaymentMethodDataInitIdeal: () => io.flow.v0.models.PaymentMethodDataInitIdeal;
|
|
1120
1120
|
export declare const makePaymentMethodDataInitKlarna: () => io.flow.v0.models.PaymentMethodDataInitKlarna;
|
|
1121
1121
|
export declare const makePaymentMethodDataInitPaypal: () => io.flow.v0.models.PaymentMethodDataInitPaypal;
|
|
1122
|
+
export declare const makePaymentMethodDataInitPrzelewy24: () => io.flow.v0.models.PaymentMethodDataInitPrzelewy24;
|
|
1122
1123
|
export declare const makePaymentMethodDataInitSofort: () => io.flow.v0.models.PaymentMethodDataInitSofort;
|
|
1124
|
+
export declare const makePaymentMethodDataInitTwint: () => io.flow.v0.models.PaymentMethodDataInitTwint;
|
|
1123
1125
|
export declare const makePaymentMethodDataOptionLogo: () => io.flow.v0.models.PaymentMethodDataOptionLogoSvg;
|
|
1124
1126
|
export declare const makePaymentMethodDataOptionLogoSvg: () => io.flow.v0.models.PaymentMethodDataOptionLogoSvg;
|
|
1125
1127
|
export declare const makePaymentMethodDataOptionType: () => "ideal_issuer_option";
|
|
@@ -1144,7 +1146,9 @@ export declare const makePaymentMethodSummaryGooglepay: () => io.flow.v0.models.
|
|
|
1144
1146
|
export declare const makePaymentMethodSummaryIdeal: () => io.flow.v0.models.PaymentMethodSummaryIdeal;
|
|
1145
1147
|
export declare const makePaymentMethodSummaryKlarna: () => io.flow.v0.models.PaymentMethodSummaryKlarna;
|
|
1146
1148
|
export declare const makePaymentMethodSummaryPaypal: () => io.flow.v0.models.PaymentMethodSummaryPaypal;
|
|
1149
|
+
export declare const makePaymentMethodSummaryPrzelewy24: () => io.flow.v0.models.PaymentMethodSummaryPrzelewy24;
|
|
1147
1150
|
export declare const makePaymentMethodSummarySofort: () => io.flow.v0.models.PaymentMethodSummarySofort;
|
|
1151
|
+
export declare const makePaymentMethodSummaryTwint: () => io.flow.v0.models.PaymentMethodSummaryTwint;
|
|
1148
1152
|
export declare const makePaymentMethodTag: () => io.flow.v0.unions.PaymentMethodTag;
|
|
1149
1153
|
export declare const makePaymentMethodType: () => io.flow.v0.enums.PaymentMethodType;
|
|
1150
1154
|
export declare const makePaymentOrderDetailsLineItem: () => io.flow.v0.models.PaymentOrderDetailsLineItem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-factories",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.89",
|
|
4
4
|
"description": "Flow API mock data factories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"flow",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"@faker-js/faker": "^6.2.0",
|
|
37
37
|
"@flowio/api-types": "*"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "54b0e72a2a2a004dbc68536fa4f47e566426a56a"
|
|
40
40
|
}
|
package/src/api.ts
CHANGED
|
@@ -336,6 +336,7 @@ const factories = {
|
|
|
336
336
|
'io.flow.shopify.external.v0.enums.format': (): io.flow.shopify.external.v0.enums.Format => faker.helpers.arrayElement(['json', 'xml']),
|
|
337
337
|
'io.flow.shopify.external.v0.enums.fulfillment_service': (): io.flow.shopify.external.v0.enums.FulfillmentService => faker.helpers.arrayElement(['manual', 'gift_card']),
|
|
338
338
|
'io.flow.shopify.external.v0.enums.fulfillment_status_type': (): io.flow.shopify.external.v0.enums.FulfillmentStatusType => faker.helpers.arrayElement(['fulfilled', 'null', 'partial']),
|
|
339
|
+
'io.flow.shopify.external.v0.enums.graphql_weight_unit': (): io.flow.shopify.external.v0.enums.GraphqlWeightUnit => faker.helpers.arrayElement(['GRAMS', 'KILOGRAMS', 'OUNCES', 'POUNDS']),
|
|
339
340
|
'io.flow.shopify.external.v0.enums.inventory_behaviour': (): io.flow.shopify.external.v0.enums.InventoryBehaviour => faker.helpers.arrayElement(['bypass', 'decrement_ignoring_policy', 'decrement_obeying_policy']),
|
|
340
341
|
'io.flow.shopify.external.v0.enums.inventory_management': (): io.flow.shopify.external.v0.enums.InventoryManagement => faker.helpers.arrayElement(['blank', 'shopify']),
|
|
341
342
|
'io.flow.shopify.external.v0.enums.inventory_policy': (): io.flow.shopify.external.v0.enums.InventoryPolicy => faker.helpers.arrayElement(['deny', 'continue']),
|
|
@@ -481,6 +482,81 @@ const factories = {
|
|
|
481
482
|
count: factories.long(),
|
|
482
483
|
}),
|
|
483
484
|
|
|
485
|
+
'io.flow.shopify.external.v0.models.graphql_inventory_item': (): io.flow.shopify.external.v0.models.GraphqlInventoryItem => ({
|
|
486
|
+
id: factories.string(),
|
|
487
|
+
tracked: factories.boolean(),
|
|
488
|
+
requiresShipping: factories.boolean(),
|
|
489
|
+
measurement: factories['io.flow.shopify.external.v0.models.graphql_measurement'](),
|
|
490
|
+
}),
|
|
491
|
+
|
|
492
|
+
'io.flow.shopify.external.v0.models.graphql_measurement': (): io.flow.shopify.external.v0.models.GraphqlMeasurement => ({
|
|
493
|
+
weight: factories['io.flow.shopify.external.v0.models.graphql_weight'](),
|
|
494
|
+
}),
|
|
495
|
+
|
|
496
|
+
'io.flow.shopify.external.v0.models.graphql_option': (): io.flow.shopify.external.v0.models.GraphqlOption => ({
|
|
497
|
+
id: factories.string(),
|
|
498
|
+
values: arrayOf(() => factories.string()),
|
|
499
|
+
name: factories.string(),
|
|
500
|
+
position: factories.integer(),
|
|
501
|
+
}),
|
|
502
|
+
|
|
503
|
+
'io.flow.shopify.external.v0.models.graphql_product': (): io.flow.shopify.external.v0.models.GraphqlProduct => ({
|
|
504
|
+
id: factories.string(),
|
|
505
|
+
legacyResourceId: factories.string(),
|
|
506
|
+
handle: factories.string(),
|
|
507
|
+
|
|
508
|
+
variants: arrayOf(
|
|
509
|
+
() => factories['io.flow.shopify.external.v0.models.graphql_product_variant'](),
|
|
510
|
+
),
|
|
511
|
+
|
|
512
|
+
images: arrayOf(
|
|
513
|
+
() => factories['io.flow.shopify.external.v0.models.graphql_product_image'](),
|
|
514
|
+
),
|
|
515
|
+
|
|
516
|
+
title: factories.string(),
|
|
517
|
+
vendor: factories.string(),
|
|
518
|
+
descriptionHtml: factories.string(),
|
|
519
|
+
productType: factories.string(),
|
|
520
|
+
status: factories.string(),
|
|
521
|
+
options: arrayOf(() => factories['io.flow.shopify.external.v0.models.graphql_option']()),
|
|
522
|
+
tags: arrayOf(() => factories.string()),
|
|
523
|
+
templateSuffix: factories.string(),
|
|
524
|
+
publishedAt: factories.date_time_iso_8601(),
|
|
525
|
+
createdAt: factories.date_time_iso_8601(),
|
|
526
|
+
updatedAt: factories.date_time_iso_8601(),
|
|
527
|
+
hasVariantsThatRequiresComponents: factories.boolean(),
|
|
528
|
+
}),
|
|
529
|
+
|
|
530
|
+
'io.flow.shopify.external.v0.models.graphql_product_image': (): io.flow.shopify.external.v0.models.GraphqlProductImage => ({
|
|
531
|
+
id: factories.string(),
|
|
532
|
+
url: factories.string(),
|
|
533
|
+
altText: factories.string(),
|
|
534
|
+
}),
|
|
535
|
+
|
|
536
|
+
'io.flow.shopify.external.v0.models.graphql_product_variant': (): io.flow.shopify.external.v0.models.GraphqlProductVariant => ({
|
|
537
|
+
id: factories.string(),
|
|
538
|
+
legacyResourceId: factories.string(),
|
|
539
|
+
sku: factories.string(),
|
|
540
|
+
price: factories.string(),
|
|
541
|
+
title: factories.string(),
|
|
542
|
+
taxable: factories.boolean(),
|
|
543
|
+
compareAtPrice: factories.string(),
|
|
544
|
+
barcode: factories.string(),
|
|
545
|
+
inventoryPolicy: factories['io.flow.shopify.external.v0.enums.inventory_policy'](),
|
|
546
|
+
inventoryQuantity: factories.long(),
|
|
547
|
+
image: factories['io.flow.shopify.external.v0.models.graphql_variant_image'](),
|
|
548
|
+
inventoryItem: factories['io.flow.shopify.external.v0.models.graphql_inventory_item'](),
|
|
549
|
+
}),
|
|
550
|
+
|
|
551
|
+
'io.flow.shopify.external.v0.models.graphql_variant_image': (): io.flow.shopify.external.v0.models.GraphqlVariantImage => ({
|
|
552
|
+
id: factories.string(),
|
|
553
|
+
}),
|
|
554
|
+
|
|
555
|
+
'io.flow.shopify.external.v0.models.graphql_weight': (): io.flow.shopify.external.v0.models.GraphqlWeight => ({
|
|
556
|
+
unit: factories['io.flow.shopify.external.v0.enums.graphql_weight_unit'](),
|
|
557
|
+
value: factories.double(),
|
|
558
|
+
}),
|
|
559
|
+
|
|
484
560
|
'io.flow.shopify.external.v0.models.metafield': (): io.flow.shopify.external.v0.models.Metafield => ({
|
|
485
561
|
id: factories.long(),
|
|
486
562
|
key: factories.string(),
|
|
@@ -773,6 +849,11 @@ const factories = {
|
|
|
773
849
|
user_agent: factories.string(),
|
|
774
850
|
}),
|
|
775
851
|
|
|
852
|
+
'io.flow.shopify.external.v0.models.shopify_country_harmonized_system_code': (): io.flow.shopify.external.v0.models.ShopifyCountryHarmonizedSystemCode => ({
|
|
853
|
+
country_code: factories.string(),
|
|
854
|
+
harmonized_system_code: factories.string(),
|
|
855
|
+
}),
|
|
856
|
+
|
|
776
857
|
'io.flow.shopify.external.v0.models.shopify_customer': (): io.flow.shopify.external.v0.models.ShopifyCustomer => ({
|
|
777
858
|
id: factories.long(),
|
|
778
859
|
|
|
@@ -1012,6 +1093,18 @@ const factories = {
|
|
|
1012
1093
|
id: factories.long(),
|
|
1013
1094
|
}),
|
|
1014
1095
|
|
|
1096
|
+
'io.flow.shopify.external.v0.models.shopify_inventory_item_summary': (): io.flow.shopify.external.v0.models.ShopifyInventoryItemSummary => ({
|
|
1097
|
+
country_code_of_origin: factories.string(),
|
|
1098
|
+
|
|
1099
|
+
country_harmonized_system_codes: arrayOf(
|
|
1100
|
+
() => factories['io.flow.shopify.external.v0.models.shopify_country_harmonized_system_code'](),
|
|
1101
|
+
),
|
|
1102
|
+
|
|
1103
|
+
harmonized_system_code: factories.string(),
|
|
1104
|
+
updated_at: factories.date_time_iso_8601(),
|
|
1105
|
+
requires_shipping: factories.boolean(),
|
|
1106
|
+
}),
|
|
1107
|
+
|
|
1015
1108
|
'io.flow.shopify.external.v0.models.shopify_inventory_level': (): io.flow.shopify.external.v0.models.ShopifyInventoryLevel => ({
|
|
1016
1109
|
inventory_item_id: factories.long(),
|
|
1017
1110
|
location_id: factories.long(),
|
|
@@ -1400,6 +1493,49 @@ const factories = {
|
|
|
1400
1493
|
'io.flow.stripe.v0.enums.account_type': (): io.flow.stripe.v0.enums.AccountType => faker.helpers.arrayElement(['platform', 'custom', 'standard', 'express']),
|
|
1401
1494
|
'io.flow.stripe.v0.enums.apple_pay_type': (): io.flow.stripe.v0.enums.ApplePayType => faker.helpers.arrayElement(['apple_pay', 'apple_pay_later']),
|
|
1402
1495
|
|
|
1496
|
+
'io.flow.stripe.v0.enums.balance_transaction_type': (): io.flow.stripe.v0.enums.BalanceTransactionType => faker.helpers.arrayElement([
|
|
1497
|
+
'adjustment',
|
|
1498
|
+
'advance',
|
|
1499
|
+
'advance_funding',
|
|
1500
|
+
'anticipation_repayment',
|
|
1501
|
+
'application_fee',
|
|
1502
|
+
'application_fee_refund',
|
|
1503
|
+
'charge',
|
|
1504
|
+
'climate_order_purchase',
|
|
1505
|
+
'climate_order_refund',
|
|
1506
|
+
'connect_collection_transfer',
|
|
1507
|
+
'contribution',
|
|
1508
|
+
'issuing_authorization_hold',
|
|
1509
|
+
'issuing_authorization_release',
|
|
1510
|
+
'issuing_dispute',
|
|
1511
|
+
'issuing_transaction',
|
|
1512
|
+
'obligation_outbound',
|
|
1513
|
+
'obligation_reversal_inbound',
|
|
1514
|
+
'payment',
|
|
1515
|
+
'payment_failure_refund',
|
|
1516
|
+
'payment_network_reserve_hold',
|
|
1517
|
+
'payment_network_reserve_release',
|
|
1518
|
+
'payment_refund',
|
|
1519
|
+
'payment_reversal',
|
|
1520
|
+
'payment_unreconciled',
|
|
1521
|
+
'payout',
|
|
1522
|
+
'payout_cancel',
|
|
1523
|
+
'payout_failure',
|
|
1524
|
+
'refund',
|
|
1525
|
+
'refund_failure',
|
|
1526
|
+
'reserve_transaction',
|
|
1527
|
+
'reserved_funds',
|
|
1528
|
+
'stripe_fee',
|
|
1529
|
+
'stripe_fx_fee',
|
|
1530
|
+
'tax_fee',
|
|
1531
|
+
'topup',
|
|
1532
|
+
'topup_reversal',
|
|
1533
|
+
'transfer',
|
|
1534
|
+
'transfer_cancel',
|
|
1535
|
+
'transfer_failure',
|
|
1536
|
+
'transfer_refund',
|
|
1537
|
+
]),
|
|
1538
|
+
|
|
1403
1539
|
'io.flow.stripe.v0.enums.bank_ideal': (): io.flow.stripe.v0.enums.BankIdeal => faker.helpers.arrayElement([
|
|
1404
1540
|
'abn_amro',
|
|
1405
1541
|
'asn_bank',
|
|
@@ -2045,13 +2181,13 @@ const factories = {
|
|
|
2045
2181
|
amount: factories.integer(),
|
|
2046
2182
|
charge: factories.string(),
|
|
2047
2183
|
currency: factories.string(),
|
|
2048
|
-
evidence: factories.
|
|
2184
|
+
evidence: factories['io.flow.stripe.v0.models.dispute_evidence'](),
|
|
2049
2185
|
metadata: objectOf(() => factories.string()),
|
|
2050
2186
|
payment_intent: factories.string(),
|
|
2051
2187
|
reason: factories['io.flow.stripe.v0.enums.dispute_reason'](),
|
|
2052
2188
|
status: factories['io.flow.stripe.v0.enums.dispute_status'](),
|
|
2053
2189
|
object: factories.string(),
|
|
2054
|
-
balance_transactions: arrayOf(() => factories.
|
|
2190
|
+
balance_transactions: arrayOf(() => factories['io.flow.stripe.v0.models.dispute_balance_transaction']()),
|
|
2055
2191
|
created: factories.long(),
|
|
2056
2192
|
evidence_details: factories['io.flow.stripe.v0.models.dispute_evidence_details'](),
|
|
2057
2193
|
is_charge_refundable: factories.boolean(),
|
|
@@ -2059,6 +2195,67 @@ const factories = {
|
|
|
2059
2195
|
payment_method_details: factories['io.flow.stripe.v0.models.dispute_payment_method_details'](),
|
|
2060
2196
|
}),
|
|
2061
2197
|
|
|
2198
|
+
'io.flow.stripe.v0.models.dispute_balance_transaction': (): io.flow.stripe.v0.models.DisputeBalanceTransaction => ({
|
|
2199
|
+
payment_intent: factories.string(),
|
|
2200
|
+
id: factories.string(),
|
|
2201
|
+
object: factories.string(),
|
|
2202
|
+
amount: factories.integer(),
|
|
2203
|
+
available_on: factories.long(),
|
|
2204
|
+
created: factories.long(),
|
|
2205
|
+
currency: factories.string(),
|
|
2206
|
+
description: factories.string(),
|
|
2207
|
+
exchange_rate: factories.decimal(),
|
|
2208
|
+
fee: factories.integer(),
|
|
2209
|
+
|
|
2210
|
+
fee_details: arrayOf(
|
|
2211
|
+
() => factories['io.flow.stripe.v0.models.dispute_balance_transaction_fee_details'](),
|
|
2212
|
+
),
|
|
2213
|
+
|
|
2214
|
+
net: factories.integer(),
|
|
2215
|
+
reporting_category: factories.string(),
|
|
2216
|
+
source: factories.string(),
|
|
2217
|
+
status: factories.string(),
|
|
2218
|
+
type: factories['io.flow.stripe.v0.enums.balance_transaction_type'](),
|
|
2219
|
+
}),
|
|
2220
|
+
|
|
2221
|
+
'io.flow.stripe.v0.models.dispute_balance_transaction_fee_details': (): io.flow.stripe.v0.models.DisputeBalanceTransactionFeeDetails => ({
|
|
2222
|
+
amount: factories.integer(),
|
|
2223
|
+
application: factories.string(),
|
|
2224
|
+
currency: factories.string(),
|
|
2225
|
+
description: factories.string(),
|
|
2226
|
+
type: factories.string(),
|
|
2227
|
+
}),
|
|
2228
|
+
|
|
2229
|
+
'io.flow.stripe.v0.models.dispute_evidence': (): io.flow.stripe.v0.models.DisputeEvidence => ({
|
|
2230
|
+
access_activity_log: factories.string(),
|
|
2231
|
+
billing_address: factories.string(),
|
|
2232
|
+
cancellation_policy: factories.string(),
|
|
2233
|
+
cancellation_policy_disclosure: factories.string(),
|
|
2234
|
+
cancellation_rebuttal: factories.string(),
|
|
2235
|
+
customer_communication: factories.string(),
|
|
2236
|
+
customer_email_address: factories.string(),
|
|
2237
|
+
customer_name: factories.string(),
|
|
2238
|
+
'evidence.customer_purchase_ip': factories.string(),
|
|
2239
|
+
customer_signature: factories.string(),
|
|
2240
|
+
duplicate_charge_documentation: factories.string(),
|
|
2241
|
+
duplicate_charge_explanation: factories.string(),
|
|
2242
|
+
duplicate_charge_id: factories.string(),
|
|
2243
|
+
product_description: factories.string(),
|
|
2244
|
+
receipt: factories.string(),
|
|
2245
|
+
refund_policy: factories.string(),
|
|
2246
|
+
refund_policy_disclosure: factories.string(),
|
|
2247
|
+
refund_refusal_explanation: factories.string(),
|
|
2248
|
+
service_date: factories.string(),
|
|
2249
|
+
service_documentation: factories.string(),
|
|
2250
|
+
shipping_address: factories.string(),
|
|
2251
|
+
shipping_carrier: factories.string(),
|
|
2252
|
+
shipping_date: factories.string(),
|
|
2253
|
+
shipping_documentation: factories.string(),
|
|
2254
|
+
shipping_tracking_number: factories.string(),
|
|
2255
|
+
uncategorized_file: factories.string(),
|
|
2256
|
+
uncategorized_text: factories.string(),
|
|
2257
|
+
}),
|
|
2258
|
+
|
|
2062
2259
|
'io.flow.stripe.v0.models.dispute_evidence_details': (): io.flow.stripe.v0.models.DisputeEvidenceDetails => ({
|
|
2063
2260
|
due_by: factories.long(),
|
|
2064
2261
|
has_evidence: factories.boolean(),
|
|
@@ -3697,6 +3894,8 @@ const factories = {
|
|
|
3697
3894
|
'sofort',
|
|
3698
3895
|
'afterpay',
|
|
3699
3896
|
'bancontact',
|
|
3897
|
+
'twint',
|
|
3898
|
+
'przelewy24',
|
|
3700
3899
|
]),
|
|
3701
3900
|
|
|
3702
3901
|
'io.flow.v0.enums.payout_attachment_type': (): io.flow.v0.enums.PayoutAttachmentType => faker.helpers.arrayElement(['transactions']),
|
|
@@ -10586,11 +10785,21 @@ const factories = {
|
|
|
10586
10785
|
reference: factories.string(),
|
|
10587
10786
|
}),
|
|
10588
10787
|
|
|
10788
|
+
'io.flow.v0.models.payment_method_data_init_przelewy24': (): io.flow.v0.models.PaymentMethodDataInitPrzelewy24 => ({
|
|
10789
|
+
type: 'init_przelewy24',
|
|
10790
|
+
reference: factories.string(),
|
|
10791
|
+
}),
|
|
10792
|
+
|
|
10589
10793
|
'io.flow.v0.models.payment_method_data_init_sofort': (): io.flow.v0.models.PaymentMethodDataInitSofort => ({
|
|
10590
10794
|
type: 'init_sofort',
|
|
10591
10795
|
reference: factories.string(),
|
|
10592
10796
|
}),
|
|
10593
10797
|
|
|
10798
|
+
'io.flow.v0.models.payment_method_data_init_twint': (): io.flow.v0.models.PaymentMethodDataInitTwint => ({
|
|
10799
|
+
type: 'init_twint',
|
|
10800
|
+
reference: factories.string(),
|
|
10801
|
+
}),
|
|
10802
|
+
|
|
10594
10803
|
'io.flow.v0.models.payment_method_data_option_logo_svg': (): io.flow.v0.models.PaymentMethodDataOptionLogoSvg => ({
|
|
10595
10804
|
type: 'svg',
|
|
10596
10805
|
url: factories.string(),
|
|
@@ -10702,11 +10911,21 @@ const factories = {
|
|
|
10702
10911
|
merchant_of_record: factories['io.flow.v0.enums.merchant_of_record'](),
|
|
10703
10912
|
}),
|
|
10704
10913
|
|
|
10914
|
+
'io.flow.v0.models.payment_method_summary_przelewy24': (): io.flow.v0.models.PaymentMethodSummaryPrzelewy24 => ({
|
|
10915
|
+
type: 'przelewy24',
|
|
10916
|
+
merchant_of_record: factories['io.flow.v0.enums.merchant_of_record'](),
|
|
10917
|
+
}),
|
|
10918
|
+
|
|
10705
10919
|
'io.flow.v0.models.payment_method_summary_sofort': (): io.flow.v0.models.PaymentMethodSummarySofort => ({
|
|
10706
10920
|
type: 'sofort',
|
|
10707
10921
|
merchant_of_record: factories['io.flow.v0.enums.merchant_of_record'](),
|
|
10708
10922
|
}),
|
|
10709
10923
|
|
|
10924
|
+
'io.flow.v0.models.payment_method_summary_twint': (): io.flow.v0.models.PaymentMethodSummaryTwint => ({
|
|
10925
|
+
type: 'twint',
|
|
10926
|
+
merchant_of_record: factories['io.flow.v0.enums.merchant_of_record'](),
|
|
10927
|
+
}),
|
|
10928
|
+
|
|
10710
10929
|
'io.flow.v0.models.payment_order_details_line_item': (): io.flow.v0.models.PaymentOrderDetailsLineItem => ({
|
|
10711
10930
|
id: factories.string(),
|
|
10712
10931
|
description: factories.string(),
|
|
@@ -15176,6 +15395,8 @@ const factories = {
|
|
|
15176
15395
|
() => factories['io.flow.v0.models.payment_method_data_init_paypal'](),
|
|
15177
15396
|
() => factories['io.flow.v0.models.payment_method_data_init_ideal'](),
|
|
15178
15397
|
() => factories['io.flow.v0.models.payment_method_data_init_sofort'](),
|
|
15398
|
+
() => factories['io.flow.v0.models.payment_method_data_init_twint'](),
|
|
15399
|
+
() => factories['io.flow.v0.models.payment_method_data_init_przelewy24'](),
|
|
15179
15400
|
() => factories['io.flow.v0.models.payment_method_data_init_bancontact'](),
|
|
15180
15401
|
() => factories['io.flow.v0.models.payment_method_data_validate_applepay'](),
|
|
15181
15402
|
() => factories['io.flow.v0.models.payment_method_data_authorize_card'](),
|
|
@@ -15234,6 +15455,8 @@ const factories = {
|
|
|
15234
15455
|
() => factories['io.flow.v0.models.payment_method_summary_googlepay'](),
|
|
15235
15456
|
() => factories['io.flow.v0.models.payment_method_summary_paypal'](),
|
|
15236
15457
|
() => factories['io.flow.v0.models.payment_method_summary_ideal'](),
|
|
15458
|
+
() => factories['io.flow.v0.models.payment_method_summary_twint'](),
|
|
15459
|
+
() => factories['io.flow.v0.models.payment_method_summary_przelewy24'](),
|
|
15237
15460
|
() => factories['io.flow.v0.models.payment_method_summary_sofort'](),
|
|
15238
15461
|
() => factories['io.flow.v0.models.payment_method_summary_bancontact'](),
|
|
15239
15462
|
]);
|
|
@@ -16712,7 +16935,9 @@ export const makePaymentMethodDataInitGooglepay = () => factories['io.flow.v0.mo
|
|
|
16712
16935
|
export const makePaymentMethodDataInitIdeal = () => factories['io.flow.v0.models.payment_method_data_init_ideal']();
|
|
16713
16936
|
export const makePaymentMethodDataInitKlarna = () => factories['io.flow.v0.models.payment_method_data_init_klarna']();
|
|
16714
16937
|
export const makePaymentMethodDataInitPaypal = () => factories['io.flow.v0.models.payment_method_data_init_paypal']();
|
|
16938
|
+
export const makePaymentMethodDataInitPrzelewy24 = () => factories['io.flow.v0.models.payment_method_data_init_przelewy24']();
|
|
16715
16939
|
export const makePaymentMethodDataInitSofort = () => factories['io.flow.v0.models.payment_method_data_init_sofort']();
|
|
16940
|
+
export const makePaymentMethodDataInitTwint = () => factories['io.flow.v0.models.payment_method_data_init_twint']();
|
|
16716
16941
|
export const makePaymentMethodDataOptionLogo = () => factories['io.flow.v0.unions.payment_method_data_option_logo']();
|
|
16717
16942
|
export const makePaymentMethodDataOptionLogoSvg = () => factories['io.flow.v0.models.payment_method_data_option_logo_svg']();
|
|
16718
16943
|
export const makePaymentMethodDataOptionType = () => factories['io.flow.v0.enums.payment_method_data_option_type']();
|
|
@@ -16737,7 +16962,9 @@ export const makePaymentMethodSummaryGooglepay = () => factories['io.flow.v0.mod
|
|
|
16737
16962
|
export const makePaymentMethodSummaryIdeal = () => factories['io.flow.v0.models.payment_method_summary_ideal']();
|
|
16738
16963
|
export const makePaymentMethodSummaryKlarna = () => factories['io.flow.v0.models.payment_method_summary_klarna']();
|
|
16739
16964
|
export const makePaymentMethodSummaryPaypal = () => factories['io.flow.v0.models.payment_method_summary_paypal']();
|
|
16965
|
+
export const makePaymentMethodSummaryPrzelewy24 = () => factories['io.flow.v0.models.payment_method_summary_przelewy24']();
|
|
16740
16966
|
export const makePaymentMethodSummarySofort = () => factories['io.flow.v0.models.payment_method_summary_sofort']();
|
|
16967
|
+
export const makePaymentMethodSummaryTwint = () => factories['io.flow.v0.models.payment_method_summary_twint']();
|
|
16741
16968
|
export const makePaymentMethodTag = () => factories['io.flow.v0.unions.payment_method_tag']();
|
|
16742
16969
|
export const makePaymentMethodType = () => factories['io.flow.v0.enums.payment_method_type']();
|
|
16743
16970
|
export const makePaymentOrderDetailsLineItem = () => factories['io.flow.v0.models.payment_order_details_line_item']();
|