fastbound-ruby 1.1.0 → 1.1.1

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: f29a89f9718d0d0f6f417247ea7979fb5ec031114dd716cc6b2225dd65f7866e
4
- data.tar.gz: 61e1274520ce593d2fe894c7c3143baf15c59ceaf7bcc927348456011ae39495
3
+ metadata.gz: 5636145d94a788e369f51bd5c3118b9858eec7815c91460f91258bde3736cf0b
4
+ data.tar.gz: '01187f1976e1658b14d38c2831c1a2d3635ad431f7e55818556ad1c4c9fc99ce'
5
5
  SHA512:
6
- metadata.gz: 11c243758896042924301540e8abc880719d6369a0919cbd2a5bfe239c31746452fb5b91407ea2c831fbdf97391982e482392f82f520581fcb06941f582fa2af
7
- data.tar.gz: dfe273aea728edb15d3f090aa91baab9544dcd1a50a20b763598a7e9cfe88b731f85c850a275dad24aaa6ab6a6e90808b7c397c4d3280e8b5b86b4f91f06cd70
6
+ metadata.gz: cfbcbd5aa9a90c184b7bcda0bc5051eb3da82da5ebbf6d4c3af268e52b8fa74e8d0ac771b949eb93e5b0c084cd0f99b22deb88525a5d6ac7b4bd99b69f256d51
7
+ data.tar.gz: e4b762a8f4deb99b58a638ecdb3a1b79426cd6bf40fcae3f9862d5dab1d057d3e5e1757dbd7dcdbae8b97a525b477a132393fc1152775950673526e5820d508d
@@ -40,7 +40,7 @@ module FastBound
40
40
  end
41
41
 
42
42
  def create(acquisition_data)
43
- requires!(acquisition_data, CREATE_AND_EDIT_ATTRS[:required])
43
+ requires!(acquisition_data, *CREATE_AND_EDIT_ATTRS[:required])
44
44
 
45
45
  endpoint = ENDPOINTS[:create]
46
46
  acquisition_data = standardize_body_data(acquisition_data, CREATE_AND_EDIT_ATTRS[:permitted])
@@ -80,9 +80,9 @@ module FastBound
80
80
  end
81
81
 
82
82
  def create_and_commit(acquisition_data, item_data, contact_data)
83
- requires!(acquisition_data, CREATE_AND_EDIT_ATTRS[:required])
84
- requires!(item_data, Item::CREATE_AND_EDIT_ATTRS[:required])
85
- requires!(contact_data, Contact::CREATE_AND_EDIT_ATTRS[:required])
83
+ requires!(acquisition_data, *CREATE_AND_EDIT_ATTRS[:required])
84
+ requires!(item_data, *Item::CREATE_AND_EDIT_ATTRS[:required])
85
+ requires!(contact_data, *Contact::CREATE_AND_EDIT_ATTRS[:required])
86
86
 
87
87
  endpoint = ENDPOINTS[:create_and_commit]
88
88
  acquisition_data = standardize_body_data(acquisition_data, CREATE_AND_EDIT_ATTRS[:permitted])
@@ -97,7 +97,7 @@ module FastBound
97
97
  end
98
98
 
99
99
  def create_item(acquisition_id, item_data)
100
- requires!(item_data, Item::CREATE_AND_EDIT_ATTRS[:required])
100
+ requires!(item_data, *Item::CREATE_AND_EDIT_ATTRS[:required])
101
101
 
102
102
  endpoint = ENDPOINTS[:create_item] % acquisition_id
103
103
  item_data = standardize_body_data(item_data, Item::CREATE_AND_EDIT_ATTRS[:permitted])
@@ -49,7 +49,7 @@ module FastBound
49
49
  end
50
50
 
51
51
  def create(contact_data)
52
- requires!(contact_data, CREATE_AND_EDIT_ATTRS[:required])
52
+ requires!(contact_data, *CREATE_AND_EDIT_ATTRS[:required])
53
53
 
54
54
  endpoint = ENDPOINTS[:create]
55
55
  contact_data = standardize_body_data(contact_data, CREATE_AND_EDIT_ATTRS[:permitted])
@@ -83,7 +83,7 @@ module FastBound
83
83
  end
84
84
 
85
85
  def merge(merge_data)
86
- requires!(merge_data, MERGE_ATTRS[:required])
86
+ requires!(merge_data, *MERGE_ATTRS[:required])
87
87
 
88
88
  endpoint = ENDPOINTS[:merge]
89
89
  merge_data = standardize_body_data(merge_data, MERGE_ATTRS[:permitted])
@@ -92,7 +92,7 @@ module FastBound
92
92
  end
93
93
 
94
94
  def create_license(contact_id, license_data)
95
- requires!(license_data, CREATE_AND_EDIT_LICENSE_ATTRS[:required])
95
+ requires!(license_data, *CREATE_AND_EDIT_LICENSE_ATTRS[:required])
96
96
 
97
97
  endpoint = ENDPOINTS[:create_license] % contact_id
98
98
  license_data = standardize_body_data(license_data, CREATE_AND_EDIT_LICENSE_ATTRS[:permitted])
@@ -89,7 +89,7 @@ module FastBound
89
89
  end
90
90
 
91
91
  def create(disposition_data)
92
- requires!(disposition_data, CREATE_ATTRS[:required])
92
+ requires!(disposition_data, *CREATE_ATTRS[:required])
93
93
 
94
94
  endpoint = ENDPOINTS[:create]
95
95
  disposition_data = standardize_body_data(disposition_data, CREATE_ATTRS[:permitted])
@@ -98,7 +98,7 @@ module FastBound
98
98
  end
99
99
 
100
100
  def create_as_nfa(disposition_data)
101
- requires!(disposition_data, CREATE_AS_NFA_ATTRS[:required])
101
+ requires!(disposition_data, *CREATE_AS_NFA_ATTRS[:required])
102
102
 
103
103
  endpoint = ENDPOINTS[:create_as_nfa]
104
104
  disposition_data = standardize_body_data(disposition_data, CREATE_AS_NFA_ATTRS[:permitted])
@@ -153,7 +153,7 @@ module FastBound
153
153
  end
154
154
 
155
155
  def create_and_commit(disposition_data, items_data, contact_data, commit_data = {})
156
- requires!(contact_data, Contact::CREATE_AND_EDIT_ATTRS[:required])
156
+ requires!(contact_data, *Contact::CREATE_AND_EDIT_ATTRS[:required])
157
157
  items_data.each { |item| requires!(item, :id) }
158
158
 
159
159
  endpoint = ENDPOINTS[:create_and_commit]
@@ -1,3 +1,3 @@
1
1
  module FastBound
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -23,7 +23,7 @@ module FastBound
23
23
  end
24
24
 
25
25
  def create(webhook_data)
26
- requires!(webhook_data, CREATE_AND_EDIT_ATTRS[:required])
26
+ requires!(webhook_data, *CREATE_AND_EDIT_ATTRS[:required])
27
27
 
28
28
  endpoint = ENDPOINTS[:create]
29
29
  webhook_data = standardize_body_data(webhook_data, CREATE_AND_EDIT_ATTRS[:permitted])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastbound-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeffrey Dill