my_data 0.12.5 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/my_data/client.rb +10 -3
- data/lib/my_data/version.rb +1 -1
- data/lib/my_data/xsd/docs/response-v1.0.2.xsd +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af89a9fa376a25e57ec9c55cbcce971449645a1e6ec43575c39bff1b2499aabd
|
4
|
+
data.tar.gz: c918d3c0dd443274e249f0c48f0f07e87f3df1257ebb86db7a4614c9d4f79762
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e475bc50cc1991f3e04e5e41f652f9d888b5fcbc3bf9cf338a8ed2b8ce5e2dd2c2eeaacc8be946e798d648e110d9d78970a088bcf73b4742da2c1f2a9d09fca5
|
7
|
+
data.tar.gz: a7333256ec6b3407e1384ffa31beff4f38341a05c749827fc440bed505a44a8f75f35a4177dd989619a8fabf34feb71bdf1ab9f441c75462bca143bea9d38243
|
data/lib/my_data/client.rb
CHANGED
@@ -10,7 +10,7 @@ module MyData
|
|
10
10
|
def initialize(user_id:, subscription_key:, environment:)
|
11
11
|
@user_id = user_id
|
12
12
|
@subscription_key = subscription_key
|
13
|
-
@environment = environment
|
13
|
+
@environment = environment.to_sym
|
14
14
|
end
|
15
15
|
|
16
16
|
def send_invoices(doc:)
|
@@ -55,6 +55,14 @@ module MyData
|
|
55
55
|
|
56
56
|
private
|
57
57
|
|
58
|
+
def production?
|
59
|
+
@environment == :production
|
60
|
+
end
|
61
|
+
|
62
|
+
def sandbox?
|
63
|
+
@environment == :sandbox
|
64
|
+
end
|
65
|
+
|
58
66
|
def base_request_docs(endpoint:, mark:, next_partition_key:, next_row_key:)
|
59
67
|
params = { mark: mark }
|
60
68
|
|
@@ -72,8 +80,7 @@ module MyData
|
|
72
80
|
end
|
73
81
|
|
74
82
|
def connection
|
75
|
-
|
76
|
-
@connection ||= Faraday.new(BASE_URL[@environment], ssl: { verify: verify }) do |conn|
|
83
|
+
@connection ||= Faraday.new(BASE_URL[@environment], ssl: { verify: production? }) do |conn|
|
77
84
|
conn.headers = headers
|
78
85
|
end
|
79
86
|
end
|
data/lib/my_data/version.rb
CHANGED
@@ -44,6 +44,11 @@
|
|
44
44
|
<xs:documentation>Συμβολοσειρά Αυθεντικοποίησης Παρόχου</xs:documentation>
|
45
45
|
</xs:annotation>
|
46
46
|
</xs:element>
|
47
|
+
<xs:element name="qrUrl" type="xs:string" minOccurs="0">
|
48
|
+
<xs:annotation>
|
49
|
+
<xs:documentation>QR Code Url</xs:documentation>
|
50
|
+
</xs:annotation>
|
51
|
+
</xs:element>
|
47
52
|
</xs:sequence>
|
48
53
|
<xs:element name="errors">
|
49
54
|
<xs:annotation>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: my_data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michalis Zamparas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|