ledger_sync-xero 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.coveralls.yml +1 -0
- data/.env.test +5 -0
- data/.gitignore +21 -0
- data/.overcommit.yml +29 -0
- data/.rubocop.yml +78 -0
- data/.rubocop_todo.yml +25 -0
- data/.travis.yml +26 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +234 -0
- data/README.md +23 -0
- data/Rakefile +8 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/bin/xero_oauth_server.rb +110 -0
- data/ledger_sync-xero.gemspec +45 -0
- data/lib/ledger_sync/xero.rb +13 -0
- data/lib/ledger_sync/xero/client.rb +158 -0
- data/lib/ledger_sync/xero/config.rb +7 -0
- data/lib/ledger_sync/xero/contact/deserializer.rb +14 -0
- data/lib/ledger_sync/xero/contact/operations/create.rb +20 -0
- data/lib/ledger_sync/xero/contact/operations/find.rb +20 -0
- data/lib/ledger_sync/xero/contact/operations/update.rb +20 -0
- data/lib/ledger_sync/xero/contact/serializer.rb +14 -0
- data/lib/ledger_sync/xero/deserializer.rb +8 -0
- data/lib/ledger_sync/xero/oauth_client.rb +100 -0
- data/lib/ledger_sync/xero/operation.rb +57 -0
- data/lib/ledger_sync/xero/operation/create.rb +26 -0
- data/lib/ledger_sync/xero/operation/find.rb +23 -0
- data/lib/ledger_sync/xero/operation/update.rb +26 -0
- data/lib/ledger_sync/xero/request.rb +57 -0
- data/lib/ledger_sync/xero/resource.rb +8 -0
- data/lib/ledger_sync/xero/resources/contact.rb +10 -0
- data/lib/ledger_sync/xero/serializer.rb +8 -0
- data/lib/ledger_sync/xero/version.rb +19 -0
- metadata +301 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module LedgerSync
|
4
|
+
module Xero
|
5
|
+
class Contact
|
6
|
+
module Operations
|
7
|
+
class Update < Xero::Operation::Update
|
8
|
+
class Contract < LedgerSync::Ledgers::Contract
|
9
|
+
params do
|
10
|
+
required(:external_id).filled(:string)
|
11
|
+
required(:ledger_id).filled(:string)
|
12
|
+
required(:Name).maybe(:string)
|
13
|
+
required(:EmailAddress).maybe(:string)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,100 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module LedgerSync
|
4
|
+
module Xero
|
5
|
+
class OAuthClient
|
6
|
+
AUTHORIZE_URL = 'https://login.xero.com/identity/connect/authorize'
|
7
|
+
RESPONSE_TYPE = 'code'
|
8
|
+
SITE_URL = 'https://api.xero.com/api.xro/2.0'
|
9
|
+
TOKEN_URL = 'https://identity.xero.com/connect/token'
|
10
|
+
SCOPE = %w[
|
11
|
+
offline_access
|
12
|
+
openid
|
13
|
+
profile
|
14
|
+
email
|
15
|
+
accounting.transactions
|
16
|
+
accounting.contacts
|
17
|
+
].freeze
|
18
|
+
|
19
|
+
class RedirectURIParser
|
20
|
+
attr_reader :uri
|
21
|
+
|
22
|
+
def initialize(uri:)
|
23
|
+
@uri = uri
|
24
|
+
end
|
25
|
+
|
26
|
+
def code
|
27
|
+
@code ||= query.fetch('code').first
|
28
|
+
end
|
29
|
+
|
30
|
+
def parsed_uri
|
31
|
+
@parsed_uri = URI.parse(uri)
|
32
|
+
end
|
33
|
+
|
34
|
+
def query
|
35
|
+
@query ||= CGI.parse(parsed_uri.query)
|
36
|
+
end
|
37
|
+
|
38
|
+
def realm_id
|
39
|
+
@realm_id ||= query.fetch('realmId').first
|
40
|
+
end
|
41
|
+
|
42
|
+
def redirect_uri
|
43
|
+
@redirect_uri ||= begin
|
44
|
+
use_uri = parsed_uri.dup
|
45
|
+
use_uri.fragment = nil
|
46
|
+
use_uri.query = nil
|
47
|
+
ret = use_uri.to_s
|
48
|
+
ret = ret[0..-2] if ret.end_with?('/')
|
49
|
+
ret
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
attr_reader :client_id,
|
55
|
+
:client_secret
|
56
|
+
|
57
|
+
def initialize(client_id:, client_secret:)
|
58
|
+
@client_id = client_id
|
59
|
+
@client_secret = client_secret
|
60
|
+
end
|
61
|
+
|
62
|
+
def authorization_url(redirect_uri:)
|
63
|
+
client.auth_code.authorize_url(
|
64
|
+
redirect_uri: redirect_uri,
|
65
|
+
response_type: RESPONSE_TYPE,
|
66
|
+
state: SecureRandom.hex(12),
|
67
|
+
scope: SCOPE.join(' ')
|
68
|
+
)
|
69
|
+
end
|
70
|
+
|
71
|
+
def auth_code
|
72
|
+
client.auth_code
|
73
|
+
end
|
74
|
+
|
75
|
+
def client
|
76
|
+
@client ||= OAuth2::Client.new(
|
77
|
+
client_id,
|
78
|
+
client_secret,
|
79
|
+
authorize_url: AUTHORIZE_URL,
|
80
|
+
site: SITE_URL,
|
81
|
+
token_url: TOKEN_URL
|
82
|
+
)
|
83
|
+
end
|
84
|
+
|
85
|
+
def get_token(code:, redirect_uri:)
|
86
|
+
auth_code.get_token(
|
87
|
+
code,
|
88
|
+
redirect_uri: redirect_uri
|
89
|
+
)
|
90
|
+
end
|
91
|
+
|
92
|
+
def self.new_from_env
|
93
|
+
new(
|
94
|
+
client_id: ENV.fetch('XERO_CLIENT_ID'),
|
95
|
+
client_secret: ENV.fetch('XERO_CLIENT_SECRET')
|
96
|
+
)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module LedgerSync
|
4
|
+
module Xero
|
5
|
+
class Operation
|
6
|
+
module Mixin
|
7
|
+
def self.included(base)
|
8
|
+
base.include Ledgers::Operation::Mixin
|
9
|
+
base.include InstanceMethods # To ensure these override parent methods
|
10
|
+
end
|
11
|
+
|
12
|
+
module InstanceMethods
|
13
|
+
def deserialized_resource(response:)
|
14
|
+
deserializer.deserialize(
|
15
|
+
hash: response,
|
16
|
+
resource: resource
|
17
|
+
)
|
18
|
+
end
|
19
|
+
|
20
|
+
def ledger_resource_path
|
21
|
+
@ledger_resource_path ||= "#{ledger_resource_type_for_path}/#{resource.ledger_id}"
|
22
|
+
end
|
23
|
+
|
24
|
+
def ledger_resource_type_for_path
|
25
|
+
Util::StringHelpers.camelcase(xero_resource_type.pluralize)
|
26
|
+
end
|
27
|
+
|
28
|
+
def response_to_operation_result(response:)
|
29
|
+
if response.success?
|
30
|
+
success(
|
31
|
+
resource: deserialized_resource(
|
32
|
+
response: response.body[ledger_resource_type_for_path.to_s.capitalize]&.first
|
33
|
+
),
|
34
|
+
response: response
|
35
|
+
)
|
36
|
+
else
|
37
|
+
failure
|
38
|
+
# TODO: implement failure handler
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
def perform
|
43
|
+
super
|
44
|
+
rescue LedgerSync::Error::OperationError, OAuth2::Error => e
|
45
|
+
failure(e)
|
46
|
+
ensure
|
47
|
+
client.update_secrets_in_dotenv
|
48
|
+
end
|
49
|
+
|
50
|
+
def xero_resource_type
|
51
|
+
@xero_resource_type ||= client.class.ledger_resource_type_for(resource_class: resource.class)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative '../operation'
|
4
|
+
|
5
|
+
module LedgerSync
|
6
|
+
module Xero
|
7
|
+
class Operation
|
8
|
+
class Create
|
9
|
+
include Xero::Operation::Mixin
|
10
|
+
|
11
|
+
private
|
12
|
+
|
13
|
+
def operate
|
14
|
+
response_to_operation_result(
|
15
|
+
response: client.post(
|
16
|
+
path: ledger_resource_type_for_path,
|
17
|
+
payload: [
|
18
|
+
serializer.serialize(resource: resource)
|
19
|
+
]
|
20
|
+
)
|
21
|
+
)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative '../operation'
|
4
|
+
|
5
|
+
module LedgerSync
|
6
|
+
module Xero
|
7
|
+
class Operation
|
8
|
+
class Find
|
9
|
+
include Xero::Operation::Mixin
|
10
|
+
|
11
|
+
private
|
12
|
+
|
13
|
+
def operate
|
14
|
+
response_to_operation_result(
|
15
|
+
response: client.find(
|
16
|
+
path: ledger_resource_path
|
17
|
+
)
|
18
|
+
)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative '../operation'
|
4
|
+
|
5
|
+
module LedgerSync
|
6
|
+
module Xero
|
7
|
+
class Operation
|
8
|
+
class Update
|
9
|
+
include Xero::Operation::Mixin
|
10
|
+
|
11
|
+
private
|
12
|
+
|
13
|
+
def operate
|
14
|
+
response_to_operation_result(
|
15
|
+
response: client.post(
|
16
|
+
path: ledger_resource_type_for_path,
|
17
|
+
payload: [
|
18
|
+
serializer.serialize(resource: resource)
|
19
|
+
]
|
20
|
+
)
|
21
|
+
)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module LedgerSync
|
4
|
+
module Xero
|
5
|
+
class Request < Ledgers::Request
|
6
|
+
attr_reader :client
|
7
|
+
|
8
|
+
def initialize(*args, client:, **keywords)
|
9
|
+
@client = client
|
10
|
+
super(*args, **keywords)
|
11
|
+
end
|
12
|
+
|
13
|
+
def perform
|
14
|
+
raise 'Request already performed' if performed?
|
15
|
+
|
16
|
+
@response = generate_response(
|
17
|
+
body: body,
|
18
|
+
headers: headers,
|
19
|
+
method: method,
|
20
|
+
url: url
|
21
|
+
)
|
22
|
+
ensure
|
23
|
+
@performed = true
|
24
|
+
end
|
25
|
+
|
26
|
+
def refresh!
|
27
|
+
oauth.refresh!
|
28
|
+
rescue OAuth2::Error => e
|
29
|
+
raise e # parse_error(error: e)
|
30
|
+
end
|
31
|
+
|
32
|
+
private
|
33
|
+
|
34
|
+
def generate_response(body:, headers:, method:, url:)
|
35
|
+
oauth_response = oauth.send(
|
36
|
+
method,
|
37
|
+
url,
|
38
|
+
body: (body.to_json unless body.nil?),
|
39
|
+
headers: headers
|
40
|
+
)
|
41
|
+
|
42
|
+
LedgerSync::Ledgers::Response.new_from_oauth_response(
|
43
|
+
oauth_response: oauth_response,
|
44
|
+
request: self
|
45
|
+
)
|
46
|
+
end
|
47
|
+
|
48
|
+
def oauth
|
49
|
+
client.oauth
|
50
|
+
end
|
51
|
+
|
52
|
+
def oauth_client
|
53
|
+
client.oauth_client
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# :nocov:
|
4
|
+
module LedgerSync
|
5
|
+
module Xero
|
6
|
+
VERSION = '0.1.0'
|
7
|
+
|
8
|
+
def self.version(args = {})
|
9
|
+
pre = args.fetch(:pre, false)
|
10
|
+
|
11
|
+
if !pre && (!ENV['TRAVIS'] || ENV.fetch('TRAVIS_TAG', '') != '')
|
12
|
+
VERSION
|
13
|
+
else
|
14
|
+
"#{VERSION}.pre.#{ENV['TRAVIS_BUILD_NUMBER']}"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
# :nocov:
|
metadata
ADDED
@@ -0,0 +1,301 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ledger_sync-xero
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Modern Treasury
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-11-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: awesome_print
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bump
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.9.0
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.9.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.1'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.1'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: byebug
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: climate_control
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: coveralls
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.8.23
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.8.23
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: factory_bot
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 6.1.0
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 6.1.0
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: overcommit
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.57.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.57.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rake
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '13.0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '13.0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rspec
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '3.2'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '3.2'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rubocop
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: webmock
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: dotenv
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: ledger_sync
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :runtime
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: nokogiri
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :runtime
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: oauth2
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ">="
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :runtime
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ">="
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
description: LedgerSync is a simple library that allows you to sync common objects
|
238
|
+
to popular accounting software like QuickBooks Online, Xero, NetSuite, etc.
|
239
|
+
email:
|
240
|
+
- ledgersync@moderntreasury.com
|
241
|
+
executables: []
|
242
|
+
extensions: []
|
243
|
+
extra_rdoc_files: []
|
244
|
+
files:
|
245
|
+
- ".coveralls.yml"
|
246
|
+
- ".env.test"
|
247
|
+
- ".gitignore"
|
248
|
+
- ".overcommit.yml"
|
249
|
+
- ".rubocop.yml"
|
250
|
+
- ".rubocop_todo.yml"
|
251
|
+
- ".travis.yml"
|
252
|
+
- Gemfile
|
253
|
+
- Gemfile.lock
|
254
|
+
- README.md
|
255
|
+
- Rakefile
|
256
|
+
- bin/console
|
257
|
+
- bin/setup
|
258
|
+
- bin/xero_oauth_server.rb
|
259
|
+
- ledger_sync-xero.gemspec
|
260
|
+
- lib/ledger_sync/xero.rb
|
261
|
+
- lib/ledger_sync/xero/client.rb
|
262
|
+
- lib/ledger_sync/xero/config.rb
|
263
|
+
- lib/ledger_sync/xero/contact/deserializer.rb
|
264
|
+
- lib/ledger_sync/xero/contact/operations/create.rb
|
265
|
+
- lib/ledger_sync/xero/contact/operations/find.rb
|
266
|
+
- lib/ledger_sync/xero/contact/operations/update.rb
|
267
|
+
- lib/ledger_sync/xero/contact/serializer.rb
|
268
|
+
- lib/ledger_sync/xero/deserializer.rb
|
269
|
+
- lib/ledger_sync/xero/oauth_client.rb
|
270
|
+
- lib/ledger_sync/xero/operation.rb
|
271
|
+
- lib/ledger_sync/xero/operation/create.rb
|
272
|
+
- lib/ledger_sync/xero/operation/find.rb
|
273
|
+
- lib/ledger_sync/xero/operation/update.rb
|
274
|
+
- lib/ledger_sync/xero/request.rb
|
275
|
+
- lib/ledger_sync/xero/resource.rb
|
276
|
+
- lib/ledger_sync/xero/resources/contact.rb
|
277
|
+
- lib/ledger_sync/xero/serializer.rb
|
278
|
+
- lib/ledger_sync/xero/version.rb
|
279
|
+
homepage: https://www.ledgersync.dev
|
280
|
+
licenses: []
|
281
|
+
metadata: {}
|
282
|
+
post_install_message:
|
283
|
+
rdoc_options: []
|
284
|
+
require_paths:
|
285
|
+
- lib
|
286
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
287
|
+
requirements:
|
288
|
+
- - ">="
|
289
|
+
- !ruby/object:Gem::Version
|
290
|
+
version: 2.5.8
|
291
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
292
|
+
requirements:
|
293
|
+
- - ">="
|
294
|
+
- !ruby/object:Gem::Version
|
295
|
+
version: '0'
|
296
|
+
requirements: []
|
297
|
+
rubygems_version: 3.0.3
|
298
|
+
signing_key:
|
299
|
+
specification_version: 4
|
300
|
+
summary: Sync common objects to accounting software.
|
301
|
+
test_files: []
|