shoop.core.methods package¶
Submodules¶
shoop.core.methods.base module¶
-
class
shoop.core.methods.base.
BaseMethodModule
(method, options)[source]¶ Bases:
object
Base method module implementation.
-
checkout_phase_class
= None¶
-
identifier
= None¶
-
name
= None¶
-
admin_detail_view_class
= None¶
-
option_fields
= [('price', <django.forms.fields.DecimalField object at 0x7f15c411e048>), ('price_waiver_product_minimum', <django.forms.fields.DecimalField object at 0x7f15c411e2b0>)]¶
-
get_validation_errors
(source, **kwargs)[source]¶ Return an iterable of human-readable errors (either Django’s
ValidationError`s or just plain old strings) if there are any errors that would prevent using this method with a given `source
.This (instead of raising an error) broadly follows the Notification pattern. http://martinfowler.com/eaaDev/Notification.html
Parameters: - source – source object
- kwargs – Other kwargs for future expansion
Returns: Iterable of errors
Return type: Iterable[str]
-
get_effective_price_info
(source, **kwargs)[source]¶ Get price of this method for given OrderSource.
Parameters: - source (shoop.core.order_creator.OrderSource) – source object
- kwargs – Other kwargs for future expansion
Return type:
-
get_effective_name
(source, **kwargs)[source]¶ Return the effective name for this method. Useful to add shipping mode (“letter”, “parcel”) for instance.
Parameters: - source (shoop.core.order_creator.OrderSource) – source object
- kwargs – Other kwargs for future expansion
Returns: name
Return type: unicode
-
-
class
shoop.core.methods.base.
BaseShippingMethodModule
(method, options)[source]¶ Bases:
shoop.core.methods.base.BaseMethodModule
Base shipping method module implementation.
-
no_lower_limit_text
= <django.utils.functional.lazy.<locals>.__proxy__ object>¶
-
option_fields
= [('price', <django.forms.fields.DecimalField object at 0x7f15c411e048>), ('price_waiver_product_minimum', <django.forms.fields.DecimalField object at 0x7f15c411e2b0>), ('min_weight', <django.forms.fields.DecimalField object at 0x7f15c411e438>), ('max_weight', <django.forms.fields.DecimalField object at 0x7f15c411e4e0>)]¶
-
shoop.core.methods.default module¶
-
class
shoop.core.methods.default.
DefaultShippingMethodModule
(method, options)[source]¶ Bases:
shoop.core.methods.base.BaseShippingMethodModule
-
identifier
= 'default_shipping'¶
-
name
= <django.utils.functional.lazy.<locals>.__proxy__ object>¶
-
-
class
shoop.core.methods.default.
DefaultPaymentMethodModule
(method, options)[source]¶ Bases:
shoop.core.methods.base.BasePaymentMethodModule
-
identifier
= 'default_payment'¶
-
name
= <django.utils.functional.lazy.<locals>.__proxy__ object>¶
-