@flowio/api-mock-generator 6.17.29 → 6.17.31

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.
Files changed (3) hide show
  1. package/dist/api.json +388 -37
  2. package/package.json +2 -2
  3. package/src/api.json +388 -37
package/dist/api.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "key": "api"
11
11
  },
12
12
  "namespace": "io.flow.v0",
13
- "version": "0.16.83",
13
+ "version": "0.16.87",
14
14
  "info": {
15
15
  "license": {
16
16
  "name": "MIT",
@@ -1168,7 +1168,10 @@
1168
1168
  "name": "transaction_upserted",
1169
1169
  "attributes": []
1170
1170
  }, {
1171
- "name": "transaction_deleted",
1171
+ "name": "organization_transaction_upserted",
1172
+ "attributes": []
1173
+ }, {
1174
+ "name": "organization_transaction_deleted",
1172
1175
  "attributes": []
1173
1176
  }, {
1174
1177
  "name": "statement_upserted",
@@ -1182,6 +1185,9 @@
1182
1185
  }, {
1183
1186
  "name": "channel_transaction_deleted",
1184
1187
  "attributes": []
1188
+ }, {
1189
+ "name": "channel_transaction_deleted_v2",
1190
+ "attributes": []
1185
1191
  }, {
1186
1192
  "name": "channel_statement_upserted",
1187
1193
  "attributes": []
@@ -2514,6 +2520,20 @@
2514
2520
  }],
2515
2521
  "attributes": [],
2516
2522
  "description": "The merchant of record enum defines who is merchant of record for a particular transaction - either Flow is serving as the merchant of record or the organization is serving as merchant of record."
2523
+ }, {
2524
+ "name": "merchant_rejected_reason",
2525
+ "plural": "merchant_rejected_reasons",
2526
+ "values": [{
2527
+ "name": "merchant_ubo_is_pep",
2528
+ "attributes": []
2529
+ }, {
2530
+ "name": "merchant_catalog_is_unsupportable",
2531
+ "attributes": []
2532
+ }, {
2533
+ "name": "merchant_failed_kyb_review",
2534
+ "attributes": []
2535
+ }],
2536
+ "attributes": []
2517
2537
  }, {
2518
2538
  "name": "method",
2519
2539
  "plural": "methods",
@@ -2543,6 +2563,23 @@
2543
2563
  "attributes": []
2544
2564
  }],
2545
2565
  "attributes": []
2566
+ }, {
2567
+ "name": "onboarding_blocked_reason",
2568
+ "plural": "onboarding_blocked_reasons",
2569
+ "values": [{
2570
+ "name": "street_address_is_blank_3pl",
2571
+ "attributes": []
2572
+ }, {
2573
+ "name": "street_address_is_po_box_3pl",
2574
+ "attributes": []
2575
+ }, {
2576
+ "name": "business_street_address_is_blank",
2577
+ "attributes": []
2578
+ }, {
2579
+ "name": "business_street_address_is_po_box",
2580
+ "attributes": []
2581
+ }],
2582
+ "attributes": []
2546
2583
  }, {
2547
2584
  "name": "onboarding_trade_sector",
2548
2585
  "plural": "onboarding_trade_sectors",
@@ -4601,6 +4638,9 @@
4601
4638
  }, {
4602
4639
  "name": "channel",
4603
4640
  "attributes": []
4641
+ }, {
4642
+ "name": "channel_billed",
4643
+ "attributes": []
4604
4644
  }, {
4605
4645
  "name": "order_service",
4606
4646
  "attributes": []
@@ -6228,9 +6268,13 @@
6228
6268
  "attributes": [],
6229
6269
  "discriminator_value": "transaction_upserted"
6230
6270
  }, {
6231
- "type": "transaction_deleted",
6271
+ "type": "organization_transaction_upserted",
6232
6272
  "attributes": [],
6233
- "discriminator_value": "transaction_deleted"
6273
+ "discriminator_value": "organization_transaction_upserted"
6274
+ }, {
6275
+ "type": "organization_transaction_deleted",
6276
+ "attributes": [],
6277
+ "discriminator_value": "organization_transaction_deleted"
6234
6278
  }, {
6235
6279
  "type": "statement_upserted",
6236
6280
  "attributes": [],
@@ -6247,6 +6291,10 @@
6247
6291
  "type": "channel_transaction_deleted",
6248
6292
  "attributes": [],
6249
6293
  "discriminator_value": "channel_transaction_deleted"
6294
+ }, {
6295
+ "type": "channel_transaction_deleted_v2",
6296
+ "attributes": [],
6297
+ "discriminator_value": "channel_transaction_deleted_v2"
6250
6298
  }, {
6251
6299
  "type": "channel_statement_upserted",
6252
6300
  "attributes": [],
@@ -7388,6 +7436,41 @@
7388
7436
  "attributes": [],
7389
7437
  "interfaces": [],
7390
7438
  "discriminator": "discriminator"
7439
+ }, {
7440
+ "name": "onboarding_state",
7441
+ "plural": "onboarding_states",
7442
+ "types": [{
7443
+ "type": "application_received",
7444
+ "attributes": [],
7445
+ "discriminator_value": "application_received"
7446
+ }, {
7447
+ "type": "in_compliance_review",
7448
+ "attributes": [],
7449
+ "discriminator_value": "in_compliance_review"
7450
+ }, {
7451
+ "type": "setup_in_progress",
7452
+ "attributes": [],
7453
+ "discriminator_value": "setup_in_progress"
7454
+ }, {
7455
+ "type": "merchant_rejected",
7456
+ "attributes": [],
7457
+ "discriminator_value": "merchant_rejected"
7458
+ }, {
7459
+ "type": "setup_blocked",
7460
+ "attributes": [],
7461
+ "discriminator_value": "setup_blocked"
7462
+ }, {
7463
+ "type": "setup_completed",
7464
+ "attributes": [],
7465
+ "discriminator_value": "setup_completed"
7466
+ }, {
7467
+ "type": "merchant_activated",
7468
+ "attributes": [],
7469
+ "discriminator_value": "merchant_activated"
7470
+ }],
7471
+ "attributes": [],
7472
+ "interfaces": [],
7473
+ "discriminator": "discriminator"
7391
7474
  }, {
7392
7475
  "name": "online_authorization_details",
7393
7476
  "plural": "online_authorization_detailses",
@@ -10097,6 +10180,19 @@
10097
10180
  }],
