Skip to content

Instantly share code, notes, and snippets.

View lifedraft's full-sized avatar

Stanislav lifedraft

View GitHub Profile
Billing
FetchBilling
# context:
# addresses: (filtered for tenant)
# isFilterd: if empty addresses
# billingAddress (prefill: registrationData | profile | cart billingAddress)
# selection: uuid | new billing address
done -> Guard
Guard
Shipping
FetchDeliveryAddressService*
# context:
# addresses: (filtered for tenant)
# isFilterd: if addresses filtered
# deliveryAddress (prefill: cart billingAddress + deliveryDate => scalar Date)
# selection: uuid | new delivery address | useBillingAsShipping
# billingAddressApplicable: true
done -> Guard
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}