-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '370-pace-drive-business-starter-new-sdk-handlers' into …
…'master' Resolve "[PACE Drive Business Starter] New SDK Handlers" Closes #370 See merge request pace/mobile/ios/pace-cloud-sdk!425
- Loading branch information
Showing
128 changed files
with
766 additions
and
690 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
PACECloudSDK/API/Communication/Generated/Models/Request/ReceiptAttachmentsRequest.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// Generated by SwiftPoet | ||
// https://github.com/outfoxx/swiftpoet | ||
// | ||
import Foundation | ||
|
||
public extension API.Communication { | ||
/** | ||
* Asks the client for optional attachments to be included in the fueling receipt. */ | ||
struct ReceiptAttachmentsRequest: Codable { | ||
/** | ||
* The id of the user payment method. */ | ||
public let paymentMethod: String | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
PACECloudSDK/API/Communication/Generated/Models/Request/ReceiptEmailRequest.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// Generated by SwiftPoet | ||
// https://github.com/outfoxx/swiftpoet | ||
// | ||
import Foundation | ||
|
||
public extension API.Communication { | ||
/** | ||
* Asks the client for an optional additional receipt email. */ | ||
struct ReceiptEmailRequest: Codable { | ||
/** | ||
* The id of the user payment method. */ | ||
public let paymentMethod: String | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
PACECloudSDK/API/Communication/Generated/Models/Response/ReceiptAttachmentsResult.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// | ||
// Generated by SwiftPoet | ||
// https://github.com/outfoxx/swiftpoet | ||
// | ||
import Foundation | ||
|
||
public extension API.Communication { | ||
/** | ||
* Asks the client for optional attachments to be included in the fueling receipt. */ | ||
struct ReceiptAttachmentsResponse: Codable { | ||
/** | ||
* The attachments. Each item represents a new line on the receipt. */ | ||
public let attachments: [String]? | ||
|
||
public init(attachments: [String]?) { | ||
self.attachments = attachments | ||
} | ||
} | ||
} | ||
|
||
extension API.Communication { | ||
class ReceiptAttachmentsError: Error {} | ||
|
||
class ReceiptAttachmentsResult: Result { | ||
init(_ success: Success) { | ||
super.init(status: 200, body: .init(success.response)) | ||
} | ||
|
||
init(_ failure: Failure) { | ||
super.init(status: failure.statusCode.rawValue, body: .init(failure.response)) | ||
} | ||
|
||
struct Success { | ||
let response: ReceiptAttachmentsResponse | ||
} | ||
|
||
struct Failure { | ||
let statusCode: StatusCode | ||
let response: ReceiptAttachmentsError | ||
|
||
enum StatusCode: Int { | ||
case badRequest = 400 | ||
case requestTimeout = 408 | ||
case internalServerError = 500 | ||
} | ||
} | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
PACECloudSDK/API/Communication/Generated/Models/Response/ReceiptEmailResult.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// | ||
// Generated by SwiftPoet | ||
// https://github.com/outfoxx/swiftpoet | ||
// | ||
import Foundation | ||
|
||
public extension API.Communication { | ||
/** | ||
* Asks the client for an optional additional receipt email. */ | ||
struct ReceiptEmailResponse: Codable { | ||
/** | ||
* The email */ | ||
public let email: String? | ||
|
||
public init(email: String?) { | ||
self.email = email | ||
} | ||
} | ||
} | ||
|
||
extension API.Communication { | ||
class ReceiptEmailError: Error {} | ||
|
||
class ReceiptEmailResult: Result { | ||
init(_ success: Success) { | ||
super.init(status: 200, body: .init(success.response)) | ||
} | ||
|
||
init(_ failure: Failure) { | ||
super.init(status: failure.statusCode.rawValue, body: .init(failure.response)) | ||
} | ||
|
||
struct Success { | ||
let response: ReceiptEmailResponse | ||
} | ||
|
||
struct Failure { | ||
let statusCode: StatusCode | ||
let response: ReceiptEmailError | ||
|
||
enum StatusCode: Int { | ||
case badRequest = 400 | ||
case requestTimeout = 408 | ||
case internalServerError = 500 | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.