10098
10181
  "attributes": [],
10099
10182
  "interfaces": []
10183
+ }, {
10184
+ "name": "application_received",
10185
+ "plural": "application_receiveds",
10186
+ "fields": [{
10187
+ "name": "placeholder",
10188
+ "type": "boolean",
10189
+ "required": false,
10190
+ "attributes": [],
10191
+ "annotations": []
10192
+ }],
10193
+ "attributes": [],
10194
+ "interfaces": [],
10195
+ "description": "The application is received from partner and is pending compliance review"
10100
10196
  }, {
10101
10197
  "name": "at_cost",
10102
10198
  "plural": "at_costs",
@@ -14797,6 +14893,40 @@
14797
14893
  "annotations": []
14798
14894
  }],
14799
14895
  "attributes": [],
14896
+ "interfaces": [],
14897
+ "deprecation": {
14898
+ "description": "Subscribe to channel_transaction_deleted_v2 instead as channel_transaction_deleted is scheduled for removal."
14899
+ }
14900
+ }, {
14901
+ "name": "channel_transaction_deleted_v2",
14902
+ "plural": "channel_transaction_deleted_v2s",
14903
+ "fields": [{
14904
+ "name": "event_id",
14905
+ "type": "string",
14906
+ "required": true,
14907
+ "attributes": [],
14908
+ "annotations": []
14909
+ }, {
14910
+ "name": "timestamp",
14911
+ "type": "date-time-iso8601",
14912
+ "required": true,
14913
+ "attributes": [],
14914
+ "annotations": []
14915
+ }, {
14916
+ "name": "channel_id",
14917
+ "type": "string",
14918
+ "required": true,
14919
+ "attributes": [],
14920
+ "annotations": []
14921
+ }, {
14922
+ "name": "id",
14923
+ "type": "string",
14924
+ "required": true,
14925
+ "attributes": [],
14926
+ "annotations": [],
14927
+ "description": "Globally unique identifier"
14928
+ }],
14929
+ "attributes": [],
14800
14930
  "interfaces": []
14801
14931
  }, {
14802
14932
  "name": "channel_transaction_upserted",
@@ -24100,6 +24230,19 @@
24100
24230
  }],
24101
24231
  "attributes": [],
24102
24232
  "interfaces": []
24233
+ }, {
24234
+ "name": "in_compliance_review",
24235
+ "plural": "in_compliance_reviews",
24236
+ "fields": [{
24237
+ "name": "placeholder",
24238
+ "type": "boolean",
24239
+ "required": false,
24240
+ "attributes": [],
24241
+ "annotations": []
24242
+ }],
24243
+ "attributes": [],
24244
+ "interfaces": [],
24245
+ "description": "The merchant is under review"
24103
24246
  }, {
24104
24247
  "name": "inbound_carton_fee",
24105
24248
  "plural": "inbound_carton_fees",
@@ -28242,6 +28385,19 @@
28242
28385
  }],
28243
28386
  "attributes": [],
28244
28387
  "interfaces": []
28388
+ }, {
28389
+ "name": "merchant_activated",
28390
+ "plural": "merchant_activateds",
28391
+ "fields": [{
28392
+ "name": "placeholder",
28393
+ "type": "boolean",
28394
+ "required": false,
28395
+ "attributes": [],
28396
+ "annotations": []
28397
+ }],
28398
+ "attributes": [],
28399
+ "interfaces": [],
28400
+ "description": "The merchant is activated by partner"
28245
28401
  }, {
28246
28402
  "name": "merchant_application_deleted",
28247
28403
  "plural": "merchant_application_deleteds",
@@ -28747,6 +28903,25 @@
28747
28903
  }],
28748
28904
  "attributes": [],
28749
28905
  "interfaces": []
28906
+ }, {
28907
+ "name": "merchant_rejected",
28908
+ "plural": "merchant_rejecteds",
28909
+ "fields": [{
28910
+ "name": "reason",
28911
+ "type": "merchant_rejected_reason",
28912
+ "required": true,
28913
+ "attributes": [],
28914
+ "annotations": []
28915
+ }, {
28916
+ "name": "description",
28917
+ "type": "string",
28918
+ "required": false,
28919
+ "attributes": [],
28920
+ "annotations": []
28921
+ }],
28922
+ "attributes": [],
28923
+ "interfaces": [],
28924
+ "description": "The merchant is rejected for onboarding by the compliance team"
28750
28925
  }, {
28751
28926
  "name": "money",
28752
28927
  "plural": "moneys",
@@ -29133,6 +29308,24 @@
29133
29308
  }],
29134
29309
  "attributes": [],
29135
29310
  "interfaces": []
