-
-
Notifications
You must be signed in to change notification settings - Fork 110
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.9.15 #719
[patch] 2024.9.15 #719
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
45823c9
to
4761609
Compare
@danh91 Hello Dan, is there a reason on why this is still not released as a tag ? If you are not planning to release it could you please tell me how to build a tag from it the easiest ? thanks |
Hi @vangelow, The release has been created now. |
@danh91 Hello
|
It basically does not add the duties as a part of the request to fedex |
dutiesPayment=lib.identity(
fedex.DutiesPaymentType(
paymentType=provider_units.PaymentType.map(
customs.duty.paid_by
).value,
payor=lib.identity(
fedex.PayorType(
responsibleParty=fedex.ResponsiblePartyType(
address=fedex.AddressType(
streetLines=duty_billing_address.address_lines,
city=duty_billing_address.city,
stateOrProvinceCode=provider_utils.state_code(
duty_billing_address
),
postalCode=duty_billing_address.postal_code,
countryCode=duty_billing_address.country_code,
residential=duty_billing_address.residential,
),
contact=fedex.ResponsiblePartyContactType(
personName=lib.text(
duty_billing_address.contact, max=35
),
emailAddress=duty_billing_address.email,
phoneNumber=duty_billing_address.phone_number,
phoneExtension=None,
companyName=lib.text(
duty_billing_address.company_name,
max=35,
),
faxNumber=None,
),
accountNumber=fedex.AccountNumberType(
value=customs.duty.account_number
),
tins=lib.identity(
fedex.TinType(
number=duty_billing_address.tax_id,
tinType="FEDERAL",
)
if duty_billing_address.has_tax_info
else []
),
)
)
if duty_billing_address.address
else None
),
)
if customs.duty.paid_by != "sender"
and customs.duty.account_number
else None This piece of code should not remove the whole payment, it should just allow to send duties payment of type
But skip the payorType and responsibleParty the request can be made with PaymentType as RECIPIENT successfuly |
Changes
Fix
fedex
payor info data mapping #718