@flowio/api-factories 0.0.87 → 0.0.89
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 +310 -14
- package/dist/esm/api.js +292 -0
- package/dist/types/api.d.ts +4 -0
- package/package.json +2 -2
- package/src/api.ts +337 -0
package/dist/esm/api.js
CHANGED
|
@@ -281,6 +281,7 @@ var factories = {
|
|
|
281
281
|
'io.flow.shopify.external.v0.enums.format': function () { return faker.helpers.arrayElement(['json', 'xml']); },
|
|
282
282
|
'io.flow.shopify.external.v0.enums.fulfillment_service': function () { return faker.helpers.arrayElement(['manual', 'gift_card']); },
|
|
283
283
|
'io.flow.shopify.external.v0.enums.fulfillment_status_type': function () { return faker.helpers.arrayElement(['fulfilled', 'null', 'partial']); },
|
|
284
|
+
'io.flow.shopify.external.v0.enums.graphql_weight_unit': function () { return faker.helpers.arrayElement(['GRAMS', 'KILOGRAMS', 'OUNCES', 'POUNDS']); },
|
|
284
285
|
'io.flow.shopify.external.v0.enums.inventory_behaviour': function () { return faker.helpers.arrayElement(['bypass', 'decrement_ignoring_policy', 'decrement_obeying_policy']); },
|
|
285
286
|
'io.flow.shopify.external.v0.enums.inventory_management': function () { return faker.helpers.arrayElement(['blank', 'shopify']); },
|
|
286
287
|
'io.flow.shopify.external.v0.enums.inventory_policy': function () { return faker.helpers.arrayElement(['deny', 'continue']); },
|
|
@@ -414,6 +415,66 @@ var factories = {
|
|
|
414
415
|
'io.flow.shopify.external.v0.models.count': function () { return ({
|
|
415
416
|
count: factories.long(),
|
|
416
417
|
}); },
|
|
418
|
+
'io.flow.shopify.external.v0.models.graphql_inventory_item': function () { return ({
|
|
419
|
+
id: factories.string(),
|
|
420
|
+
tracked: factories.boolean(),
|
|
421
|
+
requiresShipping: factories.boolean(),
|
|
422
|
+
measurement: factories['io.flow.shopify.external.v0.models.graphql_measurement'](),
|
|
423
|
+
}); },
|
|
424
|
+
'io.flow.shopify.external.v0.models.graphql_measurement': function () { return ({
|
|
425
|
+
weight: factories['io.flow.shopify.external.v0.models.graphql_weight'](),
|
|
426
|
+
}); },
|
|
427
|
+
'io.flow.shopify.external.v0.models.graphql_option': function () { return ({
|
|
428
|
+
id: factories.string(),
|
|
429
|
+
values: arrayOf(function () { return factories.string(); }),
|
|
430
|
+
name: factories.string(),
|
|
431
|
+
position: factories.integer(),
|
|
432
|
+
}); },
|
|
433
|
+
'io.flow.shopify.external.v0.models.graphql_product': function () { return ({
|
|
434
|
+
id: factories.string(),
|
|
435
|
+
legacyResourceId: factories.string(),
|
|
436
|
+
handle: factories.string(),
|
|
437
|
+
variants: arrayOf(function () { return factories['io.flow.shopify.external.v0.models.graphql_product_variant'](); }),
|
|
438
|
+
images: arrayOf(function () { return factories['io.flow.shopify.external.v0.models.graphql_product_image'](); }),
|
|
439
|
+
title: factories.string(),
|
|
440
|
+
vendor: factories.string(),
|
|
441
|
+
descriptionHtml: factories.string(),
|
|
442
|
+
productType: factories.string(),
|
|
443
|
+
status: factories.string(),
|
|
444
|
+
options: arrayOf(function () { return factories['io.flow.shopify.external.v0.models.graphql_option'](); }),
|
|
445
|
+
tags: arrayOf(function () { return factories.string(); }),
|
|
446
|
+
templateSuffix: factories.string(),
|
|
447
|
+
publishedAt: factories.date_time_iso_8601(),
|
|
448
|
+
createdAt: factories.date_time_iso_8601(),
|
|
449
|
+
updatedAt: factories.date_time_iso_8601(),
|
|
450
|
+
hasVariantsThatRequiresComponents: factories.boolean(),
|
|
451
|
+
}); },
|
|
452
|
+
'io.flow.shopify.external.v0.models.graphql_product_image': function () { return ({
|
|
453
|
+
id: factories.string(),
|
|
454
|
+
url: factories.string(),
|
|
455
|
+
altText: factories.string(),
|
|
456
|
+
}); },
|
|
457
|
+
'io.flow.shopify.external.v0.models.graphql_product_variant': function () { return ({
|
|
458
|
+
id: factories.string(),
|
|
459
|
+
legacyResourceId: factories.string(),
|
|
460
|
+
sku: factories.string(),
|
|
461
|
+
price: factories.string(),
|
|
462
|
+
title: factories.string(),
|
|
463
|
+
taxable: factories.boolean(),
|
|
464
|
+
compareAtPrice: factories.string(),
|
|
465
|
+
barcode: factories.string(),
|
|
466
|
+
inventoryPolicy: factories['io.flow.shopify.external.v0.enums.inventory_policy'](),
|
|
467
|
+
inventoryQuantity: factories.long(),
|
|
468
|
+
image: factories['io.flow.shopify.external.v0.models.graphql_variant_image'](),
|
|
469
|
+
inventoryItem: factories['io.flow.shopify.external.v0.models.graphql_inventory_item'](),
|
|
470
|
+
}); },
|
|
471
|
+
'io.flow.shopify.external.v0.models.graphql_variant_image': function () { return ({
|
|
472
|
+
id: factories.string(),
|
|
473
|
+
}); },
|
|
474
|
+
'io.flow.shopify.external.v0.models.graphql_weight': function () { return ({
|
|
475
|
+
unit: factories['io.flow.shopify.external.v0.enums.graphql_weight_unit'](),
|
|
476
|
+
value: factories.double(),
|
|
477
|
+
}); },
|
|
417
478
|
'io.flow.shopify.external.v0.models.metafield': function () { return ({
|
|
418
479
|
id: factories.long(),
|
|
419
480
|
key: factories.string(),
|
|
@@ -661,6 +722,10 @@ var factories = {
|
|
|
661
722
|
session_hash: factories.string(),
|
|
662
723
|
user_agent: factories.string(),
|
|
663
724
|
}); },
|
|
725
|
+
'io.flow.shopify.external.v0.models.shopify_country_harmonized_system_code': function () { return ({
|
|
726
|
+
country_code: factories.string(),
|
|
727
|
+
harmonized_system_code: factories.string(),
|
|
728
|
+
}); },
|
|
664
729
|
'io.flow.shopify.external.v0.models.shopify_customer': function () { return ({
|
|
665
730
|
id: factories.long(),
|
|
666
731
|
addresses: arrayOf(function () { return factories['io.flow.shopify.external.v0.models.shopify_customer_address'](); }),
|
|
@@ -861,6 +926,13 @@ var factories = {
|
|
|
861
926
|
'io.flow.shopify.external.v0.models.shopify_inventory_item_delete': function () { return ({
|
|
862
927
|
id: factories.long(),
|
|
863
928
|
}); },
|
|
929
|
+
'io.flow.shopify.external.v0.models.shopify_inventory_item_summary': function () { return ({
|
|
930
|
+
country_code_of_origin: factories.string(),
|
|
931
|
+
country_harmonized_system_codes: arrayOf(function () { return factories['io.flow.shopify.external.v0.models.shopify_country_harmonized_system_code'](); }),
|
|
932
|
+
harmonized_system_code: factories.string(),
|
|
933
|
+
updated_at: factories.date_time_iso_8601(),
|
|
934
|
+
requires_shipping: factories.boolean(),
|
|
935
|
+
}); },
|
|
864
936
|
'io.flow.shopify.external.v0.models.shopify_inventory_level': function () { return ({
|
|
865
937
|
inventory_item_id: factories.long(),
|
|
866
938
|
location_id: factories.long(),
|
|
@@ -1171,6 +1243,48 @@ var factories = {
|
|
|
1171
1243
|
}); },
|
|
1172
1244
|
'io.flow.stripe.v0.enums.account_type': function () { return faker.helpers.arrayElement(['platform', 'custom', 'standard', 'express']); },
|
|
1173
1245
|
'io.flow.stripe.v0.enums.apple_pay_type': function () { return faker.helpers.arrayElement(['apple_pay', 'apple_pay_later']); },
|
|
1246
|
+
'io.flow.stripe.v0.enums.balance_transaction_type': function () { return faker.helpers.arrayElement([
|
|
1247
|
+
'adjustment',
|
|
1248
|
+
'advance',
|
|
1249
|
+
'advance_funding',
|
|
1250
|
+
'anticipation_repayment',
|
|
1251
|
+
'application_fee',
|
|
1252
|
+
'application_fee_refund',
|
|
1253
|
+
'charge',
|
|
1254
|
+
'climate_order_purchase',
|
|
1255
|
+
'climate_order_refund',
|
|
1256
|
+
'connect_collection_transfer',
|
|
1257
|
+
'contribution',
|
|
1258
|
+
'issuing_authorization_hold',
|
|
1259
|
+
'issuing_authorization_release',
|
|
1260
|
+
'issuing_dispute',
|
|
1261
|
+
'issuing_transaction',
|
|
1262
|
+
'obligation_outbound',
|
|
1263
|
+
'obligation_reversal_inbound',
|
|
1264
|
+
'payment',
|
|
1265
|
+
'payment_failure_refund',
|
|
1266
|
+
'payment_network_reserve_hold',
|
|
1267
|
+
'payment_network_reserve_release',
|
|
1268
|
+
'payment_refund',
|
|
1269
|
+
'payment_reversal',
|
|
1270
|
+
'payment_unreconciled',
|
|
1271
|
+
'payout',
|
|
1272
|
+
'payout_cancel',
|
|
1273
|
+
'payout_failure',
|
|
1274
|
+
'refund',
|
|
1275
|
+
'refund_failure',
|
|
1276
|
+
'reserve_transaction',
|
|
1277
|
+
'reserved_funds',
|
|
1278
|
+
'stripe_fee',
|
|
1279
|
+
'stripe_fx_fee',
|
|
1280
|
+
'tax_fee',
|
|
1281
|
+
'topup',
|
|
1282
|
+
'topup_reversal',
|
|
1283
|
+
'transfer',
|
|
1284
|
+
'transfer_cancel',
|
|
1285
|
+
'transfer_failure',
|
|
1286
|
+
'transfer_refund',
|
|
1287
|
+
]); },
|
|
1174
1288
|
'io.flow.stripe.v0.enums.bank_ideal': function () { return faker.helpers.arrayElement([
|
|
1175
1289
|
'abn_amro',
|
|
1176
1290
|
'asn_bank',
|
|
@@ -1291,6 +1405,40 @@ var factories = {
|
|
|
1291
1405
|
'highest_risk_level',
|
|
1292
1406
|
'requested_block_on_incorrect_cvc',
|
|
1293
1407
|
]); },
|
|
1408
|
+
'io.flow.stripe.v0.enums.dispute_event_type': function () { return faker.helpers.arrayElement([
|
|
1409
|
+
'charge.dispute.closed',
|
|
1410
|
+
'charge.dispute.created',
|
|
1411
|
+
'charge.dispute.funds_reinstated',
|
|
1412
|
+
'charge.dispute.funds_withdrawn',
|
|
1413
|
+
'charge.dispute.updated',
|
|
1414
|
+
]); },
|
|
1415
|
+
'io.flow.stripe.v0.enums.dispute_payment_method_details_card_case_type': function () { return faker.helpers.arrayElement(['chargeback', 'inquiry']); },
|
|
1416
|
+
'io.flow.stripe.v0.enums.dispute_payment_method_details_type': function () { return faker.helpers.arrayElement(['card', 'klarna', 'paypal']); },
|
|
1417
|
+
'io.flow.stripe.v0.enums.dispute_reason': function () { return faker.helpers.arrayElement([
|
|
1418
|
+
'bank_cannot_process',
|
|
1419
|
+
'check_returned',
|
|
1420
|
+
'credit_not_processed',
|
|
1421
|
+
'customer_initiated',
|
|
1422
|
+
'debit_not_authorized',
|
|
1423
|
+
'duplicate',
|
|
1424
|
+
'fraudulent',
|
|
1425
|
+
'general',
|
|
1426
|
+
'incorrect_account_details',
|
|
1427
|
+
'insufficient_funds',
|
|
1428
|
+
'product_not_received',
|
|
1429
|
+
'product_unacceptable',
|
|
1430
|
+
'subscription_canceled',
|
|
1431
|
+
'unrecognized',
|
|
1432
|
+
]); },
|
|
1433
|
+
'io.flow.stripe.v0.enums.dispute_status': function () { return faker.helpers.arrayElement([
|
|
1434
|
+
'warning_needs_response',
|
|
1435
|
+
'warning_under_review',
|
|
1436
|
+
'warning_closed',
|
|
1437
|
+
'needs_response',
|
|
1438
|
+
'under_review',
|
|
1439
|
+
'won',
|
|
1440
|
+
'lost',
|
|
1441
|
+
]); },
|
|
1294
1442
|
'io.flow.stripe.v0.enums.error_code': function () { return faker.helpers.arrayElement([
|
|
1295
1443
|
'invalid_number',
|
|
1296
1444
|
'invalid_expiry_month',
|
|
@@ -1383,6 +1531,11 @@ var factories = {
|
|
|
1383
1531
|
'charge.succeeded',
|
|
1384
1532
|
'charge.updated',
|
|
1385
1533
|
'charge.refund.updated',
|
|
1534
|
+
'charge.dispute.closed',
|
|
1535
|
+
'charge.dispute.created',
|
|
1536
|
+
'charge.dispute.funds_reinstated',
|
|
1537
|
+
'charge.dispute.funds_withdrawn',
|
|
1538
|
+
'charge.dispute.updated',
|
|
1386
1539
|
'payment_intent.created',
|
|
1387
1540
|
'payment_intent.amount_capturable_updated',
|
|
1388
1541
|
'payment_intent.payment_failed',
|
|
@@ -1724,6 +1877,102 @@ var factories = {
|
|
|
1724
1877
|
source: factories.string(),
|
|
1725
1878
|
description: factories.string(),
|
|
1726
1879
|
}); },
|
|
1880
|
+
'io.flow.stripe.v0.models.dispute': function () { return ({
|
|
1881
|
+
id: factories.string(),
|
|
1882
|
+
amount: factories.integer(),
|
|
1883
|
+
charge: factories.string(),
|
|
1884
|
+
currency: factories.string(),
|
|
1885
|
+
evidence: factories['io.flow.stripe.v0.models.dispute_evidence'](),
|
|
1886
|
+
metadata: objectOf(function () { return factories.string(); }),
|
|
1887
|
+
payment_intent: factories.string(),
|
|
1888
|
+
reason: factories['io.flow.stripe.v0.enums.dispute_reason'](),
|
|
1889
|
+
status: factories['io.flow.stripe.v0.enums.dispute_status'](),
|
|
1890
|
+
object: factories.string(),
|
|
1891
|
+
balance_transactions: arrayOf(function () { return factories['io.flow.stripe.v0.models.dispute_balance_transaction'](); }),
|
|
1892
|
+
created: factories.long(),
|
|
1893
|
+
evidence_details: factories['io.flow.stripe.v0.models.dispute_evidence_details'](),
|
|
1894
|
+
is_charge_refundable: factories.boolean(),
|
|
1895
|
+
livemode: factories.boolean(),
|
|
1896
|
+
payment_method_details: factories['io.flow.stripe.v0.models.dispute_payment_method_details'](),
|
|
1897
|
+
}); },
|
|
1898
|
+
'io.flow.stripe.v0.models.dispute_balance_transaction': function () { return ({
|
|
1899
|
+
payment_intent: factories.string(),
|
|
1900
|
+
id: factories.string(),
|
|
1901
|
+
object: factories.string(),
|
|
1902
|
+
amount: factories.integer(),
|
|
1903
|
+
available_on: factories.long(),
|
|
1904
|
+
created: factories.long(),
|
|
1905
|
+
currency: factories.string(),
|
|
1906
|
+
description: factories.string(),
|
|
1907
|
+
exchange_rate: factories.decimal(),
|
|
1908
|
+
fee: factories.integer(),
|
|
1909
|
+
fee_details: arrayOf(function () { return factories['io.flow.stripe.v0.models.dispute_balance_transaction_fee_details'](); }),
|
|
1910
|
+
net: factories.integer(),
|
|
1911
|
+
reporting_category: factories.string(),
|
|
1912
|
+
source: factories.string(),
|
|
1913
|
+
status: factories.string(),
|
|
1914
|
+
type: factories['io.flow.stripe.v0.enums.balance_transaction_type'](),
|
|
1915
|
+
}); },
|
|
1916
|
+
'io.flow.stripe.v0.models.dispute_balance_transaction_fee_details': function () { return ({
|
|
1917
|
+
amount: factories.integer(),
|
|
1918
|
+
application: factories.string(),
|
|
1919
|
+
currency: factories.string(),
|
|
1920
|
+
description: factories.string(),
|
|
1921
|
+
type: factories.string(),
|
|
1922
|
+
}); },
|
|
1923
|
+
'io.flow.stripe.v0.models.dispute_evidence': function () { return ({
|
|
1924
|
+
access_activity_log: factories.string(),
|
|
1925
|
+
billing_address: factories.string(),
|
|
1926
|
+
cancellation_policy: factories.string(),
|
|
1927
|
+
cancellation_policy_disclosure: factories.string(),
|
|
1928
|
+
cancellation_rebuttal: factories.string(),
|
|
1929
|
+
customer_communication: factories.string(),
|
|
1930
|
+
customer_email_address: factories.string(),
|
|
1931
|
+
customer_name: factories.string(),
|
|
1932
|
+
'evidence.customer_purchase_ip': factories.string(),
|
|
1933
|
+
customer_signature: factories.string(),
|
|
1934
|
+
duplicate_charge_documentation: factories.string(),
|
|
1935
|
+
duplicate_charge_explanation: factories.string(),
|
|
1936
|
+
duplicate_charge_id: factories.string(),
|
|
1937
|
+
product_description: factories.string(),
|
|
1938
|
+
receipt: factories.string(),
|
|
1939
|
+
refund_policy: factories.string(),
|
|
1940
|
+
refund_policy_disclosure: factories.string(),
|
|
1941
|
+
refund_refusal_explanation: factories.string(),
|
|
1942
|
+
service_date: factories.string(),
|
|
1943
|
+
service_documentation: factories.string(),
|
|
1944
|
+
shipping_address: factories.string(),
|
|
1945
|
+
shipping_carrier: factories.string(),
|
|
1946
|
+
shipping_date: factories.string(),
|
|
1947
|
+
shipping_documentation: factories.string(),
|
|
1948
|
+
shipping_tracking_number: factories.string(),
|
|
1949
|
+
uncategorized_file: factories.string(),
|
|
1950
|
+
uncategorized_text: factories.string(),
|
|
1951
|
+
}); },
|
|
1952
|
+
'io.flow.stripe.v0.models.dispute_evidence_details': function () { return ({
|
|
1953
|
+
due_by: factories.long(),
|
|
1954
|
+
has_evidence: factories.boolean(),
|
|
1955
|
+
past_due: factories.boolean(),
|
|
1956
|
+
submission_count: factories.integer(),
|
|
1957
|
+
}); },
|
|
1958
|
+
'io.flow.stripe.v0.models.dispute_payment_method_details': function () { return ({
|
|
1959
|
+
card: factories['io.flow.stripe.v0.models.dispute_payment_method_details_card'](),
|
|
1960
|
+
klarna: factories['io.flow.stripe.v0.models.dispute_payment_method_details_klarna'](),
|
|
1961
|
+
paypal: factories['io.flow.stripe.v0.models.dispute_payment_method_details_paypal'](),
|
|
1962
|
+
type: factories['io.flow.stripe.v0.enums.dispute_payment_method_details_type'](),
|
|
1963
|
+
}); },
|
|
1964
|
+
'io.flow.stripe.v0.models.dispute_payment_method_details_card': function () { return ({
|
|
1965
|
+
brand: factories.string(),
|
|
1966
|
+
case_type: factories['io.flow.stripe.v0.enums.dispute_payment_method_details_card_case_type'](),
|
|
1967
|
+
network_reason_code: factories.string(),
|
|
1968
|
+
}); },
|
|
1969
|
+
'io.flow.stripe.v0.models.dispute_payment_method_details_klarna': function () { return ({
|
|
1970
|
+
reason_code: factories.string(),
|
|
1971
|
+
}); },
|
|
1972
|
+
'io.flow.stripe.v0.models.dispute_payment_method_details_paypal': function () { return ({
|
|
1973
|
+
case_id: factories.string(),
|
|
1974
|
+
reason_code: factories.string(),
|
|
1975
|
+
}); },
|
|
1727
1976
|
'io.flow.stripe.v0.models.error': function () { return ({
|
|
1728
1977
|
error: factories['io.flow.stripe.v0.models.stripe_error'](),
|
|
1729
1978
|
}); },
|
|
@@ -2329,6 +2578,22 @@ var factories = {
|
|
|
2329
2578
|
three_ds_optimizations: factories.string(),
|
|
2330
2579
|
directory_server_encryption: factories.object(),
|
|
2331
2580
|
}); },
|
|
2581
|
+
'io.flow.stripe.v0.models.stripe_dispute_event': function () { return ({
|
|
2582
|
+
id: factories.string(),
|
|
2583
|
+
api_version: factories.string(),
|
|
2584
|
+
data: factories['io.flow.stripe.v0.models.stripe_dispute_event_data'](),
|
|
2585
|
+
request: factories.object(),
|
|
2586
|
+
type: factories['io.flow.stripe.v0.enums.dispute_event_type'](),
|
|
2587
|
+
object: factories.string(),
|
|
2588
|
+
account: factories.string(),
|
|
2589
|
+
created: factories.long(),
|
|
2590
|
+
livemode: factories.boolean(),
|
|
2591
|
+
pending_webhooks: factories.integer(),
|
|
2592
|
+
}); },
|
|
2593
|
+
'io.flow.stripe.v0.models.stripe_dispute_event_data': function () { return ({
|
|
2594
|
+
object: factories['io.flow.stripe.v0.models.dispute'](),
|
|
2595
|
+
previous_attributes: factories.object(),
|
|
2596
|
+
}); },
|
|
2332
2597
|
'io.flow.stripe.v0.models.stripe_error': function () { return ({
|
|
2333
2598
|
type: factories['io.flow.stripe.v0.enums.error_type'](),
|
|
2334
2599
|
charge: factories.string(),
|
|
@@ -2961,6 +3226,7 @@ var factories = {
|
|
|
2961
3226
|
'business_street_address_is_po_box',
|
|
2962
3227
|
'exception_merchant',
|
|
2963
3228
|
'application_missing',
|
|
3229
|
+
'missing_logistics_contact_info',
|
|
2964
3230
|
]); },
|
|
2965
3231
|
'io.flow.v0.enums.onboarding_trade_sector': function () { return faker.helpers.arrayElement([
|
|
2966
3232
|
'accessories',
|
|
@@ -3156,6 +3422,8 @@ var factories = {
|
|
|
3156
3422
|
'sofort',
|
|
3157
3423
|
'afterpay',
|
|
3158
3424
|
'bancontact',
|
|
3425
|
+
'twint',
|
|
3426
|
+
'przelewy24',
|
|
3159
3427
|
]); },
|
|
3160
3428
|
'io.flow.v0.enums.payout_attachment_type': function () { return faker.helpers.arrayElement(['transactions']); },
|
|
3161
3429
|
'io.flow.v0.enums.payout_status_failure_code': function () { return faker.helpers.arrayElement(['invalid_account_number', 'account_closed', 'could_not_process']); },
|
|
@@ -9093,10 +9361,18 @@ var factories = {
|
|
|
9093
9361
|
type: 'init_paypal',
|
|
9094
9362
|
reference: factories.string(),
|
|
9095
9363
|
}); },
|
|
9364
|
+
'io.flow.v0.models.payment_method_data_init_przelewy24': function () { return ({
|
|
9365
|
+
type: 'init_przelewy24',
|
|
9366
|
+
reference: factories.string(),
|
|
9367
|
+
}); },
|
|
9096
9368
|
'io.flow.v0.models.payment_method_data_init_sofort': function () { return ({
|
|
9097
9369
|
type: 'init_sofort',
|
|
9098
9370
|
reference: factories.string(),
|
|
9099
9371
|
}); },
|
|
9372
|
+
'io.flow.v0.models.payment_method_data_init_twint': function () { return ({
|
|
9373
|
+
type: 'init_twint',
|
|
9374
|
+
reference: factories.string(),
|
|
9375
|
+
}); },
|
|
9100
9376
|
'io.flow.v0.models.payment_method_data_option_logo_svg': function () { return ({
|
|
9101
9377
|
type: 'svg',
|
|
9102
9378
|
url: factories.string(),
|
|
@@ -9189,10 +9465,18 @@ var factories = {
|
|
|
9189
9465
|
type: 'paypal',
|
|
9190
9466
|
merchant_of_record: factories['io.flow.v0.enums.merchant_of_record'](),
|
|
9191
9467
|
}); },
|
|
9468
|
+
'io.flow.v0.models.payment_method_summary_przelewy24': function () { return ({
|
|
9469
|
+
type: 'przelewy24',
|
|
9470
|
+
merchant_of_record: factories['io.flow.v0.enums.merchant_of_record'](),
|
|
9471
|
+
}); },
|
|
9192
9472
|
'io.flow.v0.models.payment_method_summary_sofort': function () { return ({
|
|
9193
9473
|
type: 'sofort',
|
|
9194
9474
|
merchant_of_record: factories['io.flow.v0.enums.merchant_of_record'](),
|
|
9195
9475
|
}); },
|
|
9476
|
+
'io.flow.v0.models.payment_method_summary_twint': function () { return ({
|
|
9477
|
+
type: 'twint',
|
|
9478
|
+
merchant_of_record: factories['io.flow.v0.enums.merchant_of_record'](),
|
|
9479
|
+
}); },
|
|
9196
9480
|
'io.flow.v0.models.payment_order_details_line_item': function () { return ({
|
|
9197
9481
|
id: factories.string(),
|
|
9198
9482
|
description: factories.string(),
|
|
@@ -13031,6 +13315,8 @@ var factories = {
|
|
|
13031
13315
|
function () { return factories['io.flow.v0.models.payment_method_data_init_paypal'](); },
|
|
13032
13316
|
function () { return factories['io.flow.v0.models.payment_method_data_init_ideal'](); },
|
|
13033
13317
|
function () { return factories['io.flow.v0.models.payment_method_data_init_sofort'](); },
|
|
13318
|
+
function () { return factories['io.flow.v0.models.payment_method_data_init_twint'](); },
|
|
13319
|
+
function () { return factories['io.flow.v0.models.payment_method_data_init_przelewy24'](); },
|
|
13034
13320
|
function () { return factories['io.flow.v0.models.payment_method_data_init_bancontact'](); },
|
|
13035
13321
|
function () { return factories['io.flow.v0.models.payment_method_data_validate_applepay'](); },
|
|
13036
13322
|
function () { return factories['io.flow.v0.models.payment_method_data_authorize_card'](); },
|
|
@@ -13077,6 +13363,8 @@ var factories = {
|
|
|
13077
13363
|
function () { return factories['io.flow.v0.models.payment_method_summary_googlepay'](); },
|
|
13078
13364
|
function () { return factories['io.flow.v0.models.payment_method_summary_paypal'](); },
|
|
13079
13365
|
function () { return factories['io.flow.v0.models.payment_method_summary_ideal'](); },
|
|
13366
|
+
function () { return factories['io.flow.v0.models.payment_method_summary_twint'](); },
|
|
13367
|
+
function () { return factories['io.flow.v0.models.payment_method_summary_przelewy24'](); },
|
|
13080
13368
|
function () { return factories['io.flow.v0.models.payment_method_summary_sofort'](); },
|
|
13081
13369
|
function () { return factories['io.flow.v0.models.payment_method_summary_bancontact'](); },
|
|
13082
13370
|
]);
|
|
@@ -14485,7 +14773,9 @@ export var makePaymentMethodDataInitGooglepay = function () { return factories['
|
|
|
14485
14773
|
export var makePaymentMethodDataInitIdeal = function () { return factories['io.flow.v0.models.payment_method_data_init_ideal'](); };
|
|
14486
14774
|
export var makePaymentMethodDataInitKlarna = function () { return factories['io.flow.v0.models.payment_method_data_init_klarna'](); };
|
|
14487
14775
|
export var makePaymentMethodDataInitPaypal = function () { return factories['io.flow.v0.models.payment_method_data_init_paypal'](); };
|
|
14776
|
+
export var makePaymentMethodDataInitPrzelewy24 = function () { return factories['io.flow.v0.models.payment_method_data_init_przelewy24'](); };
|
|
14488
14777
|
export var makePaymentMethodDataInitSofort = function () { return factories['io.flow.v0.models.payment_method_data_init_sofort'](); };
|
|
14778
|
+
export var makePaymentMethodDataInitTwint = function () { return factories['io.flow.v0.models.payment_method_data_init_twint'](); };
|
|
14489
14779
|
export var makePaymentMethodDataOptionLogo = function () { return factories['io.flow.v0.unions.payment_method_data_option_logo'](); };
|
|
14490
14780
|
export var makePaymentMethodDataOptionLogoSvg = function () { return factories['io.flow.v0.models.payment_method_data_option_logo_svg'](); };
|
|
14491
14781
|
export var makePaymentMethodDataOptionType = function () { return factories['io.flow.v0.enums.payment_method_data_option_type'](); };
|
|
@@ -14510,7 +14800,9 @@ export var makePaymentMethodSummaryGooglepay = function () { return factories['i
|
|
|
14510
14800
|
export var makePaymentMethodSummaryIdeal = function () { return factories['io.flow.v0.models.payment_method_summary_ideal'](); };
|
|
14511
14801
|
export var makePaymentMethodSummaryKlarna = function () { return factories['io.flow.v0.models.payment_method_summary_klarna'](); };
|
|
14512
14802
|
export var makePaymentMethodSummaryPaypal = function () { return factories['io.flow.v0.models.payment_method_summary_paypal'](); };
|
|
14803
|
+
export var makePaymentMethodSummaryPrzelewy24 = function () { return factories['io.flow.v0.models.payment_method_summary_przelewy24'](); };
|
|
14513
14804
|
export var makePaymentMethodSummarySofort = function () { return factories['io.flow.v0.models.payment_method_summary_sofort'](); };
|
|
14805
|
+
export var makePaymentMethodSummaryTwint = function () { return factories['io.flow.v0.models.payment_method_summary_twint'](); };
|
|
14514
14806
|
export var makePaymentMethodTag = function () { return factories['io.flow.v0.unions.payment_method_tag'](); };
|
|
14515
14807
|
export var makePaymentMethodType = function () { return factories['io.flow.v0.enums.payment_method_type'](); };
|
|
14516
14808
|
export var makePaymentOrderDetailsLineItem = function () { return factories['io.flow.v0.models.payment_order_details_line_item'](); };
|
package/dist/types/api.d.ts
CHANGED
|
@@ -1119,7 +1119,9 @@ export declare const makePaymentMethodDataInitGooglepay: () => io.flow.v0.models
|
|
|
1119
1119
|
export declare const makePaymentMethodDataInitIdeal: () => io.flow.v0.models.PaymentMethodDataInitIdeal;
|
|
1120
1120
|
export declare const makePaymentMethodDataInitKlarna: () => io.flow.v0.models.PaymentMethodDataInitKlarna;
|
|
1121
1121
|
export declare const makePaymentMethodDataInitPaypal: () => io.flow.v0.models.PaymentMethodDataInitPaypal;
|
|
1122
|
+
export declare const makePaymentMethodDataInitPrzelewy24: () => io.flow.v0.models.PaymentMethodDataInitPrzelewy24;
|
|
1122
1123
|
export declare const makePaymentMethodDataInitSofort: () => io.flow.v0.models.PaymentMethodDataInitSofort;
|
|
1124
|
+
export declare const makePaymentMethodDataInitTwint: () => io.flow.v0.models.PaymentMethodDataInitTwint;
|
|
1123
1125
|
export declare const makePaymentMethodDataOptionLogo: () => io.flow.v0.models.PaymentMethodDataOptionLogoSvg;
|
|
1124
1126
|
export declare const makePaymentMethodDataOptionLogoSvg: () => io.flow.v0.models.PaymentMethodDataOptionLogoSvg;
|
|
1125
1127
|
export declare const makePaymentMethodDataOptionType: () => "ideal_issuer_option";
|
|
@@ -1144,7 +1146,9 @@ export declare const makePaymentMethodSummaryGooglepay: () => io.flow.v0.models.
|
|
|
1144
1146
|
export declare const makePaymentMethodSummaryIdeal: () => io.flow.v0.models.PaymentMethodSummaryIdeal;
|
|
1145
1147
|
export declare const makePaymentMethodSummaryKlarna: () => io.flow.v0.models.PaymentMethodSummaryKlarna;
|
|
1146
1148
|
export declare const makePaymentMethodSummaryPaypal: () => io.flow.v0.models.PaymentMethodSummaryPaypal;
|
|
1149
|
+
export declare const makePaymentMethodSummaryPrzelewy24: () => io.flow.v0.models.PaymentMethodSummaryPrzelewy24;
|
|
1147
1150
|
export declare const makePaymentMethodSummarySofort: () => io.flow.v0.models.PaymentMethodSummarySofort;
|
|
1151
|
+
export declare const makePaymentMethodSummaryTwint: () => io.flow.v0.models.PaymentMethodSummaryTwint;
|
|
1148
1152
|
export declare const makePaymentMethodTag: () => io.flow.v0.unions.PaymentMethodTag;
|
|
1149
1153
|
export declare const makePaymentMethodType: () => io.flow.v0.enums.PaymentMethodType;
|
|
1150
1154
|
export declare const makePaymentOrderDetailsLineItem: () => io.flow.v0.models.PaymentOrderDetailsLineItem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-factories",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.89",
|
|
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": "54b0e72a2a2a004dbc68536fa4f47e566426a56a"
|
|
40
40
|
}
|