@hyperline/cli 0.1.0-build.1.cd81113 → 0.1.0-build.1.cf612e9
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 +119 -22
- package/package.json +1 -1
|
@@ -34894,10 +34894,10 @@ var require_shared = __commonJS({
|
|
|
34894
34894
|
ZodId: () => ZodId,
|
|
34895
34895
|
ZodTranslationsSchemaFn: () => ZodTranslationsSchemaFn
|
|
34896
34896
|
});
|
|
34897
|
-
var
|
|
34897
|
+
var import_zod19 = require_lib();
|
|
34898
34898
|
var countryIds2 = ["all", ...countries.map(({ id }) => id)];
|
|
34899
|
-
var ZodId =
|
|
34900
|
-
var ZodTranslationsSchemaFn = (schema) =>
|
|
34899
|
+
var ZodId = import_zod19.z.enum(countryIds2);
|
|
34900
|
+
var ZodTranslationsSchemaFn = (schema) => import_zod19.z.record(import_zod19.z.string(), schema.optional());
|
|
34901
34901
|
var UsStates = [
|
|
34902
34902
|
{ id: "AA", name: "Armed Forces Americas" },
|
|
34903
34903
|
{ id: "AE", name: "Armed Forces Europe" },
|
|
@@ -38020,7 +38020,7 @@ Examples:
|
|
|
38020
38020
|
queryParamKeys: ["take", "skip"]
|
|
38021
38021
|
});
|
|
38022
38022
|
});
|
|
38023
|
-
resource.command("create").description(`Create a new coupon with discount rules. Supports percentage or fixed amount discounts, duration limits, and redemption restrictions.`).requiredOption("--name <value>", `Coupon name.`).option("--description <value>", `Coupon description.`).option("--expiration-date <value>", `Date corresponding to the expiration of the coupon.`).option("--redemption-limit <number>", `Maximum number of subscriptions to which a single coupon can be applied.`).option("--product-ids <value>", `List of product IDs the coupon can be applied to. If empty, the coupon can be applied to any product.`).requiredOption("--type <value>", `type`).option("--discount-amount <number>", `Amount to apply as a discount on the total amount (excluding taxes) of a subscription. Expressed in the currency's smallest unit.`).option("--currency <value>", `Currency code. See [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).`).option("--discount-percent <number>", `Percentage to apply as a discount on the amount (excluding taxes) of a product.`).addHelpText("after", `
|
|
38023
|
+
resource.command("create").description(`Create a new coupon with discount rules. Supports percentage or fixed amount discounts, duration limits, and redemption restrictions.`).requiredOption("--name <value>", `Coupon name.`).option("--description <value>", `Coupon description.`).option("--expiration-date <value>", `Date corresponding to the expiration of the coupon.`).option("--redemption-limit <number>", `Maximum number of subscriptions to which a single coupon can be applied.`).option("--product-ids <value>", `List of product IDs the coupon can be applied to. If empty, the coupon can be applied to any product.`).option("--repeat <value>", `Default repeat behaviour applied when the coupon is attached to a subscription. Valid values: \`once\`, \`forever\`, \`duration\`. Can be overridden at attach time.`).option("--duration <value>", `Default duration applied when \`repeat\` is \`duration\`. Required when \`repeat\` is \`duration\`, must be null otherwise.`).requiredOption("--type <value>", `type`).option("--discount-amount <number>", `Amount to apply as a discount on the total amount (excluding taxes) of a subscription. Expressed in the currency's smallest unit.`).option("--currency <value>", `Currency code. See [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).`).option("--discount-percent <number>", `Percentage to apply as a discount on the amount (excluding taxes) of a product.`).addHelpText("after", `
|
|
38024
38024
|
Examples:
|
|
38025
38025
|
hyperline coupons create --name <name> --type <type>
|
|
38026
38026
|
hyperline coupons create --name <name> --type <type> --description <description> --expiration-date <expiration_date>
|
|
@@ -38039,6 +38039,10 @@ Examples:
|
|
|
38039
38039
|
args.expiration_date = opts.expirationDate;
|
|
38040
38040
|
if (opts.productIds !== void 0)
|
|
38041
38041
|
args.product_ids = opts.productIds;
|
|
38042
|
+
if (opts.repeat !== void 0)
|
|
38043
|
+
args.repeat = opts.repeat;
|
|
38044
|
+
if (opts.duration !== void 0)
|
|
38045
|
+
args.duration = opts.duration;
|
|
38042
38046
|
if (opts.type !== void 0)
|
|
38043
38047
|
args.type = opts.type;
|
|
38044
38048
|
if (opts.currency !== void 0)
|
|
@@ -38074,7 +38078,7 @@ Examples:
|
|
|
38074
38078
|
queryParamKeys: []
|
|
38075
38079
|
});
|
|
38076
38080
|
});
|
|
38077
|
-
resource.command("update").description(`Update an existing coupon's name, discount rules, or restrictions.`).requiredOption("--id <value>", `id parameter`).requiredOption("--name <value>", `Coupon name.`).option("--description <value>", `Coupon description.`).option("--expiration-date <value>", `Date corresponding to the expiration of the coupon.`).option("--redemption-limit <number>", `Maximum number of subscriptions to which a single coupon can be applied.`).option("--product-ids <value>", `List of product IDs the coupon can be applied to. If empty, the coupon can be applied to any product.`).requiredOption("--type <value>", `type`).option("--discount-amount <number>", `Amount to apply as a discount on the total amount (excluding taxes) of a subscription. Expressed in the currency's smallest unit.`).option("--currency <value>", `Currency code. See [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).`).option("--discount-percent <number>", `Percentage to apply as a discount on the amount (excluding taxes) of a product.`).addHelpText("after", `
|
|
38081
|
+
resource.command("update").description(`Update an existing coupon's name, discount rules, or restrictions.`).requiredOption("--id <value>", `id parameter`).requiredOption("--name <value>", `Coupon name.`).option("--description <value>", `Coupon description.`).option("--expiration-date <value>", `Date corresponding to the expiration of the coupon.`).option("--redemption-limit <number>", `Maximum number of subscriptions to which a single coupon can be applied.`).option("--product-ids <value>", `List of product IDs the coupon can be applied to. If empty, the coupon can be applied to any product.`).option("--repeat <value>", `Default repeat behaviour applied when the coupon is attached to a subscription. Valid values: \`once\`, \`forever\`, \`duration\`. Can be overridden at attach time.`).option("--duration <value>", `Default duration applied when \`repeat\` is \`duration\`. Required when \`repeat\` is \`duration\`, must be null otherwise.`).requiredOption("--type <value>", `type`).option("--discount-amount <number>", `Amount to apply as a discount on the total amount (excluding taxes) of a subscription. Expressed in the currency's smallest unit.`).option("--currency <value>", `Currency code. See [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).`).option("--discount-percent <number>", `Percentage to apply as a discount on the amount (excluding taxes) of a product.`).addHelpText("after", `
|
|
38078
38082
|
Examples:
|
|
38079
38083
|
hyperline coupons update --id <id> --name <name> --type <type>
|
|
38080
38084
|
hyperline coupons update --id <id> --name <name> --type <type> --description <description> --expiration-date <expiration_date>
|
|
@@ -38095,6 +38099,10 @@ Examples:
|
|
|
38095
38099
|
args.expiration_date = opts.expirationDate;
|
|
38096
38100
|
if (opts.productIds !== void 0)
|
|
38097
38101
|
args.product_ids = opts.productIds;
|
|
38102
|
+
if (opts.repeat !== void 0)
|
|
38103
|
+
args.repeat = opts.repeat;
|
|
38104
|
+
if (opts.duration !== void 0)
|
|
38105
|
+
args.duration = opts.duration;
|
|
38098
38106
|
if (opts.type !== void 0)
|
|
38099
38107
|
args.type = opts.type;
|
|
38100
38108
|
if (opts.currency !== void 0)
|
|
@@ -38744,7 +38752,11 @@ Customer type.
|
|
|
38744
38752
|
- \`corporate\`: The customer is a business entity.
|
|
38745
38753
|
- \`person\`: The customer is a natural person.
|
|
38746
38754
|
- \`automatically_created\`: The customer was automatically imported (e.g. from a data loader). This value cannot be used when creating/editing.
|
|
38747
|
-
`).option("--currency <value>", `Currency code. See [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).`).option("--is-government-affiliated", `Indicates if the customer is affiliated with a government entity.`).option("--tax-ids <value>", `Customer tax IDs.`).option("--tax-rate-custom <number>", `Customer custom tax rate. If not defined, the rate will be automatically determined based on the customer's country, your country, and applicable legal requirements.`).option("--
|
|
38755
|
+
`).option("--currency <value>", `Currency code. See [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes).`).option("--is-government-affiliated", `Indicates if the customer is affiliated with a government entity.`).option("--tax-ids <value>", `Customer tax IDs.`).option("--tax-rate-custom <number>", `Customer custom tax rate. If not defined, the rate will be automatically determined based on the customer's country, your country, and applicable legal requirements.`).option("--taxability <value>", `Customer taxability.
|
|
38756
|
+
|
|
38757
|
+
- \`taxable\`: Taxes are automatically determined for the customer.
|
|
38758
|
+
- \`exempt\`: The customer is exempt from tax.
|
|
38759
|
+
`).option("--registration-number <value>", `Customer registration number.`).option("--external-id <value>", `ID of the customer in your system. This helps matching your customer with the one on Hyperline.`).option("--invoicing-entity-id <value>", `ID of the invoicing entity this customer will be attached to.`).option("--billing-address <value>", `Customer billing address.`).option("--shipping-address <value>", `Customer shipping address.`).option("--billing-email <value>", `Email to which all communications will be sent.`).option("--invoice-emails <value>", `Emails to which invoices will be sent (e.g. payer, finance team, accounting firm). If not defined, invoices will be sent to the \`billing_email\`; otherwise, they won't be sent to the \`billing_email\`.`).option("--language <value>", `Language used for invoices, emails, and hosted pages.`).option("--timezone <value>", `Customer timezone.`).option("--available-payment-methods <value>", `List of payment methods you allow your customer to pay with. You customer will be able to select one of them in their portal page and those will be the default options when creating a checkout session.`).option("--payment-method-type <value>", `Default payment method type used to pay subscriptions and one-off invoices.`).option("--bank-account <value>", `Custom bank account for the customer. If not defined and customer paying by bank transfer, the bank accounts configured in your account settings will be used.`).option("--custom-payment-delay <number>", `Custom payment terms in days. If not defined, the default one defined on the related invoicing entity will be used.`).option("--custom-payment-initiation-delay <number>", `Custom initiation delay in days before triggering payment. If not defined, the default one defined on the related invoicing entity will be used.`).option("--organisation-id <value>", `Parent organization ID to which the client is attached.`).option("--organisation-invoicing <value>", `
|
|
38748
38760
|
How customer invoices are issued from the parent organisation.
|
|
38749
38761
|
|
|
38750
38762
|
- \`none\`: Invoices will keep being issued from this customer.
|
|
@@ -38769,6 +38781,8 @@ Examples:
|
|
|
38769
38781
|
args.currency = opts.currency;
|
|
38770
38782
|
if (opts.taxIds !== void 0)
|
|
38771
38783
|
args.tax_ids = opts.taxIds;
|
|
38784
|
+
if (opts.taxability !== void 0)
|
|
38785
|
+
args.taxability = opts.taxability;
|
|
38772
38786
|
if (opts.registrationNumber !== void 0)
|
|
38773
38787
|
args.registration_number = opts.registrationNumber;
|
|
38774
38788
|
if (opts.externalId !== void 0)
|
|
@@ -38863,7 +38877,11 @@ Customer type.
|
|
|
38863
38877
|
- \`corporate\`: The customer is a business entity.
|
|
38864
38878
|
- \`person\`: The customer is a natural person.
|
|
38865
38879
|
- \`automatically_created\`: The customer was automatically imported (e.g. from a data loader). This value cannot be used when creating/editing.
|
|
38866
|
-
`).option("--currency <value>", `Customer currency. Can only be changed if the customer doesn't have existing invoices, a wallet or a payment method saved.`).option("--tax-ids <value>", `Customer tax IDs.`).option("--tax-rate-custom <number>", `Customer custom tax rate. If not defined, the rate will be automatically determined based on the customer's country, your country, and applicable legal requirements.`).option("--
|
|
38880
|
+
`).option("--currency <value>", `Customer currency. Can only be changed if the customer doesn't have existing invoices, a wallet or a payment method saved.`).option("--tax-ids <value>", `Customer tax IDs.`).option("--tax-rate-custom <number>", `Customer custom tax rate. If not defined, the rate will be automatically determined based on the customer's country, your country, and applicable legal requirements.`).option("--taxability <value>", `Customer taxability.
|
|
38881
|
+
|
|
38882
|
+
- \`taxable\`: Taxes are automatically determined for the customer.
|
|
38883
|
+
- \`exempt\`: The customer is exempt from tax.
|
|
38884
|
+
`).option("--registration-number <value>", `Customer registration number.`).option("--is-government-affiliated", `Indicates if the customer is affiliated with a government entity.`).option("--external-id <value>", `ID of the customer in your system. This helps matching your customer with the one on Hyperline.`).option("--invoicing-entity-id <value>", `ID of the invoicing entity this customer will be attached to.`).option("--billing-address <value>", `Customer billing address.`).option("--shipping-address <value>", `Customer shipping address.`).option("--billing-email <value>", `Email to which all communications will be sent.`).option("--invoice-emails <value>", `Emails to which invoices will be sent (e.g. payer, finance team, accounting firm). If not defined, invoices will be sent to the \`billing_email\`; otherwise, they won't be sent to the \`billing_email\`.`).option("--language <value>", `Language used for invoices, emails, and hosted pages.`).option("--timezone <value>", `Customer timezone.`).option("--available-payment-methods <value>", `List of payment methods you allow your customer to pay with. You customer will be able to select one of them in their portal page and those will be the default options when creating a checkout session.`).option("--payment-method-type <value>", `Default payment method type used to pay subscriptions and one-off invoices.`).option("--payment-method-id <value>", `ID of the default payment method of the customer. Only applies to card and direct debit.`).option("--bank-account <value>", `Custom bank account for the customer. If not defined and customer paying by bank transfer, the bank accounts configured in your account settings will be used.`).option("--custom-payment-delay <number>", `Custom payment terms in days. If not defined, the default one defined on the related invoicing entity will be used.`).option("--custom-payment-initiation-delay <number>", `Custom initiation delay in days before triggering payment. If not defined, the default one defined on the related invoicing entity will be used.`).option("--organisation-id <value>", `Parent organization ID to which the client is attached.`).option("--organisation-invoicing <value>", `
|
|
38867
38885
|
How customer invoices are issued from the parent organisation.
|
|
38868
38886
|
|
|
38869
38887
|
- \`none\`: Invoices will keep being issued from this customer.
|
|
@@ -38890,6 +38908,8 @@ Examples:
|
|
|
38890
38908
|
args.currency = opts.currency;
|
|
38891
38909
|
if (opts.taxIds !== void 0)
|
|
38892
38910
|
args.tax_ids = opts.taxIds;
|
|
38911
|
+
if (opts.taxability !== void 0)
|
|
38912
|
+
args.taxability = opts.taxability;
|
|
38893
38913
|
if (opts.registrationNumber !== void 0)
|
|
38894
38914
|
args.registration_number = opts.registrationNumber;
|
|
38895
38915
|
if (opts.externalId !== void 0)
|
|
@@ -41384,18 +41404,18 @@ Examples:
|
|
|
41384
41404
|
// build/commands/generated/quotes.js
|
|
41385
41405
|
function registerQuotesCommands(parent) {
|
|
41386
41406
|
const resource = parent.command("quotes").description("Manage quotes");
|
|
41387
|
-
resource.command("create").description(`Create a new quote for a customer
|
|
41407
|
+
resource.command("create").description(`Create a new quote for a customer. Use \`subscription\` (or \`template_id\`) for subscription quotes; use \`invoice\` for one-off quotes backed by a draft invoice with line items. Quotes can be sent for signature and converted to subscriptions or one-off invoices.`).option("--status <value>", `
|
|
41388
41408
|
Quote status.
|
|
41389
41409
|
|
|
41390
41410
|
- \`draft\`: The quote is a draft.
|
|
41391
41411
|
- \`approved\`: The quote is approved and ready to be sent to the customer.
|
|
41392
41412
|
- \`pending_signature\`: The quote is awaiting the customer's signature.
|
|
41393
|
-
`).option("--owner-email <value>", `Email address of the Hyperline user acting as the quote owner. If not specified, the Hyperline account owner will be assigned.`).requiredOption("--customer-id <value>", `ID of the customer.`).option("--invoicing-entity-id <value>", `ID of the invoicing entity attached to the quote.`).option("--comments <value>", `Custom comments displayed on the quote.`).option("--terms <value>", `Custom quotation terms.`).option("--amount <number>", `Estimated contract value.
|
|
41413
|
+
`).option("--owner-email <value>", `Email address of the Hyperline user acting as the quote owner. If not specified, the Hyperline account owner will be assigned.`).requiredOption("--customer-id <value>", `ID of the customer.`).option("--invoicing-entity-id <value>", `ID of the invoicing entity attached to the quote.`).option("--comments <value>", `Custom comments displayed on the quote.`).option("--terms <value>", `Custom quotation terms.`).option("--amount <number>", `Estimated contract value. For subscription quotes, defaults to the computed subscription value if not specified. For one-off quotes, this field is ignored \u2014 the amount is always derived from the linked invoice's \`amount_excluding_tax\`.`).option("--collect-payment-details <value>", `Collect customer payment method mandate during signature flow or not.`).option("--collect-custom-property-ids <value>", `IDs of the customer custom properties required to be filled during the signature flow.`).option("--require-tax-id <value>", `Require the customer to provide a tax ID during the signature flow.`).option("--display-quote-value <value>", `Display the total quote value on the quote.`).option("--display-quote-value-with-tax <value>", `Display the total quote value including tax on the quote. Only applies to \`one_off\` quotes.`).option("--display-taxes <value>", `Display tax breakdown on the quote.`).option("--display-price-tiers <value>", `Controls which price tiers are displayed on the quote.
|
|
41394
41414
|
|
|
41395
41415
|
- \`all\`: Display all pricing tiers.
|
|
41396
41416
|
- \`matching\`: Only display the tiers used to compute the price based on quantity.
|
|
41397
41417
|
- \`none\`: Hide all pricing tiers.
|
|
41398
|
-
`).option("--display-phase-value <value>", `Display per-phase value breakdown on the quote.`).option("--display-first-invoice-amount <value>", `Display the first invoice amount on the quote.`).option("--display-documents-in-preview <value>", `Display attached documents in the quote preview.`).option("--display-subscription-on-update <value>", `Display subscription details on subscription update quotes.`).option("--template-id <value>", `ID of the quote template. If not specified, a subscription configuration must be defined.`).option("--expires-at <value>", `Quote expiration date. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.`).option("--subscription <value>", `Subscription configuration constituting the quote.`).addHelpText("after", `
|
|
41418
|
+
`).option("--display-phase-value <value>", `Display per-phase value breakdown on the quote.`).option("--display-first-invoice-amount <value>", `Display the first invoice amount on the quote.`).option("--display-documents-in-preview <value>", `Display attached documents in the quote preview.`).option("--display-subscription-on-update <value>", `Display subscription details on subscription update quotes.`).option("--generate-draft-invoices <value>", `When \`true\`, the invoice issued after signature stays in \`draft\` status instead of being emitted for payment. Use this when you want to review the final invoice manually before sending it. Defaults to \`false\`.`).option("--template-id <value>", `ID of the quote template. If not specified, a subscription configuration or an \`invoice\` payload must be defined.`).option("--expires-at <value>", `Quote expiration date. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.`).option("--subscription <value>", `Subscription configuration constituting the quote.`).option("--invoice <value>", `Invoice configuration constituting the one-off quote. When provided, a draft invoice is created and linked to the quote. Cannot be combined with \`subscription\` or \`template_id\`.`).addHelpText("after", `
|
|
41399
41419
|
Examples:
|
|
41400
41420
|
hyperline quotes create --customer-id <customer_id>
|
|
41401
41421
|
hyperline quotes create --customer-id <customer_id> --status <status> --owner-email <owner_email>
|
|
@@ -41440,12 +41460,16 @@ Examples:
|
|
|
41440
41460
|
args.display_documents_in_preview = opts.displayDocumentsInPreview;
|
|
41441
41461
|
if (opts.displaySubscriptionOnUpdate !== void 0)
|
|
41442
41462
|
args.display_subscription_on_update = opts.displaySubscriptionOnUpdate;
|
|
41463
|
+
if (opts.generateDraftInvoices !== void 0)
|
|
41464
|
+
args.generate_draft_invoices = opts.generateDraftInvoices;
|
|
41443
41465
|
if (opts.templateId !== void 0)
|
|
41444
41466
|
args.template_id = opts.templateId;
|
|
41445
41467
|
if (opts.expiresAt !== void 0)
|
|
41446
41468
|
args.expires_at = opts.expiresAt;
|
|
41447
41469
|
if (opts.subscription !== void 0)
|
|
41448
41470
|
args.subscription = opts.subscription;
|
|
41471
|
+
if (opts.invoice !== void 0)
|
|
41472
|
+
args.invoice = opts.invoice;
|
|
41449
41473
|
if (opts.amount !== void 0)
|
|
41450
41474
|
args.amount = Number(opts.amount);
|
|
41451
41475
|
await ctx.execute({
|
|
@@ -41674,12 +41698,12 @@ Examples:
|
|
|
41674
41698
|
queryParamKeys: []
|
|
41675
41699
|
});
|
|
41676
41700
|
});
|
|
41677
|
-
resource.command("update").description(`Update quote-level fields before a quote is finalized. On draft quotes, pass subscription to create or replace the draft subscription configuration
|
|
41701
|
+
resource.command("update").description(`Update quote-level fields before a quote is finalized. On draft quotes, pass \`subscription\` to create or replace the draft subscription configuration, or pass \`invoice\` on a one-off quote to replace the linked draft invoice.`).requiredOption("--id <value>", `id parameter`).option("--owner-email <value>", `Email address of the Hyperline user acting as the quote owner.`).option("--comments <value>", `Custom comments displayed on the quote.`).option("--terms <value>", `Custom quotation terms.`).option("--amount <number>", `Estimated contract value. Set to \`null\` to clear the manually set value.`).option("--collect-payment-details <value>", `Collect customer payment method mandate during signature flow or not.`).option("--collect-custom-property-ids <value>", `IDs of the customer custom properties required to be filled during the signature flow.`).option("--require-tax-id <value>", `Require the customer to provide a tax ID during the signature flow.`).option("--display-quote-value <value>", `Display the total quote value on the quote.`).option("--display-quote-value-with-tax <value>", `Display the total quote value including tax on the quote. Only applies to \`one_off\` quotes.`).option("--display-taxes <value>", `Display tax breakdown on the quote.`).option("--display-price-tiers <value>", `Controls which price tiers are displayed on the quote.
|
|
41678
41702
|
|
|
41679
41703
|
- \`all\`: Display all pricing tiers.
|
|
41680
41704
|
- \`matching\`: Only display the tiers used to compute the price based on quantity.
|
|
41681
41705
|
- \`none\`: Hide all pricing tiers.
|
|
41682
|
-
`).option("--display-phase-value <value>", `Display per-phase value breakdown on the quote.`).option("--display-first-invoice-amount <value>", `Display the first invoice amount on the quote.`).option("--display-documents-in-preview <value>", `Display attached documents in the quote preview.`).option("--display-subscription-on-update <value>", `Display subscription details on subscription update quotes.`).option("--expires-at <value>", `Quote expiration date. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Set to \`null\` to clear the expiration.`).option("--subscription <value>", `Subscription configuration constituting the quote. When provided on a draft quote, it creates or replaces the draft subscription attached to the quote.`).addHelpText("after", `
|
|
41706
|
+
`).option("--display-phase-value <value>", `Display per-phase value breakdown on the quote.`).option("--display-first-invoice-amount <value>", `Display the first invoice amount on the quote.`).option("--display-documents-in-preview <value>", `Display attached documents in the quote preview.`).option("--display-subscription-on-update <value>", `Display subscription details on subscription update quotes.`).option("--generate-draft-invoices <value>", `When \`true\`, the invoice issued after signature stays in \`draft\` status instead of being emitted for payment. Use this when you want to review the final invoice manually before sending it. Defaults to \`false\`.`).option("--expires-at <value>", `Quote expiration date. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Set to \`null\` to clear the expiration.`).option("--subscription <value>", `Subscription configuration constituting the quote. When provided on a draft quote, it creates or replaces the draft subscription attached to the quote.`).option("--invoice <value>", `Invoice configuration constituting the one-off quote. When provided on a draft one-off quote, it deletes the previous draft invoice and creates a fresh one linked to the quote. \`invoice.invoicing_entity_id\` is ignored on update \u2014 the quote's existing invoicing entity is reused.`).addHelpText("after", `
|
|
41683
41707
|
Examples:
|
|
41684
41708
|
hyperline quotes update --id <id>
|
|
41685
41709
|
hyperline quotes update --id <id> --owner-email <owner_email> --comments <comments>
|
|
@@ -41720,10 +41744,14 @@ Examples:
|
|
|
41720
41744
|
args.display_documents_in_preview = opts.displayDocumentsInPreview;
|
|
41721
41745
|
if (opts.displaySubscriptionOnUpdate !== void 0)
|
|
41722
41746
|
args.display_subscription_on_update = opts.displaySubscriptionOnUpdate;
|
|
41747
|
+
if (opts.generateDraftInvoices !== void 0)
|
|
41748
|
+
args.generate_draft_invoices = opts.generateDraftInvoices;
|
|
41723
41749
|
if (opts.expiresAt !== void 0)
|
|
41724
41750
|
args.expires_at = opts.expiresAt;
|
|
41725
41751
|
if (opts.subscription !== void 0)
|
|
41726
41752
|
args.subscription = opts.subscription;
|
|
41753
|
+
if (opts.invoice !== void 0)
|
|
41754
|
+
args.invoice = opts.invoice;
|
|
41727
41755
|
if (opts.amount !== void 0)
|
|
41728
41756
|
args.amount = Number(opts.amount);
|
|
41729
41757
|
await ctx.execute({
|
|
@@ -41883,7 +41911,7 @@ Examples:
|
|
|
41883
41911
|
// build/commands/generated/subscriptions.js
|
|
41884
41912
|
function registerSubscriptionsCommands(parent) {
|
|
41885
41913
|
const resource = parent.command("subscriptions").description("Manage subscriptions");
|
|
41886
|
-
resource.command("create-subscription-update").description(`Apply a single update to an existing subscription (e.g. change quantity, add/remove product, modify price).`).requiredOption("--id <value>", `id parameter`).requiredOption("--application-schedule <value>", `application_schedule`).option("--apply-at <value>", `The date when the update should be applied. Required when application_schedule is 'scheduled'.`).requiredOption("--payment-schedule <value>", `payment_schedule`).option("--charge-at <value>", `The date when the resulting subscription update should be charged. Required when payment_schedule is 'custom'. Must be in the future.`).requiredOption("--calculation-method <value>", `calculation_method`).requiredOption("--type <value>", `type`).requiredOption("--payload <value>", `payload`).addHelpText("after", `
|
|
41914
|
+
resource.command("create-subscription-update").description(`Apply a single update to an existing subscription (e.g. change quantity, add/remove product, modify price).`).requiredOption("--id <value>", `id parameter`).requiredOption("--application-schedule <value>", `application_schedule`).option("--apply-at <value>", `The date when the update should be applied. Required when application_schedule is 'scheduled'.`).requiredOption("--payment-schedule <value>", `payment_schedule`).option("--charge-at <value>", `The date when the resulting subscription update should be charged. Required when payment_schedule is 'custom'. Must be in the future.`).requiredOption("--calculation-method <value>", `calculation_method`).option("--refund-method <value>", `Override the refund destination when the update generates a refund credit note (e.g. seat reduction). When omitted, falls back to the invoicing entity's \`creditNoteWalletRefundEnabled\` setting.`).requiredOption("--type <value>", `type`).requiredOption("--payload <value>", `payload`).addHelpText("after", `
|
|
41887
41915
|
Examples:
|
|
41888
41916
|
hyperline subscriptions create-subscription-update --id <id> --application-schedule <application_schedule> --payment-schedule <payment_schedule> --calculation-method <calculation_method> --type <type> --payload <payload>
|
|
41889
41917
|
hyperline subscriptions create-subscription-update --id <id> --application-schedule <application_schedule> --payment-schedule <payment_schedule> --calculation-method <calculation_method> --type <type> --payload <payload> --apply-at <apply_at> --charge-at <charge_at>
|
|
@@ -41906,6 +41934,8 @@ Examples:
|
|
|
41906
41934
|
args.charge_at = opts.chargeAt;
|
|
41907
41935
|
if (opts.calculationMethod !== void 0)
|
|
41908
41936
|
args.calculation_method = opts.calculationMethod;
|
|
41937
|
+
if (opts.refundMethod !== void 0)
|
|
41938
|
+
args.refund_method = opts.refundMethod;
|
|
41909
41939
|
if (opts.type !== void 0)
|
|
41910
41940
|
args.type = opts.type;
|
|
41911
41941
|
if (opts.payload !== void 0)
|
|
@@ -41917,7 +41947,7 @@ Examples:
|
|
|
41917
41947
|
queryParamKeys: []
|
|
41918
41948
|
});
|
|
41919
41949
|
});
|
|
41920
|
-
resource.command("create-subscription-updates").description(`Apply multiple updates at once to an existing subscription in a single atomic operation.`).requiredOption("--id <value>", `id parameter`).requiredOption("--application-schedule <value>", `application_schedule`).option("--apply-at <value>", `The date when the update should be applied. Required when application_schedule is 'scheduled'.`).requiredOption("--payment-schedule <value>", `payment_schedule`).option("--charge-at <value>", `The date when the resulting subscription update should be charged. Required when payment_schedule is 'custom'. Must be in the future.`).requiredOption("--calculation-method <value>", `calculation_method`).requiredOption("--updates <value>", `updates`).addHelpText("after", `
|
|
41950
|
+
resource.command("create-subscription-updates").description(`Apply multiple updates at once to an existing subscription in a single atomic operation.`).requiredOption("--id <value>", `id parameter`).requiredOption("--application-schedule <value>", `application_schedule`).option("--apply-at <value>", `The date when the update should be applied. Required when application_schedule is 'scheduled'.`).requiredOption("--payment-schedule <value>", `payment_schedule`).option("--charge-at <value>", `The date when the resulting subscription update should be charged. Required when payment_schedule is 'custom'. Must be in the future.`).requiredOption("--calculation-method <value>", `calculation_method`).option("--refund-method <value>", `Override the refund destination when the update generates a refund credit note (e.g. seat reduction). When omitted, falls back to the invoicing entity's \`creditNoteWalletRefundEnabled\` setting.`).requiredOption("--updates <value>", `updates`).addHelpText("after", `
|
|
41921
41951
|
Examples:
|
|
41922
41952
|
hyperline subscriptions create-subscription-updates --id <id> --application-schedule <application_schedule> --payment-schedule <payment_schedule> --calculation-method <calculation_method> --updates <updates>
|
|
41923
41953
|
hyperline subscriptions create-subscription-updates --id <id> --application-schedule <application_schedule> --payment-schedule <payment_schedule> --calculation-method <calculation_method> --updates <updates> --apply-at <apply_at> --charge-at <charge_at>
|
|
@@ -41940,6 +41970,8 @@ Examples:
|
|
|
41940
41970
|
args.charge_at = opts.chargeAt;
|
|
41941
41971
|
if (opts.calculationMethod !== void 0)
|
|
41942
41972
|
args.calculation_method = opts.calculationMethod;
|
|
41973
|
+
if (opts.refundMethod !== void 0)
|
|
41974
|
+
args.refund_method = opts.refundMethod;
|
|
41943
41975
|
if (opts.updates !== void 0)
|
|
41944
41976
|
args.updates = opts.updates;
|
|
41945
41977
|
await ctx.execute({
|
|
@@ -41949,7 +41981,7 @@ Examples:
|
|
|
41949
41981
|
queryParamKeys: []
|
|
41950
41982
|
});
|
|
41951
41983
|
});
|
|
41952
|
-
resource.command("cancel").description(`Cancel a subscription. Supports immediate or end-of-period cancellation. Optionally specify a cancellation reason.`).requiredOption("--id <value>", `id parameter`).option("--cancel-at <value>", `Subscription cancel date. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.`).option("--reason <value>", `Reason for the cancellation.`).option("--pro-rata", `Indicates if the cancel should refund the customer using a pro rata strategy.`).addHelpText("after", `
|
|
41984
|
+
resource.command("cancel").description(`Cancel a subscription. Supports immediate or end-of-period cancellation. Optionally specify a cancellation reason.`).requiredOption("--id <value>", `id parameter`).option("--cancel-at <value>", `Subscription cancel date. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.`).option("--reason <value>", `Reason for the cancellation.`).option("--pro-rata", `Indicates if the cancel should refund the customer using a pro rata strategy.`).option("--refund-method <value>", `Override the refund destination for the resulting credit note. When omitted, falls back to the invoicing entity's \`creditNoteWalletRefundEnabled\` setting.`).addHelpText("after", `
|
|
41953
41985
|
Examples:
|
|
41954
41986
|
hyperline subscriptions cancel --id <id>
|
|
41955
41987
|
hyperline subscriptions cancel --id <id> --cancel-at <cancel_at> --reason <reason>
|
|
@@ -41966,6 +41998,8 @@ Examples:
|
|
|
41966
41998
|
args.cancel_at = opts.cancelAt;
|
|
41967
41999
|
if (opts.reason !== void 0)
|
|
41968
42000
|
args.reason = opts.reason;
|
|
42001
|
+
if (opts.refundMethod !== void 0)
|
|
42002
|
+
args.refund_method = opts.refundMethod;
|
|
41969
42003
|
if (opts.proRata !== void 0)
|
|
41970
42004
|
args.pro_rata = true;
|
|
41971
42005
|
await ctx.execute({
|
|
@@ -42075,7 +42109,7 @@ Examples:
|
|
|
42075
42109
|
queryParamKeys: []
|
|
42076
42110
|
});
|
|
42077
42111
|
});
|
|
42078
|
-
resource.command("simulate-subscription-updates").description(`Preview the effect of updates on a subscription without applying them. Returns simulated invoice and billing impact.`).requiredOption("--id <value>", `id parameter`).requiredOption("--application-schedule <value>", `application_schedule`).option("--apply-at <value>", `The date when the update should be applied. Required when application_schedule is 'scheduled'.`).requiredOption("--payment-schedule <value>", `payment_schedule`).option("--charge-at <value>", `The date when the resulting subscription update should be charged. Required when payment_schedule is 'custom'. Must be in the future.`).requiredOption("--calculation-method <value>", `calculation_method`).requiredOption("--updates <value>", `updates`).addHelpText("after", `
|
|
42112
|
+
resource.command("simulate-subscription-updates").description(`Preview the effect of updates on a subscription without applying them. Returns simulated invoice and billing impact.`).requiredOption("--id <value>", `id parameter`).requiredOption("--application-schedule <value>", `application_schedule`).option("--apply-at <value>", `The date when the update should be applied. Required when application_schedule is 'scheduled'.`).requiredOption("--payment-schedule <value>", `payment_schedule`).option("--charge-at <value>", `The date when the resulting subscription update should be charged. Required when payment_schedule is 'custom'. Must be in the future.`).requiredOption("--calculation-method <value>", `calculation_method`).option("--refund-method <value>", `Override the refund destination when the update generates a refund credit note (e.g. seat reduction). When omitted, falls back to the invoicing entity's \`creditNoteWalletRefundEnabled\` setting.`).requiredOption("--updates <value>", `updates`).addHelpText("after", `
|
|
42079
42113
|
Examples:
|
|
42080
42114
|
hyperline subscriptions simulate-subscription-updates --id <id> --application-schedule <application_schedule> --payment-schedule <payment_schedule> --calculation-method <calculation_method> --updates <updates>
|
|
42081
42115
|
hyperline subscriptions simulate-subscription-updates --id <id> --application-schedule <application_schedule> --payment-schedule <payment_schedule> --calculation-method <calculation_method> --updates <updates> --apply-at <apply_at> --charge-at <charge_at>
|
|
@@ -42098,6 +42132,8 @@ Examples:
|
|
|
42098
42132
|
args.charge_at = opts.chargeAt;
|
|
42099
42133
|
if (opts.calculationMethod !== void 0)
|
|
42100
42134
|
args.calculation_method = opts.calculationMethod;
|
|
42135
|
+
if (opts.refundMethod !== void 0)
|
|
42136
|
+
args.refund_method = opts.refundMethod;
|
|
42101
42137
|
if (opts.updates !== void 0)
|
|
42102
42138
|
args.updates = opts.updates;
|
|
42103
42139
|
await ctx.execute({
|
|
@@ -42123,7 +42159,7 @@ Strategy used to cancel the subscription. If not specified \`do_nothing\` is use
|
|
|
42123
42159
|
- \`refund_custom\`: Will refund to the customer a custom amount.
|
|
42124
42160
|
- \`end_of_period\`: Will cancel the subscription at the end date of the current billing period.
|
|
42125
42161
|
- \`do_nothing\`: Will only cease the subscription without any additional actions.
|
|
42126
|
-
`).option("--cancellation-amount <number>", `Custom amount used when cancelling the subscription. Only applies to the \`charge_custom\` or the \`refund_custom\` cancellation strategy.`).option("--properties <value>", `Key/value pairs to store any metadata useful in your context.`).option("--custom-properties <value>", `A list of key value with the slug of the custom property as the key and the custom property value as value.`).option("--tax-only <value>", `Only tax will be charged on this subscription.`).option("--generate-draft-invoices <value>", `Generate draft invoices for the subscription. Each invoice will need to be reviewed and validated manually before being sent`).option("--generate-document <value>", `Generate non-legal documents instead of invoices.`).option("--document-name <value>", `If \`generate_document\` is turned on, allows you to give a name to your document.`).option("--add-tax-to-document <value>", `If \`generate_document\` is turned on, will add taxes to document.`).option("--do-not-charge-subscription <value>", `Subscription will be invoiced but not charged (invoices/documents will be settled directly).`).option("--invoice-custom-note <value>", `Default custom note added to invoices generated by the subscription.`).option("--invoice-schedule <value>", `
|
|
42162
|
+
`).option("--cancellation-amount <number>", `Custom amount used when cancelling the subscription. Only applies to the \`charge_custom\` or the \`refund_custom\` cancellation strategy.`).option("--cancellation-refund-method <value>", `Override the refund destination for credit notes generated by \`refund_prorata\` / \`refund_custom\` cancellation strategies. When omitted, falls back to the invoicing entity's \`creditNoteWalletRefundEnabled\` setting.`).option("--properties <value>", `Key/value pairs to store any metadata useful in your context.`).option("--custom-properties <value>", `A list of key value with the slug of the custom property as the key and the custom property value as value.`).option("--tax-only <value>", `Only tax will be charged on this subscription.`).option("--generate-draft-invoices <value>", `Generate draft invoices for the subscription. Each invoice will need to be reviewed and validated manually before being sent`).option("--generate-document <value>", `Generate non-legal documents instead of invoices.`).option("--document-name <value>", `If \`generate_document\` is turned on, allows you to give a name to your document.`).option("--add-tax-to-document <value>", `If \`generate_document\` is turned on, will add taxes to document.`).option("--do-not-charge-subscription <value>", `Subscription will be invoiced but not charged (invoices/documents will be settled directly).`).option("--invoice-custom-note <value>", `Default custom note added to invoices generated by the subscription.`).option("--invoice-schedule <value>", `
|
|
42127
42163
|
Defines when invoices are generated relative to the billing period.
|
|
42128
42164
|
|
|
42129
42165
|
- \`period_start\`: Invoices are generated at the start of the billing period.
|
|
@@ -42178,6 +42214,8 @@ Examples:
|
|
|
42178
42214
|
args.cancel_at = opts.cancelAt;
|
|
42179
42215
|
if (opts.cancellationStrategy !== void 0)
|
|
42180
42216
|
args.cancellation_strategy = opts.cancellationStrategy;
|
|
42217
|
+
if (opts.cancellationRefundMethod !== void 0)
|
|
42218
|
+
args.cancellation_refund_method = opts.cancellationRefundMethod;
|
|
42181
42219
|
if (opts.properties !== void 0)
|
|
42182
42220
|
args.properties = opts.properties;
|
|
42183
42221
|
if (opts.customProperties !== void 0)
|
|
@@ -42820,7 +42858,7 @@ Examples:
|
|
|
42820
42858
|
]
|
|
42821
42859
|
});
|
|
42822
42860
|
});
|
|
42823
|
-
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>", `
|
|
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. '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", `
|
|
42824
42862
|
Examples:
|
|
42825
42863
|
hyperline subscriptions-transitions create-subscription-transition --source-subscription-id <source_subscription_id> --application-schedule <application_schedule> --target-subscription <target_subscription>
|
|
42826
42864
|
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>
|
|
@@ -43034,6 +43072,30 @@ Examples:
|
|
|
43034
43072
|
});
|
|
43035
43073
|
}
|
|
43036
43074
|
|
|
43075
|
+
// build/commands/generated/transactions.js
|
|
43076
|
+
function registerTransactionsCommands(parent) {
|
|
43077
|
+
const resource = parent.command("transactions").description("Manage transactions");
|
|
43078
|
+
resource.command("refund").description(`Refund a settled banking transaction for its full amount. The related invoice will switch back to to pay status. Use the create credit note endpoint if you want to cancel (and optionally refund) the initial invoice.`).requiredOption("--id <value>", `id parameter`).addHelpText("after", `
|
|
43079
|
+
Examples:
|
|
43080
|
+
hyperline transactions refund --id <id>
|
|
43081
|
+
hyperline transactions refund --id <id> --output json`).action(async (opts) => {
|
|
43082
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
43083
|
+
if (!ctx) {
|
|
43084
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
43085
|
+
process.exit(1);
|
|
43086
|
+
}
|
|
43087
|
+
const args = {};
|
|
43088
|
+
if (opts.id !== void 0)
|
|
43089
|
+
args.id = opts.id;
|
|
43090
|
+
await ctx.execute({
|
|
43091
|
+
method: "POST",
|
|
43092
|
+
path: "/v1/transactions/{id}/refund",
|
|
43093
|
+
args,
|
|
43094
|
+
queryParamKeys: []
|
|
43095
|
+
});
|
|
43096
|
+
});
|
|
43097
|
+
}
|
|
43098
|
+
|
|
43037
43099
|
// build/commands/generated/wallets.js
|
|
43038
43100
|
function registerWalletsCommands(parent) {
|
|
43039
43101
|
const resource = parent.command("wallets").description("Manage wallets");
|
|
@@ -43194,10 +43256,10 @@ Examples:
|
|
|
43194
43256
|
queryParamKeys: []
|
|
43195
43257
|
});
|
|
43196
43258
|
});
|
|
43197
|
-
resource.command("load").description(`Add credits
|
|
43259
|
+
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", `
|
|
43198
43260
|
Examples:
|
|
43199
43261
|
hyperline wallets load --id <id>
|
|
43200
|
-
hyperline wallets load --id <id> --
|
|
43262
|
+
hyperline wallets load --id <id> --type <type> --amount <amount>
|
|
43201
43263
|
hyperline wallets load --id <id> --output json`).action(async (opts) => {
|
|
43202
43264
|
const ctx = resource.parent?.opts()._ctx;
|
|
43203
43265
|
if (!ctx) {
|
|
@@ -43207,12 +43269,18 @@ Examples:
|
|
|
43207
43269
|
const args = {};
|
|
43208
43270
|
if (opts.id !== void 0)
|
|
43209
43271
|
args.id = opts.id;
|
|
43272
|
+
if (opts.type !== void 0)
|
|
43273
|
+
args.type = opts.type;
|
|
43274
|
+
if (opts.comment !== void 0)
|
|
43275
|
+
args.comment = opts.comment;
|
|
43210
43276
|
if (opts.documentStatus !== void 0)
|
|
43211
43277
|
args.document_status = opts.documentStatus;
|
|
43278
|
+
if (opts.bankAccountId !== void 0)
|
|
43279
|
+
args.bank_account_id = opts.bankAccountId;
|
|
43280
|
+
if (opts.reference !== void 0)
|
|
43281
|
+
args.reference = opts.reference;
|
|
43212
43282
|
if (opts.amount !== void 0)
|
|
43213
43283
|
args.amount = Number(opts.amount);
|
|
43214
|
-
if (opts.amountFree !== void 0)
|
|
43215
|
-
args.amount_free = Number(opts.amountFree);
|
|
43216
43284
|
await ctx.execute({
|
|
43217
43285
|
method: "POST",
|
|
43218
43286
|
path: "/v1/wallets/{id}/load",
|
|
@@ -43446,6 +43514,7 @@ function registerAllCommands(program2) {
|
|
|
43446
43514
|
registerSubscriptions_TransitionsCommands(program2);
|
|
43447
43515
|
registerSubscriptions_PhasesCommands(program2);
|
|
43448
43516
|
registerTaxesCommands(program2);
|
|
43517
|
+
registerTransactionsCommands(program2);
|
|
43449
43518
|
registerWalletsCommands(program2);
|
|
43450
43519
|
registerWebhooksCommands(program2);
|
|
43451
43520
|
}
|
|
@@ -57236,6 +57305,7 @@ var BooleanSchema = external_exports.boolean().or(external_exports.enum(["true",
|
|
|
57236
57305
|
});
|
|
57237
57306
|
var StringSchemaForMultipartForm = external_exports.string().transform((value) => value === "" ? null : value);
|
|
57238
57307
|
var StringArraySchemaForMultipartForm = external_exports.string().array().or(external_exports.string().length(0)).transform((value) => typeof value === "string" ? [] : value);
|
|
57308
|
+
var CommaSeparatedArraySchema = external_exports.string().optional().transform((raw) => raw ? raw.split(",").filter(Boolean) : void 0);
|
|
57239
57309
|
var urlRegex = /^(?:(?:https?):\/\/)?(?:www\.)?(?:[\w-]+\.)+[a-z]{2,7}(?:\/\S*)?$/i;
|
|
57240
57310
|
var ZodFlexibleUrl = external_exports.string({ message: "Invalid URL" }).regex(urlRegex).transform((url2) => {
|
|
57241
57311
|
if (!url2)
|
|
@@ -62031,6 +62101,7 @@ var languages = [
|
|
|
62031
62101
|
var de = {
|
|
62032
62102
|
"accounting.invoicePosted.entryDescription": "Buchungseintrag f\xFCr Rechnung {{invoiceId}}",
|
|
62033
62103
|
"accounting.transactionSettled.entryDescription": "Zahlungsabwicklung f\xFCr Rechnung {{invoiceId}}",
|
|
62104
|
+
"accounting.transactionRefunded.entryDescription": "R\xFCckerstattung f\xFCr Rechnung {{invoiceId}}",
|
|
62034
62105
|
"accounting.creditNotePosted.entryDescription": "Gutschrift {{creditNoteId}} f\xFCr Rechnung {{invoiceId}}",
|
|
62035
62106
|
"accounting.revrec.creditLineDescription": "Umsatz realisieren \u2013 Zeitplan {{scheduleId}}, Zeitraum {{periodDate}}",
|
|
62036
62107
|
"accounting.revrec.debitLineDescription": "Abgrenzungsposten reduzieren \u2013 Zeitplan {{scheduleId}}, Zeitraum {{periodDate}}",
|
|
@@ -62047,7 +62118,9 @@ var de = {
|
|
|
62047
62118
|
"invoices.outstandingProduct.descriptionPeriod": "Unbezahlter Betrag der Rechnung{{invoiceNumber}} vom {{periodStart}} bis {{periodEnd}}",
|
|
62048
62119
|
"invoices.outstandingProduct.name": "Offener Saldo",
|
|
62049
62120
|
"invoices.prorata.paymentForItem": "Anteilig berechneter Betrag f\xFCr",
|
|
62121
|
+
"invoices.prorata.paymentForItemFullPeriod": "Zahlung f\xFCr",
|
|
62050
62122
|
"invoices.prorata.refundForItem": "Anteilig erstatteter Betrag f\xFCr",
|
|
62123
|
+
"invoices.prorata.refundForItemFullPeriod": "Erstattung f\xFCr",
|
|
62051
62124
|
"subscriptions.closingChargeName": "Abschlussgeb\xFChr f\xFCr das Abonnement",
|
|
62052
62125
|
"subscriptions.correction": "Vorperiodische Anpassung",
|
|
62053
62126
|
"subscriptions.updates.addCoupon": "Gutschein hinzuf\xFCgen {{couponName}}",
|
|
@@ -62076,7 +62149,9 @@ var en = {
|
|
|
62076
62149
|
"invoices.outstandingProduct.descriptionPeriod": "Unpaid amount from the invoice{{invoiceNumber}} from {{periodStart}} to {{periodEnd}}",
|
|
62077
62150
|
"invoices.outstandingProduct.name": "Outstanding balance",
|
|
62078
62151
|
"invoices.prorata.paymentForItem": "Prorated payment for",
|
|
62152
|
+
"invoices.prorata.paymentForItemFullPeriod": "Payment for",
|
|
62079
62153
|
"invoices.prorata.refundForItem": "Prorated refund for",
|
|
62154
|
+
"invoices.prorata.refundForItemFullPeriod": "Refund for",
|
|
62080
62155
|
"subscriptions.closingChargeName": "Closing fee for subscription",
|
|
62081
62156
|
"subscriptions.correction": "Adjustment previous period",
|
|
62082
62157
|
"subscriptions.updates.addCoupon": "Add coupon {{couponName}}",
|
|
@@ -62096,6 +62171,7 @@ var en = {
|
|
|
62096
62171
|
"subscriptions.updates.updateCount.description.full.not_committed.not_invoiced": "Amount of {{amount}} not invoiced for the full period",
|
|
62097
62172
|
"accounting.invoicePosted.entryDescription": "Posting entry for Invoice {{invoiceId}} issued",
|
|
62098
62173
|
"accounting.transactionSettled.entryDescription": "Payment settlement for Invoice {{invoiceId}}",
|
|
62174
|
+
"accounting.transactionRefunded.entryDescription": "Refund for Invoice {{invoiceId}}",
|
|
62099
62175
|
"accounting.creditNotePosted.entryDescription": "Credit note {{creditNoteId}} for Invoice {{invoiceId}}",
|
|
62100
62176
|
"accounting.revrec.entryDescription": "Revenue recognition for schedule {{scheduleId}}, period {{periodStart}} - {{periodEnd}}",
|
|
62101
62177
|
"accounting.revrec.debitLineDescription": "Decrease deferred revenue \u2013 schedule {{scheduleId}}, period {{periodDate}}",
|
|
@@ -62111,6 +62187,7 @@ var en = {
|
|
|
62111
62187
|
var es = {
|
|
62112
62188
|
"accounting.invoicePosted.entryDescription": "Asiento contable para la factura {{invoiceId}}",
|
|
62113
62189
|
"accounting.transactionSettled.entryDescription": "Liquidaci\xF3n de pago para la factura {{invoiceId}}",
|
|
62190
|
+
"accounting.transactionRefunded.entryDescription": "Reembolso de la factura {{invoiceId}}",
|
|
62114
62191
|
"accounting.creditNotePosted.entryDescription": "Nota de cr\xE9dito {{creditNoteId}} para la factura {{invoiceId}}",
|
|
62115
62192
|
"accounting.revrec.creditLineDescription": "Reconocer ingresos \u2013 cronograma {{scheduleId}}, per\xEDodo {{periodDate}}",
|
|
62116
62193
|
"accounting.revrec.debitLineDescription": "Disminuci\xF3n de ingresos diferidos \u2013 cronograma {{scheduleId}}, per\xEDodo {{periodDate}}",
|
|
@@ -62127,7 +62204,9 @@ var es = {
|
|
|
62127
62204
|
"invoices.outstandingProduct.descriptionPeriod": "Monto pendiente de la factura{{invoiceNumber}} del {{periodStart}} al {{periodEnd}}",
|
|
62128
62205
|
"invoices.outstandingProduct.name": "Saldo pendiente",
|
|
62129
62206
|
"invoices.prorata.paymentForItem": "Pago prorrateado por",
|
|
62207
|
+
"invoices.prorata.paymentForItemFullPeriod": "Pago por",
|
|
62130
62208
|
"invoices.prorata.refundForItem": "Reembolso prorrateado por",
|
|
62209
|
+
"invoices.prorata.refundForItemFullPeriod": "Reembolso por",
|
|
62131
62210
|
"subscriptions.closingChargeName": "Cargo por cierre de suscripci\xF3n",
|
|
62132
62211
|
"subscriptions.correction": "Ajuste del periodo anterior",
|
|
62133
62212
|
"subscriptions.updates.addCoupon": "A\xF1adir cup\xF3n {{couponName}}",
|
|
@@ -62155,6 +62234,7 @@ var fr = {
|
|
|
62155
62234
|
"accounting.revrec.discountDebitLineDescription": "Diminution des remises diff\xE9r\xE9es \u2013 \xE9ch\xE9ancier {{scheduleId}}, p\xE9riode {{periodDate}}",
|
|
62156
62235
|
"accounting.invoicePosted.entryDescription": "\xC9criture de comptabilisation pour la facture {{invoiceId}}",
|
|
62157
62236
|
"accounting.transactionSettled.entryDescription": "R\xE8glement de la facture {{invoiceId}}",
|
|
62237
|
+
"accounting.transactionRefunded.entryDescription": "Remboursement de la facture {{invoiceId}}",
|
|
62158
62238
|
"accounting.creditNotePosted.entryDescription": "Avoir {{creditNoteId}} pour la facture {{invoiceId}}",
|
|
62159
62239
|
"accounting.revrec.entryDescription": "Reconnaissance du chiffre d'affaires pour l'\xE9ch\xE9ancier {{scheduleId}}, p\xE9riode {{periodStart}} - {{periodEnd}}",
|
|
62160
62240
|
"creditNotes.refundChargeName": "Remboursement pour facture",
|
|
@@ -62167,7 +62247,9 @@ var fr = {
|
|
|
62167
62247
|
"invoices.outstandingProduct.descriptionPeriod": "Montant impay\xE9 de la facture{{invoiceNumber}} du {{periodStart}} au {{periodEnd}}",
|
|
62168
62248
|
"invoices.outstandingProduct.name": "Solde impay\xE9",
|
|
62169
62249
|
"invoices.prorata.paymentForItem": "Paiement au prorata pour",
|
|
62250
|
+
"invoices.prorata.paymentForItemFullPeriod": "Paiement pour",
|
|
62170
62251
|
"invoices.prorata.refundForItem": "Remboursement au prorata pour",
|
|
62252
|
+
"invoices.prorata.refundForItemFullPeriod": "Remboursement pour",
|
|
62171
62253
|
"subscriptions.closingChargeName": "Frais de cl\xF4ture pour abonnement",
|
|
62172
62254
|
"subscriptions.correction": "Ajustement p\xE9riode pr\xE9c\xE9dente",
|
|
62173
62255
|
"subscriptions.updates.addCoupon": "Ajout du coupon {{couponName}}",
|
|
@@ -62191,6 +62273,7 @@ var fr = {
|
|
|
62191
62273
|
var it = {
|
|
62192
62274
|
"accounting.invoicePosted.entryDescription": "Registrazione contabile per la fattura {{invoiceId}}",
|
|
62193
62275
|
"accounting.transactionSettled.entryDescription": "Regolamento pagamento per la fattura {{invoiceId}}",
|
|
62276
|
+
"accounting.transactionRefunded.entryDescription": "Rimborso per la fattura {{invoiceId}}",
|
|
62194
62277
|
"accounting.creditNotePosted.entryDescription": "Nota di credito {{creditNoteId}} per la fattura {{invoiceId}}",
|
|
62195
62278
|
"accounting.revrec.creditLineDescription": "Riconoscere i ricavi \u2013 programma {{scheduleId}}, periodo {{periodDate}}",
|
|
62196
62279
|
"accounting.revrec.debitLineDescription": "Diminuzione dei ricavi differiti \u2013 programma {{scheduleId}}, periodo {{periodDate}}",
|
|
@@ -62207,7 +62290,9 @@ var it = {
|
|
|
62207
62290
|
"invoices.outstandingProduct.descriptionPeriod": "Importo insoluto della fattura{{invoiceNumber}} dal {{periodStart}} al {{periodEnd}}",
|
|
62208
62291
|
"invoices.outstandingProduct.name": "Saldo insoluto",
|
|
62209
62292
|
"invoices.prorata.paymentForItem": "Pagamento proporzionale per",
|
|
62293
|
+
"invoices.prorata.paymentForItemFullPeriod": "Pagamento per",
|
|
62210
62294
|
"invoices.prorata.refundForItem": "Rimborso proporzionale per",
|
|
62295
|
+
"invoices.prorata.refundForItemFullPeriod": "Rimborso per",
|
|
62211
62296
|
"subscriptions.closingChargeName": "Costo di chiusura per abbonamento",
|
|
62212
62297
|
"subscriptions.correction": "Correzione periodo precedente",
|
|
62213
62298
|
"subscriptions.updates.addCoupon": "Aggiungi coupon {{couponName}}",
|
|
@@ -62231,6 +62316,7 @@ var it = {
|
|
|
62231
62316
|
var nl = {
|
|
62232
62317
|
"accounting.invoicePosted.entryDescription": "Boekingsregel voor factuur {{invoiceId}}",
|
|
62233
62318
|
"accounting.transactionSettled.entryDescription": "Betalingsafwikkeling voor factuur {{invoiceId}}",
|
|
62319
|
+
"accounting.transactionRefunded.entryDescription": "Terugbetaling voor factuur {{invoiceId}}",
|
|
62234
62320
|
"accounting.creditNotePosted.entryDescription": "Creditnota {{creditNoteId}} voor factuur {{invoiceId}}",
|
|
62235
62321
|
"accounting.revrec.creditLineDescription": "Omzet erkennen \u2013 schema {{scheduleId}}, periode {{periodDate}}",
|
|
62236
62322
|
"accounting.revrec.debitLineDescription": "Uitgestelde omzet verlagen \u2013 schema {{scheduleId}}, periode {{periodDate}}",
|
|
@@ -62247,7 +62333,9 @@ var nl = {
|
|
|
62247
62333
|
"invoices.outstandingProduct.descriptionPeriod": "Onbetaald bedrag van de factuur{{invoiceNumber}} van {{periodStart}} tot {{periodEnd}}",
|
|
62248
62334
|
"invoices.outstandingProduct.name": "Openstaand saldo",
|
|
62249
62335
|
"invoices.prorata.paymentForItem": "Gedeeltelijke betaling voor",
|
|
62336
|
+
"invoices.prorata.paymentForItemFullPeriod": "Betaling voor",
|
|
62250
62337
|
"invoices.prorata.refundForItem": "Gedeeltelijke terugbetaling voor",
|
|
62338
|
+
"invoices.prorata.refundForItemFullPeriod": "Terugbetaling voor",
|
|
62251
62339
|
"subscriptions.closingChargeName": "Afsluitkosten voor abonnement",
|
|
62252
62340
|
"subscriptions.correction": "Aanpassing vorige periode",
|
|
62253
62341
|
"subscriptions.updates.addCoupon": "Coupon toevoegen {{couponName}}",
|
|
@@ -62271,6 +62359,7 @@ var nl = {
|
|
|
62271
62359
|
var pl = {
|
|
62272
62360
|
"accounting.invoicePosted.entryDescription": "Zapis ksi\u0119gowy dla faktury {{invoiceId}}",
|
|
62273
62361
|
"accounting.transactionSettled.entryDescription": "Rozliczenie p\u0142atno\u015Bci dla faktury {{invoiceId}}",
|
|
62362
|
+
"accounting.transactionRefunded.entryDescription": "Zwrot za faktur\u0119 {{invoiceId}}",
|
|
62274
62363
|
"accounting.creditNotePosted.entryDescription": "Nota kredytowa {{creditNoteId}} dla faktury {{invoiceId}}",
|
|
62275
62364
|
"accounting.revrec.creditLineDescription": "Rozpoznanie przychodu \u2013 harmonogram {{scheduleId}}, okres {{periodDate}}",
|
|
62276
62365
|
"accounting.revrec.debitLineDescription": "Zmniejszenie przychod\xF3w przysz\u0142ych okres\xF3w \u2013 harmonogram {{scheduleId}}, okres {{periodDate}}",
|
|
@@ -62287,7 +62376,9 @@ var pl = {
|
|
|
62287
62376
|
"invoices.outstandingProduct.descriptionPeriod": "Nieop\u0142acona kwota z faktury{{invoiceNumber}} od {{periodStart}} do {{periodEnd}}",
|
|
62288
62377
|
"invoices.outstandingProduct.name": "Niezap\u0142acone saldo",
|
|
62289
62378
|
"invoices.prorata.paymentForItem": "P\u0142atno\u015B\u0107 proporcjonalna za",
|
|
62379
|
+
"invoices.prorata.paymentForItemFullPeriod": "P\u0142atno\u015B\u0107 za",
|
|
62290
62380
|
"invoices.prorata.refundForItem": "Zwrot proporcjonalny za",
|
|
62381
|
+
"invoices.prorata.refundForItemFullPeriod": "Zwrot za",
|
|
62291
62382
|
"subscriptions.closingChargeName": "Op\u0142ata za zamkni\u0119cie subskrypcji",
|
|
62292
62383
|
"subscriptions.correction": "Korekta poprzedniego okresu",
|
|
62293
62384
|
"subscriptions.updates.addCoupon": "Dodaj kupon {{couponName}}",
|
|
@@ -62311,6 +62402,7 @@ var pl = {
|
|
|
62311
62402
|
var pt = {
|
|
62312
62403
|
"accounting.invoicePosted.entryDescription": "Lan\xE7amento cont\xE1bil para a fatura {{invoiceId}}",
|
|
62313
62404
|
"accounting.transactionSettled.entryDescription": "Liquida\xE7\xE3o de pagamento para a fatura {{invoiceId}}",
|
|
62405
|
+
"accounting.transactionRefunded.entryDescription": "Reembolso da fatura {{invoiceId}}",
|
|
62314
62406
|
"accounting.creditNotePosted.entryDescription": "Nota de cr\xE9dito {{creditNoteId}} para a fatura {{invoiceId}}",
|
|
62315
62407
|
"accounting.revrec.creditLineDescription": "Reconhecer receita \u2013 cronograma {{scheduleId}}, per\xEDodo {{periodDate}}",
|
|
62316
62408
|
"accounting.revrec.debitLineDescription": "Diminui\xE7\xE3o da receita diferida \u2013 cronograma {{scheduleId}}, per\xEDodo {{periodDate}}",
|
|
@@ -62327,7 +62419,9 @@ var pt = {
|
|
|
62327
62419
|
"invoices.outstandingProduct.descriptionPeriod": "Valor em aberto da fatura{{invoiceNumber}} de {{periodStart}} a {{periodEnd}}",
|
|
62328
62420
|
"invoices.outstandingProduct.name": "Saldo em aberto",
|
|
62329
62421
|
"invoices.prorata.paymentForItem": "Pagamento proporcional por",
|
|
62422
|
+
"invoices.prorata.paymentForItemFullPeriod": "Pagamento por",
|
|
62330
62423
|
"invoices.prorata.refundForItem": "Reembolso proporcional por",
|
|
62424
|
+
"invoices.prorata.refundForItemFullPeriod": "Reembolso por",
|
|
62331
62425
|
"subscriptions.closingChargeName": "Taxa de encerramento da assinatura",
|
|
62332
62426
|
"subscriptions.correction": "Ajuste do per\xEDodo anterior",
|
|
62333
62427
|
"subscriptions.updates.addCoupon": "Adicionar cupom {{couponName}}",
|
|
@@ -62545,6 +62639,9 @@ import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/
|
|
|
62545
62639
|
|
|
62546
62640
|
// ../hyperline-mcp/build/server/server.js
|
|
62547
62641
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
62642
|
+
var defaultToolOutputSchema = {
|
|
62643
|
+
result: external_exports.unknown()
|
|
62644
|
+
};
|
|
62548
62645
|
|
|
62549
62646
|
// ../hyperline-mcp/build/session/sessionKey.js
|
|
62550
62647
|
import { createHmac } from "node:crypto";
|