Versions in this module Expand all Collapse all v0 v0.0.3 Mar 13, 2024 Changes in this version + type AddressForm struct + AddressLine1 string + AddressLine2 string + City string + Company string + Country string + CountryCode string + Email string + Firstname string + Lastname string + MiddleName string + PhoneAreaCode string + PhoneCountryCode string + PhoneNumber string + PostCode string + RegionCode string + Salutation string + State string + Street string + StreetNr string + Title string + Vat string + func (a *AddressForm) LoadFromCartAddress(address cart.Address) + func (a *AddressForm) LoadFromCustomerAddress(address domain.Address) + func (a *AddressForm) MapToDomainAddress() cart.Address + type BillingAddressForm AddressForm + type BillingAddressFormController struct + func (c *BillingAddressFormController) GetUnsubmittedForm(ctx context.Context, r *web.Request) (*domain.Form, error) + func (c *BillingAddressFormController) HandleFormAction(ctx context.Context, r *web.Request) (form *domain.Form, actionSuccessful bool, err error) + func (c *BillingAddressFormController) Inject(responder *web.Responder, applicationCartService *cartApplication.CartService, ...) + type BillingAddressFormService struct + func (p *BillingAddressFormService) GetFormData(ctx context.Context, req *web.Request) (interface{}, error) + func (p *BillingAddressFormService) Inject(applicationCartReceiverService *cartApplication.CartReceiverService, ...) + type DefaultPersonalDataForm struct + Address AddressForm + DateOfBirth string + PassportCountry string + PassportNumber string + func (p *DefaultPersonalDataForm) Inject(cfg ...) *DefaultPersonalDataForm + func (p *DefaultPersonalDataForm) MapPerson() *cart.Person + func (p DefaultPersonalDataForm) AdditionalData(key string) string + func (p DefaultPersonalDataForm) MapAdditionalData() *cart.AdditionalData + type DefaultPersonalDataFormProvider func() *DefaultPersonalDataForm + type DefaultPersonalDataFormService struct + func (p *DefaultPersonalDataFormService) Decode(_ context.Context, _ *web.Request, values url.Values, _ interface{}) (interface{}, error) + func (p *DefaultPersonalDataFormService) GetFormData(ctx context.Context, req *web.Request) (interface{}, error) + func (p *DefaultPersonalDataFormService) Inject(applicationCartReceiverService *cartApplication.CartReceiverService, ...) *DefaultPersonalDataFormService + func (p *DefaultPersonalDataFormService) Validate(ctx context.Context, req *web.Request, ...) (*domain.ValidationInfo, error) + type DeliveryForm struct + DeliveryAddress AddressForm + DesiredTime time.Time + LocationCode string + ShippingCarrier string + ShippingMethod string + UseBillingAddress bool + func (d *DeliveryForm) MapToDeliveryInfo(currentInfo cartDomain.DeliveryInfo) cartDomain.DeliveryInfo + type DeliveryFormController struct + func (c *DeliveryFormController) GetUnsubmittedForm(ctx context.Context, r *web.Request) (*domain.Form, error) + func (c *DeliveryFormController) HandleFormAction(ctx context.Context, r *web.Request) (form *domain.Form, actionSuccessful bool, err error) + func (c *DeliveryFormController) Inject(responder *web.Responder, applicationCartService *cartApplication.CartService, ...) + type DeliveryFormService struct + func (p *DeliveryFormService) GetFormData(ctx context.Context, req *web.Request) (interface{}, error) + func (p *DeliveryFormService) Inject(applicationCartReceiverService *cartApplication.CartReceiverService) + func (p *DeliveryFormService) Validate(ctx context.Context, req *web.Request, ...) (*domain.ValidationInfo, error) + type PersonalDataForm interface + MapAdditionalData func() *cart.AdditionalData + MapPerson func() *cart.Person + type PersonalDataFormController struct + func (c *PersonalDataFormController) GetUnsubmittedForm(ctx context.Context, r *web.Request) (*domain.Form, error) + func (c *PersonalDataFormController) HandleFormAction(ctx context.Context, r *web.Request) (form *domain.Form, actionSuccessFull bool, err error) + func (c *PersonalDataFormController) Inject(responder *web.Responder, applicationCartService *cartApplication.CartService, ...) *PersonalDataFormController + type SimplePaymentForm struct + Gateway string + Method string + type SimplePaymentFormController struct + func (c *SimplePaymentFormController) GetUnsubmittedForm(ctx context.Context, r *web.Request) (*domain.Form, error) + func (c *SimplePaymentFormController) HandleFormAction(ctx context.Context, r *web.Request) (form *domain.Form, actionSuccessFull bool, err error) + func (c *SimplePaymentFormController) Inject(responder *web.Responder, applicationCartService *cartApplication.CartService, ...) + type SimplePaymentFormService struct + func (p *SimplePaymentFormService) GetFormData(ctx context.Context, req *web.Request) (interface{}, error) + func (p *SimplePaymentFormService) Inject(applicationCartReceiverService *cartApplication.CartReceiverService, ...) + func (p *SimplePaymentFormService) MapFormToPaymentSelection(f SimplePaymentForm, currentCart *cartDomain.Cart) cartDomain.PaymentSelection