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 #86 from square/release/2.20200122.1
Browse files Browse the repository at this point in the history
Release 2.20200122.1
  • Loading branch information
vzhu authored Feb 12, 2020
2 parents 143c5d4 + 5252b15 commit efe1eb6
Show file tree
Hide file tree
Showing 196 changed files with 287 additions and 280 deletions.
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## Version 2.20200122.1 (2020-02-12)
**Documentation Changes**

* Minor updates for Payments API descriptions
* Deprecation & retirement dates added for Transactions API endpoints


## Version 2.20200122.0 (2020-01-22)
* New field: The **Employee** object now has an `is_owner` field.
* New field: The **Card** enumeration has a new `SQUARE_CAPITAL_CARD` enum value to support a Square one-time Installments payment.
Expand Down
2 changes: 1 addition & 1 deletion docs/CancelPaymentByIdempotencyKeyResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Description

Return value from the [CancelPaymentByIdempotencyKey](#endpoint-payments-cancelpaymentbyidempotencykey) endpoint. On success, `errors` will be empty.
Return value from the [CancelPaymentByIdempotencyKey](#endpoint-payments-cancelpaymentbyidempotencykey) endpoint. On success, `errors` will be empty.

## Properties
Name | Type | Description | Notes
Expand Down
8 changes: 4 additions & 4 deletions docs/CreatePaymentRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ Creates a payment from the source (nonce, card on file, etc.) The `PAYMENTS_WRI
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**source_id** | **String** | The ID for the source of funds for this payment. This can be a nonce generated by the Payment Form or a card on file made with the Customers API. |
**idempotency_key** | **String** | A unique string that identifies this CreatePayment request. Keys can be any valid string but must be unique for every CreatePayment request. Max: 45 characters See [Idempotency keys](https://developer.squareup.com/docs/basics/api101/idempotency) for more information. |
**idempotency_key** | **String** | A unique string that identifies this CreatePayment request. Keys can be any valid string but must be unique for every CreatePayment request. Max: 45 characters See [Idempotency keys](https://developer.squareup.com/docs/basics/api101/idempotency) for more information. |
**amount_money** | [**Money**](Money.md) | The amount of money to accept for this payment, not including `tip_money`. Must be specified 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 currency code must match the currency associated with the business that is accepting the payment. |
**tip_money** | [**Money**](Money.md) | The amount designated as a tip, in addition to `amount_money` Must be specified 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 currency code must match the currency associated with the business that is accepting the payment. | [optional]
**app_fee_money** | [**Money**](Money.md) | The amount of money the developer is taking as a fee for facilitating the payment on behalf of the seller. Cannot be more than 90% of the total amount of the Payment. Must be specified 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 fee currency code must match the currency associated with the merchant that is accepting the payment. The application must be from a developer account in the same country as the merchant. For more information about the application fee scenario, see [Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees). | [optional]
**autocomplete** | **Boolean** | If set to `true`, this payment will be completed when possible. If set to `false`, this payment will be held in an approved state until either explicitly completed (captured) or canceled (voided). For more information, see [Delayed Payments](https://developer.squareup.com/docs/payments-api/take-payments#delayed-payments). Default: true | [optional]
**app_fee_money** | [**Money**](Money.md) | The amount of money the developer is taking as a fee for facilitating the payment on behalf of the seller. Cannot be more than 90% of the total amount of the Payment. Must be specified 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 fee currency code must match the currency associated with the merchant that is accepting the payment. The application must be from a developer account in the same country, and using the same currency code, as the merchant. For more information about the application fee scenario, see [Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees). | [optional]
**autocomplete** | **Boolean** | If set to `true`, this payment will be completed when possible. If set to `false`, this payment will be held in an approved state until either explicitly completed (captured) or canceled (voided). For more information, see [Delayed Payments](https://developer.squareup.com/docs/payments-api/take-payments#delayed-payments). Default: true | [optional]
**order_id** | **String** | Associate a previously created order with this payment | [optional]
**customer_id** | **String** | The ID of the customer associated with the payment. Required if the `source_id` refers to a card on file created using the Customers API. | [optional]
**location_id** | **String** | The location ID to associate with the payment. If not specified, the default location is used. | [optional]
**reference_id** | **String** | A user-defined ID to associate with the payment. You can use this field to associate the payment to an entity in an external system. For example, you might specify an order ID that is generated by a third-party shopping cart. Limit 40 characters. | [optional]
**verification_token** | **String** | An identifying token generated by `SqPaymentForm.verifyBuyer()`. Verification tokens encapsulate customer device information and 3-D Secure challenge results to indicate that Square has verified the buyer identity. See the [SCA Overview](https://developer.squareup.com/docs/sca-overview). | [optional]
**accept_partial_authorization** | **Boolean** | If set to true and charging a Square Gift Card, a payment may be returned with amount_money equal to less than what was requested. Example, a request for $20 when charging a Square Gift Card with balance of $5 wil result in an APPROVED payment of $5. You may choose to prompt the buyer for an additional payment to cover the remainder, or cancel the gift card payment. Cannot be `true` when `autocomplete = true`. For more information, see [Partial amount with Square gift cards](https://developer.squareup.com/docs/payments-api/take-payments#partial-payment-gift-card). Default: false | [optional] [beta]
**accept_partial_authorization** | **Boolean** | If set to true and charging a Square Gift Card, a payment may be returned with amount_money equal to less than what was requested. Example, a request for $20 when charging a Square Gift Card with balance of $5 wil result in an APPROVED payment of $5. You may choose to prompt the buyer for an additional payment to cover the remainder, or cancel the gift card payment. Cannot be `true` when `autocomplete = true`. For more information, see [Partial amount with Square gift cards](https://developer.squareup.com/docs/payments-api/take-payments#partial-payment-gift-card). Default: false | [optional] [beta]
**buyer_email_address** | **String** | The buyer's e-mail address | [optional]
**billing_address** | [**Address**](Address.md) | The buyer's billing address. | [optional]
**shipping_address** | [**Address**](Address.md) | The buyer's shipping address. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/ListPaymentsRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Name | Type | Description | Notes
**end_time** | **String** | Timestamp for the end of the requested reporting period, in RFC 3339 format. Default: The current time. | [optional]
**sort_order** | **String** | The order in which results are listed. - `ASC` - oldest to newest - `DESC` - newest to oldest (default). | [optional]
**cursor** | **String** | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. | [optional]
**location_id** | **String** | ID of location associated with payment | [optional]
**location_id** | **String** | Limit results to the location supplied. By default, results are returned for all locations associated with the merchant. | [optional]
**total** | **Number** | The exact amount in the total_money for a `Payment`. | [optional]
**last_4** | **String** | The last 4 digits of `Payment` card. | [optional]
**card_brand** | **String** | The brand of `Payment` card. For example, `VISA` | [optional]
Expand Down
6 changes: 3 additions & 3 deletions docs/Payment.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ Name | Type | Description | Notes
**id** | **String** | Unique ID for the payment. | [optional]
**created_at** | **String** | Timestamp of when the payment was created, in RFC 3339 format. | [optional]
**updated_at** | **String** | Timestamp of when the payment was last updated, in RFC 3339 format. | [optional]
**amount_money** | [**Money**](Money.md) | The amount of money processed for this payment, not including `tip_money`. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. For more information, see [Working with monetary amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts). | [optional]
**amount_money** | [**Money**](Money.md) | The amount of money processed for this payment, not including `tip_money`. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. For more information, see [Working with monetary amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts). | [optional]
**tip_money** | [**Money**](Money.md) | The amount designated as a tip. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. | [optional]
**total_money** | [**Money**](Money.md) | The total money for the payment, including `amount_money` and `tip_money`. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. | [optional]
**app_fee_money** | [**Money**](Money.md) | The amount of money the developer is taking as a fee for facilitating the payment on behalf of the seller. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. For more information, see [Take Payments and Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees). Cannot be more than 90% of the `total_money` value. | [optional]
**total_money** | [**Money**](Money.md) | The total money for the payment, including `amount_money` and `tip_money`. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. | [optional]
**app_fee_money** | [**Money**](Money.md) | The amount of money the developer is taking as a fee for facilitating the payment on behalf of the seller. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. For more information, see [Take Payments and Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees). Cannot be more than 90% of the `total_money` value. | [optional]
**processing_fee** | [**[ProcessingFee]**](ProcessingFee.md) | Processing fees and fee adjustments assessed by Square on this payment. | [optional]
**refunded_money** | [**Money**](Money.md) | Total amount of the payment refunded to-date. Specified in the smallest denomination of the applicable currency. For example, US dollar amounts are specified in cents. | [optional]
**status** | **String** | Indicates whether the payment is `APPROVED`, `COMPLETED`, `CANCELED`, or `FAILED`. | [optional]
Expand Down
6 changes: 3 additions & 3 deletions docs/PaymentsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Name | Type | Description | Notes
CancelPaymentByIdempotencyKey

Cancels (voids) a payment identified by the idempotency key that is specified in the request. Use this method when status of a CreatePayment request is unknown. For example, after you send a CreatePayment request a network error occurs and you don't get a response. In this case, you can direct Square to cancel the payment using this endpoint. In the request, you provide the same idempotency key that you provided in your CreatePayment request you want to cancel. After cancelling the payment, you can submit your CreatePayment request again. Note that if no payment with the specified idempotency key is found, no action is taken, the end point returns successfully.
Cancels (voids) a payment identified by the idempotency key that is specified in the request. Use this method when status of a CreatePayment request is unknown. For example, after you send a CreatePayment request a network error occurs and you don't get a response. In this case, you can direct Square to cancel the payment using this endpoint. In the request, you provide the same idempotency key that you provided in your CreatePayment request you want to cancel. After cancelling the payment, you can submit your CreatePayment request again. Note that if no payment with the specified idempotency key is found, no action is taken, the end point returns successfully.

### Example
```javascript
Expand Down Expand Up @@ -276,7 +276,7 @@ var opts = {
'endTime': "endTime_example", // String | Timestamp for the end of the requested reporting period, in RFC 3339 format. Default: The current time.
'sortOrder': "sortOrder_example", // String | The order in which results are listed. - `ASC` - oldest to newest - `DESC` - newest to oldest (default).
'cursor': "cursor_example", // String | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information.
'locationId': "locationId_example", // String | ID of location associated with payment
'locationId': "locationId_example", // String | Limit results to the location supplied. By default, results are returned for all locations associated with the merchant.
'total': 789, // Number | The exact amount in the total_money for a `Payment`.
'last4': "last4_example", // String | The last 4 digits of `Payment` card.
'cardBrand': "cardBrand_example" // String | The brand of `Payment` card. For example, `VISA`
Expand All @@ -297,7 +297,7 @@ Name | Type | Description | Notes
**endTime** | **String**| Timestamp for the end of the requested reporting period, in RFC 3339 format. Default: The current time. | [optional]
**sortOrder** | **String**| The order in which results are listed. - `ASC` - oldest to newest - `DESC` - newest to oldest (default). | [optional]
**cursor** | **String**| A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for the original query. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. | [optional]
**locationId** | **String**| ID of location associated with payment | [optional]
**locationId** | **String**| Limit results to the location supplied. By default, results are returned for all locations associated with the merchant. | [optional]
**total** | **Number**| The exact amount in the total_money for a `Payment`. | [optional]
**last4** | **String**| The last 4 digits of `Payment` card. | [optional]
**cardBrand** | **String**| The brand of `Payment` card. For example, `VISA` | [optional]
Expand Down
Loading

0 comments on commit efe1eb6

Please sign in to comment.