@hyperline/cli 0.1.0-build.1.8a38d1a → 0.1.0-build.1.8b45ff8
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/bin/hyperline-main.js +46 -5
- package/package.json +1 -1
|
@@ -41801,6 +41801,25 @@ Examples:
|
|
|
41801
41801
|
queryParamKeys: []
|
|
41802
41802
|
});
|
|
41803
41803
|
});
|
|
41804
|
+
resource.command("finalize").description(`Finalize a draft quote. The quote is submitted for approval when approval is required, otherwise it becomes approved and ready to be sent for signature.`).requiredOption("--id <value>", `id parameter`).addHelpText("after", `
|
|
41805
|
+
Examples:
|
|
41806
|
+
hyperline quotes finalize --id <id>
|
|
41807
|
+
hyperline quotes finalize --id <id> --output json`).action(async (opts) => {
|
|
41808
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
41809
|
+
if (!ctx) {
|
|
41810
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
41811
|
+
process.exit(1);
|
|
41812
|
+
}
|
|
41813
|
+
const args = {};
|
|
41814
|
+
if (opts.id !== void 0)
|
|
41815
|
+
args.id = opts.id;
|
|
41816
|
+
await ctx.execute({
|
|
41817
|
+
method: "POST",
|
|
41818
|
+
path: "/v1/quotes/{id}/finalize",
|
|
41819
|
+
args,
|
|
41820
|
+
queryParamKeys: []
|
|
41821
|
+
});
|
|
41822
|
+
});
|
|
41804
41823
|
resource.command("send").description(`Send a quote by email for customer signature. Requires the quote to be approved first.`).requiredOption("--id <value>", `id parameter`).requiredOption("--email <value>", `Email address to which the quote will be sent for signature.`).option("--message <value>", `Custom message used in the email content.`).addHelpText("after", `
|
|
41805
41824
|
Examples:
|
|
41806
41825
|
hyperline quotes send --id <id> --email <email>
|
|
@@ -42858,7 +42877,7 @@ Examples:
|
|
|
42858
42877
|
]
|
|
42859
42878
|
});
|
|
42860
42879
|
});
|
|
42861
|
-
resource.command("create-subscription-transition").description(`Create a transition from one subscription to another, configured from a subscription, plan, or template. Can be applied immediately or scheduled.`).requiredOption("--source-subscription-id <value>", `The ID of the subscription to transition from`).option("--name <value>", `An optional name for the transition`).option("--calculation-method <value>", `The calculation method to use for the transition. 'do_not_charge' will not generate any transition invoice. 'pro_rata' will generate a prorated invoice for the remaining period.`).option("--billing-cycle-transition-method <value>", `The billing cycle transition method to use. 'keep_current_billing_cycle' will keep the current billing cycle dates if possible. 'align_to_new_billing_cycle' will align the billing cycle to the transition date.`).requiredOption("--application-schedule <value>", `
|
|
42880
|
+
resource.command("create-subscription-transition").description(`Create a transition from one subscription to another, configured from a subscription, plan, or template. Can be applied immediately or scheduled.`).requiredOption("--source-subscription-id <value>", `The ID of the subscription to transition from`).option("--name <value>", `An optional name for the transition`).option("--calculation-method <value>", `The calculation method to use for the transition. 'do_not_charge' will not generate any transition invoice. 'pro_rata' will generate a prorated invoice for the remaining period. 'refund_and_reinvoice' (only available with application_schedule 'last_renewal') issues a credit note for what was invoiced for the current period and a separate invoice for the new configuration.`).option("--billing-cycle-transition-method <value>", `The billing cycle transition method to use. 'keep_current_billing_cycle' will keep the current billing cycle dates if possible. 'align_to_new_billing_cycle' will align the billing cycle to the transition date.`).requiredOption("--application-schedule <value>", `When the transition should be applied: 'immediately', 'scheduled' for a specific date, or 'last_renewal' to apply it retroactively to the start of the current billing period (refunding what was already invoiced for that period and re-charging the new configuration). Past dates within the current billing period are supported and will be applied immediately.`).option("--transition-date <value>", `The date at which the transition should occur. Only applicable if the application schedule is 'scheduled'. Can be a past date within the current billing period. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.`).requiredOption("--target-subscription <value>", `The configuration of the subscription to transition to`).addHelpText("after", `
|
|
42862
42881
|
Examples:
|
|
42863
42882
|
hyperline subscriptions-transitions create-subscription-transition --source-subscription-id <source_subscription_id> --application-schedule <application_schedule> --target-subscription <target_subscription>
|
|
42864
42883
|
hyperline subscriptions-transitions create-subscription-transition --source-subscription-id <source_subscription_id> --application-schedule <application_schedule> --target-subscription <target_subscription> --name <name> --calculation-method <calculation_method>
|
|
@@ -43256,10 +43275,10 @@ Examples:
|
|
|
43256
43275
|
queryParamKeys: []
|
|
43257
43276
|
});
|
|
43258
43277
|
});
|
|
43259
|
-
resource.command("load").description(`Add credits
|
|
43278
|
+
resource.command("load").description(`Add paid credits by charging the customer's payment method, or add free credits by issuing a credit note.`).requiredOption("--id <value>", `id parameter`).option("--type <value>", `Wallet load type. Use \`paid\` to collect payment from the customer's payment method, or \`free\` to grant credits without collecting payment.`).option("--amount <number>", `Amount to be loaded onto the wallet as free credits. A corresponding credit note will be generated and no payment is collected. Expressed in currency's smallest unit.`).option("--comment <value>", `Internal comment stored on the wallet transaction for context.`).option("--document-status <value>", `Indicates the status of the generated credit note for free top-ups.`).option("--bank-account-id <value>", `Bank account ID to use when recording a paid wallet load by bank transfer.`).option("--reference <value>", `Reference stored on the generated payment document for a paid wallet load.`).addHelpText("after", `
|
|
43260
43279
|
Examples:
|
|
43261
43280
|
hyperline wallets load --id <id>
|
|
43262
|
-
hyperline wallets load --id <id> --
|
|
43281
|
+
hyperline wallets load --id <id> --type <type> --amount <amount>
|
|
43263
43282
|
hyperline wallets load --id <id> --output json`).action(async (opts) => {
|
|
43264
43283
|
const ctx = resource.parent?.opts()._ctx;
|
|
43265
43284
|
if (!ctx) {
|
|
@@ -43269,12 +43288,18 @@ Examples:
|
|
|
43269
43288
|
const args = {};
|
|
43270
43289
|
if (opts.id !== void 0)
|
|
43271
43290
|
args.id = opts.id;
|
|
43291
|
+
if (opts.type !== void 0)
|
|
43292
|
+
args.type = opts.type;
|
|
43293
|
+
if (opts.comment !== void 0)
|
|
43294
|
+
args.comment = opts.comment;
|
|
43272
43295
|
if (opts.documentStatus !== void 0)
|
|
43273
43296
|
args.document_status = opts.documentStatus;
|
|
43297
|
+
if (opts.bankAccountId !== void 0)
|
|
43298
|
+
args.bank_account_id = opts.bankAccountId;
|
|
43299
|
+
if (opts.reference !== void 0)
|
|
43300
|
+
args.reference = opts.reference;
|
|
43274
43301
|
if (opts.amount !== void 0)
|
|
43275
43302
|
args.amount = Number(opts.amount);
|
|
43276
|
-
if (opts.amountFree !== void 0)
|
|
43277
|
-
args.amount_free = Number(opts.amountFree);
|
|
43278
43303
|
await ctx.execute({
|
|
43279
43304
|
method: "POST",
|
|
43280
43305
|
path: "/v1/wallets/{id}/load",
|
|
@@ -62112,7 +62137,9 @@ var de = {
|
|
|
62112
62137
|
"invoices.outstandingProduct.descriptionPeriod": "Unbezahlter Betrag der Rechnung{{invoiceNumber}} vom {{periodStart}} bis {{periodEnd}}",
|
|
62113
62138
|
"invoices.outstandingProduct.name": "Offener Saldo",
|
|
62114
62139
|
"invoices.prorata.paymentForItem": "Anteilig berechneter Betrag f\xFCr",
|
|
62140
|
+
"invoices.prorata.paymentForItemFullPeriod": "Zahlung f\xFCr",
|
|
62115
62141
|
"invoices.prorata.refundForItem": "Anteilig erstatteter Betrag f\xFCr",
|
|
62142
|
+
"invoices.prorata.refundForItemFullPeriod": "Erstattung f\xFCr",
|
|
62116
62143
|
"subscriptions.closingChargeName": "Abschlussgeb\xFChr f\xFCr das Abonnement",
|
|
62117
62144
|
"subscriptions.correction": "Vorperiodische Anpassung",
|
|
62118
62145
|
"subscriptions.updates.addCoupon": "Gutschein hinzuf\xFCgen {{couponName}}",
|
|
@@ -62141,7 +62168,9 @@ var en = {
|
|
|
62141
62168
|
"invoices.outstandingProduct.descriptionPeriod": "Unpaid amount from the invoice{{invoiceNumber}} from {{periodStart}} to {{periodEnd}}",
|
|
62142
62169
|
"invoices.outstandingProduct.name": "Outstanding balance",
|
|
62143
62170
|
"invoices.prorata.paymentForItem": "Prorated payment for",
|
|
62171
|
+
"invoices.prorata.paymentForItemFullPeriod": "Payment for",
|
|
62144
62172
|
"invoices.prorata.refundForItem": "Prorated refund for",
|
|
62173
|
+
"invoices.prorata.refundForItemFullPeriod": "Refund for",
|
|
62145
62174
|
"subscriptions.closingChargeName": "Closing fee for subscription",
|
|
62146
62175
|
"subscriptions.correction": "Adjustment previous period",
|
|
62147
62176
|
"subscriptions.updates.addCoupon": "Add coupon {{couponName}}",
|
|
@@ -62194,7 +62223,9 @@ var es = {
|
|
|
62194
62223
|
"invoices.outstandingProduct.descriptionPeriod": "Monto pendiente de la factura{{invoiceNumber}} del {{periodStart}} al {{periodEnd}}",
|
|
62195
62224
|
"invoices.outstandingProduct.name": "Saldo pendiente",
|
|
62196
62225
|
"invoices.prorata.paymentForItem": "Pago prorrateado por",
|
|
62226
|
+
"invoices.prorata.paymentForItemFullPeriod": "Pago por",
|
|
62197
62227
|
"invoices.prorata.refundForItem": "Reembolso prorrateado por",
|
|
62228
|
+
"invoices.prorata.refundForItemFullPeriod": "Reembolso por",
|
|
62198
62229
|
"subscriptions.closingChargeName": "Cargo por cierre de suscripci\xF3n",
|
|
62199
62230
|
"subscriptions.correction": "Ajuste del periodo anterior",
|
|
62200
62231
|
"subscriptions.updates.addCoupon": "A\xF1adir cup\xF3n {{couponName}}",
|
|
@@ -62235,7 +62266,9 @@ var fr = {
|
|
|
62235
62266
|
"invoices.outstandingProduct.descriptionPeriod": "Montant impay\xE9 de la facture{{invoiceNumber}} du {{periodStart}} au {{periodEnd}}",
|
|
62236
62267
|
"invoices.outstandingProduct.name": "Solde impay\xE9",
|
|
62237
62268
|
"invoices.prorata.paymentForItem": "Paiement au prorata pour",
|
|
62269
|
+
"invoices.prorata.paymentForItemFullPeriod": "Paiement pour",
|
|
62238
62270
|
"invoices.prorata.refundForItem": "Remboursement au prorata pour",
|
|
62271
|
+
"invoices.prorata.refundForItemFullPeriod": "Remboursement pour",
|
|
62239
62272
|
"subscriptions.closingChargeName": "Frais de cl\xF4ture pour abonnement",
|
|
62240
62273
|
"subscriptions.correction": "Ajustement p\xE9riode pr\xE9c\xE9dente",
|
|
62241
62274
|
"subscriptions.updates.addCoupon": "Ajout du coupon {{couponName}}",
|
|
@@ -62276,7 +62309,9 @@ var it = {
|
|
|
62276
62309
|
"invoices.outstandingProduct.descriptionPeriod": "Importo insoluto della fattura{{invoiceNumber}} dal {{periodStart}} al {{periodEnd}}",
|
|
62277
62310
|
"invoices.outstandingProduct.name": "Saldo insoluto",
|
|
62278
62311
|
"invoices.prorata.paymentForItem": "Pagamento proporzionale per",
|
|
62312
|
+
"invoices.prorata.paymentForItemFullPeriod": "Pagamento per",
|
|
62279
62313
|
"invoices.prorata.refundForItem": "Rimborso proporzionale per",
|
|
62314
|
+
"invoices.prorata.refundForItemFullPeriod": "Rimborso per",
|
|
62280
62315
|
"subscriptions.closingChargeName": "Costo di chiusura per abbonamento",
|
|
62281
62316
|
"subscriptions.correction": "Correzione periodo precedente",
|
|
62282
62317
|
"subscriptions.updates.addCoupon": "Aggiungi coupon {{couponName}}",
|
|
@@ -62317,7 +62352,9 @@ var nl = {
|
|
|
62317
62352
|
"invoices.outstandingProduct.descriptionPeriod": "Onbetaald bedrag van de factuur{{invoiceNumber}} van {{periodStart}} tot {{periodEnd}}",
|
|
62318
62353
|
"invoices.outstandingProduct.name": "Openstaand saldo",
|
|
62319
62354
|
"invoices.prorata.paymentForItem": "Gedeeltelijke betaling voor",
|
|
62355
|
+
"invoices.prorata.paymentForItemFullPeriod": "Betaling voor",
|
|
62320
62356
|
"invoices.prorata.refundForItem": "Gedeeltelijke terugbetaling voor",
|
|
62357
|
+
"invoices.prorata.refundForItemFullPeriod": "Terugbetaling voor",
|
|
62321
62358
|
"subscriptions.closingChargeName": "Afsluitkosten voor abonnement",
|
|
62322
62359
|
"subscriptions.correction": "Aanpassing vorige periode",
|
|
62323
62360
|
"subscriptions.updates.addCoupon": "Coupon toevoegen {{couponName}}",
|
|
@@ -62358,7 +62395,9 @@ var pl = {
|
|
|
62358
62395
|
"invoices.outstandingProduct.descriptionPeriod": "Nieop\u0142acona kwota z faktury{{invoiceNumber}} od {{periodStart}} do {{periodEnd}}",
|
|
62359
62396
|
"invoices.outstandingProduct.name": "Niezap\u0142acone saldo",
|
|
62360
62397
|
"invoices.prorata.paymentForItem": "P\u0142atno\u015B\u0107 proporcjonalna za",
|
|
62398
|
+
"invoices.prorata.paymentForItemFullPeriod": "P\u0142atno\u015B\u0107 za",
|
|
62361
62399
|
"invoices.prorata.refundForItem": "Zwrot proporcjonalny za",
|
|
62400
|
+
"invoices.prorata.refundForItemFullPeriod": "Zwrot za",
|
|
62362
62401
|
"subscriptions.closingChargeName": "Op\u0142ata za zamkni\u0119cie subskrypcji",
|
|
62363
62402
|
"subscriptions.correction": "Korekta poprzedniego okresu",
|
|
62364
62403
|
"subscriptions.updates.addCoupon": "Dodaj kupon {{couponName}}",
|
|
@@ -62399,7 +62438,9 @@ var pt = {
|
|
|
62399
62438
|
"invoices.outstandingProduct.descriptionPeriod": "Valor em aberto da fatura{{invoiceNumber}} de {{periodStart}} a {{periodEnd}}",
|
|
62400
62439
|
"invoices.outstandingProduct.name": "Saldo em aberto",
|
|
62401
62440
|
"invoices.prorata.paymentForItem": "Pagamento proporcional por",
|
|
62441
|
+
"invoices.prorata.paymentForItemFullPeriod": "Pagamento por",
|
|
62402
62442
|
"invoices.prorata.refundForItem": "Reembolso proporcional por",
|
|
62443
|
+
"invoices.prorata.refundForItemFullPeriod": "Reembolso por",
|
|
62403
62444
|
"subscriptions.closingChargeName": "Taxa de encerramento da assinatura",
|
|
62404
62445
|
"subscriptions.correction": "Ajuste do per\xEDodo anterior",
|
|
62405
62446
|
"subscriptions.updates.addCoupon": "Adicionar cupom {{couponName}}",
|