aws-sdk-invoicing 1.13.0 → 1.15.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54f2bef226a2480e49a244f08aa03e27afc2c7c5e49733568fab94533b4a429f
4
- data.tar.gz: d4a6ab5b4e13ed83a1f1c1bea5f748f017dff874353d0d02a56d15017235e4dd
3
+ metadata.gz: 3fbdf832bfa5b930cb0d429d120e6adb4e4c0692cc8c0909e109abdfe9235f12
4
+ data.tar.gz: 63f05397151382d78cb91c2314de338b19cff7f782362b40f5ffc3befbb13b7c
5
5
  SHA512:
6
- metadata.gz: 9836e437bce8b5a53a0a0f20010b92951ddee35f079d3d302c74a231ee00b047513c3117d5ce7c3076e9b83248ba8e3a91af700d2b62d7e83a36436acfda5e12
7
- data.tar.gz: 8de86583baa7f68588174fc53f2a381e49266b2546fb69ebd2077621c3a4dac0b06b0c2b5134dce7bce3ac0ec12e071ce1230ee8908b18cc99ccff05437e61f0
6
+ metadata.gz: fe3299ad1045376db3d8f7f5dd602a615415ef931efe66ca5f66fef668d6c67f5eedf1fa13fc01aec93ab8aef94667f8f337e1e2a8edcb28a9a86a89379e114e
7
+ data.tar.gz: 56732ea0b21e86744f9d538860e36e6dc0a2c5eb790ffabd6721aa55d1536797c64e025b3eabebb4ce6d83488dd928204440325abd1cb7a7eec2afe8726ac6e3
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.15.0 (2025-11-10)
5
+ ------------------
6
+
7
+ * Feature - Added new invoicing get-invoice-pdf API Operation
8
+
9
+ 1.14.0 (2025-10-27)
10
+ ------------------
11
+
12
+ * Feature - Update endpoint ruleset parameters casing
13
+
4
14
  1.13.0 (2025-10-21)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.13.0
1
+ 1.15.0
@@ -683,6 +683,85 @@ module Aws::Invoicing
683
683
  req.send_request(options)
684
684
  end
685
685
 
686
+ # Returns a URL to download the invoice document and supplemental
687
+ # documents associated with an invoice. The URLs are pre-signed and have
688
+ # expiration time. For special cases like Brazil, where Amazon Web
689
+ # Services generated invoice identifiers and government provided
690
+ # identifiers do not match, use the Amazon Web Services generated
691
+ # invoice identifier when making API requests. To grant IAM permission
692
+ # to use this operation, the caller needs the `invoicing:GetInvoicePDF`
693
+ # policy action.
694
+ #
695
+ # @option params [required, String] :invoice_id
696
+ # Your unique invoice ID.
697
+ #
698
+ # @return [Types::GetInvoicePDFResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
699
+ #
700
+ # * {Types::GetInvoicePDFResponse#invoice_pdf #invoice_pdf} => Types::InvoicePDF
701
+ #
702
+ #
703
+ # @example Example: GetInvoicePDF without supplemental documents
704
+ #
705
+ # resp = client.get_invoice_pdf({
706
+ # invoice_id: "abc123",
707
+ # })
708
+ #
709
+ # resp.to_h outputs the following:
710
+ # {
711
+ # invoice_pdf: {
712
+ # document_url: "https://abcd123.com?securityTokenForDoc",
713
+ # document_url_expiration_date: Time.parse("2025-04-01T01:00:00.000Z"),
714
+ # invoice_id: "abc123",
715
+ # supplemental_documents: [
716
+ # ],
717
+ # },
718
+ # }
719
+ #
720
+ # @example Example: GetInvoicePDF with supplemental documents
721
+ #
722
+ # resp = client.get_invoice_pdf({
723
+ # invoice_id: "abc123",
724
+ # })
725
+ #
726
+ # resp.to_h outputs the following:
727
+ # {
728
+ # invoice_pdf: {
729
+ # document_url: "https://abcd123.com?securityTokenForDoc",
730
+ # document_url_expiration_date: Time.parse("2025-04-01T01:00:00.000Z"),
731
+ # invoice_id: "abc123",
732
+ # supplemental_documents: [
733
+ # {
734
+ # document_url: "https://abcd123.com?securityTokenForSupplementalDoc",
735
+ # document_url_expiration_date: Time.parse("2025-04-01T01:00:00.000Z"),
736
+ # },
737
+ # ],
738
+ # },
739
+ # }
740
+ #
741
+ # @example Request syntax with placeholder values
742
+ #
743
+ # resp = client.get_invoice_pdf({
744
+ # invoice_id: "StringWithoutNewLine", # required
745
+ # })
746
+ #
747
+ # @example Response structure
748
+ #
749
+ # resp.invoice_pdf.invoice_id #=> String
750
+ # resp.invoice_pdf.document_url #=> String
751
+ # resp.invoice_pdf.document_url_expiration_date #=> Time
752
+ # resp.invoice_pdf.supplemental_documents #=> Array
753
+ # resp.invoice_pdf.supplemental_documents[0].document_url #=> String
754
+ # resp.invoice_pdf.supplemental_documents[0].document_url_expiration_date #=> Time
755
+ #
756
+ # @see http://docs.aws.amazon.com/goto/WebAPI/invoicing-2024-12-01/GetInvoicePDF AWS API Documentation
757
+ #
758
+ # @overload get_invoice_pdf(params = {})
759
+ # @param [Hash] params ({})
760
+ def get_invoice_pdf(params = {}, options = {})
761
+ req = build_request(:get_invoice_pdf, params)
762
+ req.send_request(options)
763
+ end
764
+
686
765
  # This retrieves the invoice unit definition.
