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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e41ed3c1d612f7f3b759a09e85af28a907de3ba053338cb02390320682773666
4
- data.tar.gz: 94af4536d7891239ec4b6feaf8ee2048eda060f2c2998ed418a3f335c8dde65f
3
+ metadata.gz: af89a9fa376a25e57ec9c55cbcce971449645a1e6ec43575c39bff1b2499aabd
4
+ data.tar.gz: c918d3c0dd443274e249f0c48f0f07e87f3df1257ebb86db7a4614c9d4f79762
5
5
  SHA512:
6
- metadata.gz: '067118ee40110cffd52c5c3c24522613f420039dee8c73745d54f4fae68b75e26237473e94be38f28a6c6d6a935345c1d424a16b02f22faa8e14a64bd3fd696b'
7
- data.tar.gz: 684252d5b8c5401a3d79b1abd81adf8d87fee760f35cdc2f6108d332a3847de3852374e1879a7095f8345fc61d0293da0f541ec39a89a48e51cee08c4834a003
6
+ metadata.gz: e475bc50cc1991f3e04e5e41f652f9d888b5fcbc3bf9cf338a8ed2b8ce5e2dd2c2eeaacc8be946e798d648e110d9d78970a088bcf73b4742da2c1f2a9d09fca5
7
+ data.tar.gz: a7333256ec6b3407e1384ffa31beff4f38341a05c749827fc440bed505a44a8f75f35a4177dd989619a8fabf34feb71bdf1ab9f441c75462bca143bea9d38243
@@ -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
- verify = @environment == 'production'
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MyData
4
- VERSION = "0.12.5"
4
+ VERSION = "0.13.0"
5
5
  end
@@ -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.12.5
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-01-12 00:00:00.000000000 Z
11
+ date: 2023-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel