Skip to content

Commit a0543fd

Browse files
committed
Make Customer public so fake() can be found
As Fakes is on a different framework, the Customer object cannot be found due to its default internal access control. Catched this when CI ran tests.
1 parent 449c967 commit a0543fd

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Fakes/Fakes/Networking.generated.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ extension CreateProductVariation {
184184
extension Customer {
185185
/// Returns a "ready to use" type filled with fake values.
186186
///
187-
static func fake() -> Customer {
187+
public static func fake() -> Customer {
188188
.init(
189189
customerID: .fake(),
190190
email: .fake(),

Networking/Networking/Model/Customer.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@ import Codegen
44
/// Represents a Customer entity:
55
/// https://woocommerce.github.io/woocommerce-rest-api-docs/#customer-properties
66
///
7-
struct Customer: Codable, GeneratedCopiable, GeneratedFakeable {
7+
public struct Customer: Codable, GeneratedCopiable, GeneratedFakeable {
88

99
/// Unique identifier for the customer
10-
let customerID: Int64
10+
public let customerID: Int64
1111

1212
/// The email address for the customer
13-
let email: String
13+
public let email: String
1414

1515
/// Customer first name
16-
let firstName: String?
16+
public let firstName: String?
1717

1818
/// Customer last name
19-
let lastName: String?
19+
public let lastName: String?
2020

2121
/// List of billing address data
22-
let billing: Address?
22+
public let billing: Address?
2323

2424
/// List of shipping address data
25-
let shipping: Address?
25+
public let shipping: Address?
2626

2727
/// Customer struct initializer
2828
///

0 commit comments

Comments
 (0)