-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add reserve model #14
Conversation
c303043
to
73bad8b
Compare
} | ||
|
||
/** | ||
Gets the public view of any transaction. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to Gets the information of any transaction.
?
73bad8b
to
aefffa0
Compare
|
||
- parameter type: The type of the deposit. | ||
- parameter out: The deposit out movement. | ||
- parameter `in`: The deposit in movement. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove the backticks from the in
parameter in the documentation.
aefffa0
to
3524145
Compare
reserve.adapter = MockRestAdapter(body: json) | ||
|
||
reserve.getStatistics().then { (statistics: [ReserveStatistics]) -> () in | ||
XCTAssertEqual(statistics[0].currency, "FOO", "Failed: Currency didn't match.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please sort.
3524145
to
9c8363a
Compare
9c8363a
to
ca3ffff
Compare
"\"assets\": \"foobar\"," + | ||
"\"liabilities\": \"foobiz\"" + | ||
"}" + | ||
"}, {" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the indentation.
ca3ffff
to
60d83ed
Compare
- parameter transactionId: The id of the transaction. | ||
- parameter type: The type of the deposit. | ||
*/ | ||
public init(createdAt: String, input: DepositMovement, out: DepositMovement, transactionId: String, type: String) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update from out
to output
.
60d83ed
to
c6eec06
Compare
Updated @SandroMachado . |
let expectation = expectationWithDescription("Reserve test.") | ||
let json: String = "[{ \"id\": \"foobar\" }, { \"id\": \"foobiz\" }]" | ||
let reserve = UpholdClient().getReserve() | ||
reserve.adapter = MockRestAdapter(body: json) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WDYT of adding a new line before reserve.adapter = MockRestAdapter(body: json)
?
c6eec06
to
1733507
Compare
Updated @SandroMachado . |
|
||
let json: String = "[" + | ||
"{" + | ||
let json: String = "[{" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the indentation.
1733507
to
f5479d3
Compare
This pull request adds the reserve model and the reserve service methods to the Uphold client.