Skip to content

Instantly share code, notes, and snippets.

@krzysztofbialek
Created October 25, 2022 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save krzysztofbialek/32fb06c649f5a5733d7e50354dfaa9fc to your computer and use it in GitHub Desktop.
Save krzysztofbialek/32fb06c649f5a5733d7e50354dfaa9fc to your computer and use it in GitHub Desktop.
Backup rates example for Shipping Applications development good practices
rate_definitions:
-
name: Standard
price: 0
currency: CAD
rate_class_id: 10
conditions:
-
field: total_price
criteria: 100
criteria_unit: CAD
operator: greater_than_or_equal_to
-
name: Standard
price: 14.90
currency: CAD
conditions:
-
field: total_weight
criteria: 2.0
criteria_unit: kg
operator: less_than_or_equal_to
-
name: Standard
price: 21.90
currency: CAD
conditions:
-
field: total_weight
criteria: 2.0
criteria_unit: kg
operator: greater_than_or_equal_to
-
field: total_weight
criteria: 30.0
criteria_unit: kg
operator: less_than_or_equal_to
-
name: Express
price: 21.90
currency: CAD
conditions:
-
field: total_weight
criteria: 2.0
criteria_unit: kg
operator: less_than_or_equal_to
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment