Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[patch] 2024.6.4 #681

Merged
merged 14 commits into from
Sep 11, 2024
Merged

[patch] 2024.6.4 #681

merged 14 commits into from
Sep 11, 2024

Conversation

danh91
Copy link
Member

@danh91 danh91 commented Sep 11, 2024

Changes

Feature

  • feat: Add field to unified class for future support of message level

Chore

  • chore: Add tests for UPS EU rates parsing
  • chore: make ups upper case for uniform charges details
  • chore: use localhost address for default NEXT_PUBLIC_KARRIO_PUBLIC_URL during build

Refactor

jacobshilitz and others added 8 commits September 4, 2024 19:38
Simplify the logic for determining total charges by consolidating conditional checks. Added BaseServiceCharge handling and mapped SurchargeType codes to descriptive names for improved readability.
Improve the surcharge type mapping logic for readability and efficiency. Capitalize mapped surcharge type names and ensure consistent formatting by handling cases where the type name is not available.
Adjusted the base charge amounts and renamed surcharge codes to 'Fuel surcharge' in UPS rate tests. This change ensures consistency and accuracy in the test data for various UPS services.

changed to use `BaseServiceCharge` instead of `TransportationCharges` because the docs state that `BaseServiceCharge` is The base value of the specific service for the shipment. This is equal to transportation charges - fuel surcharges. and the fuel charge has a separate itemized charge and appears as code 375
Deleted zero-amount extra charge entries from various test cases in the UPS rate tests. This streamlines the test cases and clarifies the relevant charges being tested.
@danh91 danh91 linked an issue Sep 11, 2024 that may be closed by this pull request
@danh91 danh91 merged commit d9afa1f into main Sep 11, 2024
7 of 8 checks passed
@danh91 danh91 deleted the patch-2024.6.4 branch September 11, 2024 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UPS add surcharges codes mapping
2 participants