docdata-order 2.0.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/docdata/order/amount.rb +1 -1
- data/lib/docdata/order/client.rb +15 -24
- data/lib/docdata/order/gender.rb +3 -3
- data/lib/docdata/order/payment_method.rb +10 -9
- data/lib/docdata/order/request.rb +8 -8
- data/lib/docdata/order/response.rb +28 -12
- data/lib/docdata/order/urls.rb +4 -4
- data/lib/docdata/order/version.rb +1 -1
- data/lib/docdata/order.rb +9 -9
- metadata +8 -23
- data/.gitignore +0 -14
- data/.rspec +0 -2
- data/.rubocop.yml +0 -57
- data/.travis.yml +0 -11
- data/Gemfile +0 -11
- data/Gemfile.lock +0 -107
- data/Rakefile +0 -10
- data/bin/console +0 -15
- data/bin/setup +0 -8
- data/docdata-order.gemspec +0 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34ae9ce960de0e17ed6fc95e4e0fac5a9fa526ce3a550f032f973b83824b58d1
|
4
|
+
data.tar.gz: 659f0fad8ca085516928acf268fcc1e0b2a657ce85a3cd2499a6a565fa587f1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '080e269f61a06d81c2d4df917448a73cdf2e4d552d59bb111bc82775be96704ed035b220ad00c79283b87f7c289813f9b12b878361948769ea413aa49e6e9df6'
|
7
|
+
data.tar.gz: 553ccb2bbdad009ef2da8408ef73a44daf19a5719d11e8c4b8701e1d7a1a0d48e662224e34870e90a55a3c62a1368135ffbc144018ba8ca9b2c7635f37230949
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Docdata::Order
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/docdata-order.svg)](https://badge.fury.io/rb/docdata-order)
|
4
|
-
[![Build Status](https://
|
4
|
+
[![Build Status](https://github.com/KentaaNL/docdata-order/actions/workflows/test.yml/badge.svg)](https://github.com/KentaaNL/docdata-order/actions)
|
5
5
|
[![Code Climate](https://codeclimate.com/github/KentaaNL/docdata-order/badges/gpa.svg)](https://codeclimate.com/github/KentaaNL/docdata-order)
|
6
6
|
|
7
7
|
Docdata::Order is a Ruby client for the Docdata Order API version 1.3.
|
data/lib/docdata/order/amount.rb
CHANGED
data/lib/docdata/order/client.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require 'savon'
|
4
4
|
|
5
5
|
module Docdata
|
6
6
|
module Order
|
7
7
|
# Client for the Docdata Order API.
|
8
8
|
class Client
|
9
|
-
XMLNS_DDP =
|
10
|
-
DDP_VERSION =
|
9
|
+
XMLNS_DDP = 'http://www.docdatapayments.com/services/paymentservice/1_3/'
|
10
|
+
DDP_VERSION = '1.3'
|
11
11
|
|
12
12
|
def initialize(name, password, options = {})
|
13
13
|
@options = options.merge(merchant: { name: name, password: password })
|
@@ -15,59 +15,50 @@ module Docdata
|
|
15
15
|
|
16
16
|
def create(options = {})
|
17
17
|
params = @options.merge(options)
|
18
|
-
|
19
|
-
response = client.call(:create, message: CreateRequest.new(params), attributes: { xmlns: XMLNS_DDP, version: DDP_VERSION })
|
20
|
-
|
21
|
-
raise Docdata::Order::Exception, response unless response.success?
|
18
|
+
response = call(:create, CreateRequest.new(params))
|
22
19
|
|
23
20
|
CreateResponse.new(params, response)
|
24
21
|
end
|
25
22
|
|
26
23
|
def start(options = {})
|
27
24
|
params = @options.merge(options)
|
28
|
-
|
29
|
-
response = client.call(:start, message: StartRequest.new(params), attributes: { xmlns: XMLNS_DDP, version: DDP_VERSION })
|
30
|
-
|
31
|
-
raise Docdata::Order::Exception, response unless response.success?
|
25
|
+
response = call(:start, StartRequest.new(params))
|
32
26
|
|
33
27
|
StartResponse.new(params, response)
|
34
28
|
end
|
35
29
|
|
36
30
|
def status(options = {})
|
37
31
|
params = @options.merge(options)
|
38
|
-
|
39
|
-
response = client.call(:status_extended, message: ExtendedStatusRequest.new(params), attributes: { xmlns: XMLNS_DDP, version: DDP_VERSION })
|
40
|
-
|
41
|
-
raise Docdata::Order::Exception, response unless response.success?
|
32
|
+
response = call(:status_extended, ExtendedStatusRequest.new(params))
|
42
33
|
|
43
34
|
ExtendedStatusResponse.new(params, response)
|
44
35
|
end
|
45
36
|
|
46
37
|
def refund(options = {})
|
47
38
|
params = @options.merge(options)
|
48
|
-
|
49
|
-
response = client.call(:refund, message: RefundRequest.new(params), attributes: { xmlns: XMLNS_DDP, version: DDP_VERSION })
|
50
|
-
|
51
|
-
raise Docdata::Order::Exception, response unless response.success?
|
39
|
+
response = call(:refund, RefundRequest.new(params))
|
52
40
|
|
53
41
|
RefundResponse.new(params, response)
|
54
42
|
end
|
55
43
|
|
56
44
|
def payment_methods(options = {})
|
57
45
|
params = @options.merge(options)
|
58
|
-
|
59
|
-
response = client.call(:list_payment_methods, message: ListPaymentMethodsRequest.new(params), attributes: { xmlns: XMLNS_DDP, version: DDP_VERSION })
|
60
|
-
|
61
|
-
raise Docdata::Order::Exception, response unless response.success?
|
46
|
+
response = call(:list_payment_methods, ListPaymentMethodsRequest.new(params))
|
62
47
|
|
63
48
|
ListPaymentMethodsResponse.new(params, response)
|
64
49
|
end
|
65
50
|
|
66
51
|
private
|
67
52
|
|
53
|
+
def call(operation, message)
|
54
|
+
client.call(operation, message: message, attributes: { xmlns: XMLNS_DDP, version: DDP_VERSION })
|
55
|
+
rescue Savon::Error => e
|
56
|
+
raise Docdata::Order::Exception, e.message
|
57
|
+
end
|
58
|
+
|
68
59
|
def client
|
69
60
|
@client ||= begin
|
70
|
-
params = { wsdl: wsdl_url, raise_errors:
|
61
|
+
params = { wsdl: wsdl_url, raise_errors: true, namespace_identifier: nil, namespaces: { 'xmlns:ddp' => XMLNS_DDP } }
|
71
62
|
|
72
63
|
params.merge!(log: true, log_level: :debug, pretty_print_xml: true) if @options[:debug]
|
73
64
|
|
data/lib/docdata/order/gender.rb
CHANGED
@@ -4,15 +4,16 @@ module Docdata
|
|
4
4
|
module Order
|
5
5
|
# Payment method in Docdata, optionally with issuers.
|
6
6
|
class PaymentMethod
|
7
|
-
IDEAL =
|
8
|
-
VISA =
|
9
|
-
MASTER_CARD =
|
10
|
-
MAESTRO =
|
11
|
-
AMERICAN_EXPRESS =
|
12
|
-
PAYPAL =
|
13
|
-
SEPA_DIRECT_DEBIT =
|
14
|
-
BANCONTACT =
|
15
|
-
SOFORT =
|
7
|
+
IDEAL = 'IDEAL'
|
8
|
+
VISA = 'VISA'
|
9
|
+
MASTER_CARD = 'MASTERCARD'
|
10
|
+
MAESTRO = 'MAESTRO'
|
11
|
+
AMERICAN_EXPRESS = 'AMEX'
|
12
|
+
PAYPAL = 'PAYPAL_EXPRESS_CHECKOUT'
|
13
|
+
SEPA_DIRECT_DEBIT = 'SEPA_DIRECT_DEBIT'
|
14
|
+
BANCONTACT = 'MISTERCASH'
|
15
|
+
SOFORT = 'EBANKING'
|
16
|
+
GIROPAY = 'GIROPAY'
|
16
17
|
|
17
18
|
attr_accessor :payment_method, :issuers
|
18
19
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
3
|
+
require 'builder/xmlmarkup'
|
4
|
+
require 'securerandom'
|
5
5
|
|
6
6
|
module Docdata
|
7
7
|
module Order
|
@@ -40,11 +40,11 @@ module Docdata
|
|
40
40
|
# This info is useful when debugging troubleshooting technical integration issues.
|
41
41
|
builder.integrationInfo do |integration|
|
42
42
|
# The name of the plugin used to contact this webservice.
|
43
|
-
integration.webshopPlugin(
|
43
|
+
integration.webshopPlugin('docdata-order')
|
44
44
|
# The version of the plugin used to contact this webservice.
|
45
45
|
integration.webshopPluginVersion(Docdata::Order::VERSION)
|
46
46
|
# The name of the plugin creator used to contact this webservice.
|
47
|
-
integration.integratorName(
|
47
|
+
integration.integratorName('Kentaa')
|
48
48
|
# The programming language used to contact this webservice.
|
49
49
|
integration.programmingLanguage("Ruby #{RUBY_VERSION}")
|
50
50
|
# The operating system from which this webservice is contacted.
|
@@ -88,7 +88,7 @@ module Docdata
|
|
88
88
|
end
|
89
89
|
|
90
90
|
def subject_merchant_fee_moment
|
91
|
-
subject_merchant_fee[:moment] ||
|
91
|
+
subject_merchant_fee[:moment] || 'FULLY_PAID'
|
92
92
|
end
|
93
93
|
|
94
94
|
def subject_merchant_fee_description
|
@@ -100,7 +100,7 @@ module Docdata
|
|
100
100
|
end
|
101
101
|
|
102
102
|
def subject_merchant_fee_currency
|
103
|
-
subject_merchant_fee[:currency] ||
|
103
|
+
subject_merchant_fee[:currency] || 'EUR'
|
104
104
|
end
|
105
105
|
|
106
106
|
def build_request
|
@@ -254,7 +254,7 @@ module Docdata
|
|
254
254
|
end
|
255
255
|
|
256
256
|
def currency
|
257
|
-
options[:currency] ||
|
257
|
+
options[:currency] || 'EUR'
|
258
258
|
end
|
259
259
|
|
260
260
|
def description
|
@@ -387,7 +387,7 @@ module Docdata
|
|
387
387
|
end
|
388
388
|
|
389
389
|
def currency
|
390
|
-
options[:currency] ||
|
390
|
+
options[:currency] || 'EUR'
|
391
391
|
end
|
392
392
|
|
393
393
|
def description
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require 'uri'
|
4
4
|
|
5
5
|
module Docdata
|
6
6
|
module Order
|
@@ -22,7 +22,7 @@ module Docdata
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def error_code
|
25
|
-
errors[:error].attributes[
|
25
|
+
errors[:error].attributes['code'] if errors
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -50,7 +50,7 @@ module Docdata
|
|
50
50
|
|
51
51
|
def redirect_url
|
52
52
|
params = {
|
53
|
-
command:
|
53
|
+
command: 'show_payment_cluster',
|
54
54
|
merchant_name: merchant_name,
|
55
55
|
client_language: client_language,
|
56
56
|
payment_cluster_key: order_key
|
@@ -70,10 +70,10 @@ module Docdata
|
|
70
70
|
|
71
71
|
if return_url
|
72
72
|
params.merge!(
|
73
|
-
return_url_success: build_return_url(
|
74
|
-
return_url_canceled: build_return_url(
|
75
|
-
return_url_pending: build_return_url(
|
76
|
-
return_url_error: build_return_url(
|
73
|
+
return_url_success: build_return_url('success'),
|
74
|
+
return_url_canceled: build_return_url('cancelled'),
|
75
|
+
return_url_pending: build_return_url('pending'),
|
76
|
+
return_url_error: build_return_url('error')
|
77
77
|
)
|
78
78
|
end
|
79
79
|
|
@@ -119,7 +119,7 @@ module Docdata
|
|
119
119
|
|
120
120
|
def build_return_url(status)
|
121
121
|
uri = URI.parse(return_url)
|
122
|
-
query = URI.decode_www_form(uri.query ||
|
122
|
+
query = URI.decode_www_form(uri.query || '') << ['status', status]
|
123
123
|
uri.query = URI.encode_www_form(query)
|
124
124
|
uri.to_s
|
125
125
|
end
|
@@ -154,6 +154,10 @@ module Docdata
|
|
154
154
|
def payment_id
|
155
155
|
payment_success[:id] if payment_success
|
156
156
|
end
|
157
|
+
|
158
|
+
def payment_status
|
159
|
+
payment_success[:status] if payment_success
|
160
|
+
end
|
157
161
|
end
|
158
162
|
|
159
163
|
# Response to a extended status operation.
|
@@ -224,10 +228,22 @@ module Docdata
|
|
224
228
|
authorization[:status] if authorization
|
225
229
|
end
|
226
230
|
|
231
|
+
def authorization_amount
|
232
|
+
to_decimal(authorization[:amount]) if authorization
|
233
|
+
end
|
234
|
+
|
235
|
+
def authorization_currency
|
236
|
+
authorization[:amount].attributes['currency'] if authorization
|
237
|
+
end
|
238
|
+
|
227
239
|
def approximate_totals
|
228
240
|
report[:approximate_totals]
|
229
241
|
end
|
230
242
|
|
243
|
+
def exchanged_to
|
244
|
+
report[:approximate_totals][:@exchanged_to]
|
245
|
+
end
|
246
|
+
|
231
247
|
def total_registered
|
232
248
|
to_decimal(approximate_totals[:total_registered])
|
233
249
|
end
|
@@ -277,12 +293,12 @@ module Docdata
|
|
277
293
|
end
|
278
294
|
|
279
295
|
def started?
|
280
|
-
(authorization_status ==
|
281
|
-
(total_captured.zero? && total_acquirer_approved.zero?)) && authorization_status !=
|
296
|
+
(authorization_status == 'NEW' || authorization_status == 'STARTED' ||
|
297
|
+
(total_captured.zero? && total_acquirer_approved.zero?)) && authorization_status != 'CANCELED'
|
282
298
|
end
|
283
299
|
|
284
300
|
def cancelled?
|
285
|
-
authorization_status ==
|
301
|
+
authorization_status == 'CANCELED'
|
286
302
|
end
|
287
303
|
|
288
304
|
def consumer_iban
|
@@ -368,7 +384,7 @@ module Docdata
|
|
368
384
|
def payment_methods
|
369
385
|
data[:list_payment_methods_success][:payment_method].map do |payment_method|
|
370
386
|
method = PaymentMethod.new(payment_method[:name])
|
371
|
-
method.issuers = payment_method[:issuers][:issuer].
|
387
|
+
method.issuers = payment_method[:issuers][:issuer].to_h { |issuer| [issuer.attributes['id'], issuer.to_s] } if payment_method.key?(:issuers)
|
372
388
|
method
|
373
389
|
end
|
374
390
|
end
|
data/lib/docdata/order/urls.rb
CHANGED
@@ -4,12 +4,12 @@ module Docdata
|
|
4
4
|
module Order
|
5
5
|
module Urls
|
6
6
|
# WSDL location, see Order API 1.3.
|
7
|
-
WSDL_LIVE_URL =
|
8
|
-
WSDL_TEST_URL =
|
7
|
+
WSDL_LIVE_URL = 'https://secure.docdatapayments.com/ps/services/paymentservice/1_3?wsdl'
|
8
|
+
WSDL_TEST_URL = 'https://testsecure.docdatapayments.com/ps/services/paymentservice/1_3?wsdl'
|
9
9
|
|
10
10
|
# Payment Menu base URL, see Functional API.
|
11
|
-
MENU_LIVE_URL =
|
12
|
-
MENU_TEST_URL =
|
11
|
+
MENU_LIVE_URL = 'https://secure.docdatapayments.com/ps/menu'
|
12
|
+
MENU_TEST_URL = 'https://testsecure.docdatapayments.com/ps/menu'
|
13
13
|
end
|
14
14
|
end
|
15
15
|
end
|
data/lib/docdata/order.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
5
|
-
require
|
6
|
-
require
|
7
|
-
require
|
8
|
-
require
|
9
|
-
require
|
10
|
-
require
|
11
|
-
require
|
3
|
+
require 'docdata/order/amount'
|
4
|
+
require 'docdata/order/client'
|
5
|
+
require 'docdata/order/exception'
|
6
|
+
require 'docdata/order/gender'
|
7
|
+
require 'docdata/order/payment_method'
|
8
|
+
require 'docdata/order/request'
|
9
|
+
require 'docdata/order/response'
|
10
|
+
require 'docdata/order/urls'
|
11
|
+
require 'docdata/order/version'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docdata-order
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kentaa
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -58,20 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
62
|
-
- - ">="
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version: 2.3.2
|
61
|
+
version: '3.0'
|
65
62
|
type: :development
|
66
63
|
prerelease: false
|
67
64
|
version_requirements: !ruby/object:Gem::Requirement
|
68
65
|
requirements:
|
69
66
|
- - "~>"
|
70
67
|
- !ruby/object:Gem::Version
|
71
|
-
version: '
|
72
|
-
- - ">="
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: 2.3.2
|
68
|
+
version: '3.0'
|
75
69
|
- !ruby/object:Gem::Dependency
|
76
70
|
name: savon
|
77
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,18 +93,8 @@ executables: []
|
|
99
93
|
extensions: []
|
100
94
|
extra_rdoc_files: []
|
101
95
|
files:
|
102
|
-
- ".gitignore"
|
103
|
-
- ".rspec"
|
104
|
-
- ".rubocop.yml"
|
105
|
-
- ".travis.yml"
|
106
|
-
- Gemfile
|
107
|
-
- Gemfile.lock
|
108
96
|
- LICENSE.txt
|
109
97
|
- README.md
|
110
|
-
- Rakefile
|
111
|
-
- bin/console
|
112
|
-
- bin/setup
|
113
|
-
- docdata-order.gemspec
|
114
98
|
- lib/docdata/order.rb
|
115
99
|
- lib/docdata/order/amount.rb
|
116
100
|
- lib/docdata/order/client.rb
|
@@ -124,7 +108,8 @@ files:
|
|
124
108
|
homepage: https://github.com/KentaaNL/docdata-order
|
125
109
|
licenses:
|
126
110
|
- MIT
|
127
|
-
metadata:
|
111
|
+
metadata:
|
112
|
+
rubygems_mfa_required: 'true'
|
128
113
|
post_install_message:
|
129
114
|
rdoc_options: []
|
130
115
|
require_paths:
|
@@ -133,14 +118,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
133
118
|
requirements:
|
134
119
|
- - ">="
|
135
120
|
- !ruby/object:Gem::Version
|
136
|
-
version: 2.
|
121
|
+
version: 2.7.0
|
137
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
123
|
requirements:
|
139
124
|
- - ">="
|
140
125
|
- !ruby/object:Gem::Version
|
141
126
|
version: '0'
|
142
127
|
requirements: []
|
143
|
-
rubygems_version: 3.
|
128
|
+
rubygems_version: 3.1.6
|
144
129
|
signing_key:
|
145
130
|
specification_version: 4
|
146
131
|
summary: Ruby client for the Docdata Order API
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.rubocop.yml
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
# Docdata-order RuboCop configuration
|
2
|
-
|
3
|
-
require:
|
4
|
-
- rubocop-performance
|
5
|
-
- rubocop-rake
|
6
|
-
- rubocop-rspec
|
7
|
-
|
8
|
-
AllCops:
|
9
|
-
NewCops: enable
|
10
|
-
TargetRubyVersion: 2.4
|
11
|
-
DisplayCopNames: true
|
12
|
-
DisplayStyleGuide: true
|
13
|
-
Exclude:
|
14
|
-
- 'tmp/**/*'
|
15
|
-
- 'vendor/**/*'
|
16
|
-
|
17
|
-
|
18
|
-
Layout/LineLength:
|
19
|
-
Enabled: false
|
20
|
-
|
21
|
-
|
22
|
-
Metrics/AbcSize:
|
23
|
-
Max: 58
|
24
|
-
|
25
|
-
Metrics/BlockLength:
|
26
|
-
Exclude:
|
27
|
-
- 'spec/**/*.rb'
|
28
|
-
|
29
|
-
Metrics/ClassLength:
|
30
|
-
Enabled: false
|
31
|
-
|
32
|
-
Metrics/MethodLength:
|
33
|
-
Enabled: false
|
34
|
-
|
35
|
-
|
36
|
-
RSpec/DescribedClass:
|
37
|
-
EnforcedStyle: explicit
|
38
|
-
|
39
|
-
RSpec/ExampleLength:
|
40
|
-
Max: 41
|
41
|
-
|
42
|
-
RSpec/MultipleExpectations:
|
43
|
-
Max: 10
|
44
|
-
|
45
|
-
|
46
|
-
Style/BlockDelimiters:
|
47
|
-
Exclude:
|
48
|
-
- 'spec/**/*.rb'
|
49
|
-
|
50
|
-
Style/GuardClause:
|
51
|
-
Enabled: false
|
52
|
-
|
53
|
-
Style/StringLiterals:
|
54
|
-
Enabled: false
|
55
|
-
|
56
|
-
Style/SymbolArray:
|
57
|
-
Enabled: false
|
data/.travis.yml
DELETED
data/Gemfile
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
source 'https://rubygems.org'
|
4
|
-
|
5
|
-
# Specify your gem's dependencies in docdata-order.gemspec
|
6
|
-
gemspec
|
7
|
-
|
8
|
-
gem 'rubocop', '~> 1.12.0'
|
9
|
-
gem 'rubocop-performance', '~> 1.10.2'
|
10
|
-
gem 'rubocop-rake', '~> 0.5.1'
|
11
|
-
gem 'rubocop-rspec', '~> 2.2.0'
|
data/Gemfile.lock
DELETED
@@ -1,107 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
docdata-order (2.0.0)
|
5
|
-
savon (>= 2.0, < 3.0)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
addressable (2.5.1)
|
11
|
-
public_suffix (~> 2.0, >= 2.0.2)
|
12
|
-
akami (1.3.1)
|
13
|
-
gyoku (>= 0.4.0)
|
14
|
-
nokogiri
|
15
|
-
ast (2.4.2)
|
16
|
-
builder (3.2.4)
|
17
|
-
crack (0.4.3)
|
18
|
-
safe_yaml (~> 1.0.0)
|
19
|
-
diff-lcs (1.3)
|
20
|
-
gyoku (1.3.1)
|
21
|
-
builder (>= 2.1.2)
|
22
|
-
hashdiff (0.3.4)
|
23
|
-
httpi (2.4.5)
|
24
|
-
rack
|
25
|
-
socksify
|
26
|
-
mini_portile2 (2.4.0)
|
27
|
-
nokogiri (1.10.10)
|
28
|
-
mini_portile2 (~> 2.4.0)
|
29
|
-
nori (2.6.0)
|
30
|
-
parallel (1.20.1)
|
31
|
-
parser (3.0.1.1)
|
32
|
-
ast (~> 2.4.1)
|
33
|
-
public_suffix (2.0.5)
|
34
|
-
rack (2.2.3)
|
35
|
-
rainbow (3.0.0)
|
36
|
-
rake (13.0.3)
|
37
|
-
regexp_parser (2.1.1)
|
38
|
-
rexml (3.2.5)
|
39
|
-
rspec (3.6.0)
|
40
|
-
rspec-core (~> 3.6.0)
|
41
|
-
rspec-expectations (~> 3.6.0)
|
42
|
-
rspec-mocks (~> 3.6.0)
|
43
|
-
rspec-core (3.6.0)
|
44
|
-
rspec-support (~> 3.6.0)
|
45
|
-
rspec-expectations (3.6.0)
|
46
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
47
|
-
rspec-support (~> 3.6.0)
|
48
|
-
rspec-mocks (3.6.0)
|
49
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
-
rspec-support (~> 3.6.0)
|
51
|
-
rspec-support (3.6.0)
|
52
|
-
rubocop (1.12.1)
|
53
|
-
parallel (~> 1.10)
|
54
|
-
parser (>= 3.0.0.0)
|
55
|
-
rainbow (>= 2.2.2, < 4.0)
|
56
|
-
regexp_parser (>= 1.8, < 3.0)
|
57
|
-
rexml
|
58
|
-
rubocop-ast (>= 1.2.0, < 2.0)
|
59
|
-
ruby-progressbar (~> 1.7)
|
60
|
-
unicode-display_width (>= 1.4.0, < 3.0)
|
61
|
-
rubocop-ast (1.4.1)
|
62
|
-
parser (>= 2.7.1.5)
|
63
|
-
rubocop-performance (1.10.2)
|
64
|
-
rubocop (>= 0.90.0, < 2.0)
|
65
|
-
rubocop-ast (>= 0.4.0)
|
66
|
-
rubocop-rake (0.5.1)
|
67
|
-
rubocop
|
68
|
-
rubocop-rspec (2.2.0)
|
69
|
-
rubocop (~> 1.0)
|
70
|
-
rubocop-ast (>= 1.1.0)
|
71
|
-
ruby-progressbar (1.11.0)
|
72
|
-
safe_yaml (1.0.4)
|
73
|
-
savon (2.12.1)
|
74
|
-
akami (~> 1.2)
|
75
|
-
builder (>= 2.1.2)
|
76
|
-
gyoku (~> 1.2)
|
77
|
-
httpi (~> 2.3)
|
78
|
-
nokogiri (>= 1.8.1)
|
79
|
-
nori (~> 2.4)
|
80
|
-
wasabi (~> 3.4)
|
81
|
-
socksify (1.7.1)
|
82
|
-
unicode-display_width (2.0.0)
|
83
|
-
wasabi (3.6.1)
|
84
|
-
addressable
|
85
|
-
httpi (~> 2.0)
|
86
|
-
nokogiri (>= 1.4.2)
|
87
|
-
webmock (2.3.2)
|
88
|
-
addressable (>= 2.3.6)
|
89
|
-
crack (>= 0.3.2)
|
90
|
-
hashdiff
|
91
|
-
|
92
|
-
PLATFORMS
|
93
|
-
ruby
|
94
|
-
|
95
|
-
DEPENDENCIES
|
96
|
-
bundler (~> 2.0)
|
97
|
-
docdata-order!
|
98
|
-
rake (~> 13.0)
|
99
|
-
rspec (~> 3.0)
|
100
|
-
rubocop (~> 1.12.0)
|
101
|
-
rubocop-performance (~> 1.10.2)
|
102
|
-
rubocop-rake (~> 0.5.1)
|
103
|
-
rubocop-rspec (~> 2.2.0)
|
104
|
-
webmock (~> 2.3, >= 2.3.2)
|
105
|
-
|
106
|
-
BUNDLED WITH
|
107
|
-
2.2.17
|
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require "bundler/setup"
|
5
|
-
require "docdata/order"
|
6
|
-
|
7
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
-
# with your gem easier. You can also use a different console, if you like.
|
9
|
-
|
10
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
-
# require "pry"
|
12
|
-
# Pry.start
|
13
|
-
|
14
|
-
require "irb"
|
15
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
data/docdata-order.gemspec
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
lib = File.expand_path('lib', __dir__)
|
4
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require 'docdata/order/version'
|
6
|
-
|
7
|
-
Gem::Specification.new do |spec|
|
8
|
-
spec.name = "docdata-order"
|
9
|
-
spec.version = Docdata::Order::VERSION
|
10
|
-
spec.authors = ["Kentaa"]
|
11
|
-
spec.email = ["support@kentaa.nl"]
|
12
|
-
|
13
|
-
spec.summary = "Ruby client for the Docdata Order API"
|
14
|
-
spec.homepage = "https://github.com/KentaaNL/docdata-order"
|
15
|
-
spec.license = "MIT"
|
16
|
-
|
17
|
-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
-
f.match(%r{^(test|spec|features)/})
|
19
|
-
end
|
20
|
-
spec.bindir = "exe"
|
21
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
-
spec.require_paths = ["lib"]
|
23
|
-
|
24
|
-
spec.required_ruby_version = ">= 2.4.0"
|
25
|
-
|
26
|
-
spec.add_development_dependency "bundler", "~> 2.0"
|
27
|
-
spec.add_development_dependency "rake", "~> 13.0"
|
28
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
29
|
-
spec.add_development_dependency "webmock", "~> 2.3", ">= 2.3.2"
|
30
|
-
|
31
|
-
spec.add_dependency "savon", ">= 2.0", "< 3.0"
|
32
|
-
end
|