@hyperline/cli 0.1.0-build.1.9814f24 → 0.1.0-build.1.9b2b9b3
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 +231 -26
- package/package.json +1 -1
|
@@ -38762,7 +38762,7 @@ How customer invoices are issued from the parent organisation.
|
|
|
38762
38762
|
- \`none\`: Invoices will keep being issued from this customer.
|
|
38763
38763
|
- \`every_invoice\`: Customer invoices will be issued from the organisation individually.
|
|
38764
38764
|
- \`concat\`: Customer invoices will be grouped into a global parent invoice at a regular schedule (configured on the organisation).
|
|
38765
|
-
`).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("--invoice-reminders-enabled <value>", `Indicates if invoice reminders are enabled for the customer.`).option("--price-book-id <value>", `Default price book ID assigned to the customer.`).addHelpText("after", `
|
|
38765
|
+
`).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("--invoice-reminders-enabled <value>", `Indicates if invoice reminders are enabled for the customer.`).option("--price-book-id <value>", `Default price book ID assigned to the customer.`).option("--owner-id <value>", `ID of the Hyperline user responsible for this customer and targeted by customer agent notifications.`).option("--follower-ids <value>", `IDs of Hyperline users following this customer.`).addHelpText("after", `
|
|
38766
38766
|
Examples:
|
|
38767
38767
|
hyperline customers create-customer
|
|
38768
38768
|
hyperline customers create-customer --name <name> --type <type>
|
|
@@ -38819,6 +38819,10 @@ Examples:
|
|
|
38819
38819
|
args.invoice_reminders_enabled = opts.invoiceRemindersEnabled;
|
|
38820
38820
|
if (opts.priceBookId !== void 0)
|
|
38821
38821
|
args.price_book_id = opts.priceBookId;
|
|
38822
|
+
if (opts.ownerId !== void 0)
|
|
38823
|
+
args.owner_id = opts.ownerId;
|
|
38824
|
+
if (opts.followerIds !== void 0)
|
|
38825
|
+
args.follower_ids = opts.followerIds;
|
|
38822
38826
|
if (opts.taxRateCustom !== void 0)
|
|
38823
38827
|
args.tax_rate_custom = Number(opts.taxRateCustom);
|
|
38824
38828
|
if (opts.customPaymentDelay !== void 0)
|
|
@@ -38887,7 +38891,7 @@ How customer invoices are issued from the parent organisation.
|
|
|
38887
38891
|
- \`none\`: Invoices will keep being issued from this customer.
|
|
38888
38892
|
- \`every_invoice\`: Customer invoices will be issued from the organisation individually.
|
|
38889
38893
|
- \`concat\`: Customer invoices will be grouped into a global parent invoice at a regular schedule (configured on the organisation).
|
|
38890
|
-
`).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("--invoice-reminders-enabled <value>", `Indicates if invoice reminders are enabled for the customer.`).option("--price-book-id <value>", `Default price book ID assigned to the customer.`).addHelpText("after", `
|
|
38894
|
+
`).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("--invoice-reminders-enabled <value>", `Indicates if invoice reminders are enabled for the customer.`).option("--price-book-id <value>", `Default price book ID assigned to the customer.`).option("--owner-id <value>", `ID of the Hyperline user responsible for this customer and targeted by customer agent notifications.`).option("--follower-ids <value>", `IDs of Hyperline users following this customer.`).addHelpText("after", `
|
|
38891
38895
|
Examples:
|
|
38892
38896
|
hyperline customers update --id <id>
|
|
38893
38897
|
hyperline customers update --id <id> --name <name> --type <type>
|
|
@@ -38948,6 +38952,10 @@ Examples:
|
|
|
38948
38952
|
args.invoice_reminders_enabled = opts.invoiceRemindersEnabled;
|
|
38949
38953
|
if (opts.priceBookId !== void 0)
|
|
38950
38954
|
args.price_book_id = opts.priceBookId;
|
|
38955
|
+
if (opts.ownerId !== void 0)
|
|
38956
|
+
args.owner_id = opts.ownerId;
|
|
38957
|
+
if (opts.followerIds !== void 0)
|
|
38958
|
+
args.follower_ids = opts.followerIds;
|
|
38951
38959
|
if (opts.taxRateCustom !== void 0)
|
|
38952
38960
|
args.tax_rate_custom = Number(opts.taxRateCustom);
|
|
38953
38961
|
if (opts.customPaymentDelay !== void 0)
|
|
@@ -40603,7 +40611,7 @@ Examples:
|
|
|
40603
40611
|
queryParamKeys: []
|
|
40604
40612
|
});
|
|
40605
40613
|
});
|
|
40606
|
-
resource.command("delete-invoice-transaction").description(`Delete a scheduled transaction from an invoice
|
|
40614
|
+
resource.command("delete-invoice-transaction").description(`Delete a scheduled transaction or wallet debit from an invoice.`).requiredOption("--id <value>", `id parameter`).requiredOption("--transaction-id <value>", `transactionId parameter`).option("--yes", "Skip confirmation").addHelpText("after", `
|
|
40607
40615
|
Examples:
|
|
40608
40616
|
hyperline invoices-transactions delete-invoice-transaction --id <id> --transaction-id <transactionId>
|
|
40609
40617
|
hyperline invoices-transactions delete-invoice-transaction --id <id> --transaction-id <transactionId> --output json`).action(async (opts) => {
|
|
@@ -40675,7 +40683,7 @@ Examples:
|
|
|
40675
40683
|
queryParamKeys: []
|
|
40676
40684
|
});
|
|
40677
40685
|
});
|
|
40678
|
-
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("--
|
|
40686
|
+
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 for invoices under this invoicing entity. The default applies only when \`refund_method\` is omitted on \`POST /v1/invoices/{id}/credit-notes\`; an explicit \`refund_method\` always wins. Requires wallets to be enabled at the workspace level.`).addHelpText("after", `
|
|
40679
40687
|
Examples:
|
|
40680
40688
|
hyperline invoicing-entities create-invoicing-entity --name <name> --country <country> --currency <currency> --accounting-currency <accounting_currency>
|
|
40681
40689
|
hyperline invoicing-entities create-invoicing-entity --name <name> --country <country> --currency <currency> --accounting-currency <accounting_currency> --is-default --trade-name <trade_name>
|
|
@@ -40754,8 +40762,6 @@ Examples:
|
|
|
40754
40762
|
args.document_payment_initiation_delay = Number(opts.documentPaymentInitiationDelay);
|
|
40755
40763
|
if (opts.isDefault !== void 0)
|
|
40756
40764
|
args.is_default = true;
|
|
40757
|
-
if (opts.taxIdEnforced !== void 0)
|
|
40758
|
-
args.tax_id_enforced = true;
|
|
40759
40765
|
if (opts.creditNoteWalletRefundEnabled !== void 0)
|
|
40760
40766
|
args.credit_note_wallet_refund_enabled = true;
|
|
40761
40767
|
await ctx.execute({
|
|
@@ -40765,7 +40771,7 @@ Examples:
|
|
|
40765
40771
|
queryParamKeys: []
|
|
40766
40772
|
});
|
|
40767
40773
|
});
|
|
40768
|
-
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("--
|
|
40774
|
+
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 for invoices under this invoicing entity. The default applies only when \`refund_method\` is omitted on \`POST /v1/invoices/{id}/credit-notes\`; an explicit \`refund_method\` always wins. Requires wallets to be enabled at the workspace level.`).addHelpText("after", `
|
|
40769
40775
|
Examples:
|
|
40770
40776
|
hyperline invoicing-entities update-invoicing-entity --id <id>
|
|
40771
40777
|
hyperline invoicing-entities update-invoicing-entity --id <id> --name <name> --registration-number <registration_number>
|
|
@@ -40834,8 +40840,6 @@ Examples:
|
|
|
40834
40840
|
args.invoice_payment_initiation_delay = Number(opts.invoicePaymentInitiationDelay);
|
|
40835
40841
|
if (opts.documentPaymentInitiationDelay !== void 0)
|
|
40836
40842
|
args.document_payment_initiation_delay = Number(opts.documentPaymentInitiationDelay);
|
|
40837
|
-
if (opts.taxIdEnforced !== void 0)
|
|
40838
|
-
args.tax_id_enforced = true;
|
|
40839
40843
|
if (opts.isDefault !== void 0)
|
|
40840
40844
|
args.is_default = true;
|
|
40841
40845
|
if (opts.creditNoteWalletRefundEnabled !== void 0)
|
|
@@ -41408,13 +41412,13 @@ Examples:
|
|
|
41408
41412
|
// build/commands/generated/quotes.js
|
|
41409
41413
|
function registerQuotesCommands(parent) {
|
|
41410
41414
|
const resource = parent.command("quotes").description("Manage quotes");
|
|
41411
|
-
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>", `
|
|
41415
|
+
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>", `
|
|
41412
41416
|
Quote status.
|
|
41413
41417
|
|
|
41414
41418
|
- \`draft\`: The quote is a draft.
|
|
41415
41419
|
- \`approved\`: The quote is approved and ready to be sent to the customer.
|
|
41416
41420
|
- \`pending_signature\`: The quote is awaiting the customer's signature.
|
|
41417
|
-
`).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.
|
|
41421
|
+
`).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("--contract-clause-ids <value>", `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.
|
|
41418
41422
|
|
|
41419
41423
|
- \`all\`: Display all pricing tiers.
|
|
41420
41424
|
- \`matching\`: Only display the tiers used to compute the price based on quantity.
|
|
@@ -41446,6 +41450,8 @@ Examples:
|
|
|
41446
41450
|
args.collect_payment_details = opts.collectPaymentDetails;
|
|
41447
41451
|
if (opts.collectCustomPropertyIds !== void 0)
|
|
41448
41452
|
args.collect_custom_property_ids = opts.collectCustomPropertyIds;
|
|
41453
|
+
if (opts.contractClauseIds !== void 0)
|
|
41454
|
+
args.contract_clause_ids = opts.contractClauseIds;
|
|
41449
41455
|
if (opts.requireTaxId !== void 0)
|
|
41450
41456
|
args.require_tax_id = opts.requireTaxId;
|
|
41451
41457
|
if (opts.displayQuoteValue !== void 0)
|
|
@@ -41702,7 +41708,7 @@ Examples:
|
|
|
41702
41708
|
queryParamKeys: []
|
|
41703
41709
|
});
|
|
41704
41710
|
});
|
|
41705
|
-
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.
|
|
41711
|
+
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.`).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("--contract-clause-ids <value>", `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.
|
|
41706
41712
|
|
|
41707
41713
|
- \`all\`: Display all pricing tiers.
|
|
41708
41714
|
- \`matching\`: Only display the tiers used to compute the price based on quantity.
|
|
@@ -41730,6 +41736,8 @@ Examples:
|
|
|
41730
41736
|
args.collect_payment_details = opts.collectPaymentDetails;
|
|
41731
41737
|
if (opts.collectCustomPropertyIds !== void 0)
|
|
41732
41738
|
args.collect_custom_property_ids = opts.collectCustomPropertyIds;
|
|
41739
|
+
if (opts.contractClauseIds !== void 0)
|
|
41740
|
+
args.contract_clause_ids = opts.contractClauseIds;
|
|
41733
41741
|
if (opts.requireTaxId !== void 0)
|
|
41734
41742
|
args.require_tax_id = opts.requireTaxId;
|
|
41735
41743
|
if (opts.displayQuoteValue !== void 0)
|
|
@@ -41805,6 +41813,25 @@ Examples:
|
|
|
41805
41813
|
queryParamKeys: []
|
|
41806
41814
|
});
|
|
41807
41815
|
});
|
|
41816
|
+
resource.command("finalize").description(`Finalize a draft quote. The quote is submitted for approval when approval is required, otherwise it becomes approved and ready to be sent for signature.`).requiredOption("--id <value>", `id parameter`).addHelpText("after", `
|
|
41817
|
+
Examples:
|
|
41818
|
+
hyperline quotes finalize --id <id>
|
|
41819
|
+
hyperline quotes finalize --id <id> --output json`).action(async (opts) => {
|
|
41820
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
41821
|
+
if (!ctx) {
|
|
41822
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
41823
|
+
process.exit(1);
|
|
41824
|
+
}
|
|
41825
|
+
const args = {};
|
|
41826
|
+
if (opts.id !== void 0)
|
|
41827
|
+
args.id = opts.id;
|
|
41828
|
+
await ctx.execute({
|
|
41829
|
+
method: "POST",
|
|
41830
|
+
path: "/v1/quotes/{id}/finalize",
|
|
41831
|
+
args,
|
|
41832
|
+
queryParamKeys: []
|
|
41833
|
+
});
|
|
41834
|
+
});
|
|
41808
41835
|
resource.command("send").description(`Send a quote by email for customer signature. Requires the quote to be approved first.`).requiredOption("--id <value>", `id parameter`).requiredOption("--email <value>", `Email address to which the quote will be sent for signature.`).option("--message <value>", `Custom message used in the email content.`).addHelpText("after", `
|
|
41809
41836
|
Examples:
|
|
41810
41837
|
hyperline quotes send --id <id> --email <email>
|
|
@@ -41912,10 +41939,132 @@ Examples:
|
|
|
41912
41939
|
});
|
|
41913
41940
|
}
|
|
41914
41941
|
|
|
41942
|
+
// build/commands/generated/quotes-templates.js
|
|
41943
|
+
function registerQuotes_TemplatesCommands(parent) {
|
|
41944
|
+
const resource = parent.command("quotes-templates").description("Manage quotes > templates");
|
|
41945
|
+
resource.command("list-quote-templates").description(`List quote templates with pagination and optional filters for id, name, subscription_template_id, and search. Use template IDs to create quotes from reusable quote defaults.`).option("--take <number>", `take`).option("--skip <number>", `skip`).option("--id <value>", `id`).option("--id.not <value>", `id__not`).option("--id.is-null <value>", `id__isNull`).option("--id.is-not-null <value>", `id__isNotNull`).option("--id.equals <value>", `id__equals`).option("--id.contains <value>", `id__contains`).option("--id.starts-with <value>", `id__startsWith`).option("--id.end-with <value>", `id__endWith`).option("--name <value>", `name`).option("--name.not <value>", `name__not`).option("--name.is-null <value>", `name__isNull`).option("--name.is-not-null <value>", `name__isNotNull`).option("--name.equals <value>", `name__equals`).option("--name.contains <value>", `name__contains`).option("--name.starts-with <value>", `name__startsWith`).option("--name.end-with <value>", `name__endWith`).option("--subscription-template-id <value>", `subscription_template_id`).option("--subscription-template-id.not <value>", `subscription_template_id__not`).option("--subscription-template-id.is-null <value>", `subscription_template_id__isNull`).option("--subscription-template-id.is-not-null <value>", `subscription_template_id__isNotNull`).option("--subscription-template-id.equals <value>", `subscription_template_id__equals`).option("--subscription-template-id.contains <value>", `subscription_template_id__contains`).option("--subscription-template-id.starts-with <value>", `subscription_template_id__startsWith`).option("--subscription-template-id.end-with <value>", `subscription_template_id__endWith`).option("--search <value>", `search`).addHelpText("after", `
|
|
41946
|
+
Examples:
|
|
41947
|
+
hyperline quotes-templates list-quote-templates
|
|
41948
|
+
hyperline quotes-templates list-quote-templates --take <take> --id <id>`).action(async (opts) => {
|
|
41949
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
41950
|
+
if (!ctx) {
|
|
41951
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
41952
|
+
process.exit(1);
|
|
41953
|
+
}
|
|
41954
|
+
const args = {};
|
|
41955
|
+
if (opts.id !== void 0)
|
|
41956
|
+
args.id = opts.id;
|
|
41957
|
+
if (opts["id.not"] !== void 0)
|
|
41958
|
+
args.id__not = opts["id.not"];
|
|
41959
|
+
if (opts["id.isNull"] !== void 0)
|
|
41960
|
+
args.id__isNull = opts["id.isNull"];
|
|
41961
|
+
if (opts["id.isNotNull"] !== void 0)
|
|
41962
|
+
args.id__isNotNull = opts["id.isNotNull"];
|
|
41963
|
+
if (opts["id.equals"] !== void 0)
|
|
41964
|
+
args.id__equals = opts["id.equals"];
|
|
41965
|
+
if (opts["id.contains"] !== void 0)
|
|
41966
|
+
args.id__contains = opts["id.contains"];
|
|
41967
|
+
if (opts["id.startsWith"] !== void 0)
|
|
41968
|
+
args.id__startsWith = opts["id.startsWith"];
|
|
41969
|
+
if (opts["id.endWith"] !== void 0)
|
|
41970
|
+
args.id__endWith = opts["id.endWith"];
|
|
41971
|
+
if (opts.name !== void 0)
|
|
41972
|
+
args.name = opts.name;
|
|
41973
|
+
if (opts["name.not"] !== void 0)
|
|
41974
|
+
args.name__not = opts["name.not"];
|
|
41975
|
+
if (opts["name.isNull"] !== void 0)
|
|
41976
|
+
args.name__isNull = opts["name.isNull"];
|
|
41977
|
+
if (opts["name.isNotNull"] !== void 0)
|
|
41978
|
+
args.name__isNotNull = opts["name.isNotNull"];
|
|
41979
|
+
if (opts["name.equals"] !== void 0)
|
|
41980
|
+
args.name__equals = opts["name.equals"];
|
|
41981
|
+
if (opts["name.contains"] !== void 0)
|
|
41982
|
+
args.name__contains = opts["name.contains"];
|
|
41983
|
+
if (opts["name.startsWith"] !== void 0)
|
|
41984
|
+
args.name__startsWith = opts["name.startsWith"];
|
|
41985
|
+
if (opts["name.endWith"] !== void 0)
|
|
41986
|
+
args.name__endWith = opts["name.endWith"];
|
|
41987
|
+
if (opts.subscriptionTemplateId !== void 0)
|
|
41988
|
+
args.subscription_template_id = opts.subscriptionTemplateId;
|
|
41989
|
+
if (opts["subscriptionTemplateId.not"] !== void 0)
|
|
41990
|
+
args.subscription_template_id__not = opts["subscriptionTemplateId.not"];
|
|
41991
|
+
if (opts["subscriptionTemplateId.isNull"] !== void 0)
|
|
41992
|
+
args.subscription_template_id__isNull = opts["subscriptionTemplateId.isNull"];
|
|
41993
|
+
if (opts["subscriptionTemplateId.isNotNull"] !== void 0)
|
|
41994
|
+
args.subscription_template_id__isNotNull = opts["subscriptionTemplateId.isNotNull"];
|
|
41995
|
+
if (opts["subscriptionTemplateId.equals"] !== void 0)
|
|
41996
|
+
args.subscription_template_id__equals = opts["subscriptionTemplateId.equals"];
|
|
41997
|
+
if (opts["subscriptionTemplateId.contains"] !== void 0)
|
|
41998
|
+
args.subscription_template_id__contains = opts["subscriptionTemplateId.contains"];
|
|
41999
|
+
if (opts["subscriptionTemplateId.startsWith"] !== void 0)
|
|
42000
|
+
args.subscription_template_id__startsWith = opts["subscriptionTemplateId.startsWith"];
|
|
42001
|
+
if (opts["subscriptionTemplateId.endWith"] !== void 0)
|
|
42002
|
+
args.subscription_template_id__endWith = opts["subscriptionTemplateId.endWith"];
|
|
42003
|
+
if (opts.search !== void 0)
|
|
42004
|
+
args.search = opts.search;
|
|
42005
|
+
if (opts.take !== void 0)
|
|
42006
|
+
args.take = Number(opts.take);
|
|
42007
|
+
if (opts.skip !== void 0)
|
|
42008
|
+
args.skip = Number(opts.skip);
|
|
42009
|
+
await ctx.execute({
|
|
42010
|
+
method: "GET",
|
|
42011
|
+
path: "/v1/quotes/templates",
|
|
42012
|
+
args,
|
|
42013
|
+
queryParamKeys: [
|
|
42014
|
+
"take",
|
|
42015
|
+
"skip",
|
|
42016
|
+
"id",
|
|
42017
|
+
"id__not",
|
|
42018
|
+
"id__isNull",
|
|
42019
|
+
"id__isNotNull",
|
|
42020
|
+
"id__equals",
|
|
42021
|
+
"id__contains",
|
|
42022
|
+
"id__startsWith",
|
|
42023
|
+
"id__endWith",
|
|
42024
|
+
"name",
|
|
42025
|
+
"name__not",
|
|
42026
|
+
"name__isNull",
|
|
42027
|
+
"name__isNotNull",
|
|
42028
|
+
"name__equals",
|
|
42029
|
+
"name__contains",
|
|
42030
|
+
"name__startsWith",
|
|
42031
|
+
"name__endWith",
|
|
42032
|
+
"subscription_template_id",
|
|
42033
|
+
"subscription_template_id__not",
|
|
42034
|
+
"subscription_template_id__isNull",
|
|
42035
|
+
"subscription_template_id__isNotNull",
|
|
42036
|
+
"subscription_template_id__equals",
|
|
42037
|
+
"subscription_template_id__contains",
|
|
42038
|
+
"subscription_template_id__startsWith",
|
|
42039
|
+
"subscription_template_id__endWith",
|
|
42040
|
+
"search"
|
|
42041
|
+
]
|
|
42042
|
+
});
|
|
42043
|
+
});
|
|
42044
|
+
resource.command("get-quote-template").description(`Retrieve a quote template by ID with quote defaults, display options, attachments, and linked contract template/clause IDs.`).requiredOption("--id <value>", `id parameter`).addHelpText("after", `
|
|
42045
|
+
Examples:
|
|
42046
|
+
hyperline quotes-templates get-quote-template --id <id>`).action(async (opts) => {
|
|
42047
|
+
const ctx = resource.parent?.opts()._ctx;
|
|
42048
|
+
if (!ctx) {
|
|
42049
|
+
process.stderr.write("Error: Not authenticated\n");
|
|
42050
|
+
process.exit(1);
|
|
42051
|
+
}
|
|
42052
|
+
const args = {};
|
|
42053
|
+
if (opts.id !== void 0)
|
|
42054
|
+
args.id = opts.id;
|
|
42055
|
+
await ctx.execute({
|
|
42056
|
+
method: "GET",
|
|
42057
|
+
path: "/v1/quotes/templates/{id}",
|
|
42058
|
+
args,
|
|
42059
|
+
queryParamKeys: []
|
|
42060
|
+
});
|
|
42061
|
+
});
|
|
42062
|
+
}
|
|
42063
|
+
|
|
41915
42064
|
// build/commands/generated/subscriptions.js
|
|
41916
42065
|
function registerSubscriptionsCommands(parent) {
|
|
41917
42066
|
const resource = parent.command("subscriptions").description("Manage subscriptions");
|
|
41918
|
-
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", `
|
|
42067
|
+
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("--precision <value>", `Granularity used to prorate the update amount. Defaults to 'calendar_days' when omitted, prorating on whole calendar days; 'milliseconds' prorates on the exact elapsed time, charging the precise partial period.`).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", `
|
|
41919
42068
|
Examples:
|
|
41920
42069
|
hyperline subscriptions create-subscription-update --id <id> --application-schedule <application_schedule> --payment-schedule <payment_schedule> --calculation-method <calculation_method> --type <type> --payload <payload>
|
|
41921
42070
|
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>
|
|
@@ -41938,6 +42087,8 @@ Examples:
|
|
|
41938
42087
|
args.charge_at = opts.chargeAt;
|
|
41939
42088
|
if (opts.calculationMethod !== void 0)
|
|
41940
42089
|
args.calculation_method = opts.calculationMethod;
|
|
42090
|
+
if (opts.precision !== void 0)
|
|
42091
|
+
args.precision = opts.precision;
|
|
41941
42092
|
if (opts.refundMethod !== void 0)
|
|
41942
42093
|
args.refund_method = opts.refundMethod;
|
|
41943
42094
|
if (opts.type !== void 0)
|
|
@@ -41951,7 +42102,7 @@ Examples:
|
|
|
41951
42102
|
queryParamKeys: []
|
|
41952
42103
|
});
|
|
41953
42104
|
});
|
|
41954
|
-
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", `
|
|
42105
|
+
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("--precision <value>", `Granularity used to prorate the update amount. Defaults to 'calendar_days' when omitted, prorating on whole calendar days; 'milliseconds' prorates on the exact elapsed time, charging the precise partial period.`).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", `
|
|
41955
42106
|
Examples:
|
|
41956
42107
|
hyperline subscriptions create-subscription-updates --id <id> --application-schedule <application_schedule> --payment-schedule <payment_schedule> --calculation-method <calculation_method> --updates <updates>
|
|
41957
42108
|
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>
|
|
@@ -41974,6 +42125,8 @@ Examples:
|
|
|
41974
42125
|
args.charge_at = opts.chargeAt;
|
|
41975
42126
|
if (opts.calculationMethod !== void 0)
|
|
41976
42127
|
args.calculation_method = opts.calculationMethod;
|
|
42128
|
+
if (opts.precision !== void 0)
|
|
42129
|
+
args.precision = opts.precision;
|
|
41977
42130
|
if (opts.refundMethod !== void 0)
|
|
41978
42131
|
args.refund_method = opts.refundMethod;
|
|
41979
42132
|
if (opts.updates !== void 0)
|
|
@@ -42113,7 +42266,7 @@ Examples:
|
|
|
42113
42266
|
queryParamKeys: []
|
|
42114
42267
|
});
|
|
42115
42268
|
});
|
|
42116
|
-
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", `
|
|
42269
|
+
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("--precision <value>", `Granularity used to prorate the update amount. Defaults to 'calendar_days' when omitted, prorating on whole calendar days; 'milliseconds' prorates on the exact elapsed time, charging the precise partial period.`).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", `
|
|
42117
42270
|
Examples:
|
|
42118
42271
|
hyperline subscriptions simulate-subscription-updates --id <id> --application-schedule <application_schedule> --payment-schedule <payment_schedule> --calculation-method <calculation_method> --updates <updates>
|
|
42119
42272
|
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>
|
|
@@ -42136,6 +42289,8 @@ Examples:
|
|
|
42136
42289
|
args.charge_at = opts.chargeAt;
|
|
42137
42290
|
if (opts.calculationMethod !== void 0)
|
|
42138
42291
|
args.calculation_method = opts.calculationMethod;
|
|
42292
|
+
if (opts.precision !== void 0)
|
|
42293
|
+
args.precision = opts.precision;
|
|
42139
42294
|
if (opts.refundMethod !== void 0)
|
|
42140
42295
|
args.refund_method = opts.refundMethod;
|
|
42141
42296
|
if (opts.updates !== void 0)
|
|
@@ -42862,7 +43017,7 @@ Examples:
|
|
|
42862
43017
|
]
|
|
42863
43018
|
});
|
|
42864
43019
|
});
|
|
42865
|
-
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>", `
|
|
43020
|
+
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", `
|
|
42866
43021
|
Examples:
|
|
42867
43022
|
hyperline subscriptions-transitions create-subscription-transition --source-subscription-id <source_subscription_id> --application-schedule <application_schedule> --target-subscription <target_subscription>
|
|
42868
43023
|
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>
|
|
@@ -43260,10 +43415,10 @@ Examples:
|
|
|
43260
43415
|
queryParamKeys: []
|
|
43261
43416
|
});
|
|
43262
43417
|
});
|
|
43263
|
-
resource.command("load").description(`Add credits
|
|
43418
|
+
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", `
|
|
43264
43419
|
Examples:
|
|
43265
43420
|
hyperline wallets load --id <id>
|
|
43266
|
-
hyperline wallets load --id <id> --
|
|
43421
|
+
hyperline wallets load --id <id> --type <type> --amount <amount>
|
|
43267
43422
|
hyperline wallets load --id <id> --output json`).action(async (opts) => {
|
|
43268
43423
|
const ctx = resource.parent?.opts()._ctx;
|
|
43269
43424
|
if (!ctx) {
|
|
@@ -43273,12 +43428,18 @@ Examples:
|
|
|
43273
43428
|
const args = {};
|
|
43274
43429
|
if (opts.id !== void 0)
|
|
43275
43430
|
args.id = opts.id;
|
|
43431
|
+
if (opts.type !== void 0)
|
|
43432
|
+
args.type = opts.type;
|
|
43433
|
+
if (opts.comment !== void 0)
|
|
43434
|
+
args.comment = opts.comment;
|
|
43276
43435
|
if (opts.documentStatus !== void 0)
|
|
43277
43436
|
args.document_status = opts.documentStatus;
|
|
43437
|
+
if (opts.bankAccountId !== void 0)
|
|
43438
|
+
args.bank_account_id = opts.bankAccountId;
|
|
43439
|
+
if (opts.reference !== void 0)
|
|
43440
|
+
args.reference = opts.reference;
|
|
43278
43441
|
if (opts.amount !== void 0)
|
|
43279
43442
|
args.amount = Number(opts.amount);
|
|
43280
|
-
if (opts.amountFree !== void 0)
|
|
43281
|
-
args.amount_free = Number(opts.amountFree);
|
|
43282
43443
|
await ctx.execute({
|
|
43283
43444
|
method: "POST",
|
|
43284
43445
|
path: "/v1/wallets/{id}/load",
|
|
@@ -43507,6 +43668,7 @@ function registerAllCommands(program2) {
|
|
|
43507
43668
|
registerProductsCommands(program2);
|
|
43508
43669
|
registerPrice_ConfigurationsCommands(program2);
|
|
43509
43670
|
registerQuotesCommands(program2);
|
|
43671
|
+
registerQuotes_TemplatesCommands(program2);
|
|
43510
43672
|
registerSubscriptions_TemplatesCommands(program2);
|
|
43511
43673
|
registerSubscriptionsCommands(program2);
|
|
43512
43674
|
registerSubscriptions_TransitionsCommands(program2);
|
|
@@ -61642,6 +61804,7 @@ import * as winston from "winston";
|
|
|
61642
61804
|
|
|
61643
61805
|
// ../hyperline-monitoring/build/logger/formatting/format.js
|
|
61644
61806
|
import prune from "json-prune";
|
|
61807
|
+
var REDACTED_HEADER_KEY_PATTERN = /authorization|authenticate|cookie|secret|token|credential|signature|jwt|api[_-]?key|access[_-]?token|refresh[_-]?token|private[_-]?key/i;
|
|
61645
61808
|
function jsonFormat(info) {
|
|
61646
61809
|
const prunedInfo = JSON.parse(prune(info));
|
|
61647
61810
|
for (const [key, value] of Object.entries(prunedInfo)) {
|
|
@@ -61724,17 +61887,26 @@ function formatAxiosError(error48) {
|
|
|
61724
61887
|
url: request?.url,
|
|
61725
61888
|
baseURL: request?.baseURL,
|
|
61726
61889
|
params: request?.params,
|
|
61727
|
-
headers: request?.headers,
|
|
61890
|
+
headers: redactHeaders({ headers: request?.headers }),
|
|
61728
61891
|
"axios-retry": request?.["axios-retry"]
|
|
61729
61892
|
},
|
|
61730
61893
|
response: {
|
|
61731
61894
|
status: response?.status,
|
|
61732
61895
|
statusText: response?.statusText,
|
|
61733
|
-
headers: response?.headers,
|
|
61896
|
+
headers: redactHeaders({ headers: response?.headers }),
|
|
61734
61897
|
data: response?.data
|
|
61735
61898
|
}
|
|
61736
61899
|
};
|
|
61737
61900
|
}
|
|
61901
|
+
function redactHeaders({ headers }) {
|
|
61902
|
+
if (!isRecord(headers)) {
|
|
61903
|
+
return headers;
|
|
61904
|
+
}
|
|
61905
|
+
return Object.fromEntries(Object.entries(headers).map(([headerKey, headerValue]) => [
|
|
61906
|
+
headerKey,
|
|
61907
|
+
REDACTED_HEADER_KEY_PATTERN.test(headerKey) ? "<redacted>" : headerValue
|
|
61908
|
+
]));
|
|
61909
|
+
}
|
|
61738
61910
|
function isRecord(value) {
|
|
61739
61911
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
61740
61912
|
}
|
|
@@ -61758,13 +61930,16 @@ function logHttpRequest(logger2, request, extra) {
|
|
|
61758
61930
|
});
|
|
61759
61931
|
}
|
|
61760
61932
|
function logHttpResponse(logger2, response, responseTime, extra) {
|
|
61761
|
-
const { request, statusCode, responseBody } = response;
|
|
61933
|
+
const { request, statusCode, responseBody, responseHeaders } = response;
|
|
61762
61934
|
const { message, metadata } = transform2(request);
|
|
61763
61935
|
const readableResponseTime = responseTime ? getReadableTime(responseTime) : void 0;
|
|
61764
61936
|
const responseMetadata = {
|
|
61765
61937
|
statusCode,
|
|
61766
61938
|
responseTime,
|
|
61767
|
-
responseBody
|
|
61939
|
+
responseBody,
|
|
61940
|
+
// Redacted so secrets (authorization/cookie/token/…) never reach the logs
|
|
61941
|
+
// while diagnostic headers (e.g. rate-limit headers on a 429) stay visible.
|
|
61942
|
+
responseHeaders: responseHeaders === void 0 ? void 0 : redactHeaders({ headers: responseHeaders })
|
|
61768
61943
|
};
|
|
61769
61944
|
logger2.info(`HTTP RES - ${message} ${statusCode} ${readableResponseTime || ""} ${extra?.postfix || ""}`, {
|
|
61770
61945
|
...metadata,
|
|
@@ -62104,6 +62279,7 @@ var de = {
|
|
|
62104
62279
|
"accounting.revrec.creditLineDescription": "Umsatz realisieren \u2013 Zeitplan {{scheduleId}}, Zeitraum {{periodDate}}",
|
|
62105
62280
|
"accounting.revrec.debitLineDescription": "Abgrenzungsposten reduzieren \u2013 Zeitplan {{scheduleId}}, Zeitraum {{periodDate}}",
|
|
62106
62281
|
"accounting.revrec.discountCreditLineDescription": "Erl\xF6sminderung (Rabatt) erfassen \u2013 Zeitplan {{scheduleId}}, Zeitraum {{periodDate}}",
|
|
62282
|
+
"accounting.revrec.closedPeriodFallbackNote": " (in die n\xE4chste offene Periode gebucht \u2013 Zielperiode geschlossen; urspr\xFCngliches Datum {{originalDate}})",
|
|
62107
62283
|
"accounting.revrec.discountDebitLineDescription": "Abgegrenzten Rabatt reduzieren \u2013 Zeitplan {{scheduleId}}, Zeitraum {{periodDate}}",
|
|
62108
62284
|
"accounting.revrec.entryDescription": "Umsatzrealisierung f\xFCr Zeitplan {{scheduleId}}, Zeitraum {{periodStart}} - {{periodEnd}}",
|
|
62109
62285
|
"creditNotes.refundChargeName": "R\xFCckerstattung f\xFCr die Rechnung",
|
|
@@ -62116,7 +62292,9 @@ var de = {
|
|
|
62116
62292
|
"invoices.outstandingProduct.descriptionPeriod": "Unbezahlter Betrag der Rechnung{{invoiceNumber}} vom {{periodStart}} bis {{periodEnd}}",
|
|
62117
62293
|
"invoices.outstandingProduct.name": "Offener Saldo",
|
|
62118
62294
|
"invoices.prorata.paymentForItem": "Anteilig berechneter Betrag f\xFCr",
|
|
62295
|
+
"invoices.prorata.paymentForItemFullPeriod": "Zahlung f\xFCr",
|
|
62119
62296
|
"invoices.prorata.refundForItem": "Anteilig erstatteter Betrag f\xFCr",
|
|
62297
|
+
"invoices.prorata.refundForItemFullPeriod": "Erstattung f\xFCr",
|
|
62120
62298
|
"subscriptions.closingChargeName": "Abschlussgeb\xFChr f\xFCr das Abonnement",
|
|
62121
62299
|
"subscriptions.correction": "Vorperiodische Anpassung",
|
|
62122
62300
|
"subscriptions.updates.addCoupon": "Gutschein hinzuf\xFCgen {{couponName}}",
|
|
@@ -62145,7 +62323,9 @@ var en = {
|
|
|
62145
62323
|
"invoices.outstandingProduct.descriptionPeriod": "Unpaid amount from the invoice{{invoiceNumber}} from {{periodStart}} to {{periodEnd}}",
|
|
62146
62324
|
"invoices.outstandingProduct.name": "Outstanding balance",
|
|
62147
62325
|
"invoices.prorata.paymentForItem": "Prorated payment for",
|
|
62326
|
+
"invoices.prorata.paymentForItemFullPeriod": "Payment for",
|
|
62148
62327
|
"invoices.prorata.refundForItem": "Prorated refund for",
|
|
62328
|
+
"invoices.prorata.refundForItemFullPeriod": "Refund for",
|
|
62149
62329
|
"subscriptions.closingChargeName": "Closing fee for subscription",
|
|
62150
62330
|
"subscriptions.correction": "Adjustment previous period",
|
|
62151
62331
|
"subscriptions.updates.addCoupon": "Add coupon {{couponName}}",
|
|
@@ -62172,6 +62352,7 @@ var en = {
|
|
|
62172
62352
|
"accounting.revrec.creditLineDescription": "Recognize revenue \u2013 schedule {{scheduleId}}, period {{periodDate}}",
|
|
62173
62353
|
"accounting.revrec.discountDebitLineDescription": "Decrease deferred discount \u2013 schedule {{scheduleId}}, period {{periodDate}}",
|
|
62174
62354
|
"accounting.revrec.discountCreditLineDescription": "Recognize contra-revenue (discount) \u2013 schedule {{scheduleId}}, period {{periodDate}}",
|
|
62355
|
+
"accounting.revrec.closedPeriodFallbackNote": " (posted to next open period \u2014 target accounting period closed; original date {{originalDate}})",
|
|
62175
62356
|
"einvoicing.paymentProcessed": "Payment processed",
|
|
62176
62357
|
"einvoicing.paymentReceived": "Payment received",
|
|
62177
62358
|
"einvoicing.paymentFromWallet": "Payment from wallet"
|
|
@@ -62186,6 +62367,7 @@ var es = {
|
|
|
62186
62367
|
"accounting.revrec.creditLineDescription": "Reconocer ingresos \u2013 cronograma {{scheduleId}}, per\xEDodo {{periodDate}}",
|
|
62187
62368
|
"accounting.revrec.debitLineDescription": "Disminuci\xF3n de ingresos diferidos \u2013 cronograma {{scheduleId}}, per\xEDodo {{periodDate}}",
|
|
62188
62369
|
"accounting.revrec.discountCreditLineDescription": "Reconocer contra-ingresos (descuento) \u2013 cronograma {{scheduleId}}, per\xEDodo {{periodDate}}",
|
|
62370
|
+
"accounting.revrec.closedPeriodFallbackNote": " (registrado en el pr\xF3ximo per\xEDodo abierto \u2014 per\xEDodo contable de destino cerrado; fecha original {{originalDate}})",
|
|
62189
62371
|
"accounting.revrec.discountDebitLineDescription": "Disminuci\xF3n de descuento diferido \u2013 cronograma {{scheduleId}}, per\xEDodo {{periodDate}}",
|
|
62190
62372
|
"accounting.revrec.entryDescription": "Reconocimiento de ingresos para el cronograma {{scheduleId}}, per\xEDodo {{periodStart}} - {{periodEnd}}",
|
|
62191
62373
|
"creditNotes.refundChargeName": "Reembolso por factura",
|
|
@@ -62198,7 +62380,9 @@ var es = {
|
|
|
62198
62380
|
"invoices.outstandingProduct.descriptionPeriod": "Monto pendiente de la factura{{invoiceNumber}} del {{periodStart}} al {{periodEnd}}",
|
|
62199
62381
|
"invoices.outstandingProduct.name": "Saldo pendiente",
|
|
62200
62382
|
"invoices.prorata.paymentForItem": "Pago prorrateado por",
|
|
62383
|
+
"invoices.prorata.paymentForItemFullPeriod": "Pago por",
|
|
62201
62384
|
"invoices.prorata.refundForItem": "Reembolso prorrateado por",
|
|
62385
|
+
"invoices.prorata.refundForItemFullPeriod": "Reembolso por",
|
|
62202
62386
|
"subscriptions.closingChargeName": "Cargo por cierre de suscripci\xF3n",
|
|
62203
62387
|
"subscriptions.correction": "Ajuste del periodo anterior",
|
|
62204
62388
|
"subscriptions.updates.addCoupon": "A\xF1adir cup\xF3n {{couponName}}",
|
|
@@ -62223,6 +62407,7 @@ var fr = {
|
|
|
62223
62407
|
"accounting.revrec.creditLineDescription": "Reconnaissance du chiffre d'affaires \u2013 \xE9ch\xE9ancier {{scheduleId}}, p\xE9riode {{periodDate}}",
|
|
62224
62408
|
"accounting.revrec.debitLineDescription": "Diminution des produits constat\xE9s d'avance \u2013 \xE9ch\xE9ancier {{scheduleId}}, p\xE9riode {{periodDate}}",
|
|
62225
62409
|
"accounting.revrec.discountCreditLineDescription": "Reconnaissance du contre-revenu (remise) \u2013 \xE9ch\xE9ancier {{scheduleId}}, p\xE9riode {{periodDate}}",
|
|
62410
|
+
"accounting.revrec.closedPeriodFallbackNote": " (comptabilis\xE9 sur la prochaine p\xE9riode ouverte \u2014 p\xE9riode comptable cible cl\xF4tur\xE9e ; date d'origine {{originalDate}})",
|
|
62226
62411
|
"accounting.revrec.discountDebitLineDescription": "Diminution des remises diff\xE9r\xE9es \u2013 \xE9ch\xE9ancier {{scheduleId}}, p\xE9riode {{periodDate}}",
|
|
62227
62412
|
"accounting.invoicePosted.entryDescription": "\xC9criture de comptabilisation pour la facture {{invoiceId}}",
|
|
62228
62413
|
"accounting.transactionSettled.entryDescription": "R\xE8glement de la facture {{invoiceId}}",
|
|
@@ -62239,7 +62424,9 @@ var fr = {
|
|
|
62239
62424
|
"invoices.outstandingProduct.descriptionPeriod": "Montant impay\xE9 de la facture{{invoiceNumber}} du {{periodStart}} au {{periodEnd}}",
|
|
62240
62425
|
"invoices.outstandingProduct.name": "Solde impay\xE9",
|
|
62241
62426
|
"invoices.prorata.paymentForItem": "Paiement au prorata pour",
|
|
62427
|
+
"invoices.prorata.paymentForItemFullPeriod": "Paiement pour",
|
|
62242
62428
|
"invoices.prorata.refundForItem": "Remboursement au prorata pour",
|
|
62429
|
+
"invoices.prorata.refundForItemFullPeriod": "Remboursement pour",
|
|
62243
62430
|
"subscriptions.closingChargeName": "Frais de cl\xF4ture pour abonnement",
|
|
62244
62431
|
"subscriptions.correction": "Ajustement p\xE9riode pr\xE9c\xE9dente",
|
|
62245
62432
|
"subscriptions.updates.addCoupon": "Ajout du coupon {{couponName}}",
|
|
@@ -62268,6 +62455,7 @@ var it = {
|
|
|
62268
62455
|
"accounting.revrec.creditLineDescription": "Riconoscere i ricavi \u2013 programma {{scheduleId}}, periodo {{periodDate}}",
|
|
62269
62456
|
"accounting.revrec.debitLineDescription": "Diminuzione dei ricavi differiti \u2013 programma {{scheduleId}}, periodo {{periodDate}}",
|
|
62270
62457
|
"accounting.revrec.discountCreditLineDescription": "Riconoscere il contra-ricavo (sconto) \u2013 programma {{scheduleId}}, periodo {{periodDate}}",
|
|
62458
|
+
"accounting.revrec.closedPeriodFallbackNote": " (registrato nel prossimo periodo aperto \u2014 periodo contabile di destinazione chiuso; data originale {{originalDate}})",
|
|
62271
62459
|
"accounting.revrec.discountDebitLineDescription": "Diminuzione dello sconto differito \u2013 programma {{scheduleId}}, periodo {{periodDate}}",
|
|
62272
62460
|
"accounting.revrec.entryDescription": "Riconoscimento dei ricavi per il programma {{scheduleId}}, periodo {{periodStart}} - {{periodEnd}}",
|
|
62273
62461
|
"creditNotes.refundChargeName": "Rimborso per fattura",
|
|
@@ -62280,7 +62468,9 @@ var it = {
|
|
|
62280
62468
|
"invoices.outstandingProduct.descriptionPeriod": "Importo insoluto della fattura{{invoiceNumber}} dal {{periodStart}} al {{periodEnd}}",
|
|
62281
62469
|
"invoices.outstandingProduct.name": "Saldo insoluto",
|
|
62282
62470
|
"invoices.prorata.paymentForItem": "Pagamento proporzionale per",
|
|
62471
|
+
"invoices.prorata.paymentForItemFullPeriod": "Pagamento per",
|
|
62283
62472
|
"invoices.prorata.refundForItem": "Rimborso proporzionale per",
|
|
62473
|
+
"invoices.prorata.refundForItemFullPeriod": "Rimborso per",
|
|
62284
62474
|
"subscriptions.closingChargeName": "Costo di chiusura per abbonamento",
|
|
62285
62475
|
"subscriptions.correction": "Correzione periodo precedente",
|
|
62286
62476
|
"subscriptions.updates.addCoupon": "Aggiungi coupon {{couponName}}",
|
|
@@ -62309,6 +62499,7 @@ var nl = {
|
|
|
62309
62499
|
"accounting.revrec.creditLineDescription": "Omzet erkennen \u2013 schema {{scheduleId}}, periode {{periodDate}}",
|
|
62310
62500
|
"accounting.revrec.debitLineDescription": "Uitgestelde omzet verlagen \u2013 schema {{scheduleId}}, periode {{periodDate}}",
|
|
62311
62501
|
"accounting.revrec.discountCreditLineDescription": "Omzetvermindering (korting) erkennen \u2013 schema {{scheduleId}}, periode {{periodDate}}",
|
|
62502
|
+
"accounting.revrec.closedPeriodFallbackNote": " (geboekt in de volgende open periode \u2014 doelboekingsperiode gesloten; oorspronkelijke datum {{originalDate}})",
|
|
62312
62503
|
"accounting.revrec.discountDebitLineDescription": "Uitgestelde korting verlagen \u2013 schema {{scheduleId}}, periode {{periodDate}}",
|
|
62313
62504
|
"accounting.revrec.entryDescription": "Omzeterkenning voor schema {{scheduleId}}, periode {{periodStart}} - {{periodEnd}}",
|
|
62314
62505
|
"creditNotes.refundChargeName": "Terugbetaling voor factuur",
|
|
@@ -62321,7 +62512,9 @@ var nl = {
|
|
|
62321
62512
|
"invoices.outstandingProduct.descriptionPeriod": "Onbetaald bedrag van de factuur{{invoiceNumber}} van {{periodStart}} tot {{periodEnd}}",
|
|
62322
62513
|
"invoices.outstandingProduct.name": "Openstaand saldo",
|
|
62323
62514
|
"invoices.prorata.paymentForItem": "Gedeeltelijke betaling voor",
|
|
62515
|
+
"invoices.prorata.paymentForItemFullPeriod": "Betaling voor",
|
|
62324
62516
|
"invoices.prorata.refundForItem": "Gedeeltelijke terugbetaling voor",
|
|
62517
|
+
"invoices.prorata.refundForItemFullPeriod": "Terugbetaling voor",
|
|
62325
62518
|
"subscriptions.closingChargeName": "Afsluitkosten voor abonnement",
|
|
62326
62519
|
"subscriptions.correction": "Aanpassing vorige periode",
|
|
62327
62520
|
"subscriptions.updates.addCoupon": "Coupon toevoegen {{couponName}}",
|
|
@@ -62350,6 +62543,7 @@ var pl = {
|
|
|
62350
62543
|
"accounting.revrec.creditLineDescription": "Rozpoznanie przychodu \u2013 harmonogram {{scheduleId}}, okres {{periodDate}}",
|
|
62351
62544
|
"accounting.revrec.debitLineDescription": "Zmniejszenie przychod\xF3w przysz\u0142ych okres\xF3w \u2013 harmonogram {{scheduleId}}, okres {{periodDate}}",
|
|
62352
62545
|
"accounting.revrec.discountCreditLineDescription": "Rozpoznanie kontra-przychodu (rabat) \u2013 harmonogram {{scheduleId}}, okres {{periodDate}}",
|
|
62546
|
+
"accounting.revrec.closedPeriodFallbackNote": " (zaksi\u0119gowano w nast\u0119pnym otwartym okresie \u2014 docelowy okres ksi\u0119gowy zamkni\u0119ty; pierwotna data {{originalDate}})",
|
|
62353
62547
|
"accounting.revrec.discountDebitLineDescription": "Zmniejszenie odroczonego rabatu \u2013 harmonogram {{scheduleId}}, okres {{periodDate}}",
|
|
62354
62548
|
"accounting.revrec.entryDescription": "Rozpoznanie przychodu dla harmonogramu {{scheduleId}}, okres {{periodStart}} - {{periodEnd}}",
|
|
62355
62549
|
"creditNotes.refundChargeName": "Zwrot za faktur\u0119",
|
|
@@ -62362,7 +62556,9 @@ var pl = {
|
|
|
62362
62556
|
"invoices.outstandingProduct.descriptionPeriod": "Nieop\u0142acona kwota z faktury{{invoiceNumber}} od {{periodStart}} do {{periodEnd}}",
|
|
62363
62557
|
"invoices.outstandingProduct.name": "Niezap\u0142acone saldo",
|
|
62364
62558
|
"invoices.prorata.paymentForItem": "P\u0142atno\u015B\u0107 proporcjonalna za",
|
|
62559
|
+
"invoices.prorata.paymentForItemFullPeriod": "P\u0142atno\u015B\u0107 za",
|
|
62365
62560
|
"invoices.prorata.refundForItem": "Zwrot proporcjonalny za",
|
|
62561
|
+
"invoices.prorata.refundForItemFullPeriod": "Zwrot za",
|
|
62366
62562
|
"subscriptions.closingChargeName": "Op\u0142ata za zamkni\u0119cie subskrypcji",
|
|
62367
62563
|
"subscriptions.correction": "Korekta poprzedniego okresu",
|
|
62368
62564
|
"subscriptions.updates.addCoupon": "Dodaj kupon {{couponName}}",
|
|
@@ -62391,6 +62587,7 @@ var pt = {
|
|
|
62391
62587
|
"accounting.revrec.creditLineDescription": "Reconhecer receita \u2013 cronograma {{scheduleId}}, per\xEDodo {{periodDate}}",
|
|
62392
62588
|
"accounting.revrec.debitLineDescription": "Diminui\xE7\xE3o da receita diferida \u2013 cronograma {{scheduleId}}, per\xEDodo {{periodDate}}",
|
|
62393
62589
|
"accounting.revrec.discountCreditLineDescription": "Reconhecer contra-receita (desconto) \u2013 cronograma {{scheduleId}}, per\xEDodo {{periodDate}}",
|
|
62590
|
+
"accounting.revrec.closedPeriodFallbackNote": " (lan\xE7ado no pr\xF3ximo per\xEDodo aberto \u2014 per\xEDodo cont\xE1bil de destino fechado; data original {{originalDate}})",
|
|
62394
62591
|
"accounting.revrec.discountDebitLineDescription": "Diminui\xE7\xE3o do desconto diferido \u2013 cronograma {{scheduleId}}, per\xEDodo {{periodDate}}",
|
|
62395
62592
|
"accounting.revrec.entryDescription": "Reconhecimento de receita para o cronograma {{scheduleId}}, per\xEDodo {{periodStart}} - {{periodEnd}}",
|
|
62396
62593
|
"creditNotes.refundChargeName": "Reembolso pela fatura",
|
|
@@ -62403,7 +62600,9 @@ var pt = {
|
|
|
62403
62600
|
"invoices.outstandingProduct.descriptionPeriod": "Valor em aberto da fatura{{invoiceNumber}} de {{periodStart}} a {{periodEnd}}",
|
|
62404
62601
|
"invoices.outstandingProduct.name": "Saldo em aberto",
|
|
62405
62602
|
"invoices.prorata.paymentForItem": "Pagamento proporcional por",
|
|
62603
|
+
"invoices.prorata.paymentForItemFullPeriod": "Pagamento por",
|
|
62406
62604
|
"invoices.prorata.refundForItem": "Reembolso proporcional por",
|
|
62605
|
+
"invoices.prorata.refundForItemFullPeriod": "Reembolso por",
|
|
62407
62606
|
"subscriptions.closingChargeName": "Taxa de encerramento da assinatura",
|
|
62408
62607
|
"subscriptions.correction": "Ajuste do per\xEDodo anterior",
|
|
62409
62608
|
"subscriptions.updates.addCoupon": "Adicionar cupom {{couponName}}",
|
|
@@ -62525,10 +62724,16 @@ function buildHttpClient(dependencies) {
|
|
|
62525
62724
|
return response;
|
|
62526
62725
|
}, (error48) => {
|
|
62527
62726
|
if (error48.response) {
|
|
62528
|
-
const { config: responseConfig, status } = error48.response;
|
|
62727
|
+
const { config: responseConfig, status, headers } = error48.response;
|
|
62529
62728
|
const timeStart = responseConfig.metadata.timeStart;
|
|
62530
62729
|
const responseTime = timeStart ? Date.now() - timeStart : void 0;
|
|
62531
|
-
logHttpResponse(logger2, {
|
|
62730
|
+
logHttpResponse(logger2, {
|
|
62731
|
+
request: toLogRequest(responseConfig),
|
|
62732
|
+
statusCode: status,
|
|
62733
|
+
// Surfaces upstream response headers on error responses (e.g. the
|
|
62734
|
+
// rate-limit headers on a 429); redacted in logHttpResponse.
|
|
62735
|
+
responseHeaders: headers
|
|
62736
|
+
}, responseTime, { metadata: { error: error48.message } });
|
|
62532
62737
|
}
|
|
62533
62738
|
return Promise.reject(error48);
|
|
62534
62739
|
});
|