687
766
  #
688
767
  # @option params [required, String] :invoice_unit_arn
@@ -1834,7 +1913,7 @@ module Aws::Invoicing
1834
1913
  tracer: tracer
1835
1914
  )
1836
1915
  context[:gem_name] = 'aws-sdk-invoicing'
1837
- context[:gem_version] = '1.13.0'
1916
+ context[:gem_version] = '1.15.0'
1838
1917
  Seahorse::Client::Request.new(handlers, context)
1839
1918
  end
1840
1919
 
@@ -40,11 +40,14 @@ module Aws::Invoicing
40
40
  FeesBreakdownAmount = Shapes::StructureShape.new(name: 'FeesBreakdownAmount')
41
41
  FeesBreakdownAmountList = Shapes::ListShape.new(name: 'FeesBreakdownAmountList')
42
42
  Filters = Shapes::StructureShape.new(name: 'Filters')
43
+ GetInvoicePDFRequest = Shapes::StructureShape.new(name: 'GetInvoicePDFRequest')
44
+ GetInvoicePDFResponse = Shapes::StructureShape.new(name: 'GetInvoicePDFResponse')
43
45
  GetInvoiceUnitRequest = Shapes::StructureShape.new(name: 'GetInvoiceUnitRequest')
44
46
  GetInvoiceUnitResponse = Shapes::StructureShape.new(name: 'GetInvoiceUnitResponse')
45
47
  Integer = Shapes::IntegerShape.new(name: 'Integer')
46
48
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
47
49
  InvoiceCurrencyAmount = Shapes::StructureShape.new(name: 'InvoiceCurrencyAmount')
50
+ InvoicePDF = Shapes::StructureShape.new(name: 'InvoicePDF')
48
51
  InvoiceProfile = Shapes::StructureShape.new(name: 'InvoiceProfile')
49
52
  InvoiceSummaries = Shapes::ListShape.new(name: 'InvoiceSummaries')
50
53
  InvoiceSummariesFilter = Shapes::StructureShape.new(name: 'InvoiceSummariesFilter')
@@ -80,6 +83,8 @@ module Aws::Invoicing
80
83
  SensitiveBasicStringWithoutSpace = Shapes::StringShape.new(name: 'SensitiveBasicStringWithoutSpace')
81
84
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
82
85
  StringWithoutNewLine = Shapes::StringShape.new(name: 'StringWithoutNewLine')
86
+ SupplementalDocument = Shapes::StructureShape.new(name: 'SupplementalDocument')
87
+ SupplementalDocuments = Shapes::ListShape.new(name: 'SupplementalDocuments')
83
88
  TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
