@flowio/api-factories 0.0.65 → 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 +107 -21
- package/dist/esm/api.js +91 -9
- package/dist/types/api.d.ts +4 -0
- package/package.json +2 -2
- package/src/api.ts +104 -9
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 = exports.makeWebhookReference = exports.makeWebhookForm = exports.makeWebhookDelivery = exports.makeWebhook = exports.makeVisibility = exports.makeVirtualCardVersion = exports.makeVirtualCardRefundVersion = 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 ({
|
|
@@ -1420,12 +1420,17 @@ var factories = {
|
|
|
1420
1420
|
'charge.failed',
|
|
1421
1421
|
'charge.pending',
|
|
1422
1422
|
'charge.refunded',
|
|
1423
|
-
'charge.
|
|
1423
|
+
'charge.expired',
|
|
1424
1424
|
'charge.succeeded',
|
|
1425
1425
|
'charge.updated',
|
|
1426
|
+
'charge.refund.updated',
|
|
1427
|
+
'payment_intent.created',
|
|
1426
1428
|
'payment_intent.amount_capturable_updated',
|
|
1427
1429
|
'payment_intent.payment_failed',
|
|
1428
1430
|
'payment_intent.succeeded',
|
|
1431
|
+
'payment_intent.requires_action',
|
|
1432
|
+
'payment_intent.canceled',
|
|
1433
|
+
'payment_intent.processing',
|
|
1429
1434
|
'source.canceled',
|
|
1430
1435
|
'source.chargeable',
|
|
1431
1436
|
'source.failed',
|
|
@@ -1531,6 +1536,14 @@ var factories = {
|
|
|
1531
1536
|
'three_d_secure',
|
|
1532
1537
|
]); },
|
|
1533
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
|
+
]); },
|
|
1534
1547
|
'io.flow.stripe.v0.enums.three_d_secure_support': function () { return faker_1.default.helpers.arrayElement(['required', 'recommended', 'optional', 'not_supported']); },
|
|
1535
1548
|
'io.flow.stripe.v0.enums.three_ds_authentication_flow': function () { return faker_1.default.helpers.arrayElement(['challenge', 'frictionless']); },
|
|
1536
1549
|
'io.flow.stripe.v0.enums.three_ds_result': function () { return faker_1.default.helpers.arrayElement([
|
|
@@ -1630,6 +1643,10 @@ var factories = {
|
|
|
1630
1643
|
address_postal_code_check: factories['io.flow.stripe.v0.enums.check_outcome'](),
|
|
1631
1644
|
cvc_check: factories['io.flow.stripe.v0.enums.check_outcome'](),
|
|
1632
1645
|
}); },
|
|
1646
|
+
'io.flow.stripe.v0.models.card_networks': function () { return ({
|
|
1647
|
+
available: arrayOf(function () { return factories.string(); }),
|
|
1648
|
+
preferred: factories.string(),
|
|
1649
|
+
}); },
|
|
1633
1650
|
'io.flow.stripe.v0.models.card_request': function () { return ({
|
|
1634
1651
|
object: factories.string(),
|
|
1635
1652
|
exp_month: factories.string(),
|
|
@@ -1783,6 +1800,8 @@ var factories = {
|
|
|
1783
1800
|
order_number: factories.string(),
|
|
1784
1801
|
authorization_id: factories.string(),
|
|
1785
1802
|
organization_id: factories.string(),
|
|
1803
|
+
payment_request_id: factories.string(),
|
|
1804
|
+
payment_request_order_reference: factories.string(),
|
|
1786
1805
|
}); },
|
|
1787
1806
|
'io.flow.stripe.v0.models.network_token_used': function () { return ({
|
|
1788
1807
|
used: factories.boolean(),
|
|
@@ -1891,6 +1910,7 @@ var factories = {
|
|
|
1891
1910
|
'io.flow.stripe.v0.models.payment_intent_confirmation_form': function () { return ({
|
|
1892
1911
|
off_session: factories.boolean(),
|
|
1893
1912
|
payment_method: factories.string(),
|
|
1913
|
+
payment_method_data: factories['io.flow.stripe.v0.unions.payment_method_data'](),
|
|
1894
1914
|
payment_method_options: factories['io.flow.stripe.v0.models.payment_method_options'](),
|
|
1895
1915
|
payment_method_types: arrayOf(function () { return factories.string(); }),
|
|
1896
1916
|
receipt_email: factories.string(),
|
|
@@ -1910,6 +1930,7 @@ var factories = {
|
|
|
1910
1930
|
metadata: factories['io.flow.stripe.v0.models.metadata'](),
|
|
1911
1931
|
on_behalf_of: factories.string(),
|
|
1912
1932
|
payment_method: factories.string(),
|
|
1933
|
+
payment_method_data: factories['io.flow.stripe.v0.unions.payment_method_data'](),
|
|
1913
1934
|
payment_method_options: factories['io.flow.stripe.v0.models.payment_method_options'](),
|
|
1914
1935
|
payment_method_types: arrayOf(function () { return factories.string(); }),
|
|
1915
1936
|
receipt_email: factories.string(),
|
|
@@ -1940,7 +1961,7 @@ var factories = {
|
|
|
1940
1961
|
id: factories.string(),
|
|
1941
1962
|
object: factories.string(),
|
|
1942
1963
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
1943
|
-
card: factories['io.flow.stripe.v0.models.
|
|
1964
|
+
card: factories['io.flow.stripe.v0.models.payment_method_card_details'](),
|
|
1944
1965
|
card_present: factories.object(),
|
|
1945
1966
|
created: factories.long(),
|
|
1946
1967
|
customer: factories.string(),
|
|
@@ -1953,6 +1974,30 @@ var factories = {
|
|
|
1953
1974
|
name: factories.string(),
|
|
1954
1975
|
phone: factories.string(),
|
|
1955
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
|
+
}); },
|
|
1956
2001
|
'io.flow.stripe.v0.models.payment_method_details_card': function () { return ({
|
|
1957
2002
|
type: 'card',
|
|
1958
2003
|
card: factories['io.flow.stripe.v0.models.payment_method_details_card_information'](),
|
|
@@ -1986,16 +2031,19 @@ var factories = {
|
|
|
1986
2031
|
payment_method_category: factories['io.flow.stripe.v0.enums.payment_method_category_klarna'](),
|
|
1987
2032
|
preferred_locale: factories['io.flow.stripe.v0.enums.preferred_locale_klarna'](),
|
|
1988
2033
|
}); },
|
|
1989
|
-
'io.flow.stripe.v0.models.
|
|
1990
|
-
type:
|
|
2034
|
+
'io.flow.stripe.v0.models.payment_method_form_card': function () { return ({
|
|
2035
|
+
type: 'card',
|
|
1991
2036
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
1992
|
-
|
|
2037
|
+
metadata: factories.object(),
|
|
2038
|
+
card: factories['io.flow.stripe.v0.models.payment_method_card_form'](),
|
|
1993
2039
|
}); },
|
|
1994
2040
|
'io.flow.stripe.v0.models.payment_method_options': function () { return ({
|
|
1995
2041
|
card: factories['io.flow.stripe.v0.models.payment_method_options_card'](),
|
|
1996
2042
|
}); },
|
|
1997
2043
|
'io.flow.stripe.v0.models.payment_method_options_card': function () { return ({
|
|
2044
|
+
network: factories.string(),
|
|
1998
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'](),
|
|
1999
2047
|
}); },
|
|
2000
2048
|
'io.flow.stripe.v0.models.payment_outcome': function () { return ({
|
|
2001
2049
|
network_status: factories['io.flow.stripe.v0.enums.network_status'](),
|
|
@@ -2221,6 +2269,9 @@ var factories = {
|
|
|
2221
2269
|
type: factories['io.flow.stripe.v0.enums.use_stripe_sdk_type'](),
|
|
2222
2270
|
stripe_js: factories.string(),
|
|
2223
2271
|
}); },
|
|
2272
|
+
'io.flow.stripe.v0.models.three_d_secure_usage': function () { return ({
|
|
2273
|
+
supported: factories.boolean(),
|
|
2274
|
+
}); },
|
|
2224
2275
|
'io.flow.stripe.v0.models.token': function () { return ({
|
|
2225
2276
|
id: factories.string(),
|
|
2226
2277
|
object: factories.string(),
|
|
@@ -2259,6 +2310,10 @@ var factories = {
|
|
|
2259
2310
|
]);
|
|
2260
2311
|
return f();
|
|
2261
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
|
+
},
|
|
2262
2317
|
'io.flow.stripe.v0.unions.payment_method_details': function () {
|
|
2263
2318
|
var f = faker_1.default.helpers.arrayElement([
|
|
2264
2319
|
function () { return factories['io.flow.stripe.v0.models.payment_method_details_card'](); },
|
|
@@ -2266,6 +2321,10 @@ var factories = {
|
|
|
2266
2321
|
]);
|
|
2267
2322
|
return f();
|
|
2268
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
|
+
},
|
|
2269
2328
|
'io.flow.units.v0.enums.unit_of_length': function () { return faker_1.default.helpers.arrayElement(['millimeter', 'centimeter', 'inch', 'foot', 'meter']); },
|
|
2270
2329
|
'io.flow.units.v0.enums.unit_of_volume': function () { return faker_1.default.helpers.arrayElement(['cubic_inch', 'cubic_meter']); },
|
|
2271
2330
|
'io.flow.units.v0.enums.unit_of_weight': function () { return faker_1.default.helpers.arrayElement(['gram', 'kilogram', 'ounce', 'pound']); },
|
|
@@ -9162,6 +9221,11 @@ var factories = {
|
|
|
9162
9221
|
starts_at: factories.date_time_iso_8601(),
|
|
9163
9222
|
ends_at: factories.date_time_iso_8601(),
|
|
9164
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
|
+
}); },
|
|
9165
9229
|
'io.flow.v0.models.percent_margin': function () { return ({
|
|
9166
9230
|
discriminator: 'percent_margin',
|
|
9167
9231
|
percentage: factories.double(),
|
|
@@ -11606,6 +11670,19 @@ var factories = {
|
|
|
11606
11670
|
cvv_result: factories['io.flow.v0.models.cvv_result'](),
|
|
11607
11671
|
network_details: factories['io.flow.v0.models.transaction_network_details_card'](),
|
|
11608
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
|
+
}); },
|
|
11609
11686
|
'io.flow.v0.models.transaction_metadata_shipping_label': function () { return ({
|
|
11610
11687
|
discriminator: 'shipping_label',
|
|
11611
11688
|
request_method: factories['io.flow.v0.enums.label_request_method'](),
|
|
@@ -12846,6 +12923,7 @@ var factories = {
|
|
|
12846
12923
|
'io.flow.v0.unions.transaction_metadata': function () {
|
|
12847
12924
|
var f = faker_1.default.helpers.arrayElement([
|
|
12848
12925
|
function () { return factories['io.flow.v0.models.transaction_metadata_shipping_label'](); },
|
|
12926
|
+
function () { return factories['io.flow.v0.models.transaction_metadata_channel'](); },
|
|
12849
12927
|
function () { return factories['io.flow.v0.models.transaction_metadata_trueup'](); },
|
|
12850
12928
|
]);
|
|
12851
12929
|
return f();
|
|
@@ -15239,6 +15317,8 @@ var makePeakSurchargeRatecardFee = function () { return factories['io.flow.v0.mo
|
|
|
15239
15317
|
exports.makePeakSurchargeRatecardFee = makePeakSurchargeRatecardFee;
|
|
15240
15318
|
var makePeakSurchargeServiceFee = function () { return factories['io.flow.v0.models.peak_surcharge_service_fee'](); };
|
|
15241
15319
|
exports.makePeakSurchargeServiceFee = makePeakSurchargeServiceFee;
|
|
15320
|
+
var makePendingTransaction = function () { return factories['io.flow.v0.models.pending_transaction'](); };
|
|
15321
|
+
exports.makePendingTransaction = makePendingTransaction;
|
|
15242
15322
|
var makePercentMargin = function () { return factories['io.flow.v0.models.percent_margin'](); };
|
|
15243
15323
|
exports.makePercentMargin = makePercentMargin;
|
|
15244
15324
|
var makePermissionAudit = function () { return factories['io.flow.v0.models.permission_audit'](); };
|
|
@@ -16165,6 +16245,12 @@ var makeTransactionDetailsCard = function () { return factories['io.flow.v0.mode
|
|
|
16165
16245
|
exports.makeTransactionDetailsCard = makeTransactionDetailsCard;
|
|
16166
16246
|
var makeTransactionMetadata = function () { return factories['io.flow.v0.unions.transaction_metadata'](); };
|
|
16167
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;
|
|
16168
16254
|
var makeTransactionMetadataShippingLabel = function () { return factories['io.flow.v0.models.transaction_metadata_shipping_label'](); };
|
|
16169
16255
|
exports.makeTransactionMetadataShippingLabel = makeTransactionMetadataShippingLabel;
|
|
16170
16256
|
var makeTransactionMetadataTrueup = function () { return factories['io.flow.v0.models.transaction_metadata_trueup'](); };
|
package/dist/esm/api.js
CHANGED
|
@@ -25,10 +25,10 @@ var factories = {
|
|
|
25
25
|
string: function () { return faker.datatype.string(); },
|
|
26
26
|
unit: function () { return undefined; },
|
|
27
27
|
uuid: function () { return faker.datatype.uuid(); },
|
|
28
|
-
'io.flow.apple.pay.v0.enums.apple_pay_contact_field': function () { return faker.helpers.arrayElement(['email', 'name', 'phone', '
|
|
28
|
+
'io.flow.apple.pay.v0.enums.apple_pay_contact_field': function () { return faker.helpers.arrayElement(['email', 'name', 'phone', 'postal_address', 'phonetic_name']); },
|
|
29
29
|
'io.flow.apple.pay.v0.enums.apple_pay_line_item_type': function () { return faker.helpers.arrayElement(['final', 'pending']); },
|
|
30
30
|
'io.flow.apple.pay.v0.enums.apple_pay_merchant_capability': function () { return faker.helpers.arrayElement(['supports3DS', 'supportsCredit', 'supportsDebit', 'supportsEMV']); },
|
|
31
|
-
'io.flow.apple.pay.v0.enums.apple_pay_shipping_type': function () { return faker.helpers.arrayElement(['shipping', 'delivery', '
|
|
31
|
+
'io.flow.apple.pay.v0.enums.apple_pay_shipping_type': function () { return faker.helpers.arrayElement(['shipping', 'delivery', 'store_pickup', 'service_pickup']); },
|
|
32
32
|
'io.flow.apple.pay.v0.enums.apple_pay_supported_networks': function () { return faker.helpers.arrayElement([
|
|
33
33
|
'amex',
|
|
34
34
|
'chinaUnionPay',
|
|
@@ -41,7 +41,7 @@ var factories = {
|
|
|
41
41
|
'io.flow.apple.pay.v0.models.apple_pay_line_item': function () { return ({
|
|
42
42
|
label: factories.string(),
|
|
43
43
|
type: factories['io.flow.apple.pay.v0.enums.apple_pay_line_item_type'](),
|
|
44
|
-
amount: factories.
|
|
44
|
+
amount: factories.decimal(),
|
|
45
45
|
}); },
|
|
46
46
|
'io.flow.apple.pay.v0.models.apple_pay_payment_contact': function () { return ({
|
|
47
47
|
email_address: factories.string(),
|
|
@@ -88,7 +88,7 @@ var factories = {
|
|
|
88
88
|
'io.flow.apple.pay.v0.models.apple_pay_shipping_method': function () { return ({
|
|
89
89
|
label: factories.string(),
|
|
90
90
|
detail: factories.string(),
|
|
91
|
-
amount: factories.
|
|
91
|
+
amount: factories.decimal(),
|
|
92
92
|
identifier: factories.string(),
|
|
93
93
|
}); },
|
|
94
94
|
'io.flow.ben.test.internal.v0.models.generate_load_multiple_orgs': function () { return ({
|
|
@@ -1380,12 +1380,17 @@ var factories = {
|
|
|
1380
1380
|
'charge.failed',
|
|
1381
1381
|
'charge.pending',
|
|
1382
1382
|
'charge.refunded',
|
|
1383
|
-
'charge.
|
|
1383
|
+
'charge.expired',
|
|
1384
1384
|
'charge.succeeded',
|
|
1385
1385
|
'charge.updated',
|
|
1386
|
+
'charge.refund.updated',
|
|
1387
|
+
'payment_intent.created',
|
|
1386
1388
|
'payment_intent.amount_capturable_updated',
|
|
1387
1389
|
'payment_intent.payment_failed',
|
|
1388
1390
|
'payment_intent.succeeded',
|
|
1391
|
+
'payment_intent.requires_action',
|
|
1392
|
+
'payment_intent.canceled',
|
|
1393
|
+
'payment_intent.processing',
|
|
1389
1394
|
'source.canceled',
|
|
1390
1395
|
'source.chargeable',
|
|
1391
1396
|
'source.failed',
|
|
@@ -1491,6 +1496,14 @@ var factories = {
|
|
|
1491
1496
|
'three_d_secure',
|
|
1492
1497
|
]); },
|
|
1493
1498
|
'io.flow.stripe.v0.enums.source_usage_type': function () { return faker.helpers.arrayElement(['reusable', 'single_use']); },
|
|
1499
|
+
'io.flow.stripe.v0.enums.stored_credential_transaction_type': function () { return faker.helpers.arrayElement([
|
|
1500
|
+
'setup_on_session',
|
|
1501
|
+
'setup_off_session_recurring',
|
|
1502
|
+
'setup_off_session_unscheduled',
|
|
1503
|
+
'stored_on_session',
|
|
1504
|
+
'stored_on_session_recurring',
|
|
1505
|
+
'stored_on_session_unscheduled',
|
|
1506
|
+
]); },
|
|
1494
1507
|
'io.flow.stripe.v0.enums.three_d_secure_support': function () { return faker.helpers.arrayElement(['required', 'recommended', 'optional', 'not_supported']); },
|
|
1495
1508
|
'io.flow.stripe.v0.enums.three_ds_authentication_flow': function () { return faker.helpers.arrayElement(['challenge', 'frictionless']); },
|
|
1496
1509
|
'io.flow.stripe.v0.enums.three_ds_result': function () { return faker.helpers.arrayElement([
|
|
@@ -1590,6 +1603,10 @@ var factories = {
|
|
|
1590
1603
|
address_postal_code_check: factories['io.flow.stripe.v0.enums.check_outcome'](),
|
|
1591
1604
|
cvc_check: factories['io.flow.stripe.v0.enums.check_outcome'](),
|
|
1592
1605
|
}); },
|
|
1606
|
+
'io.flow.stripe.v0.models.card_networks': function () { return ({
|
|
1607
|
+
available: arrayOf(function () { return factories.string(); }),
|
|
1608
|
+
preferred: factories.string(),
|
|
1609
|
+
}); },
|
|
1593
1610
|
'io.flow.stripe.v0.models.card_request': function () { return ({
|
|
1594
1611
|
object: factories.string(),
|
|
1595
1612
|
exp_month: factories.string(),
|
|
@@ -1743,6 +1760,8 @@ var factories = {
|
|
|
1743
1760
|
order_number: factories.string(),
|
|
1744
1761
|
authorization_id: factories.string(),
|
|
1745
1762
|
organization_id: factories.string(),
|
|
1763
|
+
payment_request_id: factories.string(),
|
|
1764
|
+
payment_request_order_reference: factories.string(),
|
|
1746
1765
|
}); },
|
|
1747
1766
|
'io.flow.stripe.v0.models.network_token_used': function () { return ({
|
|
1748
1767
|
used: factories.boolean(),
|
|
@@ -1851,6 +1870,7 @@ var factories = {
|
|
|
1851
1870
|
'io.flow.stripe.v0.models.payment_intent_confirmation_form': function () { return ({
|
|
1852
1871
|
off_session: factories.boolean(),
|
|
1853
1872
|
payment_method: factories.string(),
|
|
1873
|
+
payment_method_data: factories['io.flow.stripe.v0.unions.payment_method_data'](),
|
|
1854
1874
|
payment_method_options: factories['io.flow.stripe.v0.models.payment_method_options'](),
|
|
1855
1875
|
payment_method_types: arrayOf(function () { return factories.string(); }),
|
|
1856
1876
|
receipt_email: factories.string(),
|
|
@@ -1870,6 +1890,7 @@ var factories = {
|
|
|
1870
1890
|
metadata: factories['io.flow.stripe.v0.models.metadata'](),
|
|
1871
1891
|
on_behalf_of: factories.string(),
|
|
1872
1892
|
payment_method: factories.string(),
|
|
1893
|
+
payment_method_data: factories['io.flow.stripe.v0.unions.payment_method_data'](),
|
|
1873
1894
|
payment_method_options: factories['io.flow.stripe.v0.models.payment_method_options'](),
|
|
1874
1895
|
payment_method_types: arrayOf(function () { return factories.string(); }),
|
|
1875
1896
|
receipt_email: factories.string(),
|
|
@@ -1900,7 +1921,7 @@ var factories = {
|
|
|
1900
1921
|
id: factories.string(),
|
|
1901
1922
|
object: factories.string(),
|
|
1902
1923
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
1903
|
-
card: factories['io.flow.stripe.v0.models.
|
|
1924
|
+
card: factories['io.flow.stripe.v0.models.payment_method_card_details'](),
|
|
1904
1925
|
card_present: factories.object(),
|
|
1905
1926
|
created: factories.long(),
|
|
1906
1927
|
customer: factories.string(),
|
|
@@ -1913,6 +1934,30 @@ var factories = {
|
|
|
1913
1934
|
name: factories.string(),
|
|
1914
1935
|
phone: factories.string(),
|
|
1915
1936
|
}); },
|
|
1937
|
+
'io.flow.stripe.v0.models.payment_method_card_details': function () { return ({
|
|
1938
|
+
brand: factories['io.flow.stripe.v0.enums.card_brand'](),
|
|
1939
|
+
checks: factories['io.flow.stripe.v0.models.card_checks'](),
|
|
1940
|
+
country: factories.string(),
|
|
1941
|
+
exp_month: factories.long(),
|
|
1942
|
+
exp_year: factories.long(),
|
|
1943
|
+
fingerprint: factories.string(),
|
|
1944
|
+
funding: factories['io.flow.stripe.v0.enums.card_funding_type'](),
|
|
1945
|
+
last4: factories.string(),
|
|
1946
|
+
networks: factories['io.flow.stripe.v0.models.card_networks'](),
|
|
1947
|
+
three_d_secure_usage: factories['io.flow.stripe.v0.models.three_d_secure_usage'](),
|
|
1948
|
+
}); },
|
|
1949
|
+
'io.flow.stripe.v0.models.payment_method_card_form': function () { return ({
|
|
1950
|
+
exp_month: factories.string(),
|
|
1951
|
+
exp_year: factories.string(),
|
|
1952
|
+
number: factories.string(),
|
|
1953
|
+
cvc: factories.string(),
|
|
1954
|
+
}); },
|
|
1955
|
+
'io.flow.stripe.v0.models.payment_method_data_card': function () { return ({
|
|
1956
|
+
type: 'card',
|
|
1957
|
+
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
1958
|
+
metadata: factories.object(),
|
|
1959
|
+
card: factories['io.flow.stripe.v0.models.payment_method_card_form'](),
|
|
1960
|
+
}); },
|
|
1916
1961
|
'io.flow.stripe.v0.models.payment_method_details_card': function () { return ({
|
|
1917
1962
|
type: 'card',
|
|
1918
1963
|
card: factories['io.flow.stripe.v0.models.payment_method_details_card_information'](),
|
|
@@ -1946,16 +1991,19 @@ var factories = {
|
|
|
1946
1991
|
payment_method_category: factories['io.flow.stripe.v0.enums.payment_method_category_klarna'](),
|
|
1947
1992
|
preferred_locale: factories['io.flow.stripe.v0.enums.preferred_locale_klarna'](),
|
|
1948
1993
|
}); },
|
|
1949
|
-
'io.flow.stripe.v0.models.
|
|
1950
|
-
type:
|
|
1994
|
+
'io.flow.stripe.v0.models.payment_method_form_card': function () { return ({
|
|
1995
|
+
type: 'card',
|
|
1951
1996
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
1952
|
-
|
|
1997
|
+
metadata: factories.object(),
|
|
1998
|
+
card: factories['io.flow.stripe.v0.models.payment_method_card_form'](),
|
|
1953
1999
|
}); },
|
|
1954
2000
|
'io.flow.stripe.v0.models.payment_method_options': function () { return ({
|
|
1955
2001
|
card: factories['io.flow.stripe.v0.models.payment_method_options_card'](),
|
|
1956
2002
|
}); },
|
|
1957
2003
|
'io.flow.stripe.v0.models.payment_method_options_card': function () { return ({
|
|
2004
|
+
network: factories.string(),
|
|
1958
2005
|
request_three_d_secure: factories['io.flow.stripe.v0.enums.request_three_d_secure_type'](),
|
|
2006
|
+
stored_credential_transaction_type: factories['io.flow.stripe.v0.enums.stored_credential_transaction_type'](),
|
|
1959
2007
|
}); },
|
|
1960
2008
|
'io.flow.stripe.v0.models.payment_outcome': function () { return ({
|
|
1961
2009
|
network_status: factories['io.flow.stripe.v0.enums.network_status'](),
|
|
@@ -2181,6 +2229,9 @@ var factories = {
|
|
|
2181
2229
|
type: factories['io.flow.stripe.v0.enums.use_stripe_sdk_type'](),
|
|
2182
2230
|
stripe_js: factories.string(),
|
|
2183
2231
|
}); },
|
|
2232
|
+
'io.flow.stripe.v0.models.three_d_secure_usage': function () { return ({
|
|
2233
|
+
supported: factories.boolean(),
|
|
2234
|
+
}); },
|
|
2184
2235
|
'io.flow.stripe.v0.models.token': function () { return ({
|
|
2185
2236
|
id: factories.string(),
|
|
2186
2237
|
object: factories.string(),
|
|
@@ -2219,6 +2270,10 @@ var factories = {
|
|
|
2219
2270
|
]);
|
|
2220
2271
|
return f();
|
|
2221
2272
|
},
|
|
2273
|
+
'io.flow.stripe.v0.unions.payment_method_data': function () {
|
|
2274
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.stripe.v0.models.payment_method_data_card'](); }]);
|
|
2275
|
+
return f();
|
|
2276
|
+
},
|
|
2222
2277
|
'io.flow.stripe.v0.unions.payment_method_details': function () {
|
|
2223
2278
|
var f = faker.helpers.arrayElement([
|
|
2224
2279
|
function () { return factories['io.flow.stripe.v0.models.payment_method_details_card'](); },
|
|
@@ -2226,6 +2281,10 @@ var factories = {
|
|
|
2226
2281
|
]);
|
|
2227
2282
|
return f();
|
|
2228
2283
|
},
|
|
2284
|
+
'io.flow.stripe.v0.unions.payment_method_form': function () {
|
|
2285
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.stripe.v0.models.payment_method_form_card'](); }]);
|
|
2286
|
+
return f();
|
|
2287
|
+
},
|
|
2229
2288
|
'io.flow.units.v0.enums.unit_of_length': function () { return faker.helpers.arrayElement(['millimeter', 'centimeter', 'inch', 'foot', 'meter']); },
|
|
2230
2289
|
'io.flow.units.v0.enums.unit_of_volume': function () { return faker.helpers.arrayElement(['cubic_inch', 'cubic_meter']); },
|
|
2231
2290
|
'io.flow.units.v0.enums.unit_of_weight': function () { return faker.helpers.arrayElement(['gram', 'kilogram', 'ounce', 'pound']); },
|
|
@@ -9122,6 +9181,11 @@ var factories = {
|
|
|
9122
9181
|
starts_at: factories.date_time_iso_8601(),
|
|
9123
9182
|
ends_at: factories.date_time_iso_8601(),
|
|
9124
9183
|
}); },
|
|
9184
|
+
'io.flow.v0.models.pending_transaction': function () { return ({
|
|
9185
|
+
id: factories.string(),
|
|
9186
|
+
reason: factories['io.flow.v0.enums.transaction_payout_pending_reason'](),
|
|
9187
|
+
reason_set_at: factories.date_time_iso_8601(),
|
|
9188
|
+
}); },
|
|
9125
9189
|
'io.flow.v0.models.percent_margin': function () { return ({
|
|
9126
9190
|
discriminator: 'percent_margin',
|
|
9127
9191
|
percentage: factories.double(),
|
|
@@ -11566,6 +11630,19 @@ var factories = {
|
|
|
11566
11630
|
cvv_result: factories['io.flow.v0.models.cvv_result'](),
|
|
11567
11631
|
network_details: factories['io.flow.v0.models.transaction_network_details_card'](),
|
|
11568
11632
|
}); },
|
|
11633
|
+
'io.flow.v0.models.transaction_metadata_channel': function () { return ({
|
|
11634
|
+
discriminator: 'channel',
|
|
11635
|
+
method: factories.string(),
|
|
11636
|
+
card: factories['io.flow.v0.models.transaction_metadata_channel_card_metadata'](),
|
|
11637
|
+
}); },
|
|
11638
|
+
'io.flow.v0.models.transaction_metadata_channel_card_metadata': function () { return ({
|
|
11639
|
+
type: factories['io.flow.v0.enums.card_type'](),
|
|
11640
|
+
issuer: factories['io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary'](),
|
|
11641
|
+
}); },
|
|
11642
|
+
'io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary': function () { return ({
|
|
11643
|
+
iin: factories.string(),
|
|
11644
|
+
country: factories.string(),
|
|
11645
|
+
}); },
|
|
11569
11646
|
'io.flow.v0.models.transaction_metadata_shipping_label': function () { return ({
|
|
11570
11647
|
discriminator: 'shipping_label',
|
|
11571
11648
|
request_method: factories['io.flow.v0.enums.label_request_method'](),
|
|
@@ -12806,6 +12883,7 @@ var factories = {
|
|
|
12806
12883
|
'io.flow.v0.unions.transaction_metadata': function () {
|
|
12807
12884
|
var f = faker.helpers.arrayElement([
|
|
12808
12885
|
function () { return factories['io.flow.v0.models.transaction_metadata_shipping_label'](); },
|
|
12886
|
+
function () { return factories['io.flow.v0.models.transaction_metadata_channel'](); },
|
|
12809
12887
|
function () { return factories['io.flow.v0.models.transaction_metadata_trueup'](); },
|
|
12810
12888
|
]);
|
|
12811
12889
|
return f();
|
|
@@ -14005,6 +14083,7 @@ export var makePaypalAuthorizationForm = function () { return factories['io.flow
|
|
|
14005
14083
|
export var makePeakSurchargeByWeightServiceFee = function () { return factories['io.flow.v0.models.peak_surcharge_by_weight_service_fee'](); };
|
|
14006
14084
|
export var makePeakSurchargeRatecardFee = function () { return factories['io.flow.v0.models.peak_surcharge_ratecard_fee'](); };
|
|
14007
14085
|
export var makePeakSurchargeServiceFee = function () { return factories['io.flow.v0.models.peak_surcharge_service_fee'](); };
|
|
14086
|
+
export var makePendingTransaction = function () { return factories['io.flow.v0.models.pending_transaction'](); };
|
|
14008
14087
|
export var makePercentMargin = function () { return factories['io.flow.v0.models.percent_margin'](); };
|
|
14009
14088
|
export var makePermissionAudit = function () { return factories['io.flow.v0.models.permission_audit'](); };
|
|
14010
14089
|
export var makePermissionCheck = function () { return factories['io.flow.v0.models.permission_check'](); };
|
|
@@ -14468,6 +14547,9 @@ export var makeTransaction = function () { return factories['io.flow.v0.models.t
|
|
|
14468
14547
|
export var makeTransactionDetails = function () { return factories['io.flow.v0.unions.transaction_details'](); };
|
|
14469
14548
|
export var makeTransactionDetailsCard = function () { return factories['io.flow.v0.models.transaction_details_card'](); };
|
|
14470
14549
|
export var makeTransactionMetadata = function () { return factories['io.flow.v0.unions.transaction_metadata'](); };
|
|
14550
|
+
export var makeTransactionMetadataChannel = function () { return factories['io.flow.v0.models.transaction_metadata_channel'](); };
|
|
14551
|
+
export var makeTransactionMetadataChannelCardMetadata = function () { return factories['io.flow.v0.models.transaction_metadata_channel_card_metadata'](); };
|
|
14552
|
+
export var makeTransactionMetadataChannelCardMetadataIssuerSummary = function () { return factories['io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary'](); };
|
|
14471
14553
|
export var makeTransactionMetadataShippingLabel = function () { return factories['io.flow.v0.models.transaction_metadata_shipping_label'](); };
|
|
14472
14554
|
export var makeTransactionMetadataTrueup = function () { return factories['io.flow.v0.models.transaction_metadata_trueup'](); };
|
|
14473
14555
|
export var makeTransactionMetadataTrueupData = function () { return factories['io.flow.v0.models.transaction_metadata_trueup_data'](); };
|
package/dist/types/api.d.ts
CHANGED
|
@@ -1193,6 +1193,7 @@ export declare const makePaypalAuthorizationForm: () => io.flow.v0.models.Paypal
|
|
|
1193
1193
|
export declare const makePeakSurchargeByWeightServiceFee: () => io.flow.v0.models.PeakSurchargeByWeightServiceFee;
|
|
1194
1194
|
export declare const makePeakSurchargeRatecardFee: () => io.flow.v0.models.PeakSurchargeRatecardFee;
|
|
1195
1195
|
export declare const makePeakSurchargeServiceFee: () => io.flow.v0.models.PeakSurchargeServiceFee;
|
|
1196
|
+
export declare const makePendingTransaction: () => io.flow.v0.models.PendingTransaction;
|
|
1196
1197
|
export declare const makePercentMargin: () => io.flow.v0.models.PercentMargin;
|
|
1197
1198
|
export declare const makePermissionAudit: () => io.flow.v0.models.PermissionAudit;
|
|
1198
1199
|
export declare const makePermissionCheck: () => io.flow.v0.models.PermissionCheck;
|
|
@@ -1656,6 +1657,9 @@ export declare const makeTransaction: () => io.flow.v0.models.Transaction;
|
|
|
1656
1657
|
export declare const makeTransactionDetails: () => io.flow.v0.models.TransactionDetailsCard;
|
|
1657
1658
|
export declare const makeTransactionDetailsCard: () => io.flow.v0.models.TransactionDetailsCard;
|
|
1658
1659
|
export declare const makeTransactionMetadata: () => io.flow.v0.unions.TransactionMetadata;
|
|
1660
|
+
export declare const makeTransactionMetadataChannel: () => io.flow.v0.models.TransactionMetadataChannel;
|
|
1661
|
+
export declare const makeTransactionMetadataChannelCardMetadata: () => io.flow.v0.models.TransactionMetadataChannelCardMetadata;
|
|
1662
|
+
export declare const makeTransactionMetadataChannelCardMetadataIssuerSummary: () => io.flow.v0.models.TransactionMetadataChannelCardMetadataIssuerSummary;
|
|
1659
1663
|
export declare const makeTransactionMetadataShippingLabel: () => io.flow.v0.models.TransactionMetadataShippingLabel;
|
|
1660
1664
|
export declare const makeTransactionMetadataTrueup: () => io.flow.v0.models.TransactionMetadataTrueup;
|
|
1661
1665
|
export declare const makeTransactionMetadataTrueupData: () => io.flow.v0.models.TransactionMetadataTrueupData;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-factories",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.66",
|
|
4
4
|
"description": "Flow API mock data factories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"flow",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"@faker-js/faker": "^6.2.0",
|
|
37
37
|
"@flowio/api-types": "*"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "cc45ff4a674f1a129166e04d6910cb7a1a2f0da1"
|
|
40
40
|
}
|
package/src/api.ts
CHANGED
|
@@ -30,10 +30,10 @@ const factories = {
|
|
|
30
30
|
string: () => faker.datatype.string(),
|
|
31
31
|
unit: () => undefined,
|
|
32
32
|
uuid: () => faker.datatype.uuid(),
|
|
33
|
-
'io.flow.apple.pay.v0.enums.apple_pay_contact_field': (): io.flow.apple.pay.v0.enums.ApplePayContactField => faker.helpers.arrayElement(['email', 'name', 'phone', '
|
|
33
|
+
'io.flow.apple.pay.v0.enums.apple_pay_contact_field': (): io.flow.apple.pay.v0.enums.ApplePayContactField => faker.helpers.arrayElement(['email', 'name', 'phone', 'postal_address', 'phonetic_name']),
|
|
34
34
|
'io.flow.apple.pay.v0.enums.apple_pay_line_item_type': (): io.flow.apple.pay.v0.enums.ApplePayLineItemType => faker.helpers.arrayElement(['final', 'pending']),
|
|
35
35
|
'io.flow.apple.pay.v0.enums.apple_pay_merchant_capability': (): io.flow.apple.pay.v0.enums.ApplePayMerchantCapability => faker.helpers.arrayElement(['supports3DS', 'supportsCredit', 'supportsDebit', 'supportsEMV']),
|
|
36
|
-
'io.flow.apple.pay.v0.enums.apple_pay_shipping_type': (): io.flow.apple.pay.v0.enums.ApplePayShippingType => faker.helpers.arrayElement(['shipping', 'delivery', '
|
|
36
|
+
'io.flow.apple.pay.v0.enums.apple_pay_shipping_type': (): io.flow.apple.pay.v0.enums.ApplePayShippingType => faker.helpers.arrayElement(['shipping', 'delivery', 'store_pickup', 'service_pickup']),
|
|
37
37
|
|
|
38
38
|
'io.flow.apple.pay.v0.enums.apple_pay_supported_networks': (): io.flow.apple.pay.v0.enums.ApplePaySupportedNetworks => faker.helpers.arrayElement([
|
|
39
39
|
'amex',
|
|
@@ -48,7 +48,7 @@ const factories = {
|
|
|
48
48
|
'io.flow.apple.pay.v0.models.apple_pay_line_item': (): io.flow.apple.pay.v0.models.ApplePayLineItem => ({
|
|
49
49
|
label: factories.string(),
|
|
50
50
|
type: factories['io.flow.apple.pay.v0.enums.apple_pay_line_item_type'](),
|
|
51
|
-
amount: factories.
|
|
51
|
+
amount: factories.decimal(),
|
|
52
52
|
}),
|
|
53
53
|
|
|
54
54
|
'io.flow.apple.pay.v0.models.apple_pay_payment_contact': (): io.flow.apple.pay.v0.models.ApplePayPaymentContact => ({
|
|
@@ -107,7 +107,7 @@ const factories = {
|
|
|
107
107
|
'io.flow.apple.pay.v0.models.apple_pay_shipping_method': (): io.flow.apple.pay.v0.models.ApplePayShippingMethod => ({
|
|
108
108
|
label: factories.string(),
|
|
109
109
|
detail: factories.string(),
|
|
110
|
-
amount: factories.
|
|
110
|
+
amount: factories.decimal(),
|
|
111
111
|
identifier: factories.string(),
|
|
112
112
|
}),
|
|
113
113
|
|
|
@@ -1640,12 +1640,17 @@ const factories = {
|
|
|
1640
1640
|
'charge.failed',
|
|
1641
1641
|
'charge.pending',
|
|
1642
1642
|
'charge.refunded',
|
|
1643
|
-
'charge.
|
|
1643
|
+
'charge.expired',
|
|
1644
1644
|
'charge.succeeded',
|
|
1645
1645
|
'charge.updated',
|
|
1646
|
+
'charge.refund.updated',
|
|
1647
|
+
'payment_intent.created',
|
|
1646
1648
|
'payment_intent.amount_capturable_updated',
|
|
1647
1649
|
'payment_intent.payment_failed',
|
|
1648
1650
|
'payment_intent.succeeded',
|
|
1651
|
+
'payment_intent.requires_action',
|
|
1652
|
+
'payment_intent.canceled',
|
|
1653
|
+
'payment_intent.processing',
|
|
1649
1654
|
'source.canceled',
|
|
1650
1655
|
'source.chargeable',
|
|
1651
1656
|
'source.failed',
|
|
@@ -1761,6 +1766,16 @@ const factories = {
|
|
|
1761
1766
|
]),
|
|
1762
1767
|
|
|
1763
1768
|
'io.flow.stripe.v0.enums.source_usage_type': (): io.flow.stripe.v0.enums.SourceUsageType => faker.helpers.arrayElement(['reusable', 'single_use']),
|
|
1769
|
+
|
|
1770
|
+
'io.flow.stripe.v0.enums.stored_credential_transaction_type': (): io.flow.stripe.v0.enums.StoredCredentialTransactionType => faker.helpers.arrayElement([
|
|
1771
|
+
'setup_on_session',
|
|
1772
|
+
'setup_off_session_recurring',
|
|
1773
|
+
'setup_off_session_unscheduled',
|
|
1774
|
+
'stored_on_session',
|
|
1775
|
+
'stored_on_session_recurring',
|
|
1776
|
+
'stored_on_session_unscheduled',
|
|
1777
|
+
]),
|
|
1778
|
+
|
|
1764
1779
|
'io.flow.stripe.v0.enums.three_d_secure_support': (): io.flow.stripe.v0.enums.ThreeDSecureSupport => faker.helpers.arrayElement(['required', 'recommended', 'optional', 'not_supported']),
|
|
1765
1780
|
'io.flow.stripe.v0.enums.three_ds_authentication_flow': (): io.flow.stripe.v0.enums.ThreeDsAuthenticationFlow => faker.helpers.arrayElement(['challenge', 'frictionless']),
|
|
1766
1781
|
|
|
@@ -1871,6 +1886,11 @@ const factories = {
|
|
|
1871
1886
|
cvc_check: factories['io.flow.stripe.v0.enums.check_outcome'](),
|
|
1872
1887
|
}),
|
|
1873
1888
|
|
|
1889
|
+
'io.flow.stripe.v0.models.card_networks': (): io.flow.stripe.v0.models.CardNetworks => ({
|
|
1890
|
+
available: arrayOf(() => factories.string()),
|
|
1891
|
+
preferred: factories.string(),
|
|
1892
|
+
}),
|
|
1893
|
+
|
|
1874
1894
|
'io.flow.stripe.v0.models.card_request': (): io.flow.stripe.v0.models.CardRequest => ({
|
|
1875
1895
|
object: factories.string(),
|
|
1876
1896
|
exp_month: factories.string(),
|
|
@@ -2042,6 +2062,8 @@ const factories = {
|
|
|
2042
2062
|
order_number: factories.string(),
|
|
2043
2063
|
authorization_id: factories.string(),
|
|
2044
2064
|
organization_id: factories.string(),
|
|
2065
|
+
payment_request_id: factories.string(),
|
|
2066
|
+
payment_request_order_reference: factories.string(),
|
|
2045
2067
|
}),
|
|
2046
2068
|
|
|
2047
2069
|
'io.flow.stripe.v0.models.network_token_used': (): io.flow.stripe.v0.models.NetworkTokenUsed => ({
|
|
@@ -2162,6 +2184,7 @@ const factories = {
|
|
|
2162
2184
|
'io.flow.stripe.v0.models.payment_intent_confirmation_form': (): io.flow.stripe.v0.models.PaymentIntentConfirmationForm => ({
|
|
2163
2185
|
off_session: factories.boolean(),
|
|
2164
2186
|
payment_method: factories.string(),
|
|
2187
|
+
payment_method_data: factories['io.flow.stripe.v0.unions.payment_method_data'](),
|
|
2165
2188
|
payment_method_options: factories['io.flow.stripe.v0.models.payment_method_options'](),
|
|
2166
2189
|
payment_method_types: arrayOf(() => factories.string()),
|
|
2167
2190
|
receipt_email: factories.string(),
|
|
@@ -2182,6 +2205,7 @@ const factories = {
|
|
|
2182
2205
|
metadata: factories['io.flow.stripe.v0.models.metadata'](),
|
|
2183
2206
|
on_behalf_of: factories.string(),
|
|
2184
2207
|
payment_method: factories.string(),
|
|
2208
|
+
payment_method_data: factories['io.flow.stripe.v0.unions.payment_method_data'](),
|
|
2185
2209
|
payment_method_options: factories['io.flow.stripe.v0.models.payment_method_options'](),
|
|
2186
2210
|
payment_method_types: arrayOf(() => factories.string()),
|
|
2187
2211
|
receipt_email: factories.string(),
|
|
@@ -2214,7 +2238,7 @@ const factories = {
|
|
|
2214
2238
|
id: factories.string(),
|
|
2215
2239
|
object: factories.string(),
|
|
2216
2240
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2217
|
-
card: factories['io.flow.stripe.v0.models.
|
|
2241
|
+
card: factories['io.flow.stripe.v0.models.payment_method_card_details'](),
|
|
2218
2242
|
card_present: factories.object(),
|
|
2219
2243
|
created: factories.long(),
|
|
2220
2244
|
customer: factories.string(),
|
|
@@ -2229,6 +2253,33 @@ const factories = {
|
|
|
2229
2253
|
phone: factories.string(),
|
|
2230
2254
|
}),
|
|
2231
2255
|
|
|
2256
|
+
'io.flow.stripe.v0.models.payment_method_card_details': (): io.flow.stripe.v0.models.PaymentMethodCardDetails => ({
|
|
2257
|
+
brand: factories['io.flow.stripe.v0.enums.card_brand'](),
|
|
2258
|
+
checks: factories['io.flow.stripe.v0.models.card_checks'](),
|
|
2259
|
+
country: factories.string(),
|
|
2260
|
+
exp_month: factories.long(),
|
|
2261
|
+
exp_year: factories.long(),
|
|
2262
|
+
fingerprint: factories.string(),
|
|
2263
|
+
funding: factories['io.flow.stripe.v0.enums.card_funding_type'](),
|
|
2264
|
+
last4: factories.string(),
|
|
2265
|
+
networks: factories['io.flow.stripe.v0.models.card_networks'](),
|
|
2266
|
+
three_d_secure_usage: factories['io.flow.stripe.v0.models.three_d_secure_usage'](),
|
|
2267
|
+
}),
|
|
2268
|
+
|
|
2269
|
+
'io.flow.stripe.v0.models.payment_method_card_form': (): io.flow.stripe.v0.models.PaymentMethodCardForm => ({
|
|
2270
|
+
exp_month: factories.string(),
|
|
2271
|
+
exp_year: factories.string(),
|
|
2272
|
+
number: factories.string(),
|
|
2273
|
+
cvc: factories.string(),
|
|
2274
|
+
}),
|
|
2275
|
+
|
|
2276
|
+
'io.flow.stripe.v0.models.payment_method_data_card': (): io.flow.stripe.v0.models.PaymentMethodDataCard => ({
|
|
2277
|
+
type: 'card',
|
|
2278
|
+
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2279
|
+
metadata: factories.object(),
|
|
2280
|
+
card: factories['io.flow.stripe.v0.models.payment_method_card_form'](),
|
|
2281
|
+
}),
|
|
2282
|
+
|
|
2232
2283
|
'io.flow.stripe.v0.models.payment_method_details_card': (): io.flow.stripe.v0.models.PaymentMethodDetailsCard => ({
|
|
2233
2284
|
type: 'card',
|
|
2234
2285
|
card: factories['io.flow.stripe.v0.models.payment_method_details_card_information'](),
|
|
@@ -2266,10 +2317,11 @@ const factories = {
|
|
|
2266
2317
|
preferred_locale: factories['io.flow.stripe.v0.enums.preferred_locale_klarna'](),
|
|
2267
2318
|
}),
|
|
2268
2319
|
|
|
2269
|
-
'io.flow.stripe.v0.models.
|
|
2270
|
-
type:
|
|
2320
|
+
'io.flow.stripe.v0.models.payment_method_form_card': (): io.flow.stripe.v0.models.PaymentMethodFormCard => ({
|
|
2321
|
+
type: 'card',
|
|
2271
2322
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2272
|
-
|
|
2323
|
+
metadata: factories.object(),
|
|
2324
|
+
card: factories['io.flow.stripe.v0.models.payment_method_card_form'](),
|
|
2273
2325
|
}),
|
|
2274
2326
|
|
|
2275
2327
|
'io.flow.stripe.v0.models.payment_method_options': (): io.flow.stripe.v0.models.PaymentMethodOptions => ({
|
|
@@ -2277,7 +2329,9 @@ const factories = {
|
|
|
2277
2329
|
}),
|
|
2278
2330
|
|
|
2279
2331
|
'io.flow.stripe.v0.models.payment_method_options_card': (): io.flow.stripe.v0.models.PaymentMethodOptionsCard => ({
|
|
2332
|
+
network: factories.string(),
|
|
2280
2333
|
request_three_d_secure: factories['io.flow.stripe.v0.enums.request_three_d_secure_type'](),
|
|
2334
|
+
stored_credential_transaction_type: factories['io.flow.stripe.v0.enums.stored_credential_transaction_type'](),
|
|
2281
2335
|
}),
|
|
2282
2336
|
|
|
2283
2337
|
'io.flow.stripe.v0.models.payment_outcome': (): io.flow.stripe.v0.models.PaymentOutcome => ({
|
|
@@ -2529,6 +2583,10 @@ const factories = {
|
|
|
2529
2583
|
stripe_js: factories.string(),
|
|
2530
2584
|
}),
|
|
2531
2585
|
|
|
2586
|
+
'io.flow.stripe.v0.models.three_d_secure_usage': (): io.flow.stripe.v0.models.ThreeDSecureUsage => ({
|
|
2587
|
+
supported: factories.boolean(),
|
|
2588
|
+
}),
|
|
2589
|
+
|
|
2532
2590
|
'io.flow.stripe.v0.models.token': (): io.flow.stripe.v0.models.Token => ({
|
|
2533
2591
|
id: factories.string(),
|
|
2534
2592
|
object: factories.string(),
|
|
@@ -2574,6 +2632,11 @@ const factories = {
|
|
|
2574
2632
|
return f();
|
|
2575
2633
|
},
|
|
2576
2634
|
|
|
2635
|
+
'io.flow.stripe.v0.unions.payment_method_data': (): io.flow.stripe.v0.unions.PaymentMethodData => {
|
|
2636
|
+
const f = faker.helpers.arrayElement([() => factories['io.flow.stripe.v0.models.payment_method_data_card']()]);
|
|
2637
|
+
return f();
|
|
2638
|
+
},
|
|
2639
|
+
|
|
2577
2640
|
'io.flow.stripe.v0.unions.payment_method_details': (): io.flow.stripe.v0.unions.PaymentMethodDetails => {
|
|
2578
2641
|
const f = faker.helpers.arrayElement([
|
|
2579
2642
|
() => factories['io.flow.stripe.v0.models.payment_method_details_card'](),
|
|
@@ -2583,6 +2646,11 @@ const factories = {
|
|
|
2583
2646
|
return f();
|
|
2584
2647
|
},
|
|
2585
2648
|
|
|
2649
|
+
'io.flow.stripe.v0.unions.payment_method_form': (): io.flow.stripe.v0.unions.PaymentMethodForm => {
|
|
2650
|
+
const f = faker.helpers.arrayElement([() => factories['io.flow.stripe.v0.models.payment_method_form_card']()]);
|
|
2651
|
+
return f();
|
|
2652
|
+
},
|
|
2653
|
+
|
|
2586
2654
|
'io.flow.units.v0.enums.unit_of_length': (): io.flow.units.v0.enums.UnitOfLength => faker.helpers.arrayElement(['millimeter', 'centimeter', 'inch', 'foot', 'meter']),
|
|
2587
2655
|
'io.flow.units.v0.enums.unit_of_volume': (): io.flow.units.v0.enums.UnitOfVolume => faker.helpers.arrayElement(['cubic_inch', 'cubic_meter']),
|
|
2588
2656
|
'io.flow.units.v0.enums.unit_of_weight': (): io.flow.units.v0.enums.UnitOfWeight => faker.helpers.arrayElement(['gram', 'kilogram', 'ounce', 'pound']),
|
|
@@ -10540,6 +10608,12 @@ const factories = {
|
|
|
10540
10608
|
ends_at: factories.date_time_iso_8601(),
|
|
10541
10609
|
}),
|
|
10542
10610
|
|
|
10611
|
+
'io.flow.v0.models.pending_transaction': (): io.flow.v0.models.PendingTransaction => ({
|
|
10612
|
+
id: factories.string(),
|
|
10613
|
+
reason: factories['io.flow.v0.enums.transaction_payout_pending_reason'](),
|
|
10614
|
+
reason_set_at: factories.date_time_iso_8601(),
|
|
10615
|
+
}),
|
|
10616
|
+
|
|
10543
10617
|
'io.flow.v0.models.percent_margin': (): io.flow.v0.models.PercentMargin => ({
|
|
10544
10618
|
discriminator: 'percent_margin',
|
|
10545
10619
|
percentage: factories.double(),
|
|
@@ -13367,6 +13441,22 @@ const factories = {
|
|
|
13367
13441
|
network_details: factories['io.flow.v0.models.transaction_network_details_card'](),
|
|
13368
13442
|
}),
|
|
13369
13443
|
|
|
13444
|
+
'io.flow.v0.models.transaction_metadata_channel': (): io.flow.v0.models.TransactionMetadataChannel => ({
|
|
13445
|
+
discriminator: 'channel',
|
|
13446
|
+
method: factories.string(),
|
|
13447
|
+
card: factories['io.flow.v0.models.transaction_metadata_channel_card_metadata'](),
|
|
13448
|
+
}),
|
|
13449
|
+
|
|
13450
|
+
'io.flow.v0.models.transaction_metadata_channel_card_metadata': (): io.flow.v0.models.TransactionMetadataChannelCardMetadata => ({
|
|
13451
|
+
type: factories['io.flow.v0.enums.card_type'](),
|
|
13452
|
+
issuer: factories['io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary'](),
|
|
13453
|
+
}),
|
|
13454
|
+
|
|
13455
|
+
'io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary': (): io.flow.v0.models.TransactionMetadataChannelCardMetadataIssuerSummary => ({
|
|
13456
|
+
iin: factories.string(),
|
|
13457
|
+
country: factories.string(),
|
|
13458
|
+
}),
|
|
13459
|
+
|
|
13370
13460
|
'io.flow.v0.models.transaction_metadata_shipping_label': (): io.flow.v0.models.TransactionMetadataShippingLabel => ({
|
|
13371
13461
|
discriminator: 'shipping_label',
|
|
13372
13462
|
request_method: factories['io.flow.v0.enums.label_request_method'](),
|
|
@@ -14857,6 +14947,7 @@ const factories = {
|
|
|
14857
14947
|
'io.flow.v0.unions.transaction_metadata': (): io.flow.v0.unions.TransactionMetadata => {
|
|
14858
14948
|
const f = faker.helpers.arrayElement([
|
|
14859
14949
|
() => factories['io.flow.v0.models.transaction_metadata_shipping_label'](),
|
|
14950
|
+
() => factories['io.flow.v0.models.transaction_metadata_channel'](),
|
|
14860
14951
|
() => factories['io.flow.v0.models.transaction_metadata_trueup'](),
|
|
14861
14952
|
]);
|
|
14862
14953
|
|
|
@@ -16058,6 +16149,7 @@ export const makePaypalAuthorizationForm = () => factories['io.flow.v0.models.pa
|
|
|
16058
16149
|
export const makePeakSurchargeByWeightServiceFee = () => factories['io.flow.v0.models.peak_surcharge_by_weight_service_fee']();
|
|
16059
16150
|
export const makePeakSurchargeRatecardFee = () => factories['io.flow.v0.models.peak_surcharge_ratecard_fee']();
|
|
16060
16151
|
export const makePeakSurchargeServiceFee = () => factories['io.flow.v0.models.peak_surcharge_service_fee']();
|
|
16152
|
+
export const makePendingTransaction = () => factories['io.flow.v0.models.pending_transaction']();
|
|
16061
16153
|
export const makePercentMargin = () => factories['io.flow.v0.models.percent_margin']();
|
|
16062
16154
|
export const makePermissionAudit = () => factories['io.flow.v0.models.permission_audit']();
|
|
16063
16155
|
export const makePermissionCheck = () => factories['io.flow.v0.models.permission_check']();
|
|
@@ -16521,6 +16613,9 @@ export const makeTransaction = () => factories['io.flow.v0.models.transaction'](
|
|
|
16521
16613
|
export const makeTransactionDetails = () => factories['io.flow.v0.unions.transaction_details']();
|
|
16522
16614
|
export const makeTransactionDetailsCard = () => factories['io.flow.v0.models.transaction_details_card']();
|
|
16523
16615
|
export const makeTransactionMetadata = () => factories['io.flow.v0.unions.transaction_metadata']();
|
|
16616
|
+
export const makeTransactionMetadataChannel = () => factories['io.flow.v0.models.transaction_metadata_channel']();
|
|
16617
|
+
export const makeTransactionMetadataChannelCardMetadata = () => factories['io.flow.v0.models.transaction_metadata_channel_card_metadata']();
|
|
16618
|
+
export const makeTransactionMetadataChannelCardMetadataIssuerSummary = () => factories['io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary']();
|
|
16524
16619
|
export const makeTransactionMetadataShippingLabel = () => factories['io.flow.v0.models.transaction_metadata_shipping_label']();
|
|
16525
16620
|
export const makeTransactionMetadataTrueup = () => factories['io.flow.v0.models.transaction_metadata_trueup']();
|
|
16526
16621
|
export const makeTransactionMetadataTrueupData = () => factories['io.flow.v0.models.transaction_metadata_trueup_data']();
|