-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from xendit/feat/add-cardholder-information
add card holder information on createToken and createAuthentication
- Loading branch information
Showing
14 changed files
with
307 additions
and
30 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
45 changes: 45 additions & 0 deletions
45
Sources/Xendit/Models/DTOs/XenditCardHolderInformation.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,45 @@ | ||
// | ||
// XenditCardHolderInformation.swift | ||
// Xendit | ||
// | ||
// Created by xendit on 07/07/21. | ||
// | ||
|
||
import Foundation | ||
@objcMembers | ||
@objc(XenditCardHolderInformation) open class XenditCardHolderInformation: NSObject { | ||
|
||
// Card holder first name value | ||
open var cardHolderFirstName: String? | ||
|
||
// Card holder first name value | ||
open var cardHolderLastName: String? | ||
|
||
// Card holder first name value | ||
open var cardHolderEmail: String? | ||
|
||
// Card holder first name value | ||
open var cardHolderPhoneNumber: String? | ||
|
||
public init( | ||
cardHolderFirstName: String? = nil, | ||
cardHolderLastName: String? = nil, | ||
cardHolderEmail: String? = nil, | ||
cardHolderPhoneNumber: String? = nil | ||
) { | ||
self.cardHolderFirstName = cardHolderFirstName | ||
self.cardHolderLastName = cardHolderLastName | ||
self.cardHolderEmail = cardHolderEmail | ||
self.cardHolderPhoneNumber = cardHolderPhoneNumber | ||
} | ||
|
||
func toJsonObject() -> [String : Any] { | ||
var json: [String: Any] = [:] | ||
if cardHolderFirstName != nil { json["card_holder_first_name"] = cardHolderFirstName } | ||
if cardHolderLastName != nil { json["card_holder_last_name"] = cardHolderLastName } | ||
if cardHolderEmail != nil { json["card_holder_email"] = cardHolderEmail } | ||
if cardHolderPhoneNumber != nil { json["card_holder_mobile_number"] = cardHolderPhoneNumber } | ||
return json | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Pod::Spec.new do |s| | ||
s.name = 'Xendit' | ||
s.version = '3.8.7' | ||
s.version = '3.9.0' | ||
s.license = 'MIT' | ||
s.homepage = 'https://www.xendit.co' | ||
s.author = { 'Juan Gonzalez’' => '[email protected]' } | ||
|
8 changes: 8 additions & 0 deletions
8
Xendit.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
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,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
2 changes: 1 addition & 1 deletion
2
XenditExample/XenditExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
...Example/XenditExample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
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,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
25 changes: 25 additions & 0 deletions
25
...Example/XenditExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
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,25 @@ | ||
{ | ||
"object": { | ||
"pins": [ | ||
{ | ||
"package": "OHHTTPStubs", | ||
"repositoryURL": "https://github.com/AliSoftware/OHHTTPStubs.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "12f19662426d0434d6c330c6974d53e2eb10ecd9", | ||
"version": "9.1.0" | ||
} | ||
}, | ||
{ | ||
"package": "Sentry", | ||
"repositoryURL": "https://github.com/getsentry/sentry-cocoa.git", | ||
"state": { | ||
"branch": null, | ||
"revision": "5421f94cc859eb65f5ae3866165a053aa634431e", | ||
"version": "8.32.0" | ||
} | ||
} | ||
] | ||
}, | ||
"version": 1 | ||
} |
Oops, something went wrong.