29311
+ }, {
29312
+ "name": "onboarding_state_transition",
29313
+ "plural": "onboarding_state_transitions",
29314
+ "fields": [{
29315
+ "name": "state",
29316
+ "type": "onboarding_state",
29317
+ "required": true,
29318
+ "attributes": [],
29319
+ "annotations": []
29320
+ }, {
29321
+ "name": "started_at",
29322
+ "type": "date-time-iso8601",
29323
+ "required": true,
29324
+ "attributes": [],
29325
+ "annotations": []
29326
+ }],
29327
+ "attributes": [],
29328
+ "interfaces": []
29136
29329
  }, {
29137
29330
  "name": "online_authorization",
29138
29331
  "plural": "online_authorizations",
@@ -33338,6 +33531,31 @@
33338
33531
  "attributes": [],
33339
33532
  "interfaces": [],
33340
33533
  "description": "Either id or name is required."
33534
+ }, {
33535
+ "name": "organization_onboarding_state",
33536
+ "plural": "organization_onboarding_states",
33537
+ "fields": [{
33538
+ "name": "organization",
33539
+ "type": "organization_reference",
33540
+ "required": true,
33541
+ "attributes": [],
33542
+ "annotations": [],
33543
+ "description": "Refers to your organization's account identifier"
33544
+ }, {
33545
+ "name": "transitions",
33546
+ "type": "[onboarding_state_transition]",
33547
+ "required": true,
33548
+ "attributes": [],
33549
+ "annotations": []
33550
+ }, {
33551
+ "name": "current_state",
33552
+ "type": "onboarding_state",
33553
+ "required": true,
33554
+ "attributes": [],
33555
+ "annotations": []
33556
+ }],
33557
+ "attributes": [],
33558
+ "interfaces": []
33341
33559
  }, {
33342
33560
  "name": "organization_put_form",
33343
33561
  "plural": "organization_put_forms",
@@ -33774,6 +33992,69 @@
33774
33992
  }],
33775
33993
  "attributes": [],
33776
33994
  "interfaces": []
33995
+ }, {
33996
+ "name": "organization_transaction_deleted",
33997
+ "plural": "organization_transaction_deleteds",
33998
+ "fields": [{
33999
+ "name": "event_id",
34000
+ "type": "string",
34001
+ "required": true,
34002
+ "attributes": [],
34003
+ "annotations": []
34004
+ }, {
34005
+ "name": "timestamp",
34006
+ "type": "date-time-iso8601",
34007
+ "required": true,
34008
+ "attributes": [],
34009
+ "annotations": []
34010
+ }, {
34011
+ "name": "organization",
34012
+ "type": "string",
34013
+ "required": true,
34014
+ "attributes": [],
34015
+ "annotations": [],
34016
+ "description": "Refers to your organization's account identifier"
34017
+ }, {
34018
+ "name": "id",
34019
+ "type": "string",
34020
+ "required": true,
34021
+ "attributes": [],
34022
+ "annotations": [],
34023
+ "description": "Globally unique identifier"
34024
+ }],
34025
+ "attributes": [],
34026
+ "interfaces": []
34027
+ }, {
34028
+ "name": "organization_transaction_upserted",
34029
+ "plural": "organization_transaction_upserteds",
34030
+ "fields": [{
34031
+ "name": "event_id",
34032
+ "type": "string",
34033
+ "required": true,
34034
+ "attributes": [],
34035
+ "annotations": []
34036
+ }, {
34037
+ "name": "timestamp",
34038
+ "type": "date-time-iso8601",
34039
+ "required": true,
34040
+ "attributes": [],
34041
+ "annotations": []
34042
+ }, {
34043
+ "name": "organization",
34044
+ "type": "string",
34045
+ "required": true,
34046
+ "attributes": [],
34047
+ "annotations": [],
34048
+ "description": "Refers to your organization's account identifier"
34049
+ }, {
34050
+ "name": "transaction",
34051
+ "type": "transaction",
34052
+ "required": true,
34053
+ "attributes": [],
34054
+ "annotations": []
34055
+ }],
34056
+ "attributes": [],
34057
+ "interfaces": []
33777
34058
  }, {
33778
34059
  "name": "organization_upserted",
33779
34060
  "plural": "organization_upserteds",
@@ -34601,7 +34882,7 @@
34601
34882
  }, {
34602
34883
  "name": "phone",
34603
34884
  "type": "string",
34604
- "required": true,
34885
+ "required": false,
34605
34886
  "attributes": [],
34606
34887
  "annotations": ["personal_data"]
34607
34888
  }],
@@ -42952,6 +43233,45 @@
42952
43233
  "attributes": [],
42953
43234
  "interfaces": [],
42954
43235
  "description": "A session visitor is a unique identifier for our best guess as to who the individual user is interacting with Flow."
43236
+ }, {
43237
+ "name": "setup_blocked",
43238
+ "plural": "setup_blockeds",
43239
+ "fields": [{
43240
+ "name": "reasons",
43241
+ "type": "[onboarding_blocked_reason]",
43242
+ "required": true,
43243
+ "attributes": [],
43244
+ "annotations": []
43245
+ }],
43246
+ "attributes": [],
43247
+ "interfaces": [],
43248
+ "description": "The onboarding process is blocked by an issue that requires escalation"
43249
+ }, {
43250
+ "name": "setup_completed",
43251
+ "plural": "setup_completeds",
43252
+ "fields": [{
43253
+ "name": "placeholder",
43254
+ "type": "boolean",
43255
+ "required": false,
43256
+ "attributes": [],
43257
+ "annotations": []
43258
+ }],
43259
+ "attributes": [],
43260
+ "interfaces": [],
43261
+ "description": "The onboarding setup is completed and the organization is ready to process order."
43262
+ }, {
43263
+ "name": "setup_in_progress",
43264
+ "plural": "setup_in_progresses",
43265
+ "fields": [{
43266
+ "name": "placeholder",
43267
+ "type": "boolean",
43268
+ "required": false,
43269
+ "attributes": [],
43270
+ "annotations": []
43271
+ }],
43272
+ "attributes": [],
43273
+ "interfaces": [],
43274
+ "description": "The merchant is approved for onboarding by the compliance team & onboarding config automation has begun"
42955
43275
  }, {
42956
43276
  "name": "shipment_window",
42957
43277
  "plural": "shipment_windows",
@@ -49360,37 +49680,6 @@
49360
49680
  }],
