Skip to content

Commit 98aaff9

Browse files
committed
update enum naming
1 parent 251eabe commit 98aaff9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Modules/Sources/NetworkingCore/Model/Order.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ public struct Order: Decodable, Sendable, GeneratedCopiable, GeneratedFakeable {
6969
///
7070
public let createdVia: String?
7171

72-
public var salesChannel: SalesChannelType? {
72+
public var salesChannel: SalesChannel? {
7373
guard let createdVia else { return nil }
74-
return SalesChannelType(rawValue: createdVia)
74+
return SalesChannel(rawValue: createdVia)
7575
}
7676

7777
/// Order struct initializer.

Modules/Sources/NetworkingCore/Model/SalesChannelType.swift renamed to Modules/Sources/NetworkingCore/Model/SalesChannel.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import Foundation
22

3-
public enum SalesChannelType {
3+
public enum SalesChannel {
44
case pointOfSale
55
}
66

7-
extension SalesChannelType: RawRepresentable {
7+
extension SalesChannel: RawRepresentable {
88
public init?(rawValue: String) {
99
switch rawValue {
1010
case "pos-rest-api":
@@ -24,7 +24,7 @@ extension SalesChannelType: RawRepresentable {
2424
public var description: String {
2525
switch self {
2626
case .pointOfSale:
27-
return NSLocalizedString("saleschanneltype.pos.description",
27+
return NSLocalizedString("salesChannel.pos.description",
2828
value: "POS",
2929
comment: "The acronym for 'Point of Sale'.")
3030
}

0 commit comments

Comments
 (0)