84
89
  TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
85
90
  TagrisArn = Shapes::StringShape.new(name: 'TagrisArn')
@@ -177,6 +182,12 @@ module Aws::Invoicing
177
182
  Filters.add_member(:accounts, Shapes::ShapeRef.new(shape: AccountIdList, location_name: "Accounts"))
178
183
  Filters.struct_class = Types::Filters
179
184
 
185
+ GetInvoicePDFRequest.add_member(:invoice_id, Shapes::ShapeRef.new(shape: StringWithoutNewLine, required: true, location_name: "InvoiceId"))
186
+ GetInvoicePDFRequest.struct_class = Types::GetInvoicePDFRequest
187
+
188
+ GetInvoicePDFResponse.add_member(:invoice_pdf, Shapes::ShapeRef.new(shape: InvoicePDF, location_name: "InvoicePDF"))
189
+ GetInvoicePDFResponse.struct_class = Types::GetInvoicePDFResponse
190
+
180
191
  GetInvoiceUnitRequest.add_member(:invoice_unit_arn, Shapes::ShapeRef.new(shape: InvoiceUnitArnString, required: true, location_name: "InvoiceUnitArn"))
181
192
  GetInvoiceUnitRequest.add_member(:as_of, Shapes::ShapeRef.new(shape: AsOfTimestamp, location_name: "AsOf"))
182
193
  GetInvoiceUnitRequest.struct_class = Types::GetInvoiceUnitRequest
@@ -201,6 +212,12 @@ module Aws::Invoicing
201
212
  InvoiceCurrencyAmount.add_member(:currency_exchange_details, Shapes::ShapeRef.new(shape: CurrencyExchangeDetails, location_name: "CurrencyExchangeDetails"))
202
213
  InvoiceCurrencyAmount.struct_class = Types::InvoiceCurrencyAmount
203
214
 
215
+ InvoicePDF.add_member(:invoice_id, Shapes::ShapeRef.new(shape: StringWithoutNewLine, location_name: "InvoiceId"))
216
+ InvoicePDF.add_member(:document_url, Shapes::ShapeRef.new(shape: StringWithoutNewLine, location_name: "DocumentUrl"))
217
+ InvoicePDF.add_member(:document_url_expiration_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "DocumentUrlExpirationDate"))
218
+ InvoicePDF.add_member(:supplemental_documents, Shapes::ShapeRef.new(shape: SupplementalDocuments, location_name: "SupplementalDocuments"))
219
+ InvoicePDF.struct_class = Types::InvoicePDF
220
+
204
221
  InvoiceProfile.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountIdString, location_name: "AccountId"))
205
222
  InvoiceProfile.add_member(:receiver_name, Shapes::ShapeRef.new(shape: BasicStringWithoutSpace, location_name: "ReceiverName"))
206
223
  InvoiceProfile.add_member(:receiver_address, Shapes::ShapeRef.new(shape: ReceiverAddress, location_name: "ReceiverAddress"))
@@ -304,6 +321,12 @@ module Aws::Invoicing
304
321
  ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: BasicString, required: true, location_name: "message"))
305
322
  ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
306
323
 
324
+ SupplementalDocument.add_member(:document_url, Shapes::ShapeRef.new(shape: StringWithoutNewLine, location_name: "DocumentUrl"))
325
+ SupplementalDocument.add_member(:document_url_expiration_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "DocumentUrlExpirationDate"))
326
+ SupplementalDocument.struct_class = Types::SupplementalDocument
327
+
328
+ SupplementalDocuments.member = Shapes::ShapeRef.new(shape: SupplementalDocument)
329
+
307
330
  TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: TagrisArn, required: true, location_name: "ResourceArn"))
308
331
  TagResourceRequest.add_member(:resource_tags, Shapes::ShapeRef.new(shape: ResourceTagList, required: true, location_name: "ResourceTags"))
309
332
  TagResourceRequest.struct_class = Types::TagResourceRequest
@@ -410,6 +433,19 @@ module Aws::Invoicing
410
433
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
411
434
  end)
412
435
 