49361
49681
  "attributes": [],
49362
49682
  "interfaces": ["transaction_interface"]
49363
- }, {
49364
- "name": "transaction_deleted",
49365
- "plural": "transaction_deleteds",
49366
- "fields": [{
49367
- "name": "event_id",
49368
- "type": "string",
49369
- "required": true,
49370
- "attributes": [],
49371
- "annotations": []
49372
- }, {
49373
- "name": "timestamp",
49374
- "type": "date-time-iso8601",
49375
- "required": true,
49376
- "attributes": [],
49377
- "annotations": []
49378
- }, {
49379
- "name": "organization",
49380
- "type": "string",
49381
- "required": true,
49382
- "attributes": [],
49383
- "annotations": [],
49384
- "description": "Refers to your organization's account identifier"
49385
- }, {
49386
- "name": "transaction",
49387
- "type": "transaction",
49388
- "required": true,
49389
- "attributes": [],
49390
- "annotations": []
49391
- }],
49392
- "attributes": [],
49393
- "interfaces": []
49394
49683
  }, {
49395
49684
  "name": "transaction_upserted",
49396
49685
  "plural": "transaction_upserteds",
@@ -49421,7 +49710,10 @@
49421
49710
  "annotations": []
49422
49711
  }],
49423
49712
  "attributes": [],
49424
- "interfaces": []
49713
+ "interfaces": [],
49714
+ "deprecation": {
49715
+ "description": "Subscribe to organization_transaction_upserted instead as transaction_upserted is scheduled for removal."
49716
+ }
49425
49717
  }, {
49426
49718
  "name": "transit_estimate",
49427
49719
  "plural": "transit_estimates",
@@ -86093,6 +86385,65 @@
86093
86385
  }
86094
86386
  }],
86095
86387
  "path": "/:organization_id/default/configurations"
86388
+ }, {
86389
+ "type": "organization_onboarding_state",
86390
+ "plural": "organization_onboarding_states",
86391
+ "operations": [{
86392
+ "method": "GET",
86393
+ "path": "/:organization/onboarding/state",
86394
+ "parameters": [{
86395
+ "name": "organization",
86396
+ "type": "string",
86397
+ "location": "Path",
86398
+ "required": true,
86399
+ "description": "Refers to your organization's account identifier"
86400
+ }],
86401
+ "responses": [{
86402
+ "code": {
86403
+ "integer": {
86404
+ "value": 200
86405
+ }
86406
+ },
86407
+ "type": "organization_onboarding_state",
86408
+ "description": "Successful response",
86409
+ "attributes": []
86410
+ }, {
86411
+ "code": {
86412
+ "integer": {
86413
+ "value": 401
86414
+ }
86415
+ },
86416
+ "type": "unit",
86417
+ "description": "Authorization failed",
86418
+ "attributes": []
86419
+ }, {
86420
+ "code": {
86421
+ "integer": {
86422
+ "value": 404
86423
+ }
86424
+ },
86425
+ "type": "unit",
86426
+ "description": "Resource was not found",
86427
+ "attributes": []
86428
+ }, {
86429
+ "code": {
86430
+ "integer": {
86431
+ "value": 422
86432
+ }
86433
+ },
86434
+ "type": "generic_error",
86435
+ "description": "One or more errors were found with the data sent in the request. The body of the response contains specific details on what data failed validation.",
86436
+ "attributes": []
86437
+ }],
86438
+ "attributes": []
86439
+ }],
86440
+ "attributes": [{
86441
+ "name": "docs",
86442
+ "value": {
86443
+ "module": "general"
86444
+ }
86445
+ }],
86446
+ "path": "/:organization/onboarding/state"
86096
86447
  }, {
86097
86448
  "type": "organization_token",
86098
86449
  "plural": "organization_tokens",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-mock-generator",
3
- "version": "6.17.29",
3
+ "version": "6.17.31",
4
4
  "description": "A mock data generator based on our API specifications for JavaScript",
5
5
  "keywords": [
6
6
  "flowcommerce",
@@ -28,5 +28,5 @@
28
28
  "apibuilder-js": "0.0.13",
29
29
  "apibuilder-mock-generator": "0.0.13"
30
30
  },
31
- "gitHead": "63128f7f46bbcdec0b463b602b669f1a441dc197"
31
+ "gitHead": "52061c2130395e8550acf7a142dd62fc9420faf6"
32
32
  }
package/src/api.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "key" : "api"
11
11
  },
12
12
  "namespace" : "io.flow.v0",
