From b4c2f2f1524b6be3bc321a3c14571a6d3d9cdf61 Mon Sep 17 00:00:00 2001 From: Pro Date: Sun, 5 Jun 2022 22:03:21 +0200 Subject: [PATCH] country_code is missing for my request in the sandbox environment This part looks like this: ``` "address": {} ``` --- src/data/common.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/common.rs b/src/data/common.rs index 63dd087..6dfe2c2 100644 --- a/src/data/common.rs +++ b/src/data/common.rs @@ -56,7 +56,7 @@ pub struct Address { /// The postal code, which is the zip code or equivalent. Typically required for countries with a postal code or an equivalent. pub postal_code: Option, /// The two-character [ISO 3166-1](https://developer.paypal.com/docs/api/reference/country-codes/) code that identifies the country or region. - pub country_code: String, + pub country_code: Option, /// The non-portable additional address details that are sometimes needed for compliance, risk, or other scenarios where fine-grain address information might be needed. pub address_details: Option, }