@flowio/api-factories 0.0.64 → 0.0.65
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 +112 -6
- package/dist/esm/api.js +103 -4
- package/dist/types/api.d.ts +8 -1
- package/package.json +2 -2
- package/src/api.ts +117 -6
package/dist/cjs/api.js
CHANGED
|
@@ -36,8 +36,8 @@ exports.makeShopifyLocalizedVariant = exports.makeShopifyLocalizedOrder = export
|
|
|
36
36
|
exports.makeSubcatalogUpserted = exports.makeSubcatalogStatistics = exports.makeSubcatalogSettingsForm = exports.makeSubcatalogSettings = exports.makeSubcatalogReference = exports.makeSubcatalogItemVersion = exports.makeSubcatalogItemUpserted = exports.makeSubcatalogItemStatus = exports.makeSubcatalogItemDeleted = exports.makeSubcatalogItem = exports.makeSubcatalogForm = exports.makeSubcatalogDeleted = exports.makeSubcatalog = exports.makeStripeAuthorizationResultActionDetails = exports.makeStripeAuthenticationDataForm = exports.makeStripeAuthenticationData = exports.makeStreetAddress = exports.makeStrategy = exports.makeStoredMethodUsageStep = exports.makeStatementUpserted = exports.makeStatementDeleted = exports.makeStatementAttachmentType = exports.makeStatement = exports.makeSortDirection = exports.makeSolidusVariantExportType = exports.makeSolidusProductExportType = exports.makeSnapshotUpserted = exports.makeSnapshotDeleted = exports.makeSinglePackageShippingNotificationForm = 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 = void 0;
|
|
37
37
|
exports.makeThreedsChallengeActionDetails = exports.makeThreedsChallengeAction = exports.makeThreeDSecureCode = exports.makeThreeDSecure = exports.makeThirdPartyLogisticsPartner = exports.makeTestUpserted = exports.makeTaxabilityValue = exports.makeTaxabilityType = exports.makeTaxVerificationResult = exports.makeTaxSetting = exports.makeTaxReportType = exports.makeTaxReport = exports.makeTaxRegistrationForm = exports.makeTaxRegistration = exports.makeTaxDutyQuoteValues = exports.makeTaxDutyQuoteSimpleShippingForm = exports.makeTaxDutyQuoteSimpleShipping = exports.makeTaxDutyQuoteSimpleLevyValue = exports.makeTaxDutyQuoteLineItemForm = exports.makeTaxDutyQuoteLineItem = exports.makeTaxDutyQuoteLevyValue = exports.makeTaxDutyQuoteForm = exports.makeTaxDutyQuoteFeeValue = exports.makeTaxDutyQuote = exports.makeTaxDutyCalculatorValidationErrorCode = exports.makeTaxDutyCalculatorValidationError = exports.makeTaxApplicability = exports.makeTax = exports.makeSyncUnitOfTime = 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 = void 0;
|
|
38
38
|
exports.makeTradeAgreementCertifier = exports.makeTradeAgreement = exports.makeTrackingVersion = exports.makeTrackingSummary = exports.makeTrackingStatus = exports.makeTrackingNumberType = exports.makeTrackingLabelVersion = exports.makeTrackingLabelSummary = exports.makeTrackingLabelForm = exports.makeTrackingLabelEventUpserted = exports.makeTrackingLabel = exports.makeTrackingForm = exports.makeTrackingEventVersion = exports.makeTrackingEventSummary = exports.makeTrackingEventForm = exports.makeTrackingEvent = exports.makeTracking = exports.makeTokenValidationForm = exports.makeTokenValidation = exports.makeTokenType = exports.makeTokenReference = exports.makeTokenRbacAuthenticationForm = exports.makeTokenPartnerReference = exports.makeTokenAuthenticationForm = exports.makeToken = exports.makeTimezone = exports.makeTierVersion = exports.makeTierUpsertedV2 = exports.makeTierSummary = exports.makeTierStrategy = exports.makeTierSettings = exports.makeTierRuleVersion = exports.makeTierRuleOutcomeForm = exports.makeTierRuleOutcome = exports.makeTierRuleForm = exports.makeTierRule = exports.makeTierReference = 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 = void 0;
|
|
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;
|
|
39
|
+
exports.makeVirtualCardRefundUpserted = exports.makeVirtualCardRefundDeleted = exports.makeVirtualCardRefund = exports.makeVirtualCardReference = 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.makeTransactionMetadata = exports.makeTransactionDetailsCard = exports.makeTransactionDetails = exports.makeTransaction = exports.makeTradeAgreementStatus = exports.makeTradeAgreementName = exports.makeTradeAgreementDuty = 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 = void 0;
|
|
41
41
|
var faker_1 = __importDefault(require("@faker-js/faker"));
|
|
42
42
|
var arrayOf = function (f) {
|
|
43
43
|
var length = 3;
|
|
@@ -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
|
}); },
|
|
@@ -1601,6 +1649,7 @@ var factories = {
|
|
|
1601
1649
|
id: factories.string(),
|
|
1602
1650
|
amount: factories.long(),
|
|
1603
1651
|
amount_refunded: factories.long(),
|
|
1652
|
+
authorization_code: factories.string(),
|
|
1604
1653
|
captured: factories.boolean(),
|
|
1605
1654
|
created: factories.long(),
|
|
1606
1655
|
currency: factories.string(),
|
|
@@ -1648,6 +1697,7 @@ var factories = {
|
|
|
1648
1697
|
id: factories.string(),
|
|
1649
1698
|
amount: factories.long(),
|
|
1650
1699
|
amount_refunded: factories.long(),
|
|
1700
|
+
authorization_code: factories.string(),
|
|
1651
1701
|
captured: factories.boolean(),
|
|
1652
1702
|
created: factories.long(),
|
|
1653
1703
|
currency: factories.string(),
|
|
@@ -2777,6 +2827,7 @@ var factories = {
|
|
|
2777
2827
|
'card',
|
|
2778
2828
|
'online',
|
|
2779
2829
|
'credit',
|
|
2830
|
+
'external',
|
|
2780
2831
|
'subsidized',
|
|
2781
2832
|
'installment_plan',
|
|
2782
2833
|
'cash_on_delivery',
|
|
@@ -3123,6 +3174,7 @@ var factories = {
|
|
|
3123
3174
|
'reversal',
|
|
3124
3175
|
'shipping_label',
|
|
3125
3176
|
'shipping_label_service',
|
|
3177
|
+
'trueup',
|
|
3126
3178
|
'shipping_label_revenue_share',
|
|
3127
3179
|
'platform_fee',
|
|
3128
3180
|
'tax',
|
|
@@ -3136,6 +3188,16 @@ var factories = {
|
|
|
3136
3188
|
'virtual_card_capture',
|
|
3137
3189
|
'virtual_card_refund',
|
|
3138
3190
|
]); },
|
|
3191
|
+
'io.flow.v0.enums.trueup_source': function () { return faker_1.default.helpers.arrayElement(['flow', 'channel', 'dhl-parcel', 'dhl']); },
|
|
3192
|
+
'io.flow.v0.enums.trueup_surcharge_type': function () { return faker_1.default.helpers.arrayElement([
|
|
3193
|
+
'fuel',
|
|
3194
|
+
'remote_area',
|
|
3195
|
+
'oversize',
|
|
3196
|
+
'duties_paid',
|
|
3197
|
+
'emergency',
|
|
3198
|
+
'peak',
|
|
3199
|
+
'address_correction',
|
|
3200
|
+
]); },
|
|
3139
3201
|
'io.flow.v0.enums.unit_of_length': function () { return faker_1.default.helpers.arrayElement(['millimeter', 'centimeter', 'inch', 'foot', 'meter']); },
|
|
3140
3202
|
'io.flow.v0.enums.unit_of_measurement': function () { return faker_1.default.helpers.arrayElement([
|
|
3141
3203
|
'millimeter',
|
|
@@ -8254,6 +8316,7 @@ var factories = {
|
|
|
8254
8316
|
current_state: factories['io.flow.v0.unions.onboarding_state'](),
|
|
8255
8317
|
started_at: factories.date_time_iso_8601(),
|
|
8256
8318
|
time_blocked: factories.long(),
|
|
8319
|
+
time_in_setup: factories.long(),
|
|
8257
8320
|
blocked_since: factories.date_time_iso_8601(),
|
|
8258
8321
|
completed_at: factories.date_time_iso_8601(),
|
|
8259
8322
|
onboarding_started_at: factories.date_time_iso_8601(),
|
|
@@ -11547,6 +11610,18 @@ var factories = {
|
|
|
11547
11610
|
discriminator: 'shipping_label',
|
|
11548
11611
|
request_method: factories['io.flow.v0.enums.label_request_method'](),
|
|
11549
11612
|
}); },
|
|
11613
|
+
'io.flow.v0.models.transaction_metadata_trueup': function () { return ({
|
|
11614
|
+
discriminator: 'trueup',
|
|
11615
|
+
estimate: factories['io.flow.v0.models.transaction_metadata_trueup_data'](),
|
|
11616
|
+
actual: factories['io.flow.v0.models.transaction_metadata_trueup_data'](),
|
|
11617
|
+
}); },
|
|
11618
|
+
'io.flow.v0.models.transaction_metadata_trueup_data': function () { return ({
|
|
11619
|
+
source: factories['io.flow.v0.enums.trueup_source'](),
|
|
11620
|
+
units: factories['io.flow.v0.models.trueup_label_units'](),
|
|
11621
|
+
base: factories['io.flow.v0.models.trueup_label_base'](),
|
|
11622
|
+
surcharges: arrayOf(function () { return factories['io.flow.v0.models.trueup_label_surcharge'](); }),
|
|
11623
|
+
total: factories.decimal(),
|
|
11624
|
+
}); },
|
|
11550
11625
|
'io.flow.v0.models.transaction_network_details_card': function () { return ({
|
|
11551
11626
|
network_transaction_id: factories.string(),
|
|
11552
11627
|
network: factories['io.flow.v0.enums.card_type'](),
|
|
@@ -11574,6 +11649,20 @@ var factories = {
|
|
|
11574
11649
|
from: factories.long(),
|
|
11575
11650
|
to: factories.long(),
|
|
11576
11651
|
}); },
|
|
11652
|
+
'io.flow.v0.models.trueup_label_base': function () { return ({
|
|
11653
|
+
amount: factories.decimal(),
|
|
11654
|
+
weight: factories.decimal(),
|
|
11655
|
+
}); },
|
|
11656
|
+
'io.flow.v0.models.trueup_label_surcharge': function () { return ({
|
|
11657
|
+
amount: factories.decimal(),
|
|
11658
|
+
type: factories['io.flow.v0.enums.trueup_surcharge_type'](),
|
|
11659
|
+
percentage: factories.decimal(),
|
|
11660
|
+
per_weight_unit: factories.decimal(),
|
|
11661
|
+
}); },
|
|
11662
|
+
'io.flow.v0.models.trueup_label_units': function () { return ({
|
|
11663
|
+
weight: factories['io.flow.v0.enums.unit_of_weight'](),
|
|
11664
|
+
length: factories['io.flow.v0.enums.unit_of_length'](),
|
|
11665
|
+
}); },
|
|
11577
11666
|
'io.flow.v0.models.ultimate_beneficiary_owner': function () { return ({
|
|
11578
11667
|
name: factories.string(),
|
|
11579
11668
|
dob: factories.date_time_iso_8601(),
|
|
@@ -12755,7 +12844,10 @@ var factories = {
|
|
|
12755
12844
|
return f();
|
|
12756
12845
|
},
|
|
12757
12846
|
'io.flow.v0.unions.transaction_metadata': function () {
|
|
12758
|
-
var f = faker_1.default.helpers.arrayElement([
|
|
12847
|
+
var f = faker_1.default.helpers.arrayElement([
|
|
12848
|
+
function () { return factories['io.flow.v0.models.transaction_metadata_shipping_label'](); },
|
|
12849
|
+
function () { return factories['io.flow.v0.models.transaction_metadata_trueup'](); },
|
|
12850
|
+
]);
|
|
12759
12851
|
return f();
|
|
12760
12852
|
},
|
|
12761
12853
|
};
|
|
@@ -16075,6 +16167,10 @@ var makeTransactionMetadata = function () { return factories['io.flow.v0.unions.
|
|
|
16075
16167
|
exports.makeTransactionMetadata = makeTransactionMetadata;
|
|
16076
16168
|
var makeTransactionMetadataShippingLabel = function () { return factories['io.flow.v0.models.transaction_metadata_shipping_label'](); };
|
|
16077
16169
|
exports.makeTransactionMetadataShippingLabel = makeTransactionMetadataShippingLabel;
|
|
16170
|
+
var makeTransactionMetadataTrueup = function () { return factories['io.flow.v0.models.transaction_metadata_trueup'](); };
|
|
16171
|
+
exports.makeTransactionMetadataTrueup = makeTransactionMetadataTrueup;
|
|
16172
|
+
var makeTransactionMetadataTrueupData = function () { return factories['io.flow.v0.models.transaction_metadata_trueup_data'](); };
|
|
16173
|
+
exports.makeTransactionMetadataTrueupData = makeTransactionMetadataTrueupData;
|
|
16078
16174
|
var makeTransactionNetworkDetailsCard = function () { return factories['io.flow.v0.models.transaction_network_details_card'](); };
|
|
16079
16175
|
exports.makeTransactionNetworkDetailsCard = makeTransactionNetworkDetailsCard;
|
|
16080
16176
|
var makeTransactionPayoutPendingReason = function () { return factories['io.flow.v0.enums.transaction_payout_pending_reason'](); };
|
|
@@ -16089,6 +16185,16 @@ var makeTransitEstimate = function () { return factories['io.flow.v0.models.tran
|
|
|
16089
16185
|
exports.makeTransitEstimate = makeTransitEstimate;
|
|
16090
16186
|
var makeTransitWindow = function () { return factories['io.flow.v0.models.transit_window'](); };
|
|
16091
16187
|
exports.makeTransitWindow = makeTransitWindow;
|
|
16188
|
+
var makeTrueupLabelBase = function () { return factories['io.flow.v0.models.trueup_label_base'](); };
|
|
16189
|
+
exports.makeTrueupLabelBase = makeTrueupLabelBase;
|
|
16190
|
+
var makeTrueupLabelSurcharge = function () { return factories['io.flow.v0.models.trueup_label_surcharge'](); };
|
|
16191
|
+
exports.makeTrueupLabelSurcharge = makeTrueupLabelSurcharge;
|
|
16192
|
+
var makeTrueupLabelUnits = function () { return factories['io.flow.v0.models.trueup_label_units'](); };
|
|
16193
|
+
exports.makeTrueupLabelUnits = makeTrueupLabelUnits;
|
|
16194
|
+
var makeTrueupSource = function () { return factories['io.flow.v0.enums.trueup_source'](); };
|
|
16195
|
+
exports.makeTrueupSource = makeTrueupSource;
|
|
16196
|
+
var makeTrueupSurchargeType = function () { return factories['io.flow.v0.enums.trueup_surcharge_type'](); };
|
|
16197
|
+
exports.makeTrueupSurchargeType = makeTrueupSurchargeType;
|
|
16092
16198
|
var makeUltimateBeneficiaryOwner = function () { return factories['io.flow.v0.models.ultimate_beneficiary_owner'](); };
|
|
16093
16199
|
exports.makeUltimateBeneficiaryOwner = makeUltimateBeneficiaryOwner;
|
|
16094
16200
|
var makeUnharmonizedItemExportType = function () { return factories['io.flow.v0.models.unharmonized_item_export_type'](); };
|
package/dist/esm/api.js
CHANGED
|
@@ -115,8 +115,15 @@ var factories = {
|
|
|
115
115
|
]);
|
|
116
116
|
return f();
|
|
117
117
|
},
|
|
118
|
-
'io.flow.billing.true.up.v0.enums.true_up_surcharge_type': function () { return faker.helpers.arrayElement([
|
|
119
|
-
|
|
118
|
+
'io.flow.billing.true.up.v0.enums.true_up_surcharge_type': function () { return faker.helpers.arrayElement([
|
|
119
|
+
'fuel',
|
|
120
|
+
'remote_area',
|
|
121
|
+
'oversize',
|
|
122
|
+
'duties_paid',
|
|
123
|
+
'emergency',
|
|
124
|
+
'peak',
|
|
125
|
+
'address_correction',
|
|
126
|
+
]); },
|
|
120
127
|
'io.flow.billing.true.up.v0.models.label_base': function () { return ({
|
|
121
128
|
amount: factories.decimal(),
|
|
122
129
|
weight: factories.decimal(),
|
|
@@ -134,10 +141,38 @@ var factories = {
|
|
|
134
141
|
destination: factories['io.flow.billing.true.up.v0.models.label_destination'](),
|
|
135
142
|
metadata: factories['io.flow.billing.true.up.v0.models.label_metadata'](),
|
|
136
143
|
}); },
|
|
144
|
+
'io.flow.billing.true.up.v0.models.label_invoice_response_file': function () { return ({
|
|
145
|
+
id: factories.string(),
|
|
146
|
+
url: factories.string(),
|
|
147
|
+
created_at: factories.date_time_iso_8601(),
|
|
148
|
+
result: factories['io.flow.billing.true.up.v0.models.label_invoice_response_file_result'](),
|
|
149
|
+
}); },
|
|
150
|
+
'io.flow.billing.true.up.v0.models.label_invoice_response_file_form': function () { return ({
|
|
151
|
+
url: factories.string(),
|
|
152
|
+
}); },
|
|
153
|
+
'io.flow.billing.true.up.v0.models.label_invoice_response_file_result': function () { return ({
|
|
154
|
+
processed_at: factories.date_time_iso_8601(),
|
|
155
|
+
number_lines_successful: factories.long(),
|
|
156
|
+
number_lines_with_errors: factories.long(),
|
|
157
|
+
errors_url: factories.string(),
|
|
158
|
+
}); },
|
|
159
|
+
'io.flow.billing.true.up.v0.models.label_invoice_response_form': function () { return ({
|
|
160
|
+
id: factories.string(),
|
|
161
|
+
label_invoice_request_id: factories.string(),
|
|
162
|
+
units: factories['io.flow.billing.true.up.v0.models.label_response_units'](),
|
|
163
|
+
base: factories['io.flow.billing.true.up.v0.models.label_base'](),
|
|
164
|
+
surcharges: factories['io.flow.billing.true.up.v0.models.label_surcharge_form'](),
|
|
165
|
+
total: factories.decimal(),
|
|
166
|
+
}); },
|
|
137
167
|
'io.flow.billing.true.up.v0.models.label_metadata': function () { return ({
|
|
138
168
|
ratecard: factories['io.flow.billing.true.up.v0.models.metadata_ratecard'](),
|
|
139
169
|
weights: factories['io.flow.billing.true.up.v0.models.metadata_weights'](),
|
|
140
170
|
}); },
|
|
171
|
+
'io.flow.billing.true.up.v0.models.label_response_units': function () { return ({
|
|
172
|
+
currency: factories.string(),
|
|
173
|
+
weight: factories['io.flow.units.v0.enums.unit_of_weight'](),
|
|
174
|
+
length: factories['io.flow.units.v0.enums.unit_of_length'](),
|
|
175
|
+
}); },
|
|
141
176
|
'io.flow.billing.true.up.v0.models.label_surcharge': function () { return ({
|
|
142
177
|
amount: factories.decimal(),
|
|
143
178
|
type: factories['io.flow.billing.true.up.v0.enums.true_up_surcharge_type'](),
|
|
@@ -155,6 +190,20 @@ var factories = {
|
|
|
155
190
|
discriminator: 'percentage',
|
|
156
191
|
percentage: factories.decimal(),
|
|
157
192
|
}); },
|
|
193
|
+
'io.flow.billing.true.up.v0.models.label_surcharge_form': function () { return ({
|
|
194
|
+
fuel: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
195
|
+
remote_area: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
196
|
+
oversize: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
197
|
+
duties_paid: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
198
|
+
emergency: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
199
|
+
peak: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
200
|
+
address_correction: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
201
|
+
}); },
|
|
202
|
+
'io.flow.billing.true.up.v0.models.label_surcharge_single_form': function () { return ({
|
|
203
|
+
amount: factories.decimal(),
|
|
204
|
+
percentage: factories.decimal(),
|
|
205
|
+
fee_per_weight_unit: factories.decimal(),
|
|
206
|
+
}); },
|
|
158
207
|
'io.flow.billing.true.up.v0.models.label_units': function () { return ({
|
|
159
208
|
currency: factories.string(),
|
|
160
209
|
weight: factories['io.flow.units.v0.enums.unit_of_weight'](),
|
|
@@ -169,7 +218,6 @@ var factories = {
|
|
|
169
218
|
proposition: factories['io.flow.billing.true.up.v0.models.metadata_proposition'](),
|
|
170
219
|
}); },
|
|
171
220
|
'io.flow.billing.true.up.v0.models.metadata_weights': function () { return ({
|
|
172
|
-
selected: factories['io.flow.billing.true.up.v0.enums.weight_selection'](),
|
|
173
221
|
dead: factories['io.flow.billing.true.up.v0.models.weights_dead'](),
|
|
174
222
|
dimensional: factories['io.flow.billing.true.up.v0.models.weights_dimensional'](),
|
|
175
223
|
}); },
|
|
@@ -1561,6 +1609,7 @@ var factories = {
|
|
|
1561
1609
|
id: factories.string(),
|
|
1562
1610
|
amount: factories.long(),
|
|
1563
1611
|
amount_refunded: factories.long(),
|
|
1612
|
+
authorization_code: factories.string(),
|
|
1564
1613
|
captured: factories.boolean(),
|
|
1565
1614
|
created: factories.long(),
|
|
1566
1615
|
currency: factories.string(),
|
|
@@ -1608,6 +1657,7 @@ var factories = {
|
|
|
1608
1657
|
id: factories.string(),
|
|
1609
1658
|
amount: factories.long(),
|
|
1610
1659
|
amount_refunded: factories.long(),
|
|
1660
|
+
authorization_code: factories.string(),
|
|
1611
1661
|
captured: factories.boolean(),
|
|
1612
1662
|
created: factories.long(),
|
|
1613
1663
|
currency: factories.string(),
|
|
@@ -2737,6 +2787,7 @@ var factories = {
|
|
|
2737
2787
|
'card',
|
|
2738
2788
|
'online',
|
|
2739
2789
|
'credit',
|
|
2790
|
+
'external',
|
|
2740
2791
|
'subsidized',
|
|
2741
2792
|
'installment_plan',
|
|
2742
2793
|
'cash_on_delivery',
|
|
@@ -3083,6 +3134,7 @@ var factories = {
|
|
|
3083
3134
|
'reversal',
|
|
3084
3135
|
'shipping_label',
|
|
3085
3136
|
'shipping_label_service',
|
|
3137
|
+
'trueup',
|
|
3086
3138
|
'shipping_label_revenue_share',
|
|
3087
3139
|
'platform_fee',
|
|
3088
3140
|
'tax',
|
|
@@ -3096,6 +3148,16 @@ var factories = {
|
|
|
3096
3148
|
'virtual_card_capture',
|
|
3097
3149
|
'virtual_card_refund',
|
|
3098
3150
|
]); },
|
|
3151
|
+
'io.flow.v0.enums.trueup_source': function () { return faker.helpers.arrayElement(['flow', 'channel', 'dhl-parcel', 'dhl']); },
|
|
3152
|
+
'io.flow.v0.enums.trueup_surcharge_type': function () { return faker.helpers.arrayElement([
|
|
3153
|
+
'fuel',
|
|
3154
|
+
'remote_area',
|
|
3155
|
+
'oversize',
|
|
3156
|
+
'duties_paid',
|
|
3157
|
+
'emergency',
|
|
3158
|
+
'peak',
|
|
3159
|
+
'address_correction',
|
|
3160
|
+
]); },
|
|
3099
3161
|
'io.flow.v0.enums.unit_of_length': function () { return faker.helpers.arrayElement(['millimeter', 'centimeter', 'inch', 'foot', 'meter']); },
|
|
3100
3162
|
'io.flow.v0.enums.unit_of_measurement': function () { return faker.helpers.arrayElement([
|
|
3101
3163
|
'millimeter',
|
|
@@ -8214,6 +8276,7 @@ var factories = {
|
|
|
8214
8276
|
current_state: factories['io.flow.v0.unions.onboarding_state'](),
|
|
8215
8277
|
started_at: factories.date_time_iso_8601(),
|
|
8216
8278
|
time_blocked: factories.long(),
|
|
8279
|
+
time_in_setup: factories.long(),
|
|
8217
8280
|
blocked_since: factories.date_time_iso_8601(),
|
|
8218
8281
|
completed_at: factories.date_time_iso_8601(),
|
|
8219
8282
|
onboarding_started_at: factories.date_time_iso_8601(),
|
|
@@ -11507,6 +11570,18 @@ var factories = {
|
|
|
11507
11570
|
discriminator: 'shipping_label',
|
|
11508
11571
|
request_method: factories['io.flow.v0.enums.label_request_method'](),
|
|
11509
11572
|
}); },
|
|
11573
|
+
'io.flow.v0.models.transaction_metadata_trueup': function () { return ({
|
|
11574
|
+
discriminator: 'trueup',
|
|
11575
|
+
estimate: factories['io.flow.v0.models.transaction_metadata_trueup_data'](),
|
|
11576
|
+
actual: factories['io.flow.v0.models.transaction_metadata_trueup_data'](),
|
|
11577
|
+
}); },
|
|
11578
|
+
'io.flow.v0.models.transaction_metadata_trueup_data': function () { return ({
|
|
11579
|
+
source: factories['io.flow.v0.enums.trueup_source'](),
|
|
11580
|
+
units: factories['io.flow.v0.models.trueup_label_units'](),
|
|
11581
|
+
base: factories['io.flow.v0.models.trueup_label_base'](),
|
|
11582
|
+
surcharges: arrayOf(function () { return factories['io.flow.v0.models.trueup_label_surcharge'](); }),
|
|
11583
|
+
total: factories.decimal(),
|
|
11584
|
+
}); },
|
|
11510
11585
|
'io.flow.v0.models.transaction_network_details_card': function () { return ({
|
|
11511
11586
|
network_transaction_id: factories.string(),
|
|
11512
11587
|
network: factories['io.flow.v0.enums.card_type'](),
|
|
@@ -11534,6 +11609,20 @@ var factories = {
|
|
|
11534
11609
|
from: factories.long(),
|
|
11535
11610
|
to: factories.long(),
|
|
11536
11611
|
}); },
|
|
11612
|
+
'io.flow.v0.models.trueup_label_base': function () { return ({
|
|
11613
|
+
amount: factories.decimal(),
|
|
11614
|
+
weight: factories.decimal(),
|
|
11615
|
+
}); },
|
|
11616
|
+
'io.flow.v0.models.trueup_label_surcharge': function () { return ({
|
|
11617
|
+
amount: factories.decimal(),
|
|
11618
|
+
type: factories['io.flow.v0.enums.trueup_surcharge_type'](),
|
|
11619
|
+
percentage: factories.decimal(),
|
|
11620
|
+
per_weight_unit: factories.decimal(),
|
|
11621
|
+
}); },
|
|
11622
|
+
'io.flow.v0.models.trueup_label_units': function () { return ({
|
|
11623
|
+
weight: factories['io.flow.v0.enums.unit_of_weight'](),
|
|
11624
|
+
length: factories['io.flow.v0.enums.unit_of_length'](),
|
|
11625
|
+
}); },
|
|
11537
11626
|
'io.flow.v0.models.ultimate_beneficiary_owner': function () { return ({
|
|
11538
11627
|
name: factories.string(),
|
|
11539
11628
|
dob: factories.date_time_iso_8601(),
|
|
@@ -12715,7 +12804,10 @@ var factories = {
|
|
|
12715
12804
|
return f();
|
|
12716
12805
|
},
|
|
12717
12806
|
'io.flow.v0.unions.transaction_metadata': function () {
|
|
12718
|
-
var f = faker.helpers.arrayElement([
|
|
12807
|
+
var f = faker.helpers.arrayElement([
|
|
12808
|
+
function () { return factories['io.flow.v0.models.transaction_metadata_shipping_label'](); },
|
|
12809
|
+
function () { return factories['io.flow.v0.models.transaction_metadata_trueup'](); },
|
|
12810
|
+
]);
|
|
12719
12811
|
return f();
|
|
12720
12812
|
},
|
|
12721
12813
|
};
|
|
@@ -14377,6 +14469,8 @@ export var makeTransactionDetails = function () { return factories['io.flow.v0.u
|
|
|
14377
14469
|
export var makeTransactionDetailsCard = function () { return factories['io.flow.v0.models.transaction_details_card'](); };
|
|
14378
14470
|
export var makeTransactionMetadata = function () { return factories['io.flow.v0.unions.transaction_metadata'](); };
|
|
14379
14471
|
export var makeTransactionMetadataShippingLabel = function () { return factories['io.flow.v0.models.transaction_metadata_shipping_label'](); };
|
|
14472
|
+
export var makeTransactionMetadataTrueup = function () { return factories['io.flow.v0.models.transaction_metadata_trueup'](); };
|
|
14473
|
+
export var makeTransactionMetadataTrueupData = function () { return factories['io.flow.v0.models.transaction_metadata_trueup_data'](); };
|
|
14380
14474
|
export var makeTransactionNetworkDetailsCard = function () { return factories['io.flow.v0.models.transaction_network_details_card'](); };
|
|
14381
14475
|
export var makeTransactionPayoutPendingReason = function () { return factories['io.flow.v0.enums.transaction_payout_pending_reason'](); };
|
|
14382
14476
|
export var makeTransactionReference = function () { return factories['io.flow.v0.models.transaction_reference'](); };
|
|
@@ -14384,6 +14478,11 @@ export var makeTransactionSource = function () { return factories['io.flow.v0.en
|
|
|
14384
14478
|
export var makeTransactionUpserted = function () { return factories['io.flow.v0.models.transaction_upserted'](); };
|
|
14385
14479
|
export var makeTransitEstimate = function () { return factories['io.flow.v0.models.transit_estimate'](); };
|
|
14386
14480
|
export var makeTransitWindow = function () { return factories['io.flow.v0.models.transit_window'](); };
|
|
14481
|
+
export var makeTrueupLabelBase = function () { return factories['io.flow.v0.models.trueup_label_base'](); };
|
|
14482
|
+
export var makeTrueupLabelSurcharge = function () { return factories['io.flow.v0.models.trueup_label_surcharge'](); };
|
|
14483
|
+
export var makeTrueupLabelUnits = function () { return factories['io.flow.v0.models.trueup_label_units'](); };
|
|
14484
|
+
export var makeTrueupSource = function () { return factories['io.flow.v0.enums.trueup_source'](); };
|
|
14485
|
+
export var makeTrueupSurchargeType = function () { return factories['io.flow.v0.enums.trueup_surcharge_type'](); };
|
|
14387
14486
|
export var makeUltimateBeneficiaryOwner = function () { return factories['io.flow.v0.models.ultimate_beneficiary_owner'](); };
|
|
14388
14487
|
export var makeUnharmonizedItemExportType = function () { return factories['io.flow.v0.models.unharmonized_item_export_type'](); };
|
|
14389
14488
|
export var makeUnitOfLength = function () { return factories['io.flow.v0.enums.unit_of_length'](); };
|
package/dist/types/api.d.ts
CHANGED
|
@@ -1655,8 +1655,10 @@ export declare const makeTradeAgreementStatus: () => io.flow.v0.enums.TradeAgree
|
|
|
1655
1655
|
export declare const makeTransaction: () => io.flow.v0.models.Transaction;
|
|
1656
1656
|
export declare const makeTransactionDetails: () => io.flow.v0.models.TransactionDetailsCard;
|
|
1657
1657
|
export declare const makeTransactionDetailsCard: () => io.flow.v0.models.TransactionDetailsCard;
|
|
1658
|
-
export declare const makeTransactionMetadata: () => io.flow.v0.
|
|
1658
|
+
export declare const makeTransactionMetadata: () => io.flow.v0.unions.TransactionMetadata;
|
|
1659
1659
|
export declare const makeTransactionMetadataShippingLabel: () => io.flow.v0.models.TransactionMetadataShippingLabel;
|
|
1660
|
+
export declare const makeTransactionMetadataTrueup: () => io.flow.v0.models.TransactionMetadataTrueup;
|
|
1661
|
+
export declare const makeTransactionMetadataTrueupData: () => io.flow.v0.models.TransactionMetadataTrueupData;
|
|
1660
1662
|
export declare const makeTransactionNetworkDetailsCard: () => io.flow.v0.models.TransactionNetworkDetailsCard;
|
|
1661
1663
|
export declare const makeTransactionPayoutPendingReason: () => io.flow.v0.enums.TransactionPayoutPendingReason;
|
|
1662
1664
|
export declare const makeTransactionReference: () => io.flow.v0.models.TransactionReference;
|
|
@@ -1664,6 +1666,11 @@ export declare const makeTransactionSource: () => io.flow.v0.enums.TransactionSo
|
|
|
1664
1666
|
export declare const makeTransactionUpserted: () => io.flow.v0.models.TransactionUpserted;
|
|
1665
1667
|
export declare const makeTransitEstimate: () => io.flow.v0.models.TransitEstimate;
|
|
1666
1668
|
export declare const makeTransitWindow: () => io.flow.v0.models.TransitWindow;
|
|
1669
|
+
export declare const makeTrueupLabelBase: () => io.flow.v0.models.TrueupLabelBase;
|
|
1670
|
+
export declare const makeTrueupLabelSurcharge: () => io.flow.v0.models.TrueupLabelSurcharge;
|
|
1671
|
+
export declare const makeTrueupLabelUnits: () => io.flow.v0.models.TrueupLabelUnits;
|
|
1672
|
+
export declare const makeTrueupSource: () => io.flow.v0.enums.TrueupSource;
|
|
1673
|
+
export declare const makeTrueupSurchargeType: () => io.flow.v0.enums.TrueupSurchargeType;
|
|
1667
1674
|
export declare const makeUltimateBeneficiaryOwner: () => io.flow.v0.models.UltimateBeneficiaryOwner;
|
|
1668
1675
|
export declare const makeUnharmonizedItemExportType: () => io.flow.v0.models.UnharmonizedItemExportType;
|
|
1669
1676
|
export declare const makeUnitOfLength: () => io.flow.v0.enums.UnitOfLength;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-factories",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.65",
|
|
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": "1c87d63f654d1b7f4aa3ef5237a2cf0558fda3d5"
|
|
40
40
|
}
|
package/src/api.ts
CHANGED
|
@@ -141,8 +141,15 @@ const factories = {
|
|
|
141
141
|
return f();
|
|
142
142
|
},
|
|
143
143
|
|
|
144
|
-
'io.flow.billing.true.up.v0.enums.true_up_surcharge_type': (): io.flow.billing.RESERVED_WORD_true.up.v0.enums.TrueUpSurchargeType => faker.helpers.arrayElement([
|
|
145
|
-
|
|
144
|
+
'io.flow.billing.true.up.v0.enums.true_up_surcharge_type': (): io.flow.billing.RESERVED_WORD_true.up.v0.enums.TrueUpSurchargeType => faker.helpers.arrayElement([
|
|
145
|
+
'fuel',
|
|
146
|
+
'remote_area',
|
|
147
|
+
'oversize',
|
|
148
|
+
'duties_paid',
|
|
149
|
+
'emergency',
|
|
150
|
+
'peak',
|
|
151
|
+
'address_correction',
|
|
152
|
+
]),
|
|
146
153
|
|
|
147
154
|
'io.flow.billing.true.up.v0.models.label_base': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelBase => ({
|
|
148
155
|
amount: factories.decimal(),
|
|
@@ -164,11 +171,44 @@ const factories = {
|
|
|
164
171
|
metadata: factories['io.flow.billing.true.up.v0.models.label_metadata'](),
|
|
165
172
|
}),
|
|
166
173
|
|
|
174
|
+
'io.flow.billing.true.up.v0.models.label_invoice_response_file': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelInvoiceResponseFile => ({
|
|
175
|
+
id: factories.string(),
|
|
176
|
+
url: factories.string(),
|
|
177
|
+
created_at: factories.date_time_iso_8601(),
|
|
178
|
+
result: factories['io.flow.billing.true.up.v0.models.label_invoice_response_file_result'](),
|
|
179
|
+
}),
|
|
180
|
+
|
|
181
|
+
'io.flow.billing.true.up.v0.models.label_invoice_response_file_form': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelInvoiceResponseFileForm => ({
|
|
182
|
+
url: factories.string(),
|
|
183
|
+
}),
|
|
184
|
+
|
|
185
|
+
'io.flow.billing.true.up.v0.models.label_invoice_response_file_result': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelInvoiceResponseFileResult => ({
|
|
186
|
+
processed_at: factories.date_time_iso_8601(),
|
|
187
|
+
number_lines_successful: factories.long(),
|
|
188
|
+
number_lines_with_errors: factories.long(),
|
|
189
|
+
errors_url: factories.string(),
|
|
190
|
+
}),
|
|
191
|
+
|
|
192
|
+
'io.flow.billing.true.up.v0.models.label_invoice_response_form': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelInvoiceResponseForm => ({
|
|
193
|
+
id: factories.string(),
|
|
194
|
+
label_invoice_request_id: factories.string(),
|
|
195
|
+
units: factories['io.flow.billing.true.up.v0.models.label_response_units'](),
|
|
196
|
+
base: factories['io.flow.billing.true.up.v0.models.label_base'](),
|
|
197
|
+
surcharges: factories['io.flow.billing.true.up.v0.models.label_surcharge_form'](),
|
|
198
|
+
total: factories.decimal(),
|
|
199
|
+
}),
|
|
200
|
+
|
|
167
201
|
'io.flow.billing.true.up.v0.models.label_metadata': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelMetadata => ({
|
|
168
202
|
ratecard: factories['io.flow.billing.true.up.v0.models.metadata_ratecard'](),
|
|
169
203
|
weights: factories['io.flow.billing.true.up.v0.models.metadata_weights'](),
|
|
170
204
|
}),
|
|
171
205
|
|
|
206
|
+
'io.flow.billing.true.up.v0.models.label_response_units': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelResponseUnits => ({
|
|
207
|
+
currency: factories.string(),
|
|
208
|
+
weight: factories['io.flow.units.v0.enums.unit_of_weight'](),
|
|
209
|
+
length: factories['io.flow.units.v0.enums.unit_of_length'](),
|
|
210
|
+
}),
|
|
211
|
+
|
|
172
212
|
'io.flow.billing.true.up.v0.models.label_surcharge': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurcharge => ({
|
|
173
213
|
amount: factories.decimal(),
|
|
174
214
|
type: factories['io.flow.billing.true.up.v0.enums.true_up_surcharge_type'](),
|
|
@@ -190,6 +230,22 @@ const factories = {
|
|
|
190
230
|
percentage: factories.decimal(),
|
|
191
231
|
}),
|
|
192
232
|
|
|
233
|
+
'io.flow.billing.true.up.v0.models.label_surcharge_form': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeForm => ({
|
|
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
|
+
|
|
243
|
+
'io.flow.billing.true.up.v0.models.label_surcharge_single_form': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm => ({
|
|
244
|
+
amount: factories.decimal(),
|
|
245
|
+
percentage: factories.decimal(),
|
|
246
|
+
fee_per_weight_unit: factories.decimal(),
|
|
247
|
+
}),
|
|
248
|
+
|
|
193
249
|
'io.flow.billing.true.up.v0.models.label_units': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelUnits => ({
|
|
194
250
|
currency: factories.string(),
|
|
195
251
|
weight: factories['io.flow.units.v0.enums.unit_of_weight'](),
|
|
@@ -207,7 +263,6 @@ const factories = {
|
|
|
207
263
|
}),
|
|
208
264
|
|
|
209
265
|
'io.flow.billing.true.up.v0.models.metadata_weights': (): io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataWeights => ({
|
|
210
|
-
selected: factories['io.flow.billing.true.up.v0.enums.weight_selection'](),
|
|
211
266
|
dead: factories['io.flow.billing.true.up.v0.models.weights_dead'](),
|
|
212
267
|
dimensional: factories['io.flow.billing.true.up.v0.models.weights_dimensional'](),
|
|
213
268
|
}),
|
|
@@ -1836,6 +1891,7 @@ const factories = {
|
|
|
1836
1891
|
id: factories.string(),
|
|
1837
1892
|
amount: factories.long(),
|
|
1838
1893
|
amount_refunded: factories.long(),
|
|
1894
|
+
authorization_code: factories.string(),
|
|
1839
1895
|
captured: factories.boolean(),
|
|
1840
1896
|
created: factories.long(),
|
|
1841
1897
|
currency: factories.string(),
|
|
@@ -1886,6 +1942,7 @@ const factories = {
|
|
|
1886
1942
|
id: factories.string(),
|
|
1887
1943
|
amount: factories.long(),
|
|
1888
1944
|
amount_refunded: factories.long(),
|
|
1945
|
+
authorization_code: factories.string(),
|
|
1889
1946
|
captured: factories.boolean(),
|
|
1890
1947
|
created: factories.long(),
|
|
1891
1948
|
currency: factories.string(),
|
|
@@ -3130,6 +3187,7 @@ const factories = {
|
|
|
3130
3187
|
'card',
|
|
3131
3188
|
'online',
|
|
3132
3189
|
'credit',
|
|
3190
|
+
'external',
|
|
3133
3191
|
'subsidized',
|
|
3134
3192
|
'installment_plan',
|
|
3135
3193
|
'cash_on_delivery',
|
|
@@ -3504,6 +3562,7 @@ const factories = {
|
|
|
3504
3562
|
'reversal',
|
|
3505
3563
|
'shipping_label',
|
|
3506
3564
|
'shipping_label_service',
|
|
3565
|
+
'trueup',
|
|
3507
3566
|
'shipping_label_revenue_share',
|
|
3508
3567
|
'platform_fee',
|
|
3509
3568
|
'tax',
|
|
@@ -3518,6 +3577,18 @@ const factories = {
|
|
|
3518
3577
|
'virtual_card_refund',
|
|
3519
3578
|
]),
|
|
3520
3579
|
|
|
3580
|
+
'io.flow.v0.enums.trueup_source': (): io.flow.v0.enums.TrueupSource => faker.helpers.arrayElement(['flow', 'channel', 'dhl-parcel', 'dhl']),
|
|
3581
|
+
|
|
3582
|
+
'io.flow.v0.enums.trueup_surcharge_type': (): io.flow.v0.enums.TrueupSurchargeType => faker.helpers.arrayElement([
|
|
3583
|
+
'fuel',
|
|
3584
|
+
'remote_area',
|
|
3585
|
+
'oversize',
|
|
3586
|
+
'duties_paid',
|
|
3587
|
+
'emergency',
|
|
3588
|
+
'peak',
|
|
3589
|
+
'address_correction',
|
|
3590
|
+
]),
|
|
3591
|
+
|
|
3521
3592
|
'io.flow.v0.enums.unit_of_length': (): io.flow.v0.enums.UnitOfLength => faker.helpers.arrayElement(['millimeter', 'centimeter', 'inch', 'foot', 'meter']),
|
|
3522
3593
|
|
|
3523
3594
|
'io.flow.v0.enums.unit_of_measurement': (): io.flow.v0.enums.UnitOfMeasurement => faker.helpers.arrayElement([
|
|
@@ -9475,6 +9546,7 @@ const factories = {
|
|
|
9475
9546
|
current_state: factories['io.flow.v0.unions.onboarding_state'](),
|
|
9476
9547
|
started_at: factories.date_time_iso_8601(),
|
|
9477
9548
|
time_blocked: factories.long(),
|
|
9549
|
+
time_in_setup: factories.long(),
|
|
9478
9550
|
blocked_since: factories.date_time_iso_8601(),
|
|
9479
9551
|
completed_at: factories.date_time_iso_8601(),
|
|
9480
9552
|
onboarding_started_at: factories.date_time_iso_8601(),
|
|
@@ -13300,6 +13372,20 @@ const factories = {
|
|
|
13300
13372
|
request_method: factories['io.flow.v0.enums.label_request_method'](),
|
|
13301
13373
|
}),
|
|
13302
13374
|
|
|
13375
|
+
'io.flow.v0.models.transaction_metadata_trueup': (): io.flow.v0.models.TransactionMetadataTrueup => ({
|
|
13376
|
+
discriminator: 'trueup',
|
|
13377
|
+
estimate: factories['io.flow.v0.models.transaction_metadata_trueup_data'](),
|
|
13378
|
+
actual: factories['io.flow.v0.models.transaction_metadata_trueup_data'](),
|
|
13379
|
+
}),
|
|
13380
|
+
|
|
13381
|
+
'io.flow.v0.models.transaction_metadata_trueup_data': (): io.flow.v0.models.TransactionMetadataTrueupData => ({
|
|
13382
|
+
source: factories['io.flow.v0.enums.trueup_source'](),
|
|
13383
|
+
units: factories['io.flow.v0.models.trueup_label_units'](),
|
|
13384
|
+
base: factories['io.flow.v0.models.trueup_label_base'](),
|
|
13385
|
+
surcharges: arrayOf(() => factories['io.flow.v0.models.trueup_label_surcharge']()),
|
|
13386
|
+
total: factories.decimal(),
|
|
13387
|
+
}),
|
|
13388
|
+
|
|
13303
13389
|
'io.flow.v0.models.transaction_network_details_card': (): io.flow.v0.models.TransactionNetworkDetailsCard => ({
|
|
13304
13390
|
network_transaction_id: factories.string(),
|
|
13305
13391
|
network: factories['io.flow.v0.enums.card_type'](),
|
|
@@ -13332,6 +13418,23 @@ const factories = {
|
|
|
13332
13418
|
to: factories.long(),
|
|
13333
13419
|
}),
|
|
13334
13420
|
|
|
13421
|
+
'io.flow.v0.models.trueup_label_base': (): io.flow.v0.models.TrueupLabelBase => ({
|
|
13422
|
+
amount: factories.decimal(),
|
|
13423
|
+
weight: factories.decimal(),
|
|
13424
|
+
}),
|
|
13425
|
+
|
|
13426
|
+
'io.flow.v0.models.trueup_label_surcharge': (): io.flow.v0.models.TrueupLabelSurcharge => ({
|
|
13427
|
+
amount: factories.decimal(),
|
|
13428
|
+
type: factories['io.flow.v0.enums.trueup_surcharge_type'](),
|
|
13429
|
+
percentage: factories.decimal(),
|
|
13430
|
+
per_weight_unit: factories.decimal(),
|
|
13431
|
+
}),
|
|
13432
|
+
|
|
13433
|
+
'io.flow.v0.models.trueup_label_units': (): io.flow.v0.models.TrueupLabelUnits => ({
|
|
13434
|
+
weight: factories['io.flow.v0.enums.unit_of_weight'](),
|
|
13435
|
+
length: factories['io.flow.v0.enums.unit_of_length'](),
|
|
13436
|
+
}),
|
|
13437
|
+
|
|
13335
13438
|
'io.flow.v0.models.ultimate_beneficiary_owner': (): io.flow.v0.models.UltimateBeneficiaryOwner => ({
|
|
13336
13439
|
name: factories.string(),
|
|
13337
13440
|
dob: factories.date_time_iso_8601(),
|
|
@@ -14752,9 +14855,10 @@ const factories = {
|
|
|
14752
14855
|
},
|
|
14753
14856
|
|
|
14754
14857
|
'io.flow.v0.unions.transaction_metadata': (): io.flow.v0.unions.TransactionMetadata => {
|
|
14755
|
-
const f = faker.helpers.arrayElement(
|
|
14756
|
-
|
|
14757
|
-
|
|
14858
|
+
const f = faker.helpers.arrayElement([
|
|
14859
|
+
() => factories['io.flow.v0.models.transaction_metadata_shipping_label'](),
|
|
14860
|
+
() => factories['io.flow.v0.models.transaction_metadata_trueup'](),
|
|
14861
|
+
]);
|
|
14758
14862
|
|
|
14759
14863
|
return f();
|
|
14760
14864
|
},
|
|
@@ -16418,6 +16522,8 @@ export const makeTransactionDetails = () => factories['io.flow.v0.unions.transac
|
|
|
16418
16522
|
export const makeTransactionDetailsCard = () => factories['io.flow.v0.models.transaction_details_card']();
|
|
16419
16523
|
export const makeTransactionMetadata = () => factories['io.flow.v0.unions.transaction_metadata']();
|
|
16420
16524
|
export const makeTransactionMetadataShippingLabel = () => factories['io.flow.v0.models.transaction_metadata_shipping_label']();
|
|
16525
|
+
export const makeTransactionMetadataTrueup = () => factories['io.flow.v0.models.transaction_metadata_trueup']();
|
|
16526
|
+
export const makeTransactionMetadataTrueupData = () => factories['io.flow.v0.models.transaction_metadata_trueup_data']();
|
|
16421
16527
|
export const makeTransactionNetworkDetailsCard = () => factories['io.flow.v0.models.transaction_network_details_card']();
|
|
16422
16528
|
export const makeTransactionPayoutPendingReason = () => factories['io.flow.v0.enums.transaction_payout_pending_reason']();
|
|
16423
16529
|
export const makeTransactionReference = () => factories['io.flow.v0.models.transaction_reference']();
|
|
@@ -16425,6 +16531,11 @@ export const makeTransactionSource = () => factories['io.flow.v0.enums.transacti
|
|
|
16425
16531
|
export const makeTransactionUpserted = () => factories['io.flow.v0.models.transaction_upserted']();
|
|
16426
16532
|
export const makeTransitEstimate = () => factories['io.flow.v0.models.transit_estimate']();
|
|
16427
16533
|
export const makeTransitWindow = () => factories['io.flow.v0.models.transit_window']();
|
|
16534
|
+
export const makeTrueupLabelBase = () => factories['io.flow.v0.models.trueup_label_base']();
|
|
16535
|
+
export const makeTrueupLabelSurcharge = () => factories['io.flow.v0.models.trueup_label_surcharge']();
|
|
16536
|
+
export const makeTrueupLabelUnits = () => factories['io.flow.v0.models.trueup_label_units']();
|
|
16537
|
+
export const makeTrueupSource = () => factories['io.flow.v0.enums.trueup_source']();
|
|
16538
|
+
export const makeTrueupSurchargeType = () => factories['io.flow.v0.enums.trueup_surcharge_type']();
|
|
16428
16539
|
export const makeUltimateBeneficiaryOwner = () => factories['io.flow.v0.models.ultimate_beneficiary_owner']();
|
|
16429
16540
|
export const makeUnharmonizedItemExportType = () => factories['io.flow.v0.models.unharmonized_item_export_type']();
|
|
16430
16541
|
export const makeUnitOfLength = () => factories['io.flow.v0.enums.unit_of_length']();
|