436
+ api.add_operation(:get_invoice_pdf, Seahorse::Model::Operation.new.tap do |o|
437
+ o.name = "GetInvoicePDF"
438
+ o.http_method = "POST"
439
+ o.http_request_uri = "/"
440
+ o.input = Shapes::ShapeRef.new(shape: GetInvoicePDFRequest)
441
+ o.output = Shapes::ShapeRef.new(shape: GetInvoicePDFResponse)
442
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
443
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
444
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
445
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
446
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
447
+ end)
448
+
413
449
  api.add_operation(:get_invoice_unit, Seahorse::Model::Operation.new.tap do |o|
414
450
  o.name = "GetInvoiceUnit"
415
451
  o.http_method = "POST"
@@ -13,17 +13,17 @@ module Aws::Invoicing
13
13
  # @!attribute use_fips
14
14
  # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
15
15
  #
16
- # @return [Boolean]
16
+ # @return [boolean]
17
17
  #
18
18
  # @!attribute endpoint
19
19
  # Override the endpoint used to send this request
20
20
  #
21
- # @return [String]
21
+ # @return [string]
22
22
  #
23
23
  # @!attribute region
24
24
  # The AWS region used to dispatch the request.
25
25
  #
26
- # @return [String]
26
+ # @return [string]
27
27
  #
28
28
  EndpointParameters = Struct.new(
29
29
  :use_fips,
@@ -375,6 +375,31 @@ module Aws::Invoicing
375
375
  include Aws::Structure
376
376
  end
377
377
 
378
+ # @!attribute [rw] invoice_id
379
+ # Your unique invoice ID.
380
+ # @return [String]
381
+ #
382
+ # @see http://docs.aws.amazon.com/goto/WebAPI/invoicing-2024-12-01/GetInvoicePDFRequest AWS API Documentation
383
+ #
384
+ class GetInvoicePDFRequest < Struct.new(
385
+ :invoice_id)
386
+ SENSITIVE = []
387
+ include Aws::Structure
388
+ end
389
+
390
+ # @!attribute [rw] invoice_pdf
391
+ # The invoice document and supplemental documents associated with the
392
+ # invoice.
393
+ # @return [Types::InvoicePDF]
394
+ #
395
+ # @see http://docs.aws.amazon.com/goto/WebAPI/invoicing-2024-12-01/GetInvoicePDFResponse AWS API Documentation
396
+ #
397
+ class GetInvoicePDFResponse < Struct.new(
398
+ :invoice_pdf)
399
+ SENSITIVE = []
400
+ include Aws::Structure
401
+ end
402
+
378
403
  # @!attribute [rw] invoice_unit_arn
379
404
  # The ARN to identify an invoice unit. This information can't be
380
405
  # modified or deleted.
@@ -499,6 +524,35 @@ module Aws::Invoicing
499
524
  include Aws::Structure
500
525
  end
501
526
 
527
+ # Invoice document data.
528
+ #
529
+ # @!attribute [rw] invoice_id
530
+ # Your unique invoice ID.
531
+ # @return [String]
532
+ #
533
+ # @!attribute [rw] document_url
534
+ # The pre-signed URL to download the invoice document.
535
+ # @return [String]
536
+ #
537
+ # @!attribute [rw] document_url_expiration_date
538
+ # The pre-signed URL expiration date of the invoice document.
539
+ # @return [Time]
540
+ #
541
+ # @!attribute [rw] supplemental_documents
542
+ # List of supplemental documents associated with the invoice.
543
+ # @return [Array<Types::SupplementalDocument>]
544
+ #
545
+ # @see http://docs.aws.amazon.com/goto/WebAPI/invoicing-2024-12-01/InvoicePDF AWS API Documentation
546
+ #
547
+ class InvoicePDF < Struct.new(
548
+ :invoice_id,
549
+ :document_url,
550
+ :document_url_expiration_date,
551
+ :supplemental_documents)
552
+ SENSITIVE = []
553
+ include Aws::Structure
554
+ end
555
+
502
556
  # Contains high-level information about the invoice receiver.
503
557
  #
504
558
  # @!attribute [rw] account_id
@@ -955,6 +1009,25 @@ module Aws::Invoicing
955
1009
  include Aws::Structure
956
1010
  end
957
1011
 
1012
+ # Supplemental document associated with the invoice.
1013
+ #
1014
+ # @!attribute [rw] document_url
1015
+ # The pre-signed URL to download invoice supplemental document.
1016
+ # @return [String]
1017
+ #
1018
+ # @!attribute [rw] document_url_expiration_date
1019
+ # The pre-signed URL expiration date of invoice supplemental document.
1020
+ # @return [Time]
1021
+ #
1022
+ # @see http://docs.aws.amazon.com/goto/WebAPI/invoicing-2024-12-01/SupplementalDocument AWS API Documentation
1023
+ #
1024
+ class SupplementalDocument < Struct.new(
1025
+ :document_url,
1026
+ :document_url_expiration_date)
1027
+ SENSITIVE = []
1028
+ include Aws::Structure
1029
+ end
1030
+
958
1031
  # @!attribute [rw] resource_arn
959
1032
  # The Amazon Resource Name (ARN) of the tags.
960
1033
  # @return [String]
@@ -55,7 +55,7 @@ module Aws::Invoicing
55
55
  autoload :EndpointProvider, 'aws-sdk-invoicing/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-invoicing/endpoints'
57
57
 
58
- GEM_VERSION = '1.13.0'
58
+ GEM_VERSION = '1.15.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -121,6 +121,16 @@ module Aws
121
121
  ) -> _DeleteInvoiceUnitResponseSuccess
122
122
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteInvoiceUnitResponseSuccess
123
123
 
124
+ interface _GetInvoicePDFResponseSuccess
125
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetInvoicePDFResponse]
126
+ def invoice_pdf: () -> Types::InvoicePDF
127
+ end
128
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Invoicing/Client.html#get_invoice_pdf-instance_method
129
+ def get_invoice_pdf: (
130
+ invoice_id: ::String
131
+ ) -> _GetInvoicePDFResponseSuccess
132
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetInvoicePDFResponseSuccess
133
+
124
134
  interface _GetInvoiceUnitResponseSuccess