13
- "version" : "0.16.83",
13
+ "version" : "0.16.87",
14
14
  "info" : {
15
15
  "license" : {
16
16
  "name" : "MIT",
@@ -1168,7 +1168,10 @@
1168
1168
  "name" : "transaction_upserted",
1169
1169
  "attributes" : [ ]
1170
1170
  }, {
1171
- "name" : "transaction_deleted",
1171
+ "name" : "organization_transaction_upserted",
1172
+ "attributes" : [ ]
1173
+ }, {
1174
+ "name" : "organization_transaction_deleted",
1172
1175
  "attributes" : [ ]
1173
1176
  }, {
1174
1177
  "name" : "statement_upserted",
@@ -1182,6 +1185,9 @@
1182
1185
  }, {
1183
1186
  "name" : "channel_transaction_deleted",
1184
1187
  "attributes" : [ ]
1188
+ }, {
1189
+ "name" : "channel_transaction_deleted_v2",
1190
+ "attributes" : [ ]
1185
1191
  }, {
1186
1192
  "name" : "channel_statement_upserted",
1187
1193
  "attributes" : [ ]
@@ -2514,6 +2520,20 @@
2514
2520
  } ],
2515
2521
  "attributes" : [ ],
2516
2522
  "description" : "The merchant of record enum defines who is merchant of record for a particular transaction - either Flow is serving as the merchant of record or the organization is serving as merchant of record."
2523
+ }, {
2524
+ "name" : "merchant_rejected_reason",
2525
+ "plural" : "merchant_rejected_reasons",
2526
+ "values" : [ {
2527
+ "name" : "merchant_ubo_is_pep",
2528
+ "attributes" : [ ]
2529
+ }, {
2530
+ "name" : "merchant_catalog_is_unsupportable",
2531
+ "attributes" : [ ]
2532
+ }, {
2533
+ "name" : "merchant_failed_kyb_review",
2534
+ "attributes" : [ ]
2535
+ } ],
2536
+ "attributes" : [ ]
2517
2537
  }, {
2518
2538
  "name" : "method",
2519
2539
  "plural" : "methods",
@@ -2543,6 +2563,23 @@
2543
2563
  "attributes" : [ ]
2544
2564
  } ],
2545
2565
  "attributes" : [ ]
2566
+ }, {
2567
+ "name" : "onboarding_blocked_reason",
2568
+ "plural" : "onboarding_blocked_reasons",
2569
+ "values" : [ {
2570
+ "name" : "street_address_is_blank_3pl",
2571
+ "attributes" : [ ]
2572
+ }, {
2573
+ "name" : "street_address_is_po_box_3pl",
2574
+ "attributes" : [ ]
2575
+ }, {
2576
+ "name" : "business_street_address_is_blank",
2577
+ "attributes" : [ ]
2578
+ }, {
2579
+ "name" : "business_street_address_is_po_box",
2580
+ "attributes" : [ ]
2581
+ } ],
2582
+ "attributes" : [ ]
2546
2583
  }, {
2547
2584
  "name" : "onboarding_trade_sector",
2548
2585
  "plural" : "onboarding_trade_sectors",
@@ -4601,6 +4638,9 @@
4601
4638
  }, {
4602
4639
  "name" : "channel",
4603
4640
  "attributes" : [ ]
4641
+ }, {
4642
+ "name" : "channel_billed",
4643
+ "attributes" : [ ]
4604
4644
  }, {
4605
4645
  "name" : "order_service",
4606
4646
  "attributes" : [ ]
@@ -6228,9 +6268,13 @@
6228
6268
  "attributes" : [ ],
6229
6269
  "discriminator_value" : "transaction_upserted"
6230
6270
  }, {
6231
- "type" : "transaction_deleted",
6271
+ "type" : "organization_transaction_upserted",
6232
6272
  "attributes" : [ ],
6233
- "discriminator_value" : "transaction_deleted"
6273
+ "discriminator_value" : "organization_transaction_upserted"
6274
+ }, {
6275
+ "type" : "organization_transaction_deleted",
6276
+ "attributes" : [ ],
6277
+ "discriminator_value" : "organization_transaction_deleted"
6234
6278
  }, {
6235
6279
  "type" : "statement_upserted",
6236
6280
  "attributes" : [ ],
@@ -6247,6 +6291,10 @@
6247
6291
  "type" : "channel_transaction_deleted",
6248
6292
  "attributes" : [ ],
6249
6293
  "discriminator_value" : "channel_transaction_deleted"
6294
+ }, {
6295
+ "type" : "channel_transaction_deleted_v2",
6296
+ "attributes" : [ ],
6297
+ "discriminator_value" : "channel_transaction_deleted_v2"
6250
6298
  }, {
6251
6299
  "type" : "channel_statement_upserted",
6252
6300
  "attributes" : [ ],
@@ -7388,6 +7436,41 @@
7388
7436
  "attributes" : [ ],
7389
7437
  "interfaces" : [ ],
7390
7438
  "discriminator" : "discriminator"
7439
+ }, {
7440
+ "name" : "onboarding_state",
7441
+ "plural" : "onboarding_states",
7442
+ "types" : [ {
7443
+ "type" : "application_received",
7444
+ "attributes" : [ ],
7445
+ "discriminator_value" : "application_received"
7446
+ }, {
7447
+ "type" : "in_compliance_review",
7448
+ "attributes" : [ ],
7449
+ "discriminator_value" : "in_compliance_review"
7450
+ }, {
7451
+ "type" : "setup_in_progress",
7452
+ "attributes" : [ ],
7453
+ "discriminator_value" : "setup_in_progress"
7454
+ }, {
7455
+ "type" : "merchant_rejected",
7456
+ "attributes" : [ ],
7457
+ "discriminator_value" : "merchant_rejected"
7458
+ }, {
7459
+ "type" : "setup_blocked",
7460
+ "attributes" : [ ],
7461
+ "discriminator_value" : "setup_blocked"
7462
+ }, {
7463
+ "type" : "setup_completed",
7464
+ "attributes" : [ ],
7465
+ "discriminator_value" : "setup_completed"
7466
+ }, {
7467
+ "type" : "merchant_activated",
7468
+ "attributes" : [ ],
7469
+ "discriminator_value" : "merchant_activated"
7470
+ } ],
7471
+ "attributes" : [ ],
7472
+ "interfaces" : [ ],
7473
+ "discriminator" : "discriminator"
7391
7474
  }, {
7392
7475
  "name" : "online_authorization_details",
7393
7476
  "plural" : "online_authorization_detailses",
@@ -10097,6 +10180,19 @@
10097
10180
  } ],
10098
10181
  "attributes" : [ ],
10099
10182
  "interfaces" : [ ]
10183
+ }, {
10184
+ "name" : "application_received",
10185
+ "plural" : "application_receiveds",
10186
+ "fields" : [ {
10187
+ "name" : "placeholder",
10188
+ "type" : "boolean",
10189
+ "required" : false,
10190
+ "attributes" : [ ],
10191
+ "annotations" : [ ]
10192
+ } ],
10193
+ "attributes" : [ ],
10194
+ "interfaces" : [ ],
10195
+ "description" : "The application is received from partner and is pending compliance review"
10100
10196
  }, {
10101
10197
  "name" : "at_cost",
10102
10198
  "plural" : "at_costs",
@@ -14797,6 +14893,40 @@
14797
14893
  "annotations" : [ ]
14798
14894
  } ],
14799
14895
  "attributes" : [ ],
14896
+ "interfaces" : [ ],
14897
+ "deprecation" : {
14898
+ "description" : "Subscribe to channel_transaction_deleted_v2 instead as channel_transaction_deleted is scheduled for removal."
14899
+ }
14900
+ }, {
14901
+ "name" : "channel_transaction_deleted_v2",
14902
+ "plural" : "channel_transaction_deleted_v2s",
14903
+ "fields" : [ {
14904
+ "name" : "event_id",
14905
+ "type" : "string",
14906
+ "required" : true,
14907
+ "attributes" : [ ],
14908
+ "annotations" : [ ]
14909
+ }, {
14910
+ "name" : "timestamp",
14911
+ "type" : "date-time-iso8601",
14912
+ "required" : true,
14913
+ "attributes" : [ ],
14914
+ "annotations" : [ ]
14915
+ }, {
14916
+ "name" : "channel_id",
14917
+ "type" : "string",
14918
+ "required" : true,
14919
+ "attributes" : [ ],
14920
+ "annotations" : [ ]
14921
+ }, {
14922
+ "name" : "id",
14923
+ "type" : "string",
14924
+ "required" : true,
14925
+ "attributes" : [ ],
14926
+ "annotations" : [ ],
14927
+ "description" : "Globally unique identifier"
14928
+ } ],
14929
+ "attributes" : [ ],
14800
14930
  "interfaces" : [ ]
14801
14931
  }, {
14802
14932
  "name" : "channel_transaction_upserted",
@@ -24100,6 +24230,19 @@
24100
24230
  } ],
24101
24231
  "attributes" : [ ],
24102
24232
  "interfaces" : [ ]
24233
+ }, {
24234
+ "name" : "in_compliance_review",
24235
+ "plural" : "in_compliance_reviews",
24236
+ "fields" : [ {
24237
+ "name" : "placeholder",
24238
+ "type" : "boolean",
24239
+ "required" : false,
24240
+ "attributes" : [ ],
24241
+ "annotations" : [ ]
24242
+ } ],
24243
+ "attributes" : [ ],
24244
+ "interfaces" : [ ],
24245
+ "description" : "The merchant is under review"
24103
24246
  }, {
24104
24247
  "name" : "inbound_carton_fee",
24105
24248
  "plural" : "inbound_carton_fees",
@@ -28242,6 +28385,19 @@
28242
28385
  } ],
28243
28386
  "attributes" : [ ],
28244
28387
  "interfaces" : [ ]
28388
+ }, {
28389
+ "name" : "merchant_activated",
28390
+ "plural" : "merchant_activateds",
28391
+ "fields" : [ {
28392
+ "name" : "placeholder",
28393
+ "type" : "boolean",
28394
+ "required" : false,
28395
+ "attributes" : [ ],
28396
+ "annotations" : [ ]
28397
+ } ],
28398
+ "attributes" : [ ],
28399
+ "interfaces" : [ ],
28400
+ "description" : "The merchant is activated by partner"
28245
28401
  }, {
28246
28402
  "name" : "merchant_application_deleted",
28247
28403
  "plural" : "merchant_application_deleteds",
@@ -28747,6 +28903,25 @@
28747
28903
  } ],
28748
28904
  "attributes" : [ ],
28749
28905
  "interfaces" : [ ]
28906
+ }, {
28907
+ "name" : "merchant_rejected",
28908
+ "plural" : "merchant_rejecteds",
28909
+ "fields" : [ {
28910
+ "name" : "reason",
28911
+ "type" : "merchant_rejected_reason",
28912
+ "required" : true,
28913
+ "attributes" : [ ],
28914
+ "annotations" : [ ]
28915
+ }, {
28916
+ "name" : "description",
28917
+ "type" : "string",
28918
+ "required" : false,
28919
+ "attributes" : [ ],
28920
+ "annotations" : [ ]
28921
+ } ],
28922
+ "attributes" : [ ],
28923
+ "interfaces" : [ ],
28924
+ "description" : "The merchant is rejected for onboarding by the compliance team"
28750
28925
  }, {
28751
28926
  "name" : "money",
28752
28927
  "plural" : "moneys",
@@ -29133,6 +29308,24 @@
29133
29308
  } ],
29134
29309
  "attributes" : [ ],
29135
29310
  "interfaces" : [ ]
29311
+ }, {
29312
+ "name" : "onboarding_state_transition",
29313
+ "plural" : "onboarding_state_transitions",
29314
+ "fields" : [ {
29315
+ "name" : "state",
29316
+ "type" : "onboarding_state",
29317
+ "required" : true,
29318
+ "attributes" : [ ],
29319
+ "annotations" : [ ]
29320
+ }, {
29321
+ "name" : "started_at",
29322
+ "type" : "date-time-iso8601",
29323
+ "required" : true,
29324
+ "attributes" : [ ],
29325
+ "annotations" : [ ]
29326
+ } ],
29327
+ "attributes" : [ ],
29328
+ "interfaces" : [ ]
29136
29329
  }, {
29137
29330
  "name" : "online_authorization",
29138
29331
  "plural" : "online_authorizations",
@@ -33338,6 +33531,31 @@
33338
33531
  "attributes" : [ ],
33339
33532
  "interfaces" : [ ],
33340
33533
  "description" : "Either id or name is required."
33534
+ }, {
33535
+ "name" : "organization_onboarding_state",
33536
+ "plural" : "organization_onboarding_states",
33537
+ "fields" : [ {
33538
+ "name" : "organization",
33539
+ "type" : "organization_reference",
33540
+ "required" : true,
33541
+ "attributes" : [ ],
33542
+ "annotations" : [ ],
33543
+ "description" : "Refers to your organization's account identifier"
33544
+ }, {
33545
+ "name" : "transitions",
33546
+ "type" : "[onboarding_state_transition]",
33547
+ "required" : true,
33548
+ "attributes" : [ ],
33549
+ "annotations" : [ ]
33550
+ }, {
33551
+ "name" : "current_state",
33552
+ "type" : "onboarding_state",
33553
+ "required" : true,
33554
+ "attributes" : [ ],
33555
+ "annotations" : [ ]
33556
+ } ],
33557
+ "attributes" : [ ],
33558
+ "interfaces" : [ ]
33341
33559
  }, {
33342
33560
  "name" : "organization_put_form",
33343
33561
  "plural" : "organization_put_forms",
@@ -33774,6 +33992,69 @@
33774
33992
  } ],
33775
33993
  "attributes" : [ ],
33776
33994
  "interfaces" : [ ]
33995
+ }, {
33996
+ "name" : "organization_transaction_deleted",
33997
+ "plural" : "organization_transaction_deleteds",
33998
+ "fields" : [ {
33999
+ "name" : "event_id",
34000
+ "type" : "string",
34001
+ "required" : true,
34002
+ "attributes" : [ ],
34003
+ "annotations" : [ ]
34004
+ }, {
34005
+ "name" : "timestamp",
34006
+ "type" : "date-time-iso8601",
34007
+ "required" : true,
34008
+ "attributes" : [ ],
34009
+ "annotations" : [ ]
34010
+ }, {
34011
+ "name" : "organization",
34012
+ "type" : "string",
34013
+ "required" : true,
34014
+ "attributes" : [ ],
34015
+ "annotations" : [ ],
34016
+ "description" : "Refers to your organization's account identifier"
34017
+ }, {
34018
+ "name" : "id",
34019
+ "type" : "string",
34020
+ "required" : true,
34021
+ "attributes" : [ ],
34022
+ "annotations" : [ ],
34023
+ "description" : "Globally unique identifier"
34024
+ } ],
34025
+ "attributes" : [ ],
34026
+ "interfaces" : [ ]
34027
+ }, {
34028
+ "name" : "organization_transaction_upserted",
34029
+ "plural" : "organization_transaction_upserteds",
34030
+ "fields" : [ {
34031
+ "name" : "event_id",
34032
+ "type" : "string",
34033
+ "required" : true,
34034
+ "attributes" : [ ],
34035
+ "annotations" : [ ]
34036
+ }, {
34037
+ "name" : "timestamp",
34038
+ "type" : "date-time-iso8601",
34039
+ "required" : true,
34040
+ "attributes" : [ ],
34041
+ "annotations" : [ ]
34042
+ }, {
34043
+ "name" : "organization",
34044
+ "type" : "string",
34045
+ "required" : true,
34046
+ "attributes" : [ ],
34047
+ "annotations" : [ ],
34048
+ "description" : "Refers to your organization's account identifier"
34049
+ }, {
34050
+ "name" : "transaction",
34051
+ "type" : "transaction",
34052
+ "required" : true,
34053
+ "attributes" : [ ],
34054
+ "annotations" : [ ]
34055
+ } ],
34056
+ "attributes" : [ ],
34057
+ "interfaces" : [ ]
33777
34058
  }, {
33778
34059
  "name" : "organization_upserted",
33779
34060
  "plural" : "organization_upserteds",
@@ -34601,7 +34882,7 @@
34601
34882
  }, {
34602
34883
  "name" : "phone",
34603
34884
  "type" : "string",
34604
- "required" : true,
34885
+ "required" : false,
34605
34886
  "attributes" : [ ],
34606
34887
  "annotations" : [ "personal_data" ]
34607
34888
  } ],
@@ -42952,6 +43233,45 @@
42952
43233
  "attributes" : [ ],
42953
43234
  "interfaces" : [ ],
42954
43235
  "description" : "A session visitor is a unique identifier for our best guess as to who the individual user is interacting with Flow."
