From de262a82c40fdbb3863bd0068c5b21b16bd7c8ba Mon Sep 17 00:00:00 2001 From: David McNally Date: Mon, 23 Jan 2017 15:59:11 +0000 Subject: [PATCH 1/3] Deprecate add_payment_transaction --- app/models/cart.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/models/cart.rb b/app/models/cart.rb index 92e7660..9c1732d 100644 --- a/app/models/cart.rb +++ b/app/models/cart.rb @@ -94,10 +94,6 @@ def validate_stock! end end - def add_payment_transaction(transaction) - self.class.requestor.custom("relationships/payment_transactions", {request_method: :post}, {id: id, data: [type: "payment_transactions", id: transaction.id.to_s]}) - end - def self.create(*args) if FlexCommerceApi.config.order_test_mode super({test: true}) From 49e3706c88cb832c822430de0a521c1b0cfe0830 Mon Sep 17 00:00:00 2001 From: David McNally Date: Mon, 23 Jan 2017 16:24:27 +0000 Subject: [PATCH 2/3] Bump version number --- lib/flex_commerce_api/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/flex_commerce_api/version.rb b/lib/flex_commerce_api/version.rb index 202a72e..489e32f 100644 --- a/lib/flex_commerce_api/version.rb +++ b/lib/flex_commerce_api/version.rb @@ -1,4 +1,4 @@ module FlexCommerceApi - VERSION = '0.6.25' + VERSION = '0.6.26' API_VERSION = 'v1' end From c17194bc20cfe6d1e7f0a1de9134f6f4982abab9 Mon Sep 17 00:00:00 2001 From: David McNally Date: Mon, 23 Jan 2017 16:33:12 +0000 Subject: [PATCH 3/3] Bump version --- lib/flex_commerce_api/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/flex_commerce_api/version.rb b/lib/flex_commerce_api/version.rb index 489e32f..8f1048e 100644 --- a/lib/flex_commerce_api/version.rb +++ b/lib/flex_commerce_api/version.rb @@ -1,4 +1,4 @@ module FlexCommerceApi - VERSION = '0.6.26' + VERSION = '0.7.0' API_VERSION = 'v1' end