125
135
  include ::Seahorse::Client::_ResponseSuccess[Types::GetInvoiceUnitResponse]
126
136
  def invoice_unit_arn: () -> ::String
data/sig/types.rbs CHANGED
@@ -114,6 +114,16 @@ module Aws::Invoicing
114
114
  SENSITIVE: []
115
115
  end
116
116
 
117
+ class GetInvoicePDFRequest
118
+ attr_accessor invoice_id: ::String
119
+ SENSITIVE: []
120
+ end
121
+
122
+ class GetInvoicePDFResponse
123
+ attr_accessor invoice_pdf: Types::InvoicePDF
124
+ SENSITIVE: []
125
+ end
126
+
117
127
  class GetInvoiceUnitRequest
118
128
  attr_accessor invoice_unit_arn: ::String
119
129
  attr_accessor as_of: ::Time
@@ -146,6 +156,14 @@ module Aws::Invoicing
146
156
  SENSITIVE: []
147
157
  end
148
158
 
159
+ class InvoicePDF
160
+ attr_accessor invoice_id: ::String
161
+ attr_accessor document_url: ::String
162
+ attr_accessor document_url_expiration_date: ::Time
163
+ attr_accessor supplemental_documents: ::Array[Types::SupplementalDocument]
164
+ SENSITIVE: []
165
+ end
166
+
149
167
  class InvoiceProfile
150
168
  attr_accessor account_id: ::String
151
169
  attr_accessor receiver_name: ::String
@@ -269,6 +287,12 @@ module Aws::Invoicing
269
287
  SENSITIVE: []
270
288
  end
271
289
 
290
+ class SupplementalDocument
291
+ attr_accessor document_url: ::String
292
+ attr_accessor document_url_expiration_date: ::Time
293
+ SENSITIVE: []
294
+ end
295
+
272
296
  class TagResourceRequest
273
297
  attr_accessor resource_arn: ::String
274
298
  attr_accessor resource_tags: ::Array[Types::ResourceTag]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-invoicing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.0
4
+ version: 1.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services