Skip to content

Commit

Permalink
Merge pull request #11 from square/release/5.0.0
Browse files Browse the repository at this point in the history
release 5.0.0
  • Loading branch information
ssung88 authored Feb 26, 2020
2 parents be322eb + 2d2d35a commit 842c4a3
Show file tree
Hide file tree
Showing 142 changed files with 5,990 additions and 1,502 deletions.
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,36 @@
# Changelog
# Change Log

## Version 5.0.0 (2020-02-26)
## API releases
* **GA release**: All SDKs have been updated to support the new Bank Accounts and CashDrawerShifts APIs.

* **Beta release**: All SDKs have been updated to support the new Disputes API.


## Existing API updates

All SDKs have been updated to support the following changes:

* **Catalog API**
* Batch upsert catalog objects endpoint — The `batches` field is now required and the array must have at least one element.
* CatalogModifier — Two fields added:
* `ordinal` to support custom ordering in a modifier list
* `modifier_list_id` to reference the parent modifier list
* CatalogModifierList — New field added: `ordinal` to support custom ordering in a list of **CatalogModifierList** objects.

* **Customers API changes**
* SearchCustomers endpoint — `limit` size reduced from 1000 to 100 to improve the endpoint performance.

* **Orders API changes**
* CreateOrderRequest — Previously these request fields were deprecated: `line_items`, `taxes`, `discounts`. These fields are no longer available. Instead you now use the `Order` object in the request. For example, `Order.line_items`, `Order.taxes`, and `Order.discounts`.
* OrderLineItem type — There are two changes:
* The `taxes` field that was previously deprecated is no longer available. Instead, you now use the `OrderLineItem.applied_taxes` field. This also now requires that you set the `OrderLineItemTax.scope` field.
* The `discounts` field that was previously deprecated is no longer available. Instead, you now use the `OrderLineItem.applied_discounts` field. This also now requires that you set the `OrderLineItemDiscount.scope` field.

* **Shared object updates**
* **Card object** — New fields added: `card_type`, `prepaid_type`. Currently, only the Payments API responses populate these fields.


## Version 4.1.0 (2020-01-22)
* New field: The **Employee** object now has an `is_owner` field.
Expand Down
20 changes: 1 addition & 19 deletions Square.Tests/SanityTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,6 @@ public void TestV1APIException()
public void TestCustomersCycle()
{
var api = client.CustomersApi;
var listCustomersRes = api.ListCustomers();

int orignalCustomersCount = 0;
if (listCustomersRes.Customers != null)
{
orignalCustomersCount = listCustomersRes.Customers.Count;
}

// Create Customer
var createCustomerRes = api.CreateCustomer(TestCreateCustomerRequest);
Expand All @@ -165,9 +158,7 @@ public void TestCustomersCycle()
Assert.AreEqual(retrieveCustomer.FamilyName, TestFamilyName);

// List Customer
listCustomersRes = api.ListCustomers();
var listedCustomers = listCustomersRes.Customers;
Assert.AreEqual(orignalCustomersCount + 1, listedCustomers.Count);
var listCustomersRes = api.ListCustomers();

// Update Customer
var updateCustomerRes = api.UpdateCustomer(createdCustomerId, TestUpdateCustomerRequest);
Expand All @@ -180,15 +171,6 @@ public void TestCustomersCycle()
// Delete Customer
var deleteCustomerRes = api.DeleteCustomer(createdCustomerId);
Assert.AreEqual(deleteCustomerRes.Errors, null);

listCustomersRes = api.ListCustomers();

int finalCustomersCount = 0;
if (listCustomersRes.Customers != null)
{
finalCustomersCount = listCustomersRes.Customers.Count;
}
Assert.AreEqual(orignalCustomersCount, finalCustomersCount);
}
}
}
20 changes: 10 additions & 10 deletions Square.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26430.14
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Square", "Square/Square.csproj", "{4ab9eb37-d74c-4ef7-abf1-8cb193a65d25}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Square", "Square/Square.csproj", "{1f3f1640-0a94-43eb-9d67-58d9340e6ee2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Square.Tests", "Square.Tests/Square.Tests.csproj", "{e928dce4-5cdd-4091-b72b-09e6c76ac7cc}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Square.Tests", "Square.Tests/Square.Tests.csproj", "{007fcf57-8234-4fbd-ad5f-05e9b56927fc}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4ab9eb37-d74c-4ef7-abf1-8cb193a65d25}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4ab9eb37-d74c-4ef7-abf1-8cb193a65d25}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4ab9eb37-d74c-4ef7-abf1-8cb193a65d25}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4ab9eb37-d74c-4ef7-abf1-8cb193a65d25}.Release|Any CPU.Build.0 = Release|Any CPU
{e928dce4-5cdd-4091-b72b-09e6c76ac7cc}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{e928dce4-5cdd-4091-b72b-09e6c76ac7cc}.Debug|Any CPU.Build.0 = Debug|Any CPU
{e928dce4-5cdd-4091-b72b-09e6c76ac7cc}.Release|Any CPU.ActiveCfg = Release|Any CPU
{e928dce4-5cdd-4091-b72b-09e6c76ac7cc}.Release|Any CPU.Build.0 = Release|Any CPU
{1f3f1640-0a94-43eb-9d67-58d9340e6ee2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1f3f1640-0a94-43eb-9d67-58d9340e6ee2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1f3f1640-0a94-43eb-9d67-58d9340e6ee2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1f3f1640-0a94-43eb-9d67-58d9340e6ee2}.Release|Any CPU.Build.0 = Release|Any CPU
{007fcf57-8234-4fbd-ad5f-05e9b56927fc}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{007fcf57-8234-4fbd-ad5f-05e9b56927fc}.Debug|Any CPU.Build.0 = Debug|Any CPU
{007fcf57-8234-4fbd-ad5f-05e9b56927fc}.Release|Any CPU.ActiveCfg = Release|Any CPU
{007fcf57-8234-4fbd-ad5f-05e9b56927fc}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
2 changes: 1 addition & 1 deletion Square/Apis/ApplePayApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public Models.RegisterDomainResponse RegisterDomain(Models.RegisterDomainRequest
{ "user-agent", userAgent },
{ "accept", "application/json" },
{ "content-type", "application/json; charset=utf-8" },
{ "Square-Version", "2020-01-22" }
{ "Square-Version", "2020-02-26" }
};

//append body params
Expand Down
Loading

0 comments on commit 842c4a3

Please sign in to comment.