Skip to content

Add undocumented rate_details field to typings#37

Merged
jakeleventhal merged 2 commits intomasterfrom
add-undocumented-rate_details
Apr 29, 2025
Merged

Add undocumented rate_details field to typings#37
jakeleventhal merged 2 commits intomasterfrom
add-undocumented-rate_details

Conversation

@jakeleventhal
Copy link
Contributor

The rate response object contains an undocumented rate_details field. This PR adds typings for it. Here is an example of how it looks in the API:

"rate_details": [
  {
    "rate_detail_type": "location_fee",
    "carrier_description": "Residential Address",
    "carrier_billing_code": "270",
    "carrier_memo": null,
    "amount": {
      "currency": "usd",
      "amount": 6.55
    },
    "billing_source": "Carrier"
  },
  {
    "rate_detail_type": "shipping",
    "carrier_description": "Shipping",
    "carrier_billing_code": "BaseServiceCharge",
    "carrier_memo": null,
    "amount": {
      "currency": "usd",
      "amount": 128.69
    },
    "billing_source": "Carrier"
  },
  {
    "rate_detail_type": "fuel_charge",
    "carrier_description": "Fuel Surcharge",
    "carrier_billing_code": "375",
    "carrier_memo": null,
    "amount": {
      "currency": "usd",
      "amount": 22.99
    },
    "billing_source": "Carrier"
  }
]

@jakeleventhal jakeleventhal self-assigned this Apr 29, 2025
@jakeleventhal jakeleventhal merged commit 7a586b6 into master Apr 29, 2025
1 check passed
@jakeleventhal jakeleventhal deleted the add-undocumented-rate_details branch April 29, 2025 13:19
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.

1 participant