@commercelayer/cli-plugin-triggers 4.0.0-rc.2 → 4.0.0-rc.3

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 (2) hide show
  1. package/oclif.manifest.json +172 -172
  2. package/package.json +3 -3
@@ -5212,7 +5212,7 @@
5212
5212
  "index.js"
5213
5213
  ]
5214
5214
  },
5215
- "order:approve": {
5215
+ "order_subscription:activate": {
5216
5216
  "aliases": [],
5217
5217
  "args": {
5218
5218
  "id": {
@@ -5221,7 +5221,7 @@
5221
5221
  "required": true
5222
5222
  }
5223
5223
  },
5224
- "description": "Send this attribute if you want to approve a placed order.",
5224
+ "description": "Send this attribute if you want to mark this subscription as active.",
5225
5225
  "flags": {
5226
5226
  "organization": {
5227
5227
  "char": "o",
@@ -5286,7 +5286,7 @@
5286
5286
  },
5287
5287
  "hasDynamicHelp": false,
5288
5288
  "hiddenAliases": [],
5289
- "id": "order:approve",
5289
+ "id": "order_subscription:activate",
5290
5290
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
5291
5291
  "pluginName": "@commercelayer/cli-plugin-triggers",
5292
5292
  "pluginType": "core",
@@ -5296,11 +5296,11 @@
5296
5296
  "relativePath": [
5297
5297
  "lib",
5298
5298
  "commands",
5299
- "order",
5300
- "approve.js"
5299
+ "order_subscription",
5300
+ "activate.js"
5301
5301
  ]
5302
5302
  },
5303
- "order:approve_and_capture": {
5303
+ "order_subscription:cancel": {
5304
5304
  "aliases": [],
5305
5305
  "args": {
5306
5306
  "id": {
@@ -5309,7 +5309,7 @@
5309
5309
  "required": true
5310
5310
  }
5311
5311
  },
5312
- "description": "Send this attribute if you want to approve and capture a placed order.",
5312
+ "description": "Send this attribute if you want to mark this subscription as cancelled.",
5313
5313
  "flags": {
5314
5314
  "organization": {
5315
5315
  "char": "o",
@@ -5374,7 +5374,7 @@
5374
5374
  },
5375
5375
  "hasDynamicHelp": false,
5376
5376
  "hiddenAliases": [],
5377
- "id": "order:approve_and_capture",
5377
+ "id": "order_subscription:cancel",
5378
5378
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
5379
5379
  "pluginName": "@commercelayer/cli-plugin-triggers",
5380
5380
  "pluginType": "core",
@@ -5384,11 +5384,11 @@
5384
5384
  "relativePath": [
5385
5385
  "lib",
5386
5386
  "commands",
5387
- "order",
5388
- "approve_and_capture.js"
5387
+ "order_subscription",
5388
+ "cancel.js"
5389
5389
  ]
5390
5390
  },
5391
- "order:archive": {
5391
+ "order_subscription:deactivate": {
5392
5392
  "aliases": [],
5393
5393
  "args": {
5394
5394
  "id": {
@@ -5397,7 +5397,7 @@
5397
5397
  "required": true
5398
5398
  }
5399
5399
  },
5400
- "description": "Send this attribute if you want to archive the order.",
5400
+ "description": "Send this attribute if you want to mark this subscription as inactive.",
5401
5401
  "flags": {
5402
5402
  "organization": {
5403
5403
  "char": "o",
@@ -5462,7 +5462,7 @@
5462
5462
  },
5463
5463
  "hasDynamicHelp": false,
5464
5464
  "hiddenAliases": [],
5465
- "id": "order:archive",
5465
+ "id": "order_subscription:deactivate",
5466
5466
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
5467
5467
  "pluginName": "@commercelayer/cli-plugin-triggers",
5468
5468
  "pluginType": "core",
@@ -5472,11 +5472,11 @@
5472
5472
  "relativePath": [
5473
5473
  "lib",
5474
5474
  "commands",
5475
- "order",
5476
- "archive.js"
5475
+ "order_subscription",
5476
+ "deactivate.js"
5477
5477
  ]
5478
5478
  },
5479
- "order:authorization_amount_cents": {
5479
+ "order_subscription": {
5480
5480
  "aliases": [],
5481
5481
  "args": {
5482
5482
  "id": {
@@ -5485,7 +5485,7 @@
5485
5485
  "required": true
5486
5486
  }
5487
5487
  },
5488
- "description": "The authorization amount, in cents.",
5488
+ "description": "execute an action on a resource of type order_subscriptions",
5489
5489
  "flags": {
5490
5490
  "organization": {
5491
5491
  "char": "o",
@@ -5550,7 +5550,7 @@
5550
5550
  },
5551
5551
  "hasDynamicHelp": false,
5552
5552
  "hiddenAliases": [],
5553
- "id": "order:authorization_amount_cents",
5553
+ "id": "order_subscription",
5554
5554
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
5555
5555
  "pluginName": "@commercelayer/cli-plugin-triggers",
5556
5556
  "pluginType": "core",
@@ -5560,11 +5560,11 @@
5560
5560
  "relativePath": [
5561
5561
  "lib",
5562
5562
  "commands",
5563
- "order",
5564
- "authorization_amount_cents.js"
5563
+ "order_subscription",
5564
+ "index.js"
5565
5565
  ]
5566
5566
  },
5567
- "order:authorize": {
5567
+ "order:approve": {
5568
5568
  "aliases": [],
5569
5569
  "args": {
5570
5570
  "id": {
@@ -5573,7 +5573,7 @@
5573
5573
  "required": true
5574
5574
  }
5575
5575
  },
5576
- "description": "Send this attribute if you want to authorize the order's payment source.",
5576
+ "description": "Send this attribute if you want to approve a placed order.",
5577
5577
  "flags": {
5578
5578
  "organization": {
5579
5579
  "char": "o",
@@ -5638,7 +5638,7 @@
5638
5638
  },
5639
5639
  "hasDynamicHelp": false,
5640
5640
  "hiddenAliases": [],
5641
- "id": "order:authorize",
5641
+ "id": "order:approve",
5642
5642
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
5643
5643
  "pluginName": "@commercelayer/cli-plugin-triggers",
5644
5644
  "pluginType": "core",
@@ -5649,10 +5649,10 @@
5649
5649
  "lib",
5650
5650
  "commands",
5651
5651
  "order",
5652
- "authorize.js"
5652
+ "approve.js"
5653
5653
  ]
5654
5654
  },
5655
- "order:billing_address_clone_id": {
5655
+ "order:approve_and_capture": {
5656
5656
  "aliases": [],
5657
5657
  "args": {
5658
5658
  "id": {
@@ -5661,7 +5661,7 @@
5661
5661
  "required": true
5662
5662
  }
5663
5663
  },
5664
- "description": "The id of the address that you want to clone to create the order's billing address.",
5664
+ "description": "Send this attribute if you want to approve and capture a placed order.",
5665
5665
  "flags": {
5666
5666
  "organization": {
5667
5667
  "char": "o",
@@ -5722,20 +5722,11 @@
5722
5722
  "name": "unformatted",
5723
5723
  "allowNo": false,
5724
5724
  "type": "boolean"
5725
- },
5726
- "value": {
5727
- "char": "v",
5728
- "description": "the trigger attribute value",
5729
- "name": "value",
5730
- "required": true,
5731
- "hasDynamicHelp": false,
5732
- "multiple": false,
5733
- "type": "option"
5734
5725
  }
5735
5726
  },
5736
5727
  "hasDynamicHelp": false,
5737
5728
  "hiddenAliases": [],
5738
- "id": "order:billing_address_clone_id",
5729
+ "id": "order:approve_and_capture",
5739
5730
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
5740
5731
  "pluginName": "@commercelayer/cli-plugin-triggers",
5741
5732
  "pluginType": "core",
@@ -5746,10 +5737,10 @@
5746
5737
  "lib",
5747
5738
  "commands",
5748
5739
  "order",
5749
- "billing_address_clone_id.js"
5740
+ "approve_and_capture.js"
5750
5741
  ]
5751
5742
  },
5752
- "order:billing_address_same_as_shipping": {
5743
+ "order:archive": {
5753
5744
  "aliases": [],
5754
5745
  "args": {
5755
5746
  "id": {
@@ -5758,7 +5749,7 @@
5758
5749
  "required": true
5759
5750
  }
5760
5751
  },
5761
- "description": "Send this attribute if you want the billing address to be cloned from the order's shipping address.",
5752
+ "description": "Send this attribute if you want to archive the order.",
5762
5753
  "flags": {
5763
5754
  "organization": {
5764
5755
  "char": "o",
@@ -5823,7 +5814,7 @@
5823
5814
  },
5824
5815
  "hasDynamicHelp": false,
5825
5816
  "hiddenAliases": [],
5826
- "id": "order:billing_address_same_as_shipping",
5817
+ "id": "order:archive",
5827
5818
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
5828
5819
  "pluginName": "@commercelayer/cli-plugin-triggers",
5829
5820
  "pluginType": "core",
@@ -5834,10 +5825,10 @@
5834
5825
  "lib",
5835
5826
  "commands",
5836
5827
  "order",
5837
- "billing_address_same_as_shipping.js"
5828
+ "archive.js"
5838
5829
  ]
5839
5830
  },
5840
- "order:cancel": {
5831
+ "order:authorization_amount_cents": {
5841
5832
  "aliases": [],
5842
5833
  "args": {
5843
5834
  "id": {
@@ -5846,7 +5837,7 @@
5846
5837
  "required": true
5847
5838
  }
5848
5839
  },
5849
- "description": "Send this attribute if you want to cancel a placed order. The order's authorization will be automatically voided.",
5840
+ "description": "The authorization amount, in cents.",
5850
5841
  "flags": {
5851
5842
  "organization": {
5852
5843
  "char": "o",
@@ -5911,7 +5902,7 @@
5911
5902
  },
5912
5903
  "hasDynamicHelp": false,
5913
5904
  "hiddenAliases": [],
5914
- "id": "order:cancel",
5905
+ "id": "order:authorization_amount_cents",
5915
5906
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
5916
5907
  "pluginName": "@commercelayer/cli-plugin-triggers",
5917
5908
  "pluginType": "core",
@@ -5922,10 +5913,10 @@
5922
5913
  "lib",
5923
5914
  "commands",
5924
5915
  "order",
5925
- "cancel.js"
5916
+ "authorization_amount_cents.js"
5926
5917
  ]
5927
5918
  },
5928
- "order:capture": {
5919
+ "order:authorize": {
5929
5920
  "aliases": [],
5930
5921
  "args": {
5931
5922
  "id": {
@@ -5934,7 +5925,7 @@
5934
5925
  "required": true
5935
5926
  }
5936
5927
  },
5937
- "description": "Send this attribute if you want to capture an authorized order.",
5928
+ "description": "Send this attribute if you want to authorize the order's payment source.",
5938
5929
  "flags": {
5939
5930
  "organization": {
5940
5931
  "char": "o",
@@ -5999,7 +5990,7 @@
5999
5990
  },
6000
5991
  "hasDynamicHelp": false,
6001
5992
  "hiddenAliases": [],
6002
- "id": "order:capture",
5993
+ "id": "order:authorize",
6003
5994
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6004
5995
  "pluginName": "@commercelayer/cli-plugin-triggers",
6005
5996
  "pluginType": "core",
@@ -6010,10 +6001,10 @@
6010
6001
  "lib",
6011
6002
  "commands",
6012
6003
  "order",
6013
- "capture.js"
6004
+ "authorize.js"
6014
6005
  ]
6015
6006
  },
6016
- "order:commit_invoice": {
6007
+ "order:billing_address_clone_id": {
6017
6008
  "aliases": [],
6018
6009
  "args": {
6019
6010
  "id": {
@@ -6022,7 +6013,7 @@
6022
6013
  "required": true
6023
6014
  }
6024
6015
  },
6025
- "description": "Send this attribute if you want commit the sales tax invoice to the associated tax calculator (currently supported by Avalara).",
6016
+ "description": "The id of the address that you want to clone to create the order's billing address.",
6026
6017
  "flags": {
6027
6018
  "organization": {
6028
6019
  "char": "o",
@@ -6083,11 +6074,20 @@
6083
6074
  "name": "unformatted",
6084
6075
  "allowNo": false,
6085
6076
  "type": "boolean"
6077
+ },
6078
+ "value": {
6079
+ "char": "v",
6080
+ "description": "the trigger attribute value",
6081
+ "name": "value",
6082
+ "required": true,
6083
+ "hasDynamicHelp": false,
6084
+ "multiple": false,
6085
+ "type": "option"
6086
6086
  }
6087
6087
  },
6088
6088
  "hasDynamicHelp": false,
6089
6089
  "hiddenAliases": [],
6090
- "id": "order:commit_invoice",
6090
+ "id": "order:billing_address_clone_id",
6091
6091
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6092
6092
  "pluginName": "@commercelayer/cli-plugin-triggers",
6093
6093
  "pluginType": "core",
@@ -6098,10 +6098,10 @@
6098
6098
  "lib",
6099
6099
  "commands",
6100
6100
  "order",
6101
- "commit_invoice.js"
6101
+ "billing_address_clone_id.js"
6102
6102
  ]
6103
6103
  },
6104
- "order:create_subscriptions": {
6104
+ "order:billing_address_same_as_shipping": {
6105
6105
  "aliases": [],
6106
6106
  "args": {
6107
6107
  "id": {
@@ -6110,7 +6110,7 @@
6110
6110
  "required": true
6111
6111
  }
6112
6112
  },
6113
- "description": "Send this attribute upon/after placing the order if you want to create order subscriptions from the line items that have a frequency.",
6113
+ "description": "Send this attribute if you want the billing address to be cloned from the order's shipping address.",
6114
6114
  "flags": {
6115
6115
  "organization": {
6116
6116
  "char": "o",
@@ -6175,7 +6175,7 @@
6175
6175
  },
6176
6176
  "hasDynamicHelp": false,
6177
6177
  "hiddenAliases": [],
6178
- "id": "order:create_subscriptions",
6178
+ "id": "order:billing_address_same_as_shipping",
6179
6179
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6180
6180
  "pluginName": "@commercelayer/cli-plugin-triggers",
6181
6181
  "pluginType": "core",
@@ -6186,10 +6186,10 @@
6186
6186
  "lib",
6187
6187
  "commands",
6188
6188
  "order",
6189
- "create_subscriptions.js"
6189
+ "billing_address_same_as_shipping.js"
6190
6190
  ]
6191
6191
  },
6192
- "order:customer_payment_source_id": {
6192
+ "order:cancel": {
6193
6193
  "aliases": [],
6194
6194
  "args": {
6195
6195
  "id": {
@@ -6198,7 +6198,7 @@
6198
6198
  "required": true
6199
6199
  }
6200
6200
  },
6201
- "description": "The id of the customer payment source (i.e. credit card) that you want to use as the order's payment source.",
6201
+ "description": "Send this attribute if you want to cancel a placed order. The order's authorization will be automatically voided.",
6202
6202
  "flags": {
6203
6203
  "organization": {
6204
6204
  "char": "o",
@@ -6259,20 +6259,11 @@
6259
6259
  "name": "unformatted",
6260
6260
  "allowNo": false,
6261
6261
  "type": "boolean"
6262
- },
6263
- "value": {
6264
- "char": "v",
6265
- "description": "the trigger attribute value",
6266
- "name": "value",
6267
- "required": true,
6268
- "hasDynamicHelp": false,
6269
- "multiple": false,
6270
- "type": "option"
6271
6262
  }
6272
6263
  },
6273
6264
  "hasDynamicHelp": false,
6274
6265
  "hiddenAliases": [],
6275
- "id": "order:customer_payment_source_id",
6266
+ "id": "order:cancel",
6276
6267
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6277
6268
  "pluginName": "@commercelayer/cli-plugin-triggers",
6278
6269
  "pluginType": "core",
@@ -6283,10 +6274,10 @@
6283
6274
  "lib",
6284
6275
  "commands",
6285
6276
  "order",
6286
- "customer_payment_source_id.js"
6277
+ "cancel.js"
6287
6278
  ]
6288
6279
  },
6289
- "order": {
6280
+ "order:capture": {
6290
6281
  "aliases": [],
6291
6282
  "args": {
6292
6283
  "id": {
@@ -6295,7 +6286,7 @@
6295
6286
  "required": true
6296
6287
  }
6297
6288
  },
6298
- "description": "execute an action on a resource of type orders",
6289
+ "description": "Send this attribute if you want to capture an authorized order.",
6299
6290
  "flags": {
6300
6291
  "organization": {
6301
6292
  "char": "o",
@@ -6360,7 +6351,7 @@
6360
6351
  },
6361
6352
  "hasDynamicHelp": false,
6362
6353
  "hiddenAliases": [],
6363
- "id": "order",
6354
+ "id": "order:capture",
6364
6355
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6365
6356
  "pluginName": "@commercelayer/cli-plugin-triggers",
6366
6357
  "pluginType": "core",
@@ -6371,10 +6362,10 @@
6371
6362
  "lib",
6372
6363
  "commands",
6373
6364
  "order",
6374
- "index.js"
6365
+ "capture.js"
6375
6366
  ]
6376
6367
  },
6377
- "order:nullify_payment_source": {
6368
+ "order:commit_invoice": {
6378
6369
  "aliases": [],
6379
6370
  "args": {
6380
6371
  "id": {
@@ -6383,7 +6374,7 @@
6383
6374
  "required": true
6384
6375
  }
6385
6376
  },
6386
- "description": "Send this attribute if you want to nullify the payment source for this order.",
6377
+ "description": "Send this attribute if you want commit the sales tax invoice to the associated tax calculator (currently supported by Avalara).",
6387
6378
  "flags": {
6388
6379
  "organization": {
6389
6380
  "char": "o",
@@ -6448,7 +6439,7 @@
6448
6439
  },
6449
6440
  "hasDynamicHelp": false,
6450
6441
  "hiddenAliases": [],
6451
- "id": "order:nullify_payment_source",
6442
+ "id": "order:commit_invoice",
6452
6443
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6453
6444
  "pluginName": "@commercelayer/cli-plugin-triggers",
6454
6445
  "pluginType": "core",
@@ -6459,10 +6450,10 @@
6459
6450
  "lib",
6460
6451
  "commands",
6461
6452
  "order",
6462
- "nullify_payment_source.js"
6453
+ "commit_invoice.js"
6463
6454
  ]
6464
6455
  },
6465
- "order:pending": {
6456
+ "order:create_subscriptions": {
6466
6457
  "aliases": [],
6467
6458
  "args": {
6468
6459
  "id": {
@@ -6471,7 +6462,7 @@
6471
6462
  "required": true
6472
6463
  }
6473
6464
  },
6474
- "description": "Send this attribute if you want to move a draft or placing order to pending.",
6465
+ "description": "Send this attribute upon/after placing the order if you want to create order subscriptions from the line items that have a frequency.",
6475
6466
  "flags": {
6476
6467
  "organization": {
6477
6468
  "char": "o",
@@ -6536,7 +6527,7 @@
6536
6527
  },
6537
6528
  "hasDynamicHelp": false,
6538
6529
  "hiddenAliases": [],
6539
- "id": "order:pending",
6530
+ "id": "order:create_subscriptions",
6540
6531
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6541
6532
  "pluginName": "@commercelayer/cli-plugin-triggers",
6542
6533
  "pluginType": "core",
@@ -6547,10 +6538,10 @@
6547
6538
  "lib",
6548
6539
  "commands",
6549
6540
  "order",
6550
- "pending.js"
6541
+ "create_subscriptions.js"
6551
6542
  ]
6552
6543
  },
6553
- "order:place": {
6544
+ "order:customer_payment_source_id": {
6554
6545
  "aliases": [],
6555
6546
  "args": {
6556
6547
  "id": {
@@ -6559,7 +6550,7 @@
6559
6550
  "required": true
6560
6551
  }
6561
6552
  },
6562
- "description": "Send this attribute if you want to place the order.",
6553
+ "description": "The id of the customer payment source (i.e. credit card) that you want to use as the order's payment source.",
6563
6554
  "flags": {
6564
6555
  "organization": {
6565
6556
  "char": "o",
@@ -6620,11 +6611,20 @@
6620
6611
  "name": "unformatted",
6621
6612
  "allowNo": false,
6622
6613
  "type": "boolean"
6614
+ },
6615
+ "value": {
6616
+ "char": "v",
6617
+ "description": "the trigger attribute value",
6618
+ "name": "value",
6619
+ "required": true,
6620
+ "hasDynamicHelp": false,
6621
+ "multiple": false,
6622
+ "type": "option"
6623
6623
  }
6624
6624
  },
6625
6625
  "hasDynamicHelp": false,
6626
6626
  "hiddenAliases": [],
6627
- "id": "order:place",
6627
+ "id": "order:customer_payment_source_id",
6628
6628
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6629
6629
  "pluginName": "@commercelayer/cli-plugin-triggers",
6630
6630
  "pluginType": "core",
@@ -6635,10 +6635,10 @@
6635
6635
  "lib",
6636
6636
  "commands",
6637
6637
  "order",
6638
- "place.js"
6638
+ "customer_payment_source_id.js"
6639
6639
  ]
6640
6640
  },
6641
- "order:refresh": {
6641
+ "order": {
6642
6642
  "aliases": [],
6643
6643
  "args": {
6644
6644
  "id": {
@@ -6647,7 +6647,7 @@
6647
6647
  "required": true
6648
6648
  }
6649
6649
  },
6650
- "description": "Send this attribute if you want to manually refresh the order.",
6650
+ "description": "execute an action on a resource of type orders",
6651
6651
  "flags": {
6652
6652
  "organization": {
6653
6653
  "char": "o",
@@ -6712,7 +6712,7 @@
6712
6712
  },
6713
6713
  "hasDynamicHelp": false,
6714
6714
  "hiddenAliases": [],
6715
- "id": "order:refresh",
6715
+ "id": "order",
6716
6716
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6717
6717
  "pluginName": "@commercelayer/cli-plugin-triggers",
6718
6718
  "pluginType": "core",
@@ -6723,10 +6723,10 @@
6723
6723
  "lib",
6724
6724
  "commands",
6725
6725
  "order",
6726
- "refresh.js"
6726
+ "index.js"
6727
6727
  ]
6728
6728
  },
6729
- "order:refund": {
6729
+ "order:nullify_payment_source": {
6730
6730
  "aliases": [],
6731
6731
  "args": {
6732
6732
  "id": {
@@ -6735,7 +6735,7 @@
6735
6735
  "required": true
6736
6736
  }
6737
6737
  },
6738
- "description": "Send this attribute if you want to refund a captured order.",
6738
+ "description": "Send this attribute if you want to nullify the payment source for this order.",
6739
6739
  "flags": {
6740
6740
  "organization": {
6741
6741
  "char": "o",
@@ -6800,7 +6800,7 @@
6800
6800
  },
6801
6801
  "hasDynamicHelp": false,
6802
6802
  "hiddenAliases": [],
6803
- "id": "order:refund",
6803
+ "id": "order:nullify_payment_source",
6804
6804
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6805
6805
  "pluginName": "@commercelayer/cli-plugin-triggers",
6806
6806
  "pluginType": "core",
@@ -6811,10 +6811,10 @@
6811
6811
  "lib",
6812
6812
  "commands",
6813
6813
  "order",
6814
- "refund.js"
6814
+ "nullify_payment_source.js"
6815
6815
  ]
6816
6816
  },
6817
- "order:refund_invoice": {
6817
+ "order:pending": {
6818
6818
  "aliases": [],
6819
6819
  "args": {
6820
6820
  "id": {
@@ -6823,7 +6823,7 @@
6823
6823
  "required": true
6824
6824
  }
6825
6825
  },
6826
- "description": "Send this attribute if you want refund the sales tax invoice to the associated tax calculator (currently supported by Avalara).",
6826
+ "description": "Send this attribute if you want to move a draft or placing order to pending.",
6827
6827
  "flags": {
6828
6828
  "organization": {
6829
6829
  "char": "o",
@@ -6888,7 +6888,7 @@
6888
6888
  },
6889
6889
  "hasDynamicHelp": false,
6890
6890
  "hiddenAliases": [],
6891
- "id": "order:refund_invoice",
6891
+ "id": "order:pending",
6892
6892
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6893
6893
  "pluginName": "@commercelayer/cli-plugin-triggers",
6894
6894
  "pluginType": "core",
@@ -6899,10 +6899,10 @@
6899
6899
  "lib",
6900
6900
  "commands",
6901
6901
  "order",
6902
- "refund_invoice.js"
6902
+ "pending.js"
6903
6903
  ]
6904
6904
  },
6905
- "order:reset_circuit": {
6905
+ "order:place": {
6906
6906
  "aliases": [],
6907
6907
  "args": {
6908
6908
  "id": {
@@ -6911,7 +6911,7 @@
6911
6911
  "required": true
6912
6912
  }
6913
6913
  },
6914
- "description": "Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.",
6914
+ "description": "Send this attribute if you want to place the order.",
6915
6915
  "flags": {
6916
6916
  "organization": {
6917
6917
  "char": "o",
@@ -6976,7 +6976,7 @@
6976
6976
  },
6977
6977
  "hasDynamicHelp": false,
6978
6978
  "hiddenAliases": [],
6979
- "id": "order:reset_circuit",
6979
+ "id": "order:place",
6980
6980
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
6981
6981
  "pluginName": "@commercelayer/cli-plugin-triggers",
6982
6982
  "pluginType": "core",
@@ -6987,10 +6987,10 @@
6987
6987
  "lib",
6988
6988
  "commands",
6989
6989
  "order",
6990
- "reset_circuit.js"
6990
+ "place.js"
6991
6991
  ]
6992
6992
  },
6993
- "order:save_billing_address_to_customer_address_book": {
6993
+ "order:refresh": {
6994
6994
  "aliases": [],
6995
6995
  "args": {
6996
6996
  "id": {
@@ -6999,7 +6999,7 @@
6999
6999
  "required": true
7000
7000
  }
7001
7001
  },
7002
- "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.",
7002
+ "description": "Send this attribute if you want to manually refresh the order.",
7003
7003
  "flags": {
7004
7004
  "organization": {
7005
7005
  "char": "o",
@@ -7064,7 +7064,7 @@
7064
7064
  },
7065
7065
  "hasDynamicHelp": false,
7066
7066
  "hiddenAliases": [],
7067
- "id": "order:save_billing_address_to_customer_address_book",
7067
+ "id": "order:refresh",
7068
7068
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
7069
7069
  "pluginName": "@commercelayer/cli-plugin-triggers",
7070
7070
  "pluginType": "core",
@@ -7075,10 +7075,10 @@
7075
7075
  "lib",
7076
7076
  "commands",
7077
7077
  "order",
7078
- "save_billing_address_to_customer_address_book.js"
7078
+ "refresh.js"
7079
7079
  ]
7080
7080
  },
7081
- "order:save_payment_source_to_customer_wallet": {
7081
+ "order:refund": {
7082
7082
  "aliases": [],
7083
7083
  "args": {
7084
7084
  "id": {
@@ -7087,7 +7087,7 @@
7087
7087
  "required": true
7088
7088
  }
7089
7089
  },
7090
- "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.",
7090
+ "description": "Send this attribute if you want to refund a captured order.",
7091
7091
  "flags": {
7092
7092
  "organization": {
7093
7093
  "char": "o",
@@ -7152,7 +7152,7 @@
7152
7152
  },
7153
7153
  "hasDynamicHelp": false,
7154
7154
  "hiddenAliases": [],
7155
- "id": "order:save_payment_source_to_customer_wallet",
7155
+ "id": "order:refund",
7156
7156
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
7157
7157
  "pluginName": "@commercelayer/cli-plugin-triggers",
7158
7158
  "pluginType": "core",
@@ -7163,10 +7163,10 @@
7163
7163
  "lib",
7164
7164
  "commands",
7165
7165
  "order",
7166
- "save_payment_source_to_customer_wallet.js"
7166
+ "refund.js"
7167
7167
  ]
7168
7168
  },
7169
- "order:save_shipping_address_to_customer_address_book": {
7169
+ "order:refund_invoice": {
7170
7170
  "aliases": [],
7171
7171
  "args": {
7172
7172
  "id": {
@@ -7175,7 +7175,7 @@
7175
7175
  "required": true
7176
7176
  }
7177
7177
  },
7178
- "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.",
7178
+ "description": "Send this attribute if you want refund the sales tax invoice to the associated tax calculator (currently supported by Avalara).",
7179
7179
  "flags": {
7180
7180
  "organization": {
7181
7181
  "char": "o",
@@ -7240,7 +7240,7 @@
7240
7240
  },
7241
7241
  "hasDynamicHelp": false,
7242
7242
  "hiddenAliases": [],
7243
- "id": "order:save_shipping_address_to_customer_address_book",
7243
+ "id": "order:refund_invoice",
7244
7244
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
7245
7245
  "pluginName": "@commercelayer/cli-plugin-triggers",
7246
7246
  "pluginType": "core",
@@ -7251,10 +7251,10 @@
7251
7251
  "lib",
7252
7252
  "commands",
7253
7253
  "order",
7254
- "save_shipping_address_to_customer_address_book.js"
7254
+ "refund_invoice.js"
7255
7255
  ]
7256
7256
  },
7257
- "order:shipping_address_clone_id": {
7257
+ "order:reset_circuit": {
7258
7258
  "aliases": [],
7259
7259
  "args": {
7260
7260
  "id": {
@@ -7263,7 +7263,7 @@
7263
7263
  "required": true
7264
7264
  }
7265
7265
  },
7266
- "description": "The id of the address that you want to clone to create the order's shipping address.",
7266
+ "description": "Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.",
7267
7267
  "flags": {
7268
7268
  "organization": {
7269
7269
  "char": "o",
@@ -7324,20 +7324,11 @@
7324
7324
  "name": "unformatted",
7325
7325
  "allowNo": false,
7326
7326
  "type": "boolean"
7327
- },
7328
- "value": {
7329
- "char": "v",
7330
- "description": "the trigger attribute value",
7331
- "name": "value",
7332
- "required": true,
7333
- "hasDynamicHelp": false,
7334
- "multiple": false,
7335
- "type": "option"
7336
7327
  }
7337
7328
  },
7338
7329
  "hasDynamicHelp": false,
7339
7330
  "hiddenAliases": [],
7340
- "id": "order:shipping_address_clone_id",
7331
+ "id": "order:reset_circuit",
7341
7332
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
7342
7333
  "pluginName": "@commercelayer/cli-plugin-triggers",
7343
7334
  "pluginType": "core",
@@ -7348,10 +7339,10 @@
7348
7339
  "lib",
7349
7340
  "commands",
7350
7341
  "order",
7351
- "shipping_address_clone_id.js"
7342
+ "reset_circuit.js"
7352
7343
  ]
7353
7344
  },
7354
- "order:shipping_address_same_as_billing": {
7345
+ "order:save_billing_address_to_customer_address_book": {
7355
7346
  "aliases": [],
7356
7347
  "args": {
7357
7348
  "id": {
@@ -7360,7 +7351,7 @@
7360
7351
  "required": true
7361
7352
  }
7362
7353
  },
7363
- "description": "Send this attribute if you want the shipping address to be cloned from the order's billing address.",
7354
+ "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.",
7364
7355
  "flags": {
7365
7356
  "organization": {
7366
7357
  "char": "o",
@@ -7425,7 +7416,7 @@
7425
7416
  },
7426
7417
  "hasDynamicHelp": false,
7427
7418
  "hiddenAliases": [],
7428
- "id": "order:shipping_address_same_as_billing",
7419
+ "id": "order:save_billing_address_to_customer_address_book",
7429
7420
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
7430
7421
  "pluginName": "@commercelayer/cli-plugin-triggers",
7431
7422
  "pluginType": "core",
@@ -7436,10 +7427,10 @@
7436
7427
  "lib",
7437
7428
  "commands",
7438
7429
  "order",
7439
- "shipping_address_same_as_billing.js"
7430
+ "save_billing_address_to_customer_address_book.js"
7440
7431
  ]
7441
7432
  },
7442
- "order:start_editing": {
7433
+ "order:save_payment_source_to_customer_wallet": {
7443
7434
  "aliases": [],
7444
7435
  "args": {
7445
7436
  "id": {
@@ -7448,7 +7439,7 @@
7448
7439
  "required": true
7449
7440
  }
7450
7441
  },
7451
- "description": "Send this attribute if you want to edit the order after it is placed. Remember you cannot exceed the original total amount.",
7442
+ "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.",
7452
7443
  "flags": {
7453
7444
  "organization": {
7454
7445
  "char": "o",
@@ -7513,7 +7504,7 @@
7513
7504
  },
7514
7505
  "hasDynamicHelp": false,
7515
7506
  "hiddenAliases": [],
7516
- "id": "order:start_editing",
7507
+ "id": "order:save_payment_source_to_customer_wallet",
7517
7508
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
7518
7509
  "pluginName": "@commercelayer/cli-plugin-triggers",
7519
7510
  "pluginType": "core",
@@ -7524,10 +7515,10 @@
7524
7515
  "lib",
7525
7516
  "commands",
7526
7517
  "order",
7527
- "start_editing.js"
7518
+ "save_payment_source_to_customer_wallet.js"
7528
7519
  ]
7529
7520
  },
7530
- "order:stop_editing": {
7521
+ "order:save_shipping_address_to_customer_address_book": {
7531
7522
  "aliases": [],
7532
7523
  "args": {
7533
7524
  "id": {
@@ -7536,7 +7527,7 @@
7536
7527
  "required": true
7537
7528
  }
7538
7529
  },
7539
- "description": "Send this attribute to stop the editing for the order and return back to placed status.",
7530
+ "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.",
7540
7531
  "flags": {
7541
7532
  "organization": {
7542
7533
  "char": "o",
@@ -7601,7 +7592,7 @@
7601
7592
  },
7602
7593
  "hasDynamicHelp": false,
7603
7594
  "hiddenAliases": [],
7604
- "id": "order:stop_editing",
7595
+ "id": "order:save_shipping_address_to_customer_address_book",
7605
7596
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
7606
7597
  "pluginName": "@commercelayer/cli-plugin-triggers",
7607
7598
  "pluginType": "core",
@@ -7612,10 +7603,10 @@
7612
7603
  "lib",
7613
7604
  "commands",
7614
7605
  "order",
7615
- "stop_editing.js"
7606
+ "save_shipping_address_to_customer_address_book.js"
7616
7607
  ]
7617
7608
  },
7618
- "order:unarchive": {
7609
+ "order:shipping_address_clone_id": {
7619
7610
  "aliases": [],
7620
7611
  "args": {
7621
7612
  "id": {
@@ -7624,7 +7615,7 @@
7624
7615
  "required": true
7625
7616
  }
7626
7617
  },
7627
- "description": "Send this attribute if you want to unarchive the order.",
7618
+ "description": "The id of the address that you want to clone to create the order's shipping address.",
7628
7619
  "flags": {
7629
7620
  "organization": {
7630
7621
  "char": "o",
@@ -7685,11 +7676,20 @@
7685
7676
  "name": "unformatted",
7686
7677
  "allowNo": false,
7687
7678
  "type": "boolean"
7679
+ },
7680
+ "value": {
7681
+ "char": "v",
7682
+ "description": "the trigger attribute value",
7683
+ "name": "value",
7684
+ "required": true,
7685
+ "hasDynamicHelp": false,
7686
+ "multiple": false,
7687
+ "type": "option"
7688
7688
  }
7689
7689
  },
7690
7690
  "hasDynamicHelp": false,
7691
7691
  "hiddenAliases": [],
7692
- "id": "order:unarchive",
7692
+ "id": "order:shipping_address_clone_id",
7693
7693
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
7694
7694
  "pluginName": "@commercelayer/cli-plugin-triggers",
7695
7695
  "pluginType": "core",
@@ -7700,10 +7700,10 @@
7700
7700
  "lib",
7701
7701
  "commands",
7702
7702
  "order",
7703
- "unarchive.js"
7703
+ "shipping_address_clone_id.js"
7704
7704
  ]
7705
7705
  },
7706
- "order:update_taxes": {
7706
+ "order:shipping_address_same_as_billing": {
7707
7707
  "aliases": [],
7708
7708
  "args": {
7709
7709
  "id": {
@@ -7712,7 +7712,7 @@
7712
7712
  "required": true
7713
7713
  }
7714
7714
  },
7715
- "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).",
7715
+ "description": "Send this attribute if you want the shipping address to be cloned from the order's billing address.",
7716
7716
  "flags": {
7717
7717
  "organization": {
7718
7718
  "char": "o",
@@ -7777,7 +7777,7 @@
7777
7777
  },
7778
7778
  "hasDynamicHelp": false,
7779
7779
  "hiddenAliases": [],
7780
- "id": "order:update_taxes",
7780
+ "id": "order:shipping_address_same_as_billing",
7781
7781
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
7782
7782
  "pluginName": "@commercelayer/cli-plugin-triggers",
7783
7783
  "pluginType": "core",
@@ -7788,10 +7788,10 @@
7788
7788
  "lib",
7789
7789
  "commands",
7790
7790
  "order",
7791
- "update_taxes.js"
7791
+ "shipping_address_same_as_billing.js"
7792
7792
  ]
7793
7793
  },
7794
- "order:validate": {
7794
+ "order:start_editing": {
7795
7795
  "aliases": [],
7796
7796
  "args": {
7797
7797
  "id": {
@@ -7800,7 +7800,7 @@
7800
7800
  "required": true
7801
7801
  }
7802
7802
  },
7803
- "description": "Send this attribute if you want to trigger the external validation for the order.",
7803
+ "description": "Send this attribute if you want to edit the order after it is placed. Remember you cannot exceed the original total amount.",
7804
7804
  "flags": {
7805
7805
  "organization": {
7806
7806
  "char": "o",
@@ -7865,7 +7865,7 @@
7865
7865
  },
7866
7866
  "hasDynamicHelp": false,
7867
7867
  "hiddenAliases": [],
7868
- "id": "order:validate",
7868
+ "id": "order:start_editing",
7869
7869
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
7870
7870
  "pluginName": "@commercelayer/cli-plugin-triggers",
7871
7871
  "pluginType": "core",
@@ -7876,10 +7876,10 @@
7876
7876
  "lib",
7877
7877
  "commands",
7878
7878
  "order",
7879
- "validate.js"
7879
+ "start_editing.js"
7880
7880
  ]
7881
7881
  },
7882
- "order_subscription:activate": {
7882
+ "order:stop_editing": {
7883
7883
  "aliases": [],
7884
7884
  "args": {
7885
7885
  "id": {
@@ -7888,7 +7888,7 @@
7888
7888
  "required": true
7889
7889
  }
7890
7890
  },
7891
- "description": "Send this attribute if you want to mark this subscription as active.",
7891
+ "description": "Send this attribute to stop the editing for the order and return back to placed status.",
7892
7892
  "flags": {
7893
7893
  "organization": {
7894
7894
  "char": "o",
@@ -7953,7 +7953,7 @@
7953
7953
  },
7954
7954
  "hasDynamicHelp": false,
7955
7955
  "hiddenAliases": [],
7956
- "id": "order_subscription:activate",
7956
+ "id": "order:stop_editing",
7957
7957
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
7958
7958
  "pluginName": "@commercelayer/cli-plugin-triggers",
7959
7959
  "pluginType": "core",
@@ -7963,11 +7963,11 @@
7963
7963
  "relativePath": [
7964
7964
  "lib",
7965
7965
  "commands",
7966
- "order_subscription",
7967
- "activate.js"
7966
+ "order",
7967
+ "stop_editing.js"
7968
7968
  ]
7969
7969
  },
7970
- "order_subscription:cancel": {
7970
+ "order:unarchive": {
7971
7971
  "aliases": [],
7972
7972
  "args": {
7973
7973
  "id": {
@@ -7976,7 +7976,7 @@
7976
7976
  "required": true
7977
7977
  }
7978
7978
  },
7979
- "description": "Send this attribute if you want to mark this subscription as cancelled.",
7979
+ "description": "Send this attribute if you want to unarchive the order.",
7980
7980
  "flags": {
7981
7981
  "organization": {
7982
7982
  "char": "o",
@@ -8041,7 +8041,7 @@
8041
8041
  },
8042
8042
  "hasDynamicHelp": false,
8043
8043
  "hiddenAliases": [],
8044
- "id": "order_subscription:cancel",
8044
+ "id": "order:unarchive",
8045
8045
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
8046
8046
  "pluginName": "@commercelayer/cli-plugin-triggers",
8047
8047
  "pluginType": "core",
@@ -8051,11 +8051,11 @@
8051
8051
  "relativePath": [
8052
8052
  "lib",
8053
8053
  "commands",
8054
- "order_subscription",
8055
- "cancel.js"
8054
+ "order",
8055
+ "unarchive.js"
8056
8056
  ]
8057
8057
  },
8058
- "order_subscription:deactivate": {
8058
+ "order:update_taxes": {
8059
8059
  "aliases": [],
8060
8060
  "args": {
8061
8061
  "id": {
@@ -8064,7 +8064,7 @@
8064
8064
  "required": true
8065
8065
  }
8066
8066
  },
8067
- "description": "Send this attribute if you want to mark this subscription as inactive.",
8067
+ "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).",
8068
8068
  "flags": {
8069
8069
  "organization": {
8070
8070
  "char": "o",
@@ -8129,7 +8129,7 @@
8129
8129
  },
8130
8130
  "hasDynamicHelp": false,
8131
8131
  "hiddenAliases": [],
8132
- "id": "order_subscription:deactivate",
8132
+ "id": "order:update_taxes",
8133
8133
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
8134
8134
  "pluginName": "@commercelayer/cli-plugin-triggers",
8135
8135
  "pluginType": "core",
@@ -8139,11 +8139,11 @@
8139
8139
  "relativePath": [
8140
8140
  "lib",
8141
8141
  "commands",
8142
- "order_subscription",
8143
- "deactivate.js"
8142
+ "order",
8143
+ "update_taxes.js"
8144
8144
  ]
8145
8145
  },
8146
- "order_subscription": {
8146
+ "order:validate": {
8147
8147
  "aliases": [],
8148
8148
  "args": {
8149
8149
  "id": {
@@ -8152,7 +8152,7 @@
8152
8152
  "required": true
8153
8153
  }
8154
8154
  },
8155
- "description": "execute an action on a resource of type order_subscriptions",
8155
+ "description": "Send this attribute if you want to trigger the external validation for the order.",
8156
8156
  "flags": {
8157
8157
  "organization": {
8158
8158
  "char": "o",
@@ -8217,7 +8217,7 @@
8217
8217
  },
8218
8218
  "hasDynamicHelp": false,
8219
8219
  "hiddenAliases": [],
8220
- "id": "order_subscription",
8220
+ "id": "order:validate",
8221
8221
  "pluginAlias": "@commercelayer/cli-plugin-triggers",
8222
8222
  "pluginName": "@commercelayer/cli-plugin-triggers",
8223
8223
  "pluginType": "core",
@@ -8227,8 +8227,8 @@
8227
8227
  "relativePath": [
8228
8228
  "lib",
8229
8229
  "commands",
8230
- "order_subscription",
8231
- "index.js"
8230
+ "order",
8231
+ "validate.js"
8232
8232
  ]
8233
8233
  },
8234
8234
  "payment_method:disable": {
@@ -13336,5 +13336,5 @@
13336
13336
  ]
13337
13337
  }
13338
13338
  },
13339
- "version": "4.0.0-rc.2"
13339
+ "version": "4.0.0-rc.3"
13340
13340
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercelayer/cli-plugin-triggers",
3
3
  "description": "Commerce Layer CLI Triggers plugin",
4
- "version": "4.0.0-rc.2",
4
+ "version": "4.0.0-rc.3",
5
5
  "author": "Pierluigi Viti <pierluigi@commercelayer.io>",
6
6
  "homepage": "https://github.com/commercelayer/commercelayer-cli-plugin-triggers",
7
7
  "repository": "commercelayer/commercelayer-cli-plugin-triggers",
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "types": "lib/index.d.ts",
56
56
  "devDependencies": {
57
- "@commercelayer/cli-dev": "prerelease",
57
+ "@commercelayer/cli-dev": "^3.0.2",
58
58
  "@commercelayer/eslint-config-ts": "^1.4.5",
59
59
  "@oclif/plugin-help": "^6.0.21",
60
60
  "@oclif/test": "^3.2.10",
@@ -77,7 +77,7 @@
77
77
  "typescript": "5.3.2"
78
78
  },
79
79
  "dependencies": {
80
- "@commercelayer/cli-core": "prerelease",
80
+ "@commercelayer/cli-core": "^5.0.0",
81
81
  "@commercelayer/sdk": "prerelease",
82
82
  "@oclif/core": "^3.26.3",
83
83
  "inquirer": "^8.2.6",