@hyperline/cli 0.1.0-build.1.1fbfde0 → 0.1.0-build.1.2139bed
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 +157 -39
- package/dist/external-deps.json +0 -1
- package/package.json +1 -2
|
@@ -38323,24 +38323,6 @@ Examples:
|
|
|
38323
38323
|
queryParamKeys: ["invoicing_entity_id"]
|
|
38324
38324
|
});
|
|
38325
38325
|
});
|
|
38326
|
-
resource.command("get-ledger-client-provider").description(`Retrieve the redacted accounting provider connected to a ledger.`).requiredOption("--id <value>", `id parameter`).addHelpText("after", `
|
|
38327
|
-
Examples:
|
|
38328
|
-
hyperline accounting-ledgers get-ledger-client-provider --id <id>`).action(async (opts) => {
|
|
38329
|
-
const ctx = resource.parent?.opts()._ctx;
|
|
38330
|
-
if (!ctx) {
|
|
38331
|
-
process.stderr.write("Error: Not authenticated\n");
|
|
38332
|
-
process.exit(1);
|
|
38333
|
-
}
|
|
38334
|
-
const args = {};
|
|
38335
|
-
if (opts.id !== void 0)
|
|
38336
|
-
args.id = opts.id;
|
|
38337
|
-
await ctx.execute({
|
|
38338
|
-
method: "GET",
|
|
38339
|
-
path: "/v1/accounting/ledgers/{id}/client-provider",
|
|
38340
|
-
args,
|
|
38341
|
-
queryParamKeys: []
|
|
38342
|
-
});
|
|
38343
|
-
});
|
|
38344
38326
|
resource.command("create-ledger").description(`Create an accounting ledger for an invoicing entity.`).requiredOption("--invoicing-entity-id <value>", `Identifier of the invoicing entity that owns the ledger.`).requiredOption("--name <value>", `Display name of the ledger.`).requiredOption("--code <value>", `Optional accounting code of the ledger.`).requiredOption("--description <value>", `Optional description of the ledger.`).requiredOption("--type <value>", `Type of ledger.`).requiredOption("--currency <value>", `ISO 4217 currency used by the ledger.`).requiredOption("--entry-number-pattern <value>", `Entry numbering pattern containing \`{number}\`.`).requiredOption("--is-primary", `Whether this is the primary ledger for the invoicing entity.`).requiredOption("--is-inactive", `Whether the ledger is inactive.`).addHelpText("after", `
|
|
38345
38327
|
Examples:
|
|
38346
38328
|
hyperline accounting-ledgers create-ledger --invoicing-entity-id <invoicing_entity_id> --name <name> --code <code> --description <description> --type <type> --currency <currency> --entry-number-pattern <entry_number_pattern> --is-primary --is-inactive
|
|
@@ -41130,7 +41112,7 @@ Examples:
|
|
|
41130
41112
|
]
|
|
41131
41113
|
});
|
|
41132
41114
|
});
|
|
41133
|
-
resource.command("create").description(`Upload a new file (max 10MB). Requires multipart form data with a file field and metadata (name
|
|
41115
|
+
resource.command("create").description(`Upload a new file (max 10MB). Requires multipart form data with a file field and metadata (name and customer_id).`).requiredOption("--name <value>", `Name of the file to be uploaded.`).requiredOption("--customer-id <value>", `ID of the customer to link the file to.`).addHelpText("after", `
|
|
41134
41116
|
Examples:
|
|
41135
41117
|
hyperline files create --name <name> --customer-id <customer_id>
|
|
41136
41118
|
hyperline files create --name <name> --customer-id <customer_id> --output json`).action(async (opts) => {
|
|
@@ -41670,7 +41652,7 @@ Examples:
|
|
|
41670
41652
|
queryParamKeys: []
|
|
41671
41653
|
});
|
|
41672
41654
|
});
|
|
41673
|
-
resource.command("validate").description(`
|
|
41655
|
+
resource.command("validate").description(`Submit a draft invoice for finalization. The result may be pending approval or finalized for payment.`).requiredOption("--id <value>", `id parameter`).addHelpText("after", `
|
|
41674
41656
|
Examples:
|
|
41675
41657
|
hyperline invoices validate --id <id>
|
|
41676
41658
|
hyperline invoices validate --id <id> --output json`).action(async (opts) => {
|
|
@@ -41910,7 +41892,7 @@ Examples:
|
|
|
41910
41892
|
// build/commands/generated/invoices-transactions.js
|
|
41911
41893
|
function registerInvoices_TransactionsCommands(parent) {
|
|
41912
41894
|
const resource = parent.command("invoices-transactions").description("Manage invoices > transactions");
|
|
41913
|
-
resource.command("create-invoice-transaction").description(`Record a payment transaction on an invoice.
|
|
41895
|
+
resource.command("create-invoice-transaction").description(`Record a payment transaction on an invoice. Rejects transactions that cannot be allocated, including cancelled invoices or invoices with no remaining capacity; excess amounts remain unallocated.`).requiredOption("--id <value>", `id parameter`).requiredOption("--amount <number>", `Transaction amount.`).requiredOption("--process-at <value>", `Date corresponding to the processing of the transaction. If in the future, the transaction is scheduled to be processed.`).option("--payment-method-id <value>", `Payment method used to execute the transaction. Only applies to scheduled transactions with a process_at date in the future.`).option("--payment-method-type <value>", `payment_method_type`).option("--bank-account-id <value>", `Bank account linked to the transaction.`).option("--provider-name <value>", `Provider name.`).option("--provider-id <value>", `Provider ID. Required if multiple instances of the same provider are connected in Hyperline.`).option("--provider-transaction-id <value>", `ID of the transaction on the provider's side. If the transaction is pending, Hyperline will automatically refresh it with the latest details until it is settled. Note that the \`amount\` and \`process_at\` fields may be overridden by the transaction data.`).addHelpText("after", `
|
|
41914
41896
|
Examples:
|
|
41915
41897
|
hyperline invoices-transactions create-invoice-transaction --id <id> --amount <amount> --process-at <process_at>
|
|
41916
41898
|
hyperline invoices-transactions create-invoice-transaction --id <id> --amount <amount> --process-at <process_at> --payment-method-id <payment_method_id> --payment-method-type <payment_method_type>
|
|
@@ -42018,7 +42000,7 @@ Examples:
|
|
|
42018
42000
|
queryParamKeys: []
|
|
42019
42001
|
});
|
|
42020
42002
|
});
|
|
42021
|
-
resource.command("create-invoicing-entity").description(`Create a new invoicing entity with company details, address, and tax configuration. Used as the sender on invoices.`).option("--is-default", `Flag to indicate if this is the default invoicing entity. If true, it will switch the other existing invoicing entities to non-default.`).requiredOption("--name <value>", `The name of the invoicing entity.`).option("--trade-name <value>", `The trade name of the invoicing entity.`).option("--timezone <value>", `The timezone the invoicing entity operates in.`).option("--language <value>", `The default language of the invoicing entity.`).option("--registration-number <value>", `The registration number of the invoicing entity.`).option("--tax-id <value>", `The tax identification number of the invoicing entity.`).option("--billing-email <value>", `The billing email address for the invoicing entity.`).option("--address-line1 <value>", `The first line of the address for the invoicing entity.`).option("--address-line2 <value>", `The second line of the address for the invoicing entity.`).option("--zip-code <value>", `The postal code for the invoicing entity's address.`).option("--state <value>", `The state or province of the invoicing entity.`).option("--city <value>", `The city of the invoicing entity.`).requiredOption("--country <value>", `The country in which the invoicing entity is registered.`).requiredOption("--currency <value>", `The currency code that the invoicing entity operates in.`).requiredOption("--accounting-currency <value>", `The currency used for accounting purposes.`).option("--invoice-number-pattern <value>", `The pattern used for generating invoice numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--credit-note-number-pattern <value>", `The pattern used for generating credit note numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--document-number-pattern <value>", `The pattern used for generating document numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--next-invoice-number <number>", `The next invoice number to be used.`).option("--next-credit-note-number <number>", `The next credit note number to be used.`).option("--next-document-number <number>", `The next document number to be used.`).option("--default-payment-delay <number>", `The default payment term in days.`).option("--invoice-grace-period-duration <number>", `The grace period duration in days.`).option("--invoice-payment-initiation-delay <number>", `The payment initiation delay in days for the invoices.`).option("--document-payment-initiation-delay <number>", `The payment initiation delay in days for the custom documents.`).option("--invoice-late-fees <value>", `The late fees applicable to the invoices.`).option("--invoice-footer <value>", `The footer text to be used in invoices.`).option("--document-footer <value>", `The footer text to be used in documents. If not specified, the invoice footer will be used.`).option("--quote-footer <value>", `The footer text to be used in quotes.`).option("--logo-url <value>", `URL of the logo to be used in invoices.`).option("--favicon-url <value>", `URL of the logo to be used as favicon.`).option("--brand-color <value>", `Brand color to be used in invoices (hexadecimal color code).`).option("--forced-customer-type <value>", `Forces all customers created under this invoicing entity to have this type. Set to null to allow users to choose.`).option("--credit-note-wallet-refund-enabled", `When enabled, credit note refunds default to the customer's wallet
|
|
42003
|
+
resource.command("create-invoicing-entity").description(`Create a new invoicing entity with company details, address, and tax configuration. Used as the sender on invoices.`).option("--is-default", `Flag to indicate if this is the default invoicing entity. If true, it will switch the other existing invoicing entities to non-default.`).requiredOption("--name <value>", `The name of the invoicing entity.`).option("--trade-name <value>", `The trade name of the invoicing entity.`).option("--timezone <value>", `The timezone the invoicing entity operates in.`).option("--language <value>", `The default language of the invoicing entity.`).option("--registration-number <value>", `The registration number of the invoicing entity.`).option("--tax-id <value>", `The tax identification number of the invoicing entity.`).option("--billing-email <value>", `The billing email address for the invoicing entity.`).option("--address-line1 <value>", `The first line of the address for the invoicing entity.`).option("--address-line2 <value>", `The second line of the address for the invoicing entity.`).option("--zip-code <value>", `The postal code for the invoicing entity's address.`).option("--state <value>", `The state or province of the invoicing entity.`).option("--city <value>", `The city of the invoicing entity.`).requiredOption("--country <value>", `The country in which the invoicing entity is registered. It cannot be changed after creation.`).requiredOption("--currency <value>", `The currency code that the invoicing entity operates in.`).requiredOption("--accounting-currency <value>", `The currency used for accounting purposes.`).option("--invoice-number-pattern <value>", `The pattern used for generating invoice numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--credit-note-number-pattern <value>", `The pattern used for generating credit note numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--document-number-pattern <value>", `The pattern used for generating document numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--next-invoice-number <number>", `The next invoice number to be used.`).option("--next-credit-note-number <number>", `The next credit note number to be used.`).option("--next-document-number <number>", `The next document number to be used.`).option("--default-payment-delay <number>", `The default payment term in days.`).option("--invoice-grace-period-duration <number>", `The grace period duration in days.`).option("--invoice-payment-initiation-delay <number>", `The payment initiation delay in days for the invoices.`).option("--document-payment-initiation-delay <number>", `The payment initiation delay in days for the custom documents.`).option("--invoice-late-fees <value>", `The late fees applicable to the invoices.`).option("--invoice-footer <value>", `The footer text to be used in invoices.`).option("--document-footer <value>", `The footer text to be used in documents. If not specified, the invoice footer will be used.`).option("--quote-footer <value>", `The footer text to be used in quotes.`).option("--logo-url <value>", `URL of the logo to be used in invoices.`).option("--favicon-url <value>", `URL of the logo to be used as favicon.`).option("--brand-color <value>", `Brand color to be used in invoices (hexadecimal color code).`).option("--forced-customer-type <value>", `Forces all customers created under this invoicing entity to have this type. Set to null to allow users to choose.`).option("--credit-note-wallet-refund-enabled", `When enabled and no \`refund_method\` is specified, credit note refunds default to the customer's wallet, including credit notes generated by subscription updates, cancellations, and transitions. An explicit \`refund_method\` always wins. Requires wallets to be enabled at the workspace level.`).option("--standalone-credit-note-creation-enabled", `Whether credit notes without an original invoice can be created under this invoicing entity.`).addHelpText("after", `
|
|
42022
42004
|
Examples:
|
|
42023
42005
|
hyperline invoicing-entities create-invoicing-entity --name <name> --country <country> --currency <currency> --accounting-currency <accounting_currency>
|
|
42024
42006
|
hyperline invoicing-entities create-invoicing-entity --name <name> --country <country> --currency <currency> --accounting-currency <accounting_currency> --is-default --trade-name <trade_name>
|
|
@@ -42108,7 +42090,7 @@ Examples:
|
|
|
42108
42090
|
queryParamKeys: []
|
|
42109
42091
|
});
|
|
42110
42092
|
});
|
|
42111
|
-
resource.command("update-invoicing-entity").description(`Update an existing invoicing entity's details (address, tax ID, branding, etc.).`).requiredOption("--id <value>", `id parameter`).option("--name <value>", `The name of the invoicing entity.`).option("--registration-number <value>", `The registration number of the invoicing entity.`).option("--tax-id <value>", `The tax identification number of the invoicing entity.`).option("--billing-email <value>", `The billing email address for the invoicing entity.`).option("--timezone <value>", `The timezone the invoicing entity operates in.`).option("--language <value>", `The default language of the invoicing entity.`).option("--is-default", `Flag to indicate if this is the default invoicing entity. If true, it will switch the other existing invoicing entities to non-default.`).option("--address-line1 <value>", `The first line of the address for the invoicing entity.`).option("--address-line2 <value>", `The second line of the address for the invoicing entity.`).option("--zip-code <value>", `The postal code for the invoicing entity's address.`).option("--state <value>", `The state or province of the invoicing entity.`).option("--city <value>", `The city of the invoicing entity.`).option("--country <value>", `The country in which the invoicing entity is registered.`).option("--currency <value>", `The currency code that the invoicing entity operates in.`).option("--accounting-currency <value>", `The currency used for accounting purposes.`).option("--invoice-number-pattern <value>", `The pattern used for generating invoice numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--credit-note-number-pattern <value>", `The pattern used for generating credit note numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--document-number-pattern <value>", `The pattern used for generating document numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--default-payment-delay <number>", `The default payment term in days.`).option("--invoice-grace-period-duration <number>", `The grace period duration in days.`).option("--invoice-payment-initiation-delay <number>", `The payment initiation delay in days for the invoices.`).option("--document-payment-initiation-delay <number>", `The payment initiation delay in days for the custom documents.`).option("--invoice-late-fees <value>", `The late fees applicable to the invoices.`).option("--invoice-footer <value>", `The footer text to be used in invoices.`).option("--document-footer <value>", `The footer text to be used in documents. If not specified, the invoice footer will be used.`).option("--logo-url <value>", `URL of the logo to be used in invoices.`).option("--favicon-url <value>", `URL of the logo to be used as favicon.`).option("--brand-color <value>", `Brand color to be used in invoices (hexadecimal color code).`).option("--forced-customer-type <value>", `Forces all customers created under this invoicing entity to have this type. Set to null to allow users to choose.`).option("--credit-note-wallet-refund-enabled", `When enabled, credit note refunds default to the customer's wallet
|
|
42093
|
+
resource.command("update-invoicing-entity").description(`Update an existing invoicing entity's details (address, tax ID, branding, etc.).`).requiredOption("--id <value>", `id parameter`).option("--name <value>", `The name of the invoicing entity.`).option("--registration-number <value>", `The registration number of the invoicing entity.`).option("--tax-id <value>", `The tax identification number of the invoicing entity.`).option("--billing-email <value>", `The billing email address for the invoicing entity.`).option("--timezone <value>", `The timezone the invoicing entity operates in.`).option("--language <value>", `The default language of the invoicing entity.`).option("--is-default", `Flag to indicate if this is the default invoicing entity. If true, it will switch the other existing invoicing entities to non-default.`).option("--address-line1 <value>", `The first line of the address for the invoicing entity.`).option("--address-line2 <value>", `The second line of the address for the invoicing entity.`).option("--zip-code <value>", `The postal code for the invoicing entity's address.`).option("--state <value>", `The state or province of the invoicing entity.`).option("--city <value>", `The city of the invoicing entity.`).option("--country <value>", `The country in which the invoicing entity is registered. It cannot be changed after creation.`).option("--currency <value>", `The currency code that the invoicing entity operates in.`).option("--accounting-currency <value>", `The currency used for accounting purposes.`).option("--invoice-number-pattern <value>", `The pattern used for generating invoice numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--credit-note-number-pattern <value>", `The pattern used for generating credit note numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--document-number-pattern <value>", `The pattern used for generating document numbers. Available dynamic elements: number {number} (mandatory), year {YYYY}, month {MM} and day {DD}.`).option("--default-payment-delay <number>", `The default payment term in days.`).option("--invoice-grace-period-duration <number>", `The grace period duration in days.`).option("--invoice-payment-initiation-delay <number>", `The payment initiation delay in days for the invoices.`).option("--document-payment-initiation-delay <number>", `The payment initiation delay in days for the custom documents.`).option("--invoice-late-fees <value>", `The late fees applicable to the invoices.`).option("--invoice-footer <value>", `The footer text to be used in invoices.`).option("--document-footer <value>", `The footer text to be used in documents. If not specified, the invoice footer will be used.`).option("--logo-url <value>", `URL of the logo to be used in invoices.`).option("--favicon-url <value>", `URL of the logo to be used as favicon.`).option("--brand-color <value>", `Brand color to be used in invoices (hexadecimal color code).`).option("--forced-customer-type <value>", `Forces all customers created under this invoicing entity to have this type. Set to null to allow users to choose.`).option("--credit-note-wallet-refund-enabled", `When enabled and no \`refund_method\` is specified, credit note refunds default to the customer's wallet, including credit notes generated by subscription updates, cancellations, and transitions. An explicit \`refund_method\` always wins. Requires wallets to be enabled at the workspace level.`).option("--standalone-credit-note-creation-enabled", `Whether credit notes without an original invoice can be created under this invoicing entity.`).addHelpText("after", `
|
|
42112
42094
|
Examples:
|
|
42113
42095
|
hyperline invoicing-entities update-invoicing-entity --id <id>
|
|
42114
42096
|
hyperline invoicing-entities update-invoicing-entity --id <id> --name <name> --registration-number <registration_number>
|
|
@@ -42802,13 +42784,13 @@ Examples:
|
|
|
42802
42784
|
// build/commands/generated/quotes.js
|
|
42803
42785
|
function registerQuotesCommands(parent) {
|
|
42804
42786
|
const resource = parent.command("quotes").description("Manage quotes");
|
|
42805
|
-
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. When creating from a quote template, do not combine \`template_id\` with subscription overrides for dates, contract terms, products, phases, coupons, discounts, prices, or seats in this call: first create the quote from \`template_id\` so template terms and contract documents are copied, then call \`update_quote\` with the subscription payload.`).option("--status <value>", `
|
|
42787
|
+
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. When creating from a quote template, do not combine \`template_id\` with subscription overrides for dates, contract terms, products, phases, coupons, discounts, prices, or seats in this call: first create the quote from \`template_id\` so template terms and contract documents are copied, then call \`update_quote\` with the subscription payload. Discover product and price configuration IDs with \`get_catalog_context\`; validate the exact payload first with \`simulate_create_quote\` (identical schema, nothing persisted).`).option("--status <value>", `
|
|
42806
42788
|
Quote status.
|
|
42807
42789
|
|
|
42808
42790
|
- \`draft\`: The quote is a draft.
|
|
42809
42791
|
- \`approved\`: The quote is approved and ready to be sent to the customer.
|
|
42810
42792
|
- \`pending_signature\`: The quote is awaiting the customer's signature.
|
|
42811
|
-
`).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 <json>", `IDs of the customer custom properties required to be filled during the signature flow.`).option("--contract-clause-ids <json>", `IDs of the contract clauses used in the quote terms.`).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.
|
|
42793
|
+
`).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("--catalog-version-id <value>", `ID of a published catalog version to price every product of the quote from, instead of the live products catalog. A product's own \`catalog_version_id\` takes precedence, and explicit \`prices\` always win over both.`).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 <json>", `IDs of the customer custom properties required to be filled during the signature flow.`).option("--contract-clause-ids <json>", `IDs of the contract clauses used in the quote terms.`).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.
|
|
42812
42794
|
|
|
42813
42795
|
- \`all\`: Display all pricing tiers.
|
|
42814
42796
|
- \`matching\`: Only display the tiers used to compute the price based on quantity.
|
|
@@ -42832,6 +42814,8 @@ Examples:
|
|
|
42832
42814
|
args.customer_id = opts.customerId;
|
|
42833
42815
|
if (opts.invoicingEntityId !== void 0)
|
|
42834
42816
|
args.invoicing_entity_id = opts.invoicingEntityId;
|
|
42817
|
+
if (opts.catalogVersionId !== void 0)
|
|
42818
|
+
args.catalog_version_id = opts.catalogVersionId;
|
|
42835
42819
|
if (opts.comments !== void 0)
|
|
42836
42820
|
args.comments = opts.comments;
|
|
42837
42821
|
if (opts.terms !== void 0)
|
|
@@ -43098,7 +43082,7 @@ Examples:
|
|
|
43098
43082
|
queryParamKeys: []
|
|
43099
43083
|
});
|
|
43100
43084
|
});
|
|
43101
|
-
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. For quotes created from \`template_id\`, use this tool for subscription overrides such as dates, contract terms, products, phases, coupons, discounts, prices, seats, and subscription custom properties. Omit \`terms\`, \`comments\`, and \`contract_clause_ids\` unless deliberately overriding template content
|
|
43085
|
+
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. For quotes created from \`template_id\`, use this tool for subscription overrides such as dates, contract terms, products, phases, coupons, discounts, prices, seats, and subscription custom properties. Omit \`terms\`, \`comments\`, and \`contract_clause_ids\` unless deliberately overriding template content. Discover product and price configuration IDs with \`get_catalog_context\`.`).requiredOption("--id <value>", `id parameter`).option("--owner-email <value>", `Email address of the Hyperline user acting as the quote owner.`).option("--catalog-version-id <value>", `ID of a published catalog version to price every product of the quote from, instead of the live products catalog. A product's own \`catalog_version_id\` takes precedence, and explicit \`prices\` always win over both.`).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 <json>", `IDs of the customer custom properties required to be filled during the signature flow.`).option("--contract-clause-ids <json>", `IDs of the contract clauses used in the quote terms.`).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.
|
|
43102
43086
|
|
|
43103
43087
|
- \`all\`: Display all pricing tiers.
|
|
43104
43088
|
- \`matching\`: Only display the tiers used to compute the price based on quantity.
|
|
@@ -43106,7 +43090,7 @@ Examples:
|
|
|
43106
43090
|
`).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("--crm-opportunity-id <value>", `ID of the related opportunity/deal in the connected CRM.`).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 <json>", `Subscription configuration constituting the quote. When provided on a draft quote, it creates or replaces the draft subscription attached to the quote.`).option("--invoice <json>", `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", `
|
|
43107
43091
|
Examples:
|
|
43108
43092
|
hyperline quotes update --id <id>
|
|
43109
|
-
hyperline quotes update --id <id> --owner-email <owner_email> --
|
|
43093
|
+
hyperline quotes update --id <id> --owner-email <owner_email> --catalog-version-id <catalog_version_id>
|
|
43110
43094
|
hyperline quotes update --id <id> --output json`).action(async (opts) => {
|
|
43111
43095
|
const ctx = resource.parent?.opts()._ctx;
|
|
43112
43096
|
if (!ctx) {
|
|
@@ -43118,6 +43102,8 @@ Examples:
|
|
|
43118
43102
|
args.id = opts.id;
|
|
43119
43103
|
if (opts.ownerEmail !== void 0)
|
|
43120
43104
|
args.owner_email = opts.ownerEmail;
|
|
43105
|
+
if (opts.catalogVersionId !== void 0)
|
|
43106
|
+
args.catalog_version_id = opts.catalogVersionId;
|
|
43121
43107
|
if (opts.comments !== void 0)
|
|
43122
43108
|
args.comments = opts.comments;
|
|
43123
43109
|
if (opts.terms !== void 0)
|
|
@@ -43694,7 +43680,7 @@ Examples:
|
|
|
43694
43680
|
queryParamKeys: []
|
|
43695
43681
|
});
|
|
43696
43682
|
});
|
|
43697
|
-
resource.command("create").description(`Create a new subscription
|
|
43683
|
+
resource.command("create").description(`Create a new subscription. Requires \`customer_id\` plus one source: \`template_id\` (optionally with \`template_configuration_id\`) to instantiate a subscription template; flat \`products\` with a top-level \`activation_strategy\`; or explicit \`phases\`, where each phase needs \`activation_strategy\`, \`end_strategy\`, \`billing_date_setting\`, and \`products\` (each with \`id\`, usually a \`payment_interval\`). \`contract_terms\` requires both \`activation_strategy\` and \`end_strategy\`. Discover product and price configuration IDs with \`get_catalog_context\`; validate the exact payload first with \`simulate_create_subscription\` (identical schema, nothing persisted).`).requiredOption("--customer-id <value>", `ID of the customer.`).option("--activation-strategy <value>", `
|
|
43698
43684
|
Strategy used to activate the subscription.
|
|
43699
43685
|
|
|
43700
43686
|
- \`start_date\`: The subscription will become active on the specified start date. If the start date is in the past, it will be activated immediately.
|
|
@@ -43722,7 +43708,7 @@ Payment method strategy used to bill the subscription. By default, the current p
|
|
|
43722
43708
|
- \`current\`: Use the current default payment method of the customer.
|
|
43723
43709
|
- \`external\`: Manage the payments of the subscription outside of Hyperline.
|
|
43724
43710
|
`).option("--available-payment-method-types <json>", `Set the allowed types of payment methods for the customer. Only applies to the \`new\` payment method strategy.`).option("--billing-cycle-alignment <value>", `
|
|
43725
|
-
Alignment of product billing cycles. Only applies when creating a subscription from a plan.
|
|
43711
|
+
Alignment of product billing cycles. Only applies when creating a subscription from a plan. If omitted, the billing cycles alignment configured in the account subscription settings applies.
|
|
43726
43712
|
|
|
43727
43713
|
- \`calendar_period\`: The billing cycles of the products will be aligned on the calendar period, after the first period which will be invoiced taking into account the prorata of the first cycle compared to the product periodicity.
|
|
43728
43714
|
- \`anniversary\`: The billing cycles of the products will be aligned on the anniversary of the phase initial billing date.
|
|
@@ -43814,7 +43800,16 @@ Examples:
|
|
|
43814
43800
|
queryParamKeys: []
|
|
43815
43801
|
});
|
|
43816
43802
|
});
|
|
43817
|
-
resource.command("list").description(`List subscriptions with filters for activation_strategy, status, currency, plan_id, original_quote_id, integration_entity_id, customer_id, invoicing_entity_id, purchase_order, updated_at, custom_properties. Draft, voided, and
|
|
43803
|
+
resource.command("list").description(`List subscriptions with filters for activation_strategy, status, currency, plan_id, original_quote_id, integration_entity_id, customer_id, invoicing_entity_id, purchase_order, updated_at, custom_properties. Draft, voided, cancelled and archived excluded by default (status=all applies the same exclusion); status=any returns every status. Paginated with take/skip.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--activation-strategy <value>", `activation_strategy`).option("--activation-strategy.in <value>", `activation_strategy__in`).option("--status <value>", `
|
|
43804
|
+
Subscription status filter.
|
|
43805
|
+
|
|
43806
|
+
- \`active\`, \`pending\`, \`paused\`, \`errored\`, \`cancelled\`, \`draft\`, \`voided\`, \`archived\`: match that status.
|
|
43807
|
+
- \`inactive\`: shortcut for \`pending\` + \`paused\`.
|
|
43808
|
+
- \`all\`: every status except \`draft\`, \`voided\`, \`cancelled\` and \`archived\` \u2014 the same exclusion as omitting the filter.
|
|
43809
|
+
- \`any\`: every status, no exclusion.
|
|
43810
|
+
|
|
43811
|
+
Use \`status__in\` with comma-separated values to combine statuses. When the filter is omitted, \`draft\`, \`voided\`, \`cancelled\` and \`archived\` subscriptions are excluded.
|
|
43812
|
+
`).option("--status.in <value>", `Comma-separated list of subscription statuses to include. Same values as \`status\`.`).option("--currency <value>", `currency`).option("--currency.not <value>", `currency__not`).option("--currency.is-null <value>", `currency__isNull`).option("--currency.is-not-null <value>", `currency__isNotNull`).option("--currency.equals <value>", `currency__equals`).option("--currency.contains <value>", `currency__contains`).option("--currency.starts-with <value>", `currency__startsWith`).option("--currency.end-with <value>", `currency__endWith`).option("--plan-id <value>", `plan_id`).option("--plan-id.not <value>", `plan_id__not`).option("--plan-id.is-null <value>", `plan_id__isNull`).option("--plan-id.is-not-null <value>", `plan_id__isNotNull`).option("--plan-id.equals <value>", `plan_id__equals`).option("--plan-id.contains <value>", `plan_id__contains`).option("--plan-id.starts-with <value>", `plan_id__startsWith`).option("--plan-id.end-with <value>", `plan_id__endWith`).option("--original-quote-id <value>", `original_quote_id`).option("--original-quote-id.not <value>", `original_quote_id__not`).option("--original-quote-id.is-null <value>", `original_quote_id__isNull`).option("--original-quote-id.is-not-null <value>", `original_quote_id__isNotNull`).option("--original-quote-id.equals <value>", `original_quote_id__equals`).option("--original-quote-id.contains <value>", `original_quote_id__contains`).option("--original-quote-id.starts-with <value>", `original_quote_id__startsWith`).option("--original-quote-id.end-with <value>", `original_quote_id__endWith`).option("--customer-id <value>", `customer_id`).option("--customer-id.not <value>", `customer_id__not`).option("--customer-id.is-null <value>", `customer_id__isNull`).option("--customer-id.is-not-null <value>", `customer_id__isNotNull`).option("--customer-id.equals <value>", `customer_id__equals`).option("--customer-id.contains <value>", `customer_id__contains`).option("--customer-id.starts-with <value>", `customer_id__startsWith`).option("--customer-id.end-with <value>", `customer_id__endWith`).option("--invoicing-entity-id <value>", `invoicing_entity_id`).option("--purchase-order <value>", `purchase_order`).option("--purchase-order.not <value>", `purchase_order__not`).option("--purchase-order.is-null <value>", `purchase_order__isNull`).option("--purchase-order.is-not-null <value>", `purchase_order__isNotNull`).option("--purchase-order.equals <value>", `purchase_order__equals`).option("--purchase-order.contains <value>", `purchase_order__contains`).option("--purchase-order.starts-with <value>", `purchase_order__startsWith`).option("--purchase-order.end-with <value>", `purchase_order__endWith`).option("--custom-properties <value>", `custom_properties`).option("--invoice-drafts <value>", `invoice_drafts`).option("--integration-entity-id <value>", `integration_entity_id`).option("--updated-at <value>", `updated_at`).option("--updated-at.not <value>", `updated_at__not`).option("--updated-at.is-null <value>", `updated_at__isNull`).option("--updated-at.is-not-null <value>", `updated_at__isNotNull`).option("--updated-at.equals <value>", `updated_at__equals`).option("--updated-at.lt <value>", `updated_at__lt`).option("--updated-at.lte <value>", `updated_at__lte`).option("--updated-at.gt <value>", `updated_at__gt`).option("--updated-at.gte <value>", `updated_at__gte`).addHelpText("after", `
|
|
43818
43813
|
Examples:
|
|
43819
43814
|
hyperline subscriptions list
|
|
43820
43815
|
hyperline subscriptions list --take <take> --activation-strategy <activation_strategy>`).action(async (opts) => {
|
|
@@ -44049,7 +44044,7 @@ Examples:
|
|
|
44049
44044
|
queryParamKeys: []
|
|
44050
44045
|
});
|
|
44051
44046
|
});
|
|
44052
|
-
resource.command("update").description(`Comprehensive subscription update: modify fields, manage phases (add/update/delete pending phases), update products within phases, and manage coupons. Draft quote subscription configuration must be updated through
|
|
44047
|
+
resource.command("update").description(`Comprehensive subscription update: modify fields, manage phases (add/update/delete pending phases), update products within phases, and manage coupons. Pending phases are replaced by the provided array. Discover product and price configuration IDs with \`get_catalog_context\`. Draft quote subscription configuration must be updated through \`update_quote\`, not here.`).requiredOption("--id <value>", `id parameter`).option("--name <value>", `Subscription custom name.`).option("--purchase-order <value>", `Reference to the purchase order.`).option("--minimum-invoice-fee <number>", `Minimum fee applied to each invoice outside of one time payments.`).option("--crm-opportunity-id <value>", `ID of the related opportunity/deal in the connected CRM.`).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>", `
|
|
44053
44048
|
Defines when invoices are generated relative to the billing period.
|
|
44054
44049
|
|
|
44055
44050
|
- \`period_start\`: Invoices are generated at the start of the billing period.
|
|
@@ -44441,7 +44436,7 @@ Examples:
|
|
|
44441
44436
|
]
|
|
44442
44437
|
});
|
|
44443
44438
|
});
|
|
44444
|
-
resource.command("create-subscription-transition").description(`
|
|
44439
|
+
resource.command("create-subscription-transition").description(`Submit a transition from one subscription to another. The result may be pending approval, 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. 'pro_rata_separate_documents' issues a credit note for the current period (the amount invoiced when 'last_renewal', otherwise a prorated cancellation credit) 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' (the default) keeps the current billing cycle dates; the request is rejected when the phases share no product billing periodicity, as the cycle cannot then be preserved \u2014 use 'align_to_new_billing_cycle' in that case. 'align_to_new_billing_cycle' aligns 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 <json>", `The configuration of the subscription to transition to`).addHelpText("after", `
|
|
44445
44440
|
Examples:
|
|
44446
44441
|
hyperline subscriptions-transitions create-subscription-transition --source-subscription-id <source_subscription_id> --application-schedule <application_schedule> --target-subscription <target_subscription>
|
|
44447
44442
|
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>
|
|
@@ -44658,6 +44653,66 @@ Examples:
|
|
|
44658
44653
|
// build/commands/generated/transactions.js
|
|
44659
44654
|
function registerTransactionsCommands(parent) {
|
|
44660
44655
|
const resource = parent.command("transactions").description("Manage transactions");
|
|
44656
|
+
resource.command("create").description(`Record an offline payment, refund, or chargeback; this records money already moved and does not initiate a payment.`).requiredOption("--customer-id <value>", `ID of the customer linked to the transaction.`).requiredOption("--amount <number>", `Positive transaction amount in the customer's currency's smallest unit.`).requiredOption("--date <value>", `Date when the offline transaction settled.`).option("--payment-method-type <value>", `Offline payment method: bank transfer or external payment.`).option("--bank-account-id <value>", `Bank account for a transfer, in the customer's currency; not allowed for external payments.`).requiredOption("--type <value>", `Type of offline transaction to record.`).option("--reference <value>", `Optional reference identifying the offline payment.`).option("--original-transaction-id <value>", `Original payment transaction ID for a refund or chargeback.`).addHelpText("after", `
|
|
44657
|
+
Examples:
|
|
44658
|
+
hyperline transactions create --customer-id <customer_id> --amount <amount> --date <date> --type <type>
|
|
44659
|
+
hyperline transactions create --customer-id <customer_id> --amount <amount> --date <date> --type <type> --payment-method-type <payment_method_type> --bank-account-id <bank_account_id>
|
|
44660
|
+
hyperline transactions create --customer-id <customer_id> --amount <amount> --date <date> --type <type> --output json`).action(async (opts) => {
|
|
44661
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
44662
|
+
if (!ctx) {
|
|
44663
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
44664
|
+
process.exit(1);
|
|
44665
|
+
}
|
|
44666
|
+
const args = {};
|
|
44667
|
+
if (opts.customerId !== void 0)
|
|
44668
|
+
args.customer_id = opts.customerId;
|
|
44669
|
+
if (opts.date !== void 0)
|
|
44670
|
+
args.date = opts.date;
|
|
44671
|
+
if (opts.paymentMethodType !== void 0)
|
|
44672
|
+
args.payment_method_type = opts.paymentMethodType;
|
|
44673
|
+
if (opts.bankAccountId !== void 0)
|
|
44674
|
+
args.bank_account_id = opts.bankAccountId;
|
|
44675
|
+
if (opts.type !== void 0)
|
|
44676
|
+
args.type = opts.type;
|
|
44677
|
+
if (opts.reference !== void 0)
|
|
44678
|
+
args.reference = opts.reference;
|
|
44679
|
+
if (opts.originalTransactionId !== void 0)
|
|
44680
|
+
args.original_transaction_id = opts.originalTransactionId;
|
|
44681
|
+
if (opts.amount !== void 0)
|
|
44682
|
+
args.amount = Number(opts.amount);
|
|
44683
|
+
await ctx.execute({
|
|
44684
|
+
method: "POST",
|
|
44685
|
+
path: "/v1/transactions",
|
|
44686
|
+
args,
|
|
44687
|
+
queryParamKeys: []
|
|
44688
|
+
});
|
|
44689
|
+
});
|
|
44690
|
+
resource.command("delete").description(`Delete an unallocated offline transaction with no wallet funding or dependent transactions; this does not reverse a payment.`).requiredOption("--id <value>", `id parameter`).option("--yes", "Skip confirmation").addHelpText("after", `
|
|
44691
|
+
Examples:
|
|
44692
|
+
hyperline transactions delete --id <id>
|
|
44693
|
+
hyperline transactions delete --id <id> --output json`).action(async (opts) => {
|
|
44694
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
44695
|
+
if (!ctx) {
|
|
44696
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
44697
|
+
process.exit(1);
|
|
44698
|
+
}
|
|
44699
|
+
const args = {};
|
|
44700
|
+
if (opts.id !== void 0)
|
|
44701
|
+
args.id = opts.id;
|
|
44702
|
+
if (!opts.yes) {
|
|
44703
|
+
const confirmed = await confirmPrompt("Are you sure? Pass --yes to skip. [y/N] ");
|
|
44704
|
+
if (!confirmed) {
|
|
44705
|
+
process.stdout.write("Aborted.\n");
|
|
44706
|
+
return;
|
|
44707
|
+
}
|
|
44708
|
+
}
|
|
44709
|
+
await ctx.execute({
|
|
44710
|
+
method: "DELETE",
|
|
44711
|
+
path: "/v1/transactions/{id}",
|
|
44712
|
+
args,
|
|
44713
|
+
queryParamKeys: []
|
|
44714
|
+
});
|
|
44715
|
+
});
|
|
44661
44716
|
resource.command("list").description(`List transactions across all invoices, including transactions without an invoice allocation. Paginated with take/skip.`).option("--take <number>", `take`).option("--skip <number>", `skip`).addHelpText("after", `
|
|
44662
44717
|
Examples:
|
|
44663
44718
|
hyperline transactions list
|
|
@@ -44878,7 +44933,7 @@ Examples:
|
|
|
44878
44933
|
queryParamKeys: []
|
|
44879
44934
|
});
|
|
44880
44935
|
});
|
|
44881
|
-
resource.command("load").description(`Add
|
|
44936
|
+
resource.command("load").description(`Add free credits, load selected line items from a paid invoice, apply unallocated funds from an existing payment transaction, or record a new paid transaction.`).requiredOption("--id <value>", `id parameter`).option("--type <value>", `Wallet load type. Use \`paid\` to load paid invoice line items, apply an existing payment transaction, or record a new one, 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("--transaction-id <value>", `Existing payment transaction ID whose unallocated amount will be loaded onto the wallet.`).option("--invoice-id <value>", `Paid invoice ID whose selected line items will be loaded onto the wallet.`).option("--invoice-line-item-ids <json>", `IDs of paid invoice line items whose combined amount will be loaded onto the wallet.`).option("--date <value>", `Date of the new offline payment transaction recorded for the wallet load. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.`).option("--bank-account-id <value>", `Bank account ID to use when recording a new paid wallet load by bank transfer.`).option("--reference <value>", `Reference stored on the new payment transaction for a paid wallet load.`).addHelpText("after", `
|
|
44882
44937
|
Examples:
|
|
44883
44938
|
hyperline wallets load --id <id>
|
|
44884
44939
|
hyperline wallets load --id <id> --type <type> --amount <amount>
|
|
@@ -44897,12 +44952,20 @@ Examples:
|
|
|
44897
44952
|
args.comment = opts.comment;
|
|
44898
44953
|
if (opts.documentStatus !== void 0)
|
|
44899
44954
|
args.document_status = opts.documentStatus;
|
|
44955
|
+
if (opts.transactionId !== void 0)
|
|
44956
|
+
args.transaction_id = opts.transactionId;
|
|
44957
|
+
if (opts.invoiceId !== void 0)
|
|
44958
|
+
args.invoice_id = opts.invoiceId;
|
|
44959
|
+
if (opts.date !== void 0)
|
|
44960
|
+
args.date = opts.date;
|
|
44900
44961
|
if (opts.bankAccountId !== void 0)
|
|
44901
44962
|
args.bank_account_id = opts.bankAccountId;
|
|
44902
44963
|
if (opts.reference !== void 0)
|
|
44903
44964
|
args.reference = opts.reference;
|
|
44904
44965
|
if (opts.amount !== void 0)
|
|
44905
44966
|
args.amount = Number(opts.amount);
|
|
44967
|
+
if (opts.invoiceLineItemIds !== void 0)
|
|
44968
|
+
args.invoice_line_item_ids = JSON.parse(opts.invoiceLineItemIds);
|
|
44906
44969
|
await ctx.execute({
|
|
44907
44970
|
method: "POST",
|
|
44908
44971
|
path: "/v1/wallets/{id}/load",
|
|
@@ -61120,6 +61183,12 @@ var languages = [
|
|
|
61120
61183
|
{ id: "en", name: "English", isoCode: "en", locale: "en-US" },
|
|
61121
61184
|
{ id: "de", name: "German", isoCode: "de", locale: "de-DE" },
|
|
61122
61185
|
{ id: "it", name: "Italian", isoCode: "it", locale: "it-IT" },
|
|
61186
|
+
{
|
|
61187
|
+
id: "lt",
|
|
61188
|
+
name: "Lithuanian",
|
|
61189
|
+
isoCode: "lt",
|
|
61190
|
+
locale: "lt-LT"
|
|
61191
|
+
},
|
|
61123
61192
|
{ id: "nl", name: "Dutch", isoCode: "nl", locale: "nl-NL" },
|
|
61124
61193
|
{ id: "es", name: "Spanish", isoCode: "es", locale: "es-ES" },
|
|
61125
61194
|
{ id: "pt", name: "Portuguese", isoCode: "pt", locale: "pt-PT" },
|
|
@@ -61152,6 +61221,7 @@ var de = {
|
|
|
61152
61221
|
"invoices.prorata.paymentForItemFullPeriod": "Zahlung f\xFCr",
|
|
61153
61222
|
"invoices.prorata.refundForItem": "Anteilig erstatteter Betrag f\xFCr",
|
|
61154
61223
|
"invoices.prorata.refundForItemFullPeriod": "Erstattung f\xFCr",
|
|
61224
|
+
"wallets.expiredBalanceInvoiceLineName": "{{walletName}} \u2013 abgelaufenes Guthaben",
|
|
61155
61225
|
"subscriptions.closingChargeName": "Abschlussgeb\xFChr f\xFCr das Abonnement",
|
|
61156
61226
|
"subscriptions.correction": "Vorperiodische Anpassung",
|
|
61157
61227
|
"subscriptions.updates.addCoupon": "Gutschein hinzuf\xFCgen {{couponName}}",
|
|
@@ -61183,6 +61253,7 @@ var en = {
|
|
|
61183
61253
|
"invoices.prorata.paymentForItemFullPeriod": "Payment for",
|
|
61184
61254
|
"invoices.prorata.refundForItem": "Prorated refund for",
|
|
61185
61255
|
"invoices.prorata.refundForItemFullPeriod": "Refund for",
|
|
61256
|
+
"wallets.expiredBalanceInvoiceLineName": "{{walletName}} \u2013 expired balance",
|
|
61186
61257
|
"subscriptions.closingChargeName": "Closing fee for subscription",
|
|
61187
61258
|
"subscriptions.correction": "Adjustment previous period",
|
|
61188
61259
|
"subscriptions.updates.addCoupon": "Add coupon {{couponName}}",
|
|
@@ -61242,6 +61313,7 @@ var es = {
|
|
|
61242
61313
|
"invoices.prorata.paymentForItemFullPeriod": "Pago por",
|
|
61243
61314
|
"invoices.prorata.refundForItem": "Reembolso prorrateado por",
|
|
61244
61315
|
"invoices.prorata.refundForItemFullPeriod": "Reembolso por",
|
|
61316
|
+
"wallets.expiredBalanceInvoiceLineName": "{{walletName}} \u2013 saldo caducado",
|
|
61245
61317
|
"subscriptions.closingChargeName": "Cargo por cierre de suscripci\xF3n",
|
|
61246
61318
|
"subscriptions.correction": "Ajuste del periodo anterior",
|
|
61247
61319
|
"subscriptions.updates.addCoupon": "A\xF1adir cup\xF3n {{couponName}}",
|
|
@@ -61287,6 +61359,7 @@ var fr = {
|
|
|
61287
61359
|
"invoices.prorata.paymentForItemFullPeriod": "Paiement pour",
|
|
61288
61360
|
"invoices.prorata.refundForItem": "Remboursement au prorata pour",
|
|
61289
61361
|
"invoices.prorata.refundForItemFullPeriod": "Remboursement pour",
|
|
61362
|
+
"wallets.expiredBalanceInvoiceLineName": "{{walletName}} \u2013 solde expir\xE9",
|
|
61290
61363
|
"subscriptions.closingChargeName": "Frais de cl\xF4ture pour abonnement",
|
|
61291
61364
|
"subscriptions.correction": "Ajustement p\xE9riode pr\xE9c\xE9dente",
|
|
61292
61365
|
"subscriptions.updates.addCoupon": "Ajout du coupon {{couponName}}",
|
|
@@ -61332,6 +61405,7 @@ var it = {
|
|
|
61332
61405
|
"invoices.prorata.paymentForItemFullPeriod": "Pagamento per",
|
|
61333
61406
|
"invoices.prorata.refundForItem": "Rimborso proporzionale per",
|
|
61334
61407
|
"invoices.prorata.refundForItemFullPeriod": "Rimborso per",
|
|
61408
|
+
"wallets.expiredBalanceInvoiceLineName": "{{walletName}} \u2013 saldo scaduto",
|
|
61335
61409
|
"subscriptions.closingChargeName": "Costo di chiusura per abbonamento",
|
|
61336
61410
|
"subscriptions.correction": "Correzione periodo precedente",
|
|
61337
61411
|
"subscriptions.updates.addCoupon": "Aggiungi coupon {{couponName}}",
|
|
@@ -61351,6 +61425,52 @@ var it = {
|
|
|
61351
61425
|
"subscriptions.updates.updatePrices": "Aggiorna prezzi per {{productName}}"
|
|
61352
61426
|
};
|
|
61353
61427
|
|
|
61428
|
+
// ../hyperline-i18n/build/locales/lt.js
|
|
61429
|
+
var lt = {
|
|
61430
|
+
"creditNotes.refundChargeName": "S\u0105skaitos fakt\u016Bros gr\u0105\u017Einimas",
|
|
61431
|
+
"credits.bundleOf": "{{productName}} \u2013 {{creditCount}} kredit\u0173 paketas",
|
|
61432
|
+
"credits.unitsOf": "{{productName}} \u2013 {{creditCount}} kredit\u0173",
|
|
61433
|
+
"invoices.outstandingProduct.description": "Neapmok\u0117ta {{date}} i\u0161ra\u0161ytos s\u0105skaitos fakt\u016Bros{{invoiceNumber}} suma",
|
|
61434
|
+
"invoices.outstandingProduct.descriptionPeriod": "Neapmok\u0117ta s\u0105skaitos fakt\u016Bros{{invoiceNumber}} suma u\u017E laikotarp\u012F nuo {{periodStart}} iki {{periodEnd}}",
|
|
61435
|
+
"invoices.outstandingProduct.name": "Neapmok\u0117tas likutis",
|
|
61436
|
+
"invoices.prorata.paymentForItem": "Proporcingas mok\u0117jimas u\u017E",
|
|
61437
|
+
"invoices.prorata.paymentForItemFullPeriod": "Mok\u0117jimas u\u017E",
|
|
61438
|
+
"invoices.prorata.refundForItem": "Proporcingas gr\u0105\u017Einimas u\u017E",
|
|
61439
|
+
"invoices.prorata.refundForItemFullPeriod": "Gr\u0105\u017Einimas u\u017E",
|
|
61440
|
+
"wallets.expiredBalanceInvoiceLineName": "{{walletName}} \u2013 nebegaliojantis likutis",
|
|
61441
|
+
"subscriptions.closingChargeName": "Prenumeratos u\u017Ebaigimo mokestis",
|
|
61442
|
+
"subscriptions.correction": "Ankstesnio laikotarpio koregavimas",
|
|
61443
|
+
"subscriptions.updates.addCoupon": "Prid\u0117ti kupon\u0105 {{couponName}}",
|
|
61444
|
+
"subscriptions.updates.addProduct": "Prid\u0117ti {{productName}}",
|
|
61445
|
+
"subscriptions.updates.removeCoupon": "Pa\u0161alinti kupon\u0105 {{couponName}}",
|
|
61446
|
+
"subscriptions.updates.removeProduct": "Pa\u0161alinti {{productName}}",
|
|
61447
|
+
"subscriptions.updates.unit": "vnt.",
|
|
61448
|
+
"subscriptions.updates.updatePrices": "Atnaujinti {{productName}} kainas",
|
|
61449
|
+
"subscriptions.updates.updateCount": "Atnaujinti {{productName}} kiek\u012F ({{previousCount}} \u2192 {{newCount}} {{unit}})",
|
|
61450
|
+
"subscriptions.updates.updateCount.description.prorata.committed.invoiced": "Pritaikytas minimalus \u012Fsipareigotas {{committedCount}} kiekis.",
|
|
61451
|
+
"subscriptions.updates.updateCount.description.prorata.committed.not_invoiced": "Proporcingam laikotarpiui nei\u0161ra\u0161yta {{amount}} suma (minimalus \u012Fsipareigotas kiekis \u2013 {{committedCount}})",
|
|
61452
|
+
"subscriptions.updates.updateCount.description.prorata.not_committed.invoiced": "U\u017E \u0161i\u0105 eilut\u0119 proporcingam laikotarpiui s\u0105skaita fakt\u016Bra i\u0161ra\u0161yta",
|
|
61453
|
+
"subscriptions.updates.updateCount.description.prorata.not_committed.not_invoiced": "Proporcingam laikotarpiui nei\u0161ra\u0161yta {{amount}} suma",
|
|
61454
|
+
"subscriptions.updates.updateCount.description.full.committed.invoiced": "Visam laikotarpiui pritaikytas minimalus \u012Fsipareigotas {{committedCount}} kiekis.",
|
|
61455
|
+
"subscriptions.updates.updateCount.description.full.committed.not_invoiced": "Visam laikotarpiui nei\u0161ra\u0161yta {{amount}} suma (minimalus \u012Fsipareigotas kiekis \u2013 {{committedCount}})",
|
|
61456
|
+
"subscriptions.updates.updateCount.description.full.not_committed.invoiced": "U\u017E \u0161i\u0105 eilut\u0119 visam laikotarpiui s\u0105skaita fakt\u016Bra i\u0161ra\u0161yta",
|
|
61457
|
+
"subscriptions.updates.updateCount.description.full.not_committed.not_invoiced": "Visam laikotarpiui nei\u0161ra\u0161yta {{amount}} suma",
|
|
61458
|
+
"accounting.invoicePosted.entryDescription": "I\u0161ra\u0161ytos s\u0105skaitos fakt\u016Bros {{invoiceId}} registravimo \u012Fra\u0161as",
|
|
61459
|
+
"accounting.transactionSettled.entryDescription": "S\u0105skaitos fakt\u016Bros {{invoiceId}} mok\u0117jimo sudengimas",
|
|
61460
|
+
"accounting.transactionRefunded.entryDescription": "S\u0105skaitos fakt\u016Bros {{invoiceId}} gr\u0105\u017Einimas",
|
|
61461
|
+
"accounting.creditNotePosted.entryDescription": "Kreditin\u0117 s\u0105skaita {{creditNoteId}} s\u0105skaitai fakt\u016Brai {{invoiceId}}",
|
|
61462
|
+
"accounting.standaloneCreditNotePosted.entryDescription": "Kreditin\u0117 s\u0105skaita {{creditNoteId}}",
|
|
61463
|
+
"accounting.revrec.entryDescription": "Pajam\u0173 pripa\u017Einimas pagal grafik\u0105 {{scheduleId}}, laikotarpis {{periodStart}}\u2013{{periodEnd}}",
|
|
61464
|
+
"accounting.revrec.debitLineDescription": "Atid\u0117t\u0173j\u0173 pajam\u0173 suma\u017Einimas \u2013 grafikas {{scheduleId}}, laikotarpis {{periodDate}}",
|
|
61465
|
+
"accounting.revrec.creditLineDescription": "Pajam\u0173 pripa\u017Einimas \u2013 grafikas {{scheduleId}}, laikotarpis {{periodDate}}",
|
|
61466
|
+
"accounting.revrec.discountDebitLineDescription": "Atid\u0117tosios nuolaidos suma\u017Einimas \u2013 grafikas {{scheduleId}}, laikotarpis {{periodDate}}",
|
|
61467
|
+
"accounting.revrec.discountCreditLineDescription": "Pajamas ma\u017Einan\u010Dios sumos (nuolaidos) pripa\u017Einimas \u2013 grafikas {{scheduleId}}, laikotarpis {{periodDate}}",
|
|
61468
|
+
"accounting.revrec.closedPeriodFallbackNote": " (u\u017Eregistruota kitame atvirame laikotarpyje, nes tikslinis apskaitos laikotarpis u\u017Edarytas; pradin\u0117 data {{originalDate}})",
|
|
61469
|
+
"einvoicing.paymentProcessed": "Mok\u0117jimas apdorotas",
|
|
61470
|
+
"einvoicing.paymentReceived": "Mok\u0117jimas gautas",
|
|
61471
|
+
"einvoicing.paymentFromWallet": "Mok\u0117jimas i\u0161 pinigin\u0117s"
|
|
61472
|
+
};
|
|
61473
|
+
|
|
61354
61474
|
// ../hyperline-i18n/build/locales/nl.js
|
|
61355
61475
|
var nl = {
|
|
61356
61476
|
"accounting.invoicePosted.entryDescription": "Boekingsregel voor factuur {{invoiceId}}",
|
|
@@ -61377,6 +61497,7 @@ var nl = {
|
|
|
61377
61497
|
"invoices.prorata.paymentForItemFullPeriod": "Betaling voor",
|
|
61378
61498
|
"invoices.prorata.refundForItem": "Gedeeltelijke terugbetaling voor",
|
|
61379
61499
|
"invoices.prorata.refundForItemFullPeriod": "Terugbetaling voor",
|
|
61500
|
+
"wallets.expiredBalanceInvoiceLineName": "{{walletName}} \u2013 verlopen saldo",
|
|
61380
61501
|
"subscriptions.closingChargeName": "Afsluitkosten voor abonnement",
|
|
61381
61502
|
"subscriptions.correction": "Aanpassing vorige periode",
|
|
61382
61503
|
"subscriptions.updates.addCoupon": "Coupon toevoegen {{couponName}}",
|
|
@@ -61422,6 +61543,7 @@ var pl = {
|
|
|
61422
61543
|
"invoices.prorata.paymentForItemFullPeriod": "P\u0142atno\u015B\u0107 za",
|
|
61423
61544
|
"invoices.prorata.refundForItem": "Zwrot proporcjonalny za",
|
|
61424
61545
|
"invoices.prorata.refundForItemFullPeriod": "Zwrot za",
|
|
61546
|
+
"wallets.expiredBalanceInvoiceLineName": "{{walletName}} \u2013 wygas\u0142e saldo",
|
|
61425
61547
|
"subscriptions.closingChargeName": "Op\u0142ata za zamkni\u0119cie subskrypcji",
|
|
61426
61548
|
"subscriptions.correction": "Korekta poprzedniego okresu",
|
|
61427
61549
|
"subscriptions.updates.addCoupon": "Dodaj kupon {{couponName}}",
|
|
@@ -61467,6 +61589,7 @@ var pt = {
|
|
|
61467
61589
|
"invoices.prorata.paymentForItemFullPeriod": "Pagamento por",
|
|
61468
61590
|
"invoices.prorata.refundForItem": "Reembolso proporcional por",
|
|
61469
61591
|
"invoices.prorata.refundForItemFullPeriod": "Reembolso por",
|
|
61592
|
+
"wallets.expiredBalanceInvoiceLineName": "{{walletName}} \u2013 saldo expirado",
|
|
61470
61593
|
"subscriptions.closingChargeName": "Taxa de encerramento da assinatura",
|
|
61471
61594
|
"subscriptions.correction": "Ajuste do per\xEDodo anterior",
|
|
61472
61595
|
"subscriptions.updates.addCoupon": "Adicionar cupom {{couponName}}",
|
|
@@ -61493,6 +61616,7 @@ var translations = {
|
|
|
61493
61616
|
fr,
|
|
61494
61617
|
de,
|
|
61495
61618
|
it,
|
|
61619
|
+
lt,
|
|
61496
61620
|
nl,
|
|
61497
61621
|
es,
|
|
61498
61622
|
pt,
|
|
@@ -64418,12 +64542,6 @@ var defaultToolOutputSchema = {
|
|
|
64418
64542
|
result: external_exports.unknown()
|
|
64419
64543
|
};
|
|
64420
64544
|
|
|
64421
|
-
// ../hyperline-mcp/build/session/sessionKey.js
|
|
64422
|
-
import { createHmac } from "node:crypto";
|
|
64423
|
-
|
|
64424
|
-
// ../hyperline-mcp/build/session/sessionManager.js
|
|
64425
|
-
import { LRUCache } from "lru-cache";
|
|
64426
|
-
|
|
64427
64545
|
// build/output.js
|
|
64428
64546
|
function formatOutput({ data, format: format2 }) {
|
|
64429
64547
|
if (format2 === "json") {
|
package/dist/external-deps.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperline/cli",
|
|
3
|
-
"version": "0.1.0-build.1.
|
|
3
|
+
"version": "0.1.0-build.1.2139bed",
|
|
4
4
|
"description": "Agent-first CLI for Hyperline API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"helmet": "6.2.0",
|
|
38
38
|
"i18next": "22.5.1",
|
|
39
39
|
"json-prune": "1.1.0",
|
|
40
|
-
"lru-cache": "11.0.2",
|
|
41
40
|
"multer": "1.4.5-lts.1",
|
|
42
41
|
"rate-limiter-flexible": "11.0.0",
|
|
43
42
|
"stacktrace-parser": "0.1.10",
|