Skip to content

Commit

Permalink
[Auto Generated] 0.1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed May 26, 2022
1 parent 3bb7ec1 commit 04f9a2b
Show file tree
Hide file tree
Showing 342 changed files with 11,245 additions and 11,215 deletions.
2 changes: 1 addition & 1 deletion Sources/code/application/ApplicationPageType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public extension ApplicationClient {
case .contactUs:
return "/contact-us/"
case .external:
return "/external/:url"
return "/external/"
case .faq:
return "/faq/:category"
case .freshchat:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,44 +9,44 @@ public extension ApplicationClient {
class ActiveCardPaymentGatewayResponse: Codable {
public var cards: CardPaymentGateway

public var success: Bool

public var message: String

public var success: Bool

public enum CodingKeys: String, CodingKey {
case cards

case success

case message

case success
}

public init(cards: CardPaymentGateway, message: String, success: Bool) {
self.cards = cards

self.success = success

self.message = message

self.success = success
}

required public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)

cards = try container.decode(CardPaymentGateway.self, forKey: .cards)

success = try container.decode(Bool.self, forKey: .success)

message = try container.decode(String.self, forKey: .message)

success = try container.decode(Bool.self, forKey: .success)
}

public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)

try? container.encodeIfPresent(cards, forKey: .cards)

try? container.encodeIfPresent(success, forKey: .success)

try? container.encodeIfPresent(message, forKey: .message)

try? container.encodeIfPresent(success, forKey: .success)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,98 +7,98 @@ public extension ApplicationClient {
Used By: Payment
*/
class AddBeneficiaryDetailsRequest: Codable {
public var transferMode: String
public var otp: String?

public var shipmentId: String

public var requestId: String?

public var orderId: String

public var details: BeneficiaryModeDetails
public var transferMode: String

public var shipmentId: String
public var details: BeneficiaryModeDetails

public var delights: Bool

public var requestId: String?
public enum CodingKeys: String, CodingKey {
case otp

public var otp: String?
case shipmentId = "shipment_id"

public enum CodingKeys: String, CodingKey {
case transferMode = "transfer_mode"
case requestId = "request_id"

case orderId = "order_id"

case details
case transferMode = "transfer_mode"

case shipmentId = "shipment_id"
case details

case delights

case requestId = "request_id"

case otp
}

public init(delights: Bool, details: BeneficiaryModeDetails, orderId: String, otp: String? = nil, requestId: String? = nil, shipmentId: String, transferMode: String) {
self.transferMode = transferMode
self.otp = otp

self.orderId = orderId
self.shipmentId = shipmentId

self.details = details
self.requestId = requestId

self.shipmentId = shipmentId
self.orderId = orderId

self.delights = delights
self.transferMode = transferMode

self.requestId = requestId
self.details = details

self.otp = otp
self.delights = delights
}

required public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)

transferMode = try container.decode(String.self, forKey: .transferMode)

orderId = try container.decode(String.self, forKey: .orderId)

details = try container.decode(BeneficiaryModeDetails.self, forKey: .details)

shipmentId = try container.decode(String.self, forKey: .shipmentId)

delights = try container.decode(Bool.self, forKey: .delights)

do {
requestId = try container.decode(String.self, forKey: .requestId)
otp = try container.decode(String.self, forKey: .otp)

} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
print("codingPath:", context.codingPath)
} catch {}

shipmentId = try container.decode(String.self, forKey: .shipmentId)

do {
otp = try container.decode(String.self, forKey: .otp)
requestId = try container.decode(String.self, forKey: .requestId)

} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
print("codingPath:", context.codingPath)
} catch {}

orderId = try container.decode(String.self, forKey: .orderId)

transferMode = try container.decode(String.self, forKey: .transferMode)

details = try container.decode(BeneficiaryModeDetails.self, forKey: .details)

delights = try container.decode(Bool.self, forKey: .delights)
}

public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)

try? container.encodeIfPresent(transferMode, forKey: .transferMode)
try? container.encodeIfPresent(otp, forKey: .otp)

try? container.encodeIfPresent(orderId, forKey: .orderId)
try? container.encodeIfPresent(shipmentId, forKey: .shipmentId)

try? container.encodeIfPresent(details, forKey: .details)
try? container.encodeIfPresent(requestId, forKey: .requestId)

try? container.encodeIfPresent(shipmentId, forKey: .shipmentId)
try? container.encodeIfPresent(orderId, forKey: .orderId)

try? container.encodeIfPresent(delights, forKey: .delights)
try? container.encodeIfPresent(transferMode, forKey: .transferMode)

try? container.encodeIfPresent(requestId, forKey: .requestId)
try? container.encodeIfPresent(details, forKey: .details)

try? container.encodeIfPresent(otp, forKey: .otp)
try? container.encodeIfPresent(delights, forKey: .delights)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,46 +7,46 @@ public extension ApplicationClient {
Used By: Payment
*/
class AddBeneficiaryViaOtpVerificationRequest: Codable {
public var requestId: String
public var hashKey: String

public var otp: String

public var hashKey: String
public var requestId: String

public enum CodingKeys: String, CodingKey {
case requestId = "request_id"
case hashKey = "hash_key"

case otp

case hashKey = "hash_key"
case requestId = "request_id"
}

public init(hashKey: String, otp: String, requestId: String) {
self.requestId = requestId
self.hashKey = hashKey

self.otp = otp

self.hashKey = hashKey
self.requestId = requestId
}

required public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)

requestId = try container.decode(String.self, forKey: .requestId)
hashKey = try container.decode(String.self, forKey: .hashKey)

otp = try container.decode(String.self, forKey: .otp)

hashKey = try container.decode(String.self, forKey: .hashKey)
requestId = try container.decode(String.self, forKey: .requestId)
}

public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)

try? container.encodeIfPresent(requestId, forKey: .requestId)
try? container.encodeIfPresent(hashKey, forKey: .hashKey)

try? container.encodeIfPresent(otp, forKey: .otp)

try? container.encodeIfPresent(hashKey, forKey: .hashKey)
try? container.encodeIfPresent(requestId, forKey: .requestId)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,42 +7,42 @@ public extension ApplicationClient {
Used By: Payment
*/
class AddBeneficiaryViaOtpVerificationResponse: Codable {
public var success: Bool?

public var message: String

public enum CodingKeys: String, CodingKey {
case success
public var success: Bool?

public enum CodingKeys: String, CodingKey {
case message

case success
}

public init(message: String, success: Bool? = nil) {
self.success = success

self.message = message

self.success = success
}

required public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)

message = try container.decode(String.self, forKey: .message)

do {
success = try container.decode(Bool.self, forKey: .success)

} catch DecodingError.typeMismatch(let type, let context) {
print("Type '\(type)' mismatch:", context.debugDescription)
print("codingPath:", context.codingPath)
} catch {}

message = try container.decode(String.self, forKey: .message)
}

public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)

try? container.encodeIfPresent(success, forKey: .success)

try? container.encodeIfPresent(message, forKey: .message)

try? container.encodeIfPresent(success, forKey: .success)
}
}
}
Loading

0 comments on commit 04f9a2b

Please sign in to comment.