@flowio/api-factories 0.0.113 → 0.0.115

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 CHANGED
@@ -187,6 +187,7 @@ var factories = {
187
187
  'order_missing',
188
188
  ]); },
189
189
  'io.flow.channel.internal.v0.enums.channel_order_acceptance_status': function () { return faker_1.default.helpers.arrayElement(['accepted', 'rejected', 'review', 'edit_review', 'edit_accepted']); },
190
+ 'io.flow.channel.internal.v0.enums.channel_service': function () { return faker_1.default.helpers.arrayElement(['payment', 'duty_tax_calculator', 'sellability']); },
190
191
  'io.flow.channel.internal.v0.enums.order_payment_source_type': function () { return faker_1.default.helpers.arrayElement(['globale', 'third_party']); },
191
192
  'io.flow.channel.internal.v0.models.channel_currency_form': function () { return ({
192
193
  currency: factories.string(),
@@ -248,6 +249,29 @@ var factories = {
248
249
  description: factories.string(),
249
250
  rejection_reason: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_rejection_reason'](),
250
251
  }); },
252
+ 'io.flow.channel.internal.v0.models.channel_organization_domain': function () { return ({
253
+ internal: factories.string(),
254
+ 'public': factories.string(),
255
+ }); },
256
+ 'io.flow.channel.internal.v0.models.channel_organization_installation': function () { return ({
257
+ organization: factories['io.flow.channel.v0.models.channel_organization'](),
258
+ tokens: arrayOf(function () { return factories['io.flow.channel.internal.v0.models.channel_organization_token'](); }),
259
+ }); },
260
+ 'io.flow.channel.internal.v0.models.channel_organization_installation_post_form': function () { return ({
261
+ form: factories['io.flow.channel.v0.models.channel_organization_form'](),
262
+ metadata: factories['io.flow.channel.internal.v0.models.channel_organization_metadata'](),
263
+ }); },
264
+ 'io.flow.channel.internal.v0.models.channel_organization_metadata': function () { return ({
265
+ domain: factories['io.flow.channel.internal.v0.models.channel_organization_domain'](),
266
+ token: factories.string(),
267
+ }); },
268
+ 'io.flow.channel.internal.v0.models.channel_organization_token': function () { return ({
269
+ token: factories['io.flow.channel.internal.v0.models.channel_organization_token_body'](),
270
+ service: factories['io.flow.channel.internal.v0.enums.channel_service'](),
271
+ }); },
272
+ 'io.flow.channel.internal.v0.models.channel_organization_token_body': function () { return ({
273
+ cleartext: factories.string(),
274
+ }); },
251
275
  'io.flow.channel.internal.v0.models.flow_channel_organization': function () { return ({
252
276
  placeholder: factories.string(),
253
277
  }); },
@@ -4135,6 +4159,11 @@ var factories = {
4135
4159
  'duty_guarantee',
4136
4160
  'mor',
4137
4161
  'fraud',
4162
+ 'tax',
4163
+ 'duty',
4164
+ 'tax_and_duty',
4165
+ 'product',
4166
+ 'tax_and_duty_fx_diff',
4138
4167
  'fx',
4139
4168
  'processing',
4140
4169
  'rate_lock',
@@ -4143,7 +4172,7 @@ var factories = {
4143
4172
  'sp',
4144
4173
  ]); },
4145
4174
  'io.flow.v0.enums.flow_behavior': function () { return faker_1.default.helpers.arrayElement(['view_consumer_data']); },
