infusionsoft 1.0.8 → 1.0.9b

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -28,7 +28,7 @@ All previous versions will need to update their calls to follow the new schema
28
28
  Infusionsoft.data_load('Contact', contact_id, [:FirstName, :LastName])
29
29
 
30
30
  # Update a contact with specific field values
31
- Infusionsoft.contact_upudate(contact_id, { :FirstName => 'first_name', :Email => 'test@test.com' })
31
+ Infusionsoft.contact_update(contact_id, { :FirstName => 'first_name', :Email => 'test@test.com' })
32
32
 
33
33
  # Add a new Contact
34
34
  Infusionsoft.contact_add({:FirstName => 'first_name', :LastName => 'last_name', :Email => 'test@test.com'})
@@ -0,0 +1,20 @@
1
+ module Infusionsoft
2
+ class Client
3
+ # CreditCardSubmission service is used to obtain a token that is to be submitted
4
+ # through a form when adding a credit card. In accordance with PCI compliance,
5
+ # adding credit cards through the API will no longer be supported.
6
+ module CreditCard
7
+
8
+ # This service will request a token that will be used when submitting
9
+ # a new credit card through a form
10
+ #
11
+ # @param [Integer] contact_id of the Infusionsoft contact
12
+ # @param [String] url that will be redirected to upon successfully adding card
13
+ # @param [String] url that will be redirected to when there is a failure upon adding card
14
+ def credit_card_request_token(contact_id, success_url, failure_url)
15
+ response = get('CreditCardSubmissionService', contact_id, success_url, failure_url)
16
+ end
17
+
18
+ end
19
+ end
20
+ end
@@ -2,24 +2,24 @@ module Infusionsoft
2
2
  class Client
3
3
  module File
4
4
  def file_upload(contact_id, file_name, encoded_file_base64)
5
- response = get('FileService', 'uploadFile', contact_id, file_name, encoded_file_base64)
5
+ response = get('FileService.uploadFile', contact_id, file_name, encoded_file_base64)
6
6
  end
7
7
 
8
8
  # returns the Base64 encoded file contents
9
9
  def file_get(id)
10
- response = get('FileService', 'getFile', id)
10
+ response = get('FileService.getFile', id)
11
11
  end
12
12
 
13
13
  def file_url(id)
14
- response = get('FileService', 'getDownloadUrl', id)
14
+ response = get('FileService.getDownloadUrl', id)
15
15
  end
16
16
 
17
17
  def file_rename(id, new_name)
18
- response = get('FileService', 'renameFile', id, new_name)
18
+ response = get('FileService.renameFile', id, new_name)
19
19
  end
20
20
 
21
21
  def file_replace(id, encoded_file_base64)
22
- response = get('FileService', 'replaceFile', id, encoded_file_base64)
22
+ response = get('FileService.replaceFile', id, encoded_file_base64)
23
23
  end
24
24
  end
25
25
  end
@@ -4,13 +4,13 @@ module Infusionsoft
4
4
  # add move notes to existing tickets
5
5
  def ticket_add_move_notes(ticket_list, move_notes,
6
6
  move_to_stage_id, notify_ids)
7
- response = get('ServiceCallService', 'addMoveNotes', ticket_list,
7
+ response = get('ServiceCallService.addMoveNotes', ticket_list,
8
8
  move_notes, move_to_stage_id, notify_ids)
9
9
  end
10
10
 
11
11
  # add move notes to existing tickets
12
12
  def ticket_move_stage(ticket_id, ticket_stage, move_notes, notify_ids)
13
- response = get('ServiceCallService', 'moveTicketStage',
13
+ response = get('ServiceCallService.moveTicketStage',
14
14
  ticket_id, ticket_stage, move_notes, notify_ids)
15
15
  end
16
16
  end
@@ -1,4 +1,4 @@
1
1
  module Infusionsoft
2
2
  # The version of the gem
3
- VERSION = '1.0.8'.freeze unless defined?(::Infusionsoft::VERSION)
3
+ VERSION = '1.0.9b'.freeze unless defined?(::Infusionsoft::VERSION)
4
4
  end
metadata CHANGED
@@ -1,34 +1,23 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: infusionsoft
3
- version: !ruby/object:Gem::Version
4
- hash: 7
5
- prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 8
10
- version: 1.0.8
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.9b
5
+ prerelease: 5
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Nathan Leavitt
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-11-28 00:00:00 -07:00
19
- default_executable:
12
+ date: 2012-05-14 00:00:00.000000000 Z
20
13
  dependencies: []
21
-
22
14
  description: A Ruby wrapper written for the Infusionsoft API
23
- email:
15
+ email:
24
16
  - nate@infusedsystems.com
25
17
  executables: []
26
-
27
18
  extensions: []
28
-
29
19
  extra_rdoc_files: []
30
-
31
- files:
20
+ files:
32
21
  - .gitignore
33
22
  - LICENSE.md
34
23
  - README.md
@@ -38,6 +27,7 @@ files:
38
27
  - lib/infusionsoft/client.rb
39
28
  - lib/infusionsoft/client/affiliate.rb
40
29
  - lib/infusionsoft/client/contact.rb
30
+ - lib/infusionsoft/client/credit_card.rb
41
31
  - lib/infusionsoft/client/data.rb
42
32
  - lib/infusionsoft/client/email.rb
43
33
  - lib/infusionsoft/client/file.rb
@@ -50,41 +40,28 @@ files:
50
40
  - lib/infusionsoft/request.rb
51
41
  - lib/infusionsoft/version.rb
52
42
  - test/api_infusion_test.rb
53
- has_rdoc: true
54
43
  homepage: https://github.com/nateleavitt/infusionsoft
55
44
  licenses: []
56
-
57
45
  post_install_message:
58
46
  rdoc_options: []
59
-
60
- require_paths:
47
+ require_paths:
61
48
  - lib
62
- required_ruby_version: !ruby/object:Gem::Requirement
49
+ required_ruby_version: !ruby/object:Gem::Requirement
63
50
  none: false
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- hash: 3
68
- segments:
69
- - 0
70
- version: "0"
71
- required_rubygems_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
56
  none: false
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- hash: 23
77
- segments:
78
- - 1
79
- - 3
80
- - 6
81
- version: 1.3.6
57
+ requirements:
58
+ - - ! '>'
59
+ - !ruby/object:Gem::Version
60
+ version: 1.3.1
82
61
  requirements: []
83
-
84
62
  rubyforge_project:
85
- rubygems_version: 1.5.0
63
+ rubygems_version: 1.8.15
86
64
  signing_key:
87
65
  specification_version: 3
88
66
  summary: Ruby wrapper for the Infusionsoft API
89
67
  test_files: []
90
-