@flowio/api-factories 0.0.86 → 0.0.88
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 +267 -15
- package/dist/esm/api.js +249 -2
- package/dist/types/api.d.ts +6 -1
- package/package.json +2 -2
- package/src/api.ts +282 -2
package/dist/cjs/api.js
CHANGED
|
@@ -26,19 +26,19 @@ exports.makeOrderUpserted = exports.makeOrderType = exports.makeOrderSummaryPric
|
|
|
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
28
|
exports.makePaymentOrderReference = exports.makePaymentOrderDetailsLineItem = exports.makePaymentMethodType = exports.makePaymentMethodTag = exports.makePaymentMethodSummarySofort = 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.makePaymentMethodDataInitSofort = 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.
|
|
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 = void 0;
|
|
29
|
+
exports.makePayoutStatusFailureCode = exports.makePayoutStatusFailed = exports.makePayoutStatus = exports.makePayoutReference = 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 = void 0;
|
|
30
|
+
exports.makePriceForm = exports.makePriceFacetBoundary = exports.makePriceEquation = exports.makePriceDetails = 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 = void 0;
|
|
31
|
+
exports.makeRateUpsertedV3 = exports.makeRateUpserted = exports.makeRateForm = exports.makeRateDeletedV3 = 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 = void 0;
|
|
32
|
+
exports.makeRefundReference = exports.makeRefundOrderSummaryAmounts = exports.makeRefundOrderSummary = exports.makeRefundIdentifierUpserted = 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 = void 0;
|
|
33
|
+
exports.makeReturnUpsertedV2 = exports.makeReturnUpserted = exports.makeReturnTrackingStatus = exports.makeReturnStatus = 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 = void 0;
|
|
34
|
+
exports.makeSessionVisit = exports.makeSessionReference = exports.makeSessionPutForm = exports.makeSessionGeo = 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 = void 0;
|
|
35
|
+
exports.makeShop = exports.makeShippingNotificationVersion = exports.makeShippingNotificationForm = exports.makeShippingNotification = 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 = void 0;
|
|
36
|
+
exports.makeSolidusProductExportType = exports.makeSnapshotUpserted = exports.makeSnapshotDeleted = exports.makeSinglePackageShippingNotificationForm = 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 = void 0;
|
|
37
|
+
exports.makeTaxDutyCalculatorValidationError = exports.makeTaxApplicability = exports.makeTax = exports.makeSyncUnitOfTime = 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 = void 0;
|
|
38
|
+
exports.makeTimezone = exports.makeTierVersion = exports.makeTierUpsertedV2 = exports.makeTierSummary = 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 = void 0;
|
|
39
|
+
exports.makeTransactionMetadataTrueupSurcharge = exports.makeTransactionMetadataTrueupData = exports.makeTransactionMetadataTrueupBaseData = exports.makeTransactionMetadataTrueupBase = 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 = void 0;
|
|
40
|
+
exports.makeWebhookReference = exports.makeWebhookForm = exports.makeWebhookDelivery = exports.makeWebhook = 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 = void 0;
|
|
41
|
+
exports.makeZone = exports.makeZeroLevyReasonCode = exports.makeZeroAmountIndicator = exports.makeWithholdingDeductionType = exports.makeWithholdingDeduction = exports.makeWebhookStatus = exports.makeWebhookSettings = exports.makeWebhookResponse = exports.makeWebhookRequestReference = exports.makeWebhookRequest = void 0;
|
|
42
42
|
var faker_1 = __importDefault(require("@faker-js/faker"));
|
|
43
43
|
var arrayOf = function (f) {
|
|
44
44
|
var length = 3;
|
|
@@ -552,6 +552,7 @@ var factories = {
|
|
|
552
552
|
published_at: factories.date_time_iso_8601(),
|
|
553
553
|
created_at: factories.date_time_iso_8601(),
|
|
554
554
|
updated_at: factories.date_time_iso_8601(),
|
|
555
|
+
has_variants_that_requires_components: factories.boolean(),
|
|
555
556
|
}); },
|
|
556
557
|
'io.flow.shopify.external.v0.models.product_delete': function () { return ({
|
|
557
558
|
id: factories.long(),
|
|
@@ -1211,6 +1212,43 @@ var factories = {
|
|
|
1211
1212
|
}); },
|
|
1212
1213
|
'io.flow.stripe.v0.enums.account_type': function () { return faker_1.default.helpers.arrayElement(['platform', 'custom', 'standard', 'express']); },
|
|
1213
1214
|
'io.flow.stripe.v0.enums.apple_pay_type': function () { return faker_1.default.helpers.arrayElement(['apple_pay', 'apple_pay_later']); },
|
|
1215
|
+
'io.flow.stripe.v0.enums.bank_ideal': function () { return faker_1.default.helpers.arrayElement([
|
|
1216
|
+
'abn_amro',
|
|
1217
|
+
'asn_bank',
|
|
1218
|
+
'bunq',
|
|
1219
|
+
'handelsbanken',
|
|
1220
|
+
'ing',
|
|
1221
|
+
'knab',
|
|
1222
|
+
'moneyou',
|
|
1223
|
+
'n26',
|
|
1224
|
+
'nn',
|
|
1225
|
+
'rabobank',
|
|
1226
|
+
'regiobank',
|
|
1227
|
+
'revolut',
|
|
1228
|
+
'sns_bank',
|
|
1229
|
+
'triodos_bank',
|
|
1230
|
+
'van_lanschot',
|
|
1231
|
+
'yoursafe',
|
|
1232
|
+
]); },
|
|
1233
|
+
'io.flow.stripe.v0.enums.bic_ideal': function () { return faker_1.default.helpers.arrayElement([
|
|
1234
|
+
'ABNANL2A',
|
|
1235
|
+
'ASNBNL21',
|
|
1236
|
+
'BITSNL2A',
|
|
1237
|
+
'BUNQNL2A',
|
|
1238
|
+
'FVLBNL22',
|
|
1239
|
+
'HANDNL2A',
|
|
1240
|
+
'INGBNL2A',
|
|
1241
|
+
'KNABNL2H',
|
|
1242
|
+
'MOYONL21',
|
|
1243
|
+
'NNBANL2G',
|
|
1244
|
+
'NTSBDEB1',
|
|
1245
|
+
'RABONL2U',
|
|
1246
|
+
'RBRBNL21',
|
|
1247
|
+
'REVOIE23',
|
|
1248
|
+
'REVOLT21',
|
|
1249
|
+
'SNSBNL2A',
|
|
1250
|
+
'TRIONL2U',
|
|
1251
|
+
]); },
|
|
1214
1252
|
'io.flow.stripe.v0.enums.cancellation_reason': function () { return faker_1.default.helpers.arrayElement([
|
|
1215
1253
|
'abandoned',
|
|
1216
1254
|
'automatic',
|
|
@@ -1294,6 +1332,40 @@ var factories = {
|
|
|
1294
1332
|
'highest_risk_level',
|
|
1295
1333
|
'requested_block_on_incorrect_cvc',
|
|
1296
1334
|
]); },
|
|
1335
|
+
'io.flow.stripe.v0.enums.dispute_event_type': function () { return faker_1.default.helpers.arrayElement([
|
|
1336
|
+
'charge.dispute.closed',
|
|
1337
|
+
'charge.dispute.created',
|
|
1338
|
+
'charge.dispute.funds_reinstated',
|
|
1339
|
+
'charge.dispute.funds_withdrawn',
|
|
1340
|
+
'charge.dispute.updated',
|
|
1341
|
+
]); },
|
|
1342
|
+
'io.flow.stripe.v0.enums.dispute_payment_method_details_card_case_type': function () { return faker_1.default.helpers.arrayElement(['chargeback', 'inquiry']); },
|
|
1343
|
+
'io.flow.stripe.v0.enums.dispute_payment_method_details_type': function () { return faker_1.default.helpers.arrayElement(['card', 'klarna', 'paypal']); },
|
|
1344
|
+
'io.flow.stripe.v0.enums.dispute_reason': function () { return faker_1.default.helpers.arrayElement([
|
|
1345
|
+
'bank_cannot_process',
|
|
1346
|
+
'check_returned',
|
|
1347
|
+
'credit_not_processed',
|
|
1348
|
+
'customer_initiated',
|
|
1349
|
+
'debit_not_authorized',
|
|
1350
|
+
'duplicate',
|
|
1351
|
+
'fraudulent',
|
|
1352
|
+
'general',
|
|
1353
|
+
'incorrect_account_details',
|
|
1354
|
+
'insufficient_funds',
|
|
1355
|
+
'product_not_received',
|
|
1356
|
+
'product_unacceptable',
|
|
1357
|
+
'subscription_canceled',
|
|
1358
|
+
'unrecognized',
|
|
1359
|
+
]); },
|
|
1360
|
+
'io.flow.stripe.v0.enums.dispute_status': function () { return faker_1.default.helpers.arrayElement([
|
|
1361
|
+
'warning_needs_response',
|
|
1362
|
+
'warning_under_review',
|
|
1363
|
+
'warning_closed',
|
|
1364
|
+
'needs_response',
|
|
1365
|
+
'under_review',
|
|
1366
|
+
'won',
|
|
1367
|
+
'lost',
|
|
1368
|
+
]); },
|
|
1297
1369
|
'io.flow.stripe.v0.enums.error_code': function () { return faker_1.default.helpers.arrayElement([
|
|
1298
1370
|
'invalid_number',
|
|
1299
1371
|
'invalid_expiry_month',
|
|
@@ -1386,6 +1458,11 @@ var factories = {
|
|
|
1386
1458
|
'charge.succeeded',
|
|
1387
1459
|
'charge.updated',
|
|
1388
1460
|
'charge.refund.updated',
|
|
1461
|
+
'charge.dispute.closed',
|
|
1462
|
+
'charge.dispute.created',
|
|
1463
|
+
'charge.dispute.funds_reinstated',
|
|
1464
|
+
'charge.dispute.funds_withdrawn',
|
|
1465
|
+
'charge.dispute.updated',
|
|
1389
1466
|
'payment_intent.created',
|
|
1390
1467
|
'payment_intent.amount_capturable_updated',
|
|
1391
1468
|
'payment_intent.payment_failed',
|
|
@@ -1425,9 +1502,10 @@ var factories = {
|
|
|
1425
1502
|
'succeeded',
|
|
1426
1503
|
]); },
|
|
1427
1504
|
'io.flow.stripe.v0.enums.payment_method_category_klarna': function () { return faker_1.default.helpers.arrayElement(['pay_later', 'pay_now', 'pay_with_financing', 'pay_in_installments']); },
|
|
1428
|
-
'io.flow.stripe.v0.enums.payment_method_type': function () { return faker_1.default.helpers.arrayElement(['card', 'card_present', 'klarna']); },
|
|
1505
|
+
'io.flow.stripe.v0.enums.payment_method_type': function () { return faker_1.default.helpers.arrayElement(['card', 'card_present', 'ideal', 'klarna', 'bancontact']); },
|
|
1429
1506
|
'io.flow.stripe.v0.enums.payment_outcome_type': function () { return faker_1.default.helpers.arrayElement(['authorized', 'manual_review', 'issuer_declined', 'blocked', 'invalid']); },
|
|
1430
1507
|
'io.flow.stripe.v0.enums.payment_status': function () { return faker_1.default.helpers.arrayElement(['succeeded', 'pending', 'failed']); },
|
|
1508
|
+
'io.flow.stripe.v0.enums.preferred_language_bancontact': function () { return faker_1.default.helpers.arrayElement(['de', 'en', 'fr', 'nl']); },
|
|
1431
1509
|
'io.flow.stripe.v0.enums.preferred_locale_klarna': function () { return faker_1.default.helpers.arrayElement([
|
|
1432
1510
|
'de-AT',
|
|
1433
1511
|
'en-AT',
|
|
@@ -1726,6 +1804,48 @@ var factories = {
|
|
|
1726
1804
|
source: factories.string(),
|
|
1727
1805
|
description: factories.string(),
|
|
1728
1806
|
}); },
|
|
1807
|
+
'io.flow.stripe.v0.models.dispute': function () { return ({
|
|
1808
|
+
id: factories.string(),
|
|
1809
|
+
amount: factories.integer(),
|
|
1810
|
+
charge: factories.string(),
|
|
1811
|
+
currency: factories.string(),
|
|
1812
|
+
evidence: factories.object(),
|
|
1813
|
+
metadata: objectOf(function () { return factories.string(); }),
|
|
1814
|
+
payment_intent: factories.string(),
|
|
1815
|
+
reason: factories['io.flow.stripe.v0.enums.dispute_reason'](),
|
|
1816
|
+
status: factories['io.flow.stripe.v0.enums.dispute_status'](),
|
|
1817
|
+
object: factories.string(),
|
|
1818
|
+
balance_transactions: arrayOf(function () { return factories.object(); }),
|
|
1819
|
+
created: factories.long(),
|
|
1820
|
+
evidence_details: factories['io.flow.stripe.v0.models.dispute_evidence_details'](),
|
|
1821
|
+
is_charge_refundable: factories.boolean(),
|
|
1822
|
+
livemode: factories.boolean(),
|
|
1823
|
+
payment_method_details: factories['io.flow.stripe.v0.models.dispute_payment_method_details'](),
|
|
1824
|
+
}); },
|
|
1825
|
+
'io.flow.stripe.v0.models.dispute_evidence_details': function () { return ({
|
|
1826
|
+
due_by: factories.long(),
|
|
1827
|
+
has_evidence: factories.boolean(),
|
|
1828
|
+
past_due: factories.boolean(),
|
|
1829
|
+
submission_count: factories.integer(),
|
|
1830
|
+
}); },
|
|
1831
|
+
'io.flow.stripe.v0.models.dispute_payment_method_details': function () { return ({
|
|
1832
|
+
card: factories['io.flow.stripe.v0.models.dispute_payment_method_details_card'](),
|
|
1833
|
+
klarna: factories['io.flow.stripe.v0.models.dispute_payment_method_details_klarna'](),
|
|
1834
|
+
paypal: factories['io.flow.stripe.v0.models.dispute_payment_method_details_paypal'](),
|
|
1835
|
+
type: factories['io.flow.stripe.v0.enums.dispute_payment_method_details_type'](),
|
|
1836
|
+
}); },
|
|
1837
|
+
'io.flow.stripe.v0.models.dispute_payment_method_details_card': function () { return ({
|
|
1838
|
+
brand: factories.string(),
|
|
1839
|
+
case_type: factories['io.flow.stripe.v0.enums.dispute_payment_method_details_card_case_type'](),
|
|
1840
|
+
network_reason_code: factories.string(),
|
|
1841
|
+
}); },
|
|
1842
|
+
'io.flow.stripe.v0.models.dispute_payment_method_details_klarna': function () { return ({
|
|
1843
|
+
reason_code: factories.string(),
|
|
1844
|
+
}); },
|
|
1845
|
+
'io.flow.stripe.v0.models.dispute_payment_method_details_paypal': function () { return ({
|
|
1846
|
+
case_id: factories.string(),
|
|
1847
|
+
reason_code: factories.string(),
|
|
1848
|
+
}); },
|
|
1729
1849
|
'io.flow.stripe.v0.models.error': function () { return ({
|
|
1730
1850
|
error: factories['io.flow.stripe.v0.models.stripe_error'](),
|
|
1731
1851
|
}); },
|
|
@@ -1952,8 +2072,10 @@ var factories = {
|
|
|
1952
2072
|
id: factories.string(),
|
|
1953
2073
|
object: factories.string(),
|
|
1954
2074
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2075
|
+
bancontact: factories.object(),
|
|
1955
2076
|
card: factories['io.flow.stripe.v0.models.payment_method_card_details'](),
|
|
1956
2077
|
card_present: factories.object(),
|
|
2078
|
+
ideal: factories.object(),
|
|
1957
2079
|
klarna: factories.object(),
|
|
1958
2080
|
created: factories.long(),
|
|
1959
2081
|
customer: factories.string(),
|
|
@@ -1984,18 +2106,43 @@ var factories = {
|
|
|
1984
2106
|
number: factories.string(),
|
|
1985
2107
|
cvc: factories.string(),
|
|
1986
2108
|
}); },
|
|
2109
|
+
'io.flow.stripe.v0.models.payment_method_data_bancontact': function () { return ({
|
|
2110
|
+
type: 'bancontact',
|
|
2111
|
+
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2112
|
+
metadata: factories.object(),
|
|
2113
|
+
}); },
|
|
1987
2114
|
'io.flow.stripe.v0.models.payment_method_data_card': function () { return ({
|
|
1988
2115
|
type: 'card',
|
|
1989
2116
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
1990
2117
|
metadata: factories.object(),
|
|
1991
2118
|
card: factories['io.flow.stripe.v0.models.payment_method_card_form'](),
|
|
1992
2119
|
}); },
|
|
2120
|
+
'io.flow.stripe.v0.models.payment_method_data_ideal': function () { return ({
|
|
2121
|
+
type: 'ideal',
|
|
2122
|
+
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2123
|
+
metadata: factories.object(),
|
|
2124
|
+
ideal: factories['io.flow.stripe.v0.models.payment_method_ideal_form'](),
|
|
2125
|
+
}); },
|
|
1993
2126
|
'io.flow.stripe.v0.models.payment_method_data_klarna': function () { return ({
|
|
1994
2127
|
type: 'klarna',
|
|
1995
2128
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
1996
2129
|
metadata: factories.object(),
|
|
1997
2130
|
klarna: factories['io.flow.stripe.v0.models.payment_method_klarna_form'](),
|
|
1998
2131
|
}); },
|
|
2132
|
+
'io.flow.stripe.v0.models.payment_method_details_bancontact': function () { return ({
|
|
2133
|
+
type: 'bancontact',
|
|
2134
|
+
bancontact: factories['io.flow.stripe.v0.models.payment_method_details_bancontact_information'](),
|
|
2135
|
+
}); },
|
|
2136
|
+
'io.flow.stripe.v0.models.payment_method_details_bancontact_information': function () { return ({
|
|
2137
|
+
bank_code: factories.string(),
|
|
2138
|
+
bank_name: factories.string(),
|
|
2139
|
+
bic: factories.string(),
|
|
2140
|
+
generated_sepa_debit: factories.string(),
|
|
2141
|
+
generated_sepa_debit_mandate: factories.string(),
|
|
2142
|
+
iban_last4: factories.string(),
|
|
2143
|
+
preferred_language: factories['io.flow.stripe.v0.enums.preferred_language_bancontact'](),
|
|
2144
|
+
verified_name: factories.string(),
|
|
2145
|
+
}); },
|
|
1999
2146
|
'io.flow.stripe.v0.models.payment_method_details_card': function () { return ({
|
|
2000
2147
|
type: 'card',
|
|
2001
2148
|
card: factories['io.flow.stripe.v0.models.payment_method_details_card_information'](),
|
|
@@ -2025,6 +2172,18 @@ var factories = {
|
|
|
2025
2172
|
multicapture: factories['io.flow.stripe.v0.models.multicapture'](),
|
|
2026
2173
|
overcapture: factories['io.flow.stripe.v0.models.overcapture'](),
|
|
2027
2174
|
}); },
|
|
2175
|
+
'io.flow.stripe.v0.models.payment_method_details_ideal': function () { return ({
|
|
2176
|
+
type: 'ideal',
|
|
2177
|
+
ideal: factories['io.flow.stripe.v0.models.payment_method_details_ideal_information'](),
|
|
2178
|
+
}); },
|
|
2179
|
+
'io.flow.stripe.v0.models.payment_method_details_ideal_information': function () { return ({
|
|
2180
|
+
bank: factories['io.flow.stripe.v0.enums.bank_ideal'](),
|
|
2181
|
+
bic: factories['io.flow.stripe.v0.enums.bic_ideal'](),
|
|
2182
|
+
generated_sepa_debit: factories.string(),
|
|
2183
|
+
generated_sepa_debit_mandate: factories.string(),
|
|
2184
|
+
iban_last4: factories.string(),
|
|
2185
|
+
verified_name: factories.string(),
|
|
2186
|
+
}); },
|
|
2028
2187
|
'io.flow.stripe.v0.models.payment_method_details_klarna': function () { return ({
|
|
2029
2188
|
type: 'klarna',
|
|
2030
2189
|
klarna: factories['io.flow.stripe.v0.models.payment_method_details_klarna_information'](),
|
|
@@ -2033,24 +2192,47 @@ var factories = {
|
|
|
2033
2192
|
payment_method_category: factories['io.flow.stripe.v0.enums.payment_method_category_klarna'](),
|
|
2034
2193
|
preferred_locale: factories['io.flow.stripe.v0.enums.preferred_locale_klarna'](),
|
|
2035
2194
|
}); },
|
|
2195
|
+
'io.flow.stripe.v0.models.payment_method_form_bancontact': function () { return ({
|
|
2196
|
+
type: 'bancontact',
|
|
2197
|
+
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2198
|
+
metadata: factories.object(),
|
|
2199
|
+
bancontact: factories.object(),
|
|
2200
|
+
}); },
|
|
2036
2201
|
'io.flow.stripe.v0.models.payment_method_form_card': function () { return ({
|
|
2037
2202
|
type: 'card',
|
|
2038
2203
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2039
2204
|
metadata: factories.object(),
|
|
2040
2205
|
card: factories['io.flow.stripe.v0.models.payment_method_card_form'](),
|
|
2041
2206
|
}); },
|
|
2207
|
+
'io.flow.stripe.v0.models.payment_method_form_ideal': function () { return ({
|
|
2208
|
+
type: 'ideal',
|
|
2209
|
+
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2210
|
+
metadata: factories.object(),
|
|
2211
|
+
ideal: factories['io.flow.stripe.v0.models.payment_method_ideal_form'](),
|
|
2212
|
+
}); },
|
|
2042
2213
|
'io.flow.stripe.v0.models.payment_method_form_klarna': function () { return ({
|
|
2043
2214
|
type: 'klarna',
|
|
2044
2215
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2045
2216
|
metadata: factories.object(),
|
|
2046
2217
|
klarna: factories['io.flow.stripe.v0.models.payment_method_klarna_form'](),
|
|
2047
2218
|
}); },
|
|
2219
|
+
'io.flow.stripe.v0.models.payment_method_ideal_form': function () { return ({
|
|
2220
|
+
bank: factories.string(),
|
|
2221
|
+
}); },
|
|
2048
2222
|
'io.flow.stripe.v0.models.payment_method_klarna_form': function () { return ({
|
|
2049
2223
|
dob: factories['io.flow.stripe.v0.models.klarna_dob_form'](),
|
|
2050
2224
|
}); },
|
|
2051
2225
|
'io.flow.stripe.v0.models.payment_method_options': function () { return ({
|
|
2052
2226
|
card: factories['io.flow.stripe.v0.models.payment_method_options_card'](),
|
|
2227
|
+
ideal: factories['io.flow.stripe.v0.models.payment_method_options_ideal'](),
|
|
2053
2228
|
klarna: factories['io.flow.stripe.v0.models.payment_method_options_klarna'](),
|
|
2229
|
+
bancontact: factories['io.flow.stripe.v0.models.payment_method_options_bancontact'](),
|
|
2230
|
+
}); },
|
|
2231
|
+
'io.flow.stripe.v0.models.payment_method_options_bancontact': function () { return ({
|
|
2232
|
+
preferred_language: factories['io.flow.stripe.v0.enums.preferred_language_bancontact'](),
|
|
2233
|
+
}); },
|
|
2234
|
+
'io.flow.stripe.v0.models.payment_method_options_bancontact_form': function () { return ({
|
|
2235
|
+
preferred_language: factories['io.flow.stripe.v0.enums.preferred_language_bancontact'](),
|
|
2054
2236
|
}); },
|
|
2055
2237
|
'io.flow.stripe.v0.models.payment_method_options_card': function () { return ({
|
|
2056
2238
|
network: factories.string(),
|
|
@@ -2067,7 +2249,15 @@ var factories = {
|
|
|
2067
2249
|
}); },
|
|
2068
2250
|
'io.flow.stripe.v0.models.payment_method_options_form': function () { return ({
|
|
2069
2251
|
card: factories['io.flow.stripe.v0.models.payment_method_options_card_form'](),
|
|
2252
|
+
ideal: factories['io.flow.stripe.v0.models.payment_method_options_ideal_form'](),
|
|
2070
2253
|
klarna: factories['io.flow.stripe.v0.models.payment_method_options_klarna_form'](),
|
|
2254
|
+
bancontact: factories['io.flow.stripe.v0.models.payment_method_options_bancontact_form'](),
|
|
2255
|
+
}); },
|
|
2256
|
+
'io.flow.stripe.v0.models.payment_method_options_ideal': function () { return ({
|
|
2257
|
+
setup_future_usage: factories['io.flow.stripe.v0.enums.setup_future_usage'](),
|
|
2258
|
+
}); },
|
|
2259
|
+
'io.flow.stripe.v0.models.payment_method_options_ideal_form': function () { return ({
|
|
2260
|
+
setup_future_usage: factories['io.flow.stripe.v0.enums.setup_future_usage'](),
|
|
2071
2261
|
}); },
|
|
2072
2262
|
'io.flow.stripe.v0.models.payment_method_options_klarna': function () { return ({
|
|
2073
2263
|
capture_method: factories['io.flow.stripe.v0.enums.capture_method'](),
|
|
@@ -2261,6 +2451,22 @@ var factories = {
|
|
|
2261
2451
|
three_ds_optimizations: factories.string(),
|
|
2262
2452
|
directory_server_encryption: factories.object(),
|
|
2263
2453
|
}); },
|
|
2454
|
+
'io.flow.stripe.v0.models.stripe_dispute_event': function () { return ({
|
|
2455
|
+
id: factories.string(),
|
|
2456
|
+
api_version: factories.string(),
|
|
2457
|
+
data: factories['io.flow.stripe.v0.models.stripe_dispute_event_data'](),
|
|
2458
|
+
request: factories.object(),
|
|
2459
|
+
type: factories['io.flow.stripe.v0.enums.dispute_event_type'](),
|
|
2460
|
+
object: factories.string(),
|
|
2461
|
+
account: factories.string(),
|
|
2462
|
+
created: factories.long(),
|
|
2463
|
+
livemode: factories.boolean(),
|
|
2464
|
+
pending_webhooks: factories.integer(),
|
|
2465
|
+
}); },
|
|
2466
|
+
'io.flow.stripe.v0.models.stripe_dispute_event_data': function () { return ({
|
|
2467
|
+
object: factories['io.flow.stripe.v0.models.dispute'](),
|
|
2468
|
+
previous_attributes: factories.object(),
|
|
2469
|
+
}); },
|
|
2264
2470
|
'io.flow.stripe.v0.models.stripe_error': function () { return ({
|
|
2265
2471
|
type: factories['io.flow.stripe.v0.enums.error_type'](),
|
|
2266
2472
|
charge: factories.string(),
|
|
@@ -2353,21 +2559,27 @@ var factories = {
|
|
|
2353
2559
|
'io.flow.stripe.v0.unions.payment_method_data': function () {
|
|
2354
2560
|
var f = faker_1.default.helpers.arrayElement([
|
|
2355
2561
|
function () { return factories['io.flow.stripe.v0.models.payment_method_data_card'](); },
|
|
2562
|
+
function () { return factories['io.flow.stripe.v0.models.payment_method_data_ideal'](); },
|
|
2356
2563
|
function () { return factories['io.flow.stripe.v0.models.payment_method_data_klarna'](); },
|
|
2564
|
+
function () { return factories['io.flow.stripe.v0.models.payment_method_data_bancontact'](); },
|
|
2357
2565
|
]);
|
|
2358
2566
|
return f();
|
|
2359
2567
|
},
|
|
2360
2568
|
'io.flow.stripe.v0.unions.payment_method_details': function () {
|
|
2361
2569
|
var f = faker_1.default.helpers.arrayElement([
|
|
2362
2570
|
function () { return factories['io.flow.stripe.v0.models.payment_method_details_card'](); },
|
|
2571
|
+
function () { return factories['io.flow.stripe.v0.models.payment_method_details_ideal'](); },
|
|
2363
2572
|
function () { return factories['io.flow.stripe.v0.models.payment_method_details_klarna'](); },
|
|
2573
|
+
function () { return factories['io.flow.stripe.v0.models.payment_method_details_bancontact'](); },
|
|
2364
2574
|
]);
|
|
2365
2575
|
return f();
|
|
2366
2576
|
},
|
|
2367
2577
|
'io.flow.stripe.v0.unions.payment_method_form': function () {
|
|
2368
2578
|
var f = faker_1.default.helpers.arrayElement([
|
|
2369
2579
|
function () { return factories['io.flow.stripe.v0.models.payment_method_form_card'](); },
|
|
2580
|
+
function () { return factories['io.flow.stripe.v0.models.payment_method_form_ideal'](); },
|
|
2370
2581
|
function () { return factories['io.flow.stripe.v0.models.payment_method_form_klarna'](); },
|
|
2582
|
+
function () { return factories['io.flow.stripe.v0.models.payment_method_form_bancontact'](); },
|
|
2371
2583
|
]);
|
|
2372
2584
|
return f();
|
|
2373
2585
|
},
|
|
@@ -2887,6 +3099,7 @@ var factories = {
|
|
|
2887
3099
|
'business_street_address_is_po_box',
|
|
2888
3100
|
'exception_merchant',
|
|
2889
3101
|
'application_missing',
|
|
3102
|
+
'missing_logistics_contact_info',
|
|
2890
3103
|
]); },
|
|
2891
3104
|
'io.flow.v0.enums.onboarding_trade_sector': function () { return faker_1.default.helpers.arrayElement([
|
|
2892
3105
|
'accessories',
|
|
@@ -3055,6 +3268,7 @@ var factories = {
|
|
|
3055
3268
|
'order_missing_information',
|
|
3056
3269
|
'order_domestic',
|
|
3057
3270
|
'order_mismatched_currencies',
|
|
3271
|
+
'order_missing',
|
|
3058
3272
|
]); },
|
|
3059
3273
|
'io.flow.v0.enums.payment_request_review_status': function () { return faker_1.default.helpers.arrayElement(['pending', 'approved', 'rejected']); },
|
|
3060
3274
|
'io.flow.v0.enums.payment_source_confirmation_action_type': function () { return faker_1.default.helpers.arrayElement(['cvv', 'billing_address', 'number']); },
|
|
@@ -9177,6 +9391,14 @@ var factories = {
|
|
|
9177
9391
|
discriminator: 'payment_processor_reference',
|
|
9178
9392
|
processor: factories.string(),
|
|
9179
9393
|
}); },
|
|
9394
|
+
'io.flow.v0.models.payment_processor_transaction_details_apm': function () { return ({
|
|
9395
|
+
discriminator: 'apm',
|
|
9396
|
+
transaction_identifier: factories.string(),
|
|
9397
|
+
capture_identifier: factories.string(),
|
|
9398
|
+
method_type: factories.string(),
|
|
9399
|
+
result_status: factories.string(),
|
|
9400
|
+
reason_code: factories.string(),
|
|
9401
|
+
}); },
|
|
9180
9402
|
'io.flow.v0.models.payment_processor_transaction_details_card': function () { return ({
|
|
9181
9403
|
discriminator: 'card',
|
|
9182
9404
|
transaction_identifier: factories.string(),
|
|
@@ -9253,6 +9475,10 @@ var factories = {
|
|
|
9253
9475
|
payment_request: factories['io.flow.v0.models.payment_request_form'](),
|
|
9254
9476
|
billing: factories['io.flow.v0.models.payment_request_billing'](),
|
|
9255
9477
|
}); },
|
|
9478
|
+
'io.flow.v0.models.payment_request_cancellation_reason_order_missing': function () { return ({
|
|
9479
|
+
type: 'order_missing',
|
|
9480
|
+
description: factories.string(),
|
|
9481
|
+
}); },
|
|
9256
9482
|
'io.flow.v0.models.payment_request_deleted': function () { return ({
|
|
9257
9483
|
discriminator: 'payment_request_deleted',
|
|
9258
9484
|
event_id: factories.string(),
|
|
@@ -9374,6 +9600,7 @@ var factories = {
|
|
|
9374
9600
|
'io.flow.v0.models.paypal_authorization_details': function () { return ({
|
|
9375
9601
|
discriminator: 'paypal_authorization_details',
|
|
9376
9602
|
payment_id: factories.string(),
|
|
9603
|
+
internal_payment_id: factories.string(),
|
|
9377
9604
|
payment_method: factories.string(),
|
|
9378
9605
|
payment_state: factories.string(),
|
|
9379
9606
|
payer_id: factories.string(),
|
|
@@ -10241,6 +10468,10 @@ var factories = {
|
|
|
10241
10468
|
'io.flow.v0.models.region_setting_form': function () { return ({
|
|
10242
10469
|
status: factories['io.flow.v0.enums.availability_status'](),
|
|
10243
10470
|
}); },
|
|
10471
|
+
'io.flow.v0.models.rejection_put_form': function () { return ({
|
|
10472
|
+
reason: factories['io.flow.v0.enums.merchant_rejected_reason'](),
|
|
10473
|
+
description: factories.string(),
|
|
10474
|
+
}); },
|
|
10244
10475
|
'io.flow.v0.models.remote_area_by_weight_service_fee': function () { return ({
|
|
10245
10476
|
discriminator: 'remote_area_by_weight_service_fee',
|
|
10246
10477
|
amount: factories['io.flow.v0.models.money'](),
|
|
@@ -11902,7 +12133,7 @@ var factories = {
|
|
|
11902
12133
|
discriminator: 'channel',
|
|
11903
12134
|
method: factories.string(),
|
|
11904
12135
|
card: factories['io.flow.v0.models.transaction_metadata_channel_card_metadata'](),
|
|
11905
|
-
organization_transaction: factories['io.flow.v0.models.
|
|
12136
|
+
organization_transaction: factories['io.flow.v0.models.transaction_metadata_channel_organization_transaction'](),
|
|
11906
12137
|
}); },
|
|
11907
12138
|
'io.flow.v0.models.transaction_metadata_channel_card_metadata': function () { return ({
|
|
11908
12139
|
type: factories['io.flow.v0.enums.card_type'](),
|
|
@@ -11912,6 +12143,10 @@ var factories = {
|
|
|
11912
12143
|
iin: factories.string(),
|
|
11913
12144
|
country: factories.string(),
|
|
11914
12145
|
}); },
|
|
12146
|
+
'io.flow.v0.models.transaction_metadata_channel_organization_transaction': function () { return ({
|
|
12147
|
+
id: factories.string(),
|
|
12148
|
+
metadata: factories['io.flow.v0.models.transaction_metadata_payment_transaction'](),
|
|
12149
|
+
}); },
|
|
11915
12150
|
'io.flow.v0.models.transaction_metadata_failed_payout': function () { return ({
|
|
11916
12151
|
discriminator: 'failed_payout',
|
|
11917
12152
|
failed_payout: factories['io.flow.v0.models.transaction_metadata_failed_payout_reference'](),
|
|
@@ -13006,6 +13241,13 @@ var factories = {
|
|
|
13006
13241
|
'io.flow.v0.unions.payment_processor_transaction_details': function () {
|
|
13007
13242
|
var f = faker_1.default.helpers.arrayElement([
|
|
13008
13243
|
function () { return factories['io.flow.v0.models.payment_processor_transaction_details_card'](); },
|
|
13244
|
+
function () { return factories['io.flow.v0.models.payment_processor_transaction_details_apm'](); },
|
|
13245
|
+
]);
|
|
13246
|
+
return f();
|
|
13247
|
+
},
|
|
13248
|
+
'io.flow.v0.unions.payment_request_cancellation_reason': function () {
|
|
13249
|
+
var f = faker_1.default.helpers.arrayElement([
|
|
13250
|
+
function () { return factories['io.flow.v0.models.payment_request_cancellation_reason_order_missing'](); },
|
|
13009
13251
|
]);
|
|
13010
13252
|
return f();
|
|
13011
13253
|
},
|
|
@@ -15580,6 +15822,8 @@ var makePaymentProcessorReference = function () { return factories['io.flow.v0.m
|
|
|
15580
15822
|
exports.makePaymentProcessorReference = makePaymentProcessorReference;
|
|
15581
15823
|
var makePaymentProcessorTransactionDetails = function () { return factories['io.flow.v0.unions.payment_processor_transaction_details'](); };
|
|
15582
15824
|
exports.makePaymentProcessorTransactionDetails = makePaymentProcessorTransactionDetails;
|
|
15825
|
+
var makePaymentProcessorTransactionDetailsApm = function () { return factories['io.flow.v0.models.payment_processor_transaction_details_apm'](); };
|
|
15826
|
+
exports.makePaymentProcessorTransactionDetailsApm = makePaymentProcessorTransactionDetailsApm;
|
|
15583
15827
|
var makePaymentProcessorTransactionDetailsCard = function () { return factories['io.flow.v0.models.payment_processor_transaction_details_card'](); };
|
|
15584
15828
|
exports.makePaymentProcessorTransactionDetailsCard = makePaymentProcessorTransactionDetailsCard;
|
|
15585
15829
|
var makePaymentReference = function () { return factories['io.flow.v0.models.payment_reference'](); };
|
|
@@ -15602,6 +15846,10 @@ var makePaymentRequestBundle = function () { return factories['io.flow.v0.models
|
|
|
15602
15846
|
exports.makePaymentRequestBundle = makePaymentRequestBundle;
|
|
15603
15847
|
var makePaymentRequestBundleForm = function () { return factories['io.flow.v0.models.payment_request_bundle_form'](); };
|
|
15604
15848
|
exports.makePaymentRequestBundleForm = makePaymentRequestBundleForm;
|
|
15849
|
+
var makePaymentRequestCancellationReason = function () { return factories['io.flow.v0.unions.payment_request_cancellation_reason'](); };
|
|
15850
|
+
exports.makePaymentRequestCancellationReason = makePaymentRequestCancellationReason;
|
|
15851
|
+
var makePaymentRequestCancellationReasonOrderMissing = function () { return factories['io.flow.v0.models.payment_request_cancellation_reason_order_missing'](); };
|
|
15852
|
+
exports.makePaymentRequestCancellationReasonOrderMissing = makePaymentRequestCancellationReasonOrderMissing;
|
|
15605
15853
|
var makePaymentRequestDeleted = function () { return factories['io.flow.v0.models.payment_request_deleted'](); };
|
|
15606
15854
|
exports.makePaymentRequestDeleted = makePaymentRequestDeleted;
|
|
15607
15855
|
var makePaymentRequestForm = function () { return factories['io.flow.v0.models.payment_request_form'](); };
|
|
@@ -15972,6 +16220,8 @@ var makeRegionSettingForm = function () { return factories['io.flow.v0.models.re
|
|
|
15972
16220
|
exports.makeRegionSettingForm = makeRegionSettingForm;
|
|
15973
16221
|
var makeRegionType = function () { return factories['io.flow.v0.enums.region_type'](); };
|
|
15974
16222
|
exports.makeRegionType = makeRegionType;
|
|
16223
|
+
var makeRejectionPutForm = function () { return factories['io.flow.v0.models.rejection_put_form'](); };
|
|
16224
|
+
exports.makeRejectionPutForm = makeRejectionPutForm;
|
|
15975
16225
|
var makeRemoteAreaByWeightServiceFee = function () { return factories['io.flow.v0.models.remote_area_by_weight_service_fee'](); };
|
|
15976
16226
|
exports.makeRemoteAreaByWeightServiceFee = makeRemoteAreaByWeightServiceFee;
|
|
15977
16227
|
var makeRemoteAreaRatecardFee = function () { return factories['io.flow.v0.models.remote_area_ratecard_fee'](); };
|
|
@@ -16626,6 +16876,8 @@ var makeTransactionMetadataChannelCardMetadata = function () { return factories[
|
|
|
16626
16876
|
exports.makeTransactionMetadataChannelCardMetadata = makeTransactionMetadataChannelCardMetadata;
|
|
16627
16877
|
var makeTransactionMetadataChannelCardMetadataIssuerSummary = function () { return factories['io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary'](); };
|
|
16628
16878
|
exports.makeTransactionMetadataChannelCardMetadataIssuerSummary = makeTransactionMetadataChannelCardMetadataIssuerSummary;
|
|
16879
|
+
var makeTransactionMetadataChannelOrganizationTransaction = function () { return factories['io.flow.v0.models.transaction_metadata_channel_organization_transaction'](); };
|
|
16880
|
+
exports.makeTransactionMetadataChannelOrganizationTransaction = makeTransactionMetadataChannelOrganizationTransaction;
|
|
16629
16881
|
var makeTransactionMetadataFailedPayout = function () { return factories['io.flow.v0.models.transaction_metadata_failed_payout'](); };
|
|
16630
16882
|
exports.makeTransactionMetadataFailedPayout = makeTransactionMetadataFailedPayout;
|
|
16631
16883
|
var makeTransactionMetadataFailedPayoutReference = function () { return factories['io.flow.v0.models.transaction_metadata_failed_payout_reference'](); };
|