4146
- 'io.flow.v0.enums.flow_entity': function () { return faker_1.default.helpers.arrayElement(['flow-usa', 'flow-irl', 'flow-can', 'ge-usa']); },
4175
+ 'io.flow.v0.enums.flow_entity': function () { return faker_1.default.helpers.arrayElement(['flow-usa', 'flow-irl', 'flow-can', 'ge-usa', 'ge-can', 'ge-gbr', 'ge-irl']); },
4147
4176
  'io.flow.v0.enums.flow_role': function () { return faker_1.default.helpers.arrayElement([
4148
4177
  'organization_admin',
4149
4178
  'organization_merchant',
@@ -4766,6 +4795,7 @@ var factories = {
4766
4795
  'merchant_payout',
4767
4796
  'merchant_refund',
4768
4797
  'ge_revenue_share',
4798
+ 'merchant_fee',
4769
4799
  ]); },
4770
4800
  'io.flow.v0.enums.transfer_status': function () { return faker_1.default.helpers.arrayElement(['succeeded', 'canceled']); },
4771
4801
  'io.flow.v0.enums.transfer_type': function () { return faker_1.default.helpers.arrayElement([
@@ -6848,6 +6878,7 @@ var factories = {
6848
6878
  delivered_duty: factories['io.flow.v0.enums.delivered_duty'](),
6849
6879
  price: factories['io.flow.v0.models.price_with_base_and_details'](),
6850
6880
  service: factories['io.flow.v0.models.service_summary'](),
6881
+ actual_service: factories['io.flow.v0.models.service_summary'](),
6851
6882
  tier: factories['io.flow.v0.models.tier_summary'](),
6852
6883
  window: factories['io.flow.v0.models.delivery_window'](),
6853
6884
  rule_outcome: factories['io.flow.v0.unions.tier_rule_outcome'](),
package/dist/esm/api.js CHANGED
@@ -147,6 +147,7 @@ var factories = {
147
147
  'order_missing',
148
148
  ]); },
149
149
  'io.flow.channel.internal.v0.enums.channel_order_acceptance_status': function () { return faker.helpers.arrayElement(['accepted', 'rejected', 'review', 'edit_review', 'edit_accepted']); },
150
+ 'io.flow.channel.internal.v0.enums.channel_service': function () { return faker.helpers.arrayElement(['payment', 'duty_tax_calculator', 'sellability']); },
150
151
  'io.flow.channel.internal.v0.enums.order_payment_source_type': function () { return faker.helpers.arrayElement(['globale', 'third_party']); },
151
152
  'io.flow.channel.internal.v0.models.channel_currency_form': function () { return ({
152
153
  currency: factories.string(),
@@ -208,6 +209,29 @@ var factories = {
208
209
  description: factories.string(),
209
210
  rejection_reason: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_rejection_reason'](),
210
211
  }); },
212
+ 'io.flow.channel.internal.v0.models.channel_organization_domain': function () { return ({
213
+ internal: factories.string(),
214
+ 'public': factories.string(),
215
+ }); },
216
+ 'io.flow.channel.internal.v0.models.channel_organization_installation': function () { return ({
217
+ organization: factories['io.flow.channel.v0.models.channel_organization'](),
218
+ tokens: arrayOf(function () { return factories['io.flow.channel.internal.v0.models.channel_organization_token'](); }),
219
+ }); },
220
+ 'io.flow.channel.internal.v0.models.channel_organization_installation_post_form': function () { return ({
221
+ form: factories['io.flow.channel.v0.models.channel_organization_form'](),
222
+ metadata: factories['io.flow.channel.internal.v0.models.channel_organization_metadata'](),
223
+ }); },
224
+ 'io.flow.channel.internal.v0.models.channel_organization_metadata': function () { return ({
225
+ domain: factories['io.flow.channel.internal.v0.models.channel_organization_domain'](),
226
+ token: factories.string(),
227
+ }); },
228
+ 'io.flow.channel.internal.v0.models.channel_organization_token': function () { return ({
229
+ token: factories['io.flow.channel.internal.v0.models.channel_organization_token_body'](),
230
+ service: factories['io.flow.channel.internal.v0.enums.channel_service'](),
231
+ }); },
232
+ 'io.flow.channel.internal.v0.models.channel_organization_token_body': function () { return ({
233
+ cleartext: factories.string(),
234
+ }); },
211
235
  'io.flow.channel.internal.v0.models.flow_channel_organization': function () { return ({
212
236
  placeholder: factories.string(),
213
237
  }); },
@@ -4095,6 +4119,11 @@ var factories = {
4095
4119
  'duty_guarantee',
4096
4120
  'mor',
4097
4121
  'fraud',
4122
+ 'tax',
4123
+ 'duty',
4124
+ 'tax_and_duty',
4125
+ 'product',
4126
+ 'tax_and_duty_fx_diff',
4098
4127
  'fx',
4099
4128
  'processing',
4100
4129
  'rate_lock',
@@ -4103,7 +4132,7 @@ var factories = {
4103
4132
  'sp',
4104
4133
  ]); },
4105
4134
  'io.flow.v0.enums.flow_behavior': function () { return faker.helpers.arrayElement(['view_consumer_data']); },
4106
- 'io.flow.v0.enums.flow_entity': function () { return faker.helpers.arrayElement(['flow-usa', 'flow-irl', 'flow-can', 'ge-usa']); },
4135
+ 'io.flow.v0.enums.flow_entity': function () { return faker.helpers.arrayElement(['flow-usa', 'flow-irl', 'flow-can', 'ge-usa', 'ge-can', 'ge-gbr', 'ge-irl']); },
4107
4136
  'io.flow.v0.enums.flow_role': function () { return faker.helpers.arrayElement([
4108
4137
  'organization_admin',
4109
4138
  'organization_merchant',
@@ -4726,6 +4755,7 @@ var factories = {
4726
4755
  'merchant_payout',
4727
4756
  'merchant_refund',
4728
4757
  'ge_revenue_share',
4758
+ 'merchant_fee',
4729
4759
  ]); },
4730
4760
  'io.flow.v0.enums.transfer_status': function () { return faker.helpers.arrayElement(['succeeded', 'canceled']); },
4731
4761
  'io.flow.v0.enums.transfer_type': function () { return faker.helpers.arrayElement([
@@ -6808,6 +6838,7 @@ var factories = {
6808
6838
  delivered_duty: factories['io.flow.v0.enums.delivered_duty'](),
6809
6839
  price: factories['io.flow.v0.models.price_with_base_and_details'](),
6810
6840
  service: factories['io.flow.v0.models.service_summary'](),
6841
+ actual_service: factories['io.flow.v0.models.service_summary'](),
6811
6842
  tier: factories['io.flow.v0.models.tier_summary'](),
6812
6843
  window: factories['io.flow.v0.models.delivery_window'](),
6813
6844
  rule_outcome: factories['io.flow.v0.unions.tier_rule_outcome'](),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-factories",
3
- "version": "0.0.113",
3
+ "version": "0.0.115",
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": "5c6b5f5cb926cc945c9f4291efe22dedfde83355"
39
+ "gitHead": "e6ab4a371f4a5b27785d522dc32505277757198d"
40
40
  }
package/src/api.ts CHANGED
@@ -176,6 +176,7 @@ const factories = {
176
176
  ]),
177
177
 
178
178
  'io.flow.channel.internal.v0.enums.channel_order_acceptance_status': (): io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus => faker.helpers.arrayElement(['accepted', 'rejected', 'review', 'edit_review', 'edit_accepted']),
179
+ 'io.flow.channel.internal.v0.enums.channel_service': (): io.flow.channel.internal.v0.enums.ChannelService => faker.helpers.arrayElement(['payment', 'duty_tax_calculator', 'sellability']),
179
180
  'io.flow.channel.internal.v0.enums.order_payment_source_type': (): io.flow.channel.internal.v0.enums.OrderPaymentSourceType => faker.helpers.arrayElement(['globale', 'third_party']),
180
181
 
181
182
  'io.flow.channel.internal.v0.models.channel_currency_form': (): io.flow.channel.internal.v0.models.ChannelCurrencyForm => ({
@@ -252,6 +253,38 @@ const factories = {
252
253
  rejection_reason: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_rejection_reason'](),
253
254
  }),
254
255
 
256
+ 'io.flow.channel.internal.v0.models.channel_organization_domain': (): io.flow.channel.internal.v0.models.ChannelOrganizationDomain => ({
257
+ internal: factories.string(),
258
+ 'public': factories.string(),
259
+ }),
260
+
261
+ 'io.flow.channel.internal.v0.models.channel_organization_installation': (): io.flow.channel.internal.v0.models.ChannelOrganizationInstallation => ({
262
+ organization: factories['io.flow.channel.v0.models.channel_organization'](),
263
+
264
+ tokens: arrayOf(
265
+ () => factories['io.flow.channel.internal.v0.models.channel_organization_token'](),
266
+ ),
267
+ }),
268
+
269
+ 'io.flow.channel.internal.v0.models.channel_organization_installation_post_form': (): io.flow.channel.internal.v0.models.ChannelOrganizationInstallationPostForm => ({
270
+ form: factories['io.flow.channel.v0.models.channel_organization_form'](),
271
+ metadata: factories['io.flow.channel.internal.v0.models.channel_organization_metadata'](),
272
+ }),
273
+
274
+ 'io.flow.channel.internal.v0.models.channel_organization_metadata': (): io.flow.channel.internal.v0.models.ChannelOrganizationMetadata => ({
275
+ domain: factories['io.flow.channel.internal.v0.models.channel_organization_domain'](),
276
+ token: factories.string(),
277
+ }),
278
+
279
+ 'io.flow.channel.internal.v0.models.channel_organization_token': (): io.flow.channel.internal.v0.models.ChannelOrganizationToken => ({
280
+ token: factories['io.flow.channel.internal.v0.models.channel_organization_token_body'](),
281
+ service: factories['io.flow.channel.internal.v0.enums.channel_service'](),
282
+ }),
283
+
284
+ 'io.flow.channel.internal.v0.models.channel_organization_token_body': (): io.flow.channel.internal.v0.models.ChannelOrganizationTokenBody => ({
285
+ cleartext: factories.string(),
286
+ }),
287
+
255
288
  'io.flow.channel.internal.v0.models.flow_channel_organization': (): io.flow.channel.internal.v0.models.FlowChannelOrganization => ({
256
289
  placeholder: factories.string(),
257
290
  }),
@@ -4708,6 +4741,11 @@ const factories = {
4708
4741
  'duty_guarantee',
4709
4742
  'mor',
4710
4743
  'fraud',
4744
+ 'tax',
4745
+ 'duty',
4746
+ 'tax_and_duty',
4747
+ 'product',
4748
+ 'tax_and_duty_fx_diff',
4711
4749
  'fx',
4712
4750
  'processing',
4713
4751
  'rate_lock',
@@ -4717,7 +4755,10 @@ const factories = {
4717
4755
  ]),
4718
4756
 
4719
4757
  'io.flow.v0.enums.flow_behavior': (): io.flow.v0.enums.FlowBehavior => faker.helpers.arrayElement(['view_consumer_data']),
4720
- 'io.flow.v0.enums.flow_entity': (): io.flow.v0.enums.FlowEntity => faker.helpers.arrayElement(['flow-usa', 'flow-irl', 'flow-can', 'ge-usa']),
4758
+
4759
+ 'io.flow.v0.enums.flow_entity': (): io.flow.v0.enums.FlowEntity => faker.helpers.arrayElement(
4760
+ ['flow-usa', 'flow-irl', 'flow-can', 'ge-usa', 'ge-can', 'ge-gbr', 'ge-irl'],
4761
+ ),
4721
4762
 
4722
4763
  'io.flow.v0.enums.flow_role': (): io.flow.v0.enums.FlowRole => faker.helpers.arrayElement([
4723
4764
  'organization_admin',
@@ -5395,6 +5436,7 @@ const factories = {
5395
5436
  'merchant_payout',
5396
5437
  'merchant_refund',
5397
5438
  'ge_revenue_share',
5439
+ 'merchant_fee',
5398
5440
  ]),
5399
5441
 
5400
5442
  'io.flow.v0.enums.transfer_status': (): io.flow.v0.enums.TransferStatus => faker.helpers.arrayElement(['succeeded', 'canceled']),
@@ -7817,6 +7859,7 @@ const factories = {
7817
7859
  delivered_duty: factories['io.flow.v0.enums.delivered_duty'](),
7818
7860
  price: factories['io.flow.v0.models.price_with_base_and_details'](),
7819
7861
  service: factories['io.flow.v0.models.service_summary'](),
7862
+ actual_service: factories['io.flow.v0.models.service_summary'](),
7820
7863
  tier: factories['io.flow.v0.models.tier_summary'](),
7821
7864
  window: factories['io.flow.v0.models.delivery_window'](),
7822
7865
  rule_outcome: factories['io.flow.v0.unions.tier_rule_outcome'](),