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

Add Carrier.implemented? #121

Merged
merged 1 commit into from
Jan 25, 2024
Merged

Conversation

brodyhoskins
Copy link
Member

WARNING: This is a breaking change. The following Carrier instance methods have been removed:

  • #available_services_implemented?
  • #cancel_shipment_implemented?
  • #create_pickup_implemented?
  • #find_estimate_implemented?
  • #find_rates_implemented?
  • #find_tracking_info_implemented?
  • #find_tracking_number_from_pickup_number_implemented?
  • #pod_implemented?
  • #scanned_bol_implemented?

Instead, use the FreightKit::Carrier.implemented? call; for example:

FreightKit::BogusCarrier.implemented?(:find_rates)

WARNING: This is a breaking change. The following `Carrier` instance
methods have been removed:

- `#available_services_implemented?`
- `#cancel_shipment_implemented?`
- `#create_pickup_implemented?`
- `#find_estimate_implemented?`
- `#find_rates_implemented?`
- `#find_tracking_info_implemented?`
- `#find_tracking_number_from_pickup_number_implemented?`
- `#pod_implemented?`
- `#scanned_bol_implemented?`

Instead, use the `FreightKit::Carrier.implemented?` call; for example:

`FreightKit::BogusCarrier.implemented?(:find_rates)`
@brodyhoskins brodyhoskins merged commit 228d564 into main Jan 25, 2024
1 check passed
@brodyhoskins brodyhoskins deleted the brody/add-carrier-implemented branch January 25, 2024 06:09
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.

None yet

1 participant