This commit is contained in:
Sebastian 2023-02-20 09:46:43 -03:00
parent c022f39428
commit aa20812fba
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1
3 changed files with 18 additions and 9 deletions

View File

@ -1283,10 +1283,9 @@ export namespace MerchantBackend {
// Human-readable description for the template. // Human-readable description for the template.
template_description: string; template_description: string;
// A base64-encoded image selected by the merchant. // A base64-encoded key of the point-of-sale.
// This parameter is optional. // This parameter is optional.
// We are not sure about it. pos_key?: string;
image?: ImageDataUrl;
// Additional information in a separate template. // Additional information in a separate template.
template_contract: TemplateContractDetails; template_contract: TemplateContractDetails;
@ -1310,10 +1309,9 @@ export namespace MerchantBackend {
// Human-readable description for the template. // Human-readable description for the template.
template_description: string; template_description: string;
// A base64-encoded image selected by the merchant. // A base64-encoded key of the point-of-sale.
// This parameter is optional. // This parameter is optional.
// We are not sure about it. pos_key?: string;
image?: ImageDataUrl;
// Additional information in a separate template. // Additional information in a separate template.
template_contract: TemplateContractDetails; template_contract: TemplateContractDetails;
@ -1336,10 +1334,9 @@ export namespace MerchantBackend {
// Human-readable description for the template. // Human-readable description for the template.
template_description: string; template_description: string;
// A base64-encoded image selected by the merchant. // A base64-encoded key of the point-of-sale.
// This parameter is optional. // This parameter is optional.
// We are not sure about it. pos_key?: string;
image?: ImageDataUrl;
// Additional information in a separate template. // Additional information in a separate template.
template_contract: TemplateContractDetails; template_contract: TemplateContractDetails;

View File

@ -134,6 +134,12 @@ export function CreatePage({ onCreate, onBack }: Props): VNode {
help="" help=""
tooltip={i18n.str`How much time has the customer to complete the payment once the order was created.`} tooltip={i18n.str`How much time has the customer to complete the payment once the order was created.`}
/> />
<Input<Entity>
name="pos_key"
label={i18n.str`Point-of-sale key`}
help=""
tooltip={i18n.str`Useful to validate the purchase`}
/>
</FormProvider> </FormProvider>
<div class="buttons is-right mt-5"> <div class="buttons is-right mt-5">

View File

@ -143,6 +143,12 @@ export function UpdatePage({ template, onUpdate, onBack }: Props): VNode {
help="" help=""
tooltip={i18n.str`How much time has the customer to complete the payment once the order was created.`} tooltip={i18n.str`How much time has the customer to complete the payment once the order was created.`}
/> />
<Input<Entity>
name="pos_key"
label={i18n.str`Point-of-sale key`}
help=""
tooltip={i18n.str`Useful to validate the purchase`}
/>
</FormProvider> </FormProvider>
<div class="buttons is-right mt-5"> <div class="buttons is-right mt-5">