Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shopifypartners/da7ccba749c575cc7037ed91ab127daf to your computer and use it in GitHub Desktop.
Save shopifypartners/da7ccba749c575cc7037ed91ab127daf 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