43236
+ }, {
43237
+ "name" : "setup_blocked",
43238
+ "plural" : "setup_blockeds",
43239
+ "fields" : [ {
43240
+ "name" : "reasons",
43241
+ "type" : "[onboarding_blocked_reason]",
43242
+ "required" : true,
43243
+ "attributes" : [ ],
43244
+ "annotations" : [ ]
43245
+ } ],
43246
+ "attributes" : [ ],
43247
+ "interfaces" : [ ],
43248
+ "description" : "The onboarding process is blocked by an issue that requires escalation"
43249
+ }, {
43250
+ "name" : "setup_completed",
43251
+ "plural" : "setup_completeds",
43252
+ "fields" : [ {
43253
+ "name" : "placeholder",
43254
+ "type" : "boolean",
43255
+ "required" : false,
43256
+ "attributes" : [ ],
43257
+ "annotations" : [ ]
43258
+ } ],
43259
+ "attributes" : [ ],
43260
+ "interfaces" : [ ],
43261
+ "description" : "The onboarding setup is completed and the organization is ready to process order."
43262
+ }, {
43263
+ "name" : "setup_in_progress",
43264
+ "plural" : "setup_in_progresses",
43265
+ "fields" : [ {
43266
+ "name" : "placeholder",
43267
+ "type" : "boolean",
43268
+ "required" : false,
43269
+ "attributes" : [ ],
43270
+ "annotations" : [ ]
43271
+ } ],
43272
+ "attributes" : [ ],
43273
+ "interfaces" : [ ],
43274
+ "description" : "The merchant is approved for onboarding by the compliance team & onboarding config automation has begun"
42955
43275
  }, {
42956
43276
  "name" : "shipment_window",
42957
43277
  "plural" : "shipment_windows",
@@ -49360,37 +49680,6 @@
49360
49680
  } ],
49361
49681
  "attributes" : [ ],
49362
49682
  "interfaces" : [ "transaction_interface" ]
49363
- }, {
49364
- "name" : "transaction_deleted",
49365
- "plural" : "transaction_deleteds",
49366
- "fields" : [ {
49367
- "name" : "event_id",
49368
- "type" : "string",
49369
- "required" : true,
49370
- "attributes" : [ ],
49371
- "annotations" : [ ]
49372
- }, {
49373
- "name" : "timestamp",
49374
- "type" : "date-time-iso8601",
49375
- "required" : true,
49376
- "attributes" : [ ],
49377
- "annotations" : [ ]
49378
- }, {
49379
- "name" : "organization",
49380
- "type" : "string",
49381
- "required" : true,
49382
- "attributes" : [ ],
49383
- "annotations" : [ ],
49384
- "description" : "Refers to your organization's account identifier"
49385
- }, {
49386
- "name" : "transaction",
49387
- "type" : "transaction",
49388
- "required" : true,
49389
- "attributes" : [ ],
49390
- "annotations" : [ ]
49391
- } ],
49392
- "attributes" : [ ],
49393
- "interfaces" : [ ]
49394
49683
  }, {
49395
49684
  "name" : "transaction_upserted",
49396
49685
  "plural" : "transaction_upserteds",
@@ -49421,7 +49710,10 @@
49421
49710
  "annotations" : [ ]
49422
49711
  } ],
49423
49712
  "attributes" : [ ],
49424
- "interfaces" : [ ]
49713
+ "interfaces" : [ ],
49714
+ "deprecation" : {
49715
+ "description" : "Subscribe to organization_transaction_upserted instead as transaction_upserted is scheduled for removal."
49716
+ }
49425
49717
  }, {
49426
49718
  "name" : "transit_estimate",
49427
49719
  "plural" : "transit_estimates",
@@ -86093,6 +86385,65 @@
86093
86385
  }
86094
86386
  } ],
86095
86387
  "path" : "/:organization_id/default/configurations"
86388
+ }, {
86389
+ "type" : "organization_onboarding_state",
86390
+ "plural" : "organization_onboarding_states",
86391
+ "operations" : [ {
86392
+ "method" : "GET",
86393
+ "path" : "/:organization/onboarding/state",
86394
+ "parameters" : [ {
86395
+ "name" : "organization",
86396
+ "type" : "string",
86397
+ "location" : "Path",
86398
+ "required" : true,
86399
+ "description" : "Refers to your organization's account identifier"
86400
+ } ],
86401
+ "responses" : [ {
86402
+ "code" : {
86403
+ "integer" : {
86404
+ "value" : 200
86405
+ }
86406
+ },
86407
+ "type" : "organization_onboarding_state",
86408
+ "description" : "Successful response",
86409
+ "attributes" : [ ]
86410
+ }, {
86411
+ "code" : {
86412
+ "integer" : {
86413
+ "value" : 401
86414
+ }
86415
+ },
86416
+ "type" : "unit",
86417
+ "description" : "Authorization failed",
86418
+ "attributes" : [ ]
86419
+ }, {
86420
+ "code" : {
86421
+ "integer" : {
86422
+ "value" : 404
86423
+ }
86424
+ },
86425
+ "type" : "unit",
86426
+ "description" : "Resource was not found",
86427
+ "attributes" : [ ]
86428
+ }, {
86429
+ "code" : {
86430
+ "integer" : {
86431
+ "value" : 422
86432
+ }
86433
+ },
86434
+ "type" : "generic_error",
86435
+ "description" : "One or more errors were found with the data sent in the request. The body of the response contains specific details on what data failed validation.",
86436
+ "attributes" : [ ]
86437
+ } ],
86438
+ "attributes" : [ ]
86439
+ } ],
86440
+ "attributes" : [ {
86441
+ "name" : "docs",
86442
+ "value" : {
86443
+ "module" : "general"
86444
+ }
86445
+ } ],
86446
+ "path" : "/:organization/onboarding/state"
86096
86447
  }, {
86097
86448
  "type" : "organization_token",
86098
86449
  "plural" : "organization_tokens",