paypal-sdk-invoice 1.96.2 → 1.100.0
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 +8 -8
- data/lib/paypal-sdk/invoice/data_types.rb +24 -1
- data/lib/paypal-sdk/invoice/services.rb +20 -1
- data/lib/paypal-sdk/invoice/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTM3OTE1ZWI5ODk3NTgyZmIyNzk3ODg4OTEwNDE4MmU2MDUxMDEzNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjhiODYzNjc0OTMzZDVlZWE1NThiMmE1N2JlN2ZjNWMwYzAyNWFlYg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTBmMjcyOTQ1OWQzMjAyNmE2NWEyNjYwZmVlOGNjOTE4NmRlYTg2OTU0Mzdj
|
10
|
+
ZGY1MjZmMGNmYzQwMTAzNDQ4MjUwYjUxOTZhMmUxN2U2MDM0YWJmOTM2YTg4
|
11
|
+
YmRhMDE0Y2QwNjkyNDg4NjgyNmIyMmU3MjFhMmI3OWE2YmVmNGY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTVmMzk2MzA0MDg1MjI1MDNkZThiMGE5ZWY1ZmQzNzJiNzFmNzZlYTAxNTE2
|
14
|
+
ODkzODMzNTdjNjhkNmQ3ZjQ5MGMwMDc1NTc1N2Y0ZDU1OGZkMThhYTAwMGNh
|
15
|
+
YTY5MzcxNTVlNmFlN2U5OTU4OTM5NDZjMGIzZDIwYjU3MTk3OTk=
|
@@ -72,7 +72,7 @@ module PayPal::SDK
|
|
72
72
|
# This specifies the required detail level that is needed by a client application pertaining to a particular data component (e.g., Item, Transaction, etc.). The detail level is specified in the DetailLevelCodeType which has all the enumerated values of the detail level for each component.
|
73
73
|
object_of :detailLevel, DetailLevelCode
|
74
74
|
# This should be the standard RFC 3066 language identification tag, e.g., en_US.
|
75
|
-
object_of :errorLanguage, String
|
75
|
+
object_of :errorLanguage, String
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
@@ -238,6 +238,8 @@ module PayPal::SDK
|
|
238
238
|
object_of :note, String
|
239
239
|
# Memo for book keeping that is private to the Merchant.
|
240
240
|
object_of :merchantMemo, String
|
241
|
+
# Details of the receipt. Applicable only when invoice is a receipt.
|
242
|
+
object_of :receiptDetails, String
|
241
243
|
# Billing information for the payer.
|
242
244
|
object_of :billingInfo, BusinessInfoType
|
243
245
|
# Shipping information for the payer.
|
@@ -772,6 +774,27 @@ module PayPal::SDK
|
|
772
774
|
|
773
775
|
|
774
776
|
|
777
|
+
# The request object for DeleteInvoice.
|
778
|
+
class DeleteInvoiceRequest < DataType
|
779
|
+
def self.load_members
|
780
|
+
object_of :requestEnvelope, RequestEnvelope, :required => true
|
781
|
+
# ID of the invoice to be deleted.
|
782
|
+
object_of :invoiceID, String, :required => true
|
783
|
+
end
|
784
|
+
end
|
785
|
+
|
786
|
+
|
787
|
+
|
788
|
+
# The response object for DeleteInvoice.
|
789
|
+
class DeleteInvoiceResponse < DataType
|
790
|
+
def self.load_members
|
791
|
+
object_of :responseEnvelope, ResponseEnvelope, :required => true
|
792
|
+
array_of :error, ErrorData
|
793
|
+
end
|
794
|
+
end
|
795
|
+
|
796
|
+
|
797
|
+
|
775
798
|
|
776
799
|
|
777
800
|
constants.each do |data_type_klass|
|
@@ -5,7 +5,7 @@ module PayPal::SDK
|
|
5
5
|
module Invoice
|
6
6
|
|
7
7
|
# Service Version
|
8
|
-
SERVICE_VERSION = "1.
|
8
|
+
SERVICE_VERSION = "1.8.0"
|
9
9
|
# Service Name
|
10
10
|
SERVICE_NAME = "Invoice"
|
11
11
|
|
@@ -203,6 +203,25 @@ module PayPal::SDK
|
|
203
203
|
end
|
204
204
|
alias_method :build_mark_invoice_as_refunded, :BuildMarkInvoiceAsRefunded
|
205
205
|
|
206
|
+
# Service Call: DeleteInvoice
|
207
|
+
# @param DeleteInvoiceRequest
|
208
|
+
# @return DeleteInvoiceResponse
|
209
|
+
def DeleteInvoice(options = {} , http_header = {})
|
210
|
+
request_object = BuildDeleteInvoice(options)
|
211
|
+
request_hash = request_object.to_hash
|
212
|
+
response_hash = request("DeleteInvoice", request_hash, http_header)
|
213
|
+
DeleteInvoiceResponse.new(response_hash)
|
214
|
+
end
|
215
|
+
alias_method :delete_invoice, :DeleteInvoice
|
216
|
+
|
217
|
+
def BuildDeleteInvoice(options = {}, &block)
|
218
|
+
klass = DeleteInvoiceRequest
|
219
|
+
object = options.is_a?(klass) ? options : klass.new(options || {})
|
220
|
+
object.instance_eval(&block) if block
|
221
|
+
object
|
222
|
+
end
|
223
|
+
alias_method :build_delete_invoice, :BuildDeleteInvoice
|
224
|
+
|
206
225
|
|
207
226
|
end
|
208
227
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paypal-sdk-invoice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.100.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PayPal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-03-
|
11
|
+
date: 2013-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: paypal-sdk-core
|