Skip to content
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

MBL-1449: Implement createOrUpdateBackingAddress mutation #2074

Merged

Conversation

amy-at-kickstarter
Copy link
Contributor

📲 What

Add the createOrUpdateBackingAddress to the app.

🤔 Why

This mutation is used to confirm a backer's address for a given backing; it will be used in the PPO dashboard.

@testable import KsApi
import XCTest

final class ConfirmBackingAddressMutationTests: XCTestCase {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests are a little silly since they're just exercising the MockService 🤷‍♀️. But at least they provide a little documentation of what the Service call can do.

@@ -413,6 +413,9 @@ public protocol ServiceType {

func exchangeTokenForOAuthToken(params: OAuthTokenExchangeParams)
-> AnyPublisher<OAuthTokenExchangeResponse, ErrorEnvelope>

/// Confirms a backer's address for a given backing. Returns a success boolean.
func confirmBackingAddress(backingId: String, addressId: String) -> AnyPublisher<Bool, ErrorEnvelope>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

n.B. I'm just taking the ids and inputs and outputting the success boolean; seems much cleaner to me than making extra input/output objects.

@amy-at-kickstarter amy-at-kickstarter marked this pull request as ready for review May 30, 2024 13:48
@amy-at-kickstarter amy-at-kickstarter force-pushed the feat/adyer/mbl-1449/createOrUpdateBackingAddress branch from 6fb0bc7 to 32147b5 Compare May 30, 2024 13:49
@amy-at-kickstarter amy-at-kickstarter requested review from a team and ifosli and removed request for a team May 31, 2024 16:59
@amy-at-kickstarter amy-at-kickstarter self-assigned this May 31, 2024
@amy-at-kickstarter amy-at-kickstarter force-pushed the feat/adyer/mbl-1449/createOrUpdateBackingAddress branch from 32147b5 to aec34af Compare May 31, 2024 21:07
@amy-at-kickstarter amy-at-kickstarter merged commit 385972a into main May 31, 2024
5 checks passed
@amy-at-kickstarter amy-at-kickstarter deleted the feat/adyer/mbl-1449/createOrUpdateBackingAddress branch May 31, 2024 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants