From 0efdad1772ca5d6765e8325aa1ef56bd63fe1265 Mon Sep 17 00:00:00 2001 From: Benson Trent Date: Sat, 16 Mar 2024 14:40:45 -0600 Subject: [PATCH 1/2] Update Address.d.ts A zip code is not required by some countries, for example, Antarctica. --- types/Address/Address.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/Address/Address.d.ts b/types/Address/Address.d.ts index db7f1a008..5c9729637 100644 --- a/types/Address/Address.d.ts +++ b/types/Address/Address.d.ts @@ -36,7 +36,7 @@ export declare interface IAddress extends IObjectWithId<'Address'> { /** * ZIP or postal code the address is located in */ - zip: string; + zip?: string; /** * ISO 3166 country code for the country the address is located in @@ -99,7 +99,7 @@ export declare class Address implements IAddress { street2?: string | null; city?: string | null; state?: string | null; - zip: string; + zip?: string; country: string; residential?: boolean | null; carrier_facility?: string | null; From a4501f8fb3c828172cce5b335e570d5c46057cca Mon Sep 17 00:00:00 2001 From: Benson Trent Date: Sat, 16 Mar 2024 14:48:19 -0600 Subject: [PATCH 2/2] Update ShipmentCreateParameters.d.ts Add missing options for ICreateShipmentParameters --- types/Shipment/ShipmentCreateParameters.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/types/Shipment/ShipmentCreateParameters.d.ts b/types/Shipment/ShipmentCreateParameters.d.ts index 8665c34e0..2457f20a0 100644 --- a/types/Shipment/ShipmentCreateParameters.d.ts +++ b/types/Shipment/ShipmentCreateParameters.d.ts @@ -15,6 +15,19 @@ export declare interface IShipmentCreateParameters { */ carrier_accounts?: string[] | null; + /** + * Optional service name to create one-call-buy shipment + */ + service?: string | null; + + tax_identifiers?: TaxIdentifier[] | null customs_info?: DeepPartial | null; options?: DeepPartial | null; } + +type TaxIdentifier = { + entity: "SENDER" | "RECIPIENT" + tax_id: string, + tax_id_type: string; + issuing_country: string +}