Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions odp-directory/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,10 @@ Select the fixed sandbox directory explicitly:
DirectoryClient directory = DirectoryClient.create(DirectoryEnvironment.SANDBOX);
```

| Environment | Canonical origin |
| ----------- | ------------------------------ |
| Production | `https://api.inflowpay.ai` |
| Sandbox | `https://sandbox.inflowpay.ai` |
| Environment | Canonical origin |
| ----------- | --------------------------------------- |
| Production | `https://directory.offeringprotocol.org` |
| Sandbox | `https://sandbox.inflowpay.ai` |

Callers cannot configure another directory origin. The overload accepting `HttpClient` supports
application transport policy and testing while preserving the selected canonical origin:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import java.net.URI;

public enum DirectoryEnvironment {
PRODUCTION("https://api.inflowpay.ai"),
PRODUCTION("https://directory.offeringprotocol.org"),
SANDBOX("https://sandbox.inflowpay.ai");

private final URI canonicalOrigin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ class DirectoryClientTest {
@Test
void selectsOnlyCanonicalEnvironments() {
assertEquals(DirectoryEnvironment.PRODUCTION, DirectoryClient.create().environment());
assertEquals(
"https://directory.offeringprotocol.org",
DirectoryClient.create().environment().origin().toString());
assertEquals(
"https://sandbox.inflowpay.ai",
DirectoryClient.create(DirectoryEnvironment.SANDBOX)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ void sendsSuggestionFiltersInJson() {
"application/json",
transport.requests.get(0).headers().firstValue("Content-Type").orElseThrow());
assertEquals(
"https://api.inflowpay.ai/v1/directory/suggestions",
"https://directory.offeringprotocol.org/v1/directory/suggestions",
transport.requests.get(0).uri().toString());
}

Expand Down
Loading