flowcommerce 0.0.56 → 0.0.57
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flow_commerce/flow_api_v0_client.rb +16 -12
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4930c802478cc4684b00252482f9e2ef08fd5f77
|
4
|
+
data.tar.gz: c2dac04fc4b8e002c830a3e4f7841fa12c814e5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a06b10fece32d3f5c0126ddc4553954d31013b25d610e56827233d8b93198c830e370c899d2116093f8356019e8ca6126843fae9295ae34967d778ce659c3e21
|
7
|
+
data.tar.gz: 96b4edc1e275b6dcfc16fdd566b4b142b0e9d9d0a825bb4ebda4334ca07246bde09b96a83c319df34f3735ca0ef193ef3999c57c26b97fd762c34291a4a725d8
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# Generated by apidoc - http://www.apidoc.me
|
2
|
-
# Service version: 0.1.
|
2
|
+
# Service version: 0.1.55
|
3
3
|
# apidoc:0.11.37 http://www.apidoc.me/flow/api/0.1.54/ruby_client
|
4
4
|
|
5
5
|
require 'cgi'
|
@@ -26,7 +26,7 @@ module Io
|
|
26
26
|
BASE_URL = 'https://api.flow.io' unless defined?(Constants::BASE_URL)
|
27
27
|
NAMESPACE = 'io.flow.v0' unless defined?(Constants::NAMESPACE)
|
28
28
|
USER_AGENT = 'apidoc:0.11.37 http://www.apidoc.me/flow/api/0.1.54/ruby_client' unless defined?(Constants::USER_AGENT)
|
29
|
-
VERSION = '0.1.
|
29
|
+
VERSION = '0.1.55' unless defined?(Constants::VERSION)
|
30
30
|
VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
|
31
31
|
|
32
32
|
end
|
@@ -4769,16 +4769,19 @@ module Io
|
|
4769
4769
|
@@all ||= [DeliveredDuty.paid, DeliveredDuty.unpaid, DeliveredDuty.choice]
|
4770
4770
|
end
|
4771
4771
|
|
4772
|
-
# DDP
|
4772
|
+
# Delivered Duty Paid (DDP). See https://en.wikipedia.org/wiki/Incoterms for
|
4773
|
+
# more information
|
4773
4774
|
def DeliveredDuty.paid
|
4774
4775
|
@@_paid ||= DeliveredDuty.new('paid')
|
4775
4776
|
end
|
4776
4777
|
|
4777
|
-
# DDU
|
4778
|
+
# Delivered Duty Unpaid (DDU). See https://en.wikipedia.org/wiki/Incoterms for
|
4779
|
+
# more information
|
4778
4780
|
def DeliveredDuty.unpaid
|
4779
4781
|
@@_unpaid ||= DeliveredDuty.new('unpaid')
|
4780
4782
|
end
|
4781
4783
|
|
4784
|
+
# Allow the customer to choose whether they would like DDP or DDU
|
4782
4785
|
def DeliveredDuty.choice
|
4783
4786
|
@@_choice ||= DeliveredDuty.new('choice')
|
4784
4787
|
end
|
@@ -4817,8 +4820,8 @@ module Io
|
|
4817
4820
|
@@all ||= [Environment.sandbox, Environment.production]
|
4818
4821
|
end
|
4819
4822
|
|
4820
|
-
# In sandbox, no external services (e.g. payments, logistics) will
|
4821
|
-
# transactions
|
4823
|
+
# In sandbox, no external services (e.g. orders, payments, logistics) will
|
4824
|
+
# generate real transactions
|
4822
4825
|
def Environment.sandbox
|
4823
4826
|
@@_sandbox ||= Environment.new('sandbox')
|
4824
4827
|
end
|
@@ -5323,12 +5326,13 @@ module Io
|
|
5323
5326
|
@@all ||= [MarginType.fixed, MarginType.percent]
|
5324
5327
|
end
|
5325
5328
|
|
5326
|
-
# A fixed amount to add, e.g
|
5329
|
+
# A fixed amount to add, e.g 2.5 would add an absolute margin of 2.5 in the base
|
5330
|
+
# currency of your item.
|
5327
5331
|
def MarginType.fixed
|
5328
5332
|
@@_fixed ||= MarginType.new('fixed')
|
5329
5333
|
end
|
5330
5334
|
|
5331
|
-
# A percent of the base cost to add, e.g.
|
5335
|
+
# A percent of the base cost to add, e.g. 1.2 would represent a 1.2% increase.
|
5332
5336
|
def MarginType.percent
|
5333
5337
|
@@_percent ||= MarginType.new('percent')
|
5334
5338
|
end
|
@@ -5828,7 +5832,7 @@ module Io
|
|
5828
5832
|
end
|
5829
5833
|
|
5830
5834
|
# Rounds a value to an amount that is the multiple of a value, e.g. rounding to
|
5831
|
-
# the nearest
|
5835
|
+
# the nearest 5 would ensure that the resulting number ends in either 0 or 5.
|
5832
5836
|
def RoundingType.multiple
|
5833
5837
|
@@_multiple ||= RoundingType.new('multiple')
|
5834
5838
|
end
|
@@ -7466,7 +7470,7 @@ module Io
|
|
7466
7470
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
7467
7471
|
@numbers = (x = opts.delete(:numbers); x.nil? ? nil : HttpClient::Preconditions.assert_class('numbers', x, Array).map { |v| HttpClient::Preconditions.assert_class('numbers', v, String) })
|
7468
7472
|
@q = (x = opts.delete(:q); x.nil? ? nil : HttpClient::Preconditions.assert_class('q', x, String))
|
7469
|
-
@sort =
|
7473
|
+
@sort = (x = opts.delete(:sort); x.nil? ? nil : HttpClient::Preconditions.assert_class('sort', x, String))
|
7470
7474
|
end
|
7471
7475
|
|
7472
7476
|
def to_json
|
@@ -14471,7 +14475,7 @@ module Io
|
|
14471
14475
|
super(:name => ExportType::Types::SOLIDUS_PRODUCT_EXPORT_TYPE)
|
14472
14476
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
14473
14477
|
@numbers = (x = opts.delete(:numbers); x.nil? ? nil : HttpClient::Preconditions.assert_class('numbers', x, Array).map { |v| HttpClient::Preconditions.assert_class('numbers', v, String) })
|
14474
|
-
@sort =
|
14478
|
+
@sort = (x = opts.delete(:sort); x.nil? ? nil : HttpClient::Preconditions.assert_class('sort', x, String))
|
14475
14479
|
end
|
14476
14480
|
|
14477
14481
|
def to_json
|
@@ -14500,7 +14504,7 @@ module Io
|
|
14500
14504
|
super(:name => ExportType::Types::SOLIDUS_VARIANT_EXPORT_TYPE)
|
14501
14505
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
14502
14506
|
@numbers = (x = opts.delete(:numbers); x.nil? ? nil : HttpClient::Preconditions.assert_class('numbers', x, Array).map { |v| HttpClient::Preconditions.assert_class('numbers', v, String) })
|
14503
|
-
@sort =
|
14507
|
+
@sort = (x = opts.delete(:sort); x.nil? ? nil : HttpClient::Preconditions.assert_class('sort', x, String))
|
14504
14508
|
end
|
14505
14509
|
|
14506
14510
|
def to_json
|