From f7df657d4f145da74ed745856078bb9de3e6d007 Mon Sep 17 00:00:00 2001 From: Rachel McRoberts Date: Tue, 21 Jan 2025 11:23:30 +0000 Subject: [PATCH] Add generate fake method to WooShippingAddress --- Fakes/Fakes/Networking.generated.swift | 17 +++++++++++++++++ .../ShippingLabel/WooShippingAddress.swift | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Fakes/Fakes/Networking.generated.swift b/Fakes/Fakes/Networking.generated.swift index 15ccac9bba7..a00b4d148dd 100644 --- a/Fakes/Fakes/Networking.generated.swift +++ b/Fakes/Fakes/Networking.generated.swift @@ -2761,6 +2761,23 @@ extension Networking.WooShippingAccountSettings { ) } } +extension Networking.WooShippingAddress { + /// Returns a "ready to use" type filled with fake values. + /// + public static func fake() -> Networking.WooShippingAddress { + .init( + company: .fake(), + name: .fake(), + phone: .fake(), + country: .fake(), + state: .fake(), + address1: .fake(), + address2: .fake(), + city: .fake(), + postcode: .fake() + ) + } +} extension Networking.WooShippingCarrierPredefinedOptions { /// Returns a "ready to use" type filled with fake values. /// diff --git a/Networking/Networking/Model/ShippingLabel/WooShippingAddress.swift b/Networking/Networking/Model/ShippingLabel/WooShippingAddress.swift index cebb68bd114..ca4112cc77d 100644 --- a/Networking/Networking/Model/ShippingLabel/WooShippingAddress.swift +++ b/Networking/Networking/Model/ShippingLabel/WooShippingAddress.swift @@ -3,7 +3,7 @@ import Codegen /// Represents an address for the WooCommerce Shipping extension. /// -public struct WooShippingAddress: Equatable { +public struct WooShippingAddress: Equatable, GeneratedFakeable { /// The name of the company at the address. public let company: String