This repository has been archived by the owner on Apr 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* From connect-api-specification: Release SDK 2.4 (#81) * Document changes for 2.4 release
- Loading branch information
Francisco Rojas
authored
Sep 27, 2017
1 parent
484b515
commit c1d270d
Showing
20 changed files
with
681 additions
and
21 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
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,62 @@ | ||
# ApplePayApi | ||
|
||
All URIs are relative to *https://connect.squareup.com* | ||
|
||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**registerDomain**](ApplePayApi.md#registerDomain) | **POST** /v2/apple-pay/domains | RegisterDomain | ||
|
||
|
||
<a name="registerDomain"></a> | ||
# **registerDomain** | ||
> RegisterDomainResponse registerDomain(body) | ||
RegisterDomain | ||
|
||
Activates a domain for use with Web Apple Pay and Square. A validation will be performed on this domain by Apple to ensure is it properly set up as an Apple Pay enabled domain. This endpoint provides an easy way for platform developers to bulk activate Web Apple Pay with Square for merchants using their platform. To learn more about Apple Pay on Web see the Apple Pay section in the [Embedding the Square Payment Form](https://docs.connect.squareup.com/articles/adding-payment-form) guide. | ||
|
||
### Example | ||
```java | ||
// Import classes: | ||
//import com.squareup.connect.ApiClient; | ||
//import com.squareup.connect.ApiException; | ||
//import com.squareup.connect.Configuration; | ||
//import com.squareup.connect.auth.*; | ||
//import com.squareup.connect.api.ApplePayApi; | ||
|
||
ApiClient defaultClient = Configuration.getDefaultApiClient(); | ||
|
||
// Configure OAuth2 access token for authorization: oauth2 | ||
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2"); | ||
oauth2.setAccessToken("YOUR ACCESS TOKEN"); | ||
|
||
ApplePayApi apiInstance = new ApplePayApi(); | ||
RegisterDomainRequest body = new RegisterDomainRequest(); // RegisterDomainRequest | An object containing the fields to POST for the request. See the corresponding object definition for field details. | ||
try { | ||
RegisterDomainResponse result = apiInstance.registerDomain(body); | ||
System.out.println(result); | ||
} catch (ApiException e) { | ||
System.err.println("Exception when calling ApplePayApi#registerDomain"); | ||
e.printStackTrace(); | ||
} | ||
``` | ||
|
||
### Parameters | ||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
**body** | [**RegisterDomainRequest**](RegisterDomainRequest.md)| An object containing the fields to POST for the request. See the corresponding object definition for field details. | | ||
|
||
### Return type | ||
|
||
[**RegisterDomainResponse**](RegisterDomainResponse.md) | ||
|
||
### Authorization | ||
|
||
[oauth2](../README.md#oauth2) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: application/json | ||
- **Accept**: application/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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
# LocationType | ||
|
||
## Enum | ||
|
||
|
||
* `PHYSICAL` (value: `"PHYSICAL"`) | ||
|
||
* `MOBILE` (value: `"MOBILE"`) | ||
|
||
|
||
|
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,10 @@ | ||
|
||
# RegisterDomainRequest | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**domainName** | **String** | A domain name as described in RFC-1034 that will be registered with ApplePay | | ||
|
||
|
||
|
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,19 @@ | ||
|
||
# RegisterDomainResponse | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**errors** | [**List<Error>**](Error.md) | Any errors that occurred during the request. | [optional] | ||
**status** | [**StatusEnum**](#StatusEnum) | Status of the domain registration. See [RegisterDomainResponseStatus](#type-registerdomainresponsestatus) for possible values. | [optional] | ||
|
||
|
||
<a name="StatusEnum"></a> | ||
## Enum: StatusEnum | ||
Name | Value | ||
---- | ----- | ||
PENDING | "PENDING" | ||
VERIFIED | "VERIFIED" | ||
|
||
|
||
|
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,12 @@ | ||
|
||
# RegisterDomainResponseStatus | ||
|
||
## Enum | ||
|
||
|
||
* `PENDING` (value: `"PENDING"`) | ||
|
||
* `VERIFIED` (value: `"VERIFIED"`) | ||
|
||
|
||
|
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
Oops, something went wrong.