@commercelayer/cli-plugin-triggers 4.5.0 → 4.6.0

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.
@@ -293,7 +293,7 @@
293
293
  "required": true
294
294
  }
295
295
  },
296
- "description": "The associated capture amount, in cents.",
296
+ "description": "Send this attribute as a value in cents if you want to overwrite the amount to be captured.",
297
297
  "flags": {
298
298
  "organization": {
299
299
  "char": "o",
@@ -372,6 +372,94 @@
372
372
  "capture_amount_cents.js"
373
373
  ]
374
374
  },
375
+ "authorization:forward": {
376
+ "aliases": [],
377
+ "args": {
378
+ "id": {
379
+ "description": "the unique id of the resource",
380
+ "name": "id",
381
+ "required": true
382
+ }
383
+ },
384
+ "description": "Send this attribute if you want to forwrad a stuck transaction to succeeded and update associated order states accordingly.",
385
+ "flags": {
386
+ "organization": {
387
+ "char": "o",
388
+ "description": "the slug of your organization",
389
+ "env": "CL_CLI_ORGANIZATION",
390
+ "hidden": true,
391
+ "name": "organization",
392
+ "required": true,
393
+ "hasDynamicHelp": false,
394
+ "multiple": false,
395
+ "type": "option"
396
+ },
397
+ "domain": {
398
+ "char": "d",
399
+ "dependsOn": [
400
+ "organization"
401
+ ],
402
+ "env": "CL_CLI_DOMAIN",
403
+ "hidden": true,
404
+ "name": "domain",
405
+ "required": false,
406
+ "hasDynamicHelp": false,
407
+ "multiple": false,
408
+ "type": "option"
409
+ },
410
+ "accessToken": {
411
+ "env": "CL_CLI_ACCESS_TOKEN",
412
+ "hidden": true,
413
+ "name": "accessToken",
414
+ "required": true,
415
+ "hasDynamicHelp": false,
416
+ "multiple": false,
417
+ "type": "option"
418
+ },
419
+ "print": {
420
+ "char": "p",
421
+ "description": "print out the modified resource",
422
+ "name": "print",
423
+ "allowNo": false,
424
+ "type": "boolean"
425
+ },
426
+ "json": {
427
+ "char": "j",
428
+ "dependsOn": [
429
+ "print"
430
+ ],
431
+ "description": "print result in JSON format",
432
+ "name": "json",
433
+ "allowNo": false,
434
+ "type": "boolean"
435
+ },
436
+ "unformatted": {
437
+ "char": "u",
438
+ "dependsOn": [
439
+ "json"
440
+ ],
441
+ "description": "print JSON output without indentation",
442
+ "name": "unformatted",
443
+ "allowNo": false,
444
+ "type": "boolean"
445
+ }
446
+ },
447
+ "hasDynamicHelp": false,
448
+ "hiddenAliases": [],
449
+ "id": "authorization:forward",
450
+ "pluginAlias": "@commercelayer/cli-plugin-triggers",
451
+ "pluginName": "@commercelayer/cli-plugin-triggers",
452
+ "pluginType": "core",
453
+ "strict": true,
454
+ "enableJsonFlag": false,
455
+ "isESM": false,
456
+ "relativePath": [
457
+ "lib",
458
+ "commands",
459
+ "authorization",
460
+ "forward.js"
461
+ ]
462
+ },
375
463
  "authorization": {
376
464
  "aliases": [],
377
465
  "args": {
@@ -1252,6 +1340,94 @@
1252
1340
  "index.js"
1253
1341
  ]
1254
1342
  },
1343
+ "capture:forward": {
1344
+ "aliases": [],
1345
+ "args": {
1346
+ "id": {
1347
+ "description": "the unique id of the resource",
1348
+ "name": "id",
1349
+ "required": true
1350
+ }
1351
+ },
1352
+ "description": "Send this attribute if you want to forwrad a stuck transaction to succeeded and update associated order states accordingly.",
1353
+ "flags": {
1354
+ "organization": {
1355
+ "char": "o",
1356
+ "description": "the slug of your organization",
1357
+ "env": "CL_CLI_ORGANIZATION",
1358
+ "hidden": true,
1359
+ "name": "organization",
1360
+ "required": true,
1361
+ "hasDynamicHelp": false,
1362
+ "multiple": false,
1363
+ "type": "option"
1364
+ },
1365
+ "domain": {
1366
+ "char": "d",
1367
+ "dependsOn": [
1368
+ "organization"
1369
+ ],
1370
+ "env": "CL_CLI_DOMAIN",
1371
+ "hidden": true,
1372
+ "name": "domain",
1373
+ "required": false,
1374
+ "hasDynamicHelp": false,
1375
+ "multiple": false,
1376
+ "type": "option"
1377
+ },
1378
+ "accessToken": {
1379
+ "env": "CL_CLI_ACCESS_TOKEN",
1380
+ "hidden": true,
1381
+ "name": "accessToken",
1382
+ "required": true,
1383
+ "hasDynamicHelp": false,
1384
+ "multiple": false,
1385
+ "type": "option"
1386
+ },
1387
+ "print": {
1388
+ "char": "p",
1389
+ "description": "print out the modified resource",
1390
+ "name": "print",
1391
+ "allowNo": false,
1392
+ "type": "boolean"
1393
+ },
1394
+ "json": {
1395
+ "char": "j",
1396
+ "dependsOn": [
1397
+ "print"
1398
+ ],
1399
+ "description": "print result in JSON format",
1400
+ "name": "json",
1401
+ "allowNo": false,
1402
+ "type": "boolean"
1403
+ },
1404
+ "unformatted": {
1405
+ "char": "u",
1406
+ "dependsOn": [
1407
+ "json"
1408
+ ],
1409
+ "description": "print JSON output without indentation",
1410
+ "name": "unformatted",
1411
+ "allowNo": false,
1412
+ "type": "boolean"
1413
+ }
1414
+ },
1415
+ "hasDynamicHelp": false,
1416
+ "hiddenAliases": [],
1417
+ "id": "capture:forward",
1418
+ "pluginAlias": "@commercelayer/cli-plugin-triggers",
1419
+ "pluginName": "@commercelayer/cli-plugin-triggers",
1420
+ "pluginType": "core",
1421
+ "strict": true,
1422
+ "enableJsonFlag": false,
1423
+ "isESM": false,
1424
+ "relativePath": [
1425
+ "lib",
1426
+ "commands",
1427
+ "capture",
1428
+ "forward.js"
1429
+ ]
1430
+ },
1255
1431
  "capture": {
1256
1432
  "aliases": [],
1257
1433
  "args": {
@@ -1437,7 +1613,7 @@
1437
1613
  "required": true
1438
1614
  }
1439
1615
  },
1440
- "description": "The associated refund amount, in cents.",
1616
+ "description": "Send this attribute as a value in cents if you want to overwrite the amount to be refunded.",
1441
1617
  "flags": {
1442
1618
  "organization": {
1443
1619
  "char": "o",
@@ -5476,7 +5652,7 @@
5476
5652
  "index.js"
5477
5653
  ]
5478
5654
  },
