Skip to content

Commit

Permalink
[Auto Generated] 0.1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed Apr 21, 2022
1 parent 8c4a988 commit d403e48
Show file tree
Hide file tree
Showing 311 changed files with 10,834 additions and 10,830 deletions.
4 changes: 2 additions & 2 deletions FDKClient.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Pod::Spec.new do |s|
s.name = 'FDKClient'
s.version = '0.1.17'
s.version = '0.1.18'
s.summary = 'FDK Client SDK for Swift language'

s.description = 'FDK Client SDK for Swift language that can be used to make Apps or extensions.'
Expand All @@ -15,8 +15,8 @@ Pod::Spec.new do |s|
s.author = { 'Nikhil Manapure' => '[email protected]' }
s.source = { :git => 'https://github.com/gofynd/fdk-client-swift.git', :tag => s.version.to_s }

s.swift_versions = '4.0'
s.ios.deployment_target = '12.0'
s.osx.deployment_target = '10.0'

s.static_framework = true
s.dependency 'CryptoSwift', '~> 1.3.8'
Expand Down
2 changes: 1 addition & 1 deletion Sources/code/application/ApplicationAPIClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ApplicationAPIClient {
var headers = [
(key: "Authorization", value: "Bearer " + "\(config.applicationId):\(config.applicationToken)".asBase64)
]
headers.append((key: "x-fp-sdk-version", value: "0.1.17"))
headers.append((key: "x-fp-sdk-version", value: "0.1.18"))
headers.append(contentsOf: extraHeaders)
headers.append(contentsOf: config.extraHeaders)
if let userAgent = config.userAgent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,45 +7,45 @@ public extension ApplicationClient {
Used By: Payment
*/
class ActiveCardPaymentGatewayResponse: Codable {
public var success: Bool

public var cards: CardPaymentGateway

public var success: Bool

public var message: String

public enum CodingKeys: String, CodingKey {
case success

case cards

case success

case message
}

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

self.cards = cards

self.success = success

self.message = message
}

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

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

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

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

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(cards, forKey: .cards)

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

try? container.encodeIfPresent(message, forKey: .message)
}
}
Expand Down
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 shipmentId: String
public var otp: String?

public var requestId: String?
public var transferMode: String

public var delights: Bool
public var requestId: String?

public var otp: String?
public var orderId: String

public var details: BeneficiaryModeDetails

public var orderId: String
public var shipmentId: String

public var transferMode: String
public var delights: Bool

public enum CodingKeys: String, CodingKey {
case shipmentId = "shipment_id"
case otp

case requestId = "request_id"
case transferMode = "transfer_mode"

case delights
case requestId = "request_id"

case otp
case orderId = "order_id"

case details

case orderId = "order_id"
case shipmentId = "shipment_id"

case transferMode = "transfer_mode"
case delights
}

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

self.requestId = requestId
self.transferMode = transferMode

self.delights = delights
self.requestId = requestId

self.otp = otp
self.orderId = orderId

self.details = details

self.orderId = orderId
self.shipmentId = shipmentId

self.transferMode = transferMode
self.delights = delights
}

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

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

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 {}

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

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)

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

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

transferMode = try container.decode(String.self, forKey: .transferMode)
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(shipmentId, forKey: .shipmentId)
try? container.encodeIfPresent(otp, forKey: .otp)

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

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

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

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

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

try? container.encodeIfPresent(transferMode, forKey: .transferMode)
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 hashKey: String

public var otp: String

public var requestId: String

public var hashKey: String

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

case otp

case requestId = "request_id"

case hashKey = "hash_key"
}

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

self.otp = otp

self.requestId = requestId

self.hashKey = hashKey
}

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

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

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

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

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

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

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

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

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

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

0 comments on commit d403e48

Please sign in to comment.