@flowio/api-factories 0.0.108 → 0.0.109
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 +875 -3315
- package/dist/esm/api.js +865 -3306
- package/dist/types/api.d.ts +1 -0
- package/package.json +2 -2
- package/src/api.ts +925 -3872
package/dist/cjs/api.js
CHANGED
|
@@ -29,15 +29,15 @@ exports.makePaymentPaymentMethod = exports.makePaymentOrderReference = exports.m
|
|
|
29
29
|
exports.makePayoutStatusScheduled = 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 = void 0;
|
|
30
30
|
exports.makePriceSourceProvided = exports.makePriceSourcePriceBookReference = exports.makePriceSourcePriceBook = exports.makePriceSourceCatalog = exports.makePriceSource = 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.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.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 = void 0;
|
|
31
31
|
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.makeProductUpdated = exports.makeProductTaxonomyData = exports.makeProductTaxonomyCategory = exports.makeProductRestrictionRule = exports.makeProductRestrictionResultUpserted = exports.makeProductRestrictionResultDeleted = exports.makeProductRestrictionResult = exports.makeProductInserted = exports.makeProductDeleted = exports.makeProduct = exports.makeProcessingEstimate = exports.makePricingVersion = exports.makePricingUpserted = exports.makePricingSettings = exports.makePricingLevySetting = exports.makePricingDeleted = exports.makePricing = exports.makePriceWithBaseAndDetails = exports.makePriceWithBase = void 0;
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.makeZone = exports.makeZeroAmountIndicator = exports.makeWithholdingDeductionType = exports.makeWithholdingDeduction = exports.makeWebhookStatus = exports.makeWebhookSettings = exports.makeWebhookResponse = exports.makeWebhookRequestReference = exports.makeWebhookRequest = 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 = void 0;
|
|
32
|
+
exports.makeRefundIdentifierUpserted = exports.makeRefundIdentifierDeleted = exports.makeRefundIdentifier = exports.makeRefundForm = exports.makeRefundFailureCategory = 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.makeRatecardFeeSummary = 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 = void 0;
|
|
33
|
+
exports.makeReversalStatus = exports.makeReversalPutForm = exports.makeReversalForm = exports.makeReversalErrorCode = exports.makeReversalError = exports.makeReversalDeleted = exports.makeReversal = exports.makeReturnVersion = 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.makeReturn = exports.makeRestrictedReviewStatus = 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 = void 0;
|
|
34
|
+
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 = exports.makeSessionFormat = exports.makeSessionForm = exports.makeSessionExpirationConfig = exports.makeSessionCurrencyFormat = 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.makeRouteAudit = exports.makeRoundingType = exports.makeRoundingMethod = exports.makeRounding = exports.makeRomanizationForm = exports.makeRomanization = exports.makeRole = exports.makeRohanItemUpserted = exports.makeRohanItemDeleted = exports.makeReviewStatus = exports.makeReversalVersion = exports.makeReversalUpserted = void 0;
|
|
35
|
+
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 = 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.makeShippingLabelErrorCode = exports.makeShippingLabelError = 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 = void 0;
|
|
36
|
+
exports.makeSubcatalogDeleted = exports.makeSubcatalog = exports.makeStripeAuthorizationResultActionDetails = exports.makeStripeAuthenticationDataForm = exports.makeStripeAuthenticationData = exports.makeStrategy = exports.makeStoredMethodUsageStep = exports.makeStatementUpserted = exports.makeStatementDeleted = exports.makeStatementAttachmentType = exports.makeStatement = exports.makeSortDirection = exports.makeSolidusVariantExportType = exports.makeSolidusProductExportType = 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 = void 0;
|
|
37
|
+
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.makeTaxDutyTransactionReasonCode = exports.makeTaxApplicability = exports.makeTax = exports.makeSurchargeSettingDisplay = exports.makeSurchargeSetting = exports.makeSurchargeResponsiblePartyDisplay = exports.makeSurchargeResponsibleParty = exports.makeSummaryShippingNotificationForm = exports.makeSummaryShippingLabelForm = exports.makeSuggestion = exports.makeSubstatusCode = exports.makeSubcatalogVersion = exports.makeSubcatalogUpserted = exports.makeSubcatalogStatistics = exports.makeSubcatalogSettingsForm = exports.makeSubcatalogSettings = exports.makeSubcatalogReference = exports.makeSubcatalogItemVersion = exports.makeSubcatalogItemUpserted = exports.makeSubcatalogItemStatus = exports.makeSubcatalogItemDeleted = exports.makeSubcatalogItem = exports.makeSubcatalogForm = void 0;
|
|
38
|
+
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 = exports.makeTierStrategy = exports.makeTierSettings = exports.makeTierRuleVersion = exports.makeTierRuleOutcomeForm = exports.makeTierRuleOutcome = exports.makeTierRuleForm = exports.makeTierRule = exports.makeTierReference = void 0;
|
|
39
|
+
exports.makeUserVersion = exports.makeUserStatus = exports.makeUserReference = exports.makeUserPutForm = exports.makeUserForm = exports.makeUser = exports.makeUpload = 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.makeTransferUpserted = exports.makeTransferType = exports.makeTransferStatus = exports.makeTransferReference = exports.makeTransferDeleted = exports.makeTransfer = exports.makeTransactionUpserted = exports.makeTransactionSource = exports.makeTransactionReference = exports.makeTransactionNetworkDetailsCard = exports.makeTransactionMetadataTrueupSurchargeData = exports.makeTransactionMetadataTrueupSurcharge = exports.makeTransactionMetadataTrueupData = exports.makeTransactionMetadataTrueupBaseData = exports.makeTransactionMetadataTrueupBase = exports.makeTransactionMetadataTrueup = exports.makeTransactionMetadataTaxDuty = exports.makeTransactionMetadataShippingLabelCarrier = exports.makeTransactionMetadataShippingLabel = exports.makeTransactionMetadataPaymentTransaction = exports.makeTransactionMetadataOutboundTransaction = exports.makeTransactionMetadataOriginalTransaction = exports.makeTransactionMetadataManual = exports.makeTransactionMetadataFailedPayoutReference = void 0;
|
|
40
|
+
exports.makeZone = exports.makeZeroAmountIndicator = exports.makeWithholdingDeductionType = exports.makeWithholdingDeduction = exports.makeWebhookStatus = exports.makeWebhookSettings = exports.makeWebhookResponse = exports.makeWebhookRequestReference = exports.makeWebhookRequest = 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 = void 0;
|
|
41
41
|
var faker_1 = __importDefault(require("@faker-js/faker"));
|
|
42
42
|
var arrayOf = function (f) {
|
|
43
43
|
var length = 3;
|
|
@@ -470,6 +470,7 @@ var factories = {
|
|
|
470
470
|
'order_missing',
|
|
471
471
|
]); },
|
|
472
472
|
'io.flow.channel.internal.v0.enums.channel_order_acceptance_status': function () { return faker_1.default.helpers.arrayElement(['accepted', 'rejected', 'review', 'edit_review', 'edit_accepted']); },
|
|
473
|
+
'io.flow.channel.internal.v0.enums.order_payment_source_type': function () { return faker_1.default.helpers.arrayElement(['globale', 'third_party']); },
|
|
473
474
|
'io.flow.channel.internal.v0.models.channel_currency_form': function () { return ({
|
|
474
475
|
currency: factories.string(),
|
|
475
476
|
channel_id: factories.string(),
|
|
@@ -508,7 +509,7 @@ var factories = {
|
|
|
508
509
|
order_created_at: factories.date_time_iso_8601(),
|
|
509
510
|
order_updated_at: factories.date_time_iso_8601(),
|
|
510
511
|
order_edit_summary: factories['io.flow.channel.internal.v0.models.order_edit_summary'](),
|
|
511
|
-
payment_source: factories['io.flow.
|
|
512
|
+
payment_source: factories['io.flow.channel.internal.v0.enums.order_payment_source_type'](),
|
|
512
513
|
}); },
|
|
513
514
|
'io.flow.channel.internal.v0.models.channel_order_acceptance_details': function () { return ({
|
|
514
515
|
order_acceptance: factories['io.flow.channel.internal.v0.models.channel_order_acceptance'](),
|
|
@@ -1068,3439 +1069,1097 @@ var factories = {
|
|
|
1068
1069
|
code: factories['io.flow.error.v0.enums.generic_error_code'](),
|
|
1069
1070
|
messages: arrayOf(function () { return factories.string(); }),
|
|
1070
1071
|
}); },
|
|
1071
|
-
'io.flow.
|
|
1072
|
-
|
|
1073
|
-
'
|
|
1074
|
-
'
|
|
1075
|
-
'
|
|
1076
|
-
'
|
|
1077
|
-
'
|
|
1078
|
-
'
|
|
1079
|
-
'
|
|
1080
|
-
'
|
|
1081
|
-
'
|
|
1082
|
-
'
|
|
1083
|
-
|
|
1084
|
-
'io.flow.experience.v0.enums.credit_payment_error_code': function () { return faker_1.default.helpers.arrayElement([
|
|
1085
|
-
'generic_error',
|
|
1086
|
-
'invalid_order_number',
|
|
1087
|
-
'invalid_currency',
|
|
1088
|
-
'invalid_description',
|
|
1089
|
-
'duplicate',
|
|
1090
|
-
'amount_must_be_positive',
|
|
1091
|
-
'amount_exceeds_balance',
|
|
1092
|
-
'insufficient_amount',
|
|
1093
|
-
]); },
|
|
1094
|
-
'io.flow.experience.v0.enums.delivered_duty_display_type': function () { return faker_1.default.helpers.arrayElement(['all', 'single']); },
|
|
1095
|
-
'io.flow.experience.v0.enums.discount_rule_status': function () { return faker_1.default.helpers.arrayElement(['active', 'scheduled', 'expired']); },
|
|
1096
|
-
'io.flow.experience.v0.enums.discount_rule_subsidy_target': function () { return faker_1.default.helpers.arrayElement(['vat', 'duty']); },
|
|
1097
|
-
'io.flow.experience.v0.enums.experience_clone_status': function () { return faker_1.default.helpers.arrayElement(['pending', 'updating', 'completed', 'failed']); },
|
|
1098
|
-
'io.flow.experience.v0.enums.experience_country_status': function () { return faker_1.default.helpers.arrayElement(['enabled', 'disabled']); },
|
|
1099
|
-
'io.flow.experience.v0.enums.experience_payment_method_tag': function () { return faker_1.default.helpers.arrayElement(['display']); },
|
|
1100
|
-
'io.flow.experience.v0.enums.experience_status': function () { return faker_1.default.helpers.arrayElement(['draft', 'active', 'archiving', 'archived']); },
|
|
1101
|
-
'io.flow.experience.v0.enums.incoterm_configuration': function () { return faker_1.default.helpers.arrayElement(['DDP', 'DAP', 'DDU', 'UNSUPPORTED']); },
|
|
1102
|
-
'io.flow.experience.v0.enums.order_error_code': function () { return faker_1.default.helpers.arrayElement([
|
|
1103
|
-
'generic_error',
|
|
1104
|
-
'order_item_not_available',
|
|
1105
|
-
'order_identifier_error',
|
|
1106
|
-
'authorization_invalid',
|
|
1107
|
-
'domestic_shipping_unavailable',
|
|
1108
|
-
'shipping_unavailable',
|
|
1109
|
-
'value_threshold_exceeded',
|
|
1110
|
-
'invalid_currency',
|
|
1111
|
-
'invalid_country',
|
|
1112
|
-
'invalid_region',
|
|
1113
|
-
'invalid_language',
|
|
1114
|
-
'item_out_of_stock',
|
|
1115
|
-
'gift_card_not_accepted',
|
|
1116
|
-
'total_changed',
|
|
1117
|
-
]); },
|
|
1118
|
-
'io.flow.experience.v0.enums.order_payment_source_type': function () { return faker_1.default.helpers.arrayElement(['globale', 'third_party']); },
|
|
1119
|
-
'io.flow.experience.v0.enums.order_payment_type': function () { return faker_1.default.helpers.arrayElement([
|
|
1120
|
-
'card',
|
|
1121
|
-
'online',
|
|
1122
|
-
'credit',
|
|
1123
|
-
'external',
|
|
1124
|
-
'subsidized',
|
|
1125
|
-
'installment_plan',
|
|
1126
|
-
'cash_on_delivery',
|
|
1072
|
+
'io.flow.fulfillment.v0.enums.center_capability': function () { return faker_1.default.helpers.arrayElement(['international', 'domestic', 'crossdock', 'commercial_invoice']); },
|
|
1073
|
+
'io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key': function () { return faker_1.default.helpers.arrayElement([
|
|
1074
|
+
'ratecard_base_cost',
|
|
1075
|
+
'ratecard_ddp_fee',
|
|
1076
|
+
'ratecard_fuel_surcharge',
|
|
1077
|
+
'ratecard_oversized_shipment_fee',
|
|
1078
|
+
'ratecard_rural_shipment_fee',
|
|
1079
|
+
'ratecard_emergency_situation_surcharge_fee',
|
|
1080
|
+
'ratecard_peak_surcharge_fee',
|
|
1081
|
+
'ratecard_duties_taxes_paid_surcharge_fee',
|
|
1082
|
+
'center_commercial_invoice_fee',
|
|
1083
|
+
'center_inbound_carton_fee',
|
|
1084
|
+
'center_outbound_carton_fee',
|
|
1127
1085
|
]); },
|
|
1128
|
-
'io.flow.
|
|
1129
|
-
'io.flow.
|
|
1130
|
-
'io.flow.
|
|
1131
|
-
'io.flow.
|
|
1132
|
-
'io.flow.
|
|
1133
|
-
'io.flow.
|
|
1134
|
-
'io.flow.
|
|
1135
|
-
'io.flow.
|
|
1136
|
-
'io.flow.
|
|
1137
|
-
'io.flow.
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
'io.flow.
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
'io.flow.
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
'io.flow.experience.v0.models.address_configuration_province': function () { return ({
|
|
1152
|
-
value: factories.string(),
|
|
1153
|
-
name: factories.string(),
|
|
1154
|
-
translations: arrayOf(function () { return factories['io.flow.experience.v0.models.address_configuration_province_translation'](); }),
|
|
1155
|
-
}); },
|
|
1156
|
-
'io.flow.experience.v0.models.address_configuration_province_translation': function () { return ({
|
|
1157
|
-
locale: factories['io.flow.experience.v0.models.address_configuration_province_translation_locale'](),
|
|
1158
|
-
name: factories.string(),
|
|
1159
|
-
}); },
|
|
1160
|
-
'io.flow.experience.v0.models.address_configuration_province_translation_locale': function () { return ({
|
|
1161
|
-
id: factories.string(),
|
|
1162
|
-
name: factories.string(),
|
|
1163
|
-
language: factories.string(),
|
|
1164
|
-
}); },
|
|
1165
|
-
'io.flow.experience.v0.models.address_field_validation': function () { return ({
|
|
1166
|
-
first_name: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1167
|
-
last_name: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1168
|
-
street_1: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1169
|
-
street_2: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1170
|
-
city: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1171
|
-
province: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1172
|
-
postal: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1173
|
-
phone: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1174
|
-
vat_registration_number: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1175
|
-
}); },
|
|
1176
|
-
'io.flow.experience.v0.models.allocation': function () { return ({
|
|
1177
|
-
order: factories['io.flow.experience.v0.models.allocation_order_summary'](),
|
|
1178
|
-
details: arrayOf(function () { return factories['io.flow.experience.v0.unions.allocation_detail'](); }),
|
|
1179
|
-
}); },
|
|
1180
|
-
'io.flow.experience.v0.models.allocation_detail_component': function () { return ({
|
|
1181
|
-
discriminator: 'allocation_detail_component',
|
|
1182
|
-
key: factories['io.flow.order.price.v0.enums.order_price_detail_component_key'](),
|
|
1183
|
-
total: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1184
|
-
price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1185
|
-
}); },
|
|
1186
|
-
'io.flow.experience.v0.models.allocation_levy_component': function () { return ({
|
|
1187
|
-
discriminator: 'allocation_levy_component',
|
|
1188
|
-
key: factories['io.flow.order.price.v0.enums.order_price_detail_component_key'](),
|
|
1189
|
-
total: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1190
|
-
rate: factories.decimal(),
|
|
1191
|
-
name: factories.string(),
|
|
1192
|
-
price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1193
|
-
accuracy: factories['io.flow.price.v0.enums.price_accuracy'](),
|
|
1194
|
-
basis: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1086
|
+
'io.flow.fulfillment.v0.enums.delivery_option_cost_detail_source': function () { return faker_1.default.helpers.arrayElement(['center', 'ratecard']); },
|
|
1087
|
+
'io.flow.fulfillment.v0.enums.delivery_window_component_source': function () { return faker_1.default.helpers.arrayElement(['flow', 'organization', 'carrier', 'center', 'mixed']); },
|
|
1088
|
+
'io.flow.fulfillment.v0.enums.delivery_window_location': function () { return faker_1.default.helpers.arrayElement(['center', 'crossdock', 'customer']); },
|
|
1089
|
+
'io.flow.fulfillment.v0.enums.fulfillment_routing': function () { return faker_1.default.helpers.arrayElement(['fulfilled_from_center', 'fulfillment_service']); },
|
|
1090
|
+
'io.flow.fulfillment.v0.enums.item_availability_status': function () { return faker_1.default.helpers.arrayElement(['available', 'low', 'out_of_stock']); },
|
|
1091
|
+
'io.flow.fulfillment.v0.enums.lane_direction': function () { return faker_1.default.helpers.arrayElement(['outbound', 'return']); },
|
|
1092
|
+
'io.flow.fulfillment.v0.enums.lane_preselect_preference': function () { return faker_1.default.helpers.arrayElement(['lowest_cost', 'default_tier']); },
|
|
1093
|
+
'io.flow.fulfillment.v0.enums.lane_strategy': function () { return faker_1.default.helpers.arrayElement(['oldest', 'fastest', 'lowest_cost', 'highest_priority']); },
|
|
1094
|
+
'io.flow.fulfillment.v0.enums.physical_delivery_special_serivce': function () { return faker_1.default.helpers.arrayElement(['cold_storage', 'hazardous', 'perishable']); },
|
|
1095
|
+
'io.flow.fulfillment.v0.enums.preferred_service_selection_strategy': function () { return faker_1.default.helpers.arrayElement(['calculated_rate', 'flat_rate', 'custom_rate']); },
|
|
1096
|
+
'io.flow.fulfillment.v0.enums.quote_error_code': function () { return faker_1.default.helpers.arrayElement(['generic_error', 'items_not_available', 'shipping_unavailable']); },
|
|
1097
|
+
'io.flow.fulfillment.v0.enums.ratecard_owner': function () { return faker_1.default.helpers.arrayElement(['flow', 'organization']); },
|
|
1098
|
+
'io.flow.fulfillment.v0.enums.shipment_integration_type': function () { return faker_1.default.helpers.arrayElement(['direct', 'information', 'preadvice']); },
|
|
1099
|
+
'io.flow.fulfillment.v0.enums.shipping_configuration_type': function () { return faker_1.default.helpers.arrayElement(['default', 'variant']); },
|
|
1100
|
+
'io.flow.fulfillment.v0.enums.strategy': function () { return faker_1.default.helpers.arrayElement(['range', 'from', 'to']); },
|
|
1101
|
+
'io.flow.fulfillment.v0.enums.surcharge_responsible_party': function () { return faker_1.default.helpers.arrayElement(['organization', 'customer']); },
|
|
1102
|
+
'io.flow.fulfillment.v0.enums.tier_availability': function () { return faker_1.default.helpers.arrayElement(['always', 'backup']); },
|
|
1103
|
+
'io.flow.fulfillment.v0.enums.tier_estimate_type': function () { return faker_1.default.helpers.arrayElement(['calculated', 'custom']); },
|
|
1104
|
+
'io.flow.fulfillment.v0.enums.tier_strategy': function () { return faker_1.default.helpers.arrayElement(['fastest', 'lowest_cost']); },
|
|
1105
|
+
'io.flow.fulfillment.v0.enums.zero_amount_indicator': function () { return faker_1.default.helpers.arrayElement(['zero', 'free']); },
|
|
1106
|
+
'io.flow.fulfillment.v0.models.amount_margin': function () { return ({
|
|
1107
|
+
discriminator: 'amount_margin',
|
|
1108
|
+
margin: factories['io.flow.common.v0.models.price'](),
|
|
1195
1109
|
}); },
|
|
1196
|
-
'io.flow.
|
|
1197
|
-
discriminator: '
|
|
1198
|
-
|
|
1199
|
-
number: factories.string(),
|
|
1200
|
-
quantity: factories.long(),
|
|
1201
|
-
key: factories['io.flow.order.price.v0.enums.order_price_detail_key'](),
|
|
1202
|
-
price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1203
|
-
total: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1204
|
-
included: arrayOf(function () { return factories['io.flow.experience.v0.unions.allocation_component'](); }),
|
|
1205
|
-
not_included: arrayOf(function () { return factories['io.flow.experience.v0.unions.allocation_component'](); }),
|
|
1206
|
-
}); },
|
|
1207
|
-
'io.flow.experience.v0.models.allocation_line_summary': function () { return ({
|
|
1208
|
-
line_items: arrayOf(function () { return factories['io.flow.experience.v0.models.allocation_line_summary_line_item'](); }),
|
|
1209
|
-
shipping: factories['io.flow.experience.v0.models.allocation_line_summary_shipping'](),
|
|
1210
|
-
subtotal: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1211
|
-
discount: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1212
|
-
duties: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1213
|
-
tax: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1214
|
-
tax_subsidy: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1215
|
-
duties_subsidy: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1216
|
-
total: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1217
|
-
}); },
|
|
1218
|
-
'io.flow.experience.v0.models.allocation_line_summary_line_item': function () { return ({
|
|
1219
|
-
item_number: factories.string(),
|
|
1220
|
-
line_number: factories.string(),
|
|
1221
|
-
subtotal: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1222
|
-
discount: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1223
|
-
duties: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1224
|
-
tax: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1225
|
-
tax_subsidy: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1226
|
-
duties_subsidy: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1227
|
-
total: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1228
|
-
}); },
|
|
1229
|
-
'io.flow.experience.v0.models.allocation_line_summary_shipping': function () { return ({
|
|
1230
|
-
subtotal: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1231
|
-
discount: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1232
|
-
duties: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1233
|
-
tax: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1234
|
-
tax_subsidy: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1235
|
-
duties_subsidy: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1236
|
-
total: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1237
|
-
}); },
|
|
1238
|
-
'io.flow.experience.v0.models.allocation_order_detail': function () { return ({
|
|
1239
|
-
discriminator: 'allocation_order_detail',
|
|
1240
|
-
key: factories['io.flow.order.price.v0.enums.order_price_detail_key'](),
|
|
1241
|
-
total: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1242
|
-
included: arrayOf(function () { return factories['io.flow.experience.v0.unions.allocation_component'](); }),
|
|
1243
|
-
not_included: arrayOf(function () { return factories['io.flow.experience.v0.unions.allocation_component'](); }),
|
|
1110
|
+
'io.flow.fulfillment.v0.models.amount_margin_form': function () { return ({
|
|
1111
|
+
discriminator: 'amount_margin_form',
|
|
1112
|
+
margin: factories['io.flow.common.v0.models.money'](),
|
|
1244
1113
|
}); },
|
|
1245
|
-
'io.flow.
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
submitted_at: factories.date_time_iso_8601(),
|
|
1114
|
+
'io.flow.fulfillment.v0.models.at_cost': function () { return ({
|
|
1115
|
+
discriminator: 'at_cost',
|
|
1116
|
+
ignore: factories.string(),
|
|
1249
1117
|
}); },
|
|
1250
|
-
'io.flow.
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1118
|
+
'io.flow.fulfillment.v0.models.available_service': function () { return ({
|
|
1119
|
+
service: factories.string(),
|
|
1120
|
+
scheduled_pickups: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.scheduled_pickup'](); }),
|
|
1121
|
+
lead_days: factories['io.flow.fulfillment.v0.models.number_range'](),
|
|
1255
1122
|
}); },
|
|
1256
|
-
'io.flow.
|
|
1123
|
+
'io.flow.fulfillment.v0.models.carrier_reference': function () { return ({
|
|
1257
1124
|
id: factories.string(),
|
|
1258
|
-
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1259
|
-
region: factories['io.flow.experience.v0.models.region_reference'](),
|
|
1260
|
-
promotions: arrayOf(function () { return factories['io.flow.experience.v0.unions.promotion'](); }),
|
|
1261
1125
|
}); },
|
|
1262
|
-
'io.flow.
|
|
1126
|
+
'io.flow.fulfillment.v0.models.center': function () { return ({
|
|
1127
|
+
discriminator: 'center',
|
|
1263
1128
|
id: factories.string(),
|
|
1264
|
-
experience: factories['io.flow.experience.v0.models.experience_reference'](),
|
|
1265
|
-
key: factories.string(),
|
|
1266
|
-
name: factories.string(),
|
|
1267
|
-
attribute_keys: arrayOf(function () { return factories.string(); }),
|
|
1268
|
-
position: factories.long(),
|
|
1269
|
-
}); },
|
|
1270
|
-
'io.flow.experience.v0.models.checkout_attribute_form': function () { return ({
|
|
1271
1129
|
key: factories.string(),
|
|
1130
|
+
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1131
|
+
packaging: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.packaging'](); }),
|
|
1272
1132
|
name: factories.string(),
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1133
|
+
services: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.available_service'](); }),
|
|
1134
|
+
schedule: factories['io.flow.common.v0.models.schedule'](),
|
|
1135
|
+
timezone: factories.string(),
|
|
1136
|
+
capabilities: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.center_capability'](); }),
|
|
1137
|
+
partner_center: factories['io.flow.fulfillment.v0.models.partner_center'](),
|
|
1276
1138
|
}); },
|
|
1277
|
-
'io.flow.
|
|
1278
|
-
|
|
1139
|
+
'io.flow.fulfillment.v0.models.center_form': function () { return ({
|
|
1140
|
+
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1141
|
+
packaging: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.packaging'](); }),
|
|
1279
1142
|
name: factories.string(),
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
}); },
|
|
1284
|
-
'io.flow.experience.v0.models.checkout_item_content_attribute': function () { return ({
|
|
1143
|
+
services: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.available_service'](); }),
|
|
1144
|
+
schedule: factories['io.flow.common.v0.models.schedule'](),
|
|
1145
|
+
timezone: factories.string(),
|
|
1285
1146
|
key: factories.string(),
|
|
1286
|
-
|
|
1287
|
-
|
|
1147
|
+
capabilities: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.center_capability'](); }),
|
|
1148
|
+
partner_center_form: factories['io.flow.fulfillment.v0.models.partner_center_form'](),
|
|
1288
1149
|
}); },
|
|
1289
|
-
'io.flow.
|
|
1290
|
-
|
|
1291
|
-
country: factories.string(),
|
|
1292
|
-
status: factories['io.flow.experience.v0.enums.experience_country_status'](),
|
|
1150
|
+
'io.flow.fulfillment.v0.models.center_query': function () { return ({
|
|
1151
|
+
q: factories.string(),
|
|
1293
1152
|
}); },
|
|
1294
|
-
'io.flow.
|
|
1295
|
-
|
|
1153
|
+
'io.flow.fulfillment.v0.models.center_reference': function () { return ({
|
|
1154
|
+
discriminator: 'center_reference',
|
|
1155
|
+
organization_id: factories.string(),
|
|
1156
|
+
center_key: factories.string(),
|
|
1296
1157
|
}); },
|
|
1297
|
-
'io.flow.
|
|
1158
|
+
'io.flow.fulfillment.v0.models.center_summary': function () { return ({
|
|
1298
1159
|
id: factories.string(),
|
|
1299
|
-
order: factories['io.flow.experience.v0.unions.expandable_order'](),
|
|
1300
1160
|
key: factories.string(),
|
|
1301
|
-
|
|
1302
|
-
value: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1303
|
-
original: factories['io.flow.experience.v0.models.original_prices'](),
|
|
1304
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1305
|
-
}); },
|
|
1306
|
-
'io.flow.experience.v0.models.credit_payment_error': function () { return ({
|
|
1307
|
-
code: factories['io.flow.experience.v0.enums.credit_payment_error_code'](),
|
|
1308
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
1309
|
-
codes: arrayOf(function () { return factories['io.flow.experience.v0.enums.credit_payment_error_code'](); }),
|
|
1310
|
-
}); },
|
|
1311
|
-
'io.flow.experience.v0.models.credit_payment_form': function () { return ({
|
|
1312
|
-
order_number: factories.string(),
|
|
1313
|
-
description: factories.string(),
|
|
1314
|
-
amount: factories.decimal(),
|
|
1315
|
-
max: factories.decimal(),
|
|
1316
|
-
currency: factories.string(),
|
|
1317
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1161
|
+
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1318
1162
|
}); },
|
|
1319
|
-
'io.flow.
|
|
1163
|
+
'io.flow.fulfillment.v0.models.center_version': function () { return ({
|
|
1320
1164
|
id: factories.string(),
|
|
1321
1165
|
timestamp: factories.date_time_iso_8601(),
|
|
1322
1166
|
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1323
|
-
|
|
1167
|
+
center: factories['io.flow.fulfillment.v0.models.center'](),
|
|
1324
1168
|
}); },
|
|
1325
|
-
'io.flow.
|
|
1326
|
-
|
|
1327
|
-
|
|
1169
|
+
'io.flow.fulfillment.v0.models.commercial_invoice_fee': function () { return ({
|
|
1170
|
+
discriminator: 'commercial_invoice_fee',
|
|
1171
|
+
amount: factories['io.flow.common.v0.models.money'](),
|
|
1328
1172
|
}); },
|
|
1329
|
-
'io.flow.
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
display: factories['io.flow.experience.v0.enums.delivered_duty_display_type'](),
|
|
1173
|
+
'io.flow.fulfillment.v0.models.country_availability': function () { return ({
|
|
1174
|
+
status: factories['io.flow.fulfillment.v0.enums.item_availability_status'](),
|
|
1175
|
+
countries: arrayOf(function () { return factories.string(); }),
|
|
1333
1176
|
}); },
|
|
1334
|
-
'io.flow.
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
import_identifier: factories.string(),
|
|
1177
|
+
'io.flow.fulfillment.v0.models.country_shipping_pricing': function () { return ({
|
|
1178
|
+
pricing: factories['io.flow.fulfillment.v0.models.item_shipping_pricing'](),
|
|
1179
|
+
countries: arrayOf(function () { return factories.string(); }),
|
|
1338
1180
|
}); },
|
|
1339
|
-
'io.flow.
|
|
1340
|
-
discriminator: 'discount',
|
|
1181
|
+
'io.flow.fulfillment.v0.models.delivery_item': function () { return ({
|
|
1341
1182
|
id: factories.string(),
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1183
|
+
number: factories.string(),
|
|
1184
|
+
quantity: factories.long(),
|
|
1185
|
+
shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
|
|
1186
|
+
price: factories['io.flow.common.v0.models.money_with_optional_base'](),
|
|
1345
1187
|
attributes: objectOf(function () { return factories.string(); }),
|
|
1188
|
+
center: factories.string(),
|
|
1189
|
+
line_number: factories.long(),
|
|
1346
1190
|
}); },
|
|
1347
|
-
'io.flow.
|
|
1348
|
-
offers: arrayOf(function () { return factories['io.flow.experience.v0.models.discount_rule_offer'](); }),
|
|
1349
|
-
}); },
|
|
1350
|
-
'io.flow.experience.v0.models.discount_rule_offer': function () { return ({
|
|
1351
|
-
discount: factories['io.flow.common.v0.unions.discount_offer'](),
|
|
1352
|
-
entitlement: factories['io.flow.experience.v0.unions.discount_rule_entitlement'](),
|
|
1353
|
-
}); },
|
|
1354
|
-
'io.flow.experience.v0.models.discount_rule_settings': function () { return ({
|
|
1191
|
+
'io.flow.fulfillment.v0.models.delivery_option': function () { return ({
|
|
1355
1192
|
id: factories.string(),
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
experience_keys: arrayOf(function () { return factories.string(); }),
|
|
1368
|
-
rule: factories['io.flow.experience.v0.models.discount_rule'](),
|
|
1193
|
+
cost: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
1194
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1195
|
+
price: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
1196
|
+
service: factories['io.flow.fulfillment.v0.models.service_summary'](),
|
|
1197
|
+
tier: factories['io.flow.fulfillment.v0.models.tier_summary'](),
|
|
1198
|
+
window: factories['io.flow.fulfillment.v0.models.delivery_window'](),
|
|
1199
|
+
rule_outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome'](),
|
|
1200
|
+
weight: factories['io.flow.fulfillment.v0.models.option_weight_estimates'](),
|
|
1201
|
+
send_to: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1202
|
+
surcharge: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
1203
|
+
ratecard_owner: factories['io.flow.fulfillment.v0.enums.ratecard_owner'](),
|
|
1369
1204
|
}); },
|
|
1370
|
-
'io.flow.
|
|
1371
|
-
|
|
1372
|
-
|
|
1205
|
+
'io.flow.fulfillment.v0.models.delivery_option_cost_component': function () { return ({
|
|
1206
|
+
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
1207
|
+
currency: factories.string(),
|
|
1208
|
+
amount: factories.decimal(),
|
|
1209
|
+
label: factories.string(),
|
|
1210
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
1373
1211
|
}); },
|
|
1374
|
-
'io.flow.
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
key: factories.string(),
|
|
1378
|
-
name: factories.string(),
|
|
1379
|
-
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1380
|
-
region: factories['io.flow.experience.v0.models.region_reference'](),
|
|
1381
|
-
country: factories.string(),
|
|
1212
|
+
'io.flow.fulfillment.v0.models.delivery_option_cost_detail': function () { return ({
|
|
1213
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_source'](),
|
|
1214
|
+
ratecard_id: factories.string(),
|
|
1382
1215
|
currency: factories.string(),
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
settings: factories['io.flow.experience.v0.models.experience_settings'](),
|
|
1388
|
-
status: factories['io.flow.experience.v0.enums.experience_status'](),
|
|
1216
|
+
amount: factories.decimal(),
|
|
1217
|
+
label: factories.string(),
|
|
1218
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
1219
|
+
components: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option_cost_component'](); }),
|
|
1389
1220
|
}); },
|
|
1390
|
-
'io.flow.
|
|
1391
|
-
|
|
1221
|
+
'io.flow.fulfillment.v0.models.delivery_option_form': function () { return ({
|
|
1222
|
+
delivery: factories.string(),
|
|
1223
|
+
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.quote_line_item_form'](); }),
|
|
1224
|
+
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1392
1225
|
}); },
|
|
1393
|
-
'io.flow.
|
|
1226
|
+
'io.flow.fulfillment.v0.models.delivery_option_reference': function () { return ({
|
|
1394
1227
|
id: factories.string(),
|
|
1395
|
-
experience: factories['io.flow.experience.v0.models.experience_overview'](),
|
|
1396
|
-
checkout_configuration: factories['io.flow.experience.v0.models.experience_configuration_reference'](),
|
|
1397
|
-
}); },
|
|
1398
|
-
'io.flow.experience.v0.models.experience_checkout_settings_form': function () { return ({
|
|
1399
|
-
checkout_configuration_id: factories.string(),
|
|
1400
1228
|
}); },
|
|
1401
|
-
'io.flow.
|
|
1229
|
+
'io.flow.fulfillment.v0.models.delivery_option_summary': function () { return ({
|
|
1402
1230
|
id: factories.string(),
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1231
|
+
cost: factories['io.flow.common.v0.models.price'](),
|
|
1232
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1233
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
1234
|
+
service: factories['io.flow.fulfillment.v0.models.service_reference'](),
|
|
1235
|
+
tier: factories['io.flow.fulfillment.v0.models.tier_reference'](),
|
|
1236
|
+
window: factories['io.flow.common.v0.models.datetime_range'](),
|
|
1409
1237
|
}); },
|
|
1410
|
-
'io.flow.
|
|
1238
|
+
'io.flow.fulfillment.v0.models.delivery_option_version': function () { return ({
|
|
1411
1239
|
id: factories.string(),
|
|
1240
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1241
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1242
|
+
delivery_option: factories['io.flow.fulfillment.v0.models.delivery_option_summary'](),
|
|
1412
1243
|
}); },
|
|
1413
|
-
'io.flow.
|
|
1414
|
-
|
|
1415
|
-
|
|
1244
|
+
'io.flow.fulfillment.v0.models.delivery_summary': function () { return ({
|
|
1245
|
+
id: factories.string(),
|
|
1246
|
+
items: arrayOf(function () { return factories['io.flow.common.v0.models.line_item_form'](); }),
|
|
1416
1247
|
}); },
|
|
1417
|
-
'io.flow.
|
|
1418
|
-
|
|
1419
|
-
|
|
1248
|
+
'io.flow.fulfillment.v0.models.delivery_version': function () { return ({
|
|
1249
|
+
id: factories.string(),
|
|
1250
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1251
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1252
|
+
delivery: factories['io.flow.fulfillment.v0.models.delivery_summary'](),
|
|
1420
1253
|
}); },
|
|
1421
|
-
'io.flow.
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
measurement_system: factories['io.flow.common.v0.enums.measurement_system'](),
|
|
1254
|
+
'io.flow.fulfillment.v0.models.delivery_window': function () { return ({
|
|
1255
|
+
from: factories.date_time_iso_8601(),
|
|
1256
|
+
to: factories.date_time_iso_8601(),
|
|
1257
|
+
timezone: factories.string(),
|
|
1258
|
+
label: factories.string(),
|
|
1259
|
+
min_days: factories.long(),
|
|
1260
|
+
max_days: factories.long(),
|
|
1429
1261
|
}); },
|
|
1430
|
-
'io.flow.
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
country: factories.string(),
|
|
1435
|
-
currency: factories.string(),
|
|
1436
|
-
language: factories.string(),
|
|
1437
|
-
key: factories.string(),
|
|
1438
|
-
position: factories.long(),
|
|
1439
|
-
measurement_system: factories['io.flow.common.v0.enums.measurement_system'](),
|
|
1440
|
-
subcatalog_id: factories.string(),
|
|
1262
|
+
'io.flow.fulfillment.v0.models.delivery_window_component': function () { return ({
|
|
1263
|
+
from: factories.date_time_iso_8601(),
|
|
1264
|
+
to: factories.date_time_iso_8601(),
|
|
1265
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
1441
1266
|
}); },
|
|
1442
|
-
'io.flow.
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1267
|
+
'io.flow.fulfillment.v0.models.delivery_window_components': function () { return ({
|
|
1268
|
+
shipment_estimate: factories['io.flow.fulfillment.v0.models.delivery_window_component'](),
|
|
1269
|
+
transit_estimate: factories['io.flow.fulfillment.v0.models.delivery_window_component'](),
|
|
1270
|
+
}); },
|
|
1271
|
+
'io.flow.fulfillment.v0.models.delivery_window_components_v2': function () { return ({
|
|
1272
|
+
processing_estimates: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.processing_estimate'](); }),
|
|
1273
|
+
transit_estimates: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.transit_estimate'](); }),
|
|
1274
|
+
}); },
|
|
1275
|
+
'io.flow.fulfillment.v0.models.delivery_window_summary': function () { return ({
|
|
1446
1276
|
country: factories.string(),
|
|
1447
|
-
|
|
1448
|
-
language: factories.string(),
|
|
1449
|
-
measurement_system: factories['io.flow.common.v0.enums.measurement_system'](),
|
|
1277
|
+
delivery_window: factories['io.flow.fulfillment.v0.models.delivery_window'](),
|
|
1450
1278
|
}); },
|
|
1451
|
-
'io.flow.
|
|
1279
|
+
'io.flow.fulfillment.v0.models.digital_delivery': function () { return ({
|
|
1280
|
+
discriminator: 'digital_delivery',
|
|
1452
1281
|
id: factories.string(),
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
shipping_configuration_key: factories.string(),
|
|
1282
|
+
key: factories.string(),
|
|
1283
|
+
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_item'](); }),
|
|
1284
|
+
prices: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail'](); }),
|
|
1285
|
+
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1458
1286
|
}); },
|
|
1459
|
-
'io.flow.
|
|
1460
|
-
|
|
1461
|
-
|
|
1287
|
+
'io.flow.fulfillment.v0.models.estimated_window': function () { return ({
|
|
1288
|
+
from: factories.long(),
|
|
1289
|
+
to: factories.long(),
|
|
1290
|
+
unit: factories['io.flow.common.v0.enums.unit_of_time'](),
|
|
1462
1291
|
}); },
|
|
1463
|
-
'io.flow.
|
|
1464
|
-
|
|
1292
|
+
'io.flow.fulfillment.v0.models.flat_rate': function () { return ({
|
|
1293
|
+
discriminator: 'flat_rate',
|
|
1294
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
1295
|
+
zero_amount_indicator: factories['io.flow.fulfillment.v0.enums.zero_amount_indicator'](),
|
|
1465
1296
|
}); },
|
|
1466
|
-
'io.flow.
|
|
1467
|
-
|
|
1297
|
+
'io.flow.fulfillment.v0.models.flat_rate_form': function () { return ({
|
|
1298
|
+
discriminator: 'flat_rate_form',
|
|
1299
|
+
price: factories['io.flow.common.v0.models.money'](),
|
|
1300
|
+
zero_amount_indicator: factories['io.flow.fulfillment.v0.enums.zero_amount_indicator'](),
|
|
1468
1301
|
}); },
|
|
1469
|
-
'io.flow.
|
|
1302
|
+
'io.flow.fulfillment.v0.models.fulfillment_experience_reference': function () { return ({
|
|
1470
1303
|
id: factories.string(),
|
|
1471
|
-
|
|
1304
|
+
currency: factories.string(),
|
|
1472
1305
|
}); },
|
|
1473
|
-
'io.flow.
|
|
1474
|
-
|
|
1475
|
-
|
|
1306
|
+
'io.flow.fulfillment.v0.models.inbound_carton_fee': function () { return ({
|
|
1307
|
+
discriminator: 'inbound_carton_fee',
|
|
1308
|
+
amount: factories['io.flow.common.v0.models.money'](),
|
|
1476
1309
|
}); },
|
|
1477
|
-
'io.flow.
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
q: factories.string(),
|
|
1310
|
+
'io.flow.fulfillment.v0.models.item_shipping_pricing': function () { return ({
|
|
1311
|
+
min: factories['io.flow.common.v0.models.price'](),
|
|
1312
|
+
max: factories['io.flow.common.v0.models.price'](),
|
|
1481
1313
|
}); },
|
|
1482
|
-
'io.flow.
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
price_book: factories['io.flow.price.v0.models.price_book_reference'](),
|
|
1486
|
-
position: factories.long(),
|
|
1314
|
+
'io.flow.fulfillment.v0.models.number_range': function () { return ({
|
|
1315
|
+
min: factories.long(),
|
|
1316
|
+
max: factories.long(),
|
|
1487
1317
|
}); },
|
|
1488
|
-
'io.flow.
|
|
1489
|
-
|
|
1490
|
-
|
|
1318
|
+
'io.flow.fulfillment.v0.models.option_weight_estimates': function () { return ({
|
|
1319
|
+
gravitational: factories['io.flow.common.v0.models.measurement'](),
|
|
1320
|
+
dimensional: factories['io.flow.common.v0.models.measurement'](),
|
|
1491
1321
|
}); },
|
|
1492
|
-
'io.flow.
|
|
1493
|
-
|
|
1322
|
+
'io.flow.fulfillment.v0.models.outbound_carton_fee': function () { return ({
|
|
1323
|
+
discriminator: 'outbound_carton_fee',
|
|
1324
|
+
amount: factories['io.flow.common.v0.models.money'](),
|
|
1494
1325
|
}); },
|
|
1495
|
-
'io.flow.
|
|
1496
|
-
|
|
1497
|
-
|
|
1326
|
+
'io.flow.fulfillment.v0.models.packaging': function () { return ({
|
|
1327
|
+
dimensions: factories['io.flow.common.v0.models.dimensions'](),
|
|
1328
|
+
name: factories.string(),
|
|
1329
|
+
number: factories.string(),
|
|
1498
1330
|
}); },
|
|
1499
|
-
'io.flow.
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1331
|
+
'io.flow.fulfillment.v0.models.partner_center': function () { return ({
|
|
1332
|
+
partner_reference: factories['io.flow.common.v0.models.partner_reference'](),
|
|
1333
|
+
number: factories.string(),
|
|
1334
|
+
fees: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.partner_center_fee'](); }),
|
|
1503
1335
|
}); },
|
|
1504
|
-
'io.flow.
|
|
1505
|
-
|
|
1336
|
+
'io.flow.fulfillment.v0.models.partner_center_form': function () { return ({
|
|
1337
|
+
partner_id: factories.string(),
|
|
1338
|
+
number: factories.string(),
|
|
1339
|
+
fees: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.partner_center_fee'](); }),
|
|
1506
1340
|
}); },
|
|
1507
|
-
'io.flow.
|
|
1508
|
-
|
|
1509
|
-
|
|
1341
|
+
'io.flow.fulfillment.v0.models.percent_margin': function () { return ({
|
|
1342
|
+
discriminator: 'percent_margin',
|
|
1343
|
+
percentage: factories.double(),
|
|
1510
1344
|
}); },
|
|
1511
|
-
'io.flow.
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1345
|
+
'io.flow.fulfillment.v0.models.physical_delivery': function () { return ({
|
|
1346
|
+
discriminator: 'physical_delivery',
|
|
1347
|
+
id: factories.string(),
|
|
1348
|
+
key: factories.string(),
|
|
1349
|
+
center: factories['io.flow.fulfillment.v0.models.center_summary'](),
|
|
1350
|
+
fulfillment_routing: factories['io.flow.fulfillment.v0.enums.fulfillment_routing'](),
|
|
1351
|
+
ship_from_country: factories.string(),
|
|
1352
|
+
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_item'](); }),
|
|
1353
|
+
options: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option'](); }),
|
|
1354
|
+
special_services: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.physical_delivery_special_serivce'](); }),
|
|
1355
|
+
prices: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail'](); }),
|
|
1356
|
+
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1357
|
+
goods_supply: factories['io.flow.common.v0.enums.goods_supply'](),
|
|
1358
|
+
merchant_of_record_flow_entity: factories['io.flow.merchant.of.record.v0.enums.flow_entity'](),
|
|
1359
|
+
preferred_service: factories['io.flow.fulfillment.v0.models.physical_delivery_preferred_service'](),
|
|
1516
1360
|
}); },
|
|
1517
|
-
'io.flow.
|
|
1518
|
-
|
|
1361
|
+
'io.flow.fulfillment.v0.models.physical_delivery_preferred_service': function () { return ({
|
|
1362
|
+
id: factories.string(),
|
|
1363
|
+
selection_stratey: factories['io.flow.fulfillment.v0.enums.preferred_service_selection_strategy'](),
|
|
1519
1364
|
}); },
|
|
1520
|
-
'io.flow.
|
|
1521
|
-
|
|
1522
|
-
|
|
1365
|
+
'io.flow.fulfillment.v0.models.price_with_base_and_details': function () { return ({
|
|
1366
|
+
currency: factories.string(),
|
|
1367
|
+
amount: factories.double(),
|
|
1368
|
+
label: factories.string(),
|
|
1369
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
1370
|
+
details: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option_cost_detail'](); }),
|
|
1371
|
+
}); },
|
|
1372
|
+
'io.flow.fulfillment.v0.models.processing_estimate': function () { return ({
|
|
1373
|
+
location: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
1374
|
+
min_date: factories.date_time_iso_8601(),
|
|
1375
|
+
max_date: factories.date_time_iso_8601(),
|
|
1376
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
1377
|
+
}); },
|
|
1378
|
+
'io.flow.fulfillment.v0.models.quote': function () { return ({
|
|
1379
|
+
id: factories.string(),
|
|
1380
|
+
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1381
|
+
deliveries: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.delivery'](); }),
|
|
1382
|
+
selections: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option_reference'](); }),
|
|
1383
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1384
|
+
delivered_duties: arrayOf(function () { return factories['io.flow.common.v0.enums.delivered_duty'](); }),
|
|
1385
|
+
}); },
|
|
1386
|
+
'io.flow.fulfillment.v0.models.quote_error': function () { return ({
|
|
1387
|
+
code: factories['io.flow.fulfillment.v0.enums.quote_error_code'](),
|
|
1388
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
1389
|
+
item_numbers: arrayOf(function () { return factories.string(); }),
|
|
1390
|
+
}); },
|
|
1391
|
+
'io.flow.fulfillment.v0.models.quote_form': function () { return ({
|
|
1392
|
+
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1393
|
+
experience: factories.string(),
|
|
1394
|
+
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.quote_line_item_form'](); }),
|
|
1395
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1396
|
+
delivered_duties: arrayOf(function () { return factories['io.flow.common.v0.enums.delivered_duty'](); }),
|
|
1397
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1523
1398
|
}); },
|
|
1524
|
-
'io.flow.
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1399
|
+
'io.flow.fulfillment.v0.models.quote_line_item_form': function () { return ({
|
|
1400
|
+
number: factories.string(),
|
|
1401
|
+
quantity: factories.long(),
|
|
1402
|
+
shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
|
|
1403
|
+
price: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1404
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
1405
|
+
center: factories.string(),
|
|
1529
1406
|
}); },
|
|
1530
|
-
'io.flow.
|
|
1531
|
-
|
|
1407
|
+
'io.flow.fulfillment.v0.models.quote_summary': function () { return ({
|
|
1408
|
+
id: factories.string(),
|
|
1409
|
+
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1532
1410
|
}); },
|
|
1533
|
-
'io.flow.
|
|
1411
|
+
'io.flow.fulfillment.v0.models.quote_version': function () { return ({
|
|
1534
1412
|
id: factories.string(),
|
|
1535
1413
|
timestamp: factories.date_time_iso_8601(),
|
|
1536
1414
|
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1537
|
-
|
|
1415
|
+
quote: factories['io.flow.fulfillment.v0.models.quote_summary'](),
|
|
1538
1416
|
}); },
|
|
1539
|
-
'io.flow.
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1417
|
+
'io.flow.fulfillment.v0.models.scheduled_pickup': function () { return ({
|
|
1418
|
+
day_of_week: factories['io.flow.common.v0.enums.day_of_week'](),
|
|
1419
|
+
hour_of_day: factories.string(),
|
|
1420
|
+
minute_of_hour: factories.string(),
|
|
1543
1421
|
}); },
|
|
1544
|
-
'io.flow.
|
|
1545
|
-
discriminator: 'free_shipping_order_promotion',
|
|
1422
|
+
'io.flow.fulfillment.v0.models.service_reference': function () { return ({
|
|
1546
1423
|
id: factories.string(),
|
|
1547
|
-
order: factories['io.flow.experience.v0.unions.expandable_order'](),
|
|
1548
|
-
key: factories.string(),
|
|
1549
|
-
trigger: factories['io.flow.experience.v0.models.order_promotion_trigger'](),
|
|
1550
|
-
max: factories['io.flow.common.v0.models.price'](),
|
|
1551
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1552
1424
|
}); },
|
|
1553
|
-
'io.flow.
|
|
1554
|
-
discriminator: '
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1425
|
+
'io.flow.fulfillment.v0.models.service_summary': function () { return ({
|
|
1426
|
+
discriminator: 'service_summary',
|
|
1427
|
+
id: factories.string(),
|
|
1428
|
+
carrier: factories['io.flow.fulfillment.v0.models.carrier_reference'](),
|
|
1429
|
+
name: factories.string(),
|
|
1430
|
+
center_code: factories.string(),
|
|
1558
1431
|
}); },
|
|
1559
|
-
'io.flow.
|
|
1560
|
-
|
|
1561
|
-
|
|
1432
|
+
'io.flow.fulfillment.v0.models.service_unknown': function () { return ({
|
|
1433
|
+
discriminator: 'service_unknown',
|
|
1434
|
+
name: factories.string(),
|
|
1562
1435
|
}); },
|
|
1563
|
-
'io.flow.
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1436
|
+
'io.flow.fulfillment.v0.models.shipping_address': function () { return ({
|
|
1437
|
+
contact: factories['io.flow.common.v0.models.contact'](),
|
|
1438
|
+
location: factories['io.flow.common.v0.models.address'](),
|
|
1439
|
+
center_key: factories.string(),
|
|
1440
|
+
center_reference: factories['io.flow.fulfillment.v0.models.center_reference'](),
|
|
1441
|
+
service: factories['io.flow.fulfillment.v0.models.service_summary'](),
|
|
1567
1442
|
}); },
|
|
1568
|
-
'io.flow.
|
|
1443
|
+
'io.flow.fulfillment.v0.models.shipping_configuration': function () { return ({
|
|
1569
1444
|
id: factories.string(),
|
|
1570
|
-
key: factories.string(),
|
|
1571
1445
|
name: factories.string(),
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1446
|
+
key: factories.string(),
|
|
1447
|
+
type: factories['io.flow.fulfillment.v0.enums.shipping_configuration_type'](),
|
|
1448
|
+
shipping_lanes: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.shipping_lane'](); }),
|
|
1449
|
+
}); },
|
|
1450
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_copy': function () { return ({
|
|
1451
|
+
original: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1452
|
+
'new': factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1577
1453
|
}); },
|
|
1578
|
-
'io.flow.
|
|
1454
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_copy_form': function () { return ({
|
|
1579
1455
|
name: factories.string(),
|
|
1580
|
-
q: factories.string(),
|
|
1581
|
-
key: factories.string(),
|
|
1582
|
-
fixed: factories.decimal(),
|
|
1583
|
-
percent: factories.decimal(),
|
|
1584
|
-
position: factories.long(),
|
|
1585
1456
|
}); },
|
|
1586
|
-
'io.flow.
|
|
1457
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_form': function () { return ({
|
|
1587
1458
|
name: factories.string(),
|
|
1588
|
-
q: factories.string(),
|
|
1589
|
-
fixed: factories.decimal(),
|
|
1590
|
-
percent: factories.decimal(),
|
|
1591
|
-
position: factories.long(),
|
|
1592
1459
|
}); },
|
|
1593
|
-
'io.flow.
|
|
1460
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_item_availability': function () { return ({
|
|
1594
1461
|
id: factories.string(),
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1462
|
+
item: factories['io.flow.common.v0.models.item_reference'](),
|
|
1463
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_summary'](),
|
|
1464
|
+
availabilities: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.country_availability'](); }),
|
|
1598
1465
|
}); },
|
|
1599
|
-
'io.flow.
|
|
1466
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_item_shipping_pricing': function () { return ({
|
|
1600
1467
|
id: factories.string(),
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1468
|
+
item: factories['io.flow.common.v0.models.item_reference'](),
|
|
1469
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_summary'](),
|
|
1470
|
+
country_shipping_pricings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.country_shipping_pricing'](); }),
|
|
1471
|
+
}); },
|
|
1472
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_reference': function () { return ({
|
|
1473
|
+
key: factories.string(),
|
|
1606
1474
|
}); },
|
|
1607
|
-
'io.flow.
|
|
1475
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_summary': function () { return ({
|
|
1608
1476
|
id: factories.string(),
|
|
1609
|
-
number: factories.string(),
|
|
1610
1477
|
name: factories.string(),
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
center: factories.string(),
|
|
1614
|
-
price: factories['io.flow.common.v0.models.money'](),
|
|
1615
|
-
discount: factories['io.flow.experience.v0.models.localized_line_item_discount'](),
|
|
1616
|
-
discounts: arrayOf(function () { return factories['io.flow.experience.v0.models.localized_line_item_discount'](); }),
|
|
1617
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1618
|
-
local: factories['io.flow.catalog.v0.models.local'](),
|
|
1619
|
-
shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
|
|
1620
|
-
price_source: factories['io.flow.common.v0.unions.price_source'](),
|
|
1621
|
-
}); },
|
|
1622
|
-
'io.flow.experience.v0.models.localized_line_item_discount': function () { return ({
|
|
1623
|
-
amount: factories.double(),
|
|
1624
|
-
currency: factories.string(),
|
|
1625
|
-
label: factories.string(),
|
|
1626
|
-
base: factories['io.flow.common.v0.models.price'](),
|
|
1627
|
-
requested: factories['io.flow.common.v0.models.money'](),
|
|
1628
|
-
discount_label: factories.string(),
|
|
1629
|
-
}); },
|
|
1630
|
-
'io.flow.experience.v0.models.logistics_settings': function () { return ({
|
|
1631
|
-
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1478
|
+
key: factories.string(),
|
|
1479
|
+
type: factories['io.flow.fulfillment.v0.enums.shipping_configuration_type'](),
|
|
1632
1480
|
}); },
|
|
1633
|
-
'io.flow.
|
|
1634
|
-
discriminator: 'order',
|
|
1481
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_version': function () { return ({
|
|
1635
1482
|
id: factories.string(),
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
experience: factories['io.flow.experience.v0.unions.expandable_experience'](),
|
|
1640
|
-
customer: factories['io.flow.common.v0.models.order_customer'](),
|
|
1641
|
-
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1642
|
-
destination: factories['io.flow.experience.v0.models.order_address'](),
|
|
1643
|
-
expires_at: factories.date_time_iso_8601(),
|
|
1644
|
-
items: arrayOf(function () { return factories['io.flow.experience.v0.models.localized_line_item'](); }),
|
|
1645
|
-
deliveries: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.delivery'](); }),
|
|
1646
|
-
selections: arrayOf(function () { return factories.string(); }),
|
|
1647
|
-
prices: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail'](); }),
|
|
1648
|
-
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1649
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1650
|
-
submitted_at: factories.date_time_iso_8601(),
|
|
1651
|
-
lines: arrayOf(function () { return factories['io.flow.experience.v0.models.line'](); }),
|
|
1652
|
-
identifiers: arrayOf(function () { return factories.string(); }),
|
|
1653
|
-
promotions: factories['io.flow.experience.v0.models.promotions'](),
|
|
1654
|
-
payments: arrayOf(function () { return factories['io.flow.experience.v0.models.order_payment'](); }),
|
|
1655
|
-
balance: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1656
|
-
rules: factories['io.flow.experience.v0.models.order_rules_summary'](),
|
|
1657
|
-
tax_registration: factories['io.flow.harmonization.v0.models.tax_registration'](),
|
|
1658
|
-
geo: factories['io.flow.experience.v0.models.order_geo'](),
|
|
1659
|
-
device_details: factories['io.flow.payment.v0.unions.device_details'](),
|
|
1660
|
-
destination_contact_details: arrayOf(function () { return factories['io.flow.experience.v0.models.destination_contact_detail'](); }),
|
|
1661
|
-
incoterm_summary: factories['io.flow.experience.v0.models.incoterm_summary'](),
|
|
1662
|
-
payment_source: factories['io.flow.experience.v0.enums.order_payment_source_type'](),
|
|
1663
|
-
}); },
|
|
1664
|
-
'io.flow.experience.v0.models.order_address': function () { return ({
|
|
1665
|
-
text: factories.string(),
|
|
1666
|
-
streets: arrayOf(function () { return factories.string(); }),
|
|
1667
|
-
city: factories.string(),
|
|
1668
|
-
province: factories.string(),
|
|
1669
|
-
postal: factories.string(),
|
|
1670
|
-
country: factories.string(),
|
|
1671
|
-
latitude: factories.string(),
|
|
1672
|
-
longitude: factories.string(),
|
|
1673
|
-
contact: factories['io.flow.common.v0.models.contact'](),
|
|
1674
|
-
}); },
|
|
1675
|
-
'io.flow.experience.v0.models.order_builder': function () { return ({
|
|
1676
|
-
order: factories['io.flow.experience.v0.models.order'](),
|
|
1677
|
-
errors: arrayOf(function () { return factories['io.flow.experience.v0.models.order_error'](); }),
|
|
1678
|
-
}); },
|
|
1679
|
-
'io.flow.experience.v0.models.order_builder_attributes_form': function () { return ({
|
|
1680
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1681
|
-
}); },
|
|
1682
|
-
'io.flow.experience.v0.models.order_builder_customer_form': function () { return ({
|
|
1683
|
-
customer: factories['io.flow.common.v0.models.order_customer_form'](),
|
|
1684
|
-
}); },
|
|
1685
|
-
'io.flow.experience.v0.models.order_builder_customer_invoice_address_form': function () { return ({
|
|
1686
|
-
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
1687
|
-
}); },
|
|
1688
|
-
'io.flow.experience.v0.models.order_builder_delivered_duty_form': function () { return ({
|
|
1689
|
-
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1690
|
-
}); },
|
|
1691
|
-
'io.flow.experience.v0.models.order_builder_destination_country_form': function () { return ({
|
|
1692
|
-
country: factories.string(),
|
|
1693
|
-
}); },
|
|
1694
|
-
'io.flow.experience.v0.models.order_builder_destination_form': function () { return ({
|
|
1695
|
-
destination: factories['io.flow.experience.v0.models.order_address'](),
|
|
1696
|
-
}); },
|
|
1697
|
-
'io.flow.experience.v0.models.order_builder_selections_form': function () { return ({
|
|
1698
|
-
selections: arrayOf(function () { return factories.string(); }),
|
|
1699
|
-
}); },
|
|
1700
|
-
'io.flow.experience.v0.models.order_destination_put_form': function () { return ({
|
|
1701
|
-
destination: factories['io.flow.experience.v0.models.order_address'](),
|
|
1702
|
-
}); },
|
|
1703
|
-
'io.flow.experience.v0.models.order_error': function () { return ({
|
|
1704
|
-
code: factories['io.flow.experience.v0.enums.order_error_code'](),
|
|
1705
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
1706
|
-
numbers: arrayOf(function () { return factories.string(); }),
|
|
1707
|
-
destination_country: factories['io.flow.reference.v0.models.country'](),
|
|
1708
|
-
threshold: factories['io.flow.experience.v0.models.value_threshold_exceeded_details'](),
|
|
1483
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1484
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1485
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration'](),
|
|
1709
1486
|
}); },
|
|
1710
|
-
'io.flow.
|
|
1487
|
+
'io.flow.fulfillment.v0.models.shipping_lane': function () { return ({
|
|
1711
1488
|
id: factories.string(),
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
}); },
|
|
1721
|
-
'io.flow.experience.v0.models.order_estimate_form': function () { return ({
|
|
1722
|
-
items: arrayOf(function () { return factories['io.flow.common.v0.models.line_item_form'](); }),
|
|
1723
|
-
destination: factories['io.flow.experience.v0.models.order_address'](),
|
|
1724
|
-
selections: arrayOf(function () { return factories.string(); }),
|
|
1725
|
-
}); },
|
|
1726
|
-
'io.flow.experience.v0.models.order_form': function () { return ({
|
|
1727
|
-
customer: factories['io.flow.common.v0.models.order_customer_form'](),
|
|
1728
|
-
items: arrayOf(function () { return factories['io.flow.common.v0.models.line_item_form'](); }),
|
|
1729
|
-
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1730
|
-
number: factories.string(),
|
|
1731
|
-
destination: factories['io.flow.experience.v0.models.order_address'](),
|
|
1732
|
-
discount: factories['io.flow.common.v0.models.money'](),
|
|
1733
|
-
discounts: factories['io.flow.common.v0.models.discounts_form'](),
|
|
1734
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1735
|
-
authorization_keys: arrayOf(function () { return factories.string(); }),
|
|
1736
|
-
options: factories['io.flow.experience.v0.models.order_options'](),
|
|
1737
|
-
device_details: factories['io.flow.payment.v0.unions.device_details'](),
|
|
1738
|
-
payment_source: factories['io.flow.experience.v0.enums.order_payment_source_type'](),
|
|
1739
|
-
}); },
|
|
1740
|
-
'io.flow.experience.v0.models.order_geo': function () { return ({
|
|
1741
|
-
ip: factories.string(),
|
|
1742
|
-
country: factories.string(),
|
|
1743
|
-
currency: factories.string(),
|
|
1744
|
-
language: factories.string(),
|
|
1489
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1490
|
+
region: factories.string(),
|
|
1491
|
+
centers: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.expandable_center'](); }),
|
|
1492
|
+
tiers: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier'](); }),
|
|
1493
|
+
query: factories['io.flow.query.builder.v0.models.query'](),
|
|
1494
|
+
strategy: factories['io.flow.fulfillment.v0.enums.lane_strategy'](),
|
|
1495
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1496
|
+
preference: factories['io.flow.fulfillment.v0.enums.lane_preselect_preference'](),
|
|
1745
1497
|
}); },
|
|
1746
|
-
'io.flow.
|
|
1498
|
+
'io.flow.fulfillment.v0.models.shipping_lane_default_tier': function () { return ({
|
|
1747
1499
|
id: factories.string(),
|
|
1748
|
-
|
|
1749
|
-
name: factories.string(),
|
|
1750
|
-
identifier: factories.string(),
|
|
1751
|
-
primary: factories.boolean(),
|
|
1752
|
-
number: factories.string(),
|
|
1500
|
+
tier: factories['io.flow.fulfillment.v0.models.tier_reference'](),
|
|
1753
1501
|
}); },
|
|
1754
|
-
'io.flow.
|
|
1755
|
-
|
|
1756
|
-
name: factories.string(),
|
|
1757
|
-
identifier: factories.string(),
|
|
1758
|
-
number: factories.string(),
|
|
1759
|
-
primary: factories.boolean(),
|
|
1502
|
+
'io.flow.fulfillment.v0.models.shipping_lane_default_tier_form': function () { return ({
|
|
1503
|
+
tier_id: factories.string(),
|
|
1760
1504
|
}); },
|
|
1761
|
-
'io.flow.
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1505
|
+
'io.flow.fulfillment.v0.models.shipping_lane_form': function () { return ({
|
|
1506
|
+
from: factories.string(),
|
|
1507
|
+
to: factories.string(),
|
|
1508
|
+
strategy: factories['io.flow.fulfillment.v0.enums.lane_strategy'](),
|
|
1509
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1510
|
+
preference: factories['io.flow.fulfillment.v0.enums.lane_preselect_preference'](),
|
|
1765
1511
|
}); },
|
|
1766
|
-
'io.flow.
|
|
1512
|
+
'io.flow.fulfillment.v0.models.shipping_lane_summary': function () { return ({
|
|
1513
|
+
shipping_lane_id: factories.string(),
|
|
1514
|
+
region: factories.string(),
|
|
1515
|
+
centers: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.expandable_center'](); }),
|
|
1516
|
+
}); },
|
|
1517
|
+
'io.flow.fulfillment.v0.models.shipping_lane_version': function () { return ({
|
|
1767
1518
|
id: factories.string(),
|
|
1768
1519
|
timestamp: factories.date_time_iso_8601(),
|
|
1769
1520
|
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1770
|
-
|
|
1771
|
-
}); },
|
|
1772
|
-
'io.flow.experience.v0.models.order_number_generator_defaults': function () { return ({
|
|
1773
|
-
starts_with: factories.long(),
|
|
1774
|
-
min_hex_length: factories.integer(),
|
|
1775
|
-
min_starts_with: factories.long(),
|
|
1776
|
-
}); },
|
|
1777
|
-
'io.flow.experience.v0.models.order_number_generator_fixed_length': function () { return ({
|
|
1778
|
-
length: factories.integer(),
|
|
1779
|
-
padding: factories.string(),
|
|
1780
|
-
}); },
|
|
1781
|
-
'io.flow.experience.v0.models.order_number_generator_generated_number': function () { return ({
|
|
1782
|
-
number: factories.string(),
|
|
1783
|
-
}); },
|
|
1784
|
-
'io.flow.experience.v0.models.order_number_generator_hexadecimal': function () { return ({
|
|
1785
|
-
discriminator: 'hexadecimal',
|
|
1786
|
-
length: factories.integer(),
|
|
1787
|
-
}); },
|
|
1788
|
-
'io.flow.experience.v0.models.order_number_generator_prefix_suffix': function () { return ({
|
|
1789
|
-
discriminator: 'prefix_suffix',
|
|
1790
|
-
prefix: factories.string(),
|
|
1791
|
-
starts_with: factories.long(),
|
|
1792
|
-
suffix: factories.string(),
|
|
1793
|
-
fixed_length: factories['io.flow.experience.v0.models.order_number_generator_fixed_length'](),
|
|
1794
|
-
}); },
|
|
1795
|
-
'io.flow.experience.v0.models.order_number_generator_uuid': function () { return ({
|
|
1796
|
-
discriminator: 'uuid',
|
|
1797
|
-
prefix: factories.string(),
|
|
1521
|
+
shipping_lane: factories['io.flow.fulfillment.v0.models.shipping_lane'](),
|
|
1798
1522
|
}); },
|
|
1799
|
-
'io.flow.
|
|
1800
|
-
|
|
1523
|
+
'io.flow.fulfillment.v0.models.surcharge_responsible_party_display': function () { return ({
|
|
1524
|
+
name: factories.string(),
|
|
1525
|
+
responsible_party: factories['io.flow.fulfillment.v0.enums.surcharge_responsible_party'](),
|
|
1801
1526
|
}); },
|
|
1802
|
-
'io.flow.
|
|
1803
|
-
|
|
1527
|
+
'io.flow.fulfillment.v0.models.surcharge_setting': function () { return ({
|
|
1528
|
+
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
1529
|
+
responsible_party: factories['io.flow.fulfillment.v0.enums.surcharge_responsible_party'](),
|
|
1804
1530
|
}); },
|
|
1805
|
-
'io.flow.
|
|
1806
|
-
|
|
1807
|
-
type: factories['io.flow.experience.v0.enums.order_payment_type'](),
|
|
1808
|
-
merchant_of_record: factories['io.flow.common.v0.enums.merchant_of_record'](),
|
|
1809
|
-
reference: factories.string(),
|
|
1531
|
+
'io.flow.fulfillment.v0.models.surcharge_setting_display': function () { return ({
|
|
1532
|
+
name: factories.string(),
|
|
1810
1533
|
description: factories.string(),
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
date: factories.date_time_iso_8601(),
|
|
1814
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1815
|
-
method: factories.string(),
|
|
1816
|
-
}); },
|
|
1817
|
-
'io.flow.experience.v0.models.order_promotion_trigger': function () { return ({
|
|
1818
|
-
type: factories['io.flow.experience.v0.enums.promotion_trigger_type'](),
|
|
1819
|
-
min: factories['io.flow.common.v0.models.price'](),
|
|
1820
|
-
}); },
|
|
1821
|
-
'io.flow.experience.v0.models.order_put_form': function () { return ({
|
|
1822
|
-
order_type: factories['io.flow.experience.v0.enums.order_type'](),
|
|
1823
|
-
items: arrayOf(function () { return factories['io.flow.common.v0.models.line_item_form'](); }),
|
|
1824
|
-
customer: factories['io.flow.common.v0.models.order_customer_form'](),
|
|
1825
|
-
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1826
|
-
selections: arrayOf(function () { return factories.string(); }),
|
|
1827
|
-
destination: factories['io.flow.experience.v0.models.order_address'](),
|
|
1828
|
-
discount: factories['io.flow.common.v0.models.money'](),
|
|
1829
|
-
discounts: factories['io.flow.common.v0.models.discounts_form'](),
|
|
1830
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1831
|
-
authorization_keys: arrayOf(function () { return factories.string(); }),
|
|
1832
|
-
options: factories['io.flow.experience.v0.models.order_options'](),
|
|
1833
|
-
device_details: factories['io.flow.payment.v0.unions.device_details'](),
|
|
1834
|
-
payment_source: factories['io.flow.experience.v0.enums.order_payment_source_type'](),
|
|
1534
|
+
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
1535
|
+
available: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_responsible_party_display'](); }),
|
|
1835
1536
|
}); },
|
|
1836
|
-
'io.flow.
|
|
1837
|
-
discriminator: 'order_reference',
|
|
1537
|
+
'io.flow.fulfillment.v0.models.tier': function () { return ({
|
|
1838
1538
|
id: factories.string(),
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1539
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1540
|
+
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
1541
|
+
name: factories.string(),
|
|
1542
|
+
message: factories.string(),
|
|
1543
|
+
rules: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier_rule'](); }),
|
|
1544
|
+
services: arrayOf(function () { return factories['io.flow.reference.v0.models.carrier_service'](); }),
|
|
1545
|
+
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
1546
|
+
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
1842
1547
|
currency: factories.string(),
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
refund_total: factories.decimal(),
|
|
1850
|
-
shipping: factories.decimal(),
|
|
1851
|
-
vat: factories.decimal(),
|
|
1852
|
-
duty: factories.decimal(),
|
|
1548
|
+
description: factories.string(),
|
|
1549
|
+
display: factories['io.flow.fulfillment.v0.models.tier_display'](),
|
|
1550
|
+
shipping_lane: factories.string(),
|
|
1551
|
+
surcharge_settings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_setting'](); }),
|
|
1552
|
+
lane: factories['io.flow.fulfillment.v0.models.shipping_lane_summary'](),
|
|
1553
|
+
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
1853
1554
|
}); },
|
|
1854
|
-
'io.flow.
|
|
1855
|
-
|
|
1856
|
-
includes: arrayOf(function () { return factories['io.flow.experience.v0.enums.order_refund_summary_includes'](); }),
|
|
1555
|
+
'io.flow.fulfillment.v0.models.tier_display': function () { return ({
|
|
1556
|
+
estimate: factories['io.flow.fulfillment.v0.models.tier_estimate'](),
|
|
1857
1557
|
}); },
|
|
1858
|
-
'io.flow.
|
|
1859
|
-
|
|
1860
|
-
quantity_to_refund: factories.long(),
|
|
1558
|
+
'io.flow.fulfillment.v0.models.tier_display_form': function () { return ({
|
|
1559
|
+
estimate: factories['io.flow.fulfillment.v0.models.tier_estimate'](),
|
|
1861
1560
|
}); },
|
|
1862
|
-
'io.flow.
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
items: arrayOf(function () { return factories['io.flow.experience.v0.models.order_refund_summary_item'](); }),
|
|
1561
|
+
'io.flow.fulfillment.v0.models.tier_estimate': function () { return ({
|
|
1562
|
+
type: factories['io.flow.fulfillment.v0.enums.tier_estimate_type'](),
|
|
1563
|
+
label: factories.string(),
|
|
1866
1564
|
}); },
|
|
1867
|
-
'io.flow.
|
|
1868
|
-
|
|
1869
|
-
|
|
1565
|
+
'io.flow.fulfillment.v0.models.tier_form': function () { return ({
|
|
1566
|
+
currency: factories.string(),
|
|
1567
|
+
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
1568
|
+
name: factories.string(),
|
|
1569
|
+
message: factories.string(),
|
|
1570
|
+
rules: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier_rule_form'](); }),
|
|
1571
|
+
services: arrayOf(function () { return factories.string(); }),
|
|
1572
|
+
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
1573
|
+
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
1574
|
+
description: factories.string(),
|
|
1575
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1576
|
+
display: factories['io.flow.fulfillment.v0.models.tier_display_form'](),
|
|
1577
|
+
shipping_lane: factories.string(),
|
|
1578
|
+
surcharge_settings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_setting'](); }),
|
|
1579
|
+
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
1870
1580
|
}); },
|
|
1871
|
-
'io.flow.
|
|
1581
|
+
'io.flow.fulfillment.v0.models.tier_reference': function () { return ({
|
|
1872
1582
|
id: factories.string(),
|
|
1873
|
-
parent_order: factories['io.flow.experience.v0.models.order'](),
|
|
1874
|
-
replacement_order: factories['io.flow.experience.v0.models.order'](),
|
|
1875
|
-
}); },
|
|
1876
|
-
'io.flow.experience.v0.models.order_replacement_form': function () { return ({
|
|
1877
|
-
items: arrayOf(function () { return factories['io.flow.common.v0.models.line_item_form'](); }),
|
|
1878
1583
|
}); },
|
|
1879
|
-
'io.flow.
|
|
1584
|
+
'io.flow.fulfillment.v0.models.tier_rule': function () { return ({
|
|
1880
1585
|
id: factories.string(),
|
|
1881
|
-
|
|
1586
|
+
position: factories.long(),
|
|
1587
|
+
query: factories.string(),
|
|
1588
|
+
outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome'](),
|
|
1882
1589
|
}); },
|
|
1883
|
-
'io.flow.
|
|
1884
|
-
|
|
1590
|
+
'io.flow.fulfillment.v0.models.tier_rule_form': function () { return ({
|
|
1591
|
+
position: factories.long(),
|
|
1592
|
+
query: factories.string(),
|
|
1593
|
+
outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome_form'](),
|
|
1885
1594
|
}); },
|
|
1886
|
-
'io.flow.
|
|
1595
|
+
'io.flow.fulfillment.v0.models.tier_rule_version': function () { return ({
|
|
1887
1596
|
id: factories.string(),
|
|
1888
|
-
|
|
1889
|
-
|
|
1597
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1598
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1599
|
+
tier_rule: factories['io.flow.fulfillment.v0.models.tier_rule'](),
|
|
1890
1600
|
}); },
|
|
1891
|
-
'io.flow.
|
|
1892
|
-
|
|
1893
|
-
to_service_id: factories.string(),
|
|
1601
|
+
'io.flow.fulfillment.v0.models.tier_settings': function () { return ({
|
|
1602
|
+
availability: factories['io.flow.fulfillment.v0.enums.tier_availability'](),
|
|
1894
1603
|
}); },
|
|
1895
|
-
'io.flow.
|
|
1604
|
+
'io.flow.fulfillment.v0.models.tier_summary': function () { return ({
|
|
1896
1605
|
id: factories.string(),
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
}); },
|
|
1900
|
-
'io.flow.experience.v0.models.order_submission_form': function () { return ({
|
|
1901
|
-
identifiers: arrayOf(function () { return factories['io.flow.experience.v0.models.order_submission_identifier_form'](); }),
|
|
1902
|
-
}); },
|
|
1903
|
-
'io.flow.experience.v0.models.order_submission_identifier_form': function () { return ({
|
|
1904
|
-
identifier: factories.string(),
|
|
1606
|
+
experience: factories['io.flow.fulfillment.v0.models.fulfillment_experience_reference'](),
|
|
1607
|
+
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
1905
1608
|
name: factories.string(),
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
duty: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1914
|
-
insurance: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1915
|
-
discount: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1916
|
-
surcharges: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1917
|
-
adjustment: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1918
|
-
total: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1919
|
-
lines: arrayOf(function () { return factories['io.flow.experience.v0.models.order_summary_line_item'](); }),
|
|
1920
|
-
identifiers: objectOf(function () { return factories.string(); }),
|
|
1921
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1922
|
-
}); },
|
|
1923
|
-
'io.flow.experience.v0.models.order_summary_image': function () { return ({
|
|
1924
|
-
url: factories.string(),
|
|
1925
|
-
}); },
|
|
1926
|
-
'io.flow.experience.v0.models.order_summary_item': function () { return ({
|
|
1927
|
-
number: factories.string(),
|
|
1928
|
-
name: factories.string(),
|
|
1929
|
-
description: factories.string(),
|
|
1930
|
-
attributes: arrayOf(function () { return factories['io.flow.experience.v0.models.checkout_item_content_attribute'](); }),
|
|
1931
|
-
image: factories['io.flow.experience.v0.models.order_summary_image'](),
|
|
1932
|
-
price: factories['io.flow.common.v0.models.price'](),
|
|
1933
|
-
discount: factories['io.flow.common.v0.models.price'](),
|
|
1934
|
-
tax: factories['io.flow.experience.v0.models.order_summary_levy'](),
|
|
1935
|
-
duty: factories['io.flow.experience.v0.models.order_summary_levy'](),
|
|
1936
|
-
price_attributes: objectOf(function () { return factories['io.flow.common.v0.models.price'](); }),
|
|
1937
|
-
}); },
|
|
1938
|
-
'io.flow.experience.v0.models.order_summary_levy': function () { return ({
|
|
1939
|
-
rate: factories.decimal(),
|
|
1940
|
-
rate_label: factories.string(),
|
|
1941
|
-
value: factories['io.flow.common.v0.models.price'](),
|
|
1942
|
-
}); },
|
|
1943
|
-
'io.flow.experience.v0.models.order_summary_line_item': function () { return ({
|
|
1944
|
-
id: factories.string(),
|
|
1945
|
-
item: factories['io.flow.experience.v0.models.order_summary_item'](),
|
|
1946
|
-
quantity: factories.long(),
|
|
1947
|
-
discount: factories['io.flow.common.v0.models.price'](),
|
|
1948
|
-
tax: factories['io.flow.experience.v0.models.order_summary_levy'](),
|
|
1949
|
-
duty: factories['io.flow.experience.v0.models.order_summary_levy'](),
|
|
1950
|
-
total: factories['io.flow.common.v0.models.price'](),
|
|
1951
|
-
price_attributes: objectOf(function () { return factories['io.flow.common.v0.models.price'](); }),
|
|
1952
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1953
|
-
}); },
|
|
1954
|
-
'io.flow.experience.v0.models.order_summary_price_detail': function () { return ({
|
|
1955
|
-
price: factories['io.flow.common.v0.models.price'](),
|
|
1956
|
-
name: factories.string(),
|
|
1957
|
-
rate: factories.decimal(),
|
|
1958
|
-
rate_label: factories.string(),
|
|
1959
|
-
}); },
|
|
1960
|
-
'io.flow.experience.v0.models.order_version': function () { return ({
|
|
1961
|
-
id: factories.string(),
|
|
1962
|
-
timestamp: factories.date_time_iso_8601(),
|
|
1963
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1964
|
-
order: factories['io.flow.experience.v0.models.order'](),
|
|
1965
|
-
}); },
|
|
1966
|
-
'io.flow.experience.v0.models.order_with_discounts_form': function () { return ({
|
|
1967
|
-
order: factories['io.flow.experience.v0.models.order_form'](),
|
|
1968
|
-
discounts: arrayOf(function () { return factories.string(); }),
|
|
1969
|
-
}); },
|
|
1970
|
-
'io.flow.experience.v0.models.original_prices': function () { return ({
|
|
1971
|
-
value: factories['io.flow.common.v0.models.price'](),
|
|
1972
|
-
max: factories['io.flow.common.v0.models.price'](),
|
|
1973
|
-
}); },
|
|
1974
|
-
'io.flow.experience.v0.models.payment_method_issuer': function () { return ({
|
|
1975
|
-
id: factories.string(),
|
|
1976
|
-
name: factories.string(),
|
|
1977
|
-
logo: factories['io.flow.common.v0.unions.logo_image'](),
|
|
1978
|
-
}); },
|
|
1979
|
-
'io.flow.experience.v0.models.payment_method_rule': function () { return ({
|
|
1980
|
-
tags: arrayOf(function () { return factories['io.flow.experience.v0.unions.payment_method_tag'](); }),
|
|
1981
|
-
payment_method: factories['io.flow.reference.v0.models.payment_method'](),
|
|
1982
|
-
display_position: factories.integer(),
|
|
1983
|
-
content: arrayOf(function () { return factories['io.flow.experience.v0.models.payment_method_rule_content'](); }),
|
|
1984
|
-
issuers: arrayOf(function () { return factories['io.flow.experience.v0.models.payment_method_issuer'](); }),
|
|
1985
|
-
programs: arrayOf(function () { return factories.object(); }),
|
|
1986
|
-
q: factories['io.flow.query.builder.v0.models.query'](),
|
|
1987
|
-
}); },
|
|
1988
|
-
'io.flow.experience.v0.models.payment_method_rule_content': function () { return ({
|
|
1989
|
-
key: factories['io.flow.experience.v0.enums.payment_method_rule_content_key'](),
|
|
1990
|
-
value: factories.string(),
|
|
1991
|
-
}); },
|
|
1992
|
-
'io.flow.experience.v0.models.pricing_settings': function () { return ({
|
|
1993
|
-
editable: factories.boolean(),
|
|
1994
|
-
default_tax_display: factories['io.flow.price.v0.enums.pricing_levy_setting'](),
|
|
1995
|
-
default_duty_display: factories['io.flow.price.v0.enums.pricing_levy_setting'](),
|
|
1609
|
+
services: arrayOf(function () { return factories.string(); }),
|
|
1610
|
+
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
1611
|
+
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
1612
|
+
currency: factories.string(),
|
|
1613
|
+
display: factories['io.flow.fulfillment.v0.models.tier_display'](),
|
|
1614
|
+
message: factories.string(),
|
|
1615
|
+
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
1996
1616
|
}); },
|
|
1997
|
-
'io.flow.
|
|
1617
|
+
'io.flow.fulfillment.v0.models.tier_version': function () { return ({
|
|
1998
1618
|
id: factories.string(),
|
|
1999
1619
|
timestamp: factories.date_time_iso_8601(),
|
|
2000
1620
|
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2001
|
-
|
|
2002
|
-
}); },
|
|
2003
|
-
'io.flow.experience.v0.models.promotion_trigger': function () { return ({
|
|
2004
|
-
type: factories['io.flow.experience.v0.enums.promotion_trigger_type'](),
|
|
2005
|
-
min: factories['io.flow.common.v0.models.price'](),
|
|
2006
|
-
remaining: factories['io.flow.common.v0.models.price'](),
|
|
2007
|
-
}); },
|
|
2008
|
-
'io.flow.experience.v0.models.promotion_trigger_form': function () { return ({
|
|
2009
|
-
type: factories['io.flow.experience.v0.enums.promotion_trigger_type'](),
|
|
2010
|
-
min: factories['io.flow.common.v0.models.price_form'](),
|
|
2011
|
-
}); },
|
|
2012
|
-
'io.flow.experience.v0.models.promotions': function () { return ({
|
|
2013
|
-
applied: arrayOf(function () { return factories['io.flow.experience.v0.unions.promotion'](); }),
|
|
2014
|
-
available: arrayOf(function () { return factories['io.flow.experience.v0.unions.promotion'](); }),
|
|
2015
|
-
}); },
|
|
2016
|
-
'io.flow.experience.v0.models.region_reference': function () { return ({
|
|
2017
|
-
id: factories.string(),
|
|
1621
|
+
tier: factories['io.flow.fulfillment.v0.models.tier_summary'](),
|
|
2018
1622
|
}); },
|
|
2019
|
-
'io.flow.
|
|
2020
|
-
|
|
2021
|
-
|
|
1623
|
+
'io.flow.fulfillment.v0.models.transit_estimate': function () { return ({
|
|
1624
|
+
origin: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
1625
|
+
destination: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
1626
|
+
min_date: factories.date_time_iso_8601(),
|
|
1627
|
+
max_date: factories.date_time_iso_8601(),
|
|
1628
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
2022
1629
|
}); },
|
|
2023
|
-
'io.flow.
|
|
2024
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
2025
|
-
function () { return factories['io.flow.experience.v0.models.allocation_detail_component'](); },
|
|
2026
|
-
function () { return factories['io.flow.experience.v0.models.allocation_levy_component'](); },
|
|
2027
|
-
]);
|
|
2028
|
-
return f();
|
|
2029
|
-
},
|
|
2030
|
-
'io.flow.experience.v0.unions.allocation_detail': function () {
|
|
2031
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
2032
|
-
function () { return factories['io.flow.experience.v0.models.allocation_line_detail'](); },
|
|
2033
|
-
function () { return factories['io.flow.experience.v0.models.allocation_order_detail'](); },
|
|
2034
|
-
]);
|
|
2035
|
-
return f();
|
|
2036
|
-
},
|
|
2037
|
-
'io.flow.experience.v0.unions.discount_rule_entitlement': function () {
|
|
2038
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
2039
|
-
function () { return factories['io.flow.experience.v0.models.discount_rule_subsidy_entitlement'](); },
|
|
2040
|
-
]);
|
|
2041
|
-
return f();
|
|
2042
|
-
},
|
|
2043
|
-
'io.flow.experience.v0.unions.expandable_experience': function () {
|
|
2044
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
2045
|
-
function () { return factories['io.flow.experience.v0.models.experience'](); },
|
|
2046
|
-
function () { return factories['io.flow.experience.v0.models.experience_reference'](); },
|
|
2047
|
-
]);
|
|
2048
|
-
return f();
|
|
2049
|
-
},
|
|
2050
|
-
'io.flow.experience.v0.unions.expandable_order': function () {
|
|
1630
|
+
'io.flow.fulfillment.v0.unions.delivery': function () {
|
|
2051
1631
|
var f = faker_1.default.helpers.arrayElement([
|
|
2052
|
-
function () { return factories['io.flow.
|
|
2053
|
-
function () { return factories['io.flow.
|
|
1632
|
+
function () { return factories['io.flow.fulfillment.v0.models.digital_delivery'](); },
|
|
1633
|
+
function () { return factories['io.flow.fulfillment.v0.models.physical_delivery'](); },
|
|
2054
1634
|
]);
|
|
2055
1635
|
return f();
|
|
2056
1636
|
},
|
|
2057
|
-
'io.flow.
|
|
1637
|
+
'io.flow.fulfillment.v0.unions.expandable_center': function () {
|
|
2058
1638
|
var f = faker_1.default.helpers.arrayElement([
|
|
2059
|
-
function () { return factories['io.flow.
|
|
2060
|
-
function () { return factories['io.flow.
|
|
2061
|
-
function () { return factories['io.flow.experience.v0.models.order_number_generator_prefix_suffix'](); },
|
|
1639
|
+
function () { return factories['io.flow.fulfillment.v0.models.center'](); },
|
|
1640
|
+
function () { return factories['io.flow.fulfillment.v0.models.center_reference'](); },
|
|
2062
1641
|
]);
|
|
2063
1642
|
return f();
|
|
2064
1643
|
},
|
|
2065
|
-
'io.flow.
|
|
1644
|
+
'io.flow.fulfillment.v0.unions.partner_center_fee': function () {
|
|
2066
1645
|
var f = faker_1.default.helpers.arrayElement([
|
|
2067
|
-
function () { return factories['io.flow.
|
|
1646
|
+
function () { return factories['io.flow.fulfillment.v0.models.commercial_invoice_fee'](); },
|
|
1647
|
+
function () { return factories['io.flow.fulfillment.v0.models.inbound_carton_fee'](); },
|
|
1648
|
+
function () { return factories['io.flow.fulfillment.v0.models.outbound_carton_fee'](); },
|
|
2068
1649
|
]);
|
|
2069
1650
|
return f();
|
|
2070
1651
|
},
|
|
2071
|
-
'io.flow.
|
|
1652
|
+
'io.flow.fulfillment.v0.unions.service_description': function () {
|
|
2072
1653
|
var f = faker_1.default.helpers.arrayElement([
|
|
2073
|
-
function () { return factories['io.flow.
|
|
1654
|
+
function () { return factories['io.flow.fulfillment.v0.models.service_summary'](); },
|
|
1655
|
+
function () { return factories['io.flow.fulfillment.v0.models.service_unknown'](); },
|
|
2074
1656
|
]);
|
|
2075
1657
|
return f();
|
|
2076
1658
|
},
|
|
2077
|
-
'io.flow.
|
|
1659
|
+
'io.flow.fulfillment.v0.unions.tier_rule_outcome': function () {
|
|
2078
1660
|
var f = faker_1.default.helpers.arrayElement([
|
|
2079
|
-
function () { return factories['io.flow.
|
|
2080
|
-
function () { return factories['io.flow.
|
|
1661
|
+
function () { return factories['io.flow.fulfillment.v0.models.amount_margin'](); },
|
|
1662
|
+
function () { return factories['io.flow.fulfillment.v0.models.at_cost'](); },
|
|
1663
|
+
function () { return factories['io.flow.fulfillment.v0.models.flat_rate'](); },
|
|
1664
|
+
function () { return factories['io.flow.fulfillment.v0.models.percent_margin'](); },
|
|
2081
1665
|
]);
|
|
2082
1666
|
return f();
|
|
2083
1667
|
},
|
|
2084
|
-
'io.flow.
|
|
2085
|
-
var f = faker_1.default.helpers.arrayElement([function () { return ({
|
|
2086
|
-
discriminator: 'organization_payment_method_tag',
|
|
2087
|
-
value: factories['io.flow.experience.v0.enums.organization_payment_method_tag'](),
|
|
2088
|
-
}); }, function () { return ({
|
|
2089
|
-
discriminator: 'experience_payment_method_tag',
|
|
2090
|
-
value: factories['io.flow.experience.v0.enums.experience_payment_method_tag'](),
|
|
2091
|
-
}); }]);
|
|
2092
|
-
return f();
|
|
2093
|
-
},
|
|
2094
|
-
'io.flow.experience.v0.unions.promotion': function () {
|
|
1668
|
+
'io.flow.fulfillment.v0.unions.tier_rule_outcome_form': function () {
|
|
2095
1669
|
var f = faker_1.default.helpers.arrayElement([
|
|
2096
|
-
function () { return factories['io.flow.
|
|
2097
|
-
function () { return factories['io.flow.
|
|
1670
|
+
function () { return factories['io.flow.fulfillment.v0.models.amount_margin_form'](); },
|
|
1671
|
+
function () { return factories['io.flow.fulfillment.v0.models.flat_rate_form'](); },
|
|
1672
|
+
function () { return factories['io.flow.fulfillment.v0.models.at_cost'](); },
|
|
1673
|
+
function () { return factories['io.flow.fulfillment.v0.models.percent_margin'](); },
|
|
2098
1674
|
]);
|
|
2099
1675
|
return f();
|
|
2100
1676
|
},
|
|
2101
|
-
'io.flow.
|
|
2102
|
-
|
|
2103
|
-
|
|
1677
|
+
'io.flow.google.pay.v0.enums.auth_method': function () { return faker_1.default.helpers.arrayElement(['PAN_ONLY', 'CRYPTOGRAM_3DS']); },
|
|
1678
|
+
'io.flow.google.pay.v0.enums.billing_address_format': function () { return faker_1.default.helpers.arrayElement(['MIN', 'FULL']); },
|
|
1679
|
+
'io.flow.google.pay.v0.enums.card_gateway': function () { return faker_1.default.helpers.arrayElement(['adyen', 'stripe']); },
|
|
1680
|
+
'io.flow.google.pay.v0.enums.card_network': function () { return faker_1.default.helpers.arrayElement(['AMEX', 'DISCOVER', 'JCB', 'MASTERCARD', 'VISA']); },
|
|
1681
|
+
'io.flow.google.pay.v0.enums.payment_method_type': function () { return faker_1.default.helpers.arrayElement(['CARD']); },
|
|
1682
|
+
'io.flow.google.pay.v0.enums.tokenization_type': function () { return faker_1.default.helpers.arrayElement(['PAYMENT_GATEWAY', 'DIRECT']); },
|
|
1683
|
+
'io.flow.google.pay.v0.enums.total_price_status': function () { return faker_1.default.helpers.arrayElement(['NOT_CURRENTLY_KNOWN', 'ESTIMATED', 'FINAL']); },
|
|
1684
|
+
'io.flow.google.pay.v0.models.address': function () { return ({
|
|
1685
|
+
name: factories.string(),
|
|
1686
|
+
postalCode: factories.string(),
|
|
1687
|
+
countryCode: factories.string(),
|
|
1688
|
+
phoneNumber: factories.string(),
|
|
1689
|
+
companyName: factories.string(),
|
|
1690
|
+
address1: factories.string(),
|
|
1691
|
+
address2: factories.string(),
|
|
1692
|
+
address3: factories.string(),
|
|
1693
|
+
locality: factories.string(),
|
|
1694
|
+
administrativeArea: factories.string(),
|
|
1695
|
+
sortingCode: factories.string(),
|
|
2104
1696
|
}); },
|
|
2105
|
-
'io.flow.
|
|
2106
|
-
|
|
2107
|
-
|
|
1697
|
+
'io.flow.google.pay.v0.models.billing_address_parameters': function () { return ({
|
|
1698
|
+
format: factories['io.flow.google.pay.v0.enums.billing_address_format'](),
|
|
1699
|
+
phoneNumberRequired: factories.boolean(),
|
|
2108
1700
|
}); },
|
|
2109
|
-
'io.flow.
|
|
2110
|
-
|
|
2111
|
-
|
|
1701
|
+
'io.flow.google.pay.v0.models.card_adyen_tokenization_parameters': function () { return ({
|
|
1702
|
+
gateway: factories.string(),
|
|
1703
|
+
gatewayMerchantId: factories.string(),
|
|
2112
1704
|
}); },
|
|
2113
|
-
'io.flow.
|
|
2114
|
-
|
|
2115
|
-
|
|
1705
|
+
'io.flow.google.pay.v0.models.card_direct_tokenization_parameters': function () { return ({
|
|
1706
|
+
protocolVersion: factories.string(),
|
|
1707
|
+
publicKey: factories.string(),
|
|
2116
1708
|
}); },
|
|
2117
|
-
'io.flow.
|
|
2118
|
-
|
|
2119
|
-
|
|
1709
|
+
'io.flow.google.pay.v0.models.card_payment_method_data_info': function () { return ({
|
|
1710
|
+
cardDetails: factories.string(),
|
|
1711
|
+
cardNetwork: factories.string(),
|
|
1712
|
+
billingAddress: factories['io.flow.google.pay.v0.models.address'](),
|
|
2120
1713
|
}); },
|
|
2121
|
-
'io.flow.
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
function () { return factories['io.flow.field.validation.v0.models.field_validation_max'](); },
|
|
2127
|
-
function () { return factories['io.flow.field.validation.v0.models.field_validation_pattern'](); },
|
|
2128
|
-
]);
|
|
2129
|
-
return f();
|
|
2130
|
-
},
|
|
2131
|
-
'io.flow.fulfillment.v0.enums.center_capability': function () { return faker_1.default.helpers.arrayElement(['international', 'domestic', 'crossdock', 'commercial_invoice']); },
|
|
2132
|
-
'io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key': function () { return faker_1.default.helpers.arrayElement([
|
|
2133
|
-
'ratecard_base_cost',
|
|
2134
|
-
'ratecard_ddp_fee',
|
|
2135
|
-
'ratecard_fuel_surcharge',
|
|
2136
|
-
'ratecard_oversized_shipment_fee',
|
|
2137
|
-
'ratecard_rural_shipment_fee',
|
|
2138
|
-
'ratecard_emergency_situation_surcharge_fee',
|
|
2139
|
-
'ratecard_peak_surcharge_fee',
|
|
2140
|
-
'ratecard_duties_taxes_paid_surcharge_fee',
|
|
2141
|
-
'center_commercial_invoice_fee',
|
|
2142
|
-
'center_inbound_carton_fee',
|
|
2143
|
-
'center_outbound_carton_fee',
|
|
2144
|
-
]); },
|
|
2145
|
-
'io.flow.fulfillment.v0.enums.delivery_option_cost_detail_source': function () { return faker_1.default.helpers.arrayElement(['center', 'ratecard']); },
|
|
2146
|
-
'io.flow.fulfillment.v0.enums.delivery_window_component_source': function () { return faker_1.default.helpers.arrayElement(['flow', 'organization', 'carrier', 'center', 'mixed']); },
|
|
2147
|
-
'io.flow.fulfillment.v0.enums.delivery_window_location': function () { return faker_1.default.helpers.arrayElement(['center', 'crossdock', 'customer']); },
|
|
2148
|
-
'io.flow.fulfillment.v0.enums.fulfillment_routing': function () { return faker_1.default.helpers.arrayElement(['fulfilled_from_center', 'fulfillment_service']); },
|
|
2149
|
-
'io.flow.fulfillment.v0.enums.item_availability_status': function () { return faker_1.default.helpers.arrayElement(['available', 'low', 'out_of_stock']); },
|
|
2150
|
-
'io.flow.fulfillment.v0.enums.lane_direction': function () { return faker_1.default.helpers.arrayElement(['outbound', 'return']); },
|
|
2151
|
-
'io.flow.fulfillment.v0.enums.lane_preselect_preference': function () { return faker_1.default.helpers.arrayElement(['lowest_cost', 'default_tier']); },
|
|
2152
|
-
'io.flow.fulfillment.v0.enums.lane_strategy': function () { return faker_1.default.helpers.arrayElement(['oldest', 'fastest', 'lowest_cost', 'highest_priority']); },
|
|
2153
|
-
'io.flow.fulfillment.v0.enums.physical_delivery_special_serivce': function () { return faker_1.default.helpers.arrayElement(['cold_storage', 'hazardous', 'perishable']); },
|
|
2154
|
-
'io.flow.fulfillment.v0.enums.preferred_service_selection_strategy': function () { return faker_1.default.helpers.arrayElement(['calculated_rate', 'flat_rate', 'custom_rate']); },
|
|
2155
|
-
'io.flow.fulfillment.v0.enums.quote_error_code': function () { return faker_1.default.helpers.arrayElement(['generic_error', 'items_not_available', 'shipping_unavailable']); },
|
|
2156
|
-
'io.flow.fulfillment.v0.enums.ratecard_owner': function () { return faker_1.default.helpers.arrayElement(['flow', 'organization']); },
|
|
2157
|
-
'io.flow.fulfillment.v0.enums.shipment_integration_type': function () { return faker_1.default.helpers.arrayElement(['direct', 'information', 'preadvice']); },
|
|
2158
|
-
'io.flow.fulfillment.v0.enums.shipping_configuration_type': function () { return faker_1.default.helpers.arrayElement(['default', 'variant']); },
|
|
2159
|
-
'io.flow.fulfillment.v0.enums.strategy': function () { return faker_1.default.helpers.arrayElement(['range', 'from', 'to']); },
|
|
2160
|
-
'io.flow.fulfillment.v0.enums.surcharge_responsible_party': function () { return faker_1.default.helpers.arrayElement(['organization', 'customer']); },
|
|
2161
|
-
'io.flow.fulfillment.v0.enums.tier_availability': function () { return faker_1.default.helpers.arrayElement(['always', 'backup']); },
|
|
2162
|
-
'io.flow.fulfillment.v0.enums.tier_estimate_type': function () { return faker_1.default.helpers.arrayElement(['calculated', 'custom']); },
|
|
2163
|
-
'io.flow.fulfillment.v0.enums.tier_strategy': function () { return faker_1.default.helpers.arrayElement(['fastest', 'lowest_cost']); },
|
|
2164
|
-
'io.flow.fulfillment.v0.enums.zero_amount_indicator': function () { return faker_1.default.helpers.arrayElement(['zero', 'free']); },
|
|
2165
|
-
'io.flow.fulfillment.v0.models.amount_margin': function () { return ({
|
|
2166
|
-
discriminator: 'amount_margin',
|
|
2167
|
-
margin: factories['io.flow.common.v0.models.price'](),
|
|
1714
|
+
'io.flow.google.pay.v0.models.card_payment_method_parameters': function () { return ({
|
|
1715
|
+
allowedAuthMethods: arrayOf(function () { return factories['io.flow.google.pay.v0.enums.auth_method'](); }),
|
|
1716
|
+
allowedCardNetworks: arrayOf(function () { return factories['io.flow.google.pay.v0.enums.card_network'](); }),
|
|
1717
|
+
billingAddressRequired: factories.boolean(),
|
|
1718
|
+
billingAddressParameters: factories['io.flow.google.pay.v0.models.billing_address_parameters'](),
|
|
2168
1719
|
}); },
|
|
2169
|
-
'io.flow.
|
|
2170
|
-
discriminator: '
|
|
2171
|
-
|
|
1720
|
+
'io.flow.google.pay.v0.models.direct_payment_method_token': function () { return ({
|
|
1721
|
+
discriminator: 'direct_payment_method_token',
|
|
1722
|
+
protocolVersion: factories.string(),
|
|
1723
|
+
signature: factories.string(),
|
|
1724
|
+
signedMessage: factories.string(),
|
|
2172
1725
|
}); },
|
|
2173
|
-
'io.flow.
|
|
2174
|
-
|
|
2175
|
-
|
|
1726
|
+
'io.flow.google.pay.v0.models.encrypted_message': function () { return ({
|
|
1727
|
+
messageExpiration: factories.string(),
|
|
1728
|
+
messageId: factories.string(),
|
|
1729
|
+
paymentMethod: factories['io.flow.google.pay.v0.models.payment_method'](),
|
|
1730
|
+
paymentMethodDetails: factories['io.flow.google.pay.v0.models.payment_method_details'](),
|
|
2176
1731
|
}); },
|
|
2177
|
-
'io.flow.
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
1732
|
+
'io.flow.google.pay.v0.models.merchant_info': function () { return ({
|
|
1733
|
+
merchantId: factories.string(),
|
|
1734
|
+
merchantName: factories.string(),
|
|
1735
|
+
authJwt: factories.string(),
|
|
2181
1736
|
}); },
|
|
2182
|
-
'io.flow.
|
|
2183
|
-
|
|
1737
|
+
'io.flow.google.pay.v0.models.payment_data': function () { return ({
|
|
1738
|
+
apiVersion: factories.integer(),
|
|
1739
|
+
apiVersionMinor: factories.integer(),
|
|
1740
|
+
paymentMethodData: factories['io.flow.google.pay.v0.models.payment_method_data'](),
|
|
1741
|
+
email: factories.string(),
|
|
1742
|
+
shippingAddress: factories['io.flow.google.pay.v0.models.address'](),
|
|
2184
1743
|
}); },
|
|
2185
|
-
'io.flow.
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
timezone: factories.string(),
|
|
2195
|
-
capabilities: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.center_capability'](); }),
|
|
2196
|
-
partner_center: factories['io.flow.fulfillment.v0.models.partner_center'](),
|
|
1744
|
+
'io.flow.google.pay.v0.models.payment_data_request': function () { return ({
|
|
1745
|
+
apiVersion: factories.integer(),
|
|
1746
|
+
apiVersionMinor: factories.integer(),
|
|
1747
|
+
merchantInfo: factories['io.flow.google.pay.v0.models.merchant_info'](),
|
|
1748
|
+
allowedPaymentMethods: arrayOf(function () { return factories['io.flow.google.pay.v0.models.payment_method'](); }),
|
|
1749
|
+
transactionInfo: factories['io.flow.google.pay.v0.models.transaction_info'](),
|
|
1750
|
+
emailRequired: factories.boolean(),
|
|
1751
|
+
shippingAddressRequired: factories.boolean(),
|
|
1752
|
+
shippingAddressParameters: factories['io.flow.google.pay.v0.models.shipping_address_parameters'](),
|
|
2197
1753
|
}); },
|
|
2198
|
-
'io.flow.
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
services: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.available_service'](); }),
|
|
2203
|
-
schedule: factories['io.flow.common.v0.models.schedule'](),
|
|
2204
|
-
timezone: factories.string(),
|
|
2205
|
-
key: factories.string(),
|
|
2206
|
-
capabilities: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.center_capability'](); }),
|
|
2207
|
-
partner_center_form: factories['io.flow.fulfillment.v0.models.partner_center_form'](),
|
|
1754
|
+
'io.flow.google.pay.v0.models.payment_method': function () { return ({
|
|
1755
|
+
type: factories['io.flow.google.pay.v0.enums.payment_method_type'](),
|
|
1756
|
+
parameters: factories['io.flow.google.pay.v0.models.card_payment_method_parameters'](),
|
|
1757
|
+
tokenizationSpecification: factories['io.flow.google.pay.v0.models.payment_method_tokenization_specification'](),
|
|
2208
1758
|
}); },
|
|
2209
|
-
'io.flow.
|
|
2210
|
-
|
|
1759
|
+
'io.flow.google.pay.v0.models.payment_method_data': function () { return ({
|
|
1760
|
+
type: factories['io.flow.google.pay.v0.enums.payment_method_type'](),
|
|
1761
|
+
description: factories.string(),
|
|
1762
|
+
info: factories['io.flow.google.pay.v0.models.card_payment_method_data_info'](),
|
|
1763
|
+
tokenizationData: factories['io.flow.google.pay.v0.models.payment_method_tokenization_data'](),
|
|
2211
1764
|
}); },
|
|
2212
|
-
'io.flow.
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
1765
|
+
'io.flow.google.pay.v0.models.payment_method_details': function () { return ({
|
|
1766
|
+
pan: factories.string(),
|
|
1767
|
+
expirationMonth: factories.integer(),
|
|
1768
|
+
expirationYear: factories.integer(),
|
|
1769
|
+
authMethod: factories['io.flow.google.pay.v0.enums.auth_method'](),
|
|
1770
|
+
cryptogram: factories.string(),
|
|
1771
|
+
eciIndicator: factories.string(),
|
|
2216
1772
|
}); },
|
|
2217
|
-
'io.flow.
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1773
|
+
'io.flow.google.pay.v0.models.payment_method_tokenization_data': function () { return ({
|
|
1774
|
+
type: factories.string(),
|
|
1775
|
+
token: factories.string(),
|
|
2221
1776
|
}); },
|
|
2222
|
-
'io.flow.
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2226
|
-
center: factories['io.flow.fulfillment.v0.models.center'](),
|
|
1777
|
+
'io.flow.google.pay.v0.models.payment_method_tokenization_specification': function () { return ({
|
|
1778
|
+
type: factories['io.flow.google.pay.v0.enums.tokenization_type'](),
|
|
1779
|
+
parameters: factories.object(),
|
|
2227
1780
|
}); },
|
|
2228
|
-
'io.flow.
|
|
2229
|
-
|
|
2230
|
-
amount: factories['io.flow.common.v0.models.money'](),
|
|
1781
|
+
'io.flow.google.pay.v0.models.shipping_address_parameters': function () { return ({
|
|
1782
|
+
allowedCountryCodes: arrayOf(function () { return factories.string(); }),
|
|
2231
1783
|
}); },
|
|
2232
|
-
'io.flow.
|
|
2233
|
-
|
|
2234
|
-
|
|
1784
|
+
'io.flow.google.pay.v0.models.signed_message': function () { return ({
|
|
1785
|
+
encryptedMessage: factories.string(),
|
|
1786
|
+
ephemeralPublicKey: factories.string(),
|
|
1787
|
+
tag: factories.string(),
|
|
2235
1788
|
}); },
|
|
2236
|
-
'io.flow.
|
|
2237
|
-
|
|
2238
|
-
|
|
1789
|
+
'io.flow.google.pay.v0.models.stripe_payment_method_token': function () { return ({
|
|
1790
|
+
discriminator: 'stripe_payment_method_token',
|
|
1791
|
+
token: factories['io.flow.stripe.v0.models.token'](),
|
|
2239
1792
|
}); },
|
|
2240
|
-
'io.flow.
|
|
2241
|
-
|
|
1793
|
+
'io.flow.google.pay.v0.models.transaction_info': function () { return ({
|
|
1794
|
+
totalPriceStatus: factories['io.flow.google.pay.v0.enums.total_price_status'](),
|
|
1795
|
+
totalPrice: factories.string(),
|
|
1796
|
+
currencyCode: factories.string(),
|
|
1797
|
+
}); },
|
|
1798
|
+
'io.flow.google.pay.v0.unions.payment_method_token': function () {
|
|
1799
|
+
var f = faker_1.default.helpers.arrayElement([
|
|
1800
|
+
function () { return factories['io.flow.google.pay.v0.models.direct_payment_method_token'](); },
|
|
1801
|
+
function () { return factories['io.flow.google.pay.v0.models.stripe_payment_method_token'](); },
|
|
1802
|
+
]);
|
|
1803
|
+
return f();
|
|
1804
|
+
},
|
|
1805
|
+
'io.flow.inventory.v0.enums.aggregate': function () { return faker_1.default.helpers.arrayElement(['maximum', 'minimum']); },
|
|
1806
|
+
'io.flow.inventory.v0.enums.inventory_status': function () { return faker_1.default.helpers.arrayElement(['has_inventory', 'no_inventory']); },
|
|
1807
|
+
'io.flow.inventory.v0.enums.update_type': function () { return faker_1.default.helpers.arrayElement(['change', 'set']); },
|
|
1808
|
+
'io.flow.inventory.v0.models.external_api_timeout_reservation_error': function () { return ({
|
|
1809
|
+
code: 'external_api_timeout',
|
|
1810
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
1811
|
+
}); },
|
|
1812
|
+
'io.flow.inventory.v0.models.generic_reservation_error': function () { return ({
|
|
1813
|
+
code: 'generic_reservation_error',
|
|
1814
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
1815
|
+
}); },
|
|
1816
|
+
'io.flow.inventory.v0.models.inventory_backorder': function () { return ({
|
|
1817
|
+
discriminator: 'inventory_backorder',
|
|
1818
|
+
quantity: factories.long(),
|
|
1819
|
+
}); },
|
|
1820
|
+
'io.flow.inventory.v0.models.inventory_center_reference': function () { return ({
|
|
1821
|
+
key: factories.string(),
|
|
1822
|
+
}); },
|
|
1823
|
+
'io.flow.inventory.v0.models.inventory_check_response': function () { return ({
|
|
1824
|
+
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.inventory_check_response_item'](); }),
|
|
1825
|
+
}); },
|
|
1826
|
+
'io.flow.inventory.v0.models.inventory_check_response_item': function () { return ({
|
|
2242
1827
|
number: factories.string(),
|
|
2243
1828
|
quantity: factories.long(),
|
|
2244
|
-
|
|
2245
|
-
price: factories['io.flow.common.v0.models.money_with_optional_base'](),
|
|
2246
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
2247
|
-
center: factories.string(),
|
|
2248
|
-
line_number: factories.long(),
|
|
1829
|
+
inventory_status: factories['io.flow.inventory.v0.enums.inventory_status'](),
|
|
2249
1830
|
}); },
|
|
2250
|
-
'io.flow.
|
|
2251
|
-
|
|
2252
|
-
cost: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
2253
|
-
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
2254
|
-
price: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
2255
|
-
service: factories['io.flow.fulfillment.v0.models.service_summary'](),
|
|
2256
|
-
tier: factories['io.flow.fulfillment.v0.models.tier_summary'](),
|
|
2257
|
-
window: factories['io.flow.fulfillment.v0.models.delivery_window'](),
|
|
2258
|
-
rule_outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome'](),
|
|
2259
|
-
weight: factories['io.flow.fulfillment.v0.models.option_weight_estimates'](),
|
|
2260
|
-
send_to: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
2261
|
-
surcharge: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
2262
|
-
ratecard_owner: factories['io.flow.fulfillment.v0.enums.ratecard_owner'](),
|
|
1831
|
+
'io.flow.inventory.v0.models.inventory_experience_reference': function () { return ({
|
|
1832
|
+
key: factories.string(),
|
|
2263
1833
|
}); },
|
|
2264
|
-
'io.flow.
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
amount: factories.decimal(),
|
|
2268
|
-
label: factories.string(),
|
|
2269
|
-
base: factories['io.flow.common.v0.models.price'](),
|
|
1834
|
+
'io.flow.inventory.v0.models.inventory_follow_ecommerce_platform': function () { return ({
|
|
1835
|
+
discriminator: 'inventory_follow_ecommerce_platform',
|
|
1836
|
+
quantity: factories.long(),
|
|
2270
1837
|
}); },
|
|
2271
|
-
'io.flow.
|
|
2272
|
-
|
|
2273
|
-
ratecard_id: factories.string(),
|
|
2274
|
-
currency: factories.string(),
|
|
2275
|
-
amount: factories.decimal(),
|
|
2276
|
-
label: factories.string(),
|
|
2277
|
-
base: factories['io.flow.common.v0.models.price'](),
|
|
2278
|
-
components: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option_cost_component'](); }),
|
|
1838
|
+
'io.flow.inventory.v0.models.inventory_item_reference': function () { return ({
|
|
1839
|
+
number: factories.string(),
|
|
2279
1840
|
}); },
|
|
2280
|
-
'io.flow.
|
|
2281
|
-
|
|
2282
|
-
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.quote_line_item_form'](); }),
|
|
2283
|
-
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1841
|
+
'io.flow.inventory.v0.models.inventory_request': function () { return ({
|
|
1842
|
+
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.inventory_request_item'](); }),
|
|
2284
1843
|
}); },
|
|
2285
|
-
'io.flow.
|
|
2286
|
-
|
|
1844
|
+
'io.flow.inventory.v0.models.inventory_request_item': function () { return ({
|
|
1845
|
+
number: factories.string(),
|
|
1846
|
+
quantity: factories.long(),
|
|
2287
1847
|
}); },
|
|
2288
|
-
'io.flow.
|
|
1848
|
+
'io.flow.inventory.v0.models.inventory_rule': function () { return ({
|
|
2289
1849
|
id: factories.string(),
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
service: factories['io.flow.fulfillment.v0.models.service_reference'](),
|
|
2294
|
-
tier: factories['io.flow.fulfillment.v0.models.tier_reference'](),
|
|
2295
|
-
window: factories['io.flow.common.v0.models.datetime_range'](),
|
|
1850
|
+
position: factories.long(),
|
|
1851
|
+
query: factories.string(),
|
|
1852
|
+
strategy: factories['io.flow.inventory.v0.unions.inventory_strategy'](),
|
|
2296
1853
|
}); },
|
|
2297
|
-
'io.flow.
|
|
1854
|
+
'io.flow.inventory.v0.models.inventory_rule_form': function () { return ({
|
|
1855
|
+
position: factories.long(),
|
|
1856
|
+
query: factories.string(),
|
|
1857
|
+
strategy: factories['io.flow.inventory.v0.unions.inventory_strategy'](),
|
|
1858
|
+
}); },
|
|
1859
|
+
'io.flow.inventory.v0.models.inventory_rule_version': function () { return ({
|
|
2298
1860
|
id: factories.string(),
|
|
2299
1861
|
timestamp: factories.date_time_iso_8601(),
|
|
2300
1862
|
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2301
|
-
|
|
1863
|
+
inventory_rule: factories['io.flow.inventory.v0.models.inventory_rule'](),
|
|
2302
1864
|
}); },
|
|
2303
|
-
'io.flow.
|
|
1865
|
+
'io.flow.inventory.v0.models.inventory_snapshot': function () { return ({
|
|
2304
1866
|
id: factories.string(),
|
|
2305
|
-
|
|
1867
|
+
available: factories.long(),
|
|
1868
|
+
center: factories['io.flow.inventory.v0.models.inventory_center_reference'](),
|
|
1869
|
+
item: factories['io.flow.inventory.v0.models.inventory_item_reference'](),
|
|
1870
|
+
quantity: factories.long(),
|
|
2306
1871
|
}); },
|
|
2307
|
-
'io.flow.
|
|
1872
|
+
'io.flow.inventory.v0.models.inventory_snapshot_version': function () { return ({
|
|
2308
1873
|
id: factories.string(),
|
|
2309
1874
|
timestamp: factories.date_time_iso_8601(),
|
|
2310
1875
|
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2311
|
-
|
|
2312
|
-
}); },
|
|
2313
|
-
'io.flow.fulfillment.v0.models.delivery_window': function () { return ({
|
|
2314
|
-
from: factories.date_time_iso_8601(),
|
|
2315
|
-
to: factories.date_time_iso_8601(),
|
|
2316
|
-
timezone: factories.string(),
|
|
2317
|
-
label: factories.string(),
|
|
2318
|
-
min_days: factories.long(),
|
|
2319
|
-
max_days: factories.long(),
|
|
1876
|
+
inventory_snapshot: factories['io.flow.inventory.v0.models.inventory_snapshot'](),
|
|
2320
1877
|
}); },
|
|
2321
|
-
'io.flow.
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
1878
|
+
'io.flow.inventory.v0.models.inventory_stock': function () { return ({
|
|
1879
|
+
discriminator: 'inventory_stock',
|
|
1880
|
+
quantity: factories.long(),
|
|
2325
1881
|
}); },
|
|
2326
|
-
'io.flow.
|
|
2327
|
-
|
|
2328
|
-
|
|
1882
|
+
'io.flow.inventory.v0.models.inventory_unlimited': function () { return ({
|
|
1883
|
+
discriminator: 'inventory_unlimited',
|
|
1884
|
+
placeholder: factories.string(),
|
|
2329
1885
|
}); },
|
|
2330
|
-
'io.flow.
|
|
2331
|
-
|
|
2332
|
-
|
|
1886
|
+
'io.flow.inventory.v0.models.inventory_update': function () { return ({
|
|
1887
|
+
id: factories.string(),
|
|
1888
|
+
idempotency_key: factories.string(),
|
|
1889
|
+
center: factories['io.flow.inventory.v0.models.inventory_center_reference'](),
|
|
1890
|
+
item: factories['io.flow.inventory.v0.models.inventory_item_reference'](),
|
|
1891
|
+
notes: factories.object(),
|
|
1892
|
+
quantity: factories.long(),
|
|
1893
|
+
type: factories['io.flow.inventory.v0.enums.update_type'](),
|
|
2333
1894
|
}); },
|
|
2334
|
-
'io.flow.
|
|
2335
|
-
|
|
2336
|
-
|
|
1895
|
+
'io.flow.inventory.v0.models.inventory_update_form': function () { return ({
|
|
1896
|
+
center: factories.string(),
|
|
1897
|
+
idempotency_key: factories.string(),
|
|
1898
|
+
item_number: factories.string(),
|
|
1899
|
+
quantity: factories.long(),
|
|
1900
|
+
type: factories['io.flow.inventory.v0.enums.update_type'](),
|
|
1901
|
+
notes: factories.object(),
|
|
2337
1902
|
}); },
|
|
2338
|
-
'io.flow.
|
|
2339
|
-
discriminator: 'digital_delivery',
|
|
1903
|
+
'io.flow.inventory.v0.models.inventory_update_version': function () { return ({
|
|
2340
1904
|
id: factories.string(),
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
2345
|
-
}); },
|
|
2346
|
-
'io.flow.fulfillment.v0.models.estimated_window': function () { return ({
|
|
2347
|
-
from: factories.long(),
|
|
2348
|
-
to: factories.long(),
|
|
2349
|
-
unit: factories['io.flow.common.v0.enums.unit_of_time'](),
|
|
1905
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1906
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1907
|
+
inventory_update: factories['io.flow.inventory.v0.models.inventory_update'](),
|
|
2350
1908
|
}); },
|
|
2351
|
-
'io.flow.
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
1909
|
+
'io.flow.inventory.v0.models.no_inventory_reservation_error': function () { return ({
|
|
1910
|
+
code: 'no_inventory',
|
|
1911
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
1912
|
+
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.no_inventory_reservation_error_item'](); }),
|
|
2355
1913
|
}); },
|
|
2356
|
-
'io.flow.
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
1914
|
+
'io.flow.inventory.v0.models.no_inventory_reservation_error_item': function () { return ({
|
|
1915
|
+
number: factories.string(),
|
|
1916
|
+
requested_quantity: factories.long(),
|
|
1917
|
+
available_quantity: factories.long(),
|
|
2360
1918
|
}); },
|
|
2361
|
-
'io.flow.
|
|
2362
|
-
|
|
2363
|
-
currency: factories.string(),
|
|
1919
|
+
'io.flow.inventory.v0.models.pfs_inventory_check_response': function () { return ({
|
|
1920
|
+
items: objectOf(function () { return factories['io.flow.inventory.v0.models.pfs_inventory_check_response_item'](); }),
|
|
2364
1921
|
}); },
|
|
2365
|
-
'io.flow.
|
|
2366
|
-
|
|
2367
|
-
|
|
1922
|
+
'io.flow.inventory.v0.models.pfs_inventory_check_response_item': function () { return ({
|
|
1923
|
+
number: factories.string(),
|
|
1924
|
+
ats: factories.long(),
|
|
1925
|
+
in_stock: factories.boolean(),
|
|
2368
1926
|
}); },
|
|
2369
|
-
'io.flow.
|
|
2370
|
-
|
|
2371
|
-
max: factories['io.flow.common.v0.models.price'](),
|
|
1927
|
+
'io.flow.inventory.v0.models.pfs_inventory_status': function () { return ({
|
|
1928
|
+
status: factories.string(),
|
|
2372
1929
|
}); },
|
|
2373
|
-
'io.flow.
|
|
2374
|
-
|
|
2375
|
-
|
|
1930
|
+
'io.flow.inventory.v0.models.reservation': function () { return ({
|
|
1931
|
+
id: factories.string(),
|
|
1932
|
+
key: factories.string(),
|
|
1933
|
+
order: factories['io.flow.inventory.v0.models.reservation_order_reference'](),
|
|
1934
|
+
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.reservation_item'](); }),
|
|
1935
|
+
reserved_until: factories.date_time_iso_8601(),
|
|
2376
1936
|
}); },
|
|
2377
|
-
'io.flow.
|
|
2378
|
-
|
|
2379
|
-
|
|
1937
|
+
'io.flow.inventory.v0.models.reservation_form': function () { return ({
|
|
1938
|
+
order_number: factories.string(),
|
|
1939
|
+
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.reservation_item_form'](); }),
|
|
2380
1940
|
}); },
|
|
2381
|
-
'io.flow.
|
|
2382
|
-
|
|
2383
|
-
|
|
1941
|
+
'io.flow.inventory.v0.models.reservation_item': function () { return ({
|
|
1942
|
+
item: factories['io.flow.inventory.v0.models.reservation_item_reference'](),
|
|
1943
|
+
quantity: factories.long(),
|
|
2384
1944
|
}); },
|
|
2385
|
-
'io.flow.
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
number: factories.string(),
|
|
1945
|
+
'io.flow.inventory.v0.models.reservation_item_form': function () { return ({
|
|
1946
|
+
item_number: factories.string(),
|
|
1947
|
+
quantity: factories.long(),
|
|
2389
1948
|
}); },
|
|
2390
|
-
'io.flow.
|
|
2391
|
-
partner_reference: factories['io.flow.common.v0.models.partner_reference'](),
|
|
1949
|
+
'io.flow.inventory.v0.models.reservation_item_reference': function () { return ({
|
|
2392
1950
|
number: factories.string(),
|
|
2393
|
-
fees: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.partner_center_fee'](); }),
|
|
2394
1951
|
}); },
|
|
2395
|
-
'io.flow.
|
|
2396
|
-
partner_id: factories.string(),
|
|
1952
|
+
'io.flow.inventory.v0.models.reservation_order_reference': function () { return ({
|
|
2397
1953
|
number: factories.string(),
|
|
2398
|
-
fees: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.partner_center_fee'](); }),
|
|
2399
|
-
}); },
|
|
2400
|
-
'io.flow.fulfillment.v0.models.percent_margin': function () { return ({
|
|
2401
|
-
discriminator: 'percent_margin',
|
|
2402
|
-
percentage: factories.double(),
|
|
2403
|
-
}); },
|
|
2404
|
-
'io.flow.fulfillment.v0.models.physical_delivery': function () { return ({
|
|
2405
|
-
discriminator: 'physical_delivery',
|
|
2406
|
-
id: factories.string(),
|
|
2407
|
-
key: factories.string(),
|
|
2408
|
-
center: factories['io.flow.fulfillment.v0.models.center_summary'](),
|
|
2409
|
-
fulfillment_routing: factories['io.flow.fulfillment.v0.enums.fulfillment_routing'](),
|
|
2410
|
-
ship_from_country: factories.string(),
|
|
2411
|
-
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_item'](); }),
|
|
2412
|
-
options: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option'](); }),
|
|
2413
|
-
special_services: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.physical_delivery_special_serivce'](); }),
|
|
2414
|
-
prices: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail'](); }),
|
|
2415
|
-
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
2416
|
-
goods_supply: factories['io.flow.common.v0.enums.goods_supply'](),
|
|
2417
|
-
merchant_of_record_flow_entity: factories['io.flow.merchant.of.record.v0.enums.flow_entity'](),
|
|
2418
|
-
preferred_service: factories['io.flow.fulfillment.v0.models.physical_delivery_preferred_service'](),
|
|
2419
|
-
}); },
|
|
2420
|
-
'io.flow.fulfillment.v0.models.physical_delivery_preferred_service': function () { return ({
|
|
2421
|
-
id: factories.string(),
|
|
2422
|
-
selection_stratey: factories['io.flow.fulfillment.v0.enums.preferred_service_selection_strategy'](),
|
|
2423
1954
|
}); },
|
|
2424
|
-
'io.flow.
|
|
1955
|
+
'io.flow.inventory.v0.unions.inventory_strategy': function () {
|
|
1956
|
+
var f = faker_1.default.helpers.arrayElement([
|
|
1957
|
+
function () { return factories['io.flow.inventory.v0.models.inventory_backorder'](); },
|
|
1958
|
+
function () { return factories['io.flow.inventory.v0.models.inventory_stock'](); },
|
|
1959
|
+
function () { return factories['io.flow.inventory.v0.models.inventory_unlimited'](); },
|
|
1960
|
+
function () { return factories['io.flow.inventory.v0.models.inventory_follow_ecommerce_platform'](); },
|
|
1961
|
+
]);
|
|
1962
|
+
return f();
|
|
1963
|
+
},
|
|
1964
|
+
'io.flow.inventory.v0.unions.reservation_error': function () {
|
|
1965
|
+
var f = faker_1.default.helpers.arrayElement([
|
|
1966
|
+
function () { return factories['io.flow.inventory.v0.models.no_inventory_reservation_error'](); },
|
|
1967
|
+
function () { return factories['io.flow.inventory.v0.models.external_api_timeout_reservation_error'](); },
|
|
1968
|
+
function () { return factories['io.flow.inventory.v0.models.generic_reservation_error'](); },
|
|
1969
|
+
]);
|
|
1970
|
+
return f();
|
|
1971
|
+
},
|
|
1972
|
+
'io.flow.merchant.of.record.v0.enums.economic_title_location': function () { return faker_1.default.helpers.arrayElement(['high_seas', 'origination', 'destination']); },
|
|
1973
|
+
'io.flow.merchant.of.record.v0.enums.flow_entity': function () { return faker_1.default.helpers.arrayElement(['flow-usa', 'flow-irl', 'flow-can', 'ge-usa']); },
|
|
1974
|
+
'io.flow.order.price.v0.enums.order_price_detail_component_key': function () { return faker_1.default.helpers.arrayElement([
|
|
1975
|
+
'adjustment',
|
|
1976
|
+
'vat_deminimis',
|
|
1977
|
+
'duty_deminimis',
|
|
1978
|
+
'duties_item_price',
|
|
1979
|
+
'duties_freight',
|
|
1980
|
+
'duties_insurance',
|
|
1981
|
+
'vat_item_price',
|
|
1982
|
+
'vat_freight',
|
|
1983
|
+
'vat_insurance',
|
|
1984
|
+
'vat_duties_item_price',
|
|
1985
|
+
'vat_duties_freight',
|
|
1986
|
+
'vat_duties_insurance',
|
|
1987
|
+
'item_price',
|
|
1988
|
+
'item_discount',
|
|
1989
|
+
'rounding',
|
|
1990
|
+
'insurance',
|
|
1991
|
+
'shipping',
|
|
1992
|
+
'shipping_discount',
|
|
1993
|
+
'order_discount',
|
|
1994
|
+
'subtotal_percent_sales_margin',
|
|
1995
|
+
'subtotal_vat_percent_sales_margin',
|
|
1996
|
+
'subtotal_duty_percent_sales_margin',
|
|
1997
|
+
'vat_subsidy',
|
|
1998
|
+
'duty_subsidy',
|
|
1999
|
+
'remote_area_surcharge',
|
|
2000
|
+
'fuel_surcharge',
|
|
2001
|
+
'emergency_situation_surcharge',
|
|
2002
|
+
'peak_surcharge',
|
|
2003
|
+
'duties_taxes_paid_surcharge',
|
|
2004
|
+
'tip',
|
|
2005
|
+
]); },
|
|
2006
|
+
'io.flow.order.price.v0.enums.order_price_detail_key': function () { return faker_1.default.helpers.arrayElement([
|
|
2007
|
+
'adjustment',
|
|
2008
|
+
'subtotal',
|
|
2009
|
+
'vat',
|
|
2010
|
+
'duty',
|
|
2011
|
+
'shipping',
|
|
2012
|
+
'insurance',
|
|
2013
|
+
'discount',
|
|
2014
|
+
'surcharges',
|
|
2015
|
+
'tip',
|
|
2016
|
+
]); },
|
|
2017
|
+
'io.flow.order.price.v0.models.order_price_detail': function () { return ({
|
|
2018
|
+
key: factories['io.flow.order.price.v0.enums.order_price_detail_key'](),
|
|
2425
2019
|
currency: factories.string(),
|
|
2426
|
-
amount: factories.
|
|
2020
|
+
amount: factories.decimal(),
|
|
2427
2021
|
label: factories.string(),
|
|
2428
2022
|
base: factories['io.flow.common.v0.models.price'](),
|
|
2429
|
-
|
|
2023
|
+
components: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail_component'](); }),
|
|
2024
|
+
name: factories.string(),
|
|
2025
|
+
rate: factories.decimal(),
|
|
2026
|
+
accuracy: factories['io.flow.price.v0.enums.price_accuracy'](),
|
|
2027
|
+
rate_label: factories.string(),
|
|
2430
2028
|
}); },
|
|
2431
|
-
'io.flow.
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2029
|
+
'io.flow.order.price.v0.models.order_price_detail_component': function () { return ({
|
|
2030
|
+
key: factories['io.flow.order.price.v0.enums.order_price_detail_component_key'](),
|
|
2031
|
+
currency: factories.string(),
|
|
2032
|
+
amount: factories.decimal(),
|
|
2033
|
+
label: factories.string(),
|
|
2034
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
2035
|
+
name: factories.string(),
|
|
2436
2036
|
}); },
|
|
2437
|
-
'io.flow.
|
|
2037
|
+
'io.flow.organization.v0.enums.country_picker_source': function () { return faker_1.default.helpers.arrayElement(['experience', 'destination']); },
|
|
2038
|
+
'io.flow.organization.v0.enums.ecommerce_platform_type': function () { return faker_1.default.helpers.arrayElement([
|
|
2039
|
+
'commercetools',
|
|
2040
|
+
'custom',
|
|
2041
|
+
'hybris',
|
|
2042
|
+
'magento',
|
|
2043
|
+
'shopify',
|
|
2044
|
+
'shopify_markets',
|
|
2045
|
+
'sfcc',
|
|
2046
|
+
'solidus',
|
|
2047
|
+
'workarea',
|
|
2048
|
+
]); },
|
|
2049
|
+
'io.flow.organization.v0.enums.invitation_error_code': function () { return faker_1.default.helpers.arrayElement(['expired', 'invalid_email']); },
|
|
2050
|
+
'io.flow.organization.v0.models.country_picker': function () { return ({
|
|
2438
2051
|
id: factories.string(),
|
|
2439
|
-
|
|
2440
|
-
deliveries: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.delivery'](); }),
|
|
2441
|
-
selections: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option_reference'](); }),
|
|
2442
|
-
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
2443
|
-
delivered_duties: arrayOf(function () { return factories['io.flow.common.v0.enums.delivered_duty'](); }),
|
|
2444
|
-
}); },
|
|
2445
|
-
'io.flow.fulfillment.v0.models.quote_error': function () { return ({
|
|
2446
|
-
code: factories['io.flow.fulfillment.v0.enums.quote_error_code'](),
|
|
2447
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
2448
|
-
item_numbers: arrayOf(function () { return factories.string(); }),
|
|
2449
|
-
}); },
|
|
2450
|
-
'io.flow.fulfillment.v0.models.quote_form': function () { return ({
|
|
2451
|
-
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
2452
|
-
experience: factories.string(),
|
|
2453
|
-
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.quote_line_item_form'](); }),
|
|
2454
|
-
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
2455
|
-
delivered_duties: arrayOf(function () { return factories['io.flow.common.v0.enums.delivered_duty'](); }),
|
|
2456
|
-
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
2457
|
-
}); },
|
|
2458
|
-
'io.flow.fulfillment.v0.models.quote_line_item_form': function () { return ({
|
|
2459
|
-
number: factories.string(),
|
|
2460
|
-
quantity: factories.long(),
|
|
2461
|
-
shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
|
|
2462
|
-
price: factories['io.flow.common.v0.models.money_with_base'](),
|
|
2463
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
2464
|
-
center: factories.string(),
|
|
2052
|
+
source: factories['io.flow.organization.v0.enums.country_picker_source'](),
|
|
2465
2053
|
}); },
|
|
2466
|
-
'io.flow.
|
|
2467
|
-
|
|
2468
|
-
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
2054
|
+
'io.flow.organization.v0.models.country_picker_form': function () { return ({
|
|
2055
|
+
source: factories['io.flow.organization.v0.enums.country_picker_source'](),
|
|
2469
2056
|
}); },
|
|
2470
|
-
'io.flow.
|
|
2057
|
+
'io.flow.organization.v0.models.ecommerce_platform': function () { return ({
|
|
2471
2058
|
id: factories.string(),
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
quote: factories['io.flow.fulfillment.v0.models.quote_summary'](),
|
|
2475
|
-
}); },
|
|
2476
|
-
'io.flow.fulfillment.v0.models.scheduled_pickup': function () { return ({
|
|
2477
|
-
day_of_week: factories['io.flow.common.v0.enums.day_of_week'](),
|
|
2478
|
-
hour_of_day: factories.string(),
|
|
2479
|
-
minute_of_hour: factories.string(),
|
|
2059
|
+
type: factories['io.flow.organization.v0.enums.ecommerce_platform_type'](),
|
|
2060
|
+
version: factories.string(),
|
|
2480
2061
|
}); },
|
|
2481
|
-
'io.flow.
|
|
2482
|
-
|
|
2062
|
+
'io.flow.organization.v0.models.ecommerce_platform_form': function () { return ({
|
|
2063
|
+
type: factories['io.flow.organization.v0.enums.ecommerce_platform_type'](),
|
|
2064
|
+
version: factories.string(),
|
|
2483
2065
|
}); },
|
|
2484
|
-
'io.flow.
|
|
2485
|
-
discriminator: 'service_summary',
|
|
2066
|
+
'io.flow.organization.v0.models.invitation': function () { return ({
|
|
2486
2067
|
id: factories.string(),
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2068
|
+
organization: factories['io.flow.common.v0.unions.expandable_organization'](),
|
|
2069
|
+
email: factories.string(),
|
|
2070
|
+
name: factories['io.flow.common.v0.models.name'](),
|
|
2071
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
2072
|
+
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
2073
|
+
expiration: factories.date_time_iso_8601(),
|
|
2490
2074
|
}); },
|
|
2491
|
-
'io.flow.
|
|
2492
|
-
|
|
2493
|
-
|
|
2075
|
+
'io.flow.organization.v0.models.invitation_error': function () { return ({
|
|
2076
|
+
code: factories['io.flow.organization.v0.enums.invitation_error_code'](),
|
|
2077
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
2494
2078
|
}); },
|
|
2495
|
-
'io.flow.
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2079
|
+
'io.flow.organization.v0.models.invitation_form': function () { return ({
|
|
2080
|
+
organization: factories.string(),
|
|
2081
|
+
email: factories.string(),
|
|
2082
|
+
name: factories['io.flow.common.v0.models.name'](),
|
|
2083
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
2084
|
+
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
2501
2085
|
}); },
|
|
2502
|
-
'io.flow.
|
|
2086
|
+
'io.flow.organization.v0.models.invitation_version': function () { return ({
|
|
2503
2087
|
id: factories.string(),
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
shipping_lanes: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.shipping_lane'](); }),
|
|
2508
|
-
}); },
|
|
2509
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_copy': function () { return ({
|
|
2510
|
-
original: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
2511
|
-
'new': factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
2512
|
-
}); },
|
|
2513
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_copy_form': function () { return ({
|
|
2514
|
-
name: factories.string(),
|
|
2515
|
-
}); },
|
|
2516
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_form': function () { return ({
|
|
2517
|
-
name: factories.string(),
|
|
2518
|
-
}); },
|
|
2519
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_item_availability': function () { return ({
|
|
2520
|
-
id: factories.string(),
|
|
2521
|
-
item: factories['io.flow.common.v0.models.item_reference'](),
|
|
2522
|
-
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_summary'](),
|
|
2523
|
-
availabilities: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.country_availability'](); }),
|
|
2524
|
-
}); },
|
|
2525
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_item_shipping_pricing': function () { return ({
|
|
2526
|
-
id: factories.string(),
|
|
2527
|
-
item: factories['io.flow.common.v0.models.item_reference'](),
|
|
2528
|
-
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_summary'](),
|
|
2529
|
-
country_shipping_pricings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.country_shipping_pricing'](); }),
|
|
2530
|
-
}); },
|
|
2531
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_reference': function () { return ({
|
|
2532
|
-
key: factories.string(),
|
|
2533
|
-
}); },
|
|
2534
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_summary': function () { return ({
|
|
2535
|
-
id: factories.string(),
|
|
2536
|
-
name: factories.string(),
|
|
2537
|
-
key: factories.string(),
|
|
2538
|
-
type: factories['io.flow.fulfillment.v0.enums.shipping_configuration_type'](),
|
|
2539
|
-
}); },
|
|
2540
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_version': function () { return ({
|
|
2541
|
-
id: factories.string(),
|
|
2542
|
-
timestamp: factories.date_time_iso_8601(),
|
|
2543
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2544
|
-
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration'](),
|
|
2545
|
-
}); },
|
|
2546
|
-
'io.flow.fulfillment.v0.models.shipping_lane': function () { return ({
|
|
2547
|
-
id: factories.string(),
|
|
2548
|
-
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
2549
|
-
region: factories.string(),
|
|
2550
|
-
centers: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.expandable_center'](); }),
|
|
2551
|
-
tiers: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier'](); }),
|
|
2552
|
-
query: factories['io.flow.query.builder.v0.models.query'](),
|
|
2553
|
-
strategy: factories['io.flow.fulfillment.v0.enums.lane_strategy'](),
|
|
2554
|
-
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
2555
|
-
preference: factories['io.flow.fulfillment.v0.enums.lane_preselect_preference'](),
|
|
2556
|
-
}); },
|
|
2557
|
-
'io.flow.fulfillment.v0.models.shipping_lane_default_tier': function () { return ({
|
|
2558
|
-
id: factories.string(),
|
|
2559
|
-
tier: factories['io.flow.fulfillment.v0.models.tier_reference'](),
|
|
2560
|
-
}); },
|
|
2561
|
-
'io.flow.fulfillment.v0.models.shipping_lane_default_tier_form': function () { return ({
|
|
2562
|
-
tier_id: factories.string(),
|
|
2563
|
-
}); },
|
|
2564
|
-
'io.flow.fulfillment.v0.models.shipping_lane_form': function () { return ({
|
|
2565
|
-
from: factories.string(),
|
|
2566
|
-
to: factories.string(),
|
|
2567
|
-
strategy: factories['io.flow.fulfillment.v0.enums.lane_strategy'](),
|
|
2568
|
-
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
2569
|
-
preference: factories['io.flow.fulfillment.v0.enums.lane_preselect_preference'](),
|
|
2570
|
-
}); },
|
|
2571
|
-
'io.flow.fulfillment.v0.models.shipping_lane_summary': function () { return ({
|
|
2572
|
-
shipping_lane_id: factories.string(),
|
|
2573
|
-
region: factories.string(),
|
|
2574
|
-
centers: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.expandable_center'](); }),
|
|
2575
|
-
}); },
|
|
2576
|
-
'io.flow.fulfillment.v0.models.shipping_lane_version': function () { return ({
|
|
2577
|
-
id: factories.string(),
|
|
2578
|
-
timestamp: factories.date_time_iso_8601(),
|
|
2579
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2580
|
-
shipping_lane: factories['io.flow.fulfillment.v0.models.shipping_lane'](),
|
|
2581
|
-
}); },
|
|
2582
|
-
'io.flow.fulfillment.v0.models.surcharge_responsible_party_display': function () { return ({
|
|
2583
|
-
name: factories.string(),
|
|
2584
|
-
responsible_party: factories['io.flow.fulfillment.v0.enums.surcharge_responsible_party'](),
|
|
2585
|
-
}); },
|
|
2586
|
-
'io.flow.fulfillment.v0.models.surcharge_setting': function () { return ({
|
|
2587
|
-
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
2588
|
-
responsible_party: factories['io.flow.fulfillment.v0.enums.surcharge_responsible_party'](),
|
|
2589
|
-
}); },
|
|
2590
|
-
'io.flow.fulfillment.v0.models.surcharge_setting_display': function () { return ({
|
|
2591
|
-
name: factories.string(),
|
|
2592
|
-
description: factories.string(),
|
|
2593
|
-
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
2594
|
-
available: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_responsible_party_display'](); }),
|
|
2595
|
-
}); },
|
|
2596
|
-
'io.flow.fulfillment.v0.models.tier': function () { return ({
|
|
2597
|
-
id: factories.string(),
|
|
2598
|
-
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
2599
|
-
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
2600
|
-
name: factories.string(),
|
|
2601
|
-
message: factories.string(),
|
|
2602
|
-
rules: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier_rule'](); }),
|
|
2603
|
-
services: arrayOf(function () { return factories['io.flow.reference.v0.models.carrier_service'](); }),
|
|
2604
|
-
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
2605
|
-
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
2606
|
-
currency: factories.string(),
|
|
2607
|
-
description: factories.string(),
|
|
2608
|
-
display: factories['io.flow.fulfillment.v0.models.tier_display'](),
|
|
2609
|
-
shipping_lane: factories.string(),
|
|
2610
|
-
surcharge_settings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_setting'](); }),
|
|
2611
|
-
lane: factories['io.flow.fulfillment.v0.models.shipping_lane_summary'](),
|
|
2612
|
-
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
2613
|
-
}); },
|
|
2614
|
-
'io.flow.fulfillment.v0.models.tier_display': function () { return ({
|
|
2615
|
-
estimate: factories['io.flow.fulfillment.v0.models.tier_estimate'](),
|
|
2616
|
-
}); },
|
|
2617
|
-
'io.flow.fulfillment.v0.models.tier_display_form': function () { return ({
|
|
2618
|
-
estimate: factories['io.flow.fulfillment.v0.models.tier_estimate'](),
|
|
2619
|
-
}); },
|
|
2620
|
-
'io.flow.fulfillment.v0.models.tier_estimate': function () { return ({
|
|
2621
|
-
type: factories['io.flow.fulfillment.v0.enums.tier_estimate_type'](),
|
|
2622
|
-
label: factories.string(),
|
|
2623
|
-
}); },
|
|
2624
|
-
'io.flow.fulfillment.v0.models.tier_form': function () { return ({
|
|
2625
|
-
currency: factories.string(),
|
|
2626
|
-
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
2627
|
-
name: factories.string(),
|
|
2628
|
-
message: factories.string(),
|
|
2629
|
-
rules: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier_rule_form'](); }),
|
|
2630
|
-
services: arrayOf(function () { return factories.string(); }),
|
|
2631
|
-
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
2632
|
-
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
2633
|
-
description: factories.string(),
|
|
2634
|
-
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
2635
|
-
display: factories['io.flow.fulfillment.v0.models.tier_display_form'](),
|
|
2636
|
-
shipping_lane: factories.string(),
|
|
2637
|
-
surcharge_settings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_setting'](); }),
|
|
2638
|
-
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
2639
|
-
}); },
|
|
2640
|
-
'io.flow.fulfillment.v0.models.tier_reference': function () { return ({
|
|
2641
|
-
id: factories.string(),
|
|
2642
|
-
}); },
|
|
2643
|
-
'io.flow.fulfillment.v0.models.tier_rule': function () { return ({
|
|
2644
|
-
id: factories.string(),
|
|
2645
|
-
position: factories.long(),
|
|
2646
|
-
query: factories.string(),
|
|
2647
|
-
outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome'](),
|
|
2648
|
-
}); },
|
|
2649
|
-
'io.flow.fulfillment.v0.models.tier_rule_form': function () { return ({
|
|
2650
|
-
position: factories.long(),
|
|
2651
|
-
query: factories.string(),
|
|
2652
|
-
outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome_form'](),
|
|
2653
|
-
}); },
|
|
2654
|
-
'io.flow.fulfillment.v0.models.tier_rule_version': function () { return ({
|
|
2655
|
-
id: factories.string(),
|
|
2656
|
-
timestamp: factories.date_time_iso_8601(),
|
|
2657
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2658
|
-
tier_rule: factories['io.flow.fulfillment.v0.models.tier_rule'](),
|
|
2659
|
-
}); },
|
|
2660
|
-
'io.flow.fulfillment.v0.models.tier_settings': function () { return ({
|
|
2661
|
-
availability: factories['io.flow.fulfillment.v0.enums.tier_availability'](),
|
|
2662
|
-
}); },
|
|
2663
|
-
'io.flow.fulfillment.v0.models.tier_summary': function () { return ({
|
|
2664
|
-
id: factories.string(),
|
|
2665
|
-
experience: factories['io.flow.fulfillment.v0.models.fulfillment_experience_reference'](),
|
|
2666
|
-
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
2667
|
-
name: factories.string(),
|
|
2668
|
-
services: arrayOf(function () { return factories.string(); }),
|
|
2669
|
-
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
2670
|
-
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
2671
|
-
currency: factories.string(),
|
|
2672
|
-
display: factories['io.flow.fulfillment.v0.models.tier_display'](),
|
|
2673
|
-
message: factories.string(),
|
|
2674
|
-
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
2675
|
-
}); },
|
|
2676
|
-
'io.flow.fulfillment.v0.models.tier_version': function () { return ({
|
|
2677
|
-
id: factories.string(),
|
|
2678
|
-
timestamp: factories.date_time_iso_8601(),
|
|
2679
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2680
|
-
tier: factories['io.flow.fulfillment.v0.models.tier_summary'](),
|
|
2681
|
-
}); },
|
|
2682
|
-
'io.flow.fulfillment.v0.models.transit_estimate': function () { return ({
|
|
2683
|
-
origin: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
2684
|
-
destination: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
2685
|
-
min_date: factories.date_time_iso_8601(),
|
|
2686
|
-
max_date: factories.date_time_iso_8601(),
|
|
2687
|
-
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
2688
|
-
}); },
|
|
2689
|
-
'io.flow.fulfillment.v0.unions.delivery': function () {
|
|
2690
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
2691
|
-
function () { return factories['io.flow.fulfillment.v0.models.digital_delivery'](); },
|
|
2692
|
-
function () { return factories['io.flow.fulfillment.v0.models.physical_delivery'](); },
|
|
2693
|
-
]);
|
|
2694
|
-
return f();
|
|
2695
|
-
},
|
|
2696
|
-
'io.flow.fulfillment.v0.unions.expandable_center': function () {
|
|
2697
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
2698
|
-
function () { return factories['io.flow.fulfillment.v0.models.center'](); },
|
|
2699
|
-
function () { return factories['io.flow.fulfillment.v0.models.center_reference'](); },
|
|
2700
|
-
]);
|
|
2701
|
-
return f();
|
|
2702
|
-
},
|
|
2703
|
-
'io.flow.fulfillment.v0.unions.partner_center_fee': function () {
|
|
2704
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
2705
|
-
function () { return factories['io.flow.fulfillment.v0.models.commercial_invoice_fee'](); },
|
|
2706
|
-
function () { return factories['io.flow.fulfillment.v0.models.inbound_carton_fee'](); },
|
|
2707
|
-
function () { return factories['io.flow.fulfillment.v0.models.outbound_carton_fee'](); },
|
|
2708
|
-
]);
|
|
2709
|
-
return f();
|
|
2710
|
-
},
|
|
2711
|
-
'io.flow.fulfillment.v0.unions.service_description': function () {
|
|
2712
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
2713
|
-
function () { return factories['io.flow.fulfillment.v0.models.service_summary'](); },
|
|
2714
|
-
function () { return factories['io.flow.fulfillment.v0.models.service_unknown'](); },
|
|
2715
|
-
]);
|
|
2716
|
-
return f();
|
|
2717
|
-
},
|
|
2718
|
-
'io.flow.fulfillment.v0.unions.tier_rule_outcome': function () {
|
|
2719
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
2720
|
-
function () { return factories['io.flow.fulfillment.v0.models.amount_margin'](); },
|
|
2721
|
-
function () { return factories['io.flow.fulfillment.v0.models.at_cost'](); },
|
|
2722
|
-
function () { return factories['io.flow.fulfillment.v0.models.flat_rate'](); },
|
|
2723
|
-
function () { return factories['io.flow.fulfillment.v0.models.percent_margin'](); },
|
|
2724
|
-
]);
|
|
2725
|
-
return f();
|
|
2726
|
-
},
|
|
2727
|
-
'io.flow.fulfillment.v0.unions.tier_rule_outcome_form': function () {
|
|
2728
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
2729
|
-
function () { return factories['io.flow.fulfillment.v0.models.amount_margin_form'](); },
|
|
2730
|
-
function () { return factories['io.flow.fulfillment.v0.models.flat_rate_form'](); },
|
|
2731
|
-
function () { return factories['io.flow.fulfillment.v0.models.at_cost'](); },
|
|
2732
|
-
function () { return factories['io.flow.fulfillment.v0.models.percent_margin'](); },
|
|
2733
|
-
]);
|
|
2734
|
-
return f();
|
|
2735
|
-
},
|
|
2736
|
-
'io.flow.google.pay.v0.enums.auth_method': function () { return faker_1.default.helpers.arrayElement(['PAN_ONLY', 'CRYPTOGRAM_3DS']); },
|
|
2737
|
-
'io.flow.google.pay.v0.enums.billing_address_format': function () { return faker_1.default.helpers.arrayElement(['MIN', 'FULL']); },
|
|
2738
|
-
'io.flow.google.pay.v0.enums.card_gateway': function () { return faker_1.default.helpers.arrayElement(['adyen', 'stripe']); },
|
|
2739
|
-
'io.flow.google.pay.v0.enums.card_network': function () { return faker_1.default.helpers.arrayElement(['AMEX', 'DISCOVER', 'JCB', 'MASTERCARD', 'VISA']); },
|
|
2740
|
-
'io.flow.google.pay.v0.enums.payment_method_type': function () { return faker_1.default.helpers.arrayElement(['CARD']); },
|
|
2741
|
-
'io.flow.google.pay.v0.enums.tokenization_type': function () { return faker_1.default.helpers.arrayElement(['PAYMENT_GATEWAY', 'DIRECT']); },
|
|
2742
|
-
'io.flow.google.pay.v0.enums.total_price_status': function () { return faker_1.default.helpers.arrayElement(['NOT_CURRENTLY_KNOWN', 'ESTIMATED', 'FINAL']); },
|
|
2743
|
-
'io.flow.google.pay.v0.models.address': function () { return ({
|
|
2744
|
-
name: factories.string(),
|
|
2745
|
-
postalCode: factories.string(),
|
|
2746
|
-
countryCode: factories.string(),
|
|
2747
|
-
phoneNumber: factories.string(),
|
|
2748
|
-
companyName: factories.string(),
|
|
2749
|
-
address1: factories.string(),
|
|
2750
|
-
address2: factories.string(),
|
|
2751
|
-
address3: factories.string(),
|
|
2752
|
-
locality: factories.string(),
|
|
2753
|
-
administrativeArea: factories.string(),
|
|
2754
|
-
sortingCode: factories.string(),
|
|
2755
|
-
}); },
|
|
2756
|
-
'io.flow.google.pay.v0.models.billing_address_parameters': function () { return ({
|
|
2757
|
-
format: factories['io.flow.google.pay.v0.enums.billing_address_format'](),
|
|
2758
|
-
phoneNumberRequired: factories.boolean(),
|
|
2759
|
-
}); },
|
|
2760
|
-
'io.flow.google.pay.v0.models.card_adyen_tokenization_parameters': function () { return ({
|
|
2761
|
-
gateway: factories.string(),
|
|
2762
|
-
gatewayMerchantId: factories.string(),
|
|
2763
|
-
}); },
|
|
2764
|
-
'io.flow.google.pay.v0.models.card_direct_tokenization_parameters': function () { return ({
|
|
2765
|
-
protocolVersion: factories.string(),
|
|
2766
|
-
publicKey: factories.string(),
|
|
2767
|
-
}); },
|
|
2768
|
-
'io.flow.google.pay.v0.models.card_payment_method_data_info': function () { return ({
|
|
2769
|
-
cardDetails: factories.string(),
|
|
2770
|
-
cardNetwork: factories.string(),
|
|
2771
|
-
billingAddress: factories['io.flow.google.pay.v0.models.address'](),
|
|
2772
|
-
}); },
|
|
2773
|
-
'io.flow.google.pay.v0.models.card_payment_method_parameters': function () { return ({
|
|
2774
|
-
allowedAuthMethods: arrayOf(function () { return factories['io.flow.google.pay.v0.enums.auth_method'](); }),
|
|
2775
|
-
allowedCardNetworks: arrayOf(function () { return factories['io.flow.google.pay.v0.enums.card_network'](); }),
|
|
2776
|
-
billingAddressRequired: factories.boolean(),
|
|
2777
|
-
billingAddressParameters: factories['io.flow.google.pay.v0.models.billing_address_parameters'](),
|
|
2778
|
-
}); },
|
|
2779
|
-
'io.flow.google.pay.v0.models.direct_payment_method_token': function () { return ({
|
|
2780
|
-
discriminator: 'direct_payment_method_token',
|
|
2781
|
-
protocolVersion: factories.string(),
|
|
2782
|
-
signature: factories.string(),
|
|
2783
|
-
signedMessage: factories.string(),
|
|
2784
|
-
}); },
|
|
2785
|
-
'io.flow.google.pay.v0.models.encrypted_message': function () { return ({
|
|
2786
|
-
messageExpiration: factories.string(),
|
|
2787
|
-
messageId: factories.string(),
|
|
2788
|
-
paymentMethod: factories['io.flow.google.pay.v0.models.payment_method'](),
|
|
2789
|
-
paymentMethodDetails: factories['io.flow.google.pay.v0.models.payment_method_details'](),
|
|
2790
|
-
}); },
|
|
2791
|
-
'io.flow.google.pay.v0.models.merchant_info': function () { return ({
|
|
2792
|
-
merchantId: factories.string(),
|
|
2793
|
-
merchantName: factories.string(),
|
|
2794
|
-
authJwt: factories.string(),
|
|
2795
|
-
}); },
|
|
2796
|
-
'io.flow.google.pay.v0.models.payment_data': function () { return ({
|
|
2797
|
-
apiVersion: factories.integer(),
|
|
2798
|
-
apiVersionMinor: factories.integer(),
|
|
2799
|
-
paymentMethodData: factories['io.flow.google.pay.v0.models.payment_method_data'](),
|
|
2800
|
-
email: factories.string(),
|
|
2801
|
-
shippingAddress: factories['io.flow.google.pay.v0.models.address'](),
|
|
2802
|
-
}); },
|
|
2803
|
-
'io.flow.google.pay.v0.models.payment_data_request': function () { return ({
|
|
2804
|
-
apiVersion: factories.integer(),
|
|
2805
|
-
apiVersionMinor: factories.integer(),
|
|
2806
|
-
merchantInfo: factories['io.flow.google.pay.v0.models.merchant_info'](),
|
|
2807
|
-
allowedPaymentMethods: arrayOf(function () { return factories['io.flow.google.pay.v0.models.payment_method'](); }),
|
|
2808
|
-
transactionInfo: factories['io.flow.google.pay.v0.models.transaction_info'](),
|
|
2809
|
-
emailRequired: factories.boolean(),
|
|
2810
|
-
shippingAddressRequired: factories.boolean(),
|
|
2811
|
-
shippingAddressParameters: factories['io.flow.google.pay.v0.models.shipping_address_parameters'](),
|
|
2812
|
-
}); },
|
|
2813
|
-
'io.flow.google.pay.v0.models.payment_method': function () { return ({
|
|
2814
|
-
type: factories['io.flow.google.pay.v0.enums.payment_method_type'](),
|
|
2815
|
-
parameters: factories['io.flow.google.pay.v0.models.card_payment_method_parameters'](),
|
|
2816
|
-
tokenizationSpecification: factories['io.flow.google.pay.v0.models.payment_method_tokenization_specification'](),
|
|
2817
|
-
}); },
|
|
2818
|
-
'io.flow.google.pay.v0.models.payment_method_data': function () { return ({
|
|
2819
|
-
type: factories['io.flow.google.pay.v0.enums.payment_method_type'](),
|
|
2820
|
-
description: factories.string(),
|
|
2821
|
-
info: factories['io.flow.google.pay.v0.models.card_payment_method_data_info'](),
|
|
2822
|
-
tokenizationData: factories['io.flow.google.pay.v0.models.payment_method_tokenization_data'](),
|
|
2823
|
-
}); },
|
|
2824
|
-
'io.flow.google.pay.v0.models.payment_method_details': function () { return ({
|
|
2825
|
-
pan: factories.string(),
|
|
2826
|
-
expirationMonth: factories.integer(),
|
|
2827
|
-
expirationYear: factories.integer(),
|
|
2828
|
-
authMethod: factories['io.flow.google.pay.v0.enums.auth_method'](),
|
|
2829
|
-
cryptogram: factories.string(),
|
|
2830
|
-
eciIndicator: factories.string(),
|
|
2831
|
-
}); },
|
|
2832
|
-
'io.flow.google.pay.v0.models.payment_method_tokenization_data': function () { return ({
|
|
2833
|
-
type: factories.string(),
|
|
2834
|
-
token: factories.string(),
|
|
2835
|
-
}); },
|
|
2836
|
-
'io.flow.google.pay.v0.models.payment_method_tokenization_specification': function () { return ({
|
|
2837
|
-
type: factories['io.flow.google.pay.v0.enums.tokenization_type'](),
|
|
2838
|
-
parameters: factories.object(),
|
|
2839
|
-
}); },
|
|
2840
|
-
'io.flow.google.pay.v0.models.shipping_address_parameters': function () { return ({
|
|
2841
|
-
allowedCountryCodes: arrayOf(function () { return factories.string(); }),
|
|
2842
|
-
}); },
|
|
2843
|
-
'io.flow.google.pay.v0.models.signed_message': function () { return ({
|
|
2844
|
-
encryptedMessage: factories.string(),
|
|
2845
|
-
ephemeralPublicKey: factories.string(),
|
|
2846
|
-
tag: factories.string(),
|
|
2847
|
-
}); },
|
|
2848
|
-
'io.flow.google.pay.v0.models.stripe_payment_method_token': function () { return ({
|
|
2849
|
-
discriminator: 'stripe_payment_method_token',
|
|
2850
|
-
token: factories['io.flow.stripe.v0.models.token'](),
|
|
2851
|
-
}); },
|
|
2852
|
-
'io.flow.google.pay.v0.models.transaction_info': function () { return ({
|
|
2853
|
-
totalPriceStatus: factories['io.flow.google.pay.v0.enums.total_price_status'](),
|
|
2854
|
-
totalPrice: factories.string(),
|
|
2855
|
-
currencyCode: factories.string(),
|
|
2856
|
-
}); },
|
|
2857
|
-
'io.flow.google.pay.v0.unions.payment_method_token': function () {
|
|
2858
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
2859
|
-
function () { return factories['io.flow.google.pay.v0.models.direct_payment_method_token'](); },
|
|
2860
|
-
function () { return factories['io.flow.google.pay.v0.models.stripe_payment_method_token'](); },
|
|
2861
|
-
]);
|
|
2862
|
-
return f();
|
|
2863
|
-
},
|
|
2864
|
-
'io.flow.harmonization.v0.enums.tax_applicability': function () { return faker_1.default.helpers.arrayElement(['none', 'all']); },
|
|
2865
|
-
'io.flow.harmonization.v0.enums.tax_verification_result': function () { return faker_1.default.helpers.arrayElement(['valid', 'invalid', 'unable_to_validate']); },
|
|
2866
|
-
'io.flow.harmonization.v0.models.detailed_tax_registration': function () { return ({
|
|
2867
|
-
id: factories.string(),
|
|
2868
|
-
key: factories.string(),
|
|
2869
|
-
consumer_company_name: factories.string(),
|
|
2870
|
-
number: factories.string(),
|
|
2871
|
-
country: factories.string(),
|
|
2872
|
-
success: factories.boolean(),
|
|
2873
|
-
timestamp: factories.date_time_iso_8601(),
|
|
2874
|
-
vies_result: factories['io.flow.harmonization.v0.enums.tax_verification_result'](),
|
|
2875
|
-
vies_result_reason: factories.string(),
|
|
2876
|
-
vies_company_name: factories.string(),
|
|
2877
|
-
vies_company_address: factories.string(),
|
|
2878
|
-
company_name_match_result: factories['io.flow.harmonization.v0.enums.tax_verification_result'](),
|
|
2879
|
-
company_name_match_result_reason: factories.string(),
|
|
2880
|
-
}); },
|
|
2881
|
-
'io.flow.harmonization.v0.models.harmonized_category_reference': function () { return ({
|
|
2882
|
-
id: factories.string(),
|
|
2883
|
-
}); },
|
|
2884
|
-
'io.flow.harmonization.v0.models.harmonized_item': function () { return ({
|
|
2885
|
-
id: factories.string(),
|
|
2886
|
-
number: factories.string(),
|
|
2887
|
-
name: factories.string(),
|
|
2888
|
-
categories: arrayOf(function () { return factories.string(); }),
|
|
2889
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
2890
|
-
description: factories.string(),
|
|
2891
|
-
}); },
|
|
2892
|
-
'io.flow.harmonization.v0.models.harmonized_item_form': function () { return ({
|
|
2893
|
-
name: factories.string(),
|
|
2894
|
-
number: factories.string(),
|
|
2895
|
-
currency: factories.string(),
|
|
2896
|
-
price: factories.double(),
|
|
2897
|
-
categories: arrayOf(function () { return factories.string(); }),
|
|
2898
|
-
description: factories.string(),
|
|
2899
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
2900
|
-
}); },
|
|
2901
|
-
'io.flow.harmonization.v0.models.harmonized_item_put_form': function () { return ({
|
|
2902
|
-
name: factories.string(),
|
|
2903
|
-
currency: factories.string(),
|
|
2904
|
-
price: factories.double(),
|
|
2905
|
-
categories: arrayOf(function () { return factories.string(); }),
|
|
2906
|
-
description: factories.string(),
|
|
2907
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
2908
|
-
}); },
|
|
2909
|
-
'io.flow.harmonization.v0.models.harmonized_item_reference': function () { return ({
|
|
2910
|
-
id: factories.string(),
|
|
2911
|
-
number: factories.string(),
|
|
2912
|
-
description: factories.string(),
|
|
2913
|
-
}); },
|
|
2914
|
-
'io.flow.harmonization.v0.models.harmonized_landed_cost': function () { return ({
|
|
2915
|
-
address: factories['io.flow.common.v0.models.address'](),
|
|
2916
|
-
items: arrayOf(function () { return factories['io.flow.harmonization.v0.models.harmonized_landed_cost_item'](); }),
|
|
2917
|
-
tax_registration: factories['io.flow.harmonization.v0.models.tax_registration'](),
|
|
2918
|
-
}); },
|
|
2919
|
-
'io.flow.harmonization.v0.models.harmonized_landed_cost_form': function () { return ({
|
|
2920
|
-
address: factories['io.flow.common.v0.models.address'](),
|
|
2921
|
-
item_numbers: arrayOf(function () { return factories.string(); }),
|
|
2922
|
-
source_address: factories['io.flow.common.v0.models.address'](),
|
|
2923
|
-
order_number: factories.string(),
|
|
2924
|
-
line_items: arrayOf(function () { return factories['io.flow.common.v0.models.line_item'](); }),
|
|
2925
|
-
tax_registration_id: factories.string(),
|
|
2926
|
-
billing_address: factories['io.flow.common.v0.models.billing_address'](),
|
|
2927
|
-
}); },
|
|
2928
|
-
'io.flow.harmonization.v0.models.harmonized_landed_cost_item': function () { return ({
|
|
2929
|
-
item: factories['io.flow.harmonization.v0.models.harmonized_item_reference'](),
|
|
2930
|
-
duty: factories['io.flow.price.v0.models.duty'](),
|
|
2931
|
-
tax: factories['io.flow.price.v0.models.tax'](),
|
|
2932
|
-
tax_applicability: factories['io.flow.harmonization.v0.enums.tax_applicability'](),
|
|
2933
|
-
origin: factories.string(),
|
|
2934
|
-
hs_code: factories.string(),
|
|
2935
|
-
tariff_code: factories.string(),
|
|
2936
|
-
customs_description: factories.string(),
|
|
2937
|
-
source_address: factories['io.flow.common.v0.models.address'](),
|
|
2938
|
-
}); },
|
|
2939
|
-
'io.flow.harmonization.v0.models.hs10': function () { return ({
|
|
2940
|
-
id: factories.string(),
|
|
2941
|
-
item: factories['io.flow.harmonization.v0.models.harmonized_item_reference'](),
|
|
2942
|
-
origin: factories.string(),
|
|
2943
|
-
destination: factories.string(),
|
|
2944
|
-
code: factories.string(),
|
|
2945
|
-
}); },
|
|
2946
|
-
'io.flow.harmonization.v0.models.hs10_version': function () { return ({
|
|
2947
|
-
id: factories.string(),
|
|
2948
|
-
timestamp: factories.date_time_iso_8601(),
|
|
2949
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2950
|
-
hs10: factories['io.flow.harmonization.v0.models.hs10'](),
|
|
2951
|
-
}); },
|
|
2952
|
-
'io.flow.harmonization.v0.models.hs6': function () { return ({
|
|
2953
|
-
id: factories.string(),
|
|
2954
|
-
item: factories['io.flow.harmonization.v0.models.harmonized_item_reference'](),
|
|
2955
|
-
code: factories.string(),
|
|
2956
|
-
}); },
|
|
2957
|
-
'io.flow.harmonization.v0.models.lane_landed_cost': function () { return ({
|
|
2958
|
-
origin: factories.string(),
|
|
2959
|
-
destination: factories.string(),
|
|
2960
|
-
tariff_code: factories.string(),
|
|
2961
|
-
effective_duty: factories['io.flow.price.v0.models.duty'](),
|
|
2962
|
-
tax: factories['io.flow.price.v0.models.tax'](),
|
|
2963
|
-
}); },
|
|
2964
|
-
'io.flow.harmonization.v0.models.tax_registration': function () { return ({
|
|
2965
|
-
id: factories.string(),
|
|
2966
|
-
key: factories.string(),
|
|
2967
|
-
number: factories.string(),
|
|
2968
|
-
timestamp: factories.date_time_iso_8601(),
|
|
2969
|
-
result: factories['io.flow.harmonization.v0.enums.tax_verification_result'](),
|
|
2970
|
-
result_reason: factories.string(),
|
|
2971
|
-
name: factories.string(),
|
|
2972
|
-
address: factories.string(),
|
|
2973
|
-
company_name: factories.string(),
|
|
2974
|
-
}); },
|
|
2975
|
-
'io.flow.harmonization.v0.models.tax_registration_form': function () { return ({
|
|
2976
|
-
number: factories.string(),
|
|
2977
|
-
company_name: factories.string(),
|
|
2978
|
-
}); },
|
|
2979
|
-
'io.flow.inventory.v0.enums.aggregate': function () { return faker_1.default.helpers.arrayElement(['maximum', 'minimum']); },
|
|
2980
|
-
'io.flow.inventory.v0.enums.inventory_status': function () { return faker_1.default.helpers.arrayElement(['has_inventory', 'no_inventory']); },
|
|
2981
|
-
'io.flow.inventory.v0.enums.update_type': function () { return faker_1.default.helpers.arrayElement(['change', 'set']); },
|
|
2982
|
-
'io.flow.inventory.v0.models.external_api_timeout_reservation_error': function () { return ({
|
|
2983
|
-
code: 'external_api_timeout',
|
|
2984
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
2985
|
-
}); },
|
|
2986
|
-
'io.flow.inventory.v0.models.generic_reservation_error': function () { return ({
|
|
2987
|
-
code: 'generic_reservation_error',
|
|
2988
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
2989
|
-
}); },
|
|
2990
|
-
'io.flow.inventory.v0.models.inventory_backorder': function () { return ({
|
|
2991
|
-
discriminator: 'inventory_backorder',
|
|
2992
|
-
quantity: factories.long(),
|
|
2993
|
-
}); },
|
|
2994
|
-
'io.flow.inventory.v0.models.inventory_center_reference': function () { return ({
|
|
2995
|
-
key: factories.string(),
|
|
2996
|
-
}); },
|
|
2997
|
-
'io.flow.inventory.v0.models.inventory_check_response': function () { return ({
|
|
2998
|
-
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.inventory_check_response_item'](); }),
|
|
2999
|
-
}); },
|
|
3000
|
-
'io.flow.inventory.v0.models.inventory_check_response_item': function () { return ({
|
|
3001
|
-
number: factories.string(),
|
|
3002
|
-
quantity: factories.long(),
|
|
3003
|
-
inventory_status: factories['io.flow.inventory.v0.enums.inventory_status'](),
|
|
3004
|
-
}); },
|
|
3005
|
-
'io.flow.inventory.v0.models.inventory_experience_reference': function () { return ({
|
|
3006
|
-
key: factories.string(),
|
|
3007
|
-
}); },
|
|
3008
|
-
'io.flow.inventory.v0.models.inventory_follow_ecommerce_platform': function () { return ({
|
|
3009
|
-
discriminator: 'inventory_follow_ecommerce_platform',
|
|
3010
|
-
quantity: factories.long(),
|
|
3011
|
-
}); },
|
|
3012
|
-
'io.flow.inventory.v0.models.inventory_item_reference': function () { return ({
|
|
3013
|
-
number: factories.string(),
|
|
3014
|
-
}); },
|
|
3015
|
-
'io.flow.inventory.v0.models.inventory_request': function () { return ({
|
|
3016
|
-
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.inventory_request_item'](); }),
|
|
3017
|
-
}); },
|
|
3018
|
-
'io.flow.inventory.v0.models.inventory_request_item': function () { return ({
|
|
3019
|
-
number: factories.string(),
|
|
3020
|
-
quantity: factories.long(),
|
|
3021
|
-
}); },
|
|
3022
|
-
'io.flow.inventory.v0.models.inventory_rule': function () { return ({
|
|
3023
|
-
id: factories.string(),
|
|
3024
|
-
position: factories.long(),
|
|
3025
|
-
query: factories.string(),
|
|
3026
|
-
strategy: factories['io.flow.inventory.v0.unions.inventory_strategy'](),
|
|
3027
|
-
}); },
|
|
3028
|
-
'io.flow.inventory.v0.models.inventory_rule_form': function () { return ({
|
|
3029
|
-
position: factories.long(),
|
|
3030
|
-
query: factories.string(),
|
|
3031
|
-
strategy: factories['io.flow.inventory.v0.unions.inventory_strategy'](),
|
|
3032
|
-
}); },
|
|
3033
|
-
'io.flow.inventory.v0.models.inventory_rule_version': function () { return ({
|
|
3034
|
-
id: factories.string(),
|
|
3035
|
-
timestamp: factories.date_time_iso_8601(),
|
|
3036
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3037
|
-
inventory_rule: factories['io.flow.inventory.v0.models.inventory_rule'](),
|
|
3038
|
-
}); },
|
|
3039
|
-
'io.flow.inventory.v0.models.inventory_snapshot': function () { return ({
|
|
3040
|
-
id: factories.string(),
|
|
3041
|
-
available: factories.long(),
|
|
3042
|
-
center: factories['io.flow.inventory.v0.models.inventory_center_reference'](),
|
|
3043
|
-
item: factories['io.flow.inventory.v0.models.inventory_item_reference'](),
|
|
3044
|
-
quantity: factories.long(),
|
|
3045
|
-
}); },
|
|
3046
|
-
'io.flow.inventory.v0.models.inventory_snapshot_version': function () { return ({
|
|
3047
|
-
id: factories.string(),
|
|
3048
|
-
timestamp: factories.date_time_iso_8601(),
|
|
3049
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3050
|
-
inventory_snapshot: factories['io.flow.inventory.v0.models.inventory_snapshot'](),
|
|
3051
|
-
}); },
|
|
3052
|
-
'io.flow.inventory.v0.models.inventory_stock': function () { return ({
|
|
3053
|
-
discriminator: 'inventory_stock',
|
|
3054
|
-
quantity: factories.long(),
|
|
3055
|
-
}); },
|
|
3056
|
-
'io.flow.inventory.v0.models.inventory_unlimited': function () { return ({
|
|
3057
|
-
discriminator: 'inventory_unlimited',
|
|
3058
|
-
placeholder: factories.string(),
|
|
3059
|
-
}); },
|
|
3060
|
-
'io.flow.inventory.v0.models.inventory_update': function () { return ({
|
|
3061
|
-
id: factories.string(),
|
|
3062
|
-
idempotency_key: factories.string(),
|
|
3063
|
-
center: factories['io.flow.inventory.v0.models.inventory_center_reference'](),
|
|
3064
|
-
item: factories['io.flow.inventory.v0.models.inventory_item_reference'](),
|
|
3065
|
-
notes: factories.object(),
|
|
3066
|
-
quantity: factories.long(),
|
|
3067
|
-
type: factories['io.flow.inventory.v0.enums.update_type'](),
|
|
3068
|
-
}); },
|
|
3069
|
-
'io.flow.inventory.v0.models.inventory_update_form': function () { return ({
|
|
3070
|
-
center: factories.string(),
|
|
3071
|
-
idempotency_key: factories.string(),
|
|
3072
|
-
item_number: factories.string(),
|
|
3073
|
-
quantity: factories.long(),
|
|
3074
|
-
type: factories['io.flow.inventory.v0.enums.update_type'](),
|
|
3075
|
-
notes: factories.object(),
|
|
3076
|
-
}); },
|
|
3077
|
-
'io.flow.inventory.v0.models.inventory_update_version': function () { return ({
|
|
3078
|
-
id: factories.string(),
|
|
3079
|
-
timestamp: factories.date_time_iso_8601(),
|
|
3080
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3081
|
-
inventory_update: factories['io.flow.inventory.v0.models.inventory_update'](),
|
|
3082
|
-
}); },
|
|
3083
|
-
'io.flow.inventory.v0.models.no_inventory_reservation_error': function () { return ({
|
|
3084
|
-
code: 'no_inventory',
|
|
3085
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
3086
|
-
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.no_inventory_reservation_error_item'](); }),
|
|
3087
|
-
}); },
|
|
3088
|
-
'io.flow.inventory.v0.models.no_inventory_reservation_error_item': function () { return ({
|
|
3089
|
-
number: factories.string(),
|
|
3090
|
-
requested_quantity: factories.long(),
|
|
3091
|
-
available_quantity: factories.long(),
|
|
3092
|
-
}); },
|
|
3093
|
-
'io.flow.inventory.v0.models.pfs_inventory_check_response': function () { return ({
|
|
3094
|
-
items: objectOf(function () { return factories['io.flow.inventory.v0.models.pfs_inventory_check_response_item'](); }),
|
|
3095
|
-
}); },
|
|
3096
|
-
'io.flow.inventory.v0.models.pfs_inventory_check_response_item': function () { return ({
|
|
3097
|
-
number: factories.string(),
|
|
3098
|
-
ats: factories.long(),
|
|
3099
|
-
in_stock: factories.boolean(),
|
|
3100
|
-
}); },
|
|
3101
|
-
'io.flow.inventory.v0.models.pfs_inventory_status': function () { return ({
|
|
3102
|
-
status: factories.string(),
|
|
3103
|
-
}); },
|
|
3104
|
-
'io.flow.inventory.v0.models.reservation': function () { return ({
|
|
3105
|
-
id: factories.string(),
|
|
3106
|
-
key: factories.string(),
|
|
3107
|
-
order: factories['io.flow.inventory.v0.models.reservation_order_reference'](),
|
|
3108
|
-
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.reservation_item'](); }),
|
|
3109
|
-
reserved_until: factories.date_time_iso_8601(),
|
|
3110
|
-
}); },
|
|
3111
|
-
'io.flow.inventory.v0.models.reservation_form': function () { return ({
|
|
3112
|
-
order_number: factories.string(),
|
|
3113
|
-
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.reservation_item_form'](); }),
|
|
3114
|
-
}); },
|
|
3115
|
-
'io.flow.inventory.v0.models.reservation_item': function () { return ({
|
|
3116
|
-
item: factories['io.flow.inventory.v0.models.reservation_item_reference'](),
|
|
3117
|
-
quantity: factories.long(),
|
|
3118
|
-
}); },
|
|
3119
|
-
'io.flow.inventory.v0.models.reservation_item_form': function () { return ({
|
|
3120
|
-
item_number: factories.string(),
|
|
3121
|
-
quantity: factories.long(),
|
|
3122
|
-
}); },
|
|
3123
|
-
'io.flow.inventory.v0.models.reservation_item_reference': function () { return ({
|
|
3124
|
-
number: factories.string(),
|
|
3125
|
-
}); },
|
|
3126
|
-
'io.flow.inventory.v0.models.reservation_order_reference': function () { return ({
|
|
3127
|
-
number: factories.string(),
|
|
3128
|
-
}); },
|
|
3129
|
-
'io.flow.inventory.v0.unions.inventory_strategy': function () {
|
|
3130
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
3131
|
-
function () { return factories['io.flow.inventory.v0.models.inventory_backorder'](); },
|
|
3132
|
-
function () { return factories['io.flow.inventory.v0.models.inventory_stock'](); },
|
|
3133
|
-
function () { return factories['io.flow.inventory.v0.models.inventory_unlimited'](); },
|
|
3134
|
-
function () { return factories['io.flow.inventory.v0.models.inventory_follow_ecommerce_platform'](); },
|
|
3135
|
-
]);
|
|
3136
|
-
return f();
|
|
3137
|
-
},
|
|
3138
|
-
'io.flow.inventory.v0.unions.reservation_error': function () {
|
|
3139
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
3140
|
-
function () { return factories['io.flow.inventory.v0.models.no_inventory_reservation_error'](); },
|
|
3141
|
-
function () { return factories['io.flow.inventory.v0.models.external_api_timeout_reservation_error'](); },
|
|
3142
|
-
function () { return factories['io.flow.inventory.v0.models.generic_reservation_error'](); },
|
|
3143
|
-
]);
|
|
3144
|
-
return f();
|
|
3145
|
-
},
|
|
3146
|
-
'io.flow.item.v0.models.local_item': function () { return ({
|
|
3147
|
-
id: factories.string(),
|
|
3148
|
-
experience: factories['io.flow.common.v0.models.experience_summary'](),
|
|
3149
|
-
center: factories['io.flow.fulfillment.v0.models.center_summary'](),
|
|
3150
|
-
item: factories['io.flow.common.v0.models.catalog_item_reference'](),
|
|
3151
|
-
pricing: factories['io.flow.item.v0.models.local_item_pricing'](),
|
|
3152
|
-
status: factories['io.flow.catalog.v0.enums.subcatalog_item_status'](),
|
|
3153
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
3154
|
-
}); },
|
|
3155
|
-
'io.flow.item.v0.models.local_item_attribute_pricing': function () { return ({
|
|
3156
|
-
pretax_price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
3157
|
-
vat: factories['io.flow.catalog.v0.models.localized_item_vat'](),
|
|
3158
|
-
duty: factories['io.flow.catalog.v0.models.localized_item_duty'](),
|
|
3159
|
-
price: factories['io.flow.catalog.v0.models.localized_item_price'](),
|
|
3160
|
-
}); },
|
|
3161
|
-
'io.flow.item.v0.models.local_item_pricing': function () { return ({
|
|
3162
|
-
price: factories['io.flow.catalog.v0.models.localized_item_price'](),
|
|
3163
|
-
vat: factories['io.flow.catalog.v0.models.localized_item_vat'](),
|
|
3164
|
-
duty: factories['io.flow.catalog.v0.models.localized_item_duty'](),
|
|
3165
|
-
shipping: factories['io.flow.common.v0.models.price'](),
|
|
3166
|
-
attributes: objectOf(function () { return factories['io.flow.common.v0.models.price_with_base'](); }),
|
|
3167
|
-
price_attributes: objectOf(function () { return factories['io.flow.item.v0.models.local_item_attribute_pricing'](); }),
|
|
3168
|
-
}); },
|
|
3169
|
-
'io.flow.merchant.of.record.v0.enums.economic_title_location': function () { return faker_1.default.helpers.arrayElement(['high_seas', 'origination', 'destination']); },
|
|
3170
|
-
'io.flow.merchant.of.record.v0.enums.flow_entity': function () { return faker_1.default.helpers.arrayElement(['flow-usa', 'flow-irl', 'flow-can', 'ge-usa']); },
|
|
3171
|
-
'io.flow.order.price.v0.enums.order_price_detail_component_key': function () { return faker_1.default.helpers.arrayElement([
|
|
3172
|
-
'adjustment',
|
|
3173
|
-
'vat_deminimis',
|
|
3174
|
-
'duty_deminimis',
|
|
3175
|
-
'duties_item_price',
|
|
3176
|
-
'duties_freight',
|
|
3177
|
-
'duties_insurance',
|
|
3178
|
-
'vat_item_price',
|
|
3179
|
-
'vat_freight',
|
|
3180
|
-
'vat_insurance',
|
|
3181
|
-
'vat_duties_item_price',
|
|
3182
|
-
'vat_duties_freight',
|
|
3183
|
-
'vat_duties_insurance',
|
|
3184
|
-
'item_price',
|
|
3185
|
-
'item_discount',
|
|
3186
|
-
'rounding',
|
|
3187
|
-
'insurance',
|
|
3188
|
-
'shipping',
|
|
3189
|
-
'shipping_discount',
|
|
3190
|
-
'order_discount',
|
|
3191
|
-
'subtotal_percent_sales_margin',
|
|
3192
|
-
'subtotal_vat_percent_sales_margin',
|
|
3193
|
-
'subtotal_duty_percent_sales_margin',
|
|
3194
|
-
'vat_subsidy',
|
|
3195
|
-
'duty_subsidy',
|
|
3196
|
-
'remote_area_surcharge',
|
|
3197
|
-
'fuel_surcharge',
|
|
3198
|
-
'emergency_situation_surcharge',
|
|
3199
|
-
'peak_surcharge',
|
|
3200
|
-
'duties_taxes_paid_surcharge',
|
|
3201
|
-
'tip',
|
|
3202
|
-
]); },
|
|
3203
|
-
'io.flow.order.price.v0.enums.order_price_detail_key': function () { return faker_1.default.helpers.arrayElement([
|
|
3204
|
-
'adjustment',
|
|
3205
|
-
'subtotal',
|
|
3206
|
-
'vat',
|
|
3207
|
-
'duty',
|
|
3208
|
-
'shipping',
|
|
3209
|
-
'insurance',
|
|
3210
|
-
'discount',
|
|
3211
|
-
'surcharges',
|
|
3212
|
-
'tip',
|
|
3213
|
-
]); },
|
|
3214
|
-
'io.flow.order.price.v0.models.order_price_detail': function () { return ({
|
|
3215
|
-
key: factories['io.flow.order.price.v0.enums.order_price_detail_key'](),
|
|
3216
|
-
currency: factories.string(),
|
|
3217
|
-
amount: factories.decimal(),
|
|
3218
|
-
label: factories.string(),
|
|
3219
|
-
base: factories['io.flow.common.v0.models.price'](),
|
|
3220
|
-
components: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail_component'](); }),
|
|
3221
|
-
name: factories.string(),
|
|
3222
|
-
rate: factories.decimal(),
|
|
3223
|
-
accuracy: factories['io.flow.price.v0.enums.price_accuracy'](),
|
|
3224
|
-
rate_label: factories.string(),
|
|
3225
|
-
}); },
|
|
3226
|
-
'io.flow.order.price.v0.models.order_price_detail_component': function () { return ({
|
|
3227
|
-
key: factories['io.flow.order.price.v0.enums.order_price_detail_component_key'](),
|
|
3228
|
-
currency: factories.string(),
|
|
3229
|
-
amount: factories.decimal(),
|
|
3230
|
-
label: factories.string(),
|
|
3231
|
-
base: factories['io.flow.common.v0.models.price'](),
|
|
3232
|
-
name: factories.string(),
|
|
3233
|
-
}); },
|
|
3234
|
-
'io.flow.organization.v0.enums.country_picker_source': function () { return faker_1.default.helpers.arrayElement(['experience', 'destination']); },
|
|
3235
|
-
'io.flow.organization.v0.enums.ecommerce_platform_type': function () { return faker_1.default.helpers.arrayElement([
|
|
3236
|
-
'commercetools',
|
|
3237
|
-
'custom',
|
|
3238
|
-
'hybris',
|
|
3239
|
-
'magento',
|
|
3240
|
-
'shopify',
|
|
3241
|
-
'shopify_markets',
|
|
3242
|
-
'sfcc',
|
|
3243
|
-
'solidus',
|
|
3244
|
-
'workarea',
|
|
3245
|
-
]); },
|
|
3246
|
-
'io.flow.organization.v0.enums.invitation_error_code': function () { return faker_1.default.helpers.arrayElement(['expired', 'invalid_email']); },
|
|
3247
|
-
'io.flow.organization.v0.models.country_picker': function () { return ({
|
|
3248
|
-
id: factories.string(),
|
|
3249
|
-
source: factories['io.flow.organization.v0.enums.country_picker_source'](),
|
|
3250
|
-
}); },
|
|
3251
|
-
'io.flow.organization.v0.models.country_picker_form': function () { return ({
|
|
3252
|
-
source: factories['io.flow.organization.v0.enums.country_picker_source'](),
|
|
3253
|
-
}); },
|
|
3254
|
-
'io.flow.organization.v0.models.ecommerce_platform': function () { return ({
|
|
3255
|
-
id: factories.string(),
|
|
3256
|
-
type: factories['io.flow.organization.v0.enums.ecommerce_platform_type'](),
|
|
3257
|
-
version: factories.string(),
|
|
3258
|
-
}); },
|
|
3259
|
-
'io.flow.organization.v0.models.ecommerce_platform_form': function () { return ({
|
|
3260
|
-
type: factories['io.flow.organization.v0.enums.ecommerce_platform_type'](),
|
|
3261
|
-
version: factories.string(),
|
|
3262
|
-
}); },
|
|
3263
|
-
'io.flow.organization.v0.models.invitation': function () { return ({
|
|
3264
|
-
id: factories.string(),
|
|
3265
|
-
organization: factories['io.flow.common.v0.unions.expandable_organization'](),
|
|
3266
|
-
email: factories.string(),
|
|
3267
|
-
name: factories['io.flow.common.v0.models.name'](),
|
|
3268
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
3269
|
-
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
3270
|
-
expiration: factories.date_time_iso_8601(),
|
|
3271
|
-
}); },
|
|
3272
|
-
'io.flow.organization.v0.models.invitation_error': function () { return ({
|
|
3273
|
-
code: factories['io.flow.organization.v0.enums.invitation_error_code'](),
|
|
3274
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
3275
|
-
}); },
|
|
3276
|
-
'io.flow.organization.v0.models.invitation_form': function () { return ({
|
|
3277
|
-
organization: factories.string(),
|
|
3278
|
-
email: factories.string(),
|
|
3279
|
-
name: factories['io.flow.common.v0.models.name'](),
|
|
3280
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
3281
|
-
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
3282
|
-
}); },
|
|
3283
|
-
'io.flow.organization.v0.models.invitation_version': function () { return ({
|
|
3284
|
-
id: factories.string(),
|
|
3285
|
-
timestamp: factories.date_time_iso_8601(),
|
|
3286
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3287
|
-
invitation: factories['io.flow.organization.v0.models.invitation'](),
|
|
3288
|
-
}); },
|
|
3289
|
-
'io.flow.organization.v0.models.membership': function () { return ({
|
|
3290
|
-
id: factories.string(),
|
|
3291
|
-
organization: factories['io.flow.common.v0.unions.expandable_organization'](),
|
|
3292
|
-
user: factories['io.flow.common.v0.unions.expandable_user'](),
|
|
3293
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
3294
|
-
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
3295
|
-
}); },
|
|
3296
|
-
'io.flow.organization.v0.models.membership_form': function () { return ({
|
|
3297
|
-
organization: factories.string(),
|
|
3298
|
-
user: factories.string(),
|
|
3299
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
3300
|
-
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
3301
|
-
}); },
|
|
3302
|
-
'io.flow.organization.v0.models.membership_put_form': function () { return ({
|
|
3303
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
3304
|
-
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
3305
|
-
}); },
|
|
3306
|
-
'io.flow.organization.v0.models.membership_version': function () { return ({
|
|
3307
|
-
id: factories.string(),
|
|
3308
|
-
timestamp: factories.date_time_iso_8601(),
|
|
3309
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3310
|
-
membership: factories['io.flow.organization.v0.models.membership'](),
|
|
3311
|
-
}); },
|
|
3312
|
-
'io.flow.organization.v0.models.organization_authorization': function () { return ({
|
|
3313
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
3314
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
3315
|
-
}); },
|
|
3316
|
-
'io.flow.organization.v0.models.organization_authorization_form': function () { return ({
|
|
3317
|
-
organization: factories.string(),
|
|
3318
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
3319
|
-
}); },
|
|
3320
|
-
'io.flow.organization.v0.models.organization_configuration_reference': function () { return ({
|
|
3321
|
-
id: factories.string(),
|
|
3322
|
-
}); },
|
|
3323
|
-
'io.flow.organization.v0.models.organization_default_configurations': function () { return ({
|
|
3324
|
-
id: factories.string(),
|
|
3325
|
-
checkout_configuration: factories['io.flow.organization.v0.models.organization_configuration_reference'](),
|
|
3326
|
-
}); },
|
|
3327
|
-
'io.flow.organization.v0.models.organization_default_configurations_form': function () { return ({
|
|
3328
|
-
id: factories.string(),
|
|
3329
|
-
}); },
|
|
3330
|
-
'io.flow.organization.v0.models.organization_form': function () { return ({
|
|
3331
|
-
id: factories.string(),
|
|
3332
|
-
name: factories.string(),
|
|
3333
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
3334
|
-
parent_id: factories.string(),
|
|
3335
|
-
defaults: factories['io.flow.common.v0.models.organization_defaults'](),
|
|
3336
|
-
status: factories['io.flow.common.v0.enums.organization_status'](),
|
|
3337
|
-
type: factories['io.flow.common.v0.enums.organization_type'](),
|
|
3338
|
-
}); },
|
|
3339
|
-
'io.flow.organization.v0.models.organization_put_form': function () { return ({
|
|
3340
|
-
name: factories.string(),
|
|
3341
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
3342
|
-
parent_id: factories.string(),
|
|
3343
|
-
defaults: factories['io.flow.common.v0.models.organization_defaults'](),
|
|
3344
|
-
status: factories['io.flow.common.v0.enums.organization_status'](),
|
|
3345
|
-
}); },
|
|
3346
|
-
'io.flow.organization.v0.models.organization_version': function () { return ({
|
|
3347
|
-
id: factories.string(),
|
|
3348
|
-
timestamp: factories.date_time_iso_8601(),
|
|
3349
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3350
|
-
organization: factories['io.flow.common.v0.models.organization'](),
|
|
3351
|
-
}); },
|
|
3352
|
-
'io.flow.organization.v0.models.region_setting': function () { return ({
|
|
3353
|
-
id: factories.string(),
|
|
3354
|
-
region: factories.string(),
|
|
3355
|
-
status: factories['io.flow.common.v0.enums.availability_status'](),
|
|
3356
|
-
}); },
|
|
3357
|
-
'io.flow.organization.v0.models.region_setting_form': function () { return ({
|
|
3358
|
-
status: factories['io.flow.common.v0.enums.availability_status'](),
|
|
3359
|
-
}); },
|
|
3360
|
-
'io.flow.payment.v0.enums.address_verification_result_field_code': function () { return faker_1.default.helpers.arrayElement(['matched', 'not_available', 'not_checked', 'not_matched']); },
|
|
3361
|
-
'io.flow.payment.v0.enums.authorization_decline_code': function () { return faker_1.default.helpers.arrayElement([
|
|
3362
|
-
'expired',
|
|
3363
|
-
'invalid_name',
|
|
3364
|
-
'invalid_number',
|
|
3365
|
-
'invalid_expiration',
|
|
3366
|
-
'invalid_address',
|
|
3367
|
-
'invalid_token_type',
|
|
3368
|
-
'invalid_token',
|
|
3369
|
-
'no_account',
|
|
3370
|
-
'avs',
|
|
3371
|
-
'cvv',
|
|
3372
|
-
'fraud',
|
|
3373
|
-
'duplicate',
|
|
3374
|
-
'not_supported',
|
|
3375
|
-
'unknown',
|
|
3376
|
-
'online_payment_error',
|
|
3377
|
-
]); },
|
|
3378
|
-
'io.flow.payment.v0.enums.authorization_option': function () { return faker_1.default.helpers.arrayElement(['store_card']); },
|
|
3379
|
-
'io.flow.payment.v0.enums.authorization_result_action_type': function () { return faker_1.default.helpers.arrayElement(['native', 'redirect', 'wait']); },
|
|
3380
|
-
'io.flow.payment.v0.enums.authorization_status': function () { return faker_1.default.helpers.arrayElement([
|
|
3381
|
-
'initiated',
|
|
3382
|
-
'pending',
|
|
3383
|
-
'expired',
|
|
3384
|
-
'authorized',
|
|
3385
|
-
'review',
|
|
3386
|
-
'declined',
|
|
3387
|
-
'reversed',
|
|
3388
|
-
]); },
|
|
3389
|
-
'io.flow.payment.v0.enums.avs_code': function () { return faker_1.default.helpers.arrayElement(['match', 'partial', 'unsupported', 'no_match']); },
|
|
3390
|
-
'io.flow.payment.v0.enums.capture_decline_code': function () { return faker_1.default.helpers.arrayElement(['expired', 'insufficient_funds', 'unknown']); },
|
|
3391
|
-
'io.flow.payment.v0.enums.capture_status': function () { return faker_1.default.helpers.arrayElement(['initiated', 'pending', 'succeeded', 'failed', 'canceled']); },
|
|
3392
|
-
'io.flow.payment.v0.enums.card_error_code': function () { return faker_1.default.helpers.arrayElement([
|
|
3393
|
-
'invalid_address',
|
|
3394
|
-
'invalid_currency',
|
|
3395
|
-
'invalid_name',
|
|
3396
|
-
'invalid_number',
|
|
3397
|
-
'invalid_expiration',
|
|
3398
|
-
'invalid_token_type',
|
|
3399
|
-
'avs',
|
|
3400
|
-
'cvv',
|
|
3401
|
-
'fraud',
|
|
3402
|
-
'unknown',
|
|
3403
|
-
]); },
|
|
3404
|
-
'io.flow.payment.v0.enums.card_type': function () { return faker_1.default.helpers.arrayElement([
|
|
3405
|
-
'american_express',
|
|
3406
|
-
'cartes_bancaires',
|
|
3407
|
-
'china_union_pay',
|
|
3408
|
-
'dankort',
|
|
3409
|
-
'diners_club',
|
|
3410
|
-
'discover',
|
|
3411
|
-
'jcb',
|
|
3412
|
-
'maestro',
|
|
3413
|
-
'mastercard',
|
|
3414
|
-
'visa',
|
|
3415
|
-
]); },
|
|
3416
|
-
'io.flow.payment.v0.enums.cvv_code': function () { return faker_1.default.helpers.arrayElement(['match', 'suspicious', 'unsupported', 'no_match']); },
|
|
3417
|
-
'io.flow.payment.v0.enums.cvv_result_code': function () { return faker_1.default.helpers.arrayElement(['matched', 'not_available', 'not_checked', 'not_matched']); },
|
|
3418
|
-
'io.flow.payment.v0.enums.payment_error_code': function () { return faker_1.default.helpers.arrayElement([
|
|
3419
|
-
'duplicate',
|
|
3420
|
-
'invalid_amount',
|
|
3421
|
-
'invalid_currency',
|
|
3422
|
-
'invalid_method',
|
|
3423
|
-
'invalid_order',
|
|
3424
|
-
'invalid_customer',
|
|
3425
|
-
'invalid_destination',
|
|
3426
|
-
'unknown',
|
|
3427
|
-
]); },
|
|
3428
|
-
'io.flow.payment.v0.enums.payment_fee_type': function () { return faker_1.default.helpers.arrayElement(['fx', 'mor']); },
|
|
3429
|
-
'io.flow.payment.v0.enums.payment_source_confirmation_action_type': function () { return faker_1.default.helpers.arrayElement(['cvv', 'billing_address', 'number']); },
|
|
3430
|
-
'io.flow.payment.v0.enums.refund_decline_code': function () { return faker_1.default.helpers.arrayElement(['expired', 'insufficient_funds', 'unknown']); },
|
|
3431
|
-
'io.flow.payment.v0.enums.refund_failure_category': function () { return faker_1.default.helpers.arrayElement([
|
|
3432
|
-
'amount_too_high',
|
|
3433
|
-
'amount_too_low',
|
|
3434
|
-
'not_enough_balance',
|
|
3435
|
-
'insufficient_funds',
|
|
3436
|
-
'refund_period_expired',
|
|
3437
|
-
'dispute',
|
|
3438
|
-
'not_captured',
|
|
3439
|
-
'unsupported_payment_method',
|
|
3440
|
-
'unsupported_partial_refund',
|
|
3441
|
-
'invalid_currency',
|
|
3442
|
-
'card_no_longer_valid',
|
|
3443
|
-
'general',
|
|
3444
|
-
]); },
|
|
3445
|
-
'io.flow.payment.v0.enums.refund_status': function () { return faker_1.default.helpers.arrayElement(['pending', 'succeeded', 'failed', 'canceled']); },
|
|
3446
|
-
'io.flow.payment.v0.enums.reversal_error_code': function () { return faker_1.default.helpers.arrayElement([
|
|
3447
|
-
'amount_exceeds_balance',
|
|
3448
|
-
'authorization_declined',
|
|
3449
|
-
'authorization_expired',
|
|
3450
|
-
'invalid_authorization',
|
|
3451
|
-
'invalid_key',
|
|
3452
|
-
'invalid_amount',
|
|
3453
|
-
'invalid_currency',
|
|
3454
|
-
'no_remaining_balance',
|
|
3455
|
-
'partial_reversal_not_supported',
|
|
3456
|
-
'unknown',
|
|
3457
|
-
]); },
|
|
3458
|
-
'io.flow.payment.v0.enums.reversal_status': function () { return faker_1.default.helpers.arrayElement(['pending', 'processed', 'failed']); },
|
|
3459
|
-
'io.flow.payment.v0.enums.stored_method_usage_step': function () { return faker_1.default.helpers.arrayElement(['initial', 'subsequent']); },
|
|
3460
|
-
'io.flow.payment.v0.enums.three_d_secure_code': function () { return faker_1.default.helpers.arrayElement(['verified', 'not_verified', 'failed']); },
|
|
3461
|
-
'io.flow.payment.v0.enums.threeds_two_challenge_viewport': function () { return faker_1.default.helpers.arrayElement(['xxx_small', 'xx_small', 'x_small', 'small', 'fullscreen']); },
|
|
3462
|
-
'io.flow.payment.v0.enums.token_type': function () { return faker_1.default.helpers.arrayElement(['permanent', 'one_time']); },
|
|
3463
|
-
'io.flow.payment.v0.enums.transfer_status': function () { return faker_1.default.helpers.arrayElement(['succeeded', 'canceled']); },
|
|
3464
|
-
'io.flow.payment.v0.enums.transfer_type': function () { return faker_1.default.helpers.arrayElement([
|
|
3465
|
-
'payout_to_merchant',
|
|
3466
|
-
'disputed_amount_to_merchant',
|
|
3467
|
-
'duties_and_taxes_adjustment_to_merchant',
|
|
3468
|
-
'disputed_amount_from_merchant',
|
|
3469
|
-
'duties_and_taxes_adjustment_from_merchant',
|
|
3470
|
-
'refund_from_merchant',
|
|
3471
|
-
]); },
|
|
3472
|
-
'io.flow.payment.v0.models.ach_authorization_form': function () { return ({
|
|
3473
|
-
discriminator: 'ach_authorization_form',
|
|
3474
|
-
account_owner_name: factories.string(),
|
|
3475
|
-
account_number: factories.string(),
|
|
3476
|
-
routing_number: factories.string(),
|
|
3477
|
-
billing_address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3478
|
-
order_number: factories.string(),
|
|
3479
|
-
amount: factories.decimal(),
|
|
3480
|
-
currency: factories.string(),
|
|
3481
|
-
key: factories.string(),
|
|
3482
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
3483
|
-
ip: factories.string(),
|
|
3484
|
-
}); },
|
|
3485
|
-
'io.flow.payment.v0.models.address_verification_result': function () { return ({
|
|
3486
|
-
street_code: factories['io.flow.payment.v0.enums.address_verification_result_field_code'](),
|
|
3487
|
-
postal_code: factories['io.flow.payment.v0.enums.address_verification_result_field_code'](),
|
|
3488
|
-
name_code: factories['io.flow.payment.v0.enums.address_verification_result_field_code'](),
|
|
3489
|
-
raw: factories.string(),
|
|
3490
|
-
}); },
|
|
3491
|
-
'io.flow.payment.v0.models.adyen_challenge_shopper_data': function () { return ({
|
|
3492
|
-
discriminator: 'adyen_challenge_shopper_data',
|
|
3493
|
-
challenge_token: factories.string(),
|
|
3494
|
-
}); },
|
|
3495
|
-
'io.flow.payment.v0.models.adyen_identify_shopper_data': function () { return ({
|
|
3496
|
-
discriminator: 'adyen_identify_shopper_data',
|
|
3497
|
-
fingerprint_token: factories.string(),
|
|
3498
|
-
}); },
|
|
3499
|
-
'io.flow.payment.v0.models.adyen_native_action_details': function () { return ({
|
|
3500
|
-
discriminator: 'adyen_native_action_details',
|
|
3501
|
-
origin_key: factories.string(),
|
|
3502
|
-
data: factories['io.flow.payment.v0.unions.adyen_native_data'](),
|
|
3503
|
-
}); },
|
|
3504
|
-
'io.flow.payment.v0.models.apple_pay_merchant_validation_payload': function () { return ({
|
|
3505
|
-
discriminator: 'apple_pay_merchant_validation_payload',
|
|
3506
|
-
validation_url: factories.string(),
|
|
3507
|
-
display_name: factories.string(),
|
|
3508
|
-
}); },
|
|
3509
|
-
'io.flow.payment.v0.models.applepay_sdk_create_result_action_details': function () { return ({
|
|
3510
|
-
discriminator: 'applepay_sdk_create_result_action_details',
|
|
3511
|
-
merchant_identifier: factories.string(),
|
|
3512
|
-
payment_data_request: factories.object(),
|
|
3513
|
-
}); },
|
|
3514
|
-
'io.flow.payment.v0.models.applepay_sdk_validate_result_action_details': function () { return ({
|
|
3515
|
-
discriminator: 'applepay_sdk_validate_result_action_details',
|
|
3516
|
-
payment_session: factories.object(),
|
|
3517
|
-
}); },
|
|
3518
|
-
'io.flow.payment.v0.models.authorization_code': function () { return ({
|
|
3519
|
-
result_code: factories.string(),
|
|
3520
|
-
code: factories.string(),
|
|
3521
|
-
}); },
|
|
3522
|
-
'io.flow.payment.v0.models.authorization_copy_form': function () { return ({
|
|
3523
|
-
discriminator: 'authorization_copy_form',
|
|
3524
|
-
source_authorization_key: factories.string(),
|
|
3525
|
-
amount: factories.decimal(),
|
|
3526
|
-
currency: factories.string(),
|
|
3527
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
3528
|
-
}); },
|
|
3529
|
-
'io.flow.payment.v0.models.authorization_error': function () { return ({
|
|
3530
|
-
code: factories['io.flow.payment.v0.enums.authorization_decline_code'](),
|
|
3531
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
3532
|
-
avs: factories['io.flow.payment.v0.models.avs'](),
|
|
3533
|
-
cvv: factories['io.flow.payment.v0.models.cvv'](),
|
|
3534
|
-
}); },
|
|
3535
|
-
'io.flow.payment.v0.models.authorization_order_reference': function () { return ({
|
|
3536
|
-
discriminator: 'flow_order',
|
|
3537
|
-
number: factories.string(),
|
|
3538
|
-
}); },
|
|
3539
|
-
'io.flow.payment.v0.models.authorization_payload': function () { return ({
|
|
3540
|
-
parameters: factories['io.flow.payment.v0.unions.authorization_payload_parameters'](),
|
|
3541
|
-
}); },
|
|
3542
|
-
'io.flow.payment.v0.models.authorization_reference': function () { return ({
|
|
3543
|
-
id: factories.string(),
|
|
3544
|
-
key: factories.string(),
|
|
3545
|
-
order: factories['io.flow.payment.v0.models.authorization_order_reference'](),
|
|
3546
|
-
}); },
|
|
3547
|
-
'io.flow.payment.v0.models.authorization_result': function () { return ({
|
|
3548
|
-
status: factories['io.flow.payment.v0.enums.authorization_status'](),
|
|
3549
|
-
action: factories['io.flow.payment.v0.unions.authorization_result_action'](),
|
|
3550
|
-
decline_code: factories['io.flow.payment.v0.enums.authorization_decline_code'](),
|
|
3551
|
-
avs: factories['io.flow.payment.v0.models.avs'](),
|
|
3552
|
-
cvv: factories['io.flow.payment.v0.models.cvv'](),
|
|
3553
|
-
three_d_secure: factories['io.flow.payment.v0.models.three_d_secure'](),
|
|
3554
|
-
description: factories['io.flow.payment.v0.models.authorization_result_description'](),
|
|
3555
|
-
authorization_code: factories['io.flow.payment.v0.models.authorization_code'](),
|
|
3556
|
-
}); },
|
|
3557
|
-
'io.flow.payment.v0.models.authorization_result_action_get': function () { return ({
|
|
3558
|
-
discriminator: 'authorization_result_action_get',
|
|
3559
|
-
type: factories['io.flow.payment.v0.enums.authorization_result_action_type'](),
|
|
3560
|
-
url: factories.string(),
|
|
3561
|
-
details: factories['io.flow.payment.v0.unions.authorization_result_action_details'](),
|
|
3562
|
-
}); },
|
|
3563
|
-
'io.flow.payment.v0.models.authorization_result_action_native': function () { return ({
|
|
3564
|
-
discriminator: 'authorization_result_action_native',
|
|
3565
|
-
type: factories['io.flow.payment.v0.enums.authorization_result_action_type'](),
|
|
3566
|
-
authorization: factories['io.flow.payment.v0.models.authorization_reference'](),
|
|
3567
|
-
details: factories['io.flow.payment.v0.unions.authorization_result_action_details'](),
|
|
3568
|
-
}); },
|
|
3569
|
-
'io.flow.payment.v0.models.authorization_result_action_post': function () { return ({
|
|
3570
|
-
discriminator: 'authorization_result_action_post',
|
|
3571
|
-
type: factories['io.flow.payment.v0.enums.authorization_result_action_type'](),
|
|
3572
|
-
url: factories.string(),
|
|
3573
|
-
parameters: factories.object(),
|
|
3574
|
-
}); },
|
|
3575
|
-
'io.flow.payment.v0.models.authorization_result_action_wait': function () { return ({
|
|
3576
|
-
discriminator: 'authorization_result_action_wait',
|
|
3577
|
-
type: factories['io.flow.payment.v0.enums.authorization_result_action_type'](),
|
|
3578
|
-
}); },
|
|
3579
|
-
'io.flow.payment.v0.models.authorization_result_description': function () { return ({
|
|
3580
|
-
display: factories.string(),
|
|
3581
|
-
}); },
|
|
3582
|
-
'io.flow.payment.v0.models.authorization_retry': function () { return ({
|
|
3583
|
-
id: factories.string(),
|
|
3584
|
-
authorization_request_id: factories.string(),
|
|
3585
|
-
authorization_id: factories.string(),
|
|
3586
|
-
organization_id: factories.string(),
|
|
3587
|
-
attempt: factories.integer(),
|
|
3588
|
-
last_failure_code: factories.string(),
|
|
3589
|
-
created_at: factories.date_time_iso_8601(),
|
|
3590
|
-
updated_at: factories.date_time_iso_8601(),
|
|
3591
|
-
}); },
|
|
3592
|
-
'io.flow.payment.v0.models.authorization_version': function () { return ({
|
|
3593
|
-
id: factories.string(),
|
|
3594
|
-
timestamp: factories.date_time_iso_8601(),
|
|
3595
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3596
|
-
authorization: factories['io.flow.payment.v0.unions.authorization'](),
|
|
3597
|
-
}); },
|
|
3598
|
-
'io.flow.payment.v0.models.avs': function () { return ({
|
|
3599
|
-
code: factories['io.flow.payment.v0.enums.avs_code'](),
|
|
3600
|
-
name: factories.boolean(),
|
|
3601
|
-
address: factories.boolean(),
|
|
3602
|
-
postal: factories.boolean(),
|
|
3603
|
-
description: factories.string(),
|
|
3604
|
-
}); },
|
|
3605
|
-
'io.flow.payment.v0.models.browser_info': function () { return ({
|
|
3606
|
-
origin: factories.string(),
|
|
3607
|
-
language: factories.string(),
|
|
3608
|
-
java_enabled: factories.boolean(),
|
|
3609
|
-
color_depth: factories.integer(),
|
|
3610
|
-
screen_height: factories.integer(),
|
|
3611
|
-
screen_width: factories.integer(),
|
|
3612
|
-
time_zone_offset: factories.integer(),
|
|
3613
|
-
user_agent: factories.string(),
|
|
3614
|
-
accept: factories.string(),
|
|
3615
|
-
}); },
|
|
3616
|
-
'io.flow.payment.v0.models.browser_inline_action_configuration': function () { return ({
|
|
3617
|
-
discriminator: 'browser_inline_action_configuration',
|
|
3618
|
-
inline_notification_urls: factories['io.flow.payment.v0.models.post_payment_redirect_urls'](),
|
|
3619
|
-
action_configuration: factories['io.flow.payment.v0.unions.browser_action_configuration'](),
|
|
3620
|
-
}); },
|
|
3621
|
-
'io.flow.payment.v0.models.capture': function () { return ({
|
|
3622
|
-
id: factories.string(),
|
|
3623
|
-
key: factories.string(),
|
|
3624
|
-
authorization: factories['io.flow.payment.v0.models.authorization_reference'](),
|
|
3625
|
-
amount: factories.decimal(),
|
|
3626
|
-
currency: factories.string(),
|
|
3627
|
-
requested: factories['io.flow.common.v0.models.money'](),
|
|
3628
|
-
created_at: factories.date_time_iso_8601(),
|
|
3629
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
3630
|
-
status: factories['io.flow.payment.v0.enums.capture_status'](),
|
|
3631
|
-
base: factories['io.flow.common.v0.models.money'](),
|
|
3632
|
-
fees: arrayOf(function () { return factories['io.flow.payment.v0.models.payment_fee'](); }),
|
|
3633
|
-
}); },
|
|
3634
|
-
'io.flow.payment.v0.models.capture_error': function () { return ({
|
|
3635
|
-
code: factories['io.flow.error.v0.enums.generic_error_code'](),
|
|
3636
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
3637
|
-
decline_code: factories['io.flow.payment.v0.enums.capture_decline_code'](),
|
|
3638
|
-
}); },
|
|
3639
|
-
'io.flow.payment.v0.models.capture_form': function () { return ({
|
|
3640
|
-
authorization_id: factories.string(),
|
|
3641
|
-
key: factories.string(),
|
|
3642
|
-
amount: factories.decimal(),
|
|
3643
|
-
currency: factories.string(),
|
|
3644
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
3645
|
-
}); },
|
|
3646
|
-
'io.flow.payment.v0.models.capture_identifier': function () { return ({
|
|
3647
|
-
id: factories.string(),
|
|
3648
|
-
capture: factories['io.flow.payment.v0.models.capture_reference'](),
|
|
3649
|
-
name: factories.string(),
|
|
3650
|
-
identifier: factories.string(),
|
|
3651
|
-
primary: factories.boolean(),
|
|
3652
|
-
}); },
|
|
3653
|
-
'io.flow.payment.v0.models.capture_reference': function () { return ({
|
|
3654
|
-
discriminator: 'capture_reference',
|
|
3655
|
-
id: factories.string(),
|
|
3656
|
-
key: factories.string(),
|
|
3657
|
-
}); },
|
|
3658
|
-
'io.flow.payment.v0.models.capture_version': function () { return ({
|
|
3659
|
-
id: factories.string(),
|
|
3660
|
-
timestamp: factories.date_time_iso_8601(),
|
|
3661
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3662
|
-
capture: factories['io.flow.payment.v0.models.capture'](),
|
|
3663
|
-
}); },
|
|
3664
|
-
'io.flow.payment.v0.models.card': function () { return ({
|
|
3665
|
-
discriminator: 'card',
|
|
3666
|
-
id: factories.string(),
|
|
3667
|
-
token: factories.string(),
|
|
3668
|
-
type: factories['io.flow.payment.v0.enums.card_type'](),
|
|
3669
|
-
expiration: factories['io.flow.payment.v0.models.expiration'](),
|
|
3670
|
-
iin: factories.string(),
|
|
3671
|
-
issuer: factories['io.flow.payment.v0.models.issuer_summary'](),
|
|
3672
|
-
last4: factories.string(),
|
|
3673
|
-
name: factories.string(),
|
|
3674
|
-
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3675
|
-
}); },
|
|
3676
|
-
'io.flow.payment.v0.models.card_authorization': function () { return ({
|
|
3677
|
-
discriminator: 'card_authorization',
|
|
3678
|
-
id: factories.string(),
|
|
3679
|
-
key: factories.string(),
|
|
3680
|
-
merchant_of_record: factories['io.flow.common.v0.enums.merchant_of_record'](),
|
|
3681
|
-
method: factories['io.flow.reference.v0.models.payment_method'](),
|
|
3682
|
-
card: factories['io.flow.payment.v0.unions.expandable_card'](),
|
|
3683
|
-
amount: factories.decimal(),
|
|
3684
|
-
currency: factories.string(),
|
|
3685
|
-
requested: factories['io.flow.common.v0.models.money'](),
|
|
3686
|
-
customer: factories['io.flow.common.v0.models.order_customer'](),
|
|
3687
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
3688
|
-
destination: factories['io.flow.common.v0.models.address'](),
|
|
3689
|
-
billing_address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3690
|
-
order: factories['io.flow.payment.v0.models.authorization_order_reference'](),
|
|
3691
|
-
payment_order_reference: factories['io.flow.payment.v0.unions.payment_order_reference'](),
|
|
3692
|
-
ip: factories.string(),
|
|
3693
|
-
result: factories['io.flow.payment.v0.models.authorization_result'](),
|
|
3694
|
-
created_at: factories.date_time_iso_8601(),
|
|
3695
|
-
expires_at: factories.date_time_iso_8601(),
|
|
3696
|
-
base: factories['io.flow.common.v0.models.money'](),
|
|
3697
|
-
processor: factories['io.flow.payment.v0.unions.expandable_payment_processor'](),
|
|
3698
|
-
stored_method_usage_step: factories['io.flow.payment.v0.enums.stored_method_usage_step'](),
|
|
3699
|
-
authorized_at: factories.date_time_iso_8601(),
|
|
3700
|
-
authorization_request_id: factories.string(),
|
|
3701
|
-
}); },
|
|
3702
|
-
'io.flow.payment.v0.models.card_browser_action_configuration': function () { return ({
|
|
3703
|
-
discriminator: 'card_browser_action_configuration',
|
|
3704
|
-
viewport: factories['io.flow.payment.v0.enums.threeds_two_challenge_viewport'](),
|
|
3705
|
-
}); },
|
|
3706
|
-
'io.flow.payment.v0.models.card_confirmation_summary': function () { return ({
|
|
3707
|
-
discriminator: 'card_confirmation_summary',
|
|
3708
|
-
type: factories['io.flow.payment.v0.enums.card_type'](),
|
|
3709
|
-
funding_type: factories.string(),
|
|
3710
|
-
expiration: factories['io.flow.payment.v0.models.expiration'](),
|
|
3711
|
-
iin: factories.string(),
|
|
3712
|
-
issuer: factories['io.flow.payment.v0.models.issuer_summary'](),
|
|
3713
|
-
last4: factories.string(),
|
|
3714
|
-
}); },
|
|
3715
|
-
'io.flow.payment.v0.models.card_error': function () { return ({
|
|
3716
|
-
code: factories['io.flow.payment.v0.enums.card_error_code'](),
|
|
3717
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
3718
|
-
avs: factories['io.flow.payment.v0.models.avs'](),
|
|
3719
|
-
cvv: factories['io.flow.payment.v0.models.cvv'](),
|
|
3720
|
-
}); },
|
|
3721
|
-
'io.flow.payment.v0.models.card_form': function () { return ({
|
|
3722
|
-
number: factories.string(),
|
|
3723
|
-
cipher: factories.string(),
|
|
3724
|
-
expiration_month: factories.integer(),
|
|
3725
|
-
expiration_year: factories.integer(),
|
|
3726
|
-
name: factories.string(),
|
|
3727
|
-
cvv: factories.string(),
|
|
3728
|
-
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3729
|
-
ip: factories.string(),
|
|
3730
|
-
challenge_text: factories.string(),
|
|
3731
|
-
challenge_cipher: factories.string(),
|
|
3732
|
-
token_type: factories['io.flow.payment.v0.enums.token_type'](),
|
|
3733
|
-
requested_currency: factories.string(),
|
|
3734
|
-
metadata: factories['io.flow.payment.v0.models.card_metadata'](),
|
|
3735
|
-
}); },
|
|
3736
|
-
'io.flow.payment.v0.models.card_metadata': function () { return ({
|
|
3737
|
-
merchant_of_record: factories['io.flow.common.v0.enums.order_merchant_of_record'](),
|
|
3738
|
-
}); },
|
|
3739
|
-
'io.flow.payment.v0.models.card_nonce_form': function () { return ({
|
|
3740
|
-
token: factories.string(),
|
|
3741
|
-
}); },
|
|
3742
|
-
'io.flow.payment.v0.models.card_payment_source': function () { return ({
|
|
3743
|
-
discriminator: 'card_payment_source',
|
|
3744
|
-
id: factories.string(),
|
|
3745
|
-
actions: arrayOf(function () { return factories['io.flow.payment.v0.models.payment_source_confirmation_action'](); }),
|
|
3746
|
-
summary: factories['io.flow.payment.v0.models.card_payment_source_summary'](),
|
|
3747
|
-
}); },
|
|
3748
|
-
'io.flow.payment.v0.models.card_payment_source_authorization_form': function () { return ({
|
|
3749
|
-
discriminator: 'card_payment_source_authorization_form',
|
|
3750
|
-
key: factories.string(),
|
|
3751
|
-
card_payment_source_id: factories.string(),
|
|
3752
|
-
order_number: factories.string(),
|
|
3753
|
-
amount: factories.decimal(),
|
|
3754
|
-
currency: factories.string(),
|
|
3755
|
-
browser_info: factories['io.flow.payment.v0.models.browser_info'](),
|
|
3756
|
-
inline_action_configuration: factories['io.flow.payment.v0.unions.inline_action_configuration'](),
|
|
3757
|
-
}); },
|
|
3758
|
-
'io.flow.payment.v0.models.card_payment_source_form': function () { return ({
|
|
3759
|
-
discriminator: 'card_payment_source_form',
|
|
3760
|
-
customer_number: factories.string(),
|
|
3761
|
-
card_id: factories.string(),
|
|
3762
|
-
}); },
|
|
3763
|
-
'io.flow.payment.v0.models.card_payment_source_summary': function () { return ({
|
|
3764
|
-
customer_number: factories.string(),
|
|
3765
|
-
card: factories['io.flow.payment.v0.models.card_summary'](),
|
|
3766
|
-
}); },
|
|
3767
|
-
'io.flow.payment.v0.models.card_reference': function () { return ({
|
|
3768
|
-
discriminator: 'card_reference',
|
|
3769
|
-
id: factories.string(),
|
|
3770
|
-
token: factories.string(),
|
|
3771
|
-
}); },
|
|
3772
|
-
'io.flow.payment.v0.models.card_summary': function () { return ({
|
|
3773
|
-
discriminator: 'card_summary',
|
|
3774
|
-
id: factories.string(),
|
|
3775
|
-
type: factories['io.flow.payment.v0.enums.card_type'](),
|
|
3776
|
-
expiration: factories['io.flow.payment.v0.models.expiration'](),
|
|
3777
|
-
iin: factories.string(),
|
|
3778
|
-
issuer: factories['io.flow.payment.v0.models.issuer_summary'](),
|
|
3779
|
-
last4: factories.string(),
|
|
3780
|
-
name: factories.string(),
|
|
3781
|
-
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3782
|
-
}); },
|
|
3783
|
-
'io.flow.payment.v0.models.card_token_form': function () { return ({
|
|
3784
|
-
token: factories.string(),
|
|
3785
|
-
}); },
|
|
3786
|
-
'io.flow.payment.v0.models.card_version': function () { return ({
|
|
3787
|
-
id: factories.string(),
|
|
3788
|
-
timestamp: factories.date_time_iso_8601(),
|
|
3789
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3790
|
-
card: factories['io.flow.payment.v0.models.card'](),
|
|
3791
|
-
}); },
|
|
3792
|
-
'io.flow.payment.v0.models.cryptopay_authorization_details': function () { return ({
|
|
3793
|
-
discriminator: 'cryptopay_authorization_details',
|
|
3794
|
-
payment_id: factories.string(),
|
|
3795
|
-
}); },
|
|
3796
|
-
'io.flow.payment.v0.models.cvv': function () { return ({
|
|
3797
|
-
code: factories['io.flow.payment.v0.enums.cvv_code'](),
|
|
3798
|
-
description: factories.string(),
|
|
3799
|
-
}); },
|
|
3800
|
-
'io.flow.payment.v0.models.cvv_result': function () { return ({
|
|
3801
|
-
code: factories['io.flow.payment.v0.enums.cvv_result_code'](),
|
|
3802
|
-
raw: factories.string(),
|
|
3803
|
-
}); },
|
|
3804
|
-
'io.flow.payment.v0.models.device_details_browser': function () { return ({
|
|
3805
|
-
type: 'browser',
|
|
3806
|
-
user_agent: factories.string(),
|
|
3807
|
-
origin: factories.string(),
|
|
3808
|
-
accept_language: factories.string(),
|
|
3809
|
-
ip: factories.string(),
|
|
3810
|
-
time_zone_offset: factories.integer(),
|
|
3811
|
-
date_string: factories.string(),
|
|
3812
|
-
navigator_language: factories.string(),
|
|
3813
|
-
navigator_hardware_concurrency: factories.integer(),
|
|
3814
|
-
cookie_created_at: factories.integer(),
|
|
3815
|
-
session_duration: factories.integer(),
|
|
3816
|
-
fingerprint: factories.string(),
|
|
3817
|
-
fraud_references: objectOf(function () { return factories.string(); }),
|
|
3818
|
-
}); },
|
|
3819
|
-
'io.flow.payment.v0.models.direct_authorization_form': function () { return ({
|
|
3820
|
-
discriminator: 'direct_authorization_form',
|
|
3821
|
-
token: factories.string(),
|
|
3822
|
-
amount: factories.decimal(),
|
|
3823
|
-
currency: factories.string(),
|
|
3824
|
-
customer: factories['io.flow.common.v0.models.order_customer'](),
|
|
3825
|
-
key: factories.string(),
|
|
3826
|
-
cvv: factories.string(),
|
|
3827
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
3828
|
-
destination: factories['io.flow.common.v0.models.address'](),
|
|
3829
|
-
billing_address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3830
|
-
ip: factories.string(),
|
|
3831
|
-
options: arrayOf(function () { return factories['io.flow.payment.v0.enums.authorization_option'](); }),
|
|
3832
|
-
redirect_urls: factories['io.flow.payment.v0.models.post_payment_redirect_urls'](),
|
|
3833
|
-
browser_info: factories['io.flow.payment.v0.models.browser_info'](),
|
|
3834
|
-
inline_action_configuration: factories['io.flow.payment.v0.unions.inline_action_configuration'](),
|
|
3835
|
-
}); },
|
|
3836
|
-
'io.flow.payment.v0.models.direct_debit': function () { return ({
|
|
3837
|
-
discriminator: 'direct_debit',
|
|
3838
|
-
bank_name: factories.string(),
|
|
3839
|
-
bic: factories.string(),
|
|
3840
|
-
iban: factories.string(),
|
|
3841
|
-
routing_number: factories.string(),
|
|
3842
|
-
last4: factories.string(),
|
|
3843
|
-
account_holder_name: factories.string(),
|
|
3844
|
-
}); },
|
|
3845
|
-
'io.flow.payment.v0.models.dispute_reference': function () { return ({
|
|
3846
|
-
discriminator: 'dispute_reference',
|
|
3847
|
-
id: factories.string(),
|
|
3848
|
-
key: factories.string(),
|
|
3849
|
-
}); },
|
|
3850
|
-
'io.flow.payment.v0.models.exchanged_money': function () { return ({
|
|
3851
|
-
fx_rate: factories.decimal(),
|
|
3852
|
-
money: factories['io.flow.common.v0.models.money'](),
|
|
3853
|
-
}); },
|
|
3854
|
-
'io.flow.payment.v0.models.expiration': function () { return ({
|
|
3855
|
-
month: factories.integer(),
|
|
3856
|
-
year: factories.integer(),
|
|
3857
|
-
}); },
|
|
3858
|
-
'io.flow.payment.v0.models.external_card': function () { return ({
|
|
3859
|
-
discriminator: 'external_card',
|
|
3860
|
-
id: factories.string(),
|
|
3861
|
-
type: factories['io.flow.payment.v0.enums.card_type'](),
|
|
3862
|
-
}); },
|
|
3863
|
-
'io.flow.payment.v0.models.google_pay_authorization_payload': function () { return ({
|
|
3864
|
-
discriminator: 'google_pay_authorization_payload',
|
|
3865
|
-
payload: factories.object(),
|
|
3866
|
-
}); },
|
|
3867
|
-
'io.flow.payment.v0.models.identifier_form': function () { return ({
|
|
3868
|
-
primary: factories.boolean(),
|
|
3869
|
-
name: factories.string(),
|
|
3870
|
-
}); },
|
|
3871
|
-
'io.flow.payment.v0.models.inline_authorization_details': function () { return ({
|
|
3872
|
-
discriminator: 'inline_authorization_details',
|
|
3873
|
-
id: factories.string(),
|
|
3874
|
-
client_token: factories.string(),
|
|
3875
|
-
parameters: factories.object(),
|
|
3876
|
-
}); },
|
|
3877
|
-
'io.flow.payment.v0.models.inline_authorization_form': function () { return ({
|
|
3878
|
-
discriminator: 'inline_authorization_form',
|
|
3879
|
-
method: factories.string(),
|
|
3880
|
-
issuer: factories['io.flow.payment.v0.models.issuer_reference'](),
|
|
3881
|
-
order_number: factories.string(),
|
|
3882
|
-
amount: factories.decimal(),
|
|
3883
|
-
currency: factories.string(),
|
|
3884
|
-
billing_address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3885
|
-
key: factories.string(),
|
|
3886
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
3887
|
-
ip: factories.string(),
|
|
3888
|
-
payload: factories['io.flow.payment.v0.models.authorization_payload'](),
|
|
3889
|
-
}); },
|
|
3890
|
-
'io.flow.payment.v0.models.issuer_reference': function () { return ({
|
|
3891
|
-
id: factories.string(),
|
|
3892
|
-
}); },
|
|
3893
|
-
'io.flow.payment.v0.models.issuer_summary': function () { return ({
|
|
3894
|
-
iin: factories.string(),
|
|
3895
|
-
name: factories.string(),
|
|
3896
|
-
country: factories.string(),
|
|
3897
|
-
}); },
|
|
3898
|
-
'io.flow.payment.v0.models.issuer_v1': function () { return ({
|
|
3899
|
-
iin: factories.string(),
|
|
3900
|
-
card_brand: factories.string(),
|
|
3901
|
-
card_type: factories.string(),
|
|
3902
|
-
name: factories.string(),
|
|
3903
|
-
country: factories.string(),
|
|
3904
|
-
}); },
|
|
3905
|
-
'io.flow.payment.v0.models.klarna_payment_method_category': function () { return ({
|
|
3906
|
-
id: factories.string(),
|
|
3907
|
-
name: factories.string(),
|
|
3908
|
-
standard_asset_url: factories.string(),
|
|
3909
|
-
descriptive_asset_url: factories.string(),
|
|
3910
|
-
}); },
|
|
3911
|
-
'io.flow.payment.v0.models.klarna_sdk_authorization_result_action_details': function () { return ({
|
|
3912
|
-
discriminator: 'klarna_sdk_authorization_result_action_details',
|
|
3913
|
-
client_token: factories.string(),
|
|
3914
|
-
payment_method_categories: arrayOf(function () { return factories['io.flow.payment.v0.models.klarna_payment_method_category'](); }),
|
|
3915
|
-
}); },
|
|
3916
|
-
'io.flow.payment.v0.models.merchant_of_record_authorization_form': function () { return ({
|
|
3917
|
-
discriminator: 'merchant_of_record_authorization_form',
|
|
3918
|
-
token: factories.string(),
|
|
3919
|
-
order_number: factories.string(),
|
|
3920
|
-
amount: factories.decimal(),
|
|
3921
|
-
currency: factories.string(),
|
|
3922
|
-
key: factories.string(),
|
|
3923
|
-
cvv: factories.string(),
|
|
3924
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
3925
|
-
ip: factories.string(),
|
|
3926
|
-
options: arrayOf(function () { return factories['io.flow.payment.v0.enums.authorization_option'](); }),
|
|
3927
|
-
redirect_urls: factories['io.flow.payment.v0.models.post_payment_redirect_urls'](),
|
|
3928
|
-
browser_info: factories['io.flow.payment.v0.models.browser_info'](),
|
|
3929
|
-
inline_action_configuration: factories['io.flow.payment.v0.unions.inline_action_configuration'](),
|
|
3930
|
-
}); },
|
|
3931
|
-
'io.flow.payment.v0.models.merchant_of_record_payment_form': function () { return ({
|
|
3932
|
-
discriminator: 'merchant_of_record_payment_form',
|
|
3933
|
-
method: factories.string(),
|
|
3934
|
-
order_number: factories.string(),
|
|
3935
|
-
amount: factories.decimal(),
|
|
3936
|
-
currency: factories.string(),
|
|
3937
|
-
}); },
|
|
3938
|
-
'io.flow.payment.v0.models.online_authorization': function () { return ({
|
|
3939
|
-
discriminator: 'online_authorization',
|
|
3940
|
-
id: factories.string(),
|
|
3941
|
-
key: factories.string(),
|
|
3942
|
-
method: factories['io.flow.reference.v0.models.payment_method'](),
|
|
3943
|
-
merchant_of_record: factories['io.flow.common.v0.enums.merchant_of_record'](),
|
|
3944
|
-
details: factories['io.flow.payment.v0.unions.online_authorization_details'](),
|
|
3945
|
-
payment: factories.object(),
|
|
3946
|
-
amount: factories.decimal(),
|
|
3947
|
-
currency: factories.string(),
|
|
3948
|
-
requested: factories['io.flow.common.v0.models.money'](),
|
|
3949
|
-
customer: factories['io.flow.common.v0.models.order_customer'](),
|
|
3950
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
3951
|
-
destination: factories['io.flow.common.v0.models.address'](),
|
|
3952
|
-
billing_address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3953
|
-
order: factories['io.flow.payment.v0.models.authorization_order_reference'](),
|
|
3954
|
-
payment_order_reference: factories['io.flow.payment.v0.unions.payment_order_reference'](),
|
|
3955
|
-
ip: factories.string(),
|
|
3956
|
-
result: factories['io.flow.payment.v0.models.authorization_result'](),
|
|
3957
|
-
created_at: factories.date_time_iso_8601(),
|
|
3958
|
-
expires_at: factories.date_time_iso_8601(),
|
|
3959
|
-
base: factories['io.flow.common.v0.models.money'](),
|
|
3960
|
-
processor: factories['io.flow.payment.v0.unions.expandable_payment_processor'](),
|
|
3961
|
-
confirmation_details: factories['io.flow.payment.v0.unions.confirmation_details'](),
|
|
3962
|
-
authorized_at: factories.date_time_iso_8601(),
|
|
3963
|
-
authorization_request_id: factories.string(),
|
|
3964
|
-
}); },
|
|
3965
|
-
'io.flow.payment.v0.models.online_payment_authorization_form': function () { return ({
|
|
3966
|
-
discriminator: 'online_payment_authorization_form',
|
|
3967
|
-
payment_id: factories.string(),
|
|
3968
|
-
key: factories.string(),
|
|
3969
|
-
}); },
|
|
3970
|
-
'io.flow.payment.v0.models.payment_cryptopay': function () { return ({
|
|
3971
|
-
discriminator: 'payment_cryptopay',
|
|
3972
|
-
id: factories.string(),
|
|
3973
|
-
order: factories['io.flow.payment.v0.models.authorization_order_reference'](),
|
|
3974
|
-
amount: factories.decimal(),
|
|
3975
|
-
currency: factories.string(),
|
|
3976
|
-
created_at: factories.date_time_iso_8601(),
|
|
3977
|
-
cryptopay: factories['io.flow.payment.v0.unions.online_authorization_details'](),
|
|
3978
|
-
}); },
|
|
3979
|
-
'io.flow.payment.v0.models.payment_error': function () { return ({
|
|
3980
|
-
code: factories.string(),
|
|
3981
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
3982
|
-
codes: arrayOf(function () { return factories['io.flow.payment.v0.enums.payment_error_code'](); }),
|
|
3983
|
-
}); },
|
|
3984
|
-
'io.flow.payment.v0.models.payment_fee': function () { return ({
|
|
3985
|
-
type: factories['io.flow.payment.v0.enums.payment_fee_type'](),
|
|
3986
|
-
money: factories['io.flow.common.v0.models.money'](),
|
|
3987
|
-
base: factories['io.flow.common.v0.models.money'](),
|
|
3988
|
-
}); },
|
|
3989
|
-
'io.flow.payment.v0.models.payment_payment_request_reference': function () { return ({
|
|
3990
|
-
discriminator: 'payment_request',
|
|
3991
|
-
payment_request_id: factories.string(),
|
|
3992
|
-
}); },
|
|
3993
|
-
'io.flow.payment.v0.models.payment_paypal': function () { return ({
|
|
3994
|
-
discriminator: 'payment_paypal',
|
|
3995
|
-
id: factories.string(),
|
|
3996
|
-
order: factories['io.flow.payment.v0.models.authorization_order_reference'](),
|
|
3997
|
-
amount: factories.decimal(),
|
|
3998
|
-
currency: factories.string(),
|
|
3999
|
-
created_at: factories.date_time_iso_8601(),
|
|
4000
|
-
paypal: factories['io.flow.payment.v0.unions.online_authorization_details'](),
|
|
4001
|
-
}); },
|
|
4002
|
-
'io.flow.payment.v0.models.payment_processor': function () { return ({
|
|
4003
|
-
discriminator: 'payment_processor',
|
|
4004
|
-
processor: factories.string(),
|
|
4005
|
-
operation_identifier: factories['io.flow.payment.v0.models.payment_processor_identifier'](),
|
|
4006
|
-
account: factories['io.flow.payment.v0.models.payment_processor_account'](),
|
|
4007
|
-
transaction_details: factories['io.flow.payment.v0.unions.payment_processor_transaction_details'](),
|
|
4008
|
-
}); },
|
|
4009
|
-
'io.flow.payment.v0.models.payment_processor_account': function () { return ({
|
|
4010
|
-
organization: factories.string(),
|
|
4011
|
-
key: factories.string(),
|
|
4012
|
-
identifier: factories['io.flow.payment.v0.models.payment_processor_identifier'](),
|
|
4013
|
-
parent_account: factories['io.flow.payment.v0.models.payment_processor_account_reference'](),
|
|
4014
|
-
}); },
|
|
4015
|
-
'io.flow.payment.v0.models.payment_processor_account_reference': function () { return ({
|
|
4016
|
-
organization: factories.string(),
|
|
4017
|
-
key: factories.string(),
|
|
4018
|
-
}); },
|
|
4019
|
-
'io.flow.payment.v0.models.payment_processor_identifier': function () { return ({
|
|
4020
|
-
id: factories.string(),
|
|
4021
|
-
label: factories.string(),
|
|
4022
|
-
}); },
|
|
4023
|
-
'io.flow.payment.v0.models.payment_processor_reference': function () { return ({
|
|
4024
|
-
discriminator: 'payment_processor_reference',
|
|
4025
|
-
processor: factories.string(),
|
|
4026
|
-
}); },
|
|
4027
|
-
'io.flow.payment.v0.models.payment_processor_transaction_details_apm': function () { return ({
|
|
4028
|
-
discriminator: 'apm',
|
|
4029
|
-
transaction_identifier: factories.string(),
|
|
4030
|
-
capture_identifier: factories.string(),
|
|
4031
|
-
method_type: factories.string(),
|
|
4032
|
-
result_status: factories.string(),
|
|
4033
|
-
reason_code: factories.string(),
|
|
4034
|
-
}); },
|
|
4035
|
-
'io.flow.payment.v0.models.payment_processor_transaction_details_card': function () { return ({
|
|
4036
|
-
discriminator: 'card',
|
|
4037
|
-
transaction_identifier: factories.string(),
|
|
4038
|
-
method_type: factories.string(),
|
|
4039
|
-
result_status: factories.string(),
|
|
4040
|
-
reason_code: factories.string(),
|
|
4041
|
-
avs_result_code: factories.string(),
|
|
4042
|
-
cvv_result_code: factories.string(),
|
|
4043
|
-
threeds_result_code: factories.string(),
|
|
4044
|
-
}); },
|
|
4045
|
-
'io.flow.payment.v0.models.payment_reference': function () { return ({
|
|
4046
|
-
id: factories.string(),
|
|
4047
|
-
}); },
|
|
4048
|
-
'io.flow.payment.v0.models.payment_source_confirmation_action': function () { return ({
|
|
4049
|
-
type: factories['io.flow.payment.v0.enums.payment_source_confirmation_action_type'](),
|
|
4050
|
-
}); },
|
|
4051
|
-
'io.flow.payment.v0.models.payment_version': function () { return ({
|
|
4052
|
-
id: factories.string(),
|
|
4053
|
-
timestamp: factories.date_time_iso_8601(),
|
|
4054
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
4055
|
-
payment: factories['io.flow.payment.v0.unions.payment'](),
|
|
4056
|
-
}); },
|
|
4057
|
-
'io.flow.payment.v0.models.paypal_authorization_details': function () { return ({
|
|
4058
|
-
discriminator: 'paypal_authorization_details',
|
|
4059
|
-
payment_id: factories.string(),
|
|
4060
|
-
internal_payment_id: factories.string(),
|
|
4061
|
-
payment_method: factories.string(),
|
|
4062
|
-
payment_state: factories.string(),
|
|
4063
|
-
payer_id: factories.string(),
|
|
4064
|
-
payer_email: factories.string(),
|
|
4065
|
-
payer_status: factories.string(),
|
|
4066
|
-
approval_url: factories.string(),
|
|
4067
|
-
}); },
|
|
4068
|
-
'io.flow.payment.v0.models.paypal_authorization_form': function () { return ({
|
|
4069
|
-
discriminator: 'paypal_authorization_form',
|
|
4070
|
-
paypal_payment_id: factories.string(),
|
|
4071
|
-
paypal_payer_id: factories.string(),
|
|
4072
|
-
key: factories.string(),
|
|
4073
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
4074
|
-
ip: factories.string(),
|
|
4075
|
-
}); },
|
|
4076
|
-
'io.flow.payment.v0.models.post_payment_redirect_urls': function () { return ({
|
|
4077
|
-
success: factories.string(),
|
|
4078
|
-
failure: factories.string(),
|
|
4079
|
-
}); },
|
|
4080
|
-
'io.flow.payment.v0.models.public_key': function () { return ({
|
|
4081
|
-
id: factories.string(),
|
|
4082
|
-
}); },
|
|
4083
|
-
'io.flow.payment.v0.models.redirect_authorization_details': function () { return ({
|
|
4084
|
-
discriminator: 'redirect_authorization_details',
|
|
4085
|
-
id: factories.string(),
|
|
4086
|
-
payment_redirect_url: factories.string(),
|
|
4087
|
-
}); },
|
|
4088
|
-
'io.flow.payment.v0.models.redirect_authorization_form': function () { return ({
|
|
4089
|
-
discriminator: 'redirect_authorization_form',
|
|
4090
|
-
method: factories.string(),
|
|
4091
|
-
issuer: factories['io.flow.payment.v0.models.issuer_reference'](),
|
|
4092
|
-
order_number: factories.string(),
|
|
4093
|
-
amount: factories.decimal(),
|
|
4094
|
-
currency: factories.string(),
|
|
4095
|
-
redirect_urls: factories['io.flow.payment.v0.models.post_payment_redirect_urls'](),
|
|
4096
|
-
key: factories.string(),
|
|
4097
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
4098
|
-
ip: factories.string(),
|
|
4099
|
-
}); },
|
|
4100
|
-
'io.flow.payment.v0.models.refund': function () { return ({
|
|
4101
|
-
id: factories.string(),
|
|
4102
|
-
key: factories.string(),
|
|
4103
|
-
authorization: factories['io.flow.payment.v0.models.authorization_reference'](),
|
|
4104
|
-
amount: factories.decimal(),
|
|
4105
|
-
currency: factories.string(),
|
|
4106
|
-
requested: factories['io.flow.common.v0.models.money'](),
|
|
4107
|
-
captures: arrayOf(function () { return factories['io.flow.payment.v0.models.refund_capture_summary'](); }),
|
|
4108
|
-
created_at: factories.date_time_iso_8601(),
|
|
4109
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
4110
|
-
status: factories['io.flow.payment.v0.enums.refund_status'](),
|
|
4111
|
-
base: factories['io.flow.common.v0.models.money'](),
|
|
4112
|
-
failure_category: factories['io.flow.payment.v0.enums.refund_failure_category'](),
|
|
4113
|
-
failure_psp_reason: factories.string(),
|
|
4114
|
-
}); },
|
|
4115
|
-
'io.flow.payment.v0.models.refund_capture': function () { return ({
|
|
4116
|
-
id: factories.string(),
|
|
4117
|
-
refund: factories['io.flow.payment.v0.models.refund'](),
|
|
4118
|
-
capture: factories['io.flow.payment.v0.models.capture'](),
|
|
4119
|
-
amount: factories.decimal(),
|
|
4120
|
-
currency: factories.string(),
|
|
4121
|
-
base: factories['io.flow.common.v0.models.money'](),
|
|
4122
|
-
status: factories['io.flow.payment.v0.enums.refund_status'](),
|
|
4123
|
-
}); },
|
|
4124
|
-
'io.flow.payment.v0.models.refund_capture_summary': function () { return ({
|
|
4125
|
-
capture: factories['io.flow.payment.v0.models.capture'](),
|
|
4126
|
-
amount: factories.decimal(),
|
|
4127
|
-
}); },
|
|
4128
|
-
'io.flow.payment.v0.models.refund_error': function () { return ({
|
|
4129
|
-
code: factories['io.flow.error.v0.enums.generic_error_code'](),
|
|
4130
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
4131
|
-
decline_code: factories['io.flow.payment.v0.enums.refund_decline_code'](),
|
|
4132
|
-
}); },
|
|
4133
|
-
'io.flow.payment.v0.models.refund_form': function () { return ({
|
|
4134
|
-
authorization_id: factories.string(),
|
|
4135
|
-
capture_id: factories.string(),
|
|
4136
|
-
order_number: factories.string(),
|
|
4137
|
-
key: factories.string(),
|
|
4138
|
-
amount: factories.decimal(),
|
|
4139
|
-
currency: factories.string(),
|
|
4140
|
-
rma_key: factories.string(),
|
|
4141
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
4142
|
-
}); },
|
|
4143
|
-
'io.flow.payment.v0.models.refund_identifier': function () { return ({
|
|
4144
|
-
id: factories.string(),
|
|
4145
|
-
refund: factories['io.flow.payment.v0.models.refund_reference'](),
|
|
4146
|
-
name: factories.string(),
|
|
4147
|
-
identifier: factories.string(),
|
|
4148
|
-
primary: factories.boolean(),
|
|
4149
|
-
}); },
|
|
4150
|
-
'io.flow.payment.v0.models.refund_order_summary': function () { return ({
|
|
4151
|
-
order_number: factories.string(),
|
|
4152
|
-
currency: factories.string(),
|
|
4153
|
-
captured: factories.decimal(),
|
|
4154
|
-
refunded: factories.decimal(),
|
|
4155
|
-
amounts: factories['io.flow.payment.v0.models.refund_order_summary_amounts'](),
|
|
4156
|
-
}); },
|
|
4157
|
-
'io.flow.payment.v0.models.refund_order_summary_amounts': function () { return ({
|
|
4158
|
-
balance: factories.decimal(),
|
|
4159
|
-
balance_excluding_shipping: factories.decimal(),
|
|
4160
|
-
shipping: factories.decimal(),
|
|
4161
|
-
}); },
|
|
4162
|
-
'io.flow.payment.v0.models.refund_reference': function () { return ({
|
|
4163
|
-
discriminator: 'refund_reference',
|
|
4164
|
-
id: factories.string(),
|
|
4165
|
-
key: factories.string(),
|
|
4166
|
-
}); },
|
|
4167
|
-
'io.flow.payment.v0.models.refund_version': function () { return ({
|
|
4168
|
-
id: factories.string(),
|
|
4169
|
-
timestamp: factories.date_time_iso_8601(),
|
|
4170
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
4171
|
-
refund: factories['io.flow.payment.v0.models.refund'](),
|
|
4172
|
-
}); },
|
|
4173
|
-
'io.flow.payment.v0.models.reversal': function () { return ({
|
|
4174
|
-
id: factories.string(),
|
|
4175
|
-
key: factories.string(),
|
|
4176
|
-
authorization: factories['io.flow.payment.v0.models.authorization_reference'](),
|
|
4177
|
-
status: factories['io.flow.payment.v0.enums.reversal_status'](),
|
|
4178
|
-
amount: factories.decimal(),
|
|
4179
|
-
currency: factories.string(),
|
|
4180
|
-
requested: factories['io.flow.common.v0.models.money'](),
|
|
4181
|
-
created_at: factories.date_time_iso_8601(),
|
|
4182
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
4183
|
-
base: factories['io.flow.common.v0.models.money'](),
|
|
4184
|
-
}); },
|
|
4185
|
-
'io.flow.payment.v0.models.reversal_error': function () { return ({
|
|
4186
|
-
code: factories.string(),
|
|
4187
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
4188
|
-
codes: arrayOf(function () { return factories['io.flow.payment.v0.enums.reversal_error_code'](); }),
|
|
4189
|
-
}); },
|
|
4190
|
-
'io.flow.payment.v0.models.reversal_form': function () { return ({
|
|
4191
|
-
key: factories.string(),
|
|
4192
|
-
authorization_id: factories.string(),
|
|
4193
|
-
amount: factories.decimal(),
|
|
4194
|
-
currency: factories.string(),
|
|
4195
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
4196
|
-
}); },
|
|
4197
|
-
'io.flow.payment.v0.models.reversal_put_form': function () { return ({
|
|
4198
|
-
authorization_id: factories.string(),
|
|
4199
|
-
amount: factories.decimal(),
|
|
4200
|
-
currency: factories.string(),
|
|
4201
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
4202
|
-
}); },
|
|
4203
|
-
'io.flow.payment.v0.models.reversal_version': function () { return ({
|
|
4204
|
-
id: factories.string(),
|
|
4205
|
-
timestamp: factories.date_time_iso_8601(),
|
|
4206
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
4207
|
-
reversal: factories['io.flow.payment.v0.models.reversal'](),
|
|
4208
|
-
}); },
|
|
4209
|
-
'io.flow.payment.v0.models.select_issuer_option_action_details': function () { return ({
|
|
4210
|
-
discriminator: 'select_issuer_option_action_details',
|
|
4211
|
-
issuer_options: arrayOf(function () { return factories['io.flow.payment.v0.models.issuer_reference'](); }),
|
|
4212
|
-
}); },
|
|
4213
|
-
'io.flow.payment.v0.models.stripe_authentication_data': function () { return ({
|
|
4214
|
-
discriminator: 'stripe_authentication_data',
|
|
4215
|
-
secret_key_reference: factories.string(),
|
|
4216
|
-
}); },
|
|
4217
|
-
'io.flow.payment.v0.models.stripe_authentication_data_form': function () { return ({
|
|
4218
|
-
discriminator: 'stripe_authentication_data_form',
|
|
4219
|
-
account_id: factories.string(),
|
|
4220
|
-
secret_key: factories.string(),
|
|
4221
|
-
key: factories.string(),
|
|
4222
|
-
}); },
|
|
4223
|
-
'io.flow.payment.v0.models.stripe_authorization_result_action_details': function () { return ({
|
|
4224
|
-
discriminator: 'stripe_authorization_result_action_details',
|
|
4225
|
-
client_secret: factories.string(),
|
|
4226
|
-
payment_method_id: factories.string(),
|
|
4227
|
-
publishable_key: factories.string(),
|
|
4228
|
-
}); },
|
|
4229
|
-
'io.flow.payment.v0.models.three_d_secure': function () { return ({
|
|
4230
|
-
code: factories['io.flow.payment.v0.enums.three_d_secure_code'](),
|
|
4231
|
-
description: factories.string(),
|
|
4232
|
-
eci: factories.string(),
|
|
4233
|
-
liability_sift: factories.boolean(),
|
|
4234
|
-
version: factories.string(),
|
|
4235
|
-
authenticated: factories.boolean(),
|
|
4236
|
-
authenticated_result: factories.string(),
|
|
4237
|
-
offered: factories.boolean(),
|
|
4238
|
-
offered_result: factories.string(),
|
|
4239
|
-
sca_exemption: factories.string(),
|
|
4240
|
-
}); },
|
|
4241
|
-
'io.flow.payment.v0.models.threeds_challenge_action_details': function () { return ({
|
|
4242
|
-
discriminator: 'threeds_challenge_action_details',
|
|
4243
|
-
threeds_challenge_action: factories['io.flow.payment.v0.unions.threeds_challenge_action'](),
|
|
4244
|
-
expires_at: factories.date_time_iso_8601(),
|
|
4245
|
-
}); },
|
|
4246
|
-
'io.flow.payment.v0.models.threeds_identify_action_details': function () { return ({
|
|
4247
|
-
discriminator: 'threeds_identify_action_details',
|
|
4248
|
-
threeds_identify_action: factories['io.flow.payment.v0.unions.threeds_identify_action'](),
|
|
4249
|
-
expires_at: factories.date_time_iso_8601(),
|
|
4250
|
-
}); },
|
|
4251
|
-
'io.flow.payment.v0.models.threeds_two_challenge_request': function () { return ({
|
|
4252
|
-
discriminator: 'threeds_two_challenge_request',
|
|
4253
|
-
acs_url: factories.string(),
|
|
4254
|
-
challenge_request: factories.string(),
|
|
4255
|
-
session_data: factories.string(),
|
|
2088
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2089
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2090
|
+
invitation: factories['io.flow.organization.v0.models.invitation'](),
|
|
4256
2091
|
}); },
|
|
4257
|
-
'io.flow.
|
|
4258
|
-
|
|
4259
|
-
|
|
2092
|
+
'io.flow.organization.v0.models.membership': function () { return ({
|
|
2093
|
+
id: factories.string(),
|
|
2094
|
+
organization: factories['io.flow.common.v0.unions.expandable_organization'](),
|
|
2095
|
+
user: factories['io.flow.common.v0.unions.expandable_user'](),
|
|
2096
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
2097
|
+
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
4260
2098
|
}); },
|
|
4261
|
-
'io.flow.
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
2099
|
+
'io.flow.organization.v0.models.membership_form': function () { return ({
|
|
2100
|
+
organization: factories.string(),
|
|
2101
|
+
user: factories.string(),
|
|
2102
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
2103
|
+
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
4266
2104
|
}); },
|
|
4267
|
-
'io.flow.
|
|
4268
|
-
|
|
4269
|
-
|
|
2105
|
+
'io.flow.organization.v0.models.membership_put_form': function () { return ({
|
|
2106
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
2107
|
+
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
4270
2108
|
}); },
|
|
4271
|
-
'io.flow.
|
|
2109
|
+
'io.flow.organization.v0.models.membership_version': function () { return ({
|
|
4272
2110
|
id: factories.string(),
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
created_at: factories.date_time_iso_8601(),
|
|
4277
|
-
authorization: factories['io.flow.payment.v0.models.authorization_reference'](),
|
|
4278
|
-
transferred_at: factories.date_time_iso_8601(),
|
|
2111
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2112
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2113
|
+
membership: factories['io.flow.organization.v0.models.membership'](),
|
|
4279
2114
|
}); },
|
|
4280
|
-
'io.flow.
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
expiration: factories['io.flow.payment.v0.models.expiration'](),
|
|
4288
|
-
iin: factories.string(),
|
|
4289
|
-
last4: factories.string(),
|
|
4290
|
-
name: factories.string(),
|
|
4291
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
2115
|
+
'io.flow.organization.v0.models.organization_authorization': function () { return ({
|
|
2116
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
2117
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
2118
|
+
}); },
|
|
2119
|
+
'io.flow.organization.v0.models.organization_authorization_form': function () { return ({
|
|
2120
|
+
organization: factories.string(),
|
|
2121
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
4292
2122
|
}); },
|
|
4293
|
-
'io.flow.
|
|
2123
|
+
'io.flow.organization.v0.models.organization_configuration_reference': function () { return ({
|
|
4294
2124
|
id: factories.string(),
|
|
4295
|
-
issuer: factories['io.flow.payment.v0.models.issuer_v1'](),
|
|
4296
|
-
virtual_card: factories['io.flow.payment.v0.models.virtual_card_reference'](),
|
|
4297
|
-
authorization: factories['io.flow.payment.v0.models.authorization_reference'](),
|
|
4298
|
-
amount: factories.decimal(),
|
|
4299
|
-
currency: factories.string(),
|
|
4300
|
-
created_at: factories.date_time_iso_8601(),
|
|
4301
2125
|
}); },
|
|
4302
|
-
'io.flow.
|
|
2126
|
+
'io.flow.organization.v0.models.organization_default_configurations': function () { return ({
|
|
4303
2127
|
id: factories.string(),
|
|
4304
|
-
|
|
4305
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
4306
|
-
virtual_card_capture: factories['io.flow.payment.v0.models.virtual_card_capture'](),
|
|
2128
|
+
checkout_configuration: factories['io.flow.organization.v0.models.organization_configuration_reference'](),
|
|
4307
2129
|
}); },
|
|
4308
|
-
'io.flow.
|
|
2130
|
+
'io.flow.organization.v0.models.organization_default_configurations_form': function () { return ({
|
|
4309
2131
|
id: factories.string(),
|
|
4310
2132
|
}); },
|
|
4311
|
-
'io.flow.
|
|
2133
|
+
'io.flow.organization.v0.models.organization_form': function () { return ({
|
|
4312
2134
|
id: factories.string(),
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
2135
|
+
name: factories.string(),
|
|
2136
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
2137
|
+
parent_id: factories.string(),
|
|
2138
|
+
defaults: factories['io.flow.common.v0.models.organization_defaults'](),
|
|
2139
|
+
status: factories['io.flow.common.v0.enums.organization_status'](),
|
|
2140
|
+
type: factories['io.flow.common.v0.enums.organization_type'](),
|
|
2141
|
+
}); },
|
|
2142
|
+
'io.flow.organization.v0.models.organization_put_form': function () { return ({
|
|
2143
|
+
name: factories.string(),
|
|
2144
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
2145
|
+
parent_id: factories.string(),
|
|
2146
|
+
defaults: factories['io.flow.common.v0.models.organization_defaults'](),
|
|
2147
|
+
status: factories['io.flow.common.v0.enums.organization_status'](),
|
|
4319
2148
|
}); },
|
|
4320
|
-
'io.flow.
|
|
2149
|
+
'io.flow.organization.v0.models.organization_version': function () { return ({
|
|
4321
2150
|
id: factories.string(),
|
|
4322
2151
|
timestamp: factories.date_time_iso_8601(),
|
|
4323
2152
|
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
4324
|
-
|
|
2153
|
+
organization: factories['io.flow.common.v0.models.organization'](),
|
|
4325
2154
|
}); },
|
|
4326
|
-
'io.flow.
|
|
2155
|
+
'io.flow.organization.v0.models.region_setting': function () { return ({
|
|
4327
2156
|
id: factories.string(),
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
2157
|
+
region: factories.string(),
|
|
2158
|
+
status: factories['io.flow.common.v0.enums.availability_status'](),
|
|
2159
|
+
}); },
|
|
2160
|
+
'io.flow.organization.v0.models.region_setting_form': function () { return ({
|
|
2161
|
+
status: factories['io.flow.common.v0.enums.availability_status'](),
|
|
4331
2162
|
}); },
|
|
4332
|
-
'io.flow.payment.v0.unions.adyen_native_data': function () {
|
|
4333
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
4334
|
-
function () { return factories['io.flow.payment.v0.models.adyen_identify_shopper_data'](); },
|
|
4335
|
-
function () { return factories['io.flow.payment.v0.models.adyen_challenge_shopper_data'](); },
|
|
4336
|
-
]);
|
|
4337
|
-
return f();
|
|
4338
|
-
},
|
|
4339
|
-
'io.flow.payment.v0.unions.authorization': function () {
|
|
4340
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
4341
|
-
function () { return factories['io.flow.payment.v0.models.card_authorization'](); },
|
|
4342
|
-
function () { return factories['io.flow.payment.v0.models.online_authorization'](); },
|
|
4343
|
-
]);
|
|
4344
|
-
return f();
|
|
4345
|
-
},
|
|
4346
|
-
'io.flow.payment.v0.unions.authorization_form': function () {
|
|
4347
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
4348
|
-
function () { return factories['io.flow.payment.v0.models.authorization_copy_form'](); },
|
|
4349
|
-
function () { return factories['io.flow.payment.v0.models.direct_authorization_form'](); },
|
|
4350
|
-
function () { return factories['io.flow.payment.v0.models.merchant_of_record_authorization_form'](); },
|
|
4351
|
-
function () { return factories['io.flow.payment.v0.models.paypal_authorization_form'](); },
|
|
4352
|
-
function () { return factories['io.flow.payment.v0.models.redirect_authorization_form'](); },
|
|
4353
|
-
function () { return factories['io.flow.payment.v0.models.inline_authorization_form'](); },
|
|
4354
|
-
function () { return factories['io.flow.payment.v0.models.ach_authorization_form'](); },
|
|
4355
|
-
function () { return factories['io.flow.payment.v0.models.card_payment_source_authorization_form'](); },
|
|
4356
|
-
function () { return factories['io.flow.payment.v0.models.online_payment_authorization_form'](); },
|
|
4357
|
-
]);
|
|
4358
|
-
return f();
|
|
4359
|
-
},
|
|
4360
|
-
'io.flow.payment.v0.unions.authorization_payload_parameters': function () {
|
|
4361
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
4362
|
-
function () { return factories['io.flow.payment.v0.models.google_pay_authorization_payload'](); },
|
|
4363
|
-
function () { return factories['io.flow.payment.v0.models.apple_pay_merchant_validation_payload'](); },
|
|
4364
|
-
]);
|
|
4365
|
-
return f();
|
|
4366
|
-
},
|
|
4367
|
-
'io.flow.payment.v0.unions.authorization_result_action': function () {
|
|
4368
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
4369
|
-
function () { return factories['io.flow.payment.v0.models.authorization_result_action_get'](); },
|
|
4370
|
-
function () { return factories['io.flow.payment.v0.models.authorization_result_action_post'](); },
|
|
4371
|
-
function () { return factories['io.flow.payment.v0.models.authorization_result_action_wait'](); },
|
|
4372
|
-
function () { return factories['io.flow.payment.v0.models.authorization_result_action_native'](); },
|
|
4373
|
-
]);
|
|
4374
|
-
return f();
|
|
4375
|
-
},
|
|
4376
|
-
'io.flow.payment.v0.unions.authorization_result_action_details': function () {
|
|
4377
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
4378
|
-
function () { return factories['io.flow.payment.v0.models.adyen_native_action_details'](); },
|
|
4379
|
-
function () { return factories['io.flow.payment.v0.models.stripe_authorization_result_action_details'](); },
|
|
4380
|
-
function () { return factories['io.flow.payment.v0.models.threeds_identify_action_details'](); },
|
|
4381
|
-
function () { return factories['io.flow.payment.v0.models.threeds_challenge_action_details'](); },
|
|
4382
|
-
function () { return factories['io.flow.payment.v0.models.applepay_sdk_create_result_action_details'](); },
|
|
4383
|
-
function () { return factories['io.flow.payment.v0.models.applepay_sdk_validate_result_action_details'](); },
|
|
4384
|
-
function () { return factories['io.flow.payment.v0.models.klarna_sdk_authorization_result_action_details'](); },
|
|
4385
|
-
function () { return factories['io.flow.payment.v0.models.select_issuer_option_action_details'](); },
|
|
4386
|
-
]);
|
|
4387
|
-
return f();
|
|
4388
|
-
},
|
|
4389
|
-
'io.flow.payment.v0.unions.browser_action_configuration': function () {
|
|
4390
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
4391
|
-
function () { return factories['io.flow.payment.v0.models.card_browser_action_configuration'](); },
|
|
4392
|
-
]);
|
|
4393
|
-
return f();
|
|
4394
|
-
},
|
|
4395
|
-
'io.flow.payment.v0.unions.confirmation_details': function () {
|
|
4396
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
4397
|
-
function () { return factories['io.flow.payment.v0.models.direct_debit'](); },
|
|
4398
|
-
function () { return factories['io.flow.payment.v0.models.card_confirmation_summary'](); },
|
|
4399
|
-
]);
|
|
4400
|
-
return f();
|
|
4401
|
-
},
|
|
4402
|
-
'io.flow.payment.v0.unions.device_details': function () {
|
|
4403
|
-
var f = faker_1.default.helpers.arrayElement([function () { return factories['io.flow.payment.v0.models.device_details_browser'](); }]);
|
|
4404
|
-
return f();
|
|
4405
|
-
},
|
|
4406
|
-
'io.flow.payment.v0.unions.expandable_card': function () {
|
|
4407
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
4408
|
-
function () { return factories['io.flow.payment.v0.models.card'](); },
|
|
4409
|
-
function () { return factories['io.flow.payment.v0.models.card_reference'](); },
|
|
4410
|
-
function () { return factories['io.flow.payment.v0.models.card_summary'](); },
|
|
4411
|
-
function () { return factories['io.flow.payment.v0.models.external_card'](); },
|
|
4412
|
-
]);
|
|
4413
|
-
return f();
|
|
4414
|
-
},
|
|
4415
|
-
'io.flow.payment.v0.unions.expandable_payment_processor': function () {
|
|
4416
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
4417
|
-
function () { return factories['io.flow.payment.v0.models.payment_processor'](); },
|
|
4418
|
-
function () { return factories['io.flow.payment.v0.models.payment_processor_reference'](); },
|
|
4419
|
-
]);
|
|
4420
|
-
return f();
|
|
4421
|
-
},
|
|
4422
|
-
'io.flow.payment.v0.unions.gateway_authentication_data': function () {
|
|
4423
|
-
var f = faker_1.default.helpers.arrayElement([function () { return factories['io.flow.payment.v0.models.stripe_authentication_data'](); }]);
|
|
4424
|
-
return f();
|
|
4425
|
-
},
|
|
4426
|
-
'io.flow.payment.v0.unions.gateway_authentication_data_form': function () {
|
|
4427
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
4428
|
-
function () { return factories['io.flow.payment.v0.models.stripe_authentication_data_form'](); },
|
|
4429
|
-
]);
|
|
4430
|
-
return f();
|
|
4431
|
-
},
|
|
4432
|
-
'io.flow.payment.v0.unions.inline_action_configuration': function () {
|
|
4433
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
4434
|
-
function () { return factories['io.flow.payment.v0.models.browser_inline_action_configuration'](); },
|
|
4435
|
-
]);
|
|
4436
|
-
return f();
|
|
4437
|
-
},
|
|
4438
|
-
'io.flow.payment.v0.unions.online_authorization_details': function () {
|
|
4439
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
4440
|
-
function () { return factories['io.flow.payment.v0.models.cryptopay_authorization_details'](); },
|
|
4441
|
-
function () { return factories['io.flow.payment.v0.models.paypal_authorization_details'](); },
|
|
4442
|
-
function () { return factories['io.flow.payment.v0.models.redirect_authorization_details'](); },
|
|
4443
|
-
function () { return factories['io.flow.payment.v0.models.inline_authorization_details'](); },
|
|
4444
|
-
]);
|
|
4445
|
-
return f();
|
|
4446
|
-
},
|
|
4447
|
-
'io.flow.payment.v0.unions.payment': function () {
|
|
4448
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
4449
|
-
function () { return factories['io.flow.payment.v0.models.payment_paypal'](); },
|
|
4450
|
-
function () { return factories['io.flow.payment.v0.models.payment_cryptopay'](); },
|
|
4451
|
-
]);
|
|
4452
|
-
return f();
|
|
4453
|
-
},
|
|
4454
|
-
'io.flow.payment.v0.unions.payment_form': function () {
|
|
4455
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
4456
|
-
function () { return factories['io.flow.payment.v0.models.merchant_of_record_payment_form'](); },
|
|
4457
|
-
]);
|
|
4458
|
-
return f();
|
|
4459
|
-
},
|
|
4460
|
-
'io.flow.payment.v0.unions.payment_order_reference': function () {
|
|
4461
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
4462
|
-
function () { return factories['io.flow.payment.v0.models.authorization_order_reference'](); },
|
|
4463
|
-
function () { return factories['io.flow.payment.v0.models.payment_payment_request_reference'](); },
|
|
4464
|
-
]);
|
|
4465
|
-
return f();
|
|
4466
|
-
},
|
|
4467
|
-
'io.flow.payment.v0.unions.payment_processor_transaction_details': function () {
|
|
4468
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
4469
|
-
function () { return factories['io.flow.payment.v0.models.payment_processor_transaction_details_card'](); },
|
|
4470
|
-
function () { return factories['io.flow.payment.v0.models.payment_processor_transaction_details_apm'](); },
|
|
4471
|
-
]);
|
|
4472
|
-
return f();
|
|
4473
|
-
},
|
|
4474
|
-
'io.flow.payment.v0.unions.payment_source': function () {
|
|
4475
|
-
var f = faker_1.default.helpers.arrayElement([function () { return factories['io.flow.payment.v0.models.card_payment_source'](); }]);
|
|
4476
|
-
return f();
|
|
4477
|
-
},
|
|
4478
|
-
'io.flow.payment.v0.unions.payment_source_form': function () {
|
|
4479
|
-
var f = faker_1.default.helpers.arrayElement([function () { return factories['io.flow.payment.v0.models.card_payment_source_form'](); }]);
|
|
4480
|
-
return f();
|
|
4481
|
-
},
|
|
4482
|
-
'io.flow.payment.v0.unions.threeds_challenge_action': function () {
|
|
4483
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
4484
|
-
function () { return factories['io.flow.payment.v0.models.threeds_two_challenge_request'](); },
|
|
4485
|
-
]);
|
|
4486
|
-
return f();
|
|
4487
|
-
},
|
|
4488
|
-
'io.flow.payment.v0.unions.threeds_identify_action': function () {
|
|
4489
|
-
var f = faker_1.default.helpers.arrayElement([function () { return factories['io.flow.payment.v0.models.threeds_two_method'](); }]);
|
|
4490
|
-
return f();
|
|
4491
|
-
},
|
|
4492
|
-
'io.flow.payment.v0.unions.transaction_details': function () {
|
|
4493
|
-
var f = faker_1.default.helpers.arrayElement([function () { return factories['io.flow.payment.v0.models.transaction_details_card'](); }]);
|
|
4494
|
-
return f();
|
|
4495
|
-
},
|
|
4496
|
-
'io.flow.payment.v0.unions.transfer_reference': function () {
|
|
4497
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
4498
|
-
function () { return factories['io.flow.payment.v0.models.capture_reference'](); },
|
|
4499
|
-
function () { return factories['io.flow.payment.v0.models.refund_reference'](); },
|
|
4500
|
-
function () { return factories['io.flow.payment.v0.models.dispute_reference'](); },
|
|
4501
|
-
]);
|
|
4502
|
-
return f();
|
|
4503
|
-
},
|
|
4504
2163
|
'io.flow.permission.v0.enums.authentication_technique': function () { return faker_1.default.helpers.arrayElement(['anonymous', 'session', 'token', 'partner_token', 'user']); },
|
|
4505
2164
|
'io.flow.permission.v0.enums.flow_behavior': function () { return faker_1.default.helpers.arrayElement(['view_consumer_data']); },
|
|
4506
2165
|
'io.flow.permission.v0.enums.flow_role': function () { return faker_1.default.helpers.arrayElement([
|
|
@@ -4937,6 +2596,7 @@ var factories = {
|
|
|
4937
2596
|
]); },
|
|
4938
2597
|
'io.flow.sellability.v0.enums.sellability_request_status': function () { return faker_1.default.helpers.arrayElement(['commit']); },
|
|
4939
2598
|
'io.flow.sellability.v0.models.product_sellability': function () { return ({
|
|
2599
|
+
discriminator: 'product_sellability',
|
|
4940
2600
|
shop_id: factories.string(),
|
|
4941
2601
|
product_id: factories.string(),
|
|
4942
2602
|
request_id: factories.string(),
|
|
@@ -4958,6 +2618,7 @@ var factories = {
|
|
|
4958
2618
|
amount: factories.decimal(),
|
|
4959
2619
|
}); },
|
|
4960
2620
|
'io.flow.sellability.v0.models.sellability_error': function () { return ({
|
|
2621
|
+
discriminator: 'sellability_error',
|
|
4961
2622
|
code: factories['io.flow.sellability.v0.enums.sellability_error_code'](),
|
|
4962
2623
|
messages: arrayOf(function () { return factories.string(); }),
|
|
4963
2624
|
}); },
|
|
@@ -4965,6 +2626,13 @@ var factories = {
|
|
|
4965
2626
|
type: factories['io.flow.sellability.v0.enums.rule_effect_type'](),
|
|
4966
2627
|
regions: arrayOf(function () { return factories.string(); }),
|
|
4967
2628
|
}); },
|
|
2629
|
+
'io.flow.sellability.v0.unions.sellability_response': function () {
|
|
2630
|
+
var f = faker_1.default.helpers.arrayElement([
|
|
2631
|
+
function () { return factories['io.flow.sellability.v0.models.product_sellability'](); },
|
|
2632
|
+
function () { return factories['io.flow.sellability.v0.models.sellability_error'](); },
|
|
2633
|
+
]);
|
|
2634
|
+
return f();
|
|
2635
|
+
},
|
|
4968
2636
|
'io.flow.shopify.external.v0.enums.cancel_reason': function () { return faker_1.default.helpers.arrayElement(['customer', 'fraud', 'inventory', 'declined', 'other']); },
|
|
4969
2637
|
'io.flow.shopify.external.v0.enums.discount_status': function () { return faker_1.default.helpers.arrayElement(['enabled', 'disabled', 'depleted']); },
|
|
4970
2638
|
'io.flow.shopify.external.v0.enums.discount_type': function () { return faker_1.default.helpers.arrayElement(['fixed_amount', 'percentage', 'shipping']); },
|
|
@@ -7761,126 +5429,6 @@ var factories = {
|
|
|
7761
5429
|
'io.flow.tech.onboarding.playground.v0.models.tech_onboarding_description': function () { return ({
|
|
7762
5430
|
description: factories.string(),
|
|
7763
5431
|
}); },
|
|
7764
|
-
'io.flow.token.v0.models.channel_token': function () { return ({
|
|
7765
|
-
discriminator: 'channel_token',
|
|
7766
|
-
id: factories.string(),
|
|
7767
|
-
channel: factories['io.flow.common.v0.models.channel_reference'](),
|
|
7768
|
-
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
7769
|
-
partial: factories.string(),
|
|
7770
|
-
cleartext: factories.string(),
|
|
7771
|
-
created_at: factories.date_time_iso_8601(),
|
|
7772
|
-
description: factories.string(),
|
|
7773
|
-
}); },
|
|
7774
|
-
'io.flow.token.v0.models.channel_token_form': function () { return ({
|
|
7775
|
-
channel_id: factories.string(),
|
|
7776
|
-
description: factories.string(),
|
|
7777
|
-
}); },
|
|
7778
|
-
'io.flow.token.v0.models.channel_token_reference': function () { return ({
|
|
7779
|
-
discriminator: 'channel_token_reference',
|
|
7780
|
-
id: factories.string(),
|
|
7781
|
-
channel: factories['io.flow.common.v0.models.channel_reference'](),
|
|
7782
|
-
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
7783
|
-
}); },
|
|
7784
|
-
'io.flow.token.v0.models.cleartext': function () { return ({
|
|
7785
|
-
value: factories.string(),
|
|
7786
|
-
}); },
|
|
7787
|
-
'io.flow.token.v0.models.organization_token': function () { return ({
|
|
7788
|
-
discriminator: 'organization_token',
|
|
7789
|
-
id: factories.string(),
|
|
7790
|
-
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
7791
|
-
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
7792
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
7793
|
-
partial: factories.string(),
|
|
7794
|
-
created_at: factories.date_time_iso_8601(),
|
|
7795
|
-
description: factories.string(),
|
|
7796
|
-
}); },
|
|
7797
|
-
'io.flow.token.v0.models.organization_token_form': function () { return ({
|
|
7798
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
7799
|
-
description: factories.string(),
|
|
7800
|
-
}); },
|
|
7801
|
-
'io.flow.token.v0.models.organization_token_form_v2': function () { return ({
|
|
7802
|
-
organization_id: factories.string(),
|
|
7803
|
-
description: factories.string(),
|
|
7804
|
-
}); },
|
|
7805
|
-
'io.flow.token.v0.models.organization_token_reference': function () { return ({
|
|
7806
|
-
discriminator: 'organization_token_reference',
|
|
7807
|
-
id: factories.string(),
|
|
7808
|
-
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
7809
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
7810
|
-
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
7811
|
-
}); },
|
|
7812
|
-
'io.flow.token.v0.models.organization_token_v2': function () { return ({
|
|
7813
|
-
discriminator: 'organization_token_v2',
|
|
7814
|
-
id: factories.string(),
|
|
7815
|
-
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
7816
|
-
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
7817
|
-
partial: factories.string(),
|
|
7818
|
-
cleartext: factories.string(),
|
|
7819
|
-
created_at: factories.date_time_iso_8601(),
|
|
7820
|
-
description: factories.string(),
|
|
7821
|
-
}); },
|
|
7822
|
-
'io.flow.token.v0.models.organization_token_v2_reference': function () { return ({
|
|
7823
|
-
discriminator: 'organization_token_v2_reference',
|
|
7824
|
-
id: factories.string(),
|
|
7825
|
-
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
7826
|
-
}); },
|
|
7827
|
-
'io.flow.token.v0.models.partner_token': function () { return ({
|
|
7828
|
-
discriminator: 'partner_token',
|
|
7829
|
-
id: factories.string(),
|
|
7830
|
-
partner: factories['io.flow.token.v0.models.token_partner_reference'](),
|
|
7831
|
-
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
7832
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
7833
|
-
partial: factories.string(),
|
|
7834
|
-
created_at: factories.date_time_iso_8601(),
|
|
7835
|
-
description: factories.string(),
|
|
7836
|
-
}); },
|
|
7837
|
-
'io.flow.token.v0.models.partner_token_form': function () { return ({
|
|
7838
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
7839
|
-
description: factories.string(),
|
|
7840
|
-
}); },
|
|
7841
|
-
'io.flow.token.v0.models.partner_token_reference': function () { return ({
|
|
7842
|
-
discriminator: 'partner_token_reference',
|
|
7843
|
-
id: factories.string(),
|
|
7844
|
-
partner: factories['io.flow.token.v0.models.token_partner_reference'](),
|
|
7845
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
7846
|
-
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
7847
|
-
}); },
|
|
7848
|
-
'io.flow.token.v0.models.token_authentication_form': function () { return ({
|
|
7849
|
-
token: factories.string(),
|
|
7850
|
-
}); },
|
|
7851
|
-
'io.flow.token.v0.models.token_partner_reference': function () { return ({
|
|
7852
|
-
id: factories.string(),
|
|
7853
|
-
}); },
|
|
7854
|
-
'io.flow.token.v0.models.token_rbac_authentication_form': function () { return ({
|
|
7855
|
-
token: factories.string(),
|
|
7856
|
-
method: factories.string(),
|
|
7857
|
-
path_pattern: factories.string(),
|
|
7858
|
-
path: factories.string(),
|
|
7859
|
-
}); },
|
|
7860
|
-
'io.flow.token.v0.models.token_validation': function () { return ({
|
|
7861
|
-
status: factories.string(),
|
|
7862
|
-
}); },
|
|
7863
|
-
'io.flow.token.v0.models.token_validation_form': function () { return ({
|
|
7864
|
-
token: factories.string(),
|
|
7865
|
-
}); },
|
|
7866
|
-
'io.flow.token.v0.unions.token': function () {
|
|
7867
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
7868
|
-
function () { return factories['io.flow.token.v0.models.channel_token'](); },
|
|
7869
|
-
function () { return factories['io.flow.token.v0.models.organization_token'](); },
|
|
7870
|
-
function () { return factories['io.flow.token.v0.models.organization_token_v2'](); },
|
|
7871
|
-
function () { return factories['io.flow.token.v0.models.partner_token'](); },
|
|
7872
|
-
]);
|
|
7873
|
-
return f();
|
|
7874
|
-
},
|
|
7875
|
-
'io.flow.token.v0.unions.token_reference': function () {
|
|
7876
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
7877
|
-
function () { return factories['io.flow.token.v0.models.channel_token_reference'](); },
|
|
7878
|
-
function () { return factories['io.flow.token.v0.models.organization_token_reference'](); },
|
|
7879
|
-
function () { return factories['io.flow.token.v0.models.organization_token_v2_reference'](); },
|
|
7880
|
-
function () { return factories['io.flow.token.v0.models.partner_token_reference'](); },
|
|
7881
|
-
]);
|
|
7882
|
-
return f();
|
|
7883
|
-
},
|
|
7884
5432
|
'io.flow.v0.enums.abandoned_order_promotion_status': function () { return faker_1.default.helpers.arrayElement(['active', 'inactive']); },
|
|
7885
5433
|
'io.flow.v0.enums.abandoned_order_setting_status': function () { return faker_1.default.helpers.arrayElement(['active', 'inactive']); },
|
|
7886
5434
|
'io.flow.v0.enums.address_field_name': function () { return faker_1.default.helpers.arrayElement([
|
|
@@ -8284,6 +5832,7 @@ var factories = {
|
|
|
8284
5832
|
'rate_lock',
|
|
8285
5833
|
'transfer',
|
|
8286
5834
|
'negative_balance_guarantee',
|
|
5835
|
+
'sp',
|
|
8287
5836
|
]); },
|
|
8288
5837
|
'io.flow.v0.enums.flow_behavior': function () { return faker_1.default.helpers.arrayElement(['view_consumer_data']); },
|
|
8289
5838
|
'io.flow.v0.enums.flow_entity': function () { return faker_1.default.helpers.arrayElement(['flow-usa', 'flow-irl', 'flow-can', 'ge-usa']); },
|
|
@@ -8554,7 +6103,7 @@ var factories = {
|
|
|
8554
6103
|
'error',
|
|
8555
6104
|
'payment_checks_declined',
|
|
8556
6105
|
]); },
|
|
8557
|
-
'io.flow.v0.enums.payment_fee_type': function () { return faker_1.default.helpers.arrayElement(['fx', 'mor']); },
|
|
6106
|
+
'io.flow.v0.enums.payment_fee_type': function () { return faker_1.default.helpers.arrayElement(['fx', 'mor', 'sp']); },
|
|
8558
6107
|
'io.flow.v0.enums.payment_method_capability': function () { return faker_1.default.helpers.arrayElement(['credit', 'debit']); },
|
|
8559
6108
|
'io.flow.v0.enums.payment_method_data_option_type': function () { return faker_1.default.helpers.arrayElement(['ideal_issuer_option']); },
|
|
8560
6109
|
'io.flow.v0.enums.payment_method_rule_content_key': function () { return faker_1.default.helpers.arrayElement(['description']); },
|
|
@@ -8836,13 +6385,16 @@ var factories = {
|
|
|
8836
6385
|
'io.flow.v0.enums.surcharge_responsible_party': function () { return faker_1.default.helpers.arrayElement(['organization', 'customer']); },
|
|
8837
6386
|
'io.flow.v0.enums.tax_applicability': function () { return faker_1.default.helpers.arrayElement(['none', 'all']); },
|
|
8838
6387
|
'io.flow.v0.enums.tax_duty_transaction_reason_code': function () { return faker_1.default.helpers.arrayElement([
|
|
6388
|
+
'post_capture',
|
|
6389
|
+
'post_fulfilment',
|
|
6390
|
+
'manual_payment_or_gift_card',
|
|
8839
6391
|
'order_edit',
|
|
8840
|
-
'order_acceptance',
|
|
8841
6392
|
'mixed_fulfilment_non_lvg',
|
|
8842
6393
|
'lvg_refund',
|
|
8843
6394
|
'order_cancellation_above_de_min',
|
|
8844
6395
|
'wyol_shipment_above_de_min',
|
|
8845
6396
|
'full_refund_without_shipment',
|
|
6397
|
+
'unfulfilled_order_above_de_min',
|
|
8846
6398
|
]); },
|
|
8847
6399
|
'io.flow.v0.enums.tax_report_type': function () { return faker_1.default.helpers.arrayElement(['consumer', 'b2b']); },
|
|
8848
6400
|
'io.flow.v0.enums.tax_verification_result': function () { return faker_1.default.helpers.arrayElement(['valid', 'invalid', 'unable_to_validate']); },
|
|
@@ -15030,6 +12582,8 @@ var factories = {
|
|
|
15030
12582
|
amount: factories['io.flow.v0.models.money'](),
|
|
15031
12583
|
starts_at: factories.date_time_iso_8601(),
|
|
15032
12584
|
ends_at: factories.date_time_iso_8601(),
|
|
12585
|
+
regions: arrayOf(function () { return factories.string(); }),
|
|
12586
|
+
dependent_service_fees: arrayOf(function () { return factories.string(); }),
|
|
15033
12587
|
}); },
|
|
15034
12588
|
'io.flow.v0.models.pending_payout_transaction_reason': function () { return ({
|
|
15035
12589
|
code: factories['io.flow.v0.enums.pending_payout_transaction_reason_code'](),
|
|
@@ -15595,6 +13149,10 @@ var factories = {
|
|
|
15595
13149
|
rate_level_key: factories.string(),
|
|
15596
13150
|
line_items: arrayOf(function () { return factories['io.flow.v0.models.line_item_form'](); }),
|
|
15597
13151
|
}); },
|
|
13152
|
+
'io.flow.v0.models.ratecard_fee_summary': function () { return ({
|
|
13153
|
+
ratecard_fee: factories['io.flow.v0.unions.ratecard_fee'](),
|
|
13154
|
+
source_service_fees: arrayOf(function () { return factories.string(); }),
|
|
13155
|
+
}); },
|
|
15598
13156
|
'io.flow.v0.models.ratecard_form': function () { return ({
|
|
15599
13157
|
direction: factories['io.flow.v0.enums.direction'](),
|
|
15600
13158
|
effective_at: factories.date_time_iso_8601(),
|
|
@@ -21368,6 +18926,8 @@ var makeRatecardEstimateV4 = function () { return factories['io.flow.v0.models.r
|
|
|
21368
18926
|
exports.makeRatecardEstimateV4 = makeRatecardEstimateV4;
|
|
21369
18927
|
var makeRatecardFee = function () { return factories['io.flow.v0.unions.ratecard_fee'](); };
|
|
21370
18928
|
exports.makeRatecardFee = makeRatecardFee;
|
|
18929
|
+
var makeRatecardFeeSummary = function () { return factories['io.flow.v0.models.ratecard_fee_summary'](); };
|
|
18930
|
+
exports.makeRatecardFeeSummary = makeRatecardFeeSummary;
|
|
21371
18931
|
var makeRatecardForm = function () { return factories['io.flow.v0.models.ratecard_form'](); };
|
|
21372
18932
|
exports.makeRatecardForm = makeRatecardForm;
|
|
21373
18933
|
var makeRatecardLane = function () { return factories['io.flow.v0.models.ratecard_lane'](); };
|