Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Commit

Permalink
Merge pull request #70 from square/release/2.20191023.0
Browse files Browse the repository at this point in the history
Release/2.20191023.0

CreateCheckout api test failed due to service issue.
  • Loading branch information
hukid authored Oct 23, 2019
2 parents 08cd704 + f5d2350 commit c636129
Show file tree
Hide file tree
Showing 181 changed files with 913 additions and 242 deletions.
8 changes: 7 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## Version 2.20191023.0 (2019-10-23)
* **GA release**: Merchants.ListMerchant is GA for all SDKs.
* **Beta release**: All SDKs support new Locations API endpoint, CreateLocation.
* **Beta release**: All SDKs support exclusion strategies for pricing rules.


## Version 2.20190925.0 (2019-09-25)

* **GA release**: All SDKs have been updated to support the new Merchants API.
Expand All @@ -21,7 +27,7 @@

## Version 2.20190814.1 (2018-08-16)

* **Bug fix**: Removed a currently unsupported API object type
* **Bug fix**: Removed a currentlyunsupported API object type
## Version 2.20190814.0 (2019-08-15)

* **New functionality**: All SDKs have been updated to support the Sandbox v2 BETA release
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ Class | Method | HTTP request | Description
*SquareConnect.LocationsApi* | [**listLocations**](docs/LocationsApi.md#listLocations) | **GET** /v2/locations | ListLocations
*SquareConnect.LocationsApi* | [**retrieveLocation**](docs/LocationsApi.md#retrieveLocation) | **GET** /v2/locations/{location_id} | RetrieveLocation
*SquareConnect.LocationsApi* | [**updateLocation**](docs/LocationsApi.md#updateLocation) | **PUT** /v2/locations/{location_id} | UpdateLocation
*SquareConnect.MerchantsApi* | [**listMerchants**](docs/MerchantsApi.md#listMerchants) | **GET** /v2/merchants | ListMerchants
*SquareConnect.MerchantsApi* | [**retrieveMerchant**](docs/MerchantsApi.md#retrieveMerchant) | **GET** /v2/merchants/{merchant_id} | RetrieveMerchant
*SquareConnect.MobileAuthorizationApi* | [**createMobileAuthorizationCode**](docs/MobileAuthorizationApi.md#createMobileAuthorizationCode) | **POST** /mobile/authorization-code | CreateMobileAuthorizationCode
*SquareConnect.OAuthApi* | [**obtainToken**](docs/OAuthApi.md#obtainToken) | **POST** /oauth2/token | ObtainToken
Expand Down Expand Up @@ -346,6 +347,7 @@ Class | Method | HTTP request | Description
- [SquareConnect.Error](docs/Error.md)
- [SquareConnect.ErrorCategory](docs/ErrorCategory.md)
- [SquareConnect.ErrorCode](docs/ErrorCode.md)
- [SquareConnect.ExcludeStrategy](docs/ExcludeStrategy.md)
- [SquareConnect.GetBreakTypeRequest](docs/GetBreakTypeRequest.md)
- [SquareConnect.GetBreakTypeResponse](docs/GetBreakTypeResponse.md)
- [SquareConnect.GetEmployeeWageRequest](docs/GetEmployeeWageRequest.md)
Expand Down Expand Up @@ -381,6 +383,8 @@ Class | Method | HTTP request | Description
- [SquareConnect.ListEmployeesResponse](docs/ListEmployeesResponse.md)
- [SquareConnect.ListLocationsRequest](docs/ListLocationsRequest.md)
- [SquareConnect.ListLocationsResponse](docs/ListLocationsResponse.md)
- [SquareConnect.ListMerchantsRequest](docs/ListMerchantsRequest.md)
- [SquareConnect.ListMerchantsResponse](docs/ListMerchantsResponse.md)
- [SquareConnect.ListPaymentRefundsRequest](docs/ListPaymentRefundsRequest.md)
- [SquareConnect.ListPaymentRefundsResponse](docs/ListPaymentRefundsResponse.md)
- [SquareConnect.ListPaymentsRequest](docs/ListPaymentsRequest.md)
Expand Down
1 change: 1 addition & 0 deletions docs/AdditionalRecipientReceivable.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SquareConnect.AdditionalRecipientReceivable

### Description
**Note: This model is deprecated.**

Represents a monetary distribution of part of a [Transaction](#type-transaction)'s amount for Transactions which included additional recipients. The location of this receivable is that same as the one specified in the [AdditionalRecipient](#type-additionalrecipient).

Expand Down
1 change: 1 addition & 0 deletions docs/AdditionalRecipientReceivableRefund.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SquareConnect.AdditionalRecipientReceivableRefund

### Description
**Note: This model is deprecated.**

A refund of an [AdditionalRecipientReceivable](#type-additionalrecipientreceivable). This includes the ID of the additional recipient receivable associated to this object, as well as a reference to the [Refund](#type-refund) that created this receivable refund.

Expand Down
1 change: 1 addition & 0 deletions docs/CaptureTransactionRequest.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SquareConnect.CaptureTransactionRequest

### Description
**Note: This model is deprecated.**

Defines the query parameters for calls to the CaptureTransaction endpoint.

Expand Down
1 change: 1 addition & 0 deletions docs/CaptureTransactionResponse.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SquareConnect.CaptureTransactionResponse

### Description
**Note: This model is deprecated.**

Defines the fields that are included in the response body of a request to the [CaptureTransaction](#endpoint-capturetransaction) endpoint.

Expand Down
2 changes: 1 addition & 1 deletion docs/CatalogApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ Name | Type | Description | Notes
ListCatalog

Returns a list of [CatalogObject](#type-catalogobject)s that includes all objects of a set of desired types (for example, all [CatalogItem](#type-catalogitem) and [CatalogTax](#type-catalogtax) objects) in the catalog. The `types` parameter is specified as a comma-separated list of valid [CatalogObject](#type-catalogobject) types: `ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, `CATEGORY`, `DISCOUNT`, `TAX`. __Important:__ ListCatalog does not return deleted catalog items. To retrieve deleted catalog items, use SearchCatalogObjects and set `include_deleted_objects` to `true`.
Returns a list of [CatalogObject](#type-catalogobject)s that includes all objects of a set of desired types (for example, all [CatalogItem](#type-catalogitem) and [CatalogTax](#type-catalogtax) objects) in the catalog. The `types` parameter is specified as a comma-separated list of valid [CatalogObject](#type-catalogobject) types: `ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, `CATEGORY`, `DISCOUNT`, `TAX`, `IMAGE`. __Important:__ ListCatalog does not return deleted catalog items. To retrieve deleted catalog items, use SearchCatalogObjects and set `include_deleted_objects` to `true`.

### Example
```javascript
Expand Down
2 changes: 1 addition & 1 deletion docs/CatalogItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ Name | Type | Description | Notes
**variations** | [**[CatalogObject]**](CatalogObject.md) | A list of `CatalogObject`s containing the `CatalogItemVariation`s for this item. Maximum: 250 item variations | [optional]
**product_type** | **String** | The product type of the item. May not be changed once an item has been created. Only items of product type `REGULAR` or `APPOINTMENTS_SERVICE` may be created by this API; items with other product types are read-only. See [CatalogItemProductType](#type-catalogitemproducttype) for possible values | [optional]
**skip_modifier_screen** | **Boolean** | If `false`, the Square Point of Sale app will present the `CatalogItem`'s details screen immediately, allowing the merchant to choose `CatalogModifier`s before adding the item to the cart. This is the default behavior. If `true`, the Square Point of Sale app will immediately add the item to the cart with the pre-selected modifiers, and merchants can edit modifiers by drilling down onto the item's details. Third-party clients are encouraged to implement similar behaviors. | [optional]
**item_options** | [**[CatalogItemOptionForItem]**](CatalogItemOptionForItem.md) | List of item options IDs for this item. Used to manage and group item variations in a specified order. Maximum: 6 item options. | [optional]
**item_options** | [**[CatalogItemOptionForItem]**](CatalogItemOptionForItem.md) | List of item options IDs for this item. Used to manage and group item variations in a specified order. Maximum: 6 item options. | [optional] [beta]


1 change: 1 addition & 0 deletions docs/CatalogItemOption.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SquareConnect.CatalogItemOption

### Description
**Note: This model is in beta.**

A group of variations for a [CatalogItem](#type-catalogitem)'s.

Expand Down
1 change: 1 addition & 0 deletions docs/CatalogItemOptionForItem.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SquareConnect.CatalogItemOptionForItem

### Description
**Note: This model is in beta.**

A list of item option values that can be assigned to item variations. For example, a t-shirt item may offer a color option or a size option.

Expand Down
3 changes: 2 additions & 1 deletion docs/CatalogItemOptionValue.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SquareConnect.CatalogItemOptionValue

### Description
**Note: This model is in beta.**

An enumerated value that can link a [CatalogItemVariation(#type-catalogitemvariation) to an item option as one of its item option values.

Expand All @@ -10,7 +11,7 @@ Name | Type | Description | Notes
**item_option_id** | **String** | Unique ID of the associated item option. | [optional]
**name** | **String** | Name of this item option value. Searchable. | [optional]
**description** | **String** | The option value's human-readable description. | [optional]
**color** | **String** | The HTML color for this value in the format #FFRRGGBB or #RRGGBB (e.g., \"#ff8d4e85\"). Only displayed if parent Item Option's `show_colors` flag is enabled. value. | [optional]
**color** | **String** | The HTML-supported hex color for the item option (e.g., \"#ff8d4e85\"). Only displayed if `show_colors` is enabled on the parent `ItemOption`. When left unset, `color` defaults to white (\"#ffffff\") when `show_colors` is enabled on the parent `ItemOption`. | [optional]
**ordinal** | **Number** | Determines where this option value appears in a list of option values. | [optional]
**item_variation_count** | **Number** | The number of [CatalogItemVariation(#type-catalogitemvariation)s that currently make use of this Item Option value. Present only if `retrieve_counts` was specified on the request used to retrieve the parent Item Option of this value. Maximum: 100 counts. | [optional]

Expand Down
1 change: 1 addition & 0 deletions docs/CatalogItemOptionValueForItemVariation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SquareConnect.CatalogItemOptionValueForItemVariation

### Description
**Note: This model is in beta.**

A [CatalogItemOptionValue](#type-catalogitemoptionvalue) links an item variation to an item option as an item option value. For example, a t-shirt item may offer a color option and a size option. An item option value would represent each variation of t-shirt: For example, “Color:Red, Size:Small” or “Color:Blue, Size:Medium”.

Expand Down
4 changes: 2 additions & 2 deletions docs/CatalogItemVariation.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Name | Type | Description | Notes
**inventory_alert_threshold** | **Number** | If the inventory quantity for the variation is less than or equal to this value and `inventory_alert_type` is `LOW_QUANTITY`, the variation displays an alert in the merchant dashboard. This value is always an integer. | [optional]
**user_data** | **String** | Arbitrary user metadata to associate with the item variation. Cannot exceed 255 characters. Searchable. | [optional]
**service_duration** | **Number** | If the `CatalogItem` that owns this item variation is of type `APPOINTMENTS_SERVICE`, then this is the duration of the service in milliseconds. For example, a 30 minute appointment would have the value `1800000`, which is equal to 30 (minutes) * 60 (seconds per minute) * 1000 (milliseconds per second). | [optional]
**item_option_values** | [**[CatalogItemOptionValueForItemVariation]**](CatalogItemOptionValueForItemVariation.md) | List of item option values associated with this item variation. Listed in the same order as the item options of the parent item. | [optional]
**measurement_unit_id** | **String** | ID of the ‘CatalogMeasurementUnit’ that is used to measure the quantity sold of this item variation. If left unset, the item will be sold in whole quantities. | [optional]
**item_option_values** | [**[CatalogItemOptionValueForItemVariation]**](CatalogItemOptionValueForItemVariation.md) | List of item option values associated with this item variation. Listed in the same order as the item options of the parent item. | [optional] [beta]
**measurement_unit_id** | **String** | ID of the ‘CatalogMeasurementUnit’ that is used to measure the quantity sold of this item variation. If left unset, the item will be sold in whole quantities. | [optional] [beta]


1 change: 1 addition & 0 deletions docs/CatalogMeasurementUnit.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SquareConnect.CatalogMeasurementUnit

### Description
**Note: This model is in beta.**

Represents the unit used to measure a [CatalogItemVariation](#type-catalogitemvariation) and specifies the precision for decimal quantities.

Expand Down
4 changes: 3 additions & 1 deletion docs/CatalogPricingRule.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SquareConnect.CatalogPricingRule

### Description
**Note: This model is in beta.**

Defines how prices are modified or set for items that match the pricing rule during the active time period.

Expand All @@ -11,11 +12,12 @@ Name | Type | Description | Notes
**time_period_ids** | **[String]** | Unique ID for the `CatalogTimePeriod`s when this pricing rule is in effect. If left unset, the pricing rule is always in effect. | [optional]
**discount_id** | **String** | Unique ID for the `CatalogDiscount` to take off the price of all matched items. | [optional]
**match_products_id** | **String** | Unique ID for the `CatalogProductSet` that will be matched by this rule. A match rule matches within the entire cart. | [optional]
**apply_products_id** | **String** | The `CatalogProductSet` to apply the pricing rule to within the set of matched products specified by `match_products_id`. An apply rule can only match once within the set of matched products. If left unset, the pricing rule will be applied to all products within the set of matched products. | [optional]
**apply_products_id** | **String** | `CatalogProductSet` to apply the pricing to. An apply rule matches within the subset of the cart that fits the match rules (the match set). An apply rule can only match once in the match set. If not supplied, the pricing will be applied to all products in the match set. Other products retain their base price, or a price generated by other rules. This field has been deprecated: new pricing rules should prefer the exclude_products_id field. Exclude sets allow better control over quantity ranges and offer more flexibility for which matched items receive a discount. | [optional] [deprecated]
**exclude_products_id** | **String** | Identifies the `CatalogProductSet` to exclude from this pricing rule. An exclude rule matches within the subset of the cart that fits the match rules (the match set). An exclude rule can only match once in the match set. If not supplied, the pricing will be applied to all products in the match set. Other products retain their base price, or a price generated by other rules. | [optional]
**valid_from_date** | **String** | Represents the date the Pricing Rule is valid from. Represented in RFC3339 full-date format (YYYY-MM-DD). | [optional]
**valid_from_local_time** | **String** | Represents the local time the pricing rule should be valid from. Time zone is determined by the device running the Point of Sale app. Represented in RFC3339 partial-time format (HH:MM:SS). Partial seconds will be truncated. | [optional]
**valid_until_date** | **String** | Represents the date the pricing rule will become inactive. Represented in RFC3339 full-date format (YYYY-MM-DD). | [optional]
**valid_until_local_time** | **String** | Represents the local time at which the pricing rule will become inactive. Time zone is determined by the device running the Point of Sale app. Represented in RFC3339 partial-time format (HH:MM:SS). Partial seconds will be truncated. | [optional]
**exclude_strategy** | **String** | If an `exclude_products_id` was given, controls which subset of matched products is excluded from any discounts. See `ExcludeStrategy` for all possible values. Default value: `LEAST_EXPENSIVE` See [ExcludeStrategy](#type-excludestrategy) for possible values | [optional]


1 change: 1 addition & 0 deletions docs/CatalogProductSet.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SquareConnect.CatalogProductSet

### Description
**Note: This model is in beta.**

Represents a collection of catalog objects for the purpose of applying a [PricingRule](#type-pricingrule). Including a catalog object will include all of its subtypes. For example, including a category in a product set will include all of its items and associated item variations in the product set. Including an item in a product set will also include its item variations.

Expand Down
1 change: 1 addition & 0 deletions docs/CatalogQueryItemVariationsForItemOptionValues.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SquareConnect.CatalogQueryItemVariationsForItemOptionValues

### Description
**Note: This model is in beta.**



Expand Down
1 change: 1 addition & 0 deletions docs/CatalogQueryItemsForItemOptions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SquareConnect.CatalogQueryItemsForItemOptions

### Description
**Note: This model is in beta.**



Expand Down
1 change: 1 addition & 0 deletions docs/CatalogTimePeriod.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SquareConnect.CatalogTimePeriod

### Description
**Note: This model is in beta.**

Represents a time period - either a single period or a repeating period.

Expand Down
3 changes: 2 additions & 1 deletion docs/ChargeRequest.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# SquareConnect.ChargeRequest

### Description
**Note: This model is deprecated.**

Defines the parameters that can be included in the body of a request to the [Charge](#endpoint-charge) endpoint. Deprecated - recommend using [CreatePayment](#endpoint-payments-createpayment)

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**idempotency_key** | **String** | A value you specify that uniquely identifies this transaction among transactions you've created. If you're unsure whether a particular transaction succeeded, you can reattempt it with the same idempotency key without worrying about double-charging the buyer. See [Idempotency](https://developer.squareup.com/docs/basics/api101/idempotency) for more information. |
**amount_money** | [**Money**](Money.md) | The amount of money to charge. Note that you specify the amount in the __smallest denomination of the applicable currency__. For example, US dollar amounts are specified in cents. See [Working with monetary amounts](#workingwithmonetaryamounts) for details. The value of `currency` must match the currency associated with the business that is charging the card. |
**amount_money** | [**Money**](Money.md) | The amount of money to charge. Note that you specify the amount in the __smallest denomination of the applicable currency__. For example, US dollar amounts are specified in cents. See [Working with monetary amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts) for details. The value of `currency` must match the currency associated with the business that is charging the card. |
**card_nonce** | **String** | A nonce generated from the `SqPaymentForm` that represents the card to charge. The application that provides a nonce to this endpoint must be the _same application_ that generated the nonce with the `SqPaymentForm`. Otherwise, the nonce is invalid. Do not provide a value for this field if you provide a value for `customer_card_id`. | [optional]
**customer_card_id** | **String** | The ID of the customer card on file to charge. Do not provide a value for this field if you provide a value for `card_nonce`. If you provide this value, you _must_ also provide a value for `customer_id`. | [optional]
**delay_capture** | **Boolean** | If `true`, the request will only perform an Auth on the provided card. You can then later perform either a Capture (with the `CaptureTransaction` or a Void (with the `VoidTransaction`. Default value: `false` | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/ChargeRequestAdditionalRecipient.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SquareConnect.ChargeRequestAdditionalRecipient

### Description
**Note: This model is deprecated.**

Represents an additional recipient (other than the merchant) entitled to a portion of the tender. Support is currently limited to USD, CAD and GBP currencies

Expand Down
1 change: 1 addition & 0 deletions docs/ChargeResponse.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SquareConnect.ChargeResponse

### Description
**Note: This model is deprecated.**

Defines the fields that are included in the response body of a request to the [Charge](#endpoint-charge) endpoint. One of `errors` or `transaction` is present in a given response (never both).

Expand Down
Loading

0 comments on commit c636129

Please sign in to comment.