@flowio/api-factories 0.0.64 → 0.0.66
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 +217 -25
- package/dist/esm/api.js +194 -13
- package/dist/types/api.d.ts +12 -1
- package/package.json +2 -2
- package/src/api.ts +221 -15
package/dist/cjs/api.js
CHANGED
|
@@ -26,18 +26,18 @@ exports.makeOrganizationAuthorizationForm = exports.makeOrganizationAuthorizatio
|
|
|
26
26
|
exports.makePartnerCenterFee = exports.makePartnerCenter = exports.makeParentTransactionSummary = exports.makePackaging = exports.makePackageDimensionsSource = exports.makePackageDimensionsForm = exports.makePackageDimensions = exports.makeOversizePieceSurchargeServiceFee = exports.makeOversizePieceSurchargeRatecardFee = exports.makeOutboundCartonFee = exports.makeOriginalPrices = exports.makeOrganizationVersion = exports.makeOrganizationUpsertedV2 = exports.makeOrganizationUpserted = exports.makeOrganizationType = exports.makeOrganizationTransactionUpserted = exports.makeOrganizationTransactionPayout = exports.makeOrganizationTransactionDeleted = exports.makeOrganizationTokenV2Reference = exports.makeOrganizationTokenV2 = exports.makeOrganizationTokenReference = exports.makeOrganizationTokenFormV2 = exports.makeOrganizationTokenForm = exports.makeOrganizationToken = exports.makeOrganizationSummary = exports.makeOrganizationStatus = exports.makeOrganizationSessionAuthorization = exports.makeOrganizationSession = exports.makeOrganizationReference = exports.makeOrganizationRatesPublished = exports.makeOrganizationRatesData = exports.makeOrganizationPutForm = exports.makeOrganizationPayoutUpserted = exports.makeOrganizationPayoutDeleted = exports.makeOrganizationPayout = exports.makeOrganizationPaymentMethodTag = exports.makeOrganizationOnboardingStateUpserted = exports.makeOrganizationOnboardingStateDeleted = exports.makeOrganizationOnboardingState = exports.makeOrganizationForm = exports.makeOrganizationDeletedV2 = exports.makeOrganizationDeleted = exports.makeOrganizationDefaults = exports.makeOrganizationDefaultConfigurationsUpserted = exports.makeOrganizationDefaultConfigurationsForm = exports.makeOrganizationDefaultConfigurationsDeleted = exports.makeOrganizationDefaultConfigurations = exports.makeOrganizationDefaultBankAccount = exports.makeOrganizationConfigurationReference = exports.makeOrganizationBankAccount = void 0;
|
|
27
27
|
exports.makePaymentMethodDataAuthorizeKlarna = exports.makePaymentMethodDataAuthorizeGooglepay = exports.makePaymentMethodDataAuthorizeCard = exports.makePaymentMethodDataAuthorizeApplepayResultSuccess = exports.makePaymentMethodDataAuthorizeApplepayResultFailure = exports.makePaymentMethodDataAuthorizeApplepayResult = exports.makePaymentMethodDataAuthorizeApplepay = exports.makePaymentMethodData = exports.makePaymentMethodCardToken = exports.makePaymentMethodCardPciDetails = exports.makePaymentMethodCardNumberCleartext = exports.makePaymentMethodCardNumberCipher = exports.makePaymentMethodCard = exports.makePaymentMethodCapability = exports.makePaymentMethodBrand = exports.makePaymentMethodActionCancellation = exports.makePaymentMethod = exports.makePaymentInformation = exports.makePaymentForm = exports.makePaymentFailureCode = exports.makePaymentFailure = exports.makePaymentErrorCode = exports.makePaymentError = exports.makePaymentDuty = exports.makePaymentDiscount = exports.makePaymentDeleted = exports.makePaymentCryptopay = exports.makePaymentContactShipping = exports.makePaymentContactBilling = exports.makePaymentCaptureStatus = exports.makePaymentCaptureOptionManual = exports.makePaymentCaptureOptionAutomaticImmediate = exports.makePaymentCaptureOption = exports.makePaymentCaptureForm = exports.makePaymentCapture = exports.makePaymentAuthorizationStatus = exports.makePaymentAuthorization = exports.makePaymentAddressShipping = exports.makePaymentAddressBilling = exports.makePaymentAddress = exports.makePaymentActionType = exports.makePayment = exports.makePasswordResetRequestForm = exports.makePasswordResetForm = exports.makePasswordChangeForm = exports.makePartnerTokenReference = exports.makePartnerTokenForm = exports.makePartnerToken = exports.makePartnerReference = exports.makePartnerCenterForm = void 0;
|
|
28
28
|
exports.makePaymentProcessorReference = exports.makePaymentProcessorIdentifier = exports.makePaymentProcessorAccountReference = exports.makePaymentProcessorAccount = exports.makePaymentProcessor = exports.makePaymentPaypal = exports.makePaymentPaymentRequestReference = exports.makePaymentPaymentMethod = exports.makePaymentOrderReference = exports.makePaymentOrderDetailsLineItem = exports.makePaymentMethodType = exports.makePaymentMethodTag = exports.makePaymentMethodSummarySofort = exports.makePaymentMethodSummaryPaypal = exports.makePaymentMethodSummaryKlarna = exports.makePaymentMethodSummaryIdeal = exports.makePaymentMethodSummaryGooglepay = exports.makePaymentMethodSummaryCard = exports.makePaymentMethodSummaryBancontact = exports.makePaymentMethodSummaryApplepay = exports.makePaymentMethodSummaryAfterpay = exports.makePaymentMethodSummary = exports.makePaymentMethodStoredDetailsCardSubsequent = exports.makePaymentMethodStoredDetailsCardInitial = exports.makePaymentMethodStoredDetailsCard = exports.makePaymentMethodRuleContentKey = exports.makePaymentMethodRuleContent = exports.makePaymentMethodRule = exports.makePaymentMethodIssuer = exports.makePaymentMethodImages = exports.makePaymentMethodImage = exports.makePaymentMethodDataValidateApplepay = exports.makePaymentMethodDataSelectedPaymentOption = exports.makePaymentMethodDataPaymentOption = exports.makePaymentMethodDataOptionType = exports.makePaymentMethodDataOptionLogoSvg = exports.makePaymentMethodDataOptionLogo = exports.makePaymentMethodDataInitSofort = exports.makePaymentMethodDataInitPaypal = exports.makePaymentMethodDataInitKlarna = exports.makePaymentMethodDataInitIdeal = exports.makePaymentMethodDataInitGooglepay = exports.makePaymentMethodDataInitBancontact = exports.makePaymentMethodDataInitApplepay = exports.makePaymentMethodDataInitAfterpay = exports.makePaymentMethodDataCompleteAuthorizationCard = exports.makePaymentMethodDataAuthorizePaypal = exports.makePaymentMethodDataAuthorizeKlarnaResultSuccess = exports.makePaymentMethodDataAuthorizeKlarnaResultFailure = exports.makePaymentMethodDataAuthorizeKlarnaResult = void 0;
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.makeZone = exports.makeZeroLevyReasonCode = exports.makeZeroAmountIndicator = exports.makeWithholdingDeductionType = exports.makeWithholdingDeduction = exports.makeWebhookStatus = exports.makeWebhookSettings = exports.makeWebhookResponse = exports.makeWebhookRequestReference = exports.makeWebhookRequest = void 0;
|
|
29
|
+
exports.makePermittedRoute = exports.makePermittedHttpMethod = exports.makePermissionCheck = exports.makePermissionAudit = exports.makePercentMargin = exports.makePendingTransaction = exports.makePeakSurchargeServiceFee = exports.makePeakSurchargeRatecardFee = exports.makePeakSurchargeByWeightServiceFee = exports.makePaypalAuthorizationForm = exports.makePaypalAuthorizationDetails = exports.makePayoutTransaction = exports.makePayoutStatusSent = 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.makePaymentRequestBundleForm = exports.makePaymentRequestBundle = exports.makePaymentRequestBillingFees = exports.makePaymentRequestBilling = exports.makePaymentRequest = exports.makePaymentRefundStatus = exports.makePaymentRefundForm = exports.makePaymentRefund = exports.makePaymentReference = void 0;
|
|
30
|
+
exports.makeProductRestrictionResultDeleted = exports.makeProductRestrictionResult = exports.makeProcessingEstimate = exports.makePricingVersion = exports.makePricingUpserted = exports.makePricingSettings = exports.makePricingLevySetting = exports.makePricingDeleted = exports.makePricing = exports.makePriceWithBaseAndDetails = exports.makePriceWithBase = exports.makePriceSourceProvided = exports.makePriceSourcePriceBookReference = exports.makePriceSourcePriceBook = exports.makePriceSourceCatalog = exports.makePriceSource = exports.makePriceForm = exports.makePriceFacetBoundary = exports.makePriceEquation = exports.makePriceDetails = exports.makePriceDetailKey = exports.makePriceDetailComponentKey = exports.makePriceDetailComponent = exports.makePriceDetail = exports.makePriceCheck = exports.makePriceBookUpserted = exports.makePriceBookStatus = exports.makePriceBookReference = exports.makePriceBookItemUpserted = exports.makePriceBookItemSchedule = exports.makePriceBookItemQueryForm = exports.makePriceBookItemForm = exports.makePriceBookItemExportType = exports.makePriceBookItemExportOptions = exports.makePriceBookItemDeleted = exports.makePriceBookItem = exports.makePriceBookForm = exports.makePriceBookDeleted = exports.makePriceBook = exports.makePriceAccuracy = exports.makePrice = exports.makePreferredServiceSelectionStrategy = exports.makePostalType = exports.makePostPaymentRedirectUrls = exports.makePhysicalDeliverySpecialSerivce = exports.makePhysicalDeliveryPreferredService = exports.makePhysicalDelivery = exports.makePfsInventoryStatus = exports.makePfsInventoryCheckResponseItem = exports.makePfsInventoryCheckResponse = void 0;
|
|
31
|
+
exports.makeRatecardLaneImportForm = exports.makeRatecardLaneForm = exports.makeRatecardLaneDeleted = exports.makeRatecardLane = exports.makeRatecardForm = exports.makeRatecardFee = exports.makeRatecardEstimateV4 = exports.makeRatecardEstimateV3 = exports.makeRatecardEstimateV2 = exports.makeRatecardEstimateV1 = exports.makeRatecardEstimateSummaryForm = exports.makeRatecardEstimateForm = exports.makeRatecardEstimate = exports.makeRatecardDeleted = exports.makeRatecardCarrierSummary = exports.makeRatecard = exports.makeRateVersion = exports.makeRateUpsertedV3 = exports.makeRateUpserted = exports.makeRateForm = exports.makeRateDeletedV3 = 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.makeProductRestrictionResultUpserted = void 0;
|
|
32
|
+
exports.makeReservationForm = exports.makeReservationError = exports.makeReservation = exports.makeRepeatWeekly = exports.makeRepeatSchedule = exports.makeRepeatMonthly = exports.makeRepeatHourly = exports.makeRepeatDaily = exports.makeRemoteAreaServiceFee = exports.makeRemoteAreaRatecardFee = exports.makeRegionType = exports.makeRegionSettingForm = exports.makeRegionSetting = exports.makeRegionReference = exports.makeRegion = exports.makeRefundVersion = exports.makeRefundUpsertedV2 = exports.makeRefundStatus = exports.makeRefundReference = exports.makeRefundOrderSummaryAmounts = exports.makeRefundOrderSummary = exports.makeRefundIdentifierUpserted = exports.makeRefundIdentifierDeleted = exports.makeRefundIdentifier = exports.makeRefundForm = exports.makeRefundError = exports.makeRefundDeletedV2 = exports.makeRefundDeclineCode = exports.makeRefundCaptureUpsertedV2 = exports.makeRefundCaptureSummary = exports.makeRefundCapture = exports.makeRefund = exports.makeRedirectAuthorizationForm = exports.makeRedirectAuthorizationDetails = exports.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 = void 0;
|
|
33
|
+
exports.makeScheduleExceptionStatus = exports.makeSchedule = exports.makeRuleUpserted = exports.makeRuleDeleted = exports.makeRouteAudit = exports.makeRoundingType = exports.makeRoundingMethod = exports.makeRounding = exports.makeRomanizationForm = exports.makeRomanization = exports.makeRole = exports.makeReversalVersion = exports.makeReversalUpserted = exports.makeReversalStatus = exports.makeReversalPutForm = exports.makeReversalForm = exports.makeReversalErrorCode = exports.makeReversalError = exports.makeReversalDeleted = exports.makeReversal = exports.makeReturnVersion = exports.makeReturnUpsertedV2 = exports.makeReturnUpserted = exports.makeReturnTrackingStatus = exports.makeReturnStatus = exports.makeReturnSourceFlow = exports.makeReturnSourceExternalVendor = exports.makeReturnSource = exports.makeReturnReasonPutForm = exports.makeReturnReasonForm = exports.makeReturnReason = exports.makeReturnPolicyVersion = exports.makeReturnPolicyStatistic = exports.makeReturnPolicyState = exports.makeReturnPolicyItemResult = exports.makeReturnPolicyForm = exports.makeReturnPolicy = exports.makeReturnPackageRatecardFee = exports.makeReturnOrderReference = exports.makeReturnLineItem = exports.makeReturnItemStatus = exports.makeReturnItemReference = exports.makeReturnForm = exports.makeReturnDeletedV2 = exports.makeReturnDeleted = exports.makeReturn = exports.makeReservationOrderReference = exports.makeReservationItemReference = exports.makeReservationItemForm = exports.makeReservationItem = void 0;
|
|
34
|
+
exports.makeShippingConfigurationReference = exports.makeShippingConfigurationItemShippingPricingUpserted = exports.makeShippingConfigurationItemShippingPricingDeleted = exports.makeShippingConfigurationItemShippingPricing = exports.makeShippingConfigurationItemAvailabilityUpserted = exports.makeShippingConfigurationItemAvailabilityDeleted = exports.makeShippingConfigurationItemAvailability = exports.makeShippingConfigurationForm = exports.makeShippingConfigurationDeleted = exports.makeShippingConfigurationCopyForm = exports.makeShippingConfigurationCopy = exports.makeShippingConfiguration = exports.makeShippingAddress = exports.makeShipping = exports.makeShipmentWindow = exports.makeShipmentRecipient = exports.makeShipmentIntegrationType = exports.makeSetupInProgress = exports.makeSetupCompleted = exports.makeSetupBlocked = exports.makeSettlementPayout = exports.makeSettlementNoPayout = exports.makeSettlement = exports.makeSessionVisitor = exports.makeSessionVisit = exports.makeSessionReference = exports.makeSessionPutForm = exports.makeSessionGeo = exports.makeSessionFormat = exports.makeSessionForm = exports.makeSessionExpirationConfig = exports.makeSessionExperimentVariantForm = exports.makeSessionExperimentVariant = exports.makeSessionExperimentForm = exports.makeSessionExperiment = exports.makeSessionCurrencyFormat = exports.makeSessionContextExperiment = exports.makeSessionAuthorizationForm = exports.makeSessionAuthorization = exports.makeSession = exports.makeServiceUnknown = exports.makeServiceSummary = exports.makeServiceReference = exports.makeServiceFee = exports.makeServiceDescription = exports.makeSelectIssuerOptionActionDetails = exports.makeSdkAdyenV3AuthenticationToken = exports.makeScheduledPickup = exports.makeScheduledExportForm = exports.makeScheduledExport = void 0;
|
|
35
|
+
exports.makeShopifyLocalizedOrder = exports.makeShopifyLocalizationSettingUpserted = exports.makeShopifyLocalizationSettingForm = exports.makeShopifyLocalizationSettingDeleted = exports.makeShopifyLocalizationSetting = exports.makeShopifyLocalizationMethod = exports.makeShopifyLocalPriceMetadata = exports.makeShopifyLocalCartMetadata = exports.makeShopifyLocalCartItemMetadata = exports.makeShopifyLine = exports.makeShopifyItemEventData = exports.makeShopifyItemEventBucket = exports.makeShopifyGrant = exports.makeShopifyEventBucket = exports.makeShopifyCustomerMetafieldValue = exports.makeShopifyCartItem = exports.makeShopifyCartConversionShopifyCart = exports.makeShopifyCartConversionFlowOrder = exports.makeShopifyCartConversion = exports.makeShopifyCartChangeForm = exports.makeShopifyCartAddSingleForm = exports.makeShopifyCartAddMultipleForm = exports.makeShopifyCartAddForm = exports.makeShopifyCart = exports.makeShop = exports.makeShippingNotificationVersion = exports.makeShippingNotificationForm = exports.makeShippingNotification = exports.makeShippingLaneVersion = exports.makeShippingLaneUpserted = exports.makeShippingLaneSummary = exports.makeShippingLaneForm = exports.makeShippingLaneDeleted = exports.makeShippingLaneDefaultTierForm = exports.makeShippingLaneDefaultTier = exports.makeShippingLane = exports.makeShippingLabelVersion = exports.makeShippingLabelSummary = exports.makeShippingLabelRatecardSummary = exports.makeShippingLabelPackage = exports.makeShippingLabelLaneSummary = exports.makeShippingLabelHopSummary = exports.makeShippingLabelHopCostItemizedEstimate = exports.makeShippingLabelForm = exports.makeShippingLabelDocument = exports.makeShippingLabel = exports.makeShippingConfigurationVersion = exports.makeShippingConfigurationUpserted = exports.makeShippingConfigurationType = exports.makeShippingConfigurationSummary = void 0;
|
|
36
|
+
exports.makeSubcatalogStatistics = exports.makeSubcatalogSettingsForm = exports.makeSubcatalogSettings = exports.makeSubcatalogReference = exports.makeSubcatalogItemVersion = exports.makeSubcatalogItemUpserted = exports.makeSubcatalogItemStatus = exports.makeSubcatalogItemDeleted = exports.makeSubcatalogItem = exports.makeSubcatalogForm = exports.makeSubcatalogDeleted = exports.makeSubcatalog = exports.makeStripeAuthorizationResultActionDetails = exports.makeStripeAuthenticationDataForm = exports.makeStripeAuthenticationData = exports.makeStreetAddress = exports.makeStrategy = exports.makeStoredMethodUsageStep = exports.makeStatementUpserted = exports.makeStatementDeleted = exports.makeStatementAttachmentType = exports.makeStatement = exports.makeSortDirection = exports.makeSolidusVariantExportType = exports.makeSolidusProductExportType = exports.makeSnapshotUpserted = exports.makeSnapshotDeleted = exports.makeSinglePackageShippingNotificationForm = 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 = void 0;
|
|
37
|
+
exports.makeThreedsChallengeAction = exports.makeThreeDSecureCode = exports.makeThreeDSecure = exports.makeThirdPartyLogisticsPartner = exports.makeTestUpserted = exports.makeTaxabilityValue = exports.makeTaxabilityType = exports.makeTaxVerificationResult = exports.makeTaxSetting = exports.makeTaxReportType = exports.makeTaxReport = exports.makeTaxRegistrationForm = exports.makeTaxRegistration = exports.makeTaxDutyQuoteValues = exports.makeTaxDutyQuoteSimpleShippingForm = exports.makeTaxDutyQuoteSimpleShipping = exports.makeTaxDutyQuoteSimpleLevyValue = exports.makeTaxDutyQuoteLineItemForm = exports.makeTaxDutyQuoteLineItem = exports.makeTaxDutyQuoteLevyValue = exports.makeTaxDutyQuoteForm = exports.makeTaxDutyQuoteFeeValue = exports.makeTaxDutyQuote = exports.makeTaxDutyCalculatorValidationErrorCode = exports.makeTaxDutyCalculatorValidationError = exports.makeTaxApplicability = exports.makeTax = exports.makeSyncUnitOfTime = exports.makeSyncStreamType = exports.makeSyncStreamSettingsForm = exports.makeSyncStreamSettings = exports.makeSyncStreamReference = exports.makeSyncStreamForm = exports.makeSyncStream = exports.makeSyncRecordForm = exports.makeSyncRecordFailureReason = exports.makeSyncRecordFailureForm = exports.makeSyncRecordFailure = exports.makeSyncRecord = exports.makeSyncPendingRecord = exports.makeSyncDuration = exports.makeSurchargeSettingDisplay = exports.makeSurchargeSetting = exports.makeSurchargeResponsiblePartyDisplay = exports.makeSurchargeResponsibleParty = exports.makeSummaryShippingNotificationForm = exports.makeSummaryShippingLabelForm = exports.makeSuggestion = exports.makeSubcatalogVersion = exports.makeSubcatalogUpserted = void 0;
|
|
38
|
+
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 = 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 = void 0;
|
|
39
|
+
exports.makeVirtualCardForm = exports.makeVirtualCardCaptureVersion = exports.makeVirtualCardCaptureUpserted = exports.makeVirtualCardCaptureDeleted = exports.makeVirtualCardCapture = exports.makeVirtualCard = exports.makeValueThresholdExceededDetails = exports.makeValueAddedService = exports.makeUserVersion = exports.makeUserStatus = exports.makeUserReference = exports.makeUserPutForm = exports.makeUserForm = exports.makeUser = exports.makeUpload = exports.makeUpdateType = exports.makeUpdatePolicy = exports.makeUnitOfWeight = exports.makeUnitOfVolume = exports.makeUnitOfTime = exports.makeUnitOfMeasurement = exports.makeUnitOfLength = exports.makeUnharmonizedItemExportType = exports.makeUltimateBeneficiaryOwner = exports.makeTrueupSurchargeType = exports.makeTrueupSource = exports.makeTrueupLabelUnits = exports.makeTrueupLabelSurcharge = exports.makeTrueupLabelBase = exports.makeTransitWindow = exports.makeTransitEstimate = exports.makeTransactionUpserted = exports.makeTransactionSource = exports.makeTransactionReference = exports.makeTransactionPayoutPendingReason = exports.makeTransactionNetworkDetailsCard = exports.makeTransactionMetadataTrueupData = exports.makeTransactionMetadataTrueup = exports.makeTransactionMetadataShippingLabel = exports.makeTransactionMetadataChannelCardMetadataIssuerSummary = exports.makeTransactionMetadataChannelCardMetadata = exports.makeTransactionMetadataChannel = exports.makeTransactionMetadata = exports.makeTransactionDetailsCard = exports.makeTransactionDetails = exports.makeTransaction = exports.makeTradeAgreementStatus = exports.makeTradeAgreementName = exports.makeTradeAgreementDuty = exports.makeTradeAgreementCertifier = void 0;
|
|
40
|
+
exports.makeZone = exports.makeZeroLevyReasonCode = exports.makeZeroAmountIndicator = exports.makeWithholdingDeductionType = exports.makeWithholdingDeduction = exports.makeWebhookStatus = exports.makeWebhookSettings = exports.makeWebhookResponse = exports.makeWebhookRequestReference = exports.makeWebhookRequest = exports.makeWebhookReference = exports.makeWebhookForm = exports.makeWebhookDelivery = exports.makeWebhook = exports.makeVisibility = exports.makeVirtualCardVersion = exports.makeVirtualCardRefundVersion = exports.makeVirtualCardRefundUpserted = exports.makeVirtualCardRefundDeleted = exports.makeVirtualCardRefund = exports.makeVirtualCardReference = void 0;
|
|
41
41
|
var faker_1 = __importDefault(require("@faker-js/faker"));
|
|
42
42
|
var arrayOf = function (f) {
|
|
43
43
|
var length = 3;
|
|
@@ -65,10 +65,10 @@ var factories = {
|
|
|
65
65
|
string: function () { return faker_1.default.datatype.string(); },
|
|
66
66
|
unit: function () { return undefined; },
|
|
67
67
|
uuid: function () { return faker_1.default.datatype.uuid(); },
|
|
68
|
-
'io.flow.apple.pay.v0.enums.apple_pay_contact_field': function () { return faker_1.default.helpers.arrayElement(['email', 'name', 'phone', '
|
|
68
|
+
'io.flow.apple.pay.v0.enums.apple_pay_contact_field': function () { return faker_1.default.helpers.arrayElement(['email', 'name', 'phone', 'postal_address', 'phonetic_name']); },
|
|
69
69
|
'io.flow.apple.pay.v0.enums.apple_pay_line_item_type': function () { return faker_1.default.helpers.arrayElement(['final', 'pending']); },
|
|
70
70
|
'io.flow.apple.pay.v0.enums.apple_pay_merchant_capability': function () { return faker_1.default.helpers.arrayElement(['supports3DS', 'supportsCredit', 'supportsDebit', 'supportsEMV']); },
|
|
71
|
-
'io.flow.apple.pay.v0.enums.apple_pay_shipping_type': function () { return faker_1.default.helpers.arrayElement(['shipping', 'delivery', '
|
|
71
|
+
'io.flow.apple.pay.v0.enums.apple_pay_shipping_type': function () { return faker_1.default.helpers.arrayElement(['shipping', 'delivery', 'store_pickup', 'service_pickup']); },
|
|
72
72
|
'io.flow.apple.pay.v0.enums.apple_pay_supported_networks': function () { return faker_1.default.helpers.arrayElement([
|
|
73
73
|
'amex',
|
|
74
74
|
'chinaUnionPay',
|
|
@@ -81,7 +81,7 @@ var factories = {
|
|
|
81
81
|
'io.flow.apple.pay.v0.models.apple_pay_line_item': function () { return ({
|
|
82
82
|
label: factories.string(),
|
|
83
83
|
type: factories['io.flow.apple.pay.v0.enums.apple_pay_line_item_type'](),
|
|
84
|
-
amount: factories.
|
|
84
|
+
amount: factories.decimal(),
|
|
85
85
|
}); },
|
|
86
86
|
'io.flow.apple.pay.v0.models.apple_pay_payment_contact': function () { return ({
|
|
87
87
|
email_address: factories.string(),
|
|
@@ -128,7 +128,7 @@ var factories = {
|
|
|
128
128
|
'io.flow.apple.pay.v0.models.apple_pay_shipping_method': function () { return ({
|
|
129
129
|
label: factories.string(),
|
|
130
130
|
detail: factories.string(),
|
|
131
|
-
amount: factories.
|
|
131
|
+
amount: factories.decimal(),
|
|
132
132
|
identifier: factories.string(),
|
|
133
133
|
}); },
|
|
134
134
|
'io.flow.ben.test.internal.v0.models.generate_load_multiple_orgs': function () { return ({
|
|
@@ -155,8 +155,15 @@ var factories = {
|
|
|
155
155
|
]);
|
|
156
156
|
return f();
|
|
157
157
|
},
|
|
158
|
-
'io.flow.billing.true.up.v0.enums.true_up_surcharge_type': function () { return faker_1.default.helpers.arrayElement([
|
|
159
|
-
|
|
158
|
+
'io.flow.billing.true.up.v0.enums.true_up_surcharge_type': function () { return faker_1.default.helpers.arrayElement([
|
|
159
|
+
'fuel',
|
|
160
|
+
'remote_area',
|
|
161
|
+
'oversize',
|
|
162
|
+
'duties_paid',
|
|
163
|
+
'emergency',
|
|
164
|
+
'peak',
|
|
165
|
+
'address_correction',
|
|
166
|
+
]); },
|
|
160
167
|
'io.flow.billing.true.up.v0.models.label_base': function () { return ({
|
|
161
168
|
amount: factories.decimal(),
|
|
162
169
|
weight: factories.decimal(),
|
|
@@ -174,10 +181,38 @@ var factories = {
|
|
|
174
181
|
destination: factories['io.flow.billing.true.up.v0.models.label_destination'](),
|
|
175
182
|
metadata: factories['io.flow.billing.true.up.v0.models.label_metadata'](),
|
|
176
183
|
}); },
|
|
184
|
+
'io.flow.billing.true.up.v0.models.label_invoice_response_file': function () { return ({
|
|
185
|
+
id: factories.string(),
|
|
186
|
+
url: factories.string(),
|
|
187
|
+
created_at: factories.date_time_iso_8601(),
|
|
188
|
+
result: factories['io.flow.billing.true.up.v0.models.label_invoice_response_file_result'](),
|
|
189
|
+
}); },
|
|
190
|
+
'io.flow.billing.true.up.v0.models.label_invoice_response_file_form': function () { return ({
|
|
191
|
+
url: factories.string(),
|
|
192
|
+
}); },
|
|
193
|
+
'io.flow.billing.true.up.v0.models.label_invoice_response_file_result': function () { return ({
|
|
194
|
+
processed_at: factories.date_time_iso_8601(),
|
|
195
|
+
number_lines_successful: factories.long(),
|
|
196
|
+
number_lines_with_errors: factories.long(),
|
|
197
|
+
errors_url: factories.string(),
|
|
198
|
+
}); },
|
|
199
|
+
'io.flow.billing.true.up.v0.models.label_invoice_response_form': function () { return ({
|
|
200
|
+
id: factories.string(),
|
|
201
|
+
label_invoice_request_id: factories.string(),
|
|
202
|
+
units: factories['io.flow.billing.true.up.v0.models.label_response_units'](),
|
|
203
|
+
base: factories['io.flow.billing.true.up.v0.models.label_base'](),
|
|
204
|
+
surcharges: factories['io.flow.billing.true.up.v0.models.label_surcharge_form'](),
|
|
205
|
+
total: factories.decimal(),
|
|
206
|
+
}); },
|
|
177
207
|
'io.flow.billing.true.up.v0.models.label_metadata': function () { return ({
|
|
178
208
|
ratecard: factories['io.flow.billing.true.up.v0.models.metadata_ratecard'](),
|
|
179
209
|
weights: factories['io.flow.billing.true.up.v0.models.metadata_weights'](),
|
|
180
210
|
}); },
|
|
211
|
+
'io.flow.billing.true.up.v0.models.label_response_units': function () { return ({
|
|
212
|
+
currency: factories.string(),
|
|
213
|
+
weight: factories['io.flow.units.v0.enums.unit_of_weight'](),
|
|
214
|
+
length: factories['io.flow.units.v0.enums.unit_of_length'](),
|
|
215
|
+
}); },
|
|
181
216
|
'io.flow.billing.true.up.v0.models.label_surcharge': function () { return ({
|
|
182
217
|
amount: factories.decimal(),
|
|
183
218
|
type: factories['io.flow.billing.true.up.v0.enums.true_up_surcharge_type'](),
|
|
@@ -195,6 +230,20 @@ var factories = {
|
|
|
195
230
|
discriminator: 'percentage',
|
|
196
231
|
percentage: factories.decimal(),
|
|
197
232
|
}); },
|
|
233
|
+
'io.flow.billing.true.up.v0.models.label_surcharge_form': function () { return ({
|
|
234
|
+
fuel: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
235
|
+
remote_area: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
236
|
+
oversize: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
237
|
+
duties_paid: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
238
|
+
emergency: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
239
|
+
peak: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
240
|
+
address_correction: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
241
|
+
}); },
|
|
242
|
+
'io.flow.billing.true.up.v0.models.label_surcharge_single_form': function () { return ({
|
|
243
|
+
amount: factories.decimal(),
|
|
244
|
+
percentage: factories.decimal(),
|
|
245
|
+
fee_per_weight_unit: factories.decimal(),
|
|
246
|
+
}); },
|
|
198
247
|
'io.flow.billing.true.up.v0.models.label_units': function () { return ({
|
|
199
248
|
currency: factories.string(),
|
|
200
249
|
weight: factories['io.flow.units.v0.enums.unit_of_weight'](),
|
|
@@ -209,7 +258,6 @@ var factories = {
|
|
|
209
258
|
proposition: factories['io.flow.billing.true.up.v0.models.metadata_proposition'](),
|
|
210
259
|
}); },
|
|
211
260
|
'io.flow.billing.true.up.v0.models.metadata_weights': function () { return ({
|
|
212
|
-
selected: factories['io.flow.billing.true.up.v0.enums.weight_selection'](),
|
|
213
261
|
dead: factories['io.flow.billing.true.up.v0.models.weights_dead'](),
|
|
214
262
|
dimensional: factories['io.flow.billing.true.up.v0.models.weights_dimensional'](),
|
|
215
263
|
}); },
|
|
@@ -1372,12 +1420,17 @@ var factories = {
|
|
|
1372
1420
|
'charge.failed',
|
|
1373
1421
|
'charge.pending',
|
|
1374
1422
|
'charge.refunded',
|
|
1375
|
-
'charge.
|
|
1423
|
+
'charge.expired',
|
|
1376
1424
|
'charge.succeeded',
|
|
1377
1425
|
'charge.updated',
|
|
1426
|
+
'charge.refund.updated',
|
|
1427
|
+
'payment_intent.created',
|
|
1378
1428
|
'payment_intent.amount_capturable_updated',
|
|
1379
1429
|
'payment_intent.payment_failed',
|
|
1380
1430
|
'payment_intent.succeeded',
|
|
1431
|
+
'payment_intent.requires_action',
|
|
1432
|
+
'payment_intent.canceled',
|
|
1433
|
+
'payment_intent.processing',
|
|
1381
1434
|
'source.canceled',
|
|
1382
1435
|
'source.chargeable',
|
|
1383
1436
|
'source.failed',
|
|
@@ -1483,6 +1536,14 @@ var factories = {
|
|
|
1483
1536
|
'three_d_secure',
|
|
1484
1537
|
]); },
|
|
1485
1538
|
'io.flow.stripe.v0.enums.source_usage_type': function () { return faker_1.default.helpers.arrayElement(['reusable', 'single_use']); },
|
|
1539
|
+
'io.flow.stripe.v0.enums.stored_credential_transaction_type': function () { return faker_1.default.helpers.arrayElement([
|
|
1540
|
+
'setup_on_session',
|
|
1541
|
+
'setup_off_session_recurring',
|
|
1542
|
+
'setup_off_session_unscheduled',
|
|
1543
|
+
'stored_on_session',
|
|
1544
|
+
'stored_on_session_recurring',
|
|
1545
|
+
'stored_on_session_unscheduled',
|
|
1546
|
+
]); },
|
|
1486
1547
|
'io.flow.stripe.v0.enums.three_d_secure_support': function () { return faker_1.default.helpers.arrayElement(['required', 'recommended', 'optional', 'not_supported']); },
|
|
1487
1548
|
'io.flow.stripe.v0.enums.three_ds_authentication_flow': function () { return faker_1.default.helpers.arrayElement(['challenge', 'frictionless']); },
|
|
1488
1549
|
'io.flow.stripe.v0.enums.three_ds_result': function () { return faker_1.default.helpers.arrayElement([
|
|
@@ -1582,6 +1643,10 @@ var factories = {
|
|
|
1582
1643
|
address_postal_code_check: factories['io.flow.stripe.v0.enums.check_outcome'](),
|
|
1583
1644
|
cvc_check: factories['io.flow.stripe.v0.enums.check_outcome'](),
|
|
1584
1645
|
}); },
|
|
1646
|
+
'io.flow.stripe.v0.models.card_networks': function () { return ({
|
|
1647
|
+
available: arrayOf(function () { return factories.string(); }),
|
|
1648
|
+
preferred: factories.string(),
|
|
1649
|
+
}); },
|
|
1585
1650
|
'io.flow.stripe.v0.models.card_request': function () { return ({
|
|
1586
1651
|
object: factories.string(),
|
|
1587
1652
|
exp_month: factories.string(),
|
|
@@ -1601,6 +1666,7 @@ var factories = {
|
|
|
1601
1666
|
id: factories.string(),
|
|
1602
1667
|
amount: factories.long(),
|
|
1603
1668
|
amount_refunded: factories.long(),
|
|
1669
|
+
authorization_code: factories.string(),
|
|
1604
1670
|
captured: factories.boolean(),
|
|
1605
1671
|
created: factories.long(),
|
|
1606
1672
|
currency: factories.string(),
|
|
@@ -1648,6 +1714,7 @@ var factories = {
|
|
|
1648
1714
|
id: factories.string(),
|
|
1649
1715
|
amount: factories.long(),
|
|
1650
1716
|
amount_refunded: factories.long(),
|
|
1717
|
+
authorization_code: factories.string(),
|
|
1651
1718
|
captured: factories.boolean(),
|
|
1652
1719
|
created: factories.long(),
|
|
1653
1720
|
currency: factories.string(),
|
|
@@ -1733,6 +1800,8 @@ var factories = {
|
|
|
1733
1800
|
order_number: factories.string(),
|
|
1734
1801
|
authorization_id: factories.string(),
|
|
1735
1802
|
organization_id: factories.string(),
|
|
1803
|
+
payment_request_id: factories.string(),
|
|
1804
|
+
payment_request_order_reference: factories.string(),
|
|
1736
1805
|
}); },
|
|
1737
1806
|
'io.flow.stripe.v0.models.network_token_used': function () { return ({
|
|
1738
1807
|
used: factories.boolean(),
|
|
@@ -1841,6 +1910,7 @@ var factories = {
|
|
|
1841
1910
|
'io.flow.stripe.v0.models.payment_intent_confirmation_form': function () { return ({
|
|
1842
1911
|
off_session: factories.boolean(),
|
|
1843
1912
|
payment_method: factories.string(),
|
|
1913
|
+
payment_method_data: factories['io.flow.stripe.v0.unions.payment_method_data'](),
|
|
1844
1914
|
payment_method_options: factories['io.flow.stripe.v0.models.payment_method_options'](),
|
|
1845
1915
|
payment_method_types: arrayOf(function () { return factories.string(); }),
|
|
1846
1916
|
receipt_email: factories.string(),
|
|
@@ -1860,6 +1930,7 @@ var factories = {
|
|
|
1860
1930
|
metadata: factories['io.flow.stripe.v0.models.metadata'](),
|
|
1861
1931
|
on_behalf_of: factories.string(),
|
|
1862
1932
|
payment_method: factories.string(),
|
|
1933
|
+
payment_method_data: factories['io.flow.stripe.v0.unions.payment_method_data'](),
|
|
1863
1934
|
payment_method_options: factories['io.flow.stripe.v0.models.payment_method_options'](),
|
|
1864
1935
|
payment_method_types: arrayOf(function () { return factories.string(); }),
|
|
1865
1936
|
receipt_email: factories.string(),
|
|
@@ -1890,7 +1961,7 @@ var factories = {
|
|
|
1890
1961
|
id: factories.string(),
|
|
1891
1962
|
object: factories.string(),
|
|
1892
1963
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
1893
|
-
card: factories['io.flow.stripe.v0.models.
|
|
1964
|
+
card: factories['io.flow.stripe.v0.models.payment_method_card_details'](),
|
|
1894
1965
|
card_present: factories.object(),
|
|
1895
1966
|
created: factories.long(),
|
|
1896
1967
|
customer: factories.string(),
|
|
@@ -1903,6 +1974,30 @@ var factories = {
|
|
|
1903
1974
|
name: factories.string(),
|
|
1904
1975
|
phone: factories.string(),
|
|
1905
1976
|
}); },
|
|
1977
|
+
'io.flow.stripe.v0.models.payment_method_card_details': function () { return ({
|
|
1978
|
+
brand: factories['io.flow.stripe.v0.enums.card_brand'](),
|
|
1979
|
+
checks: factories['io.flow.stripe.v0.models.card_checks'](),
|
|
1980
|
+
country: factories.string(),
|
|
1981
|
+
exp_month: factories.long(),
|
|
1982
|
+
exp_year: factories.long(),
|
|
1983
|
+
fingerprint: factories.string(),
|
|
1984
|
+
funding: factories['io.flow.stripe.v0.enums.card_funding_type'](),
|
|
1985
|
+
last4: factories.string(),
|
|
1986
|
+
networks: factories['io.flow.stripe.v0.models.card_networks'](),
|
|
1987
|
+
three_d_secure_usage: factories['io.flow.stripe.v0.models.three_d_secure_usage'](),
|
|
1988
|
+
}); },
|
|
1989
|
+
'io.flow.stripe.v0.models.payment_method_card_form': function () { return ({
|
|
1990
|
+
exp_month: factories.string(),
|
|
1991
|
+
exp_year: factories.string(),
|
|
1992
|
+
number: factories.string(),
|
|
1993
|
+
cvc: factories.string(),
|
|
1994
|
+
}); },
|
|
1995
|
+
'io.flow.stripe.v0.models.payment_method_data_card': function () { return ({
|
|
1996
|
+
type: 'card',
|
|
1997
|
+
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
1998
|
+
metadata: factories.object(),
|
|
1999
|
+
card: factories['io.flow.stripe.v0.models.payment_method_card_form'](),
|
|
2000
|
+
}); },
|
|
1906
2001
|
'io.flow.stripe.v0.models.payment_method_details_card': function () { return ({
|
|
1907
2002
|
type: 'card',
|
|
1908
2003
|
card: factories['io.flow.stripe.v0.models.payment_method_details_card_information'](),
|
|
@@ -1936,16 +2031,19 @@ var factories = {
|
|
|
1936
2031
|
payment_method_category: factories['io.flow.stripe.v0.enums.payment_method_category_klarna'](),
|
|
1937
2032
|
preferred_locale: factories['io.flow.stripe.v0.enums.preferred_locale_klarna'](),
|
|
1938
2033
|
}); },
|
|
1939
|
-
'io.flow.stripe.v0.models.
|
|
1940
|
-
type:
|
|
2034
|
+
'io.flow.stripe.v0.models.payment_method_form_card': function () { return ({
|
|
2035
|
+
type: 'card',
|
|
1941
2036
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
1942
|
-
|
|
2037
|
+
metadata: factories.object(),
|
|
2038
|
+
card: factories['io.flow.stripe.v0.models.payment_method_card_form'](),
|
|
1943
2039
|
}); },
|
|
1944
2040
|
'io.flow.stripe.v0.models.payment_method_options': function () { return ({
|
|
1945
2041
|
card: factories['io.flow.stripe.v0.models.payment_method_options_card'](),
|
|
1946
2042
|
}); },
|
|
1947
2043
|
'io.flow.stripe.v0.models.payment_method_options_card': function () { return ({
|
|
2044
|
+
network: factories.string(),
|
|
1948
2045
|
request_three_d_secure: factories['io.flow.stripe.v0.enums.request_three_d_secure_type'](),
|
|
2046
|
+
stored_credential_transaction_type: factories['io.flow.stripe.v0.enums.stored_credential_transaction_type'](),
|
|
1949
2047
|
}); },
|
|
1950
2048
|
'io.flow.stripe.v0.models.payment_outcome': function () { return ({
|
|
1951
2049
|
network_status: factories['io.flow.stripe.v0.enums.network_status'](),
|
|
@@ -2171,6 +2269,9 @@ var factories = {
|
|
|
2171
2269
|
type: factories['io.flow.stripe.v0.enums.use_stripe_sdk_type'](),
|
|
2172
2270
|
stripe_js: factories.string(),
|
|
2173
2271
|
}); },
|
|
2272
|
+
'io.flow.stripe.v0.models.three_d_secure_usage': function () { return ({
|
|
2273
|
+
supported: factories.boolean(),
|
|
2274
|
+
}); },
|
|
2174
2275
|
'io.flow.stripe.v0.models.token': function () { return ({
|
|
2175
2276
|
id: factories.string(),
|
|
2176
2277
|
object: factories.string(),
|
|
@@ -2209,6 +2310,10 @@ var factories = {
|
|
|
2209
2310
|
]);
|
|
2210
2311
|
return f();
|
|
2211
2312
|
},
|
|
2313
|
+
'io.flow.stripe.v0.unions.payment_method_data': function () {
|
|
2314
|
+
var f = faker_1.default.helpers.arrayElement([function () { return factories['io.flow.stripe.v0.models.payment_method_data_card'](); }]);
|
|
2315
|
+
return f();
|
|
2316
|
+
},
|
|
2212
2317
|
'io.flow.stripe.v0.unions.payment_method_details': function () {
|
|
2213
2318
|
var f = faker_1.default.helpers.arrayElement([
|
|
2214
2319
|
function () { return factories['io.flow.stripe.v0.models.payment_method_details_card'](); },
|
|
@@ -2216,6 +2321,10 @@ var factories = {
|
|
|
2216
2321
|
]);
|
|
2217
2322
|
return f();
|
|
2218
2323
|
},
|
|
2324
|
+
'io.flow.stripe.v0.unions.payment_method_form': function () {
|
|
2325
|
+
var f = faker_1.default.helpers.arrayElement([function () { return factories['io.flow.stripe.v0.models.payment_method_form_card'](); }]);
|
|
2326
|
+
return f();
|
|
2327
|
+
},
|
|
2219
2328
|
'io.flow.units.v0.enums.unit_of_length': function () { return faker_1.default.helpers.arrayElement(['millimeter', 'centimeter', 'inch', 'foot', 'meter']); },
|
|
2220
2329
|
'io.flow.units.v0.enums.unit_of_volume': function () { return faker_1.default.helpers.arrayElement(['cubic_inch', 'cubic_meter']); },
|
|
2221
2330
|
'io.flow.units.v0.enums.unit_of_weight': function () { return faker_1.default.helpers.arrayElement(['gram', 'kilogram', 'ounce', 'pound']); },
|
|
@@ -2777,6 +2886,7 @@ var factories = {
|
|
|
2777
2886
|
'card',
|
|
2778
2887
|
'online',
|
|
2779
2888
|
'credit',
|
|
2889
|
+
'external',
|
|
2780
2890
|
'subsidized',
|
|
2781
2891
|
'installment_plan',
|
|
2782
2892
|
'cash_on_delivery',
|
|
@@ -3123,6 +3233,7 @@ var factories = {
|
|
|
3123
3233
|
'reversal',
|
|
3124
3234
|
'shipping_label',
|
|
3125
3235
|
'shipping_label_service',
|
|
3236
|
+
'trueup',
|
|
3126
3237
|
'shipping_label_revenue_share',
|
|
3127
3238
|
'platform_fee',
|
|
3128
3239
|
'tax',
|
|
@@ -3136,6 +3247,16 @@ var factories = {
|
|
|
3136
3247
|
'virtual_card_capture',
|
|
3137
3248
|
'virtual_card_refund',
|
|
3138
3249
|
]); },
|
|
3250
|
+
'io.flow.v0.enums.trueup_source': function () { return faker_1.default.helpers.arrayElement(['flow', 'channel', 'dhl-parcel', 'dhl']); },
|
|
3251
|
+
'io.flow.v0.enums.trueup_surcharge_type': function () { return faker_1.default.helpers.arrayElement([
|
|
3252
|
+
'fuel',
|
|
3253
|
+
'remote_area',
|
|
3254
|
+
'oversize',
|
|
3255
|
+
'duties_paid',
|
|
3256
|
+
'emergency',
|
|
3257
|
+
'peak',
|
|
3258
|
+
'address_correction',
|
|
3259
|
+
]); },
|
|
3139
3260
|
'io.flow.v0.enums.unit_of_length': function () { return faker_1.default.helpers.arrayElement(['millimeter', 'centimeter', 'inch', 'foot', 'meter']); },
|
|
3140
3261
|
'io.flow.v0.enums.unit_of_measurement': function () { return faker_1.default.helpers.arrayElement([
|
|
3141
3262
|
'millimeter',
|
|
@@ -8254,6 +8375,7 @@ var factories = {
|
|
|
8254
8375
|
current_state: factories['io.flow.v0.unions.onboarding_state'](),
|
|
8255
8376
|
started_at: factories.date_time_iso_8601(),
|
|
8256
8377
|
time_blocked: factories.long(),
|
|
8378
|
+
time_in_setup: factories.long(),
|
|
8257
8379
|
blocked_since: factories.date_time_iso_8601(),
|
|
8258
8380
|
completed_at: factories.date_time_iso_8601(),
|
|
8259
8381
|
onboarding_started_at: factories.date_time_iso_8601(),
|
|
@@ -9099,6 +9221,11 @@ var factories = {
|
|
|
9099
9221
|
starts_at: factories.date_time_iso_8601(),
|
|
9100
9222
|
ends_at: factories.date_time_iso_8601(),
|
|
9101
9223
|
}); },
|
|
9224
|
+
'io.flow.v0.models.pending_transaction': function () { return ({
|
|
9225
|
+
id: factories.string(),
|
|
9226
|
+
reason: factories['io.flow.v0.enums.transaction_payout_pending_reason'](),
|
|
9227
|
+
reason_set_at: factories.date_time_iso_8601(),
|
|
9228
|
+
}); },
|
|
9102
9229
|
'io.flow.v0.models.percent_margin': function () { return ({
|
|
9103
9230
|
discriminator: 'percent_margin',
|
|
9104
9231
|
percentage: factories.double(),
|
|
@@ -11543,10 +11670,35 @@ var factories = {
|
|
|
11543
11670
|
cvv_result: factories['io.flow.v0.models.cvv_result'](),
|
|
11544
11671
|
network_details: factories['io.flow.v0.models.transaction_network_details_card'](),
|
|
11545
11672
|
}); },
|
|
11673
|
+
'io.flow.v0.models.transaction_metadata_channel': function () { return ({
|
|
11674
|
+
discriminator: 'channel',
|
|
11675
|
+
method: factories.string(),
|
|
11676
|
+
card: factories['io.flow.v0.models.transaction_metadata_channel_card_metadata'](),
|
|
11677
|
+
}); },
|
|
11678
|
+
'io.flow.v0.models.transaction_metadata_channel_card_metadata': function () { return ({
|
|
11679
|
+
type: factories['io.flow.v0.enums.card_type'](),
|
|
11680
|
+
issuer: factories['io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary'](),
|
|
11681
|
+
}); },
|
|
11682
|
+
'io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary': function () { return ({
|
|
11683
|
+
iin: factories.string(),
|
|
11684
|
+
country: factories.string(),
|
|
11685
|
+
}); },
|
|
11546
11686
|
'io.flow.v0.models.transaction_metadata_shipping_label': function () { return ({
|
|
11547
11687
|
discriminator: 'shipping_label',
|
|
11548
11688
|
request_method: factories['io.flow.v0.enums.label_request_method'](),
|
|
11549
11689
|
}); },
|
|
11690
|
+
'io.flow.v0.models.transaction_metadata_trueup': function () { return ({
|
|
11691
|
+
discriminator: 'trueup',
|
|
11692
|
+
estimate: factories['io.flow.v0.models.transaction_metadata_trueup_data'](),
|
|
11693
|
+
actual: factories['io.flow.v0.models.transaction_metadata_trueup_data'](),
|
|
11694
|
+
}); },
|
|
11695
|
+
'io.flow.v0.models.transaction_metadata_trueup_data': function () { return ({
|
|
11696
|
+
source: factories['io.flow.v0.enums.trueup_source'](),
|
|
11697
|
+
units: factories['io.flow.v0.models.trueup_label_units'](),
|
|
11698
|
+
base: factories['io.flow.v0.models.trueup_label_base'](),
|
|
11699
|
+
surcharges: arrayOf(function () { return factories['io.flow.v0.models.trueup_label_surcharge'](); }),
|
|
11700
|
+
total: factories.decimal(),
|
|
11701
|
+
}); },
|
|
11550
11702
|
'io.flow.v0.models.transaction_network_details_card': function () { return ({
|
|
11551
11703
|
network_transaction_id: factories.string(),
|
|
11552
11704
|
network: factories['io.flow.v0.enums.card_type'](),
|
|
@@ -11574,6 +11726,20 @@ var factories = {
|
|
|
11574
11726
|
from: factories.long(),
|
|
11575
11727
|
to: factories.long(),
|
|
11576
11728
|
}); },
|
|
11729
|
+
'io.flow.v0.models.trueup_label_base': function () { return ({
|
|
11730
|
+
amount: factories.decimal(),
|
|
11731
|
+
weight: factories.decimal(),
|
|
11732
|
+
}); },
|
|
11733
|
+
'io.flow.v0.models.trueup_label_surcharge': function () { return ({
|
|
11734
|
+
amount: factories.decimal(),
|
|
11735
|
+
type: factories['io.flow.v0.enums.trueup_surcharge_type'](),
|
|
11736
|
+
percentage: factories.decimal(),
|
|
11737
|
+
per_weight_unit: factories.decimal(),
|
|
11738
|
+
}); },
|
|
11739
|
+
'io.flow.v0.models.trueup_label_units': function () { return ({
|
|
11740
|
+
weight: factories['io.flow.v0.enums.unit_of_weight'](),
|
|
11741
|
+
length: factories['io.flow.v0.enums.unit_of_length'](),
|
|
11742
|
+
}); },
|
|
11577
11743
|
'io.flow.v0.models.ultimate_beneficiary_owner': function () { return ({
|
|
11578
11744
|
name: factories.string(),
|
|
11579
11745
|
dob: factories.date_time_iso_8601(),
|
|
@@ -12755,7 +12921,11 @@ var factories = {
|
|
|
12755
12921
|
return f();
|
|
12756
12922
|
},
|
|
12757
12923
|
'io.flow.v0.unions.transaction_metadata': function () {
|
|
12758
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
12924
|
+
var f = faker_1.default.helpers.arrayElement([
|
|
12925
|
+
function () { return factories['io.flow.v0.models.transaction_metadata_shipping_label'](); },
|
|
12926
|
+
function () { return factories['io.flow.v0.models.transaction_metadata_channel'](); },
|
|
12927
|
+
function () { return factories['io.flow.v0.models.transaction_metadata_trueup'](); },
|
|
12928
|
+
]);
|
|
12759
12929
|
return f();
|
|
12760
12930
|
},
|
|
12761
12931
|
};
|
|
@@ -15147,6 +15317,8 @@ var makePeakSurchargeRatecardFee = function () { return factories['io.flow.v0.mo
|
|
|
15147
15317
|
exports.makePeakSurchargeRatecardFee = makePeakSurchargeRatecardFee;
|
|
15148
15318
|
var makePeakSurchargeServiceFee = function () { return factories['io.flow.v0.models.peak_surcharge_service_fee'](); };
|
|
15149
15319
|
exports.makePeakSurchargeServiceFee = makePeakSurchargeServiceFee;
|
|
15320
|
+
var makePendingTransaction = function () { return factories['io.flow.v0.models.pending_transaction'](); };
|
|
15321
|
+
exports.makePendingTransaction = makePendingTransaction;
|
|
15150
15322
|
var makePercentMargin = function () { return factories['io.flow.v0.models.percent_margin'](); };
|
|
15151
15323
|
exports.makePercentMargin = makePercentMargin;
|
|
15152
15324
|
var makePermissionAudit = function () { return factories['io.flow.v0.models.permission_audit'](); };
|
|
@@ -16073,8 +16245,18 @@ var makeTransactionDetailsCard = function () { return factories['io.flow.v0.mode
|
|
|
16073
16245
|
exports.makeTransactionDetailsCard = makeTransactionDetailsCard;
|
|
16074
16246
|
var makeTransactionMetadata = function () { return factories['io.flow.v0.unions.transaction_metadata'](); };
|
|
16075
16247
|
exports.makeTransactionMetadata = makeTransactionMetadata;
|
|
16248
|
+
var makeTransactionMetadataChannel = function () { return factories['io.flow.v0.models.transaction_metadata_channel'](); };
|
|
16249
|
+
exports.makeTransactionMetadataChannel = makeTransactionMetadataChannel;
|
|
16250
|
+
var makeTransactionMetadataChannelCardMetadata = function () { return factories['io.flow.v0.models.transaction_metadata_channel_card_metadata'](); };
|
|
16251
|
+
exports.makeTransactionMetadataChannelCardMetadata = makeTransactionMetadataChannelCardMetadata;
|
|
16252
|
+
var makeTransactionMetadataChannelCardMetadataIssuerSummary = function () { return factories['io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary'](); };
|
|
16253
|
+
exports.makeTransactionMetadataChannelCardMetadataIssuerSummary = makeTransactionMetadataChannelCardMetadataIssuerSummary;
|
|
16076
16254
|
var makeTransactionMetadataShippingLabel = function () { return factories['io.flow.v0.models.transaction_metadata_shipping_label'](); };
|
|
16077
16255
|
exports.makeTransactionMetadataShippingLabel = makeTransactionMetadataShippingLabel;
|
|
16256
|
+
var makeTransactionMetadataTrueup = function () { return factories['io.flow.v0.models.transaction_metadata_trueup'](); };
|
|
16257
|
+
exports.makeTransactionMetadataTrueup = makeTransactionMetadataTrueup;
|
|
16258
|
+
var makeTransactionMetadataTrueupData = function () { return factories['io.flow.v0.models.transaction_metadata_trueup_data'](); };
|
|
16259
|
+
exports.makeTransactionMetadataTrueupData = makeTransactionMetadataTrueupData;
|
|
16078
16260
|
var makeTransactionNetworkDetailsCard = function () { return factories['io.flow.v0.models.transaction_network_details_card'](); };
|
|
16079
16261
|
exports.makeTransactionNetworkDetailsCard = makeTransactionNetworkDetailsCard;
|
|
16080
16262
|
var makeTransactionPayoutPendingReason = function () { return factories['io.flow.v0.enums.transaction_payout_pending_reason'](); };
|
|
@@ -16089,6 +16271,16 @@ var makeTransitEstimate = function () { return factories['io.flow.v0.models.tran
|
|
|
16089
16271
|
exports.makeTransitEstimate = makeTransitEstimate;
|
|
16090
16272
|
var makeTransitWindow = function () { return factories['io.flow.v0.models.transit_window'](); };
|
|
16091
16273
|
exports.makeTransitWindow = makeTransitWindow;
|
|
16274
|
+
var makeTrueupLabelBase = function () { return factories['io.flow.v0.models.trueup_label_base'](); };
|
|
16275
|
+
exports.makeTrueupLabelBase = makeTrueupLabelBase;
|
|
16276
|
+
var makeTrueupLabelSurcharge = function () { return factories['io.flow.v0.models.trueup_label_surcharge'](); };
|
|
16277
|
+
exports.makeTrueupLabelSurcharge = makeTrueupLabelSurcharge;
|
|
16278
|
+
var makeTrueupLabelUnits = function () { return factories['io.flow.v0.models.trueup_label_units'](); };
|
|
16279
|
+
exports.makeTrueupLabelUnits = makeTrueupLabelUnits;
|
|
16280
|
+
var makeTrueupSource = function () { return factories['io.flow.v0.enums.trueup_source'](); };
|
|
16281
|
+
exports.makeTrueupSource = makeTrueupSource;
|
|
16282
|
+
var makeTrueupSurchargeType = function () { return factories['io.flow.v0.enums.trueup_surcharge_type'](); };
|
|
16283
|
+
exports.makeTrueupSurchargeType = makeTrueupSurchargeType;
|
|
16092
16284
|
var makeUltimateBeneficiaryOwner = function () { return factories['io.flow.v0.models.ultimate_beneficiary_owner'](); };
|
|
16093
16285
|
exports.makeUltimateBeneficiaryOwner = makeUltimateBeneficiaryOwner;
|
|
16094
16286
|
var makeUnharmonizedItemExportType = function () { return factories['io.flow.v0.models.unharmonized_item_export_type'](); };
|