flowcommerce 0.2.73 → 0.2.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/flow_commerce/flow_api_v0_client.rb +95 -107
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1475b9df916c24f0c3733d3a9f24ebcb8e10c4d4
|
4
|
+
data.tar.gz: d6851c648d164ebcec623a9aa1b667fa9a17a96e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 626f4b5b898b52c2eaf79279f88b9fb6e9807e4bca4d35eeeae3341880cb79a9cf74be310d4c31cca9565319b2185cf23fd4c98a39983678b041e620c5d05813
|
7
|
+
data.tar.gz: 0b35a73138c3b386433069d58d99e9e2a8ad856f3aa1a758742a187647d523289a70b63944795e157c99e05a3deb91d9cdde2d888f7cd18f257cd8cf99f39ec2
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# Generated by API Builder - https://www.apibuilder.io
|
2
2
|
# Service version: 0.6.58
|
3
|
-
# apibuilder 0.14.3 app.apibuilder.io/flow/api/0.6.
|
3
|
+
# apibuilder 0.14.3 app.apibuilder.io/flow/api/0.6.68/ruby_client
|
4
4
|
|
5
5
|
require 'cgi'
|
6
6
|
require 'net/http'
|
@@ -25,7 +25,7 @@ module Io
|
|
25
25
|
|
26
26
|
BASE_URL = 'https://api.flow.io' unless defined?(Constants::BASE_URL)
|
27
27
|
NAMESPACE = 'io.flow.v0' unless defined?(Constants::NAMESPACE)
|
28
|
-
USER_AGENT = 'apibuilder 0.14.3 app.apibuilder.io/flow/api/0.6.
|
28
|
+
USER_AGENT = 'apibuilder 0.14.3 app.apibuilder.io/flow/api/0.6.68/ruby_client' unless defined?(Constants::USER_AGENT)
|
29
29
|
VERSION = '0.6.58' unless defined?(Constants::VERSION)
|
30
30
|
VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
|
31
31
|
|
@@ -464,10 +464,6 @@ module Io
|
|
464
464
|
@password_reset_forms ||= ::Io::Flow::V0::Clients::PasswordResetForms.new(self)
|
465
465
|
end
|
466
466
|
|
467
|
-
def permission_audits
|
468
|
-
@permission_audits ||= ::Io::Flow::V0::Clients::PermissionAudits.new(self)
|
469
|
-
end
|
470
|
-
|
471
467
|
def permission_checks
|
472
468
|
@permission_checks ||= ::Io::Flow::V0::Clients::PermissionChecks.new(self)
|
473
469
|
end
|
@@ -5802,21 +5798,6 @@ module Io
|
|
5802
5798
|
|
5803
5799
|
end
|
5804
5800
|
|
5805
|
-
class PermissionAudits
|
5806
|
-
|
5807
|
-
def initialize(client)
|
5808
|
-
@client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client)
|
5809
|
-
end
|
5810
|
-
|
5811
|
-
# List all permitted routes and behaviors known to flow, along with the roles
|
5812
|
-
# and authentication techniques that could be used to connect to them.
|
5813
|
-
def get
|
5814
|
-
r = @client.request("/permission/audits").get
|
5815
|
-
r.map { |x| ::Io::Flow::V0::Models::FlowRole.from_json(x) }
|
5816
|
-
end
|
5817
|
-
|
5818
|
-
end
|
5819
|
-
|
5820
5801
|
class PermissionChecks
|
5821
5802
|
|
5822
5803
|
def initialize(client)
|
@@ -5825,13 +5806,14 @@ module Io
|
|
5825
5806
|
|
5826
5807
|
# Returns permissions for the specified organization for the current request.
|
5827
5808
|
# Used by integrators to test headers.
|
5828
|
-
def
|
5809
|
+
def get_permission_and_checks_and_all_by_organization(organization, incoming={})
|
5810
|
+
HttpClient::Preconditions.assert_class('organization', organization, String)
|
5829
5811
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
5830
5812
|
query = {
|
5831
5813
|
:permitted_method => (x = opts.delete(:permitted_method); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::PermittedHttpMethod) ? x : ::Io::Flow::V0::Models::PermittedHttpMethod.apply(x)).value),
|
5832
5814
|
:path => (x = opts.delete(:path); x.nil? ? nil : HttpClient::Preconditions.assert_class('path', x, String))
|
5833
5815
|
}.delete_if { |k, v| v.nil? }
|
5834
|
-
r = @client.request("/permission/checks/all").with_query(query).get
|
5816
|
+
r = @client.request("/#{CGI.escape(organization)}/permission/checks/all").with_query(query).get
|
5835
5817
|
::Io::Flow::V0::Models::PermissionCheck.new(r)
|
5836
5818
|
end
|
5837
5819
|
|
@@ -10224,7 +10206,7 @@ module Io
|
|
10224
10206
|
end
|
10225
10207
|
|
10226
10208
|
def AuthenticationTechnique.ALL
|
10227
|
-
@@all ||= [AuthenticationTechnique.anonymous, AuthenticationTechnique.session, AuthenticationTechnique.token, AuthenticationTechnique.user]
|
10209
|
+
@@all ||= [AuthenticationTechnique.anonymous, AuthenticationTechnique.session, AuthenticationTechnique.token, AuthenticationTechnique.partner_token, AuthenticationTechnique.user]
|
10228
10210
|
end
|
10229
10211
|
|
10230
10212
|
# No authentication necessary.
|
@@ -10244,6 +10226,12 @@ module Io
|
|
10244
10226
|
@@_token ||= AuthenticationTechnique.new('token')
|
10245
10227
|
end
|
10246
10228
|
|
10229
|
+
# A partner token. Partner Tokens can only access anonymous endpoints and the
|
10230
|
+
# endpoints of the partner api.
|
10231
|
+
def AuthenticationTechnique.partner_token
|
10232
|
+
@@_partner_token ||= AuthenticationTechnique.new('partner_token')
|
10233
|
+
end
|
10234
|
+
|
10247
10235
|
# A user logs into Flow.
|
10248
10236
|
def AuthenticationTechnique.user
|
10249
10237
|
@@_user ||= AuthenticationTechnique.new('user')
|
@@ -17501,7 +17489,7 @@ module Io
|
|
17501
17489
|
:routing_number => routing_number,
|
17502
17490
|
:billing_address => billing_address.to_hash,
|
17503
17491
|
:order_number => order_number,
|
17504
|
-
:amount => amount,
|
17492
|
+
:amount => amount.to_f.to_s,
|
17505
17493
|
:currency => currency,
|
17506
17494
|
:key => key,
|
17507
17495
|
:attributes => attributes.nil? ? nil : attributes,
|
@@ -17777,7 +17765,7 @@ module Io
|
|
17777
17765
|
{
|
17778
17766
|
:key => key.value,
|
17779
17767
|
:total => total.to_hash,
|
17780
|
-
:rate => rate,
|
17768
|
+
:rate => rate.to_f.to_s,
|
17781
17769
|
:name => name,
|
17782
17770
|
:price => price.nil? ? nil : price.to_hash
|
17783
17771
|
}
|
@@ -18370,7 +18358,7 @@ module Io
|
|
18370
18358
|
def subtype_to_hash
|
18371
18359
|
{
|
18372
18360
|
:source_authorization_key => source_authorization_key,
|
18373
|
-
:amount => amount,
|
18361
|
+
:amount => amount.to_f.to_s,
|
18374
18362
|
:currency => currency,
|
18375
18363
|
:attributes => attributes.nil? ? nil : attributes
|
18376
18364
|
}
|
@@ -19306,7 +19294,7 @@ module Io
|
|
19306
19294
|
:id => id,
|
19307
19295
|
:key => key,
|
19308
19296
|
:authorization => authorization.to_hash,
|
19309
|
-
:amount => amount,
|
19297
|
+
:amount => amount.to_f.to_s,
|
19310
19298
|
:currency => currency,
|
19311
19299
|
:requested => requested.nil? ? nil : requested.to_hash,
|
19312
19300
|
:created_at => created_at,
|
@@ -19410,7 +19398,7 @@ module Io
|
|
19410
19398
|
{
|
19411
19399
|
:authorization_id => authorization_id,
|
19412
19400
|
:key => key,
|
19413
|
-
:amount => amount,
|
19401
|
+
:amount => amount.to_f.to_s,
|
19414
19402
|
:currency => currency,
|
19415
19403
|
:attributes => attributes.nil? ? nil : attributes
|
19416
19404
|
}
|
@@ -19706,7 +19694,7 @@ module Io
|
|
19706
19694
|
:merchant_of_record => merchant_of_record.value,
|
19707
19695
|
:method => method.nil? ? nil : method.to_hash,
|
19708
19696
|
:card => card.to_hash,
|
19709
|
-
:amount => amount,
|
19697
|
+
:amount => amount.to_f.to_s,
|
19710
19698
|
:currency => currency,
|
19711
19699
|
:requested => requested.nil? ? nil : requested.to_hash,
|
19712
19700
|
:customer => customer.to_hash,
|
@@ -19791,7 +19779,7 @@ module Io
|
|
19791
19779
|
{
|
19792
19780
|
:card => card.to_hash,
|
19793
19781
|
:order_number => order_number,
|
19794
|
-
:amount => amount,
|
19782
|
+
:amount => amount.to_f.to_s,
|
19795
19783
|
:currency => currency,
|
19796
19784
|
:key => key,
|
19797
19785
|
:cvv => cvv,
|
@@ -21756,7 +21744,7 @@ module Io
|
|
21756
21744
|
|
21757
21745
|
def to_hash
|
21758
21746
|
{
|
21759
|
-
:rate => rate,
|
21747
|
+
:rate => rate.to_f.to_s,
|
21760
21748
|
:value => value.to_hash
|
21761
21749
|
}
|
21762
21750
|
end
|
@@ -21784,8 +21772,8 @@ module Io
|
|
21784
21772
|
|
21785
21773
|
def to_hash
|
21786
21774
|
{
|
21787
|
-
:rate => rate,
|
21788
|
-
:amount => amount
|
21775
|
+
:rate => rate.to_f.to_s,
|
21776
|
+
:amount => amount.to_f.to_s
|
21789
21777
|
}
|
21790
21778
|
end
|
21791
21779
|
|
@@ -21855,7 +21843,7 @@ module Io
|
|
21855
21843
|
{
|
21856
21844
|
:item_number => item_number,
|
21857
21845
|
:quantity => quantity,
|
21858
|
-
:unit_price => unit_price,
|
21846
|
+
:unit_price => unit_price.to_f.to_s,
|
21859
21847
|
:unit_tax => unit_tax.nil? ? nil : unit_tax.to_hash,
|
21860
21848
|
:unit_duty => unit_duty.nil? ? nil : unit_duty.to_hash
|
21861
21849
|
}
|
@@ -21917,7 +21905,7 @@ module Io
|
|
21917
21905
|
|
21918
21906
|
def subtype_to_hash
|
21919
21907
|
{
|
21920
|
-
:price => price,
|
21908
|
+
:price => price.to_f.to_s,
|
21921
21909
|
:tax => tax.nil? ? nil : tax.to_hash,
|
21922
21910
|
:duty => duty.nil? ? nil : duty.to_hash
|
21923
21911
|
}
|
@@ -22407,8 +22395,8 @@ module Io
|
|
22407
22395
|
{
|
22408
22396
|
:order_number => order_number,
|
22409
22397
|
:description => description,
|
22410
|
-
:amount => amount,
|
22411
|
-
:max => max,
|
22398
|
+
:amount => amount.to_f.to_s,
|
22399
|
+
:max => max.to_f.to_s,
|
22412
22400
|
:currency => currency,
|
22413
22401
|
:attributes => attributes.nil? ? nil : attributes
|
22414
22402
|
}
|
@@ -22917,7 +22905,7 @@ module Io
|
|
22917
22905
|
{
|
22918
22906
|
:key => key.value,
|
22919
22907
|
:currency => currency,
|
22920
|
-
:amount => amount,
|
22908
|
+
:amount => amount.to_f.to_s,
|
22921
22909
|
:label => label,
|
22922
22910
|
:base => base.nil? ? nil : base.to_hash
|
22923
22911
|
}
|
@@ -22952,7 +22940,7 @@ module Io
|
|
22952
22940
|
{
|
22953
22941
|
:source => source.value,
|
22954
22942
|
:currency => currency,
|
22955
|
-
:amount => amount,
|
22943
|
+
:amount => amount.to_f.to_s,
|
22956
22944
|
:label => label,
|
22957
22945
|
:base => base.nil? ? nil : base.to_hash,
|
22958
22946
|
:components => components.map { |o| o.to_hash }
|
@@ -23384,8 +23372,8 @@ module Io
|
|
23384
23372
|
def subtype_to_hash
|
23385
23373
|
{
|
23386
23374
|
:currency => currency,
|
23387
|
-
:minimum => minimum,
|
23388
|
-
:maximum => maximum
|
23375
|
+
:minimum => minimum.to_f.to_s,
|
23376
|
+
:maximum => maximum.to_f.to_s
|
23389
23377
|
}
|
23390
23378
|
end
|
23391
23379
|
|
@@ -23417,10 +23405,10 @@ module Io
|
|
23417
23405
|
|
23418
23406
|
def subtype_to_hash
|
23419
23407
|
{
|
23420
|
-
:value => value,
|
23408
|
+
:value => value.to_f.to_s,
|
23421
23409
|
:currency => currency,
|
23422
23410
|
:components => components.map { |o| o.value },
|
23423
|
-
:minimum => minimum
|
23411
|
+
:minimum => minimum.to_f.to_s
|
23424
23412
|
}
|
23425
23413
|
end
|
23426
23414
|
|
@@ -23599,7 +23587,7 @@ module Io
|
|
23599
23587
|
def subtype_to_hash
|
23600
23588
|
{
|
23601
23589
|
:token => token,
|
23602
|
-
:amount => amount,
|
23590
|
+
:amount => amount.to_f.to_s,
|
23603
23591
|
:currency => currency,
|
23604
23592
|
:customer => customer.nil? ? nil : customer.to_hash,
|
23605
23593
|
:key => key,
|
@@ -23733,7 +23721,7 @@ module Io
|
|
23733
23721
|
|
23734
23722
|
def to_hash
|
23735
23723
|
{
|
23736
|
-
:rate => rate,
|
23724
|
+
:rate => rate.to_f.to_s,
|
23737
23725
|
:components => components.map { |o| o.value },
|
23738
23726
|
:deminimis => deminimis.nil? ? nil : deminimis.to_hash,
|
23739
23727
|
:name => name
|
@@ -26100,7 +26088,7 @@ module Io
|
|
26100
26088
|
:item => item.to_hash,
|
26101
26089
|
:origin => origin,
|
26102
26090
|
:destination => destination,
|
26103
|
-
:rate => rate
|
26091
|
+
:rate => rate.to_f.to_s
|
26104
26092
|
}
|
26105
26093
|
end
|
26106
26094
|
|
@@ -26132,7 +26120,7 @@ module Io
|
|
26132
26120
|
:number => number,
|
26133
26121
|
:origin => origin,
|
26134
26122
|
:destination => destination,
|
26135
|
-
:rate => rate
|
26123
|
+
:rate => rate.to_f.to_s
|
26136
26124
|
}
|
26137
26125
|
end
|
26138
26126
|
|
@@ -26558,7 +26546,7 @@ module Io
|
|
26558
26546
|
def to_hash
|
26559
26547
|
{
|
26560
26548
|
:tariff_code => tariff_code.to_hash,
|
26561
|
-
:likelihood => likelihood
|
26549
|
+
:likelihood => likelihood.to_f.to_s
|
26562
26550
|
}
|
26563
26551
|
end
|
26564
26552
|
|
@@ -27343,7 +27331,7 @@ module Io
|
|
27343
27331
|
:method => method,
|
27344
27332
|
:issuer => issuer.nil? ? nil : issuer.to_hash,
|
27345
27333
|
:order_number => order_number,
|
27346
|
-
:amount => amount,
|
27334
|
+
:amount => amount.to_f.to_s,
|
27347
27335
|
:currency => currency,
|
27348
27336
|
:billing_address => billing_address.nil? ? nil : billing_address.to_hash,
|
27349
27337
|
:key => key,
|
@@ -28752,8 +28740,8 @@ module Io
|
|
28752
28740
|
:key => key,
|
28753
28741
|
:name => name,
|
28754
28742
|
:q => q,
|
28755
|
-
:fixed => fixed,
|
28756
|
-
:percent => percent,
|
28743
|
+
:fixed => fixed.to_f.to_s,
|
28744
|
+
:percent => percent.to_f.to_s,
|
28757
28745
|
:position => position
|
28758
28746
|
}
|
28759
28747
|
end
|
@@ -28824,8 +28812,8 @@ module Io
|
|
28824
28812
|
:name => name,
|
28825
28813
|
:q => q,
|
28826
28814
|
:key => key,
|
28827
|
-
:fixed => fixed,
|
28828
|
-
:percent => percent,
|
28815
|
+
:fixed => fixed.to_f.to_s,
|
28816
|
+
:percent => percent.to_f.to_s,
|
28829
28817
|
:position => position
|
28830
28818
|
}
|
28831
28819
|
end
|
@@ -28859,8 +28847,8 @@ module Io
|
|
28859
28847
|
{
|
28860
28848
|
:name => name,
|
28861
28849
|
:q => q,
|
28862
|
-
:fixed => fixed,
|
28863
|
-
:percent => percent,
|
28850
|
+
:fixed => fixed.to_f.to_s,
|
28851
|
+
:percent => percent.to_f.to_s,
|
28864
28852
|
:position => position
|
28865
28853
|
}
|
28866
28854
|
end
|
@@ -28905,8 +28893,8 @@ module Io
|
|
28905
28893
|
:experience_key => experience_key,
|
28906
28894
|
:name => name,
|
28907
28895
|
:q => q,
|
28908
|
-
:fixed => fixed,
|
28909
|
-
:percent => percent,
|
28896
|
+
:fixed => fixed.to_f.to_s,
|
28897
|
+
:percent => percent.to_f.to_s,
|
28910
28898
|
:position => position,
|
28911
28899
|
:key => key
|
28912
28900
|
}
|
@@ -29041,7 +29029,7 @@ module Io
|
|
29041
29029
|
def to_hash
|
29042
29030
|
{
|
29043
29031
|
:currency => currency,
|
29044
|
-
:price => price,
|
29032
|
+
:price => price.to_f.to_s,
|
29045
29033
|
:attributes => attributes
|
29046
29034
|
}
|
29047
29035
|
end
|
@@ -29174,8 +29162,8 @@ module Io
|
|
29174
29162
|
:experience_key => experience_key,
|
29175
29163
|
:name => name,
|
29176
29164
|
:q => q,
|
29177
|
-
:fixed => fixed,
|
29178
|
-
:percent => percent,
|
29165
|
+
:fixed => fixed.to_f.to_s,
|
29166
|
+
:percent => percent.to_f.to_s,
|
29179
29167
|
:position => position
|
29180
29168
|
}
|
29181
29169
|
end
|
@@ -30423,7 +30411,7 @@ module Io
|
|
30423
30411
|
def to_hash
|
30424
30412
|
{
|
30425
30413
|
:type => type.value,
|
30426
|
-
:value => value
|
30414
|
+
:value => value.to_f.to_s
|
30427
30415
|
}
|
30428
30416
|
end
|
30429
30417
|
|
@@ -30687,7 +30675,7 @@ module Io
|
|
30687
30675
|
{
|
30688
30676
|
:token => token,
|
30689
30677
|
:order_number => order_number,
|
30690
|
-
:amount => amount,
|
30678
|
+
:amount => amount.to_f.to_s,
|
30691
30679
|
:currency => currency,
|
30692
30680
|
:key => key,
|
30693
30681
|
:cvv => cvv,
|
@@ -30801,7 +30789,7 @@ module Io
|
|
30801
30789
|
{
|
30802
30790
|
:method => method,
|
30803
30791
|
:order_number => order_number,
|
30804
|
-
:amount => amount,
|
30792
|
+
:amount => amount.to_f.to_s,
|
30805
30793
|
:currency => currency
|
30806
30794
|
}
|
30807
30795
|
end
|
@@ -31187,7 +31175,7 @@ module Io
|
|
31187
31175
|
:merchant_of_record => merchant_of_record.value,
|
31188
31176
|
:details => details.nil? ? nil : details.to_hash,
|
31189
31177
|
:payment => payment,
|
31190
|
-
:amount => amount,
|
31178
|
+
:amount => amount.to_f.to_s,
|
31191
31179
|
:currency => currency,
|
31192
31180
|
:requested => requested.nil? ? nil : requested.to_hash,
|
31193
31181
|
:customer => customer.to_hash,
|
@@ -32477,12 +32465,12 @@ module Io
|
|
32477
32465
|
{
|
32478
32466
|
:key => key.value,
|
32479
32467
|
:currency => currency,
|
32480
|
-
:amount => amount,
|
32468
|
+
:amount => amount.to_f.to_s,
|
32481
32469
|
:label => label,
|
32482
32470
|
:base => base.to_hash,
|
32483
32471
|
:components => components.map { |o| o.to_hash },
|
32484
32472
|
:name => name,
|
32485
|
-
:rate => rate
|
32473
|
+
:rate => rate.to_f.to_s
|
32486
32474
|
}
|
32487
32475
|
end
|
32488
32476
|
|
@@ -32515,7 +32503,7 @@ module Io
|
|
32515
32503
|
{
|
32516
32504
|
:key => key.value,
|
32517
32505
|
:currency => currency,
|
32518
|
-
:amount => amount,
|
32506
|
+
:amount => amount.to_f.to_s,
|
32519
32507
|
:label => label,
|
32520
32508
|
:base => base.to_hash,
|
32521
32509
|
:name => name
|
@@ -33003,7 +32991,7 @@ module Io
|
|
33003
32991
|
:id => id,
|
33004
32992
|
:base => base,
|
33005
32993
|
:target => target,
|
33006
|
-
:margin => margin
|
32994
|
+
:margin => margin.to_f.to_s
|
33007
32995
|
}
|
33008
32996
|
end
|
33009
32997
|
|
@@ -33034,7 +33022,7 @@ module Io
|
|
33034
33022
|
{
|
33035
33023
|
:base => base,
|
33036
33024
|
:target => target,
|
33037
|
-
:margin => margin
|
33025
|
+
:margin => margin.to_f.to_s
|
33038
33026
|
}
|
33039
33027
|
end
|
33040
33028
|
|
@@ -34504,7 +34492,7 @@ module Io
|
|
34504
34492
|
{
|
34505
34493
|
:id => id,
|
34506
34494
|
:order => order.nil? ? nil : order.to_hash,
|
34507
|
-
:amount => amount,
|
34495
|
+
:amount => amount.to_f.to_s,
|
34508
34496
|
:currency => currency,
|
34509
34497
|
:paypal => paypal.to_hash
|
34510
34498
|
}
|
@@ -34765,7 +34753,7 @@ module Io
|
|
34765
34753
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
34766
34754
|
HttpClient::Preconditions.require_keys(opts, [:authentication_technique, :roles, :behaviors, :routes], 'PermissionCheck')
|
34767
34755
|
@authentication_technique = (x = opts.delete(:authentication_technique); x.is_a?(::Io::Flow::V0::Models::AuthenticationTechnique) ? x : ::Io::Flow::V0::Models::AuthenticationTechnique.apply(x))
|
34768
|
-
@user = (x = opts.delete(:user); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::
|
34756
|
+
@user = (x = opts.delete(:user); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ExpandableUser) ? x : ::Io::Flow::V0::Models::ExpandableUser.from_json(x)))
|
34769
34757
|
@roles = HttpClient::Preconditions.assert_class('roles', opts.delete(:roles), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::FlowRole) ? x : ::Io::Flow::V0::Models::FlowRole.from_json(x)) }
|
34770
34758
|
@behaviors = HttpClient::Preconditions.assert_class('behaviors', opts.delete(:behaviors), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::FlowBehavior) ? x : ::Io::Flow::V0::Models::FlowBehavior.apply(x)) }
|
34771
34759
|
@routes = HttpClient::Preconditions.assert_class('routes', opts.delete(:routes), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::PermittedRoute) ? x : ::Io::Flow::V0::Models::PermittedRoute.new(x)) }
|
@@ -35481,7 +35469,7 @@ module Io
|
|
35481
35469
|
{
|
35482
35470
|
:key => key.value,
|
35483
35471
|
:components => components.map { |o| o.to_hash },
|
35484
|
-
:amount => amount,
|
35472
|
+
:amount => amount.to_f.to_s,
|
35485
35473
|
:label => label,
|
35486
35474
|
:name => name
|
35487
35475
|
}
|
@@ -35513,7 +35501,7 @@ module Io
|
|
35513
35501
|
def to_hash
|
35514
35502
|
{
|
35515
35503
|
:key => key.value,
|
35516
|
-
:amount => amount,
|
35504
|
+
:amount => amount.to_f.to_s,
|
35517
35505
|
:label => label,
|
35518
35506
|
:name => name
|
35519
35507
|
}
|
@@ -35595,18 +35583,18 @@ module Io
|
|
35595
35583
|
|
35596
35584
|
def to_hash
|
35597
35585
|
{
|
35598
|
-
:contracted_rate => contracted_rate,
|
35599
|
-
:rate => rate,
|
35586
|
+
:contracted_rate => contracted_rate.to_f.to_s,
|
35587
|
+
:rate => rate.to_f.to_s,
|
35600
35588
|
:pricing => pricing.to_hash,
|
35601
|
-
:base_price => base_price,
|
35602
|
-
:discount => discount,
|
35603
|
-
:fixed_margin => fixed_margin,
|
35604
|
-
:percent_margin => percent_margin,
|
35605
|
-
:insurance => insurance,
|
35606
|
-
:freight => freight,
|
35589
|
+
:base_price => base_price.to_f.to_s,
|
35590
|
+
:discount => discount.to_f.to_s,
|
35591
|
+
:fixed_margin => fixed_margin.to_f.to_s,
|
35592
|
+
:percent_margin => percent_margin.to_f.to_s,
|
35593
|
+
:insurance => insurance.to_f.to_s,
|
35594
|
+
:freight => freight.to_f.to_s,
|
35607
35595
|
:duty => duty.nil? ? nil : duty.to_hash,
|
35608
35596
|
:tax => tax.nil? ? nil : tax.to_hash,
|
35609
|
-
:percent_sales_margin => percent_sales_margin
|
35597
|
+
:percent_sales_margin => percent_sales_margin.to_f.to_s
|
35610
35598
|
}
|
35611
35599
|
end
|
35612
35600
|
|
@@ -35811,7 +35799,7 @@ module Io
|
|
35811
35799
|
:duty => duty,
|
35812
35800
|
:rounding_type => rounding_type,
|
35813
35801
|
:rounding_method => rounding_method,
|
35814
|
-
:rounding_value => rounding_value
|
35802
|
+
:rounding_value => rounding_value.to_f.to_s
|
35815
35803
|
}
|
35816
35804
|
end
|
35817
35805
|
|
@@ -36429,7 +36417,7 @@ module Io
|
|
36429
36417
|
:base => base,
|
36430
36418
|
:target => target,
|
36431
36419
|
:effective_at => effective_at,
|
36432
|
-
:value => value
|
36420
|
+
:value => value.to_f.to_s
|
36433
36421
|
}
|
36434
36422
|
end
|
36435
36423
|
|
@@ -36532,7 +36520,7 @@ module Io
|
|
36532
36520
|
:base => base,
|
36533
36521
|
:target => target,
|
36534
36522
|
:effective_at => effective_at,
|
36535
|
-
:value => value
|
36523
|
+
:value => value.to_f.to_s
|
36536
36524
|
}
|
36537
36525
|
end
|
36538
36526
|
|
@@ -36636,7 +36624,7 @@ module Io
|
|
36636
36624
|
:method => method,
|
36637
36625
|
:issuer => issuer.nil? ? nil : issuer.to_hash,
|
36638
36626
|
:order_number => order_number,
|
36639
|
-
:amount => amount,
|
36627
|
+
:amount => amount.to_f.to_s,
|
36640
36628
|
:currency => currency,
|
36641
36629
|
:redirect_urls => redirect_urls.to_hash,
|
36642
36630
|
:key => key,
|
@@ -36683,7 +36671,7 @@ module Io
|
|
36683
36671
|
:id => id,
|
36684
36672
|
:key => key,
|
36685
36673
|
:authorization => authorization.to_hash,
|
36686
|
-
:amount => amount,
|
36674
|
+
:amount => amount.to_f.to_s,
|
36687
36675
|
:currency => currency,
|
36688
36676
|
:requested => requested.nil? ? nil : requested.to_hash,
|
36689
36677
|
:captures => captures.map { |o| o.to_hash },
|
@@ -36727,7 +36715,7 @@ module Io
|
|
36727
36715
|
:id => id,
|
36728
36716
|
:refund => refund.to_hash,
|
36729
36717
|
:capture => capture.to_hash,
|
36730
|
-
:amount => amount,
|
36718
|
+
:amount => amount.to_f.to_s,
|
36731
36719
|
:currency => currency,
|
36732
36720
|
:base => base.to_hash,
|
36733
36721
|
:status => status.value
|
@@ -36760,7 +36748,7 @@ module Io
|
|
36760
36748
|
def to_hash
|
36761
36749
|
{
|
36762
36750
|
:capture => capture.to_hash,
|
36763
|
-
:amount => amount
|
36751
|
+
:amount => amount.to_f.to_s
|
36764
36752
|
}
|
36765
36753
|
end
|
36766
36754
|
|
@@ -36898,7 +36886,7 @@ module Io
|
|
36898
36886
|
:capture_id => capture_id,
|
36899
36887
|
:order_number => order_number,
|
36900
36888
|
:key => key,
|
36901
|
-
:amount => amount,
|
36889
|
+
:amount => amount.to_f.to_s,
|
36902
36890
|
:currency => currency,
|
36903
36891
|
:rma_key => rma_key,
|
36904
36892
|
:attributes => attributes.nil? ? nil : attributes
|
@@ -37033,8 +37021,8 @@ module Io
|
|
37033
37021
|
{
|
37034
37022
|
:order_number => order_number,
|
37035
37023
|
:currency => currency,
|
37036
|
-
:captured => captured,
|
37037
|
-
:refunded => refunded,
|
37024
|
+
:captured => captured.to_f.to_s,
|
37025
|
+
:refunded => refunded.to_f.to_s,
|
37038
37026
|
:amounts => amounts.to_hash
|
37039
37027
|
}
|
37040
37028
|
end
|
@@ -37064,9 +37052,9 @@ module Io
|
|
37064
37052
|
|
37065
37053
|
def to_hash
|
37066
37054
|
{
|
37067
|
-
:balance => balance,
|
37068
|
-
:balance_excluding_shipping => balance_excluding_shipping,
|
37069
|
-
:shipping => shipping
|
37055
|
+
:balance => balance.to_f.to_s,
|
37056
|
+
:balance_excluding_shipping => balance_excluding_shipping.to_f.to_s,
|
37057
|
+
:shipping => shipping.to_f.to_s
|
37070
37058
|
}
|
37071
37059
|
end
|
37072
37060
|
|
@@ -37838,7 +37826,7 @@ module Io
|
|
37838
37826
|
:key => key,
|
37839
37827
|
:authorization => authorization.to_hash,
|
37840
37828
|
:status => status.value,
|
37841
|
-
:amount => amount,
|
37829
|
+
:amount => amount.to_f.to_s,
|
37842
37830
|
:currency => currency,
|
37843
37831
|
:requested => requested.to_hash,
|
37844
37832
|
:created_at => created_at,
|
@@ -37939,7 +37927,7 @@ module Io
|
|
37939
37927
|
{
|
37940
37928
|
:key => key,
|
37941
37929
|
:authorization_id => authorization_id,
|
37942
|
-
:amount => amount,
|
37930
|
+
:amount => amount.to_f.to_s,
|
37943
37931
|
:currency => currency,
|
37944
37932
|
:attributes => attributes.nil? ? nil : attributes
|
37945
37933
|
}
|
@@ -37971,7 +37959,7 @@ module Io
|
|
37971
37959
|
def to_hash
|
37972
37960
|
{
|
37973
37961
|
:authorization_id => authorization_id,
|
37974
|
-
:amount => amount,
|
37962
|
+
:amount => amount.to_f.to_s,
|
37975
37963
|
:currency => currency,
|
37976
37964
|
:attributes => attributes.nil? ? nil : attributes
|
37977
37965
|
}
|
@@ -38070,7 +38058,7 @@ module Io
|
|
38070
38058
|
{
|
38071
38059
|
:type => type.value,
|
38072
38060
|
:method => method.value,
|
38073
|
-
:value => value
|
38061
|
+
:value => value.to_f.to_s
|
38074
38062
|
}
|
38075
38063
|
end
|
38076
38064
|
|
@@ -38416,7 +38404,7 @@ module Io
|
|
38416
38404
|
{
|
38417
38405
|
:number => number,
|
38418
38406
|
:item_number => item_number,
|
38419
|
-
:item_price => item_price,
|
38407
|
+
:item_price => item_price.to_f.to_s,
|
38420
38408
|
:item_currency => item_currency,
|
38421
38409
|
:status => status.value,
|
38422
38410
|
:center_key => center_key,
|
@@ -41713,7 +41701,7 @@ module Io
|
|
41713
41701
|
def to_hash
|
41714
41702
|
{
|
41715
41703
|
:name => name,
|
41716
|
-
:rate => rate,
|
41704
|
+
:rate => rate.to_f.to_s,
|
41717
41705
|
:components => components.map { |o| o.value },
|
41718
41706
|
:deminimis => deminimis.nil? ? nil : deminimis.to_hash
|
41719
41707
|
}
|
@@ -43338,7 +43326,7 @@ module Io
|
|
43338
43326
|
:issuer => issuer.to_hash,
|
43339
43327
|
:virtual_card => virtual_card.to_hash,
|
43340
43328
|
:authorization => authorization.to_hash,
|
43341
|
-
:amount => amount,
|
43329
|
+
:amount => amount.to_f.to_s,
|
43342
43330
|
:currency => currency,
|
43343
43331
|
:created_at => created_at
|
43344
43332
|
}
|
@@ -43530,7 +43518,7 @@ module Io
|
|
43530
43518
|
:issuer => issuer.to_hash,
|
43531
43519
|
:virtual_card => virtual_card.to_hash,
|
43532
43520
|
:authorization => authorization.to_hash,
|
43533
|
-
:amount => amount,
|
43521
|
+
:amount => amount.to_f.to_s,
|
43534
43522
|
:currency => currency,
|
43535
43523
|
:created_at => created_at
|
43536
43524
|
}
|
@@ -44143,9 +44131,9 @@ module Io
|
|
44143
44131
|
end
|
44144
44132
|
|
44145
44133
|
if @body
|
44146
|
-
# DEBUG
|
44147
|
-
# DEBUG File.open(
|
44148
|
-
# DEBUG curl << "-d@%s" %
|
44134
|
+
# DEBUG tmpfile = "/tmp/rest_client.tmp"
|
44135
|
+
# DEBUG File.open(tmpfile, "w") { |os| os << @body.to_s }
|
44136
|
+
# DEBUG curl << "-d@%s" % tmpfile
|
44149
44137
|
request.body = @body
|
44150
44138
|
end
|
44151
44139
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flowcommerce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.74
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Flow Commerce, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
55
|
version: '0'
|
56
56
|
requirements: []
|
57
57
|
rubyforge_project:
|
58
|
-
rubygems_version: 2.
|
58
|
+
rubygems_version: 2.5.2.3
|
59
59
|
signing_key:
|
60
60
|
specification_version: 4
|
61
61
|
summary: Native ruby client for the Flow REST API.
|