commet 3.0.1 → 3.1.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.
- package/dist/index.js +175 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ var import_commander11 = require("commander");
|
|
|
30
30
|
// package.json
|
|
31
31
|
var package_default = {
|
|
32
32
|
name: "commet",
|
|
33
|
-
version: "3.0
|
|
33
|
+
version: "3.1.0",
|
|
34
34
|
description: "Commet CLI - Manage your billing platform from the command line",
|
|
35
35
|
bin: {
|
|
36
36
|
commet: "./bin/commet"
|
|
@@ -163,7 +163,7 @@ function clearProjectConfig() {
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
// src/utils/telemetry.ts
|
|
166
|
-
var CLI_VERSION = true ? "3.0
|
|
166
|
+
var CLI_VERSION = true ? "3.1.0" : "0.0.0";
|
|
167
167
|
var TELEMETRY_URL = "https://commet.co/api/cli/telemetry";
|
|
168
168
|
function detectRuntime() {
|
|
169
169
|
if ("Bun" in globalThis) {
|
|
@@ -2774,6 +2774,47 @@ var subscriptionsResource = {
|
|
|
2774
2774
|
}
|
|
2775
2775
|
]
|
|
2776
2776
|
},
|
|
2777
|
+
reactivate: {
|
|
2778
|
+
method: "reactivate",
|
|
2779
|
+
description: "Retry the outstanding renewal charge for a past_due subscription",
|
|
2780
|
+
params: [
|
|
2781
|
+
{
|
|
2782
|
+
flag: "--id <id>",
|
|
2783
|
+
description: "Subscription ID",
|
|
2784
|
+
required: true,
|
|
2785
|
+
sdkKey: "id"
|
|
2786
|
+
}
|
|
2787
|
+
]
|
|
2788
|
+
},
|
|
2789
|
+
"create-recovery-link": {
|
|
2790
|
+
method: "createRecoveryLink",
|
|
2791
|
+
description: "Generate a hosted recovery link for a past_due subscription",
|
|
2792
|
+
params: [
|
|
2793
|
+
{
|
|
2794
|
+
flag: "--id <id>",
|
|
2795
|
+
description: "Subscription ID",
|
|
2796
|
+
required: true,
|
|
2797
|
+
sdkKey: "id"
|
|
2798
|
+
}
|
|
2799
|
+
]
|
|
2800
|
+
},
|
|
2801
|
+
"update-payment-method": {
|
|
2802
|
+
method: "updatePaymentMethod",
|
|
2803
|
+
description: "Create a hosted checkout to update the subscription's payment method",
|
|
2804
|
+
params: [
|
|
2805
|
+
{
|
|
2806
|
+
flag: "--id <id>",
|
|
2807
|
+
description: "Subscription ID",
|
|
2808
|
+
required: true,
|
|
2809
|
+
sdkKey: "id"
|
|
2810
|
+
},
|
|
2811
|
+
{
|
|
2812
|
+
flag: "--success-url <url>",
|
|
2813
|
+
description: "Redirect URL after the payment method is updated",
|
|
2814
|
+
sdkKey: "successUrl"
|
|
2815
|
+
}
|
|
2816
|
+
]
|
|
2817
|
+
},
|
|
2777
2818
|
"change-plan": {
|
|
2778
2819
|
method: "changePlan",
|
|
2779
2820
|
description: "Change subscription plan",
|
|
@@ -4829,6 +4870,137 @@ var planGroupsResource = {
|
|
|
4829
4870
|
}
|
|
4830
4871
|
}
|
|
4831
4872
|
};
|
|
4873
|
+
var paymentsResource = {
|
|
4874
|
+
name: "payments",
|
|
4875
|
+
description: "Manage one-time payments and payment links",
|
|
4876
|
+
sdkProperty: "payments",
|
|
4877
|
+
actions: {
|
|
4878
|
+
create: {
|
|
4879
|
+
method: "create",
|
|
4880
|
+
description: "Create a hosted payment link the customer opens to pay with any card",
|
|
4881
|
+
params: [
|
|
4882
|
+
{
|
|
4883
|
+
flag: "--amount <n>",
|
|
4884
|
+
description: "Amount in cents",
|
|
4885
|
+
required: true,
|
|
4886
|
+
parse: parseNumber,
|
|
4887
|
+
sdkKey: "amount"
|
|
4888
|
+
},
|
|
4889
|
+
{
|
|
4890
|
+
flag: "--currency <currency>",
|
|
4891
|
+
description: "Currency code (e.g. USD)",
|
|
4892
|
+
required: true,
|
|
4893
|
+
sdkKey: "currency"
|
|
4894
|
+
},
|
|
4895
|
+
{
|
|
4896
|
+
flag: "--description <desc>",
|
|
4897
|
+
description: "Payment description",
|
|
4898
|
+
required: true,
|
|
4899
|
+
sdkKey: "description"
|
|
4900
|
+
},
|
|
4901
|
+
{
|
|
4902
|
+
flag: "--customer-id <id>",
|
|
4903
|
+
description: "Customer ID",
|
|
4904
|
+
sdkKey: "customerId"
|
|
4905
|
+
},
|
|
4906
|
+
{
|
|
4907
|
+
flag: "--success-url <url>",
|
|
4908
|
+
description: "Redirect URL after successful payment",
|
|
4909
|
+
sdkKey: "successUrl"
|
|
4910
|
+
},
|
|
4911
|
+
{
|
|
4912
|
+
flag: "--metadata <json>",
|
|
4913
|
+
description: "Metadata (JSON)",
|
|
4914
|
+
parse: parseJson,
|
|
4915
|
+
sdkKey: "metadata"
|
|
4916
|
+
}
|
|
4917
|
+
]
|
|
4918
|
+
},
|
|
4919
|
+
charge: {
|
|
4920
|
+
method: "charge",
|
|
4921
|
+
description: "Charge a customer's vaulted payment method off-session",
|
|
4922
|
+
params: [
|
|
4923
|
+
{
|
|
4924
|
+
flag: "--customer-id <id>",
|
|
4925
|
+
description: "Customer ID",
|
|
4926
|
+
required: true,
|
|
4927
|
+
sdkKey: "customerId"
|
|
4928
|
+
},
|
|
4929
|
+
{
|
|
4930
|
+
flag: "--amount <n>",
|
|
4931
|
+
description: "Amount in cents",
|
|
4932
|
+
required: true,
|
|
4933
|
+
parse: parseNumber,
|
|
4934
|
+
sdkKey: "amount"
|
|
4935
|
+
},
|
|
4936
|
+
{
|
|
4937
|
+
flag: "--currency <currency>",
|
|
4938
|
+
description: "Currency code (e.g. USD)",
|
|
4939
|
+
required: true,
|
|
4940
|
+
sdkKey: "currency"
|
|
4941
|
+
},
|
|
4942
|
+
{
|
|
4943
|
+
flag: "--description <desc>",
|
|
4944
|
+
description: "Payment description",
|
|
4945
|
+
required: true,
|
|
4946
|
+
sdkKey: "description"
|
|
4947
|
+
},
|
|
4948
|
+
{
|
|
4949
|
+
flag: "--metadata <json>",
|
|
4950
|
+
description: "Metadata (JSON)",
|
|
4951
|
+
parse: parseJson,
|
|
4952
|
+
sdkKey: "metadata"
|
|
4953
|
+
}
|
|
4954
|
+
]
|
|
4955
|
+
},
|
|
4956
|
+
get: {
|
|
4957
|
+
method: "get",
|
|
4958
|
+
description: "Get a payment by ID",
|
|
4959
|
+
params: [
|
|
4960
|
+
{
|
|
4961
|
+
flag: "--id <id>",
|
|
4962
|
+
description: "Payment ID",
|
|
4963
|
+
required: true,
|
|
4964
|
+
sdkKey: "id"
|
|
4965
|
+
}
|
|
4966
|
+
]
|
|
4967
|
+
},
|
|
4968
|
+
list: {
|
|
4969
|
+
method: "list",
|
|
4970
|
+
description: "List payments",
|
|
4971
|
+
params: [
|
|
4972
|
+
{
|
|
4973
|
+
flag: "--customer-id <id>",
|
|
4974
|
+
description: "Filter by customer ID",
|
|
4975
|
+
sdkKey: "customerId"
|
|
4976
|
+
},
|
|
4977
|
+
{
|
|
4978
|
+
flag: "--limit <n>",
|
|
4979
|
+
description: "Max results",
|
|
4980
|
+
parse: parseNumber,
|
|
4981
|
+
sdkKey: "limit"
|
|
4982
|
+
},
|
|
4983
|
+
{
|
|
4984
|
+
flag: "--cursor <cursor>",
|
|
4985
|
+
description: "Pagination cursor",
|
|
4986
|
+
sdkKey: "cursor"
|
|
4987
|
+
}
|
|
4988
|
+
]
|
|
4989
|
+
},
|
|
4990
|
+
cancel: {
|
|
4991
|
+
method: "cancel",
|
|
4992
|
+
description: "Cancel a pending payment link",
|
|
4993
|
+
params: [
|
|
4994
|
+
{
|
|
4995
|
+
flag: "--id <id>",
|
|
4996
|
+
description: "Payment ID",
|
|
4997
|
+
required: true,
|
|
4998
|
+
sdkKey: "id"
|
|
4999
|
+
}
|
|
5000
|
+
]
|
|
5001
|
+
}
|
|
5002
|
+
}
|
|
5003
|
+
};
|
|
4832
5004
|
var payoutsResource = {
|
|
4833
5005
|
name: "payouts",
|
|
4834
5006
|
description: "Manage payouts",
|
|
@@ -5125,6 +5297,7 @@ var resourceDefinitions = [
|
|
|
5125
5297
|
transactionsResource,
|
|
5126
5298
|
promoCodesResource,
|
|
5127
5299
|
planGroupsResource,
|
|
5300
|
+
paymentsResource,
|
|
5128
5301
|
payoutsResource,
|
|
5129
5302
|
testClockResource,
|
|
5130
5303
|
quotaResource
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "commet",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Commet CLI - Manage your billing platform from the command line",
|
|
5
5
|
"bin": {
|
|
6
6
|
"commet": "./bin/commet"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"open": "11.0.0",
|
|
29
29
|
"ora": "9.4.0",
|
|
30
30
|
"tar": "^7.5.13",
|
|
31
|
-
"@commet/node": "7.
|
|
31
|
+
"@commet/node": "7.2.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "24.13.1",
|