Skip to content

Commit

Permalink
Amazon Pay Java SDK 3.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bjguillot committed May 22, 2019
1 parent 5a3547d commit d6830ed
Show file tree
Hide file tree
Showing 19 changed files with 403 additions and 94 deletions.
4 changes: 4 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 3.5.1 - May 2019
- PaymentAuthenticationStatus getter added for GetOrderReferenceDetails, SetOrderReferenceDetails, and SetOrderAttributes API calls
- StaticToken getter added for GetOrderReferenceDetails

Version 3.5.0 - February 2019
- ConfirmOrderReference API has four new request parameters:
SuccessUrl, FailureUrl, AuthorizationAmount, and AuthorizationCurrencyCode
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.amazon.pay</groupId>
<artifactId>amazon-pay-java-sdk</artifactId>
<packaging>jar</packaging>
<version>3.5.0</version>
<version>3.5.1</version>
<dependencies>
<dependency>
<groupId>commons-codec</groupId>
Expand Down
47 changes: 24 additions & 23 deletions src/com/amazon/pay/Client.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2016-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Copyright 2016-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
Expand Down Expand Up @@ -82,7 +82,7 @@ public interface Client {
* Capture operation after you call this operation. An authorization is only
* valid for a particular time period, which is specified in the response of
* the operation.
* Documentation: https://pay.amazon.com/documentation/apireference/201752010
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/authorize.html
*
* @param authorizeRequest Container for the necessary
* parameters to execute the Authorize service API on
Expand All @@ -103,7 +103,7 @@ public interface Client {
* you must either set the CaptureNow request parameter to true, or call the
* Capture operation after you call this operation. An authorization is only valid for
* a particular time period, which is specified in the response of the operation.
* Documentation: https://pay.amazon.com/documentation/apireference/201751940
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/authorizeonbillingagreement.html
*
* @param authorizeOnBillingAgreementRequest Container for the necessary
* parameters to execute the AuthorizeOnBillingAgreement service API on
Expand All @@ -123,7 +123,7 @@ public interface Client {
* You can cancel an Order Reference object only if there are no Completed, Closed, or Pending
* captures against it. If you cancel an order reference, all authorizations associated with
* this order reference are also closed.
* Documentation: https://pay.amazon.com/documentation/apireference/201751990
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/cancelorderreference.html
*
* @param request Container for the necessary
* parameters to execute the CancelOrderReference service API on
Expand All @@ -143,7 +143,7 @@ public interface Client {
* To successfully capture a payment, you must call this operation on an Authorization object
* before it expires, as specified by the ExpirationTimestamp returned in response of the Authorize operation call.
* You must specify a capture amount, and the amount cannot exceed the original amount that was authorized.
* Documentation: https://pay.amazon.com/documentation/apireference/201752040
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/capture.html
*
* @param request Container for the necessary
* parameters to execute the Capture service API on
Expand Down Expand Up @@ -178,7 +178,7 @@ public interface Client {
/**
* Call the CloseAuthorization operation to close an authorization after the
* total amount of the authorization has been captured.
* Documentation: https://pay.amazon.com/documentation/apireference/201752070
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/closeauthorization.html
*
* @param request Container for the necessary
* parameters to execute the CloseAuthorization service API on
Expand All @@ -198,7 +198,7 @@ public interface Client {
* indicate that you want to terminate the billing agreement with the buyer and that you
* do not expect to create any new order references or authorizations on this billing agreement.
* All open authorizations on the billing agreement can still be used to capture funds.
* Documentation: https://pay.amazon.com/documentation/apireference/201751950
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/closebillingagreement.html
*
* @param closeBillingAgreementRequest Container for the necessary
* parameters to execute the CloseBillingAgreement service API on
Expand All @@ -218,7 +218,7 @@ public interface Client {
* has been fulfilled (fully or partially) and that you do not expect to create any new
* authorizations on this order reference. You can still capture funds against open
* authorizations on the order reference.
* Documentation: https://pay.amazon.com/documentation/apireference/201752000
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/closeorderreference.html
*
* @param closeOrderReferenceRequest Container for the necessary
* parameters to execute the CloseOrderReference service API on
Expand All @@ -238,7 +238,7 @@ public interface Client {
* indicating that all required information has been set on the billing agreement.
* On successful completion of the ConfirmBillingAgreement call, the billing agreement
* moves to the Open state.
* Documentation: https://pay.amazon.com/documentation/apireference/201751710
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/confirmbillingagreement.html
*
* @param confirmBillingAgreementRequest Container for the necessary
* parameters to execute the ConfirmBillingAgreement service API on
Expand All @@ -258,7 +258,7 @@ public interface Client {
* constraints and all required information has been set on the order reference.
* After you call this operation, the order reference is set to the Open state and
* you can submit authorizations against the order reference.
* Documentation; https://pay.amazon.com/documentation/apireference/201751980
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/confirmorderreference.html
*
* @param request Container for the necessary
* parameters to execute the ConfirmOrderReference service API on
Expand All @@ -276,8 +276,7 @@ public interface Client {
/**
* The CreateOrderReferenceForId operation is used to create an Order Reference object from
* the object represented by the Id and IdType request parameters.
*
* Documentation: https://pay.amazon.com/developer/documentation/apireference/201751670
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/createorderreferenceforid.html
*
* @param createOrderReferenceForIdRequest Container for the necessary
* parameters to execute the GetOrderReferenceDetails service API on
Expand All @@ -299,7 +298,7 @@ CreateOrderReferenceForIdResponseData createOrderReferenceForId(
* and to retrieve information about the total amount captured on the authorization.
* If you received a Pending status when you called the Authorize operation,
* you can call this operation to get the current status.
* Documentation: https://pay.amazon.com/documentation/apireference/201752030
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/getauthorizationdetails.html
*
* @param request Container for the necessary
* parameters to execute the GetAuthorizationDetails service API on
Expand All @@ -317,7 +316,7 @@ CreateOrderReferenceForIdResponseData createOrderReferenceForId(
/**
* The GetBillingAgreementDetails operation returns details about the Billing
* Agreement object and its current state.
* Documentation: https://pay.amazon.com/documentation/apireference/201751690
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/getbillingagreementdetails.html
*
* @param getBillingAgreementDetailsRequest Container for the necessary
* parameters to execute the GetBillingAgreementDetails service API on
Expand All @@ -337,7 +336,7 @@ CreateOrderReferenceForIdResponseData createOrderReferenceForId(
* To successfully capture a payment, you must call this operation on an Authorization object
* before it expires, as specified by the ExpirationTimestamp returned in response of the Authorize operation call.
* You must specify a capture amount, and the amount cannot exceed the original amount that was authorized.
* Documentation: https://pay.amazon.com/documentation/apireference/201752060
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/getcapturedetails.html
*
* @param request Container for the necessary
* parameters to execute the GetCaptureDetails service API on
Expand All @@ -355,7 +354,7 @@ CreateOrderReferenceForIdResponseData createOrderReferenceForId(
/**
* The GetOrderReferenceDetails operation returns details about the
* Order Reference object and its current state.
* Documentation: https://pay.amazon.com/documentation/apireference/201751970
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/getorderreferencedetails.html
*
* @param getOrderReferenceDetailsRequest Container for the necessary
* parameters to execute the GetOrderReferenceDetails service API on
Expand Down Expand Up @@ -440,7 +439,7 @@ CreateOrderReferenceForIdResponseData createOrderReferenceForId(
* Call the GetRefundDetails operation to query the status of a particular refund.
* If you received a Pending status when you called the Refund operation,
* you can call this operation to get the current status.
* Documentation: https://pay.amazon.com/documentation/apireference/201752100
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/getrefunddetails.html
*
* @param getRefundDetailsRequest Container for the necessary
* parameters to execute the GetRefundDetails service API on
Expand All @@ -458,7 +457,7 @@ CreateOrderReferenceForIdResponseData createOrderReferenceForId(
/**
* The GetServiceStatus operation returns the operational status of the Pay with Amazon API
* section of Amazon Marketplace Web Service (Amazon MWS).
* Documentation: https://pay.amazon.com/developer/documentation/apireference/201752110
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/getservicestatus.html
*
* @return The response from the GetServiceStatus service API, as
* returned by Amazon Pay
Expand Down Expand Up @@ -487,7 +486,7 @@ CreateOrderReferenceForIdResponseData createOrderReferenceForId(
/**
* Call the Refund operation to refund a previously captured amount. You call the
* GetRefundDetails operation to query the status of a refund.
* Documentation: https://pay.amazon.com/documentation/apireference/201752080
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/refund.html
*
* @param refundRequest Container for the necessary
* parameters to execute the Refund service API on
Expand Down Expand Up @@ -521,7 +520,7 @@ CreateOrderReferenceForIdResponseData createOrderReferenceForId(
/**
* Call the SetBillingAgreementDetails operation to specify billing agreement
* details such as a description of the agreement and other information about the merchant.
* Documentation: https://pay.amazon.com/documentation/apireference/201751700
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/setbillingagreementdetails.html
*
* @param setBillingAgreementDetailsRequest Container for the necessary
* parameters to execute the SetBillingAgreementDetails service API on
Expand All @@ -540,7 +539,7 @@ CreateOrderReferenceForIdResponseData createOrderReferenceForId(
* Call the SetOrderReferenceDetails operation to specify order details
* such as the amount of the order,
* a description of the order, and other order attributes.
* Documentation: https://pay.amazon.com/documentation/apireference/201751960
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/setorderreferencedetails.html
*
* @param setOrderReferenceDetailsRequest Container for the necessary
* parameters to execute the SetOrderReferenceDetails service API on
Expand All @@ -560,7 +559,7 @@ CreateOrderReferenceForIdResponseData createOrderReferenceForId(
* Open state (that is, after a successful call to the ConfirmBillingAgreement operation).
* This operation validates the status of the billing agreement and the validity of the
* payment method associated with the billing agreement.
* Documentation: https://pay.amazon.com/documentation/apireference/201751720
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/validatebillingagreement.html
*
* @param validateBillingAgreementRequest Container for the necessary
* parameters to execute the ValidateBillingAgreement service API on
Expand Down Expand Up @@ -627,7 +626,7 @@ public ListOrderReferenceByNextTokenResponseData listOrderReferenceByNextToken(
/**
* The SetOrderAttributes operation is used to set order attributes even after
* the order has been confirmed.
* Documentation: https://pay.amazon.com/us/developer/documentation/apireference/22N636REVGXTPNR
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/setorderattributes.html
*
* @param setOrderAttributesRequest Container for the necessary
* parameters to execute the SetOrderAttributes service API on
Expand All @@ -647,6 +646,7 @@ public SetOrderAttributesResponseData setOrderAttributes(
/**
* The GetMerchantAccountStatus operation is used to query the status of a particular
* merchant account and to retrieve information if the account is active or inactive.
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/getmerchantaccountstatus.html
*
* @param getMerchantAccountStatusRequest Container for the optional
* parameters to execute the GetMerchantAccountStatus service API on
Expand All @@ -666,6 +666,7 @@ public GetMerchantAccountStatusResponseData getMerchantAccountStatus(
/**
* The GetMerchantAccountStatus operation is used to query the status of a particular
* merchant account and to retrieve information if the account is active or inactive.
* Documentation: https://developer.amazon.com/docs/amazon-pay-api/getmerchantaccountstatus.html
*
* @return The response from the GetMerchantAccountStatus service API, as
* returned by Amazon Pay.
Expand Down
Loading

0 comments on commit d6830ed

Please sign in to comment.