billingrails 0.1.7 → 0.1.8
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.
- checksums.yaml +4 -4
- data/lib/billingrails/resources/prices.rb +11 -0
- data/lib/billingrails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b163cdaba3caa00eb32e7e09d0ecea420ebf18bcd5499466ea873a2803f24b79
|
|
4
|
+
data.tar.gz: 70d8f674ffc3bd465ea7a2f7916b1d0c3ced0e454afc7bb55cb6d9bb1c068796
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7df5ee2942b22185f8d9d8044508a836dbd3b231026edd3d0fa58ccf68325559ef21b0f1542be2404dcf86d519ef537ebb2163dbffe9e486f520e65602bf87ec
|
|
7
|
+
data.tar.gz: 76780c9e9a53d1645884a6c2c1b1a6882e33917950b7e6351ec569388325d01ca666aea0cfcca2b4a23e97f607969dcb60ae780492f26642d718f2ecdcb48ad4
|
|
@@ -90,6 +90,17 @@ module Billingrails
|
|
|
90
90
|
@client.request(:post, path)
|
|
91
91
|
end
|
|
92
92
|
|
|
93
|
+
# Duplicate a price
|
|
94
|
+
#
|
|
95
|
+
# Creates a new price with the same configuration as an existing product or fee price.
|
|
96
|
+
#
|
|
97
|
+
# @param id [String] Resource ID
|
|
98
|
+
# @return [Hash] Response data
|
|
99
|
+
def duplicate(id)
|
|
100
|
+
path = "/prices/#{id}/duplicate"
|
|
101
|
+
@client.request(:post, path)
|
|
102
|
+
end
|
|
103
|
+
|
|
93
104
|
end
|
|
94
105
|
end
|
|
95
106
|
end
|
data/lib/billingrails/version.rb
CHANGED