{
    "componentChunkName": "component---src-templates-article-page-template-js",
    "path": "/references/transaction-process-actions/",
    "result": {"data":{"markdownRemark":{"frontmatter":{"title":"Transaction process actions","slug":"transaction-process-actions","updated":"2021-10-14T00:00:00.000Z","category":"references","ingress":"This reference article lists all the available actions and their configuration options.","skills":null},"htmlAst":{"type":"root","children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"A transaction process contains transitions and each transition defines\nan ordered list of 0 or more actions. Actions are instructions for the\ntransaction engine and define what happens when a transition is\nexecuted. The ordering of the actions matters because they are executed\nin the given order."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"This is a reference for all the available actions with their\npreconditions, parameters, and configuration options. With\n"},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"parameters"}]},{"type":"text","value":" we mean values that are sent in the API calls to the\nactions, and with "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"configuration options"}]},{"type":"text","value":" we mean the options that are\nset for the actions in the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"process.edn"}]},{"type":"text","value":" file. To learn more, see the\n"},{"type":"element","tagName":"a","properties":{"href":"/docs/legacy/references/transaction-process-format/"},"children":[{"type":"text","value":"Transaction process format"}]},{"type":"text","value":"\nreference article."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"actions","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actions","ariaLabel":"actions permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Actions"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{"id":"transaction-initialization","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#transaction-initialization","ariaLabel":"transaction initialization permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Transaction initialization"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actioninitializerinit-listing-tx","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actioninitializerinit-listing-tx","ariaLabel":"actioninitializerinit listing tx permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action.initializer/init-listing-tx"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"NOTE"}]},{"type":"text","value":": this action is implicit and must not be in the process\ndescription."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Initialize a new transaction from a listing."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Listing with the given ID must exist"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Listing must have an author"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Customer (actor of the transaction) must be a valid user"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Author and customer must not be the same user"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"listingId"}]},{"type":"text","value":", UUID, mandatory"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{"id":"pricing","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#pricing","ariaLabel":"pricing permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Pricing"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actionprivileged-set-line-items","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actionprivileged-set-line-items","ariaLabel":"actionprivileged set line items permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/privileged-set-line-items"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Defines transaction price and breakdown. Sets given line items and\ncalculates totals for each line item and for the entire transaction."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Existing line items will be removed."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"lineItems"}]},{"type":"text","value":": Collection of line items (max 50). Each line items has\nfollowing fields:\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"code"}]},{"type":"text","value":": string, mandatory, indentifies line item type (e.g.\n\"line-item/cleaning-fee\"), maximum length 64 characters."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"unitPrice"}]},{"type":"text","value":": money, mandatory"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"lineTotal"}]},{"type":"text","value":": money"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"quantity"}]},{"type":"text","value":": number"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"percentage"}]},{"type":"text","value":": number (e.g. 15.5 for 15.5%)"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"seats"}]},{"type":"text","value":": number"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"units"}]},{"type":"text","value":": number"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"includeFor"}]},{"type":"text","value":": array containing strings \"customer\" or \"provider\",\ndefault [\"customer\" \":provider\" ]"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Line item must have either "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"quantity"}]},{"type":"text","value":" or "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"percentage"}]},{"type":"text","value":" or both "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"seats"}]},{"type":"text","value":"\nand "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"units"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"lineTotal"}]},{"type":"text","value":" is calculated by the following rules:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"If "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"quantity"}]},{"type":"text","value":" is provided, the line total will be\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"unitPrice * quantity"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"If "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"percentage"}]},{"type":"text","value":" is provided, the line total will be\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"unitPrice * (percentage / 100)"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"If "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"seats"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"units"}]},{"type":"text","value":" are provided the line item will contain\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"quantity"}]},{"type":"text","value":" as a product of "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"seats"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"units"}]},{"type":"text","value":" and the line total will\nbe "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"unitPrice * units * seats"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"lineTotal"}]},{"type":"text","value":" can be optionally passed in. Will be validated against\ncalculated line total."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"includeFor"}]},{"type":"text","value":" defines commissions. Customer commission is added by\ndefining "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"includeFor"}]},{"type":"text","value":" array "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"[\"customer\"]"}]},{"type":"text","value":" and provider commission by\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"[\"provider\"]"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"payinTotal"}]},{"type":"text","value":" is calculated by the action and added to the transaction.\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"payinTotal"}]},{"type":"text","value":" equals to the sum of customer commission line totals and\nother non-commission line totals. Must be zero or positive. "},{"type":"element","tagName":"em","properties":{},"children":[{"type":"text","value":"Note:"}]},{"type":"text","value":" Some\nline-item configurations are not supported by the default Stripe payment\nactions. If you use Stripe payment actions, payinTotal needs to be\ngreater than zero, and greater than or equal to payoutTotal. For more\ndetails, refer to Stripe action documentation."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"payoutTotal"}]},{"type":"text","value":" is calculated by the action and added to the transaction.\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"payoutTotal"}]},{"type":"text","value":" equals to the sum of provider commission line totals and\nother non-commission line totals. Must be zero or positive."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Only one currency is allowed accross all fields defining money."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actioncalculate-tx-customer-commission","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actioncalculate-tx-customer-commission","ariaLabel":"actioncalculate tx customer commission permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/calculate-tx-customer-commission"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Deprecated"}]},{"type":"text","value":": use "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":privileged-set-line-items"}]},{"type":"text","value":" to have full control of\nthe calculation and the line items"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Calculates the customer commission, sets the transaction payin amount\nand adds a "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":line-item/customer-commission"}]},{"type":"text","value":" line-item."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Subsequent executions will create new line items instead of modifying\nthe existing one. Commission calculations are based on\ntransaction/totalPrice and will accumulate the payinTotal. For example,\na total price of 100 EUR and two consequtive 10 % customer commissions\nwill result in an 120 EUR payin."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Transaction must have a total price"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"All currencies must match the listing currency"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Min and max commissions need to be in correct order, i.e, min needs to\nbe smaller than max"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"commission"}]},{"type":"text","value":": decimal, mandatory. Acts as a multiplier on the\ntransaction total, e.g. "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"0.1M"}]},{"type":"text","value":" for a 10% commission."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"min"}]},{"type":"text","value":": a map with keys "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":amount"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":currency"}]},{"type":"text","value":", optional. Acts as a\nminimum commission, e.g. {:amount 2M, :currency \"EUR\"} for a 2EUR\nminimum."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"max"}]},{"type":"text","value":": a map with keys "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":amount"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":currency"}]},{"type":"text","value":", optional. Acts as a\nmaximum commission, e.g. {:amount 20M, :currency \"EUR\"} for a 20EUR\nmaximum."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Where:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"amount"}]},{"type":"text","value":", decimal, mandatory. The value of a monetary unit. A decimal\nfollowed with a "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"M"}]},{"type":"text","value":", e.g. 10M."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"currency"}]},{"type":"text","value":", string, mandatory, The three letter currency code of a\nmonetary unit, e.g. \"EUR\"."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actioncalculate-tx-provider-commission","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actioncalculate-tx-provider-commission","ariaLabel":"actioncalculate tx provider commission permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/calculate-tx-provider-commission"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Deprecated"}]},{"type":"text","value":": use "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":privileged-set-line-items"}]},{"type":"text","value":" to have full control of\nthe calculation and the line items"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Calculates the provider commission, sets the transaction payout amount\nand adds a "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":line-item/provider-commission"}]},{"type":"text","value":" line-item."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Subsequent executions will create new line items instead of modifying\nthe existing one. Commission calculations are based on\ntransaction/totalPrice and will accumulate the payoutTotal. For example,\na total price of 100 EUR and two consequtive 10 % provider commissions\nwill result in an 80 EUR payout."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Too large commission (i.e. a negative payout) will cause an error."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Transaction must have a total price"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"All currencies must match the listing currency"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Min and max commissions need to be in correct order, i.e, min needs to\nbe smaller than max"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"commission"}]},{"type":"text","value":": decimal, mandatory. Acts as a multiplier on the\ntransaction total, e.g. "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"0.1M"}]},{"type":"text","value":" for a 10% commission."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"min"}]},{"type":"text","value":": a map with mandatory keys "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":amount"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":currency"}]},{"type":"text","value":", optional.\nActs as a minimum commission, e.g. {:amount 2M, :currency \"EUR\"} for a\n2EUR minimum."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"max"}]},{"type":"text","value":": a map with keys "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":amount"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":currency"}]},{"type":"text","value":", optional. Acts as a\nmaximum commission, e.g. {:amount 20M, :currency \"EUR\"} for a 20EUR\nminimum.."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Where:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"amount"}]},{"type":"text","value":", decimal, mandatory. The value of a monetary unit. A decimal\nfollowed with a "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"M"}]},{"type":"text","value":", e.g. 10M."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"currency"}]},{"type":"text","value":", string, mandatory, The three letter currency code of a\nmonetary unit, e.g. \"EUR\"."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actioncalculate-tx-customer-fixed-commission","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actioncalculate-tx-customer-fixed-commission","ariaLabel":"actioncalculate tx customer fixed commission permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/calculate-tx-customer-fixed-commission"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Deprecated"}]},{"type":"text","value":": use "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":privileged-set-line-items"}]},{"type":"text","value":" to have full control of\nthe calculation and the line items."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Calculates a fixed commission for customer, sets the transaction pay out\namount and adds a "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":line-item/customer-fixed-commission"}]},{"type":"text","value":" line-item."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Subsequent executions will create new line items instead of modifying\nthe existing one and will accumulate the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"payinTotal"}]},{"type":"text","value":". For example, a\ntotal price of 100 EUR and two consequtive 10 EUR customer fixed\ncommissions will result in an 120 EUR payin."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Transaction must have a total price"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Commission currency must match the listing currency"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"commission"}]},{"type":"text","value":": a map with mandatory keys "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":amount"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":currency"}]},{"type":"text","value":",\nmandatory. Acts as the fixed commission for a transaction, eg.\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"{:amount 10M :currency \"EUR\"}"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Where:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"amount"}]},{"type":"text","value":", decimal, mandatory. The value of a monetary unit. A decimal\nfollowed with a "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"M"}]},{"type":"text","value":", e.g. 10M."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"currency"}]},{"type":"text","value":", string, mandatory, The three letter currency code of a\nmonetary unit, e.g. \"EUR\"."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actioncalculate-tx-provider-fixed-commission","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actioncalculate-tx-provider-fixed-commission","ariaLabel":"actioncalculate tx provider fixed commission permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/calculate-tx-provider-fixed-commission"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Deprecated"}]},{"type":"text","value":": use "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":privileged-set-line-items"}]},{"type":"text","value":" to have full control of\nthe calculation and the line items."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Calculates a fixed commission for provider, sets the transaction pay out\namount and adds a "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":line-item/provider-fixed-commission"}]},{"type":"text","value":" line-item."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Subsequent executions will create new line items instead of modifying\nthe existing one and will accumulate the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"payoutTotal"}]},{"type":"text","value":". For example, a\ntotal price of 100 EUR and two consequtive 10 EUR provider fixed\ncommissions will result in an 80 EUR payout."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Too large commission (i.e. a negative payout) will cause an error."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Transaction must have a total price"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Commission currency must match the listing currency"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"commission"}]},{"type":"text","value":": a map with mandatory keys "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":amount"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":currency"}]},{"type":"text","value":",\nmandatory. Acts as the fixed commission for a transaction, eg.\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"{:amount 10M :currency \"EUR\"}"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Where:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"amount"}]},{"type":"text","value":", decimal, mandatory. The value of a monetary unit. A decimal\nfollowed with a "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"M"}]},{"type":"text","value":", e.g. 10M."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"currency"}]},{"type":"text","value":", string, mandatory, The three letter currency code of a\nmonetary unit, e.g. \"EUR\"."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actioncalculate-tx-nightly-total","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actioncalculate-tx-nightly-total","ariaLabel":"actioncalculate tx nightly total permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/calculate-tx-nightly-total"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Deprecated"}]},{"type":"text","value":": use "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":privileged-set-line-items"}]},{"type":"text","value":" to have full control of\nthe calculation and the line items."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Calculates transaction total and provider commission from a nightly\nbooking."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actioncalculate-tx-total","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actioncalculate-tx-total","ariaLabel":"actioncalculate tx total permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/calculate-tx-total"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Deprecated"}]},{"type":"text","value":": use "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":privileged-set-line-items"}]},{"type":"text","value":" to have full control of\nthe calculation and the line items."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Same as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/calculate-tx-nightly-total"}]},{"type":"text","value":", kept for backward\ncompatibility."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actioncalculate-tx-daily-total","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actioncalculate-tx-daily-total","ariaLabel":"actioncalculate tx daily total permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/calculate-tx-daily-total"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Deprecated"}]},{"type":"text","value":": use "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":privileged-set-line-items"}]},{"type":"text","value":" to have full control of\nthe calculation and the line items."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Calculates transaction total and provider commission from a daily\nbooking."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actioncalculate-tx-daily-total-price","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actioncalculate-tx-daily-total-price","ariaLabel":"actioncalculate tx daily total price permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/calculate-tx-daily-total-price"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Deprecated"}]},{"type":"text","value":": use "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":privileged-set-line-items"}]},{"type":"text","value":" to have full control of\nthe calculation and the line items"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Calculates transaction total from a daily booking."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Transaction must have a booking"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Listing must have a price"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actioncalculate-tx-nightly-total-price","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actioncalculate-tx-nightly-total-price","ariaLabel":"actioncalculate tx nightly total price permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/calculate-tx-nightly-total-price"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Deprecated"}]},{"type":"text","value":": use "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":privileged-set-line-items"}]},{"type":"text","value":" to have full control of\nthe calculation and the line items"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Calculates transaction total from a nightly booking."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Transaction must have a booking"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Listing must have a price"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actioncalculate-tx-total-daily-booking-exclude-start","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actioncalculate-tx-total-daily-booking-exclude-start","ariaLabel":"actioncalculate tx total daily booking exclude start permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/calculate-tx-total-daily-booking-exclude-start"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Deprecated"}]},{"type":"text","value":": use "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":privileged-set-line-items"}]},{"type":"text","value":" to have full control of\nthe calculation and the line items"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Calculates transaction total from daily booking without start and end\ndates. Can be used for price calculation of bookings where the boundary\ndates are used for delivery and pickup."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Transaction must have a booking"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Listing must have a price"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Booking time must be at least three days as there needs to be one day\nbetween the excluded dates"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actioncalculate-tx-two-units-total-price","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actioncalculate-tx-two-units-total-price","ariaLabel":"actioncalculate tx two units total price permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/calculate-tx-two-units-total-price"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Deprecated"}]},{"type":"text","value":": use "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":privileged-set-line-items"}]},{"type":"text","value":" to have full control of\nthe calculation and the line items."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Calculates transaction total from the quantity params and the price\nmultiplier configuration options."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"total = quantity1 * quantity1-price-multiplier + quantity2 * quantity2-price-multiplier"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Listing must have a price"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"quantity1"}]},{"type":"text","value":": non-negative integer (0, 1, 2, ...), mandatory"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"quantity2"}]},{"type":"text","value":": non-negative integer (0, 1, 2, ...), mandatory"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"quantity1-price-multiplier"}]},{"type":"text","value":": decimal, defaults to 1.0M"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"quantity2-price-multiplier"}]},{"type":"text","value":": decimal, defaults to 1.0M"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actioncalculate-tx-unit-total-price","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actioncalculate-tx-unit-total-price","ariaLabel":"actioncalculate tx unit total price permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/calculate-tx-unit-total-price"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Deprecated"}]},{"type":"text","value":": use "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":privileged-set-line-items"}]},{"type":"text","value":" to have full control of\nthe calculation and the line items"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Calculates transaction total from given quantity and listing price."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Listing must have a price"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"quantity"}]},{"type":"text","value":": positive integer (1, 2, 3, ...), mandatory"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actioncalculate-full-refund","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actioncalculate-full-refund","ariaLabel":"actioncalculate full refund permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/calculate-full-refund"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Calculates full refund for provider. Sets transaction pay in and pay out\namounts to zero and creates reverse line items that undo all the\nprevious line items."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"This action must not be run more than once."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actionset-negotiated-total-price","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actionset-negotiated-total-price","ariaLabel":"actionset negotiated total price permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/set-negotiated-total-price"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Enables price negotiation. When the action is run for the first time it\nadds a new line item that makes the transaction total to match with the\noffer. Subsequent executions update the line item to match the counter\noffer."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"negotiatedTotal"}]},{"type":"text","value":", money, mandatory"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actionset-line-items-and-total","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actionset-line-items-and-total","ariaLabel":"actionset line items and total permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/set-line-items-and-total"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Deprecated"}]},{"type":"text","value":": use "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":privileged-set-line-items"}]},{"type":"text","value":" to have full control of\nthe calculation and the line items."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Enables custom pricing. Sets given line items and calculates totals for\neach line item and for the transaction."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Existing line items will be removed."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"lineItems"}]},{"type":"text","value":": Collection of line items (max 50). Each line items has\nfollowing fields:\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"code"}]},{"type":"text","value":": string, mandatory, indentifies line item type (e.g.\n\"cleaning-fee\")"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"unitPrice"}]},{"type":"text","value":": money, mandatory"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"quantity"}]},{"type":"text","value":": number"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"percentage"}]},{"type":"text","value":": number (e.g. 15.5 for 15.5%)"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"seats"}]},{"type":"text","value":": number"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"units"}]},{"type":"text","value":": number"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Line item must have either "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"quantity"}]},{"type":"text","value":" or "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"percentage"}]},{"type":"text","value":" or both "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"seats"}]},{"type":"text","value":"\nand "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"units"}]},{"type":"text","value":". If "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"quantity"}]},{"type":"text","value":" is provided, the line total will be\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"unitPrice * quantity"}]},{"type":"text","value":". If "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"percentage"}]},{"type":"text","value":" is provided, the line total will\nbe "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"unitPrice * (percentage / 100)"}]},{"type":"text","value":". If "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"seats"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"units"}]},{"type":"text","value":" are provided\nthe line item will contain "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"quantity"}]},{"type":"text","value":" as a product of "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"seats"}]},{"type":"text","value":" and\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"units"}]},{"type":"text","value":" and the line total will be `unitPrice"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"units * seats`."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{"id":"bookings","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#bookings","ariaLabel":"bookings permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Bookings"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actioncreate-pending-booking","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actioncreate-pending-booking","ariaLabel":"actioncreate pending booking permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/create-pending-booking"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Creates a new booking in "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"pending"}]},{"type":"text","value":" state with given start and end time,\nas long as the listing's availability for the given time range permits\nthe booking to be created. Optionally takes booking display start and\nend times as well as seats."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Bookings in "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"pending"}]},{"type":"text","value":" state make a reservation against the listing's\navailability for the corresponding time slot with the given number of\nseats."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The listing must have sufficient availability for the time slot between\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingStart"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingEnd"}]},{"type":"text","value":" (exclusive)."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingStart"}]},{"type":"text","value":": timestamp, mandatory."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Used as the booking start time if the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is set to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is set to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":", the value is converted to UTC midnight\nand used as the booking start date."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Marks the start of the timeslot that will be reserved in the listing's\navailability."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Available in transaction process as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time/booking-start"}]},{"type":"text","value":" timepoint."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingEnd"}]},{"type":"text","value":": timestamp, mandatory"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Used as the booking end time if the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is set to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is set to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":", the value is converted to UTC midnight\nand used as the booking end date. Please note that the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingEnd"}]},{"type":"text","value":" is\nexclusive."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Marks the end of the timeslot that will be reserved in the listing's\navailability."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Available in the transaction process as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time/booking-end"}]},{"type":"text","value":" timepoint."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingDisplayStart"}]},{"type":"text","value":": timestamp, optional."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Moment of time that is displayed to a user as a booking start time.\nDoes not affect availability of the listing."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If not given, defaults to the value of "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingStart"}]},{"type":"text","value":" (normalized to\nUTC midnight, when "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":")."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Available in the transaction process as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time/booking-display-start"}]},{"type":"text","value":"\ntimepoint."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingDisplayEnd"}]},{"type":"text","value":": timestamp, optional."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Moment of time that is displayed to a user as a booking end time. Does\nnot affect availability of the listing."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If not given, defaults to the value of "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingEnd"}]},{"type":"text","value":" (normalized to UTC\nmidnight, when "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":")."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Available in the transaction process as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time/booking-display-end"}]},{"type":"text","value":"\ntimepoint."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"seats"}]},{"type":"text","value":", integer, optional, defaults to 1"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The number of seats that the booking reserves in the listing's\navailability."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":": enum, one of "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time"}]},{"type":"text","value":". Defaults to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":". If set to\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":" normalizes "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingStart"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingEnd"}]},{"type":"text","value":" values to midnight\nUTC."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actioncreate-proposed-booking","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actioncreate-proposed-booking","ariaLabel":"actioncreate proposed booking permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/create-proposed-booking"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Creates a new booking in "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"proposed"}]},{"type":"text","value":" state with given start and end time,\nas long as the listing's availability for the given time range permits\nthe booking to be created. Optionally takes booking display start and\nend times as well as seats."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Bookings in "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"proposed"}]},{"type":"text","value":" state do not affect the listing's availability,\ni.e. they do not reserve the time slot, until they are accepted using\nthe "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/accept-booking"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The listing must have sufficient availability for the time slot between\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingStart"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingEnd"}]},{"type":"text","value":" (exclusive)."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingStart"}]},{"type":"text","value":": timestamp, mandatory."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Used as the booking start time if the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is set to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is set to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":", the value is converted to UTC midnight\nand used as the booking start date."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Marks the start of the timeslot that will be reserved in the listing's\navailability, if the booking is subsequently accepted."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Available in transaction process as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time/booking-start"}]},{"type":"text","value":" timepoint."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingEnd"}]},{"type":"text","value":": timestamp, mandatory"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Used as the booking end time if the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is set to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is set to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":", the value is converted to UTC midnight\nand used as the booking end date. Please note that the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingEnd"}]},{"type":"text","value":" is\nexclusive."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Marks the end of the timeslot that will be reserved in the listing's\navailability, if the booking is subsequently accepted."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Available in the transaction process as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time/booking-end"}]},{"type":"text","value":" timepoint."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingDisplayStart"}]},{"type":"text","value":": timestamp, optional."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Moment of time that is displayed to a user as a booking start time.\nDoes not affect availability of the listing."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If not given, defaults to the value of "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingStart"}]},{"type":"text","value":" (normalized to\nUTC midnight, when "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":")."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Available in the transaction process as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time/booking-display-start"}]},{"type":"text","value":"\ntimepoint."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingDisplayEnd"}]},{"type":"text","value":": timestamp, optional."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Moment of time that is displayed to a user as a booking end time. Does\nnot affect availability of the listing."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If not given, defaults to the value of "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingEnd"}]},{"type":"text","value":" (normalized to UTC\nmidnight, when "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":")."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Available in the transaction process as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time/booking-display-end"}]},{"type":"text","value":"\ntimepoint."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"seats"}]},{"type":"text","value":", integer, optional, defaults to 1"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The number of seats that the booking reserves in the listing's\navailability."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":": enum, one of "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time"}]},{"type":"text","value":". Defaults to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":". If set to\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":" normalizes "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingStart"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingEnd"}]},{"type":"text","value":" values to midnight\nUTC."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actioncreate-booking","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actioncreate-booking","ariaLabel":"actioncreate booking permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/create-booking"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"DEPRECATED"}]},{"type":"text","value":": use "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/create-pending-booking"}]},{"type":"text","value":" or\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/create-proposed-booking"}]},{"type":"text","value":" instead."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Creates a new booking in "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"pending"}]},{"type":"text","value":" state with given start and end time.\nOptionally takes booking display start and end times as well as seats."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingStart"}]},{"type":"text","value":": timestamp, mandatory."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Used as the booking start time if the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is set to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is set to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":", the value is converted to UTC midnight\nand used as the booking start date."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Marks the start of the timeslot that will be reserved in the listing's\navailability."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Available in transaction process as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time/booking-start"}]},{"type":"text","value":" timepoint."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingEnd"}]},{"type":"text","value":": timestamp, mandatory"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Used as the booking end time if the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is set to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is set to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":", the value is converted to UTC midnight\nand used as the booking end date. Please note that the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingEnd"}]},{"type":"text","value":" is\nexclusive."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Marks the end of the timeslot that will be reserved in the listing's\navailability."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Available in the transaction process as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time/booking-end"}]},{"type":"text","value":" timepoint."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingDisplayStart"}]},{"type":"text","value":": timestamp, optional."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Moment of time that is displayed to a user as a booking start time.\nDoes not affect availability of the listing."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If not given, defaults to the value of "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingStart"}]},{"type":"text","value":" (normalized to\nUTC midnight, when "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":")."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Available in the transaction process as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time/booking-display-start"}]},{"type":"text","value":"\ntimepoint."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingDisplayEnd"}]},{"type":"text","value":": timestamp, optional."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Moment of time that is displayed to a user as a booking end time. Does\nnot affect availability of the listing."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If not given, defaults to the value of "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingEnd"}]},{"type":"text","value":" (normalized to UTC\nmidnight, when "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":")."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Available in the transaction process as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time/booking-display-end"}]},{"type":"text","value":"\ntimepoint."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"seats"}]},{"type":"text","value":", integer, optional, defaults to 1"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The number of seats that the booking reserves in the listing's\navailability."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"observe-availability?"}]},{"type":"text","value":": boolean, defaults to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"false"}]},{"type":"text","value":". If set to\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"true"}]},{"type":"text","value":", prevents creating new bookings if the booking time is not\navailable."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":": enum, one of "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time"}]},{"type":"text","value":". Defaults to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":". If set to\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":" normalizes "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingStart"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingEnd"}]},{"type":"text","value":" values to midnight\nUTC."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actionaccept-booking","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actionaccept-booking","ariaLabel":"actionaccept booking permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/accept-booking"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Marks booking as accepted."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Bookings in "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"accepted"}]},{"type":"text","value":" state make a reservation against the listing's\navailability for the corresponding time slot and number of seats."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Transaction must have a booking"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Booking must be in either "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"proposed"}]},{"type":"text","value":" or "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"pending"}]},{"type":"text","value":" state"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"If the booking is in proposed state, the listing must have sufficient\navailability for the time slot defined by the booking."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actionupdate-booking","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actionupdate-booking","ariaLabel":"actionupdate booking permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/update-booking"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Update the details of a booking - start and end times, start and end\ndisplay times and seats. If one end of a time range is given, so must be\nthe other."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"When updated, the booking remains in the same state it was before the\nupdate."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Note that only the given attributes are updated and ones that are left\nour remain unchanged. In particular, the booking display times are NOT\nupdated automatically when the booking start/end time is updated."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Transaction must have a booking"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Booking must be in either "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"proposed"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"pending"}]},{"type":"text","value":" or "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"accepted"}]},{"type":"text","value":" state"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The listing must have sufficient availability for the new (updated)\ntime slot defined by the booking."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingStart"}]},{"type":"text","value":": timestamp, optional, must be given if "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingEnd"}]},{"type":"text","value":" is\ngiven"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Used as the booking start time if the booking "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If the booking "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":", the value is converted to UTC\nmidnight and used as the booking start date."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Marks the start of the timeslot that will be reserved in the listing's\navailability."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Available in transaction process as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time/booking-start"}]},{"type":"text","value":" timepoint."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingEnd"}]},{"type":"text","value":": timestamp, optional, must be given if "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingStart"}]},{"type":"text","value":" is\ngiven"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Used as the booking end time if the booking "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If the booking "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":", the value is converted to UTC\nmidnight and used as the booking end date. Please note that the\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingEnd"}]},{"type":"text","value":" is exclusive."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Marks the end of the timeslot that will be reserved in the listing's\navailability."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Available in the transaction process as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time/booking-end"}]},{"type":"text","value":" timepoint."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingDisplayStart"}]},{"type":"text","value":": timestamp, optional, must be given if\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingDisplayEnd"}]},{"type":"text","value":" is given"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Moment of time that is displayed to a user as a booking start time.\nDoes not affect availability of the listing."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If not given, defaults to the value of "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingStart"}]},{"type":"text","value":" (normalized to\nUTC midnight, when "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":")."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Available in the transaction process as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time/booking-display-start"}]},{"type":"text","value":"\ntimepoint."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingDisplayEnd"}]},{"type":"text","value":": timestamp, optional, must be given if\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingDisplayStart"}]},{"type":"text","value":" is given"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Moment of time that is displayed to a user as a booking end time. Does\nnot affect availability of the listing."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If not given, defaults to the value of "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingEnd"}]},{"type":"text","value":" (normalized to UTC\nmidnight, when "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":" is "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":")."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Available in the transaction process as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time/booking-display-end"}]},{"type":"text","value":"\ntimepoint."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"seats"}]},{"type":"text","value":", integer, optional"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The number of seats that the booking reserves in the listing's\navailability."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"type"}]},{"type":"text","value":": enum, one of "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":time"}]},{"type":"text","value":". Defaults to "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":". If set to\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":day"}]},{"type":"text","value":" normalizes "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingStart"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bookingEnd"}]},{"type":"text","value":" values to midnight\nUTC. The value here should match the booking type set for the action\nthat created the booking earlier in the transaction process."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actioncancel-booking","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actioncancel-booking","ariaLabel":"actioncancel booking permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/cancel-booking"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Cancel an accepted booking."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Transaction must have a booking"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Booking must be in the accepted state"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actiondecline-booking","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actiondecline-booking","ariaLabel":"actiondecline booking permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/decline-booking"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Decline a pending or proposed booking."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Transaction must have a booking"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Booking must be in either "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"pending"}]},{"type":"text","value":" or "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"proposed"}]},{"type":"text","value":" state"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{"id":"stock-reservations","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#stock-reservations","ariaLabel":"stock reservations permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Stock reservations"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actioncreate-pending-stock-reservation","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actioncreate-pending-stock-reservation","ariaLabel":"actioncreate pending stock reservation permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/create-pending-stock-reservation"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Creates a new stock reservation in "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"pending"}]},{"type":"text","value":" state with given stock, as\nlong as the listing's current stock permits the reservation to be\ncreated."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"A stock reservation in "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"pending"}]},{"type":"text","value":" state decreases the listing's stock - a\nstock adjustment is created having the given "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"stockReservationQuantity"}]},{"type":"text","value":"\n(with a negative sign)."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"There can be at most one stock reservation per transaction."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The transaction must not already have a stock reservation."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The listing must have sufficient stock available."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"stockReservationQuantity"}]},{"type":"text","value":": positive integer, mandatory."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The quantity of stock that is reserved from a listing's stock."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actioncreate-proposed-stock-reservation","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actioncreate-proposed-stock-reservation","ariaLabel":"actioncreate proposed stock reservation permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/create-proposed-stock-reservation"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Creates a new stock reservation in "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"proposed"}]},{"type":"text","value":" state with given stock, as\nlong as the listing's stock permits the reservation to be created."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"A stock reservation in "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"proposed"}]},{"type":"text","value":" state does not affect the listing's\navailable stock, i.e. the listing's stock is not decreased by the\nproposed reservation quantity until the reservation is accepted using\nthe "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/accept-stock-reservation"}]},{"type":"text","value":" action."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"There can be at most one stock reservation per transaction."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The transaction must not already have a stock reservation."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The listing must have sufficient stock available."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"stockReservationQuantity"}]},{"type":"text","value":": positive integer, mandatory."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The quantity of stock for the reservation."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actionaccept-stock-reservation","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actionaccept-stock-reservation","ariaLabel":"actionaccept stock reservation permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/accept-stock-reservation"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Mark stock reservation as accepted."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"A stock reservation in "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"accepted"}]},{"type":"text","value":" state decreases the listing's stock.\nThat means that if the stock reservation was previously in a "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"proposed"}]},{"type":"text","value":"\nstate, a new stock adjustment is created with the quantity of the stock\nreservation (with a negative sign)."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The transaction must have a stock reservation"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The stock reservation must be in either "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"proposed"}]},{"type":"text","value":" or "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"pending"}]},{"type":"text","value":" state"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"If the stock reservation is in "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"proposed"}]},{"type":"text","value":" state, the listing must have\nsufficient stock so that the stock reservation can be accepted."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actiondecline-stock-reservation","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actiondecline-stock-reservation","ariaLabel":"actiondecline stock reservation permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/decline-stock-reservation"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Decline a pending or proposed stock reservation."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If the stock reservation was previously in a "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"pending"}]},{"type":"text","value":" state, a new\nstock adjustment is created for the listing, reversing the adjustment\nthat resulted from the stock reservation being created. As a result, the\nstock reservation will have no net impact on the listing's available\nstock."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Note: It is recommended to place this action last in the transition's\naction list whenever possible."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The transaction must have a stock reservation"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The stock reservation must be in either "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"proposed"}]},{"type":"text","value":" or "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"pending"}]},{"type":"text","value":" state"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actioncancel-stock-reservation","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actioncancel-stock-reservation","ariaLabel":"actioncancel stock reservation permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/cancel-stock-reservation"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Cancel an accepted stock reservation."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"A new stock adjustment is created for the listing, reversing the\nadjustment that resulted from the stock reservation being created or\naccepted. As a result, the stock reservation will have no net impact on\nthe listing's available stock."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Note: It is recommended to place this action last in the transition's\naction list whenever possible."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The transaction must have a stock reservation"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The stock reservation must be in "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"accepted"}]},{"type":"text","value":" state"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{"id":"reviews","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#reviews","ariaLabel":"reviews permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Reviews"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actionpost-review-by-customer","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actionpost-review-by-customer","ariaLabel":"actionpost review by customer permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/post-review-by-customer"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Action for customer to post a review of provider."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The review is left in pending state. Executing "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/publish-reviews"}]},{"type":"text","value":"\nwill make them publicly available."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Transaction must not be reviewed by customer already"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"reviewRating"}]},{"type":"text","value":", integer from 1 to 5, mandatory"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"reviewContent"}]},{"type":"text","value":", written review, string, mandatory"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actionpost-review-by-provider","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actionpost-review-by-provider","ariaLabel":"actionpost review by provider permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/post-review-by-provider"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Action for provider to post a review of customer."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The review is left in pending state. Executing "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/publish-reviews"}]},{"type":"text","value":"\nwill make them publicly available."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Transaction must not be reviewed by provider already"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"reviewRating"}]},{"type":"text","value":", integer from 1 to 5, mandatory"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"reviewContent"}]},{"type":"text","value":", written review, string, mandatory"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actionpublish-reviews","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actionpublish-reviews","ariaLabel":"actionpublish reviews permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/publish-reviews"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Action to publish any reviews in the transaction."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{"id":"extended-data","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#extended-data","ariaLabel":"extended data permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Extended data"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actionreveal-customer-protected-data","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actionreveal-customer-protected-data","ariaLabel":"actionreveal customer protected data permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/reveal-customer-protected-data"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Merge customer protected data into transaction protected data."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"key-mapping"}]},{"type":"text","value":": map (keyword -> keyword), optional"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Defines which keys are revealed to the transaction. Also can be used\nto rename keys so that the transaction's protected data will use\ndifferent keys than the user's protected data does. For example,the\nfollowing config will reveal customer's phoneNumber attribute to the\ntransaction and rename it to customerPhoneNumber:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"text"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-text"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"{:key-mapping {:phoneNumber :customerPhoneNumber}}"}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"More than one key can be revealed at the same time:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"text"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-text"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"{:key-mapping {:phoneNumber :customerPhoneNumber\n               :address :customerAddress}}"}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Renaming is optional. If you wish to keep the same key, you can repeat\nit as the value:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"text"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-text"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"{:key-mapping {:address :address}}"}]}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actionreveal-provider-protected-data","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actionreveal-provider-protected-data","ariaLabel":"actionreveal provider protected data permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/reveal-provider-protected-data"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Merge provider protected data into transaction protected data."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"key-mapping"}]},{"type":"text","value":": map (keyword -> keyword), optional"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Defines which keys are revealed to the transaction. Also can be used\nto rename keys so that the transaction's protected data will use\ndifferent keys than the user's protected data does. For example,the\nfollowing config will reveal provider's phoneNumber attribute to the\ntransaction and rename it to providerPhoneNumber:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"text"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-text"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"{:key-mapping {:phoneNumber :providerPhoneNumber}}"}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"More than one key can be revealed at the same time:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"text"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-text"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"{:key-mapping {:phoneNumber :providerPhoneNumber\n               :address :providerAddress}}"}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Renaming is optional. If you wish to keep the same key, you can repeat\nit as the value:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"text"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-text"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-text"]},"children":[{"type":"text","value":"{:key-mapping {:address :address}}"}]}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actionupdate-protected-data","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actionupdate-protected-data","ariaLabel":"actionupdate protected data permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/update-protected-data"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Merge given data to the protected data of the transaction."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"protectedData"}]},{"type":"text","value":": JSON object, max 50KB, optional"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actionprivileged-update-metadata","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actionprivileged-update-metadata","ariaLabel":"actionprivileged update metadata permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/privileged-update-metadata"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Merge given data into the metadata of the transaction. This action\nrequires that the transition is made from a trusted context."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"metadata"}]},{"type":"text","value":": JSON object, max 50KB, optional"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{"id":"stripe-integration","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#stripe-integration","ariaLabel":"stripe integration permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Stripe integration"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actionstripe-create-payment-intent","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actionstripe-create-payment-intent","ariaLabel":"actionstripe create payment intent permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/stripe-create-payment-intent"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Action for creating a Stripe PaymentIntent for the transaction. This\naction supports card payments or equivalent (such as using wallets like\nGoogle Pay and Apple Pay)."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Payment Intents are the main supported way to collect payments.\nTransaction processes need to use them especially if they want to be\nSCA-compatible."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"After the PaymentIntent is created, it's ID and client secret are\ntemporarily accessible in the Flex transaction protected data under the\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"stripePaymentIntents"}]},{"type":"text","value":" key in the following form:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"json"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-json"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-json"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"{"}]},{"type":"text","value":"\n  "},{"type":"element","tagName":"span","properties":{"className":["token","property"]},"children":[{"type":"text","value":"\"default\""}]},{"type":"element","tagName":"span","properties":{"className":["token","operator"]},"children":[{"type":"text","value":":"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"{"}]},{"type":"text","value":"\n    "},{"type":"element","tagName":"span","properties":{"className":["token","property"]},"children":[{"type":"text","value":"\"stripePaymentIntentId\""}]},{"type":"element","tagName":"span","properties":{"className":["token","operator"]},"children":[{"type":"text","value":":"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","string"]},"children":[{"type":"text","value":"\"pi_1EXSEzLSea1GQQ9x5PnNTeuS\""}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":","}]},{"type":"text","value":"\n    "},{"type":"element","tagName":"span","properties":{"className":["token","property"]},"children":[{"type":"text","value":"\"stripePaymentIntentClientSecret\""}]},{"type":"element","tagName":"span","properties":{"className":["token","operator"]},"children":[{"type":"text","value":":"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","string"]},"children":[{"type":"text","value":"\"pi_1EXSEzLSea1GQQ9x5PnNTeuS_secret_xxxxxxxxxxxxxxxxxxxxxxxxx\""}]},{"type":"text","value":"\n  "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"}"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"}"}]}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Client applications can use the PaymentIntent client secret in order to\nhandle payment and confirm the PaymentIntent client-side. The\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"stripePaymentIntents"}]},{"type":"text","value":" key is removed from the protected data once the\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/stripe-confirm-payment-intent"}]},{"type":"text","value":" is used."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The transaction must already have pricing information (i.e. payin and\npayout totals) calculated."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The calculated payin must be greater than zero"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The calculated payin must be greater than or equal to the payout"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"If "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":use-customer-default-payment-method?"}]},{"type":"text","value":" is set "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"true"}]},{"type":"text","value":", customer\nmust have Stripe Customer and default payment method set."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters:"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"paymentMethod"}]},{"type":"text","value":", string, optional. Stripe PaymentMethod ID of payment\nmethod to be used in the payment. If not given, client is responsible\nfor attaching a PaymentMethod to the PaymentIntent via e.g. Stripe.js\nSDK."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"setupPaymentMethodForSaving"}]},{"type":"text","value":", boolean, optional. If set to true, the\nPaymentIntent is created in such a way so that the PaymentMethod used\nin the payment can be later attached to a Stripe Customer. Otherwise,\nthe PaymentMethod (if new) can not be used in any other way again\nafter the payment. After payment is done via the transaction process,\nthe client can use Marketplace API operations\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/stripe_customer/add_payment_method"}]},{"type":"text","value":" or "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"/stripe_customer/create"}]},{"type":"text","value":" to\nattach the payment method to a Customer or create a new Customer if\none didn't exist."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options:"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":use-customer-default-payment-method?"}]},{"type":"text","value":", boolean, optional. If set to\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"true"}]},{"type":"text","value":", the payment intent is created using the Customer's default\npayment method and it is created as an off-session payment in Stripe\n(i.e. customer not present). Intended to be used in transitions where\ncustomer is not present (i.e. delayed transitions, or ones triggered\nby operator or provider). This tells Stripe to attempt to exempt the\npayment from SCA. However, the bank in question may still require\nauthentication. If the bank requires authentication from the customer,\nor declines the charge for any reason, the Stripe API call will fail\nand the transition using this action will fail. The action also\nautomatically confirms the payment intent, i.e.\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/stripe-confirm-payment-intent"}]},{"type":"text","value":" must not be included in this\nor subsequent transitions."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actionstripe-create-payment-intent-push","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actionstripe-create-payment-intent-push","ariaLabel":"actionstripe create payment intent push permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/stripe-create-payment-intent-push"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Action for creating a Stripe Payment Intent for use with synchronous\npush payment methods. The following payment methods are supported:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Alipay"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Bancontact"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"EPS"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"giropay"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"iDEAL"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Przelewy24"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"After the PaymentIntent is created, it's ID and client secret are\ntemporarily accessible in the Flex transaction protected data under the\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"stripePaymentIntents"}]},{"type":"text","value":" key in the following form:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":["gatsby-highlight"],"dataLanguage":"json"},"children":[{"type":"element","tagName":"pre","properties":{"className":["language-json"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-json"]},"children":[{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"{"}]},{"type":"text","value":"\n  "},{"type":"element","tagName":"span","properties":{"className":["token","property"]},"children":[{"type":"text","value":"\"default\""}]},{"type":"element","tagName":"span","properties":{"className":["token","operator"]},"children":[{"type":"text","value":":"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"{"}]},{"type":"text","value":"\n    "},{"type":"element","tagName":"span","properties":{"className":["token","property"]},"children":[{"type":"text","value":"\"stripePaymentIntentId\""}]},{"type":"element","tagName":"span","properties":{"className":["token","operator"]},"children":[{"type":"text","value":":"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","string"]},"children":[{"type":"text","value":"\"pi_1EXSEzLSea1GQQ9x5PnNTeuS\""}]},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":","}]},{"type":"text","value":"\n    "},{"type":"element","tagName":"span","properties":{"className":["token","property"]},"children":[{"type":"text","value":"\"stripePaymentIntentClientSecret\""}]},{"type":"element","tagName":"span","properties":{"className":["token","operator"]},"children":[{"type":"text","value":":"}]},{"type":"text","value":" "},{"type":"element","tagName":"span","properties":{"className":["token","string"]},"children":[{"type":"text","value":"\"pi_1EXSEzLSea1GQQ9x5PnNTeuS_secret_xxxxxxxxxxxxxxxxxxxxxxxxx\""}]},{"type":"text","value":"\n  "},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"}"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"span","properties":{"className":["token","punctuation"]},"children":[{"type":"text","value":"}"}]}]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Client applications can use the PaymentIntent client secret in order to\nhandle payment client-side. Typically that involes using Stripe.js SDK\nto attach a payment method and handle the bank redirect where the\ncustomer confirms the payment. The "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"stripePaymentIntents"}]},{"type":"text","value":" is removed\nfrom the protected data once the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/stripe-confirm-payment-intent"}]},{"type":"text","value":"\nis used."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"warning","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Payments with synchronous push payment methods are captured and made in\nfull immediately when confirmed by the customer via their bank or app.\nUnlike with card payments, there is no preauthorization stage. This\nmeans that when using a push payment intent,\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/stripe-confirm-payment-intent"}]},{"type":"text","value":" is required but\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/stripe-capture-payment-intent"}]},{"type":"text","value":" is not. After the payment is\nmade, it can only be reversed with a full refund using the\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/stripe-refund-payment"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Unlike cancelling a preauthorization, "},{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"creating a full refund does not\nrefund Stripe's own payment processing fees to the Stripe platform\naccount"}]},{"type":"text","value":". Therefore, it is recommended that the transaction process\ntakes that into account. Typically, this means that the transaction\nprocess is some form of \"instant booking\" where provider does not need\nto accept the booking at all, or alternatively a process where the\nprovider accepts the booking before the payment is made."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The transaction must already have pricing information (i.e. payin and\npayout totals) calculated."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The calculated payin must be greater than zero"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The calculated payin must be greater than or equal to the payout"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters:"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"paymentMethodTypes"}]},{"type":"text","value":", array of strings, mandatory. List of payment\nmethod types that are allowed to be used to complete this payment\nintent. Must be one or more of the following: "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"alipay"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"bancontact"}]},{"type":"text","value":",\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"eps"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"giropay"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"ideal"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"p24"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"paymentMethod"}]},{"type":"text","value":", string, optional. Stripe PaymentMethod ID of payment\nmethod to be used in the payment. If not given, client is responsible\nfor attaching a PaymentMethod to the PaymentIntent via e.g. Stripe.js\nSDK."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Note"}]},{"type":"text","value":" that the allowed payment method types are passed as transition\nparameters. If implementations wish to strictly validate which payment\nmethods are allowed to fulfill a payment, use a privileged transition\nand validate the set of allowed payment methods in your server."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options:"}]},{"type":"text","value":" -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actionstripe-confirm-payment-intent","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actionstripe-confirm-payment-intent","ariaLabel":"actionstripe confirm payment intent permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/stripe-confirm-payment-intent"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Action for confirming payment intent that is in pending state."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If the payment intent was created with\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/stripe-create-payment-intent"}]},{"type":"text","value":" (a card payment), a\npreauthorization is placed on the card. The payment then can be captured\nin full by using "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/stripe-capture-payment-intent"}]},{"type":"text","value":" within 7 days\nof creating the payment intent, or the preauthorization can be released\nby using "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/stripe-refund-payment"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"IMPORTANT"}]},{"type":"text","value":" On the other hand, payments with synchronous push payment\nmethods (created with "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/stripe-create-payment-intent-push"}]},{"type":"text","value":") are\ncaptured and made in full immediately when confirmed by the customer via\ntheir bank or app and unlike card payments there is no preauthorization\nstage. After the payment is made, it can only be reversed with a full\nrefund using "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/stripe-refund-payment"}]},{"type":"text","value":". Unlike cancelling a\npreauthorization, creating a full refund does not refund Stripe's own\npayment processing fees to the Stripe platform account. Therefore, it is\nrecommended that the transaction process takes that into account.\nTypically, this means that the transaction process is some form of\n\"instant booking\" where provider does not need to accept the booking at\nall, or alternatively a process where the provider accepts the booking\nbefore the payment is made."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Transaction must have a payment created with\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/stripe-create-payment-intent"}]},{"type":"text","value":" or\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/stripe-create-payment-intent-push"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters:"}]},{"type":"text","value":" -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options:"}]},{"type":"text","value":" -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actionstripe-capture-payment-intent","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actionstripe-capture-payment-intent","ariaLabel":"actionstripe capture payment intent permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/stripe-capture-payment-intent"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Action for capturing a confirmed Stripe PaymentIntent. If the\nPaymentIntent was created with\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/stripe-create-payment-intent-push"}]},{"type":"text","value":", the PaymentIntent is\ncaptured automatically already when the payment is confirmed and this\naction will have no effect. Uncaptured payment intents are valid for\nseven days, after which they are automatically canceled by Stripe."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions:"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Transaction must have a payment that has been confirmed with\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/stripe-confirm-payment-intent"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Provider must have connected Stripe account"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters:"}]},{"type":"text","value":" -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options:"}]},{"type":"text","value":" -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actionstripe-create-payout","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actionstripe-create-payout","ariaLabel":"actionstripe create payout permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/stripe-create-payout"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Create pay out to external bank account. The managed account must have\nsufficient available balance."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Transaction must have pay-out value set"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Transaction must have a Stripe transfer"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actionstripe-refund-charge","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actionstripe-refund-charge","ariaLabel":"actionstripe refund charge permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/stripe-refund-charge"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"DEPRECATED"}]},{"type":"text","value":": same as "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/stripe-refund-payment"}]},{"type":"text","value":", use that\ninstead"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actionstripe-refund-payment","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actionstripe-refund-payment","ariaLabel":"actionstripe refund payment permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/stripe-refund-payment"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Refund (in full) a Stripe payment. Supports both cancelling a\nPaymentIntent that has not yet been captured, as well as issuing a\nStripe refund for the charge if the PaymentIntent was captured."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":":"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The transaction must have a payment created with either\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/stripe-create-payment-intent"}]},{"type":"text","value":" or\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/stripe-create-payment-intent-push"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The transaction must not yet have passed through a transition using\n"},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":":action/stripe-create-payout"}]}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{"id":"testing","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#testing","ariaLabel":"testing permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Testing"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"actionfail","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#actionfail","ariaLabel":"actionfail permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":":action/fail"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Action that always fails. Useful for testing."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Preconditions"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Parameters"}]},{"type":"text","value":": -"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"strong","properties":{},"children":[{"type":"text","value":"Configuration options"}]},{"type":"text","value":": -"}]}],"data":{"quirksMode":false}},"headings":[{"value":"Actions","depth":2},{"value":"Transaction initialization","depth":3},{"value":":action.initializer/init-listing-tx","depth":4},{"value":"Pricing","depth":3},{"value":":action/privileged-set-line-items","depth":4},{"value":":action/calculate-tx-customer-commission","depth":4},{"value":":action/calculate-tx-provider-commission","depth":4},{"value":":action/calculate-tx-customer-fixed-commission","depth":4},{"value":":action/calculate-tx-provider-fixed-commission","depth":4},{"value":":action/calculate-tx-nightly-total","depth":4},{"value":":action/calculate-tx-total","depth":4},{"value":":action/calculate-tx-daily-total","depth":4},{"value":":action/calculate-tx-daily-total-price","depth":4},{"value":":action/calculate-tx-nightly-total-price","depth":4},{"value":":action/calculate-tx-total-daily-booking-exclude-start","depth":4},{"value":":action/calculate-tx-two-units-total-price","depth":4},{"value":":action/calculate-tx-unit-total-price","depth":4},{"value":":action/calculate-full-refund","depth":4},{"value":":action/set-negotiated-total-price","depth":4},{"value":":action/set-line-items-and-total","depth":4},{"value":"Bookings","depth":3},{"value":":action/create-pending-booking","depth":4},{"value":":action/create-proposed-booking","depth":4},{"value":":action/create-booking","depth":4},{"value":":action/accept-booking","depth":4},{"value":":action/update-booking","depth":4},{"value":":action/cancel-booking","depth":4},{"value":":action/decline-booking","depth":4},{"value":"Stock reservations","depth":3},{"value":":action/create-pending-stock-reservation","depth":4},{"value":":action/create-proposed-stock-reservation","depth":4},{"value":":action/accept-stock-reservation","depth":4},{"value":":action/decline-stock-reservation","depth":4},{"value":":action/cancel-stock-reservation","depth":4},{"value":"Reviews","depth":3},{"value":":action/post-review-by-customer","depth":4},{"value":":action/post-review-by-provider","depth":4},{"value":":action/publish-reviews","depth":4},{"value":"Extended data","depth":3},{"value":":action/reveal-customer-protected-data","depth":4},{"value":":action/reveal-provider-protected-data","depth":4},{"value":":action/update-protected-data","depth":4},{"value":":action/privileged-update-metadata","depth":4},{"value":"Stripe integration","depth":3},{"value":":action/stripe-create-payment-intent","depth":4},{"value":":action/stripe-create-payment-intent-push","depth":4},{"value":":action/stripe-confirm-payment-intent","depth":4},{"value":":action/stripe-capture-payment-intent","depth":4},{"value":":action/stripe-create-payout","depth":4},{"value":":action/stripe-refund-charge","depth":4},{"value":":action/stripe-refund-payment","depth":4},{"value":"Testing","depth":3},{"value":":action/fail","depth":4}]}},"pageContext":{"slug":"transaction-process-actions","category":"references"}},
    "staticQueryHashes": ["3794076007","439097193","717698143"]}