5479
- "order_subscription:activate": {
5655
+ "order:approve": {
5480
5656
  "aliases": [],
5481
5657
  "args": {
5482
5658
  "id": {
@@ -5485,7 +5661,7 @@
5485
5661
  "required": true
5486
5662
  }
5487
5663
  },
5488
- "description": "Send this attribute if you want to mark this subscription as active.",
5664
+ "description": "Send this attribute if you want to approve a placed order.",
5489
5665
  "flags": {
5490
5666
  "organization": {
5491
5667
  "char": "o",
@@ -5550,7 +5726,7 @@
5550
5726
  },
5551
5727
  "hasDynamicHelp": false,
5552
5728
  "hiddenAliases": [],
5553
- "id": "order_subscription:activate",
5729
+ "id": "order:approve",
5554
5730
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
5555
5731
  "pluginName": "@commercelayer/cli-plugin-triggers",
5556
5732
  "pluginType": "core",
@@ -5560,11 +5736,11 @@
5560
5736
  "relativePath": [
5561
5737
  "lib",
5562
5738
  "commands",
5563
- "order_subscription",
5564
- "activate.js"
5739
+ "order",
5740
+ "approve.js"
5565
5741
  ]
5566
5742
  },
5567
- "order_subscription:cancel": {
5743
+ "order:approve_and_capture": {
5568
5744
  "aliases": [],
5569
5745
  "args": {
5570
5746
  "id": {
@@ -5573,7 +5749,7 @@
5573
5749
  "required": true
5574
5750
  }
5575
5751
  },
5576
- "description": "Send this attribute if you want to mark this subscription as cancelled.",
5752
+ "description": "Send this attribute if you want to approve and capture a placed order.",
5577
5753
  "flags": {
5578
5754
  "organization": {
5579
5755
  "char": "o",
@@ -5638,7 +5814,7 @@
5638
5814
  },
5639
5815
  "hasDynamicHelp": false,
5640
5816
  "hiddenAliases": [],
5641
- "id": "order_subscription:cancel",
5817
+ "id": "order:approve_and_capture",
5642
5818
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
5643
5819
  "pluginName": "@commercelayer/cli-plugin-triggers",
5644
5820
  "pluginType": "core",
@@ -5648,11 +5824,11 @@
5648
5824
  "relativePath": [
5649
5825
  "lib",
5650
5826
  "commands",
5651
- "order_subscription",
5652
- "cancel.js"
5827
+ "order",
5828
+ "approve_and_capture.js"
5653
5829
  ]
5654
5830
  },
5655
- "order_subscription:convert": {
5831
+ "order:archive": {
5656
5832
  "aliases": [],
5657
5833
  "args": {
5658
5834
  "id": {
@@ -5661,7 +5837,7 @@
5661
5837
  "required": true
5662
5838
  }
5663
5839
  },
5664
- "description": "Send this attribute if you want to convert a manual subscription to an automatic one. A subscription model is required before conversion.",
5840
+ "description": "Send this attribute if you want to archive the order.",
5665
5841
  "flags": {
5666
5842
  "organization": {
5667
5843
  "char": "o",
@@ -5726,7 +5902,7 @@
5726
5902
  },
5727
5903
  "hasDynamicHelp": false,
5728
5904
  "hiddenAliases": [],
5729
- "id": "order_subscription:convert",
5905
+ "id": "order:archive",
5730
5906
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
5731
5907
  "pluginName": "@commercelayer/cli-plugin-triggers",
5732
5908
  "pluginType": "core",
@@ -5736,11 +5912,11 @@
5736
5912
  "relativePath": [
5737
5913
  "lib",
5738
5914
  "commands",
5739
- "order_subscription",
5740
- "convert.js"
5915
+ "order",
5916
+ "archive.js"
5741
5917
  ]
5742
5918
  },
5743
- "order_subscription:deactivate": {
5919
+ "order:authorization_amount_cents": {
5744
5920
  "aliases": [],
5745
5921
  "args": {
5746
5922
  "id": {
@@ -5749,7 +5925,7 @@
5749
5925
  "required": true
5750
5926
  }
5751
5927
  },
5752
- "description": "Send this attribute if you want to mark this subscription as inactive.",
5928
+ "description": "Send this attribute as a value in cents if you want to overwrite the amount to be authorized.",
5753
5929
  "flags": {
5754
5930
  "organization": {
5755
5931
  "char": "o",
@@ -5814,7 +5990,7 @@
5814
5990
  },
5815
5991
  "hasDynamicHelp": false,
5816
5992
  "hiddenAliases": [],
5817
- "id": "order_subscription:deactivate",
5993
+ "id": "order:authorization_amount_cents",
5818
5994
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
5819
5995
  "pluginName": "@commercelayer/cli-plugin-triggers",
5820
5996
  "pluginType": "core",
@@ -5824,11 +6000,11 @@
5824
6000
  "relativePath": [
5825
6001
  "lib",
5826
6002
  "commands",
5827
- "order_subscription",
5828
- "deactivate.js"
6003
+ "order",
6004
+ "authorization_amount_cents.js"
5829
6005
  ]
5830
6006
  },
5831
- "order_subscription": {
6007
+ "order:authorize": {
5832
6008
  "aliases": [],
5833
6009
  "args": {
5834
6010
  "id": {
@@ -5837,7 +6013,7 @@
5837
6013
  "required": true
5838
6014
  }
5839
6015
  },
5840
- "description": "execute an action on a resource of type order_subscriptions",
6016
+ "description": "Send this attribute if you want to authorize the order's payment source.",
5841
6017
  "flags": {
5842
6018
  "organization": {
5843
6019
  "char": "o",
@@ -5902,7 +6078,7 @@
5902
6078
  },
5903
6079
  "hasDynamicHelp": false,
5904
6080
  "hiddenAliases": [],
5905
- "id": "order_subscription",
6081
+ "id": "order:authorize",
5906
6082
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
5907
6083
  "pluginName": "@commercelayer/cli-plugin-triggers",
5908
6084
  "pluginType": "core",
@@ -5912,11 +6088,11 @@
5912
6088
  "relativePath": [
5913
6089
  "lib",
5914
6090
  "commands",
5915
- "order_subscription",
5916
- "index.js"
6091
+ "order",
6092
+ "authorize.js"
5917
6093
  ]
5918
6094
  },
5919
- "order:approve": {
6095
+ "order:billing_address_clone_id": {
5920
6096
  "aliases": [],
5921
6097
  "args": {
5922
6098
  "id": {
@@ -5925,7 +6101,7 @@
5925
6101
  "required": true
5926
6102
  }
5927
6103
  },
5928
- "description": "Send this attribute if you want to approve a placed order.",
6104
+ "description": "The id of the address that you want to clone to create the order's billing address.",
5929
6105
  "flags": {
5930
6106
  "organization": {
5931
6107
  "char": "o",
@@ -5986,11 +6162,20 @@
5986
6162
  "name": "unformatted",
5987
6163
  "allowNo": false,
5988
6164
  "type": "boolean"
6165
+ },
6166
+ "value": {
6167
+ "char": "v",
6168
+ "description": "the trigger attribute value",
6169
+ "name": "value",
6170
+ "required": true,
6171
+ "hasDynamicHelp": false,
6172
+ "multiple": false,
6173
+ "type": "option"
5989
6174
  }
5990
6175
  },
5991
6176
  "hasDynamicHelp": false,
5992
6177
  "hiddenAliases": [],
5993
- "id": "order:approve",
6178
+ "id": "order:billing_address_clone_id",
5994
6179
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
5995
6180
  "pluginName": "@commercelayer/cli-plugin-triggers",
5996
6181
  "pluginType": "core",
@@ -6001,10 +6186,10 @@
6001
6186
  "lib",
6002
6187
  "commands",
6003
6188
  "order",
6004
- "approve.js"
6189
+ "billing_address_clone_id.js"
6005
6190
  ]
6006
6191
  },
6007
- "order:approve_and_capture": {
6192
+ "order:billing_address_same_as_shipping": {
6008
6193
  "aliases": [],
6009
6194
  "args": {
6010
6195
  "id": {
@@ -6013,7 +6198,7 @@
6013
6198
  "required": true
6014
6199
  }
6015
6200
  },
6016
- "description": "Send this attribute if you want to approve and capture a placed order.",
6201
+ "description": "Send this attribute if you want the billing address to be cloned from the order's shipping address.",
6017
6202
  "flags": {
6018
6203
  "organization": {
6019
6204
  "char": "o",
@@ -6078,7 +6263,7 @@
6078
6263
  },
6079
6264
  "hasDynamicHelp": false,
6080
6265
  "hiddenAliases": [],
6081
- "id": "order:approve_and_capture",
6266
+ "id": "order:billing_address_same_as_shipping",
6082
6267
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6083
6268
  "pluginName": "@commercelayer/cli-plugin-triggers",
6084
6269
  "pluginType": "core",
@@ -6089,10 +6274,10 @@
6089
6274
  "lib",
6090
6275
  "commands",
6091
6276
  "order",
6092
- "approve_and_capture.js"
6277
+ "billing_address_same_as_shipping.js"
6093
6278
  ]
6094
6279
  },
6095
- "order:archive": {
6280
+ "order:cancel": {
6096
6281
  "aliases": [],
6097
6282
  "args": {
6098
6283
  "id": {
@@ -6101,7 +6286,7 @@
6101
6286
  "required": true
6102
6287
  }
6103
6288
  },
6104
- "description": "Send this attribute if you want to archive the order.",
6289
+ "description": "Send this attribute if you want to cancel a placed order. The order's authorization will be automatically voided.",
6105
6290
  "flags": {
6106
6291
  "organization": {
6107
6292
  "char": "o",
@@ -6166,7 +6351,7 @@
6166
6351
  },
6167
6352
  "hasDynamicHelp": false,
6168
6353
  "hiddenAliases": [],
6169
- "id": "order:archive",
6354
+ "id": "order:cancel",
6170
6355
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6171
6356
  "pluginName": "@commercelayer/cli-plugin-triggers",
6172
6357
  "pluginType": "core",
@@ -6177,10 +6362,10 @@
6177
6362
  "lib",
6178
6363
  "commands",
6179
6364
  "order",
6180
- "archive.js"
6365
+ "cancel.js"
6181
6366
  ]
6182
6367
  },
6183
- "order:authorization_amount_cents": {
6368
+ "order:capture": {
6184
6369
  "aliases": [],
6185
6370
  "args": {
6186
6371
  "id": {
@@ -6189,7 +6374,7 @@
6189
6374
  "required": true
6190
6375
  }
6191
6376
  },
6192
- "description": "The authorization amount, in cents.",
6377
+ "description": "Send this attribute if you want to capture an authorized order.",
6193
6378
  "flags": {
6194
6379
  "organization": {
6195
6380
  "char": "o",
@@ -6254,7 +6439,7 @@
6254
6439
  },
6255
6440
  "hasDynamicHelp": false,
6256
6441
  "hiddenAliases": [],
6257
- "id": "order:authorization_amount_cents",
6442
+ "id": "order:capture",
6258
6443
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6259
6444
  "pluginName": "@commercelayer/cli-plugin-triggers",
6260
6445
  "pluginType": "core",
@@ -6265,10 +6450,10 @@
6265
6450
  "lib",
6266
6451
  "commands",
6267
6452
  "order",
6268
- "authorization_amount_cents.js"
6453
+ "capture.js"
6269
6454
  ]
6270
6455
  },
6271
- "order:authorize": {
6456
+ "order:commit_invoice": {
6272
6457
  "aliases": [],
6273
6458
  "args": {
6274
6459
  "id": {
@@ -6277,7 +6462,7 @@
6277
6462
  "required": true
6278
6463
  }
6279
6464
  },
6280
- "description": "Send this attribute if you want to authorize the order's payment source.",
6465
+ "description": "Send this attribute if you want commit the sales tax invoice to the associated tax calculator (currently supported by Avalara).",
6281
6466
  "flags": {
6282
6467
  "organization": {
6283
6468
  "char": "o",
@@ -6342,7 +6527,7 @@
6342
6527
  },
6343
6528
  "hasDynamicHelp": false,
6344
6529
  "hiddenAliases": [],
6345
- "id": "order:authorize",
6530
+ "id": "order:commit_invoice",
6346
6531
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6347
6532
  "pluginName": "@commercelayer/cli-plugin-triggers",
6348
6533
  "pluginType": "core",
@@ -6353,10 +6538,10 @@
6353
6538
  "lib",
6354
6539
  "commands",
6355
6540
  "order",
6356
- "authorize.js"
6541
+ "commit_invoice.js"
6357
6542
  ]
6358
6543
  },
6359
- "order:billing_address_clone_id": {
6544
+ "order:create_subscriptions": {
6360
6545
  "aliases": [],
6361
6546
  "args": {
6362
6547
  "id": {
@@ -6365,7 +6550,7 @@
6365
6550
  "required": true
6366
6551
  }
6367
6552
  },
6368
- "description": "The id of the address that you want to clone to create the order's billing address.",
6553
+ "description": "Send this attribute upon/after placing the order if you want to create order subscriptions from the line items that have a frequency.",
6369
6554
  "flags": {
6370
6555
  "organization": {
6371
6556
  "char": "o",
@@ -6426,20 +6611,11 @@
6426
6611
  "name": "unformatted",
6427
6612
  "allowNo": false,
6428
6613
  "type": "boolean"
6429
- },
6430
- "value": {
6431
- "char": "v",
6432
- "description": "the trigger attribute value",
6433
- "name": "value",
6434
- "required": true,
6435
- "hasDynamicHelp": false,
6436
- "multiple": false,
6437
- "type": "option"
6438
6614
  }
6439
6615
  },
6440
6616
  "hasDynamicHelp": false,
6441
6617
  "hiddenAliases": [],
6442
- "id": "order:billing_address_clone_id",
6618
+ "id": "order:create_subscriptions",
6443
6619
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6444
6620
  "pluginName": "@commercelayer/cli-plugin-triggers",
6445
6621
  "pluginType": "core",
@@ -6450,10 +6626,10 @@
6450
6626
  "lib",
6451
6627
  "commands",
6452
6628
  "order",
6453
- "billing_address_clone_id.js"
6629
+ "create_subscriptions.js"
6454
6630
  ]
6455
6631
  },
6456
- "order:billing_address_same_as_shipping": {
6632
+ "order:customer_payment_source_id": {
6457
6633
  "aliases": [],
6458
6634
  "args": {
6459
6635
  "id": {
@@ -6462,7 +6638,7 @@
6462
6638
  "required": true
6463
6639
  }
6464
6640
  },
6465
- "description": "Send this attribute if you want the billing address to be cloned from the order's shipping address.",
6641
+ "description": "The id of the customer payment source (i.e. credit card) that you want to use as the order's payment source.",
6466
6642
  "flags": {
6467
6643
  "organization": {
6468
6644
  "char": "o",
@@ -6523,11 +6699,20 @@
6523
6699
  "name": "unformatted",
6524
6700
  "allowNo": false,
6525
6701
  "type": "boolean"
6702
+ },
6703
+ "value": {
6704
+ "char": "v",
6705
+ "description": "the trigger attribute value",
6706
+ "name": "value",
6707
+ "required": true,
6708
+ "hasDynamicHelp": false,
6709
+ "multiple": false,
6710
+ "type": "option"
6526
6711
  }
6527
6712
  },
6528
6713
  "hasDynamicHelp": false,
6529
6714
  "hiddenAliases": [],
6530
- "id": "order:billing_address_same_as_shipping",
6715
+ "id": "order:customer_payment_source_id",
6531
6716
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6532
6717
  "pluginName": "@commercelayer/cli-plugin-triggers",
6533
6718
  "pluginType": "core",
@@ -6538,10 +6723,10 @@
6538
6723
  "lib",
6539
6724
  "commands",
6540
6725
  "order",
6541
- "billing_address_same_as_shipping.js"
6726
+ "customer_payment_source_id.js"
6542
6727
  ]
6543
6728
  },
6544
- "order:cancel": {
6729
+ "order:fulfill": {
6545
6730
  "aliases": [],
6546
6731
  "args": {
6547
6732
  "id": {
@@ -6550,7 +6735,7 @@
6550
6735
  "required": true
6551
6736
  }
6552
6737
  },
6553
- "description": "Send this attribute if you want to cancel a placed order. The order's authorization will be automatically voided.",
6738
+ "description": "Send this attribute if you want to mark as fulfilled a shipped/delivered order.",
6554
6739
  "flags": {
6555
6740
  "organization": {
6556
6741
  "char": "o",
@@ -6615,7 +6800,7 @@
6615
6800
  },
6616
6801
  "hasDynamicHelp": false,
6617
6802
  "hiddenAliases": [],
6618
- "id": "order:cancel",
6803
+ "id": "order:fulfill",
6619
6804
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6620
6805
  "pluginName": "@commercelayer/cli-plugin-triggers",
6621
6806
  "pluginType": "core",
@@ -6626,10 +6811,10 @@
6626
6811
  "lib",
6627
6812
  "commands",
6628
6813
  "order",
6629
- "cancel.js"
6814
+ "fulfill.js"
6630
6815
  ]
6631
6816
  },
6632
- "order:capture": {
6817
+ "order": {
6633
6818
  "aliases": [],
6634
6819
  "args": {
6635
6820
  "id": {
@@ -6638,7 +6823,7 @@
6638
6823
  "required": true
6639
6824
  }
6640
6825
  },
6641
- "description": "Send this attribute if you want to capture an authorized order.",
6826
+ "description": "execute an action on a resource of type orders",
6642
6827
  "flags": {
6643
6828
  "organization": {
6644
6829
  "char": "o",
@@ -6703,7 +6888,7 @@
6703
6888
  },
6704
6889
  "hasDynamicHelp": false,
6705
6890
  "hiddenAliases": [],
6706
- "id": "order:capture",
6891
+ "id": "order",
6707
6892
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6708
6893
  "pluginName": "@commercelayer/cli-plugin-triggers",
6709
6894
  "pluginType": "core",
@@ -6714,10 +6899,10 @@
6714
6899
  "lib",
6715
6900
  "commands",
6716
6901
  "order",
6717
- "capture.js"
6902
+ "index.js"
6718
6903
  ]
6719
6904
  },
6720
- "order:commit_invoice": {
6905
+ "order:nullify_payment_source": {
6721
6906
  "aliases": [],
6722
6907
  "args": {
6723
6908
  "id": {
@@ -6726,7 +6911,7 @@
6726
6911
  "required": true
6727
6912
  }
6728
6913
  },
6729
- "description": "Send this attribute if you want commit the sales tax invoice to the associated tax calculator (currently supported by Avalara).",
6914
+ "description": "Send this attribute if you want to nullify the payment source for this order.",
6730
6915
  "flags": {
6731
6916
  "organization": {
6732
6917
  "char": "o",
@@ -6791,7 +6976,7 @@
6791
6976
  },
6792
6977
  "hasDynamicHelp": false,
6793
6978
  "hiddenAliases": [],
6794
- "id": "order:commit_invoice",
6979
+ "id": "order:nullify_payment_source",
6795
6980
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6796
6981
  "pluginName": "@commercelayer/cli-plugin-triggers",
6797
6982
  "pluginType": "core",
@@ -6802,10 +6987,10 @@
6802
6987
  "lib",
6803
6988
  "commands",
6804
6989
  "order",
6805
- "commit_invoice.js"
6990
+ "nullify_payment_source.js"
6806
6991
  ]
6807
6992
  },
6808
- "order:create_subscriptions": {
6993
+ "order:pending": {
6809
6994
  "aliases": [],
6810
6995
  "args": {
6811
6996
  "id": {
@@ -6814,7 +6999,7 @@
6814
6999
  "required": true
6815
7000
  }
6816
7001
  },
6817
- "description": "Send this attribute upon/after placing the order if you want to create order subscriptions from the line items that have a frequency.",
7002
+ "description": "Send this attribute if you want to move a draft or placing order to pending.",
6818
7003
  "flags": {
6819
7004
  "organization": {
6820
7005
  "char": "o",
@@ -6879,7 +7064,7 @@
6879
7064
  },
6880
7065
  "hasDynamicHelp": false,
6881
7066
  "hiddenAliases": [],
6882
- "id": "order:create_subscriptions",
7067
+ "id": "order:pending",
6883
7068
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6884
7069
  "pluginName": "@commercelayer/cli-plugin-triggers",
6885
7070
  "pluginType": "core",
@@ -6890,10 +7075,10 @@
6890
7075
  "lib",
6891
7076
  "commands",
6892
7077
  "order",
6893
- "create_subscriptions.js"
7078
+ "pending.js"
6894
7079
  ]
6895
7080
  },
6896
- "order:customer_payment_source_id": {
7081
+ "order:place": {
6897
7082
  "aliases": [],
6898
7083
  "args": {
6899
7084
  "id": {
@@ -6902,7 +7087,7 @@
6902
7087
  "required": true
6903
7088
  }
6904
7089
  },
6905
- "description": "The id of the customer payment source (i.e. credit card) that you want to use as the order's payment source.",
7090
+ "description": "Send this attribute if you want to place the order.",
6906
7091
  "flags": {
6907
7092
  "organization": {
6908
7093
  "char": "o",
@@ -6963,20 +7148,11 @@
6963
7148
  "name": "unformatted",
6964
7149
  "allowNo": false,
6965
7150
  "type": "boolean"
6966
- },
6967
- "value": {
6968
- "char": "v",
6969
- "description": "the trigger attribute value",
6970
- "name": "value",
6971
- "required": true,
6972
- "hasDynamicHelp": false,
6973
- "multiple": false,
6974
- "type": "option"
6975
7151
  }
6976
7152
  },
6977
7153
  "hasDynamicHelp": false,
6978
7154
  "hiddenAliases": [],
6979
- "id": "order:customer_payment_source_id",
7155
+ "id": "order:place",
6980
7156
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6981
7157
  "pluginName": "@commercelayer/cli-plugin-triggers",
6982
7158
  "pluginType": "core",
@@ -6987,10 +7163,10 @@
6987
7163
  "lib",
6988
7164
  "commands",
6989
7165
  "order",
6990
- "customer_payment_source_id.js"
7166
+ "place.js"
6991
7167
  ]
6992
7168
  },
6993
- "order:fulfill": {
7169
+ "order:refresh": {
6994
7170
  "aliases": [],
6995
7171
  "args": {
6996
7172
  "id": {
@@ -6999,7 +7175,7 @@
6999
7175
  "required": true
7000
7176
  }
7001
7177
  },
7002
- "description": "Send this attribute if you want to mark as fulfilled a shipped/delivered order.",
7178
+ "description": "Send this attribute if you want to manually refresh the order.",
7003
7179
  "flags": {
7004
7180
  "organization": {
7005
7181
  "char": "o",
@@ -7064,7 +7240,7 @@
7064
7240
  },
7065
7241
  "hasDynamicHelp": false,
7066
7242
  "hiddenAliases": [],
7067
- "id": "order:fulfill",
7243
+ "id": "order:refresh",
7068
7244
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
7069
7245
  "pluginName": "@commercelayer/cli-plugin-triggers",
7070
7246
  "pluginType": "core",
@@ -7075,10 +7251,10 @@
7075
7251
  "lib",
7076
7252
  "commands",
7077
7253
  "order",
7078
- "fulfill.js"
7254
+ "refresh.js"
7079
7255
  ]
7080
7256
  },
7081
- "order": {
7257
+ "order:refund": {
7082
7258
  "aliases": [],
7083
7259
  "args": {
7084
7260
  "id": {
@@ -7087,7 +7263,7 @@
7087
7263
  "required": true
7088
7264
  }
7089
7265
  },
7090
- "description": "execute an action on a resource of type orders",
7266
+ "description": "Send this attribute if you want to refund a captured order.",
7091
7267
  "flags": {
7092
7268
  "organization": {
7093
7269
  "char": "o",
@@ -7152,7 +7328,7 @@
7152
7328
  },
7153
7329
  "hasDynamicHelp": false,
7154
7330
  "hiddenAliases": [],
7155
- "id": "order",
7331
+ "id": "order:refund",
7156
7332
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
7157
7333
  "pluginName": "@commercelayer/cli-plugin-triggers",
7158
7334
  "pluginType": "core",
@@ -7163,10 +7339,10 @@
7163
7339
  "lib",
7164
7340
  "commands",
7165
7341
  "order",
7166
- "index.js"
7342
+ "refund.js"
7167
7343
  ]
7168
7344
  },
7169
- "order:nullify_payment_source": {
7345
+ "order:refund_invoice": {
7170
7346
  "aliases": [],
7171
7347
  "args": {
7172
7348
  "id": {
@@ -7175,7 +7351,7 @@
7175
7351
  "required": true
7176
7352
  }
7177
7353
  },
7178
- "description": "Send this attribute if you want to nullify the payment source for this order.",
7354
+ "description": "Send this attribute if you want refund the sales tax invoice to the associated tax calculator (currently supported by Avalara).",
7179
7355
  "flags": {
7180
7356
  "organization": {
7181
7357
  "char": "o",
@@ -7240,7 +7416,7 @@
7240
7416
  },
7241
7417
  "hasDynamicHelp": false,
7242
7418
  "hiddenAliases": [],
7243
- "id": "order:nullify_payment_source",
7419
+ "id": "order:refund_invoice",
7244
7420
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
7245
7421
  "pluginName": "@commercelayer/cli-plugin-triggers",
7246
7422
  "pluginType": "core",
@@ -7251,10 +7427,10 @@
7251
7427
  "lib",
7252
7428
  "commands",
7253
7429
  "order",
7254
- "nullify_payment_source.js"
7430
+ "refund_invoice.js"
7255
7431
  ]
7256
7432
  },
7257
- "order:pending": {
7433
+ "order:reset_circuit": {
7258
7434
  "aliases": [],
7259
7435
  "args": {
7260
7436
  "id": {
@@ -7263,7 +7439,7 @@
7263
7439
  "required": true
7264
7440
  }
7265
7441
  },
7266
- "description": "Send this attribute if you want to move a draft or placing order to pending.",
7442
+ "description": "Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.",
7267
7443
  "flags": {
7268
7444
  "organization": {
7269
7445
  "char": "o",
@@ -7328,7 +7504,7 @@
7328
7504
  },
7329
7505
  "hasDynamicHelp": false,
7330
7506
  "hiddenAliases": [],
7331
- "id": "order:pending",
7507
+ "id": "order:reset_circuit",
7332
7508
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
7333
7509
  "pluginName": "@commercelayer/cli-plugin-triggers",
7334
7510
  "pluginType": "core",
@@ -7339,10 +7515,10 @@
7339
7515
  "lib",
7340
7516
  "commands",
7341
7517
  "order",
7342
- "pending.js"
7518
+ "reset_circuit.js"
7343
7519
  ]
7344
7520
  },
7345
- "order:place": {
7521
+ "order:save_billing_address_to_customer_address_book": {
7346
7522
  "aliases": [],
7347
7523
  "args": {
7348
7524
  "id": {
@@ -7351,7 +7527,7 @@
7351
7527
  "required": true
7352
7528
  }
7353
7529
  },
7354
- "description": "Send this attribute if you want to place the order.",
7530
+ "description": "Send this attribute if you want the order's billing address to be saved in the customer's address book as a customer address.",
7355
7531
  "flags": {
7356
7532
  "organization": {
7357
7533
  "char": "o",
@@ -7416,7 +7592,7 @@
7416
7592
  },
7417
7593
  "hasDynamicHelp": false,
7418
7594
  "hiddenAliases": [],
7419
- "id": "order:place",
7595
+ "id": "order:save_billing_address_to_customer_address_book",
7420
7596
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
7421
7597
  "pluginName": "@commercelayer/cli-plugin-triggers",
7422
7598
  "pluginType": "core",
@@ -7427,10 +7603,10 @@
7427
7603
  "lib",
7428
7604
  "commands",
7429
7605
  "order",
7430
- "place.js"
7606
+ "save_billing_address_to_customer_address_book.js"
7431
7607
  ]
7432
7608
  },
7433
- "order:refresh": {
7609
+ "order:save_payment_source_to_customer_wallet": {
7434
7610
  "aliases": [],
7435
7611
  "args": {
7436
7612
  "id": {
@@ -7439,7 +7615,7 @@
7439
7615
  "required": true
7440
7616
  }
7441
7617
  },
7442
- "description": "Send this attribute if you want to manually refresh the order.",
7618
+ "description": "Send this attribute if you want the order's payment source to be saved in the customer's wallet as a customer payment source.",
7443
7619
  "flags": {
7444
7620
  "organization": {
7445
7621
  "char": "o",
@@ -7504,7 +7680,7 @@
7504
7680
  },
7505
7681
  "hasDynamicHelp": false,
7506
7682
  "hiddenAliases": [],
7507
- "id": "order:refresh",
7683
+ "id": "order:save_payment_source_to_customer_wallet",
7508
7684
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
7509
7685
  "pluginName": "@commercelayer/cli-plugin-triggers",
7510
7686
  "pluginType": "core",
@@ -7515,10 +7691,10 @@
7515
7691
  "lib",
7516
7692
  "commands",
7517
7693
  "order",
7518
- "refresh.js"
7694
+ "save_payment_source_to_customer_wallet.js"
7519
7695
  ]
7520
7696
  },
7521
- "order:refund": {
7697
+ "order:save_shipping_address_to_customer_address_book": {
7522
7698
  "aliases": [],
7523
7699
  "args": {
7524
7700
  "id": {
@@ -7527,7 +7703,7 @@
7527
7703
  "required": true
7528
7704
  }
7529
7705
  },
7530
- "description": "Send this attribute if you want to refund a captured order.",
7706
+ "description": "Send this attribute if you want the order's shipping address to be saved in the customer's address book as a customer address.",
7531
7707
  "flags": {
7532
7708
  "organization": {
7533
7709
  "char": "o",
@@ -7592,7 +7768,7 @@
7592
7768
  },
7593
7769
  "hasDynamicHelp": false,
7594
7770
  "hiddenAliases": [],
7595
- "id": "order:refund",
7771
+ "id": "order:save_shipping_address_to_customer_address_book",
7596
7772
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
7597
7773
  "pluginName": "@commercelayer/cli-plugin-triggers",
7598
7774
  "pluginType": "core",
@@ -7603,10 +7779,10 @@
7603
7779
  "lib",
7604
7780
  "commands",
7605
7781
  "order",
7606
- "refund.js"
7782
+ "save_shipping_address_to_customer_address_book.js"
7607
7783
  ]
7608
7784
  },
7609
- "order:refund_invoice": {
7785
+ "order:shipping_address_clone_id": {
7610
7786
  "aliases": [],
7611
7787
  "args": {
7612
7788
  "id": {
@@ -7615,7 +7791,7 @@
7615
7791
  "required": true
7616
7792
  }
7617
7793
  },
7618
- "description": "Send this attribute if you want refund the sales tax invoice to the associated tax calculator (currently supported by Avalara).",
7794
+ "description": "The id of the address that you want to clone to create the order's shipping address.",
7619
7795
  "flags": {
7620
7796
  "organization": {
7621
7797
  "char": "o",
@@ -7676,11 +7852,20 @@
7676
7852
  "name": "unformatted",
7677
7853
  "allowNo": false,
7678
7854
  "type": "boolean"
7855
+ },
7856
+ "value": {
7857
+ "char": "v",
7858
+ "description": "the trigger attribute value",
7859
+ "name": "value",
7860
+ "required": true,
7861
+ "hasDynamicHelp": false,
7862
+ "multiple": false,
7863
+ "type": "option"
7679
7864
  }
7680
7865
  },
7681
7866
  "hasDynamicHelp": false,
7682
7867
  "hiddenAliases": [],
7683
- "id": "order:refund_invoice",
7868
+ "id": "order:shipping_address_clone_id",
7684
7869
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
7685
7870
  "pluginName": "@commercelayer/cli-plugin-triggers",
7686
7871
  "pluginType": "core",
@@ -7691,10 +7876,10 @@
7691
7876
  "lib",
7692
7877
  "commands",
7693
7878
  "order",
7694
- "refund_invoice.js"
7879
+ "shipping_address_clone_id.js"
7695
7880
  ]
7696
7881
  },
7697
- "order:reset_circuit": {
7882
+ "order:shipping_address_same_as_billing": {
7698
7883
  "aliases": [],
7699
7884
  "args": {
7700
7885
  "id": {
@@ -7703,7 +7888,7 @@
7703
7888
  "required": true
7704
7889
  }
7705
7890
  },
7706
- "description": "Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.",
7891
+ "description": "Send this attribute if you want the shipping address to be cloned from the order's billing address.",
7707
7892
  "flags": {
7708
7893
  "organization": {
7709
7894
  "char": "o",
@@ -7768,7 +7953,7 @@
7768
7953
  },
7769
7954
  "hasDynamicHelp": false,
7770
7955
  "hiddenAliases": [],
7771
- "id": "order:reset_circuit",
7956
+ "id": "order:shipping_address_same_as_billing",
7772
7957
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
7773
7958
  "pluginName": "@commercelayer/cli-plugin-triggers",
7774
7959
  "pluginType": "core",
@@ -7779,10 +7964,10 @@
7779
7964
  "lib",
7780
7965
  "commands",
7781
7966
  "order",
7782
- "reset_circuit.js"
7967
+ "shipping_address_same_as_billing.js"
7783
7968
  ]
7784
7969
  },
7785
- "order:save_billing_address_to_customer_address_book": {
7970
+ "order:start_editing": {
7786
7971
  "aliases": [],
7787
7972
  "args": {
7788
7973
  "id": {
@@ -7791,7 +7976,7 @@
7791
7976
  "required": true
7792
7977
  }
7793
7978
  },
7794
- "description": "Send this attribute if you want the order's billing address to be saved in the customer's address book as a customer address.",
7979
+ "description": "Send this attribute if you want to edit the order after it is placed. Remember you cannot exceed the original total amount.",
7795
7980
  "flags": {
7796
7981
  "organization": {
7797
7982
  "char": "o",
@@ -7856,7 +8041,7 @@
7856
8041
  },
7857
8042
  "hasDynamicHelp": false,
7858
8043
  "hiddenAliases": [],
7859
- "id": "order:save_billing_address_to_customer_address_book",
8044
+ "id": "order:start_editing",
7860
8045
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
7861
8046
  "pluginName": "@commercelayer/cli-plugin-triggers",
7862
8047
  "pluginType": "core",
@@ -7867,10 +8052,10 @@
7867
8052
  "lib",
7868
8053
  "commands",
7869
8054
  "order",
7870
- "save_billing_address_to_customer_address_book.js"
8055
+ "start_editing.js"
7871
8056
  ]
7872
8057
  },
7873
- "order:save_payment_source_to_customer_wallet": {
8058
+ "order:stop_editing": {
7874
8059
  "aliases": [],
7875
8060
  "args": {
7876
8061
  "id": {
@@ -7879,7 +8064,7 @@
7879
8064
  "required": true
7880
8065
  }
7881
8066
  },
7882
- "description": "Send this attribute if you want the order's payment source to be saved in the customer's wallet as a customer payment source.",
8067
+ "description": "Send this attribute to stop the editing for the order and return back to placed status.",
7883
8068
  "flags": {
7884
8069
  "organization": {
7885
8070
  "char": "o",
@@ -7944,7 +8129,7 @@
7944
8129
  },
7945
8130
  "hasDynamicHelp": false,
7946
8131
  "hiddenAliases": [],
7947
- "id": "order:save_payment_source_to_customer_wallet",
8132
+ "id": "order:stop_editing",
7948
8133
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
7949
8134
  "pluginName": "@commercelayer/cli-plugin-triggers",
7950
8135
  "pluginType": "core",
@@ -7955,10 +8140,10 @@
7955
8140
  "lib",
7956
8141
  "commands",
7957
8142
  "order",
7958
- "save_payment_source_to_customer_wallet.js"
8143
+ "stop_editing.js"
7959
8144
  ]
7960
8145
  },
7961
- "order:save_shipping_address_to_customer_address_book": {
8146
+ "order:unarchive": {
7962
8147
  "aliases": [],
7963
8148
  "args": {
7964
8149
  "id": {
@@ -7967,7 +8152,7 @@
7967
8152
  "required": true
7968
8153
  }
7969
8154
  },
7970
- "description": "Send this attribute if you want the order's shipping address to be saved in the customer's address book as a customer address.",
8155
+ "description": "Send this attribute if you want to unarchive the order.",
7971
8156
  "flags": {
7972
8157
  "organization": {
7973
8158
  "char": "o",
@@ -8032,7 +8217,7 @@
8032
8217
  },
8033
8218
  "hasDynamicHelp": false,
8034
8219
  "hiddenAliases": [],
8035
- "id": "order:save_shipping_address_to_customer_address_book",
8220
+ "id": "order:unarchive",
8036
8221
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
8037
8222
  "pluginName": "@commercelayer/cli-plugin-triggers",
8038
8223
  "pluginType": "core",
@@ -8043,10 +8228,10 @@
8043
8228
  "lib",
8044
8229
  "commands",
8045
8230
  "order",
8046
- "save_shipping_address_to_customer_address_book.js"
8231
+ "unarchive.js"
8047
8232
  ]
8048
8233
  },
8049
- "order:shipping_address_clone_id": {
8234
+ "order:update_taxes": {
8050
8235
  "aliases": [],
8051
8236
  "args": {
8052
8237
  "id": {
@@ -8055,7 +8240,7 @@
8055
8240
  "required": true
8056
8241
  }
8057
8242
  },
8058
- "description": "The id of the address that you want to clone to create the order's shipping address.",
8243
+ "description": "Send this attribute if you want to force tax calculation for this order (a tax calculator must be associated to the order's market).",
8059
8244
  "flags": {
8060
8245
  "organization": {
8061
8246
  "char": "o",
@@ -8116,20 +8301,11 @@
8116
8301
  "name": "unformatted",
8117
8302
  "allowNo": false,
8118
8303
  "type": "boolean"
8119
- },
8120
- "value": {
8121
- "char": "v",
8122
- "description": "the trigger attribute value",
8123
- "name": "value",
8124
- "required": true,
8125
- "hasDynamicHelp": false,
8126
- "multiple": false,
8127
- "type": "option"
8128
8304
  }
8129
8305
  },
8130
8306
  "hasDynamicHelp": false,
8131
8307
  "hiddenAliases": [],
8132
- "id": "order:shipping_address_clone_id",
8308
+ "id": "order:update_taxes",
8133
8309
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
8134
8310
  "pluginName": "@commercelayer/cli-plugin-triggers",
8135
8311
  "pluginType": "core",
@@ -8140,10 +8316,10 @@
8140
8316
  "lib",
8141
8317
  "commands",
8142
8318
  "order",
8143
- "shipping_address_clone_id.js"
8319
+ "update_taxes.js"
8144
8320
  ]
8145
8321
  },
8146
- "order:shipping_address_same_as_billing": {
8322
+ "order:validate": {
8147
8323
  "aliases": [],
8148
8324
  "args": {
8149
8325
  "id": {
@@ -8152,7 +8328,7 @@
8152
8328
  "required": true
8153
8329
  }
8154
8330
  },
8155
- "description": "Send this attribute if you want the shipping address to be cloned from the order's billing address.",
8331
+ "description": "Send this attribute if you want to trigger the external validation for the order.",
8156
8332
  "flags": {
8157
8333
  "organization": {
8158
8334
  "char": "o",
@@ -8217,7 +8393,7 @@
8217
8393
  },
8218
8394
  "hasDynamicHelp": false,
8219
8395
  "hiddenAliases": [],
8220
- "id": "order:shipping_address_same_as_billing",
8396
+ "id": "order:validate",
8221
8397
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
8222
8398
  "pluginName": "@commercelayer/cli-plugin-triggers",
8223
8399
  "pluginType": "core",
@@ -8228,10 +8404,10 @@
8228
8404
  "lib",
8229
8405
  "commands",
8230
8406
  "order",
8231
- "shipping_address_same_as_billing.js"
8407
+ "validate.js"
8232
8408
  ]
8233
8409
  },
8234
- "order:start_editing": {
8410
+ "order_subscription:activate": {
8235
8411
  "aliases": [],
8236
8412
  "args": {
8237
8413
  "id": {
@@ -8240,7 +8416,7 @@
8240
8416
  "required": true
8241
8417
  }
8242
8418
  },
8243
- "description": "Send this attribute if you want to edit the order after it is placed. Remember you cannot exceed the original total amount.",
8419
+ "description": "Send this attribute if you want to mark this subscription as active.",
8244
8420
  "flags": {
8245
8421
  "organization": {
8246
8422
  "char": "o",
@@ -8305,7 +8481,7 @@
8305
8481
  },
8306
8482
  "hasDynamicHelp": false,
8307
8483
  "hiddenAliases": [],
8308
- "id": "order:start_editing",
8484
+ "id": "order_subscription:activate",
8309
8485
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
8310
8486
  "pluginName": "@commercelayer/cli-plugin-triggers",
8311
8487
  "pluginType": "core",
@@ -8315,11 +8491,11 @@
8315
8491
  "relativePath": [
8316
8492
  "lib",
8317
8493
  "commands",
8318
- "order",
8319
- "start_editing.js"
8494
+ "order_subscription",
8495
+ "activate.js"
8320
8496
  ]
8321
8497
  },
8322
- "order:stop_editing": {
8498
+ "order_subscription:cancel": {
8323
8499
  "aliases": [],
8324
8500
  "args": {
8325
8501
  "id": {
@@ -8328,7 +8504,7 @@
8328
8504
  "required": true
8329
8505
  }
8330
8506
  },
8331
- "description": "Send this attribute to stop the editing for the order and return back to placed status.",
8507
+ "description": "Send this attribute if you want to mark this subscription as cancelled.",
8332
8508
  "flags": {
8333
8509
  "organization": {
8334
8510
  "char": "o",
@@ -8393,7 +8569,7 @@
8393
8569
  },
8394
8570
  "hasDynamicHelp": false,
8395
8571
  "hiddenAliases": [],
8396
- "id": "order:stop_editing",
8572
+ "id": "order_subscription:cancel",
8397
8573
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
8398
8574
  "pluginName": "@commercelayer/cli-plugin-triggers",
8399
8575
  "pluginType": "core",
@@ -8403,11 +8579,11 @@
8403
8579
  "relativePath": [
8404
8580
  "lib",
8405
8581
  "commands",
8406
- "order",
8407
- "stop_editing.js"
8582
+ "order_subscription",
8583
+ "cancel.js"
8408
8584
  ]
8409
8585
  },
8410
- "order:unarchive": {
8586
+ "order_subscription:convert": {
8411
8587
  "aliases": [],
8412
8588
  "args": {
8413
8589
  "id": {
@@ -8416,7 +8592,7 @@
8416
8592
  "required": true
8417
8593
  }
8418
8594
  },
8419
- "description": "Send this attribute if you want to unarchive the order.",
8595
+ "description": "Send this attribute if you want to convert a manual subscription to an automatic one. A subscription model is required before conversion.",
8420
8596
  "flags": {
8421
8597
  "organization": {
8422
8598
  "char": "o",
@@ -8481,7 +8657,7 @@
8481
8657
  },
8482
8658
  "hasDynamicHelp": false,
8483
8659
  "hiddenAliases": [],
8484
- "id": "order:unarchive",
8660
+ "id": "order_subscription:convert",
8485
8661
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
8486
8662
  "pluginName": "@commercelayer/cli-plugin-triggers",
8487
8663
  "pluginType": "core",
@@ -8491,11 +8667,11 @@
8491
8667
  "relativePath": [
8492
8668
  "lib",
8493
8669
  "commands",
8494
- "order",
8495
- "unarchive.js"
8670
+ "order_subscription",
8671
+ "convert.js"
8496
8672
  ]
8497
8673
  },
8498
- "order:update_taxes": {
8674
+ "order_subscription:deactivate": {
8499
8675
  "aliases": [],
8500
8676
  "args": {
8501
8677
  "id": {
@@ -8504,7 +8680,7 @@
8504
8680
  "required": true
8505
8681
  }
8506
8682
  },
8507
- "description": "Send this attribute if you want to force tax calculation for this order (a tax calculator must be associated to the order's market).",
8683
+ "description": "Send this attribute if you want to mark this subscription as inactive.",
8508
8684
  "flags": {
8509
8685
  "organization": {
8510
8686
  "char": "o",
@@ -8569,7 +8745,7 @@
8569
8745
  },
8570
8746
  "hasDynamicHelp": false,
8571
8747
  "hiddenAliases": [],
8572
- "id": "order:update_taxes",
8748
+ "id": "order_subscription:deactivate",
8573
8749
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
8574
8750
  "pluginName": "@commercelayer/cli-plugin-triggers",
8575
8751
  "pluginType": "core",
@@ -8579,11 +8755,11 @@
8579
8755
  "relativePath": [
8580
8756
  "lib",
8581
8757
  "commands",
8582
- "order",
8583
- "update_taxes.js"
8758
+ "order_subscription",
8759
+ "deactivate.js"
8584
8760
  ]
8585
8761
  },
8586
- "order:validate": {
8762
+ "order_subscription": {
8587
8763
  "aliases": [],
8588
8764
  "args": {
8589
8765
  "id": {
@@ -8592,7 +8768,7 @@
8592
8768
  "required": true
8593
8769
  }
8594
8770
  },
8595
- "description": "Send this attribute if you want to trigger the external validation for the order.",
8771
+ "description": "execute an action on a resource of type order_subscriptions",
8596
8772
  "flags": {
8597
8773
  "organization": {
8598
8774
  "char": "o",
@@ -8657,7 +8833,7 @@
8657
8833
  },
8658
8834
  "hasDynamicHelp": false,
8659
8835
  "hiddenAliases": [],
8660
- "id": "order:validate",
8836
+ "id": "order_subscription",
8661
8837
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
8662
8838
  "pluginName": "@commercelayer/cli-plugin-triggers",
8663
8839
  "pluginType": "core",
@@ -8667,8 +8843,8 @@
8667
8843
  "relativePath": [
8668
8844
  "lib",
8669
8845
  "commands",
8670
- "order",
8671
- "validate.js"
8846
+ "order_subscription",
8847
+ "index.js"
8672
8848
  ]
8673
8849
  },
8674
8850
  "payment_method:disable": {
@@ -9903,6 +10079,182 @@
9903
10079
  "receive.js"
9904
10080
  ]
9905
10081
  },
10082
+ "return:refund": {
10083
+ "aliases": [],
10084
+ "args": {
10085
+ "id": {
10086
+ "description": "the unique id of the resource",
10087
+ "name": "id",
10088
+ "required": true
10089
+ }
10090
+ },
10091
+ "description": "Send this attribute if you want to create a refund for this return.",
10092
+ "flags": {
10093
+ "organization": {
10094
+ "char": "o",
10095
+ "description": "the slug of your organization",
10096
+ "env": "CL_CLI_ORGANIZATION",
10097
+ "hidden": true,
10098
+ "name": "organization",
10099
+ "required": true,
10100
+ "hasDynamicHelp": false,
10101
+ "multiple": false,
10102
+ "type": "option"
10103
+ },
10104
+ "domain": {
10105
+ "char": "d",
10106
+ "dependsOn": [
10107
+ "organization"
10108
+ ],
10109
+ "env": "CL_CLI_DOMAIN",
10110
+ "hidden": true,
10111
+ "name": "domain",
10112
+ "required": false,
10113
+ "hasDynamicHelp": false,
10114
+ "multiple": false,
10115
+ "type": "option"
10116
+ },
10117
+ "accessToken": {
10118
+ "env": "CL_CLI_ACCESS_TOKEN",
10119
+ "hidden": true,
10120
+ "name": "accessToken",
10121
+ "required": true,
10122
+ "hasDynamicHelp": false,
10123
+ "multiple": false,
10124
+ "type": "option"
10125
+ },
10126
+ "print": {
10127
+ "char": "p",
10128
+ "description": "print out the modified resource",
10129
+ "name": "print",
10130
+ "allowNo": false,
10131
+ "type": "boolean"
10132
+ },
10133
+ "json": {
10134
+ "char": "j",
10135
+ "dependsOn": [
10136
+ "print"
10137
+ ],
10138
+ "description": "print result in JSON format",
10139
+ "name": "json",
10140
+ "allowNo": false,
10141
+ "type": "boolean"
10142
+ },
10143
+ "unformatted": {
10144
+ "char": "u",
10145
+ "dependsOn": [
10146
+ "json"
10147
+ ],
10148
+ "description": "print JSON output without indentation",
10149
+ "name": "unformatted",
10150
+ "allowNo": false,
10151
+ "type": "boolean"
10152
+ }
10153
+ },
10154
+ "hasDynamicHelp": false,
10155
+ "hiddenAliases": [],
10156
+ "id": "return:refund",
10157
+ "pluginAlias": "@commercelayer/cli-plugin-triggers",
10158
+ "pluginName": "@commercelayer/cli-plugin-triggers",
10159
+ "pluginType": "core",
10160
+ "strict": true,
10161
+ "enableJsonFlag": false,
10162
+ "isESM": false,
10163
+ "relativePath": [
10164
+ "lib",
10165
+ "commands",
10166
+ "return",
10167
+ "refund.js"
10168
+ ]
10169
+ },
10170
+ "return:refund_amount_cents": {
10171
+ "aliases": [],
10172
+ "args": {
10173
+ "id": {
10174
+ "description": "the unique id of the resource",
10175
+ "name": "id",
10176
+ "required": true
10177
+ }
10178
+ },
10179
+ "description": "Send this attribute as a value in cents to specify the amount to be refunded.",
10180
+ "flags": {
10181
+ "organization": {
10182
+ "char": "o",
10183
+ "description": "the slug of your organization",
10184
+ "env": "CL_CLI_ORGANIZATION",
10185
+ "hidden": true,
10186
+ "name": "organization",
10187
+ "required": true,
10188
+ "hasDynamicHelp": false,
10189
+ "multiple": false,
10190
+ "type": "option"
10191
+ },
10192
+ "domain": {
10193
+ "char": "d",
10194
+ "dependsOn": [
10195
+ "organization"
10196
+ ],
10197
+ "env": "CL_CLI_DOMAIN",
10198
+ "hidden": true,
10199
+ "name": "domain",
10200
+ "required": false,
10201
+ "hasDynamicHelp": false,
10202
+ "multiple": false,
10203
+ "type": "option"
10204
+ },
10205
+ "accessToken": {
10206
+ "env": "CL_CLI_ACCESS_TOKEN",
10207
+ "hidden": true,
10208
+ "name": "accessToken",
10209
+ "required": true,
10210
+ "hasDynamicHelp": false,
10211
+ "multiple": false,
10212
+ "type": "option"
10213
+ },
10214
+ "print": {
10215
+ "char": "p",
10216
+ "description": "print out the modified resource",
10217
+ "name": "print",
10218
+ "allowNo": false,
10219
+ "type": "boolean"
10220
+ },
10221
+ "json": {
10222
+ "char": "j",
10223
+ "dependsOn": [
10224
+ "print"
10225
+ ],
10226
+ "description": "print result in JSON format",
10227
+ "name": "json",
10228
+ "allowNo": false,
10229
+ "type": "boolean"
10230
+ },
10231
+ "unformatted": {
10232
+ "char": "u",
10233
+ "dependsOn": [
10234
+ "json"
10235
+ ],
10236
+ "description": "print JSON output without indentation",
10237
+ "name": "unformatted",
10238
+ "allowNo": false,
10239
+ "type": "boolean"
10240
+ }
10241
+ },
10242
+ "hasDynamicHelp": false,
10243
+ "hiddenAliases": [],
10244
+ "id": "return:refund_amount_cents",
10245
+ "pluginAlias": "@commercelayer/cli-plugin-triggers",
10246
+ "pluginName": "@commercelayer/cli-plugin-triggers",
10247
+ "pluginType": "core",
10248
+ "strict": true,
10249
+ "enableJsonFlag": false,
10250
+ "isESM": false,
10251
+ "relativePath": [
10252
+ "lib",
10253
+ "commands",
10254
+ "return",
10255
+ "refund_amount_cents.js"
10256
+ ]
10257
+ },
9906
10258
  "return:reject": {
9907
10259
  "aliases": [],
9908
10260
  "args": {
@@ -14216,5 +14568,5 @@
14216
14568
  ]
14217
14569
  }
14218
14570
  },
14219
- "version": "4.5.0"
14571
+ "version": "4.6.0"
14220
14572
  }