Skip to content

Commit f73c2b1

Browse files
committed
Amazon Pay Java SDK 3.5.1
1 parent 511b9a3 commit f73c2b1

19 files changed

+403
-94
lines changed

CHANGES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Version 3.5.1 - May 2019
2+
- PaymentAuthenticationStatus getter added for GetOrderReferenceDetails, SetOrderReferenceDetails, and SetOrderAttributes API calls
3+
- StaticToken getter added for GetOrderReferenceDetails
4+
15
Version 3.5.0 - February 2019
26
- ConfirmOrderReference API has four new request parameters:
37
SuccessUrl, FailureUrl, AuthorizationAmount, and AuthorizationCurrencyCode

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.amazon.pay</groupId>
55
<artifactId>amazon-pay-java-sdk</artifactId>
66
<packaging>jar</packaging>
7-
<version>3.5.0</version>
7+
<version>3.5.1</version>
88
<dependencies>
99
<dependency>
1010
<groupId>commons-codec</groupId>

src/com/amazon/pay/Client.java

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2016-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2016-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.
@@ -82,7 +82,7 @@ public interface Client {
8282
* Capture operation after you call this operation. An authorization is only
8383
* valid for a particular time period, which is specified in the response of
8484
* the operation.
85-
* Documentation: https://pay.amazon.com/documentation/apireference/201752010
85+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/authorize.html
8686
*
8787
* @param authorizeRequest Container for the necessary
8888
* parameters to execute the Authorize service API on
@@ -103,7 +103,7 @@ public interface Client {
103103
* you must either set the CaptureNow request parameter to true, or call the
104104
* Capture operation after you call this operation. An authorization is only valid for
105105
* a particular time period, which is specified in the response of the operation.
106-
* Documentation: https://pay.amazon.com/documentation/apireference/201751940
106+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/authorizeonbillingagreement.html
107107
*
108108
* @param authorizeOnBillingAgreementRequest Container for the necessary
109109
* parameters to execute the AuthorizeOnBillingAgreement service API on
@@ -123,7 +123,7 @@ public interface Client {
123123
* You can cancel an Order Reference object only if there are no Completed, Closed, or Pending
124124
* captures against it. If you cancel an order reference, all authorizations associated with
125125
* this order reference are also closed.
126-
* Documentation: https://pay.amazon.com/documentation/apireference/201751990
126+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/cancelorderreference.html
127127
*
128128
* @param request Container for the necessary
129129
* parameters to execute the CancelOrderReference service API on
@@ -143,7 +143,7 @@ public interface Client {
143143
* To successfully capture a payment, you must call this operation on an Authorization object
144144
* before it expires, as specified by the ExpirationTimestamp returned in response of the Authorize operation call.
145145
* You must specify a capture amount, and the amount cannot exceed the original amount that was authorized.
146-
* Documentation: https://pay.amazon.com/documentation/apireference/201752040
146+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/capture.html
147147
*
148148
* @param request Container for the necessary
149149
* parameters to execute the Capture service API on
@@ -178,7 +178,7 @@ public interface Client {
178178
/**
179179
* Call the CloseAuthorization operation to close an authorization after the
180180
* total amount of the authorization has been captured.
181-
* Documentation: https://pay.amazon.com/documentation/apireference/201752070
181+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/closeauthorization.html
182182
*
183183
* @param request Container for the necessary
184184
* parameters to execute the CloseAuthorization service API on
@@ -198,7 +198,7 @@ public interface Client {
198198
* indicate that you want to terminate the billing agreement with the buyer and that you
199199
* do not expect to create any new order references or authorizations on this billing agreement.
200200
* All open authorizations on the billing agreement can still be used to capture funds.
201-
* Documentation: https://pay.amazon.com/documentation/apireference/201751950
201+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/closebillingagreement.html
202202
*
203203
* @param closeBillingAgreementRequest Container for the necessary
204204
* parameters to execute the CloseBillingAgreement service API on
@@ -218,7 +218,7 @@ public interface Client {
218218
* has been fulfilled (fully or partially) and that you do not expect to create any new
219219
* authorizations on this order reference. You can still capture funds against open
220220
* authorizations on the order reference.
221-
* Documentation: https://pay.amazon.com/documentation/apireference/201752000
221+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/closeorderreference.html
222222
*
223223
* @param closeOrderReferenceRequest Container for the necessary
224224
* parameters to execute the CloseOrderReference service API on
@@ -238,7 +238,7 @@ public interface Client {
238238
* indicating that all required information has been set on the billing agreement.
239239
* On successful completion of the ConfirmBillingAgreement call, the billing agreement
240240
* moves to the Open state.
241-
* Documentation: https://pay.amazon.com/documentation/apireference/201751710
241+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/confirmbillingagreement.html
242242
*
243243
* @param confirmBillingAgreementRequest Container for the necessary
244244
* parameters to execute the ConfirmBillingAgreement service API on
@@ -258,7 +258,7 @@ public interface Client {
258258
* constraints and all required information has been set on the order reference.
259259
* After you call this operation, the order reference is set to the Open state and
260260
* you can submit authorizations against the order reference.
261-
* Documentation; https://pay.amazon.com/documentation/apireference/201751980
261+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/confirmorderreference.html
262262
*
263263
* @param request Container for the necessary
264264
* parameters to execute the ConfirmOrderReference service API on
@@ -276,8 +276,7 @@ public interface Client {
276276
/**
277277
* The CreateOrderReferenceForId operation is used to create an Order Reference object from
278278
* the object represented by the Id and IdType request parameters.
279-
*
280-
* Documentation: https://pay.amazon.com/developer/documentation/apireference/201751670
279+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/createorderreferenceforid.html
281280
*
282281
* @param createOrderReferenceForIdRequest Container for the necessary
283282
* parameters to execute the GetOrderReferenceDetails service API on
@@ -299,7 +298,7 @@ CreateOrderReferenceForIdResponseData createOrderReferenceForId(
299298
* and to retrieve information about the total amount captured on the authorization.
300299
* If you received a Pending status when you called the Authorize operation,
301300
* you can call this operation to get the current status.
302-
* Documentation: https://pay.amazon.com/documentation/apireference/201752030
301+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/getauthorizationdetails.html
303302
*
304303
* @param request Container for the necessary
305304
* parameters to execute the GetAuthorizationDetails service API on
@@ -317,7 +316,7 @@ CreateOrderReferenceForIdResponseData createOrderReferenceForId(
317316
/**
318317
* The GetBillingAgreementDetails operation returns details about the Billing
319318
* Agreement object and its current state.
320-
* Documentation: https://pay.amazon.com/documentation/apireference/201751690
319+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/getbillingagreementdetails.html
321320
*
322321
* @param getBillingAgreementDetailsRequest Container for the necessary
323322
* parameters to execute the GetBillingAgreementDetails service API on
@@ -337,7 +336,7 @@ CreateOrderReferenceForIdResponseData createOrderReferenceForId(
337336
* To successfully capture a payment, you must call this operation on an Authorization object
338337
* before it expires, as specified by the ExpirationTimestamp returned in response of the Authorize operation call.
339338
* You must specify a capture amount, and the amount cannot exceed the original amount that was authorized.
340-
* Documentation: https://pay.amazon.com/documentation/apireference/201752060
339+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/getcapturedetails.html
341340
*
342341
* @param request Container for the necessary
343342
* parameters to execute the GetCaptureDetails service API on
@@ -355,7 +354,7 @@ CreateOrderReferenceForIdResponseData createOrderReferenceForId(
355354
/**
356355
* The GetOrderReferenceDetails operation returns details about the
357356
* Order Reference object and its current state.
358-
* Documentation: https://pay.amazon.com/documentation/apireference/201751970
357+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/getorderreferencedetails.html
359358
*
360359
* @param getOrderReferenceDetailsRequest Container for the necessary
361360
* parameters to execute the GetOrderReferenceDetails service API on
@@ -440,7 +439,7 @@ CreateOrderReferenceForIdResponseData createOrderReferenceForId(
440439
* Call the GetRefundDetails operation to query the status of a particular refund.
441440
* If you received a Pending status when you called the Refund operation,
442441
* you can call this operation to get the current status.
443-
* Documentation: https://pay.amazon.com/documentation/apireference/201752100
442+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/getrefunddetails.html
444443
*
445444
* @param getRefundDetailsRequest Container for the necessary
446445
* parameters to execute the GetRefundDetails service API on
@@ -458,7 +457,7 @@ CreateOrderReferenceForIdResponseData createOrderReferenceForId(
458457
/**
459458
* The GetServiceStatus operation returns the operational status of the Pay with Amazon API
460459
* section of Amazon Marketplace Web Service (Amazon MWS).
461-
* Documentation: https://pay.amazon.com/developer/documentation/apireference/201752110
460+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/getservicestatus.html
462461
*
463462
* @return The response from the GetServiceStatus service API, as
464463
* returned by Amazon Pay
@@ -487,7 +486,7 @@ CreateOrderReferenceForIdResponseData createOrderReferenceForId(
487486
/**
488487
* Call the Refund operation to refund a previously captured amount. You call the
489488
* GetRefundDetails operation to query the status of a refund.
490-
* Documentation: https://pay.amazon.com/documentation/apireference/201752080
489+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/refund.html
491490
*
492491
* @param refundRequest Container for the necessary
493492
* parameters to execute the Refund service API on
@@ -521,7 +520,7 @@ CreateOrderReferenceForIdResponseData createOrderReferenceForId(
521520
/**
522521
* Call the SetBillingAgreementDetails operation to specify billing agreement
523522
* details such as a description of the agreement and other information about the merchant.
524-
* Documentation: https://pay.amazon.com/documentation/apireference/201751700
523+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/setbillingagreementdetails.html
525524
*
526525
* @param setBillingAgreementDetailsRequest Container for the necessary
527526
* parameters to execute the SetBillingAgreementDetails service API on
@@ -540,7 +539,7 @@ CreateOrderReferenceForIdResponseData createOrderReferenceForId(
540539
* Call the SetOrderReferenceDetails operation to specify order details
541540
* such as the amount of the order,
542541
* a description of the order, and other order attributes.
543-
* Documentation: https://pay.amazon.com/documentation/apireference/201751960
542+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/setorderreferencedetails.html
544543
*
545544
* @param setOrderReferenceDetailsRequest Container for the necessary
546545
* parameters to execute the SetOrderReferenceDetails service API on
@@ -560,7 +559,7 @@ CreateOrderReferenceForIdResponseData createOrderReferenceForId(
560559
* Open state (that is, after a successful call to the ConfirmBillingAgreement operation).
561560
* This operation validates the status of the billing agreement and the validity of the
562561
* payment method associated with the billing agreement.
563-
* Documentation: https://pay.amazon.com/documentation/apireference/201751720
562+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/validatebillingagreement.html
564563
*
565564
* @param validateBillingAgreementRequest Container for the necessary
566565
* parameters to execute the ValidateBillingAgreement service API on
@@ -627,7 +626,7 @@ public ListOrderReferenceByNextTokenResponseData listOrderReferenceByNextToken(
627626
/**
628627
* The SetOrderAttributes operation is used to set order attributes even after
629628
* the order has been confirmed.
630-
* Documentation: https://pay.amazon.com/us/developer/documentation/apireference/22N636REVGXTPNR
629+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/setorderattributes.html
631630
*
632631
* @param setOrderAttributesRequest Container for the necessary
633632
* parameters to execute the SetOrderAttributes service API on
@@ -647,6 +646,7 @@ public SetOrderAttributesResponseData setOrderAttributes(
647646
/**
648647
* The GetMerchantAccountStatus operation is used to query the status of a particular
649648
* merchant account and to retrieve information if the account is active or inactive.
649+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/getmerchantaccountstatus.html
650650
*
651651
* @param getMerchantAccountStatusRequest Container for the optional
652652
* parameters to execute the GetMerchantAccountStatus service API on
@@ -666,6 +666,7 @@ public GetMerchantAccountStatusResponseData getMerchantAccountStatus(
666666
/**
667667
* The GetMerchantAccountStatus operation is used to query the status of a particular
668668
* merchant account and to retrieve information if the account is active or inactive.
669+
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/getmerchantaccountstatus.html
669670
*
670671
* @return The response from the GetMerchantAccountStatus service API, as
671672
* returned by Amazon Pay.

0 commit comments

Comments
 (0)