pactas_itero 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +15 -0
- data/.rubocop.yml +765 -0
- data/CHANGELOG.md +15 -0
- data/Gemfile +2 -0
- data/Rakefile +3 -0
- data/lib/pactas_itero/api/contracts.rb +7 -0
- data/lib/pactas_itero/api/customers.rb +2 -0
- data/lib/pactas_itero/api/invoices.rb +2 -0
- data/lib/pactas_itero/api/oauth.rb +2 -0
- data/lib/pactas_itero/api/orders.rb +2 -0
- data/lib/pactas_itero/api/rated_items.rb +11 -2
- data/lib/pactas_itero/api.rb +2 -0
- data/lib/pactas_itero/client.rb +11 -9
- data/lib/pactas_itero/configurable.rb +8 -6
- data/lib/pactas_itero/default.rb +7 -5
- data/lib/pactas_itero/error.rb +39 -35
- data/lib/pactas_itero/ext/hash/camelize_keys.rb +6 -3
- data/lib/pactas_itero/response/raise_error.rb +3 -1
- data/lib/pactas_itero/version.rb +3 -1
- data/lib/pactas_itero.rb +3 -1
- metadata +11 -83
- data/Gemfile.lock +0 -112
- data/bin/setup +0 -7
- data/pactas_itero.gemspec +0 -37
- data/spec/fixtures/bearer_token.json +0 -5
- data/spec/fixtures/commit_order_response.json +0 -50
- data/spec/fixtures/contract.json +0 -46
- data/spec/fixtures/contract_cancellation_preview_response.json +0 -73
- data/spec/fixtures/contract_changes.json +0 -22
- data/spec/fixtures/contract_termination_response.json +0 -79
- data/spec/fixtures/contracts.json +0 -48
- data/spec/fixtures/create_order_response.json +0 -17
- data/spec/fixtures/create_rated_item.json +0 -8
- data/spec/fixtures/customer.json +0 -23
- data/spec/fixtures/customers.json +0 -40
- data/spec/fixtures/invoice.json +0 -22
- data/spec/fixtures/invoice_download.pdf +0 -0
- data/spec/fixtures/invoices.json +0 -46
- data/spec/fixtures/order.json +0 -15
- data/spec/fixtures/payment_transaction.json +0 -37
- data/spec/fixtures/rated_items.json +0 -12
- data/spec/fixtures/self_service_token.json +0 -6
- data/spec/pactas_itero/api/contracts_spec.rb +0 -193
- data/spec/pactas_itero/api/customers_spec.rb +0 -231
- data/spec/pactas_itero/api/invoices_spec.rb +0 -103
- data/spec/pactas_itero/api/oauth_spec.rb +0 -44
- data/spec/pactas_itero/api/orders_spec.rb +0 -102
- data/spec/pactas_itero/api/payment_transactions_spec.rb +0 -66
- data/spec/pactas_itero/api/rated_items_spec.rb +0 -113
- data/spec/pactas_itero/client_spec.rb +0 -312
- data/spec/pactas_itero_spec.rb +0 -37
- data/spec/spec_helper.rb +0 -100
- data/yarn-error.log +0 -43
data/CHANGELOG.md
CHANGED
@@ -11,6 +11,21 @@
|
|
11
11
|
|
12
12
|
### Security
|
13
13
|
|
14
|
+
## [0.8.0] - 2022-02-22
|
15
|
+
|
16
|
+
# What's Changed
|
17
|
+
|
18
|
+
## Added
|
19
|
+
|
20
|
+
- Add Metered Usage call by @3wille in https://github.com/shipcloud/billwerk/pull/146
|
21
|
+
|
22
|
+
## Changed
|
23
|
+
|
24
|
+
- Fix current Rubocop Issues by @mortik in https://github.com/shipcloud/billwerk/pull/111
|
25
|
+
- update ruby and introduce standardrb by @3wille in https://github.com/shipcloud/billwerk/pull/147
|
26
|
+
|
27
|
+
**Diff**: https://github.com/shipcloud/billwerk/compare/v0.7.0...v0.8.0
|
28
|
+
|
14
29
|
## [0.7.0] - 2022-02-22
|
15
30
|
|
16
31
|
### Added
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require "bundler/gem_tasks"
|
2
4
|
require "rspec/core/rake_task"
|
3
5
|
|
@@ -5,6 +7,7 @@ RSpec::Core::RakeTask.new(:spec) do |spec|
|
|
5
7
|
spec.pattern = FileList["spec/**/*_spec.rb"]
|
6
8
|
end
|
7
9
|
|
10
|
+
desc "start an irb console with pactas_itero required"
|
8
11
|
task :console do
|
9
12
|
require "irb"
|
10
13
|
require "irb/completion"
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module PactasItero
|
2
4
|
module Api
|
3
5
|
module Contracts
|
@@ -40,6 +42,11 @@ module PactasItero
|
|
40
42
|
options = options.camelize_keys
|
41
43
|
post "api/v1/contracts/#{contract_id}/end", options
|
42
44
|
end
|
45
|
+
|
46
|
+
def contract_metered_usage(contract_id, options = {})
|
47
|
+
options = options.camelize_keys
|
48
|
+
post "api/v1/contracts/#{contract_id}/usage", options
|
49
|
+
end
|
43
50
|
end
|
44
51
|
end
|
45
52
|
end
|
@@ -1,12 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module PactasItero
|
2
4
|
module Api
|
3
5
|
module RatedItems
|
4
|
-
def create_rated_item(
|
6
|
+
def create_rated_item(
|
7
|
+
contract_id,
|
8
|
+
quantity,
|
9
|
+
description,
|
10
|
+
price_per_unit,
|
11
|
+
tax_policy_id,
|
12
|
+
options = {}
|
13
|
+
)
|
5
14
|
options.merge!(
|
6
15
|
quantity: quantity,
|
7
16
|
description: description,
|
8
17
|
price_per_unit: price_per_unit,
|
9
|
-
tax_policy_id: tax_policy_id
|
18
|
+
tax_policy_id: tax_policy_id
|
10
19
|
)
|
11
20
|
options = options.camelize_keys
|
12
21
|
post "api/v1/contracts/#{contract_id}/ratedItems", options
|
data/lib/pactas_itero/api.rb
CHANGED
data/lib/pactas_itero/client.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require "base64"
|
2
4
|
require "rash"
|
3
5
|
require "pactas_itero/configurable"
|
@@ -14,7 +16,7 @@ module PactasItero
|
|
14
16
|
PactasItero::Configurable.keys.each do |key|
|
15
17
|
instance_variable_set(
|
16
18
|
:"@#{key}",
|
17
|
-
options[key] || PactasItero.instance_variable_get(:"@#{key}")
|
19
|
+
options[key] || PactasItero.instance_variable_get(:"@#{key}")
|
18
20
|
)
|
19
21
|
end
|
20
22
|
end
|
@@ -50,21 +52,21 @@ module PactasItero
|
|
50
52
|
private
|
51
53
|
|
52
54
|
def connection
|
53
|
-
@
|
55
|
+
@_connection ||= Faraday.new(api_endpoint, connection_options)
|
54
56
|
end
|
55
57
|
|
56
58
|
def request(method, path, params = {})
|
57
59
|
headers = params.delete(:headers) || {}
|
58
|
-
if accept = params.delete(:accept)
|
60
|
+
if (accept = params.delete(:accept))
|
59
61
|
headers[:accept] = accept
|
60
62
|
end
|
61
63
|
|
62
64
|
bearer_token_request = params.delete(:bearer_token_request)
|
63
65
|
|
64
66
|
if bearer_token_request
|
65
|
-
headers[:accept]
|
67
|
+
headers[:accept] = "*/*"
|
66
68
|
headers[:authorization] = bearer_token_credentials_auth_header
|
67
|
-
headers[:content_type]
|
69
|
+
headers[:content_type] = "application/x-www-form-urlencoded; charset=UTF-8"
|
68
70
|
else
|
69
71
|
headers[:authorization] = auth_header
|
70
72
|
end
|
@@ -76,16 +78,16 @@ module PactasItero
|
|
76
78
|
end
|
77
79
|
|
78
80
|
def connection_options
|
79
|
-
@
|
81
|
+
@_connection_options ||= {
|
80
82
|
builder: middleware,
|
81
83
|
headers: {
|
82
84
|
accept: default_media_type,
|
83
|
-
user_agent: user_agent
|
85
|
+
user_agent: user_agent
|
84
86
|
},
|
85
87
|
request: {
|
86
88
|
open_timeout: 10,
|
87
|
-
timeout: 30
|
88
|
-
}
|
89
|
+
timeout: 30
|
90
|
+
}
|
89
91
|
}
|
90
92
|
end
|
91
93
|
|
@@ -1,13 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module PactasItero
|
2
4
|
module Configurable
|
3
5
|
attr_accessor :bearer_token, :client_id, :client_secret, :user_agent,
|
4
|
-
|
6
|
+
:default_media_type, :middleware, :production
|
5
7
|
attr_writer :api_endpoint
|
6
8
|
|
7
9
|
class << self
|
8
10
|
# List of configurable keys for PactasItero::Client
|
9
11
|
def keys
|
10
|
-
@
|
12
|
+
@_keys ||= [
|
11
13
|
:bearer_token,
|
12
14
|
:api_endpoint,
|
13
15
|
:client_id,
|
@@ -15,7 +17,7 @@ module PactasItero
|
|
15
17
|
:user_agent,
|
16
18
|
:default_media_type,
|
17
19
|
:middleware,
|
18
|
-
:production
|
20
|
+
:production
|
19
21
|
]
|
20
22
|
end
|
21
23
|
end
|
@@ -32,11 +34,11 @@ module PactasItero
|
|
32
34
|
end
|
33
35
|
self
|
34
36
|
end
|
35
|
-
|
37
|
+
alias_method :setup, :reset!
|
36
38
|
|
37
39
|
def api_endpoint
|
38
40
|
endpoint = @api_endpoint ||
|
39
|
-
production && production_api_endpoint ||
|
41
|
+
(production && production_api_endpoint) ||
|
40
42
|
sandbox_api_endpoint
|
41
43
|
File.join(endpoint, "")
|
42
44
|
end
|
@@ -52,7 +54,7 @@ module PactasItero
|
|
52
54
|
private
|
53
55
|
|
54
56
|
def options
|
55
|
-
|
57
|
+
PactasItero::Configurable.keys.to_h { |key| [key, send(:"#{key}")] }
|
56
58
|
end
|
57
59
|
end
|
58
60
|
end
|
data/lib/pactas_itero/default.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require "pactas_itero/response/raise_error"
|
2
4
|
require "pactas_itero/version"
|
3
5
|
require "faraday_middleware"
|
@@ -5,15 +7,15 @@ require "faraday_middleware"
|
|
5
7
|
module PactasItero
|
6
8
|
# Default configuration options for {Client}
|
7
9
|
module Default
|
8
|
-
SANDBOX_API_ENDPOINT = "https://sandbox.billwerk.com"
|
10
|
+
SANDBOX_API_ENDPOINT = "https://sandbox.billwerk.com"
|
9
11
|
|
10
|
-
PRODUCTION_API_ENDPOINT = "https://app.billwerk.com"
|
12
|
+
PRODUCTION_API_ENDPOINT = "https://app.billwerk.com"
|
11
13
|
|
12
14
|
PRODUCTION = false
|
13
15
|
|
14
|
-
USER_AGENT
|
16
|
+
USER_AGENT = "Pactas.Itero Ruby Gem #{PactasItero::VERSION}"
|
15
17
|
|
16
|
-
MEDIA_TYPE
|
18
|
+
MEDIA_TYPE = "application/json"
|
17
19
|
|
18
20
|
MIDDLEWARE = Faraday::RackBuilder.new do |builder|
|
19
21
|
builder.request :json
|
@@ -27,7 +29,7 @@ module PactasItero
|
|
27
29
|
|
28
30
|
class << self
|
29
31
|
def options
|
30
|
-
|
32
|
+
PactasItero::Configurable.keys.to_h { |key| [key, send(key)] }
|
31
33
|
end
|
32
34
|
|
33
35
|
def api_endpoint
|
data/lib/pactas_itero/error.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module PactasItero
|
2
4
|
# Custom error class for rescuing from all Pactas errors
|
3
5
|
class Error < StandardError
|
@@ -7,28 +9,27 @@ module PactasItero
|
|
7
9
|
# @param [Hash] response HTTP response
|
8
10
|
# @return [PactasItero::Error]
|
9
11
|
def self.from_response(response)
|
10
|
-
status
|
11
|
-
body
|
12
|
+
status = response[:status].to_i
|
13
|
+
body = response[:body].to_s
|
12
14
|
headers = response[:response_headers]
|
13
15
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
end
|
30
|
-
klass.new(response)
|
16
|
+
klass = case status
|
17
|
+
when 400 then PactasItero::BadRequest
|
18
|
+
when 401 then error_for401(headers)
|
19
|
+
when 403 then error_for403(body)
|
20
|
+
when 404 then PactasItero::NotFound
|
21
|
+
when 406 then PactasItero::NotAcceptable
|
22
|
+
when 409 then PactasItero::Conflict
|
23
|
+
when 415 then PactasItero::UnsupportedMediaType
|
24
|
+
when 422 then PactasItero::UnprocessableEntity
|
25
|
+
when 400..499 then PactasItero::ClientError
|
26
|
+
when 500 then PactasItero::InternalServerError
|
27
|
+
when 501 then PactasItero::NotImplemented
|
28
|
+
when 502 then PactasItero::BadGateway
|
29
|
+
when 503 then PactasItero::ServiceUnavailable
|
30
|
+
when 500..599 then PactasItero::ServerError
|
31
31
|
end
|
32
|
+
klass&.new(response)
|
32
33
|
end
|
33
34
|
|
34
35
|
def initialize(response = nil)
|
@@ -38,7 +39,7 @@ module PactasItero
|
|
38
39
|
|
39
40
|
# Returns most appropriate error for 401 HTTP status code
|
40
41
|
# @private
|
41
|
-
def self.
|
42
|
+
def self.error_for401(headers)
|
42
43
|
if PactasItero::OneTimePasswordRequired.required_header(headers)
|
43
44
|
PactasItero::OneTimePasswordRequired
|
44
45
|
else
|
@@ -48,10 +49,11 @@ module PactasItero
|
|
48
49
|
|
49
50
|
# Returns most appropriate error for 403 HTTP status code
|
50
51
|
# @private
|
51
|
-
def self.
|
52
|
-
|
52
|
+
def self.error_for403(body)
|
53
|
+
case body
|
54
|
+
when /rate limit exceeded/i
|
53
55
|
PactasItero::TooManyRequests
|
54
|
-
|
56
|
+
when /login attempts exceeded/i
|
55
57
|
PactasItero::TooManyLoginAttempts
|
56
58
|
else
|
57
59
|
PactasItero::Forbidden
|
@@ -61,7 +63,7 @@ module PactasItero
|
|
61
63
|
# Array of validation errors
|
62
64
|
# @return [Array<Hash>] Error info
|
63
65
|
def errors
|
64
|
-
if data
|
66
|
+
if data.is_a?(Hash)
|
65
67
|
data[:errors] || []
|
66
68
|
else
|
67
69
|
[]
|
@@ -71,11 +73,11 @@ module PactasItero
|
|
71
73
|
private
|
72
74
|
|
73
75
|
def data
|
74
|
-
@
|
76
|
+
@_data ||=
|
75
77
|
if (body = @response[:body]) && !body.empty?
|
76
78
|
if body.is_a?(String) &&
|
77
79
|
@response[:response_headers] &&
|
78
|
-
@response[:response_headers][:content_type]
|
80
|
+
@response[:response_headers][:content_type].include?("json")
|
79
81
|
|
80
82
|
Sawyer::Agent.serializer.decode(body)
|
81
83
|
else
|
@@ -111,19 +113,21 @@ module PactasItero
|
|
111
113
|
def build_error_message
|
112
114
|
return nil if @response.nil?
|
113
115
|
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
116
|
+
[
|
117
|
+
"#{@response[:method].to_s.upcase} ",
|
118
|
+
"#{redact_url(@response[:url].to_s)}: ",
|
119
|
+
"#{@response[:status]} - ",
|
120
|
+
(response_message.to_s unless response_message.nil?),
|
121
|
+
(response_error.to_s unless response_error.nil?),
|
122
|
+
(response_error_summary.to_s unless response_error_summary.nil?)
|
123
|
+
].compact.join
|
121
124
|
end
|
122
125
|
|
123
126
|
def redact_url(url_string)
|
124
127
|
%w[client_secret access_token].each do |token|
|
125
128
|
url_string.gsub!(/#{token}=\S+/, "#{token}=(redacted)") if url_string.include? token
|
126
129
|
end
|
130
|
+
|
127
131
|
url_string
|
128
132
|
end
|
129
133
|
end
|
@@ -152,13 +156,13 @@ module PactasItero
|
|
152
156
|
#
|
153
157
|
# @return [String]
|
154
158
|
def password_delivery
|
155
|
-
@
|
159
|
+
@_password_delivery ||= delivery_method_from_header
|
156
160
|
end
|
157
161
|
|
158
162
|
private
|
159
163
|
|
160
164
|
def delivery_method_from_header
|
161
|
-
if match = self.class.required_header(@response[:response_headers])
|
165
|
+
if (match = self.class.required_header(@response[:response_headers]))
|
162
166
|
match[1]
|
163
167
|
end
|
164
168
|
end
|
@@ -1,10 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
class Hash
|
2
4
|
def camelize_keys(value = self)
|
3
5
|
case value
|
4
6
|
when Array
|
5
7
|
value.map { |v| camelize_keys(v) }
|
6
8
|
when Hash
|
7
|
-
|
9
|
+
value.to_h { |k, v| [camelize_key(k), camelize_keys(v)] }
|
8
10
|
else
|
9
11
|
value
|
10
12
|
end
|
@@ -13,9 +15,10 @@ class Hash
|
|
13
15
|
private
|
14
16
|
|
15
17
|
def camelize_key(key)
|
16
|
-
|
18
|
+
case key
|
19
|
+
when Symbol
|
17
20
|
camelize(key.to_s).to_sym
|
18
|
-
|
21
|
+
when String
|
19
22
|
camelize(key)
|
20
23
|
else
|
21
24
|
key
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require "faraday"
|
2
4
|
require "pactas_itero/error"
|
3
5
|
|
@@ -8,7 +10,7 @@ module PactasItero
|
|
8
10
|
# HTTP status codes returned by the API
|
9
11
|
class RaiseError < Faraday::Middleware
|
10
12
|
def on_complete(response)
|
11
|
-
if error = PactasItero::Error.from_response(response)
|
13
|
+
if (error = PactasItero::Error.from_response(response))
|
12
14
|
raise error
|
13
15
|
end
|
14
16
|
end
|
data/lib/pactas_itero/version.rb
CHANGED
data/lib/pactas_itero.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require "pactas_itero/client"
|
2
4
|
require "pactas_itero/default"
|
3
5
|
|
@@ -13,7 +15,7 @@ module PactasItero
|
|
13
15
|
end
|
14
16
|
|
15
17
|
def respond_to_missing?(method_name, include_private = false)
|
16
|
-
method_name != :client && client.respond_to?(method_name, include_private) || super
|
18
|
+
(method_name != :client && client.respond_to?(method_name, include_private)) || super
|
17
19
|
end
|
18
20
|
|
19
21
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pactas_itero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Fröhler
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday_middleware
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 3.11.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: standard
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
@@ -94,20 +94,6 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 1.25.1
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rubocop-performance
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: 1.13.2
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: 1.13.2
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: simplecov
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -141,18 +127,17 @@ description: |-
|
|
141
127
|
the Pactas Itero API, making it easy to post your data to, and read your
|
142
128
|
data from your Pactas account.
|
143
129
|
email: simon@shipcloud.io
|
144
|
-
executables:
|
145
|
-
- setup
|
130
|
+
executables: []
|
146
131
|
extensions: []
|
147
132
|
extra_rdoc_files: []
|
148
133
|
files:
|
134
|
+
- ".codeclimate.yml"
|
135
|
+
- ".rubocop.yml"
|
149
136
|
- CHANGELOG.md
|
150
137
|
- Gemfile
|
151
|
-
- Gemfile.lock
|
152
138
|
- LICENSE.txt
|
153
139
|
- README.md
|
154
140
|
- Rakefile
|
155
|
-
- bin/setup
|
156
141
|
- lib/pactas_itero.rb
|
157
142
|
- lib/pactas_itero/api.rb
|
158
143
|
- lib/pactas_itero/api/contracts.rb
|
@@ -169,40 +154,11 @@ files:
|
|
169
154
|
- lib/pactas_itero/ext/hash/camelize_keys.rb
|
170
155
|
- lib/pactas_itero/response/raise_error.rb
|
171
156
|
- lib/pactas_itero/version.rb
|
172
|
-
- pactas_itero.gemspec
|
173
|
-
- spec/fixtures/bearer_token.json
|
174
|
-
- spec/fixtures/commit_order_response.json
|
175
|
-
- spec/fixtures/contract.json
|
176
|
-
- spec/fixtures/contract_cancellation_preview_response.json
|
177
|
-
- spec/fixtures/contract_changes.json
|
178
|
-
- spec/fixtures/contract_termination_response.json
|
179
|
-
- spec/fixtures/contracts.json
|
180
|
-
- spec/fixtures/create_order_response.json
|
181
|
-
- spec/fixtures/create_rated_item.json
|
182
|
-
- spec/fixtures/customer.json
|
183
|
-
- spec/fixtures/customers.json
|
184
|
-
- spec/fixtures/invoice.json
|
185
|
-
- spec/fixtures/invoice_download.pdf
|
186
|
-
- spec/fixtures/invoices.json
|
187
|
-
- spec/fixtures/order.json
|
188
|
-
- spec/fixtures/payment_transaction.json
|
189
|
-
- spec/fixtures/rated_items.json
|
190
|
-
- spec/fixtures/self_service_token.json
|
191
|
-
- spec/pactas_itero/api/contracts_spec.rb
|
192
|
-
- spec/pactas_itero/api/customers_spec.rb
|
193
|
-
- spec/pactas_itero/api/invoices_spec.rb
|
194
|
-
- spec/pactas_itero/api/oauth_spec.rb
|
195
|
-
- spec/pactas_itero/api/orders_spec.rb
|
196
|
-
- spec/pactas_itero/api/payment_transactions_spec.rb
|
197
|
-
- spec/pactas_itero/api/rated_items_spec.rb
|
198
|
-
- spec/pactas_itero/client_spec.rb
|
199
|
-
- spec/pactas_itero_spec.rb
|
200
|
-
- spec/spec_helper.rb
|
201
|
-
- yarn-error.log
|
202
157
|
homepage: https://github.com/webionate/pactas_itero
|
203
158
|
licenses:
|
204
159
|
- MIT
|
205
|
-
metadata:
|
160
|
+
metadata:
|
161
|
+
rubygems_mfa_required: 'true'
|
206
162
|
post_install_message:
|
207
163
|
rdoc_options: []
|
208
164
|
require_paths:
|
@@ -218,36 +174,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
174
|
- !ruby/object:Gem::Version
|
219
175
|
version: '0'
|
220
176
|
requirements: []
|
221
|
-
rubygems_version: 3.
|
177
|
+
rubygems_version: 3.4.10
|
222
178
|
signing_key:
|
223
179
|
specification_version: 4
|
224
180
|
summary: pactas_itero provides a client mapping for accessing the Pactas Itero API.
|
225
|
-
test_files:
|
226
|
-
- spec/fixtures/bearer_token.json
|
227
|
-
- spec/fixtures/commit_order_response.json
|
228
|
-
- spec/fixtures/contract.json
|
229
|
-
- spec/fixtures/contract_cancellation_preview_response.json
|
230
|
-
- spec/fixtures/contract_changes.json
|
231
|
-
- spec/fixtures/contract_termination_response.json
|
232
|
-
- spec/fixtures/contracts.json
|
233
|
-
- spec/fixtures/create_order_response.json
|
234
|
-
- spec/fixtures/create_rated_item.json
|
235
|
-
- spec/fixtures/customer.json
|
236
|
-
- spec/fixtures/customers.json
|
237
|
-
- spec/fixtures/invoice.json
|
238
|
-
- spec/fixtures/invoice_download.pdf
|
239
|
-
- spec/fixtures/invoices.json
|
240
|
-
- spec/fixtures/order.json
|
241
|
-
- spec/fixtures/payment_transaction.json
|
242
|
-
- spec/fixtures/rated_items.json
|
243
|
-
- spec/fixtures/self_service_token.json
|
244
|
-
- spec/pactas_itero/api/contracts_spec.rb
|
245
|
-
- spec/pactas_itero/api/customers_spec.rb
|
246
|
-
- spec/pactas_itero/api/invoices_spec.rb
|
247
|
-
- spec/pactas_itero/api/oauth_spec.rb
|
248
|
-
- spec/pactas_itero/api/orders_spec.rb
|
249
|
-
- spec/pactas_itero/api/payment_transactions_spec.rb
|
250
|
-
- spec/pactas_itero/api/rated_items_spec.rb
|
251
|
-
- spec/pactas_itero/client_spec.rb
|
252
|
-
- spec/pactas_itero_spec.rb
|
253
|
-
- spec/spec_helper.rb
|
181
|
+
test_files: []
|