├── .github └── PULL_REQUEST_TEMPLATE.md ├── CHANGES.txt ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── NOTICE.txt ├── README.md ├── dist ├── amazon-pay-3.7.0.jar └── lib │ ├── commons-codec-1.10.jar │ ├── commons-logging-1.2.jar │ ├── gson-2.2.2.jar │ ├── mockito-all-1.10.19.jar │ ├── org-apache-commons-codec.jar │ └── org.json-20120521.jar ├── logging.properties ├── pom.xml ├── src └── com │ └── amazon │ └── pay │ ├── Client.java │ ├── Config.java │ ├── LogUtil.java │ ├── exceptions │ ├── AmazonClientException.java │ └── AmazonServiceException.java │ ├── impl │ ├── PayClient.java │ ├── PayConfig.java │ ├── PayConfigLoaderFactory.java │ ├── PayLogUtil.java │ ├── Util.java │ └── ipn │ │ ├── NotificationFactory.java │ │ └── NotificationVerification.java │ ├── request │ ├── AuthorizeOnBillingAgreementRequest.java │ ├── AuthorizeRequest.java │ ├── CancelOrderReferenceRequest.java │ ├── CaptureRequest.java │ ├── ChargeRequest.java │ ├── CloseAuthorizationRequest.java │ ├── CloseBillingAgreementRequest.java │ ├── CloseOrderReferenceRequest.java │ ├── ConfirmBillingAgreementRequest.java │ ├── ConfirmOrderReferenceRequest.java │ ├── CreateOrderReferenceForIdRequest.java │ ├── DelegateRequest.java │ ├── GetAuthorizationDetailsRequest.java │ ├── GetBillingAgreementDetailsRequest.java │ ├── GetCaptureDetailsRequest.java │ ├── GetMerchantAccountStatusRequest.java │ ├── GetOrderReferenceDetailsRequest.java │ ├── GetProviderCreditDetailsRequest.java │ ├── GetProviderCreditReversalDetailsRequest.java │ ├── GetRefundDetailsRequest.java │ ├── ListOrderReferenceByNextTokenRequest.java │ ├── ListOrderReferenceRequest.java │ ├── RefundRequest.java │ ├── RequestHelper.java │ ├── ReverseProviderCreditRequest.java │ ├── SetBillingAgreementDetailsRequest.java │ ├── SetOrderAttributesRequest.java │ ├── SetOrderReferenceDetailsRequest.java │ └── ValidateBillingAgreementRequest.java │ ├── response │ ├── ipn │ │ └── model │ │ │ ├── AuthorizationNotification.java │ │ │ ├── BillingAgreementNotification.java │ │ │ ├── CaptureNotification.java │ │ │ ├── ChargebackNotification.java │ │ │ ├── CreditReversalIdList.java │ │ │ ├── EventType.java │ │ │ ├── IPNMessageMetaData.java │ │ │ ├── MerchantRegistrationDetails.java │ │ │ ├── Notification.java │ │ │ ├── NotificationMetaData.java │ │ │ ├── NotificationType.java │ │ │ ├── OrderReferenceNotification.java │ │ │ ├── ProviderCreditDetails.java │ │ │ ├── ProviderCreditNotification.java │ │ │ ├── ProviderCreditReversalDetails.java │ │ │ ├── ProviderCreditReversalNotification.java │ │ │ ├── RefundNotification.java │ │ │ └── SolutionProviderMerchantNotification.java │ ├── model │ │ ├── AccountStatus.java │ │ ├── Address.java │ │ ├── AuthorizationDetails.java │ │ ├── AuthorizeOnBillingAgreementResponse.java │ │ ├── AuthorizeOnBillingAgreementResult.java │ │ ├── AuthorizeResponse.java │ │ ├── BillingAddress.java │ │ ├── BillingAgreementDetails.java │ │ ├── BillingAgreementLimits.java │ │ ├── BillingAgreementStatus.java │ │ ├── Buyer.java │ │ ├── CancelOrderReferenceResponse.java │ │ ├── CancelOrderReferenceResult.java │ │ ├── CaptureDetails.java │ │ ├── CaptureIds.java │ │ ├── CaptureResponse.java │ │ ├── ChargebackDetails.java │ │ ├── CloseAuthorizationResponse.java │ │ ├── CloseAuthorizationResult.java │ │ ├── CloseBillingAgreementResponse.java │ │ ├── CloseBillingAgreementResult.java │ │ ├── CloseOrderReferenceResponse.java │ │ ├── ConfirmBillingAgreementResponse.java │ │ ├── ConfirmBillingAgreementResult.java │ │ ├── ConfirmOrderReferenceResponse.java │ │ ├── Constraint.java │ │ ├── Constraints.java │ │ ├── CreateOrderReferenceForIdResponse.java │ │ ├── CreateOrderReferenceForIdResult.java │ │ ├── Destination.java │ │ ├── Environment.java │ │ ├── Error.java │ │ ├── ErrorResponse.java │ │ ├── GetAuthorizationDetailsResponse.java │ │ ├── GetBillingAgreementDetailsResponse.java │ │ ├── GetBillingAgreementDetailsResult.java │ │ ├── GetCaptureDetailsResponse.java │ │ ├── GetMerchantAccountStatusResponse.java │ │ ├── GetMerchantAccountStatusResult.java │ │ ├── GetOrderReferenceDetailsResponse.java │ │ ├── GetProviderCreditDetailsResponse.java │ │ ├── GetProviderCreditDetailsResult.java │ │ ├── GetProviderCreditReversalDetailsResponse.java │ │ ├── GetProviderCreditReversalDetailsResult.java │ │ ├── GetRefundDetailsResponse.java │ │ ├── GetRefundDetailsResult.java │ │ ├── GetServiceStatusResponse.java │ │ ├── GetServiceStatusResult.java │ │ ├── IdList.java │ │ ├── ListOrderReferenceByNextTokenResponse.java │ │ ├── ListOrderReferenceByNextTokenResult.java │ │ ├── ListOrderReferenceResponse.java │ │ ├── ListOrderReferenceResult.java │ │ ├── Message.java │ │ ├── MessageList.java │ │ ├── OrderItemCategories.java │ │ ├── OrderReference.java │ │ ├── OrderReferenceAttributes.java │ │ ├── OrderReferenceDetails.java │ │ ├── OrderReferenceList.java │ │ ├── OrderReferenceStatus.java │ │ ├── OrderTotal.java │ │ ├── ParentDetails.java │ │ ├── PaymentAuthenticationStatus.java │ │ ├── PaymentDescriptor.java │ │ ├── PaymentReference.java │ │ ├── PaymentServiceProviderAttributes.java │ │ ├── Price.java │ │ ├── ProviderCredit.java │ │ ├── ProviderCreditDetails.java │ │ ├── ProviderCreditList.java │ │ ├── ProviderCreditReversal.java │ │ ├── ProviderCreditReversalDetails.java │ │ ├── ProviderCreditReversalList.java │ │ ├── ProviderCreditReversalSummary.java │ │ ├── ProviderCreditReversalSummaryList.java │ │ ├── ProviderCreditSummary.java │ │ ├── ProviderCreditSummaryList.java │ │ ├── RefundDetails.java │ │ ├── RefundResponse.java │ │ ├── RefundResult.java │ │ ├── RefundType.java │ │ ├── RequestStatus.java │ │ ├── ResponseMetadata.java │ │ ├── ReverseProviderCreditResponse.java │ │ ├── ReverseProviderCreditResult.java │ │ ├── SellerBillingAgreementAttributes.java │ │ ├── SellerOrderAttributes.java │ │ ├── ServiceStatus.java │ │ ├── SetBillingAgreementDetailsResponse.java │ │ ├── SetBillingAgreementDetailsResult.java │ │ ├── SetOrderAttributesResponse.java │ │ ├── SetOrderAttributesResult.java │ │ ├── SetOrderReferenceDetailsResponse.java │ │ ├── SetOrderReferenceDetailsResult.java │ │ ├── SolutionProviderOption.java │ │ ├── SolutionProviderOptions.java │ │ ├── Status.java │ │ ├── Type.java │ │ ├── ValidateBillingAgreementResponse.java │ │ └── ValidateBillingAgreementResult.java │ └── parser │ │ ├── AmazonValidationEventHandler.java │ │ ├── AuthorizeOnBillingAgreementResponseData.java │ │ ├── AuthorizeResponseData.java │ │ ├── CancelOrderReferenceResponseData.java │ │ ├── CaptureResponseData.java │ │ ├── CloseAuthorizationResponseData.java │ │ ├── CloseBillingAgreementResponseData.java │ │ ├── CloseOrderReferenceResponseData.java │ │ ├── ConfirmBillingAgreementResponseData.java │ │ ├── ConfirmOrderReferenceResponseData.java │ │ ├── CreateOrderReferenceForIdResponseData.java │ │ ├── GetAuthorizationDetailsResponseData.java │ │ ├── GetBillingAgreementDetailsResponseData.java │ │ ├── GetCaptureDetailsResponseData.java │ │ ├── GetMerchantAccountStatusResponseData.java │ │ ├── GetOrderReferenceDetailsResponseData.java │ │ ├── GetPaymentDetails.java │ │ ├── GetProviderCreditDetailsResponseData.java │ │ ├── GetProviderCreditReversalDetailsResponseData.java │ │ ├── GetRefundDetailsResponseData.java │ │ ├── GetServiceStatusResponseData.java │ │ ├── ListOrderReferenceByNextTokenResponseData.java │ │ ├── ListOrderReferenceResponseData.java │ │ ├── Parser.java │ │ ├── RefundResponseData.java │ │ ├── ResponseData.java │ │ ├── ReverseProviderCreditResponseData.java │ │ ├── SetBillingAgreementDetailsResponseData.java │ │ ├── SetOrderAttributesResponseData.java │ │ ├── SetOrderReferenceDetailsResponseData.java │ │ └── ValidateBillingAgreementResponseData.java │ └── types │ ├── AmazonReferenceIdType.java │ ├── BillingAgreementType.java │ ├── CurrencyCode.java │ ├── Key.java │ ├── OrderReferenceStatus.java │ ├── Region.java │ ├── ServiceConstants.java │ ├── SortOrder.java │ └── User.java └── tst ├── .gitkeep └── com └── amazon └── pay ├── TestConstants.java ├── impl ├── LoginUserInfoTest.java ├── PaymentsConfigTest.java ├── SignatureAndURLTest.java ├── config.json ├── config.properties ├── config_override.json ├── config_override.properties └── ipn │ ├── NotificationFactoryTest.java │ ├── NotificationVerificationTest.java │ ├── SigningCertURLTest.java │ └── json │ ├── AuthorizationNotification2.json │ ├── AuthorizeNotification.json │ ├── BA_PaymentMethodUpdated.json │ ├── BadNotification.json │ ├── BillingAgreementNotification.json │ ├── CaptureNotification.json │ ├── CaptureNotification2.json │ ├── CaptureNotification_Multicurrency.json │ ├── ChargebackNotification_Service.json │ ├── ChargebackNotification_Unauthorized.json │ ├── OrderReferenceNotification.json │ ├── OrderReferenceNotification2.json │ ├── ProviderCreditNotification.json │ ├── ProviderReversalCredit.json │ ├── RefundNotification.json │ ├── RefundNotification2.json │ ├── RefundNotification_Multicurrency.json │ └── SolutionProviderMerchantNotification.json ├── request └── PaymentsAPIRequestTest.java └── response ├── PaymentsAPIResponseTest.java └── xml ├── AuthorizeOnBillingAgreementResponse.xml ├── AuthorizeResponse.xml ├── CancelOrderReferenceResponse.xml ├── CaptureResponse.xml ├── CloseAuthorizationResponse.xml ├── CloseBillingAgreementResponse.xml ├── CloseOrderReferenceResponse.xml ├── ConfirmBillingAgreementResponse.xml ├── ConfirmOrderReferenceResponse.xml ├── CreateOrderReferenceForIdResponse.xml ├── ErrorResponse.xml ├── GetAuthorizationDetailsResponse.xml ├── GetBillingAgreementDetailsResponse.xml ├── GetBillingAgreementDetailsWithSCAResponse.xml ├── GetCaptureDetailsResponse.xml ├── GetCaptureDetailsResponse_Multicurrency.xml ├── GetMerchantAccountStatusActive.xml ├── GetMerchantAccountStatusError.xml ├── GetMerchantAccountStatusInactive.xml ├── GetOROwithoutPaymentDescriptor.xml ├── GetOrderReferenceDetailsResponse.xml ├── GetOrderReferenceDetailsScaResponse.xml ├── GetProviderCreditDetailsResponse.xml ├── GetProviderCreditDetailsResponse1.xml ├── GetProviderCreditReversalDetailsResponse.xml ├── GetRefundDetails.xml ├── GetRefundDetails_Multicurrency.xml ├── GetServiceStatusResponseGreen.xml ├── GetServiceStatusResponseGreenI.xml ├── ListOrderReferenceByNextTokenResponse.xml ├── ListOrderReferenceResponse.xml ├── RefundResponse.xml ├── ReverseProviderCreditResponse.xml ├── SanitizedData.xml ├── SanitizedDataBefore.xml ├── SetBillingAgreementDetailsResponse.xml ├── SetBillingAgreementDetailsWithSCAResponse.xml ├── SetOrderAttributesResponse.xml ├── SetOrderAttributesScaResponse.xml ├── SetOrderReferenceDetailsResponse.xml ├── TestPaymentDescriptor.xml ├── Throttled.xml └── ValidateBillingAgreementResponse.xml /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | *Issue #, if available:* 2 | 3 | *Description of changes:* 4 | 5 | 6 | By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. 7 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | ## Code of Conduct 2 | This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct). 3 | For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact 4 | opensource-codeofconduct@amazon.com with any additional questions or comments. 5 | -------------------------------------------------------------------------------- /NOTICE.txt: -------------------------------------------------------------------------------- 1 | Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"). 4 | You may not use this file except in compliance with the License. 5 | A copy of the License is located at http://aws.amazon.com/apache2.0 or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 6 | -------------------------------------------------------------------------------- /dist/amazon-pay-3.7.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amzn/amazon-pay-sdk-java/675eff5bde50effa6358d108c0dfbf893af2b8ff/dist/amazon-pay-3.7.0.jar -------------------------------------------------------------------------------- /dist/lib/commons-codec-1.10.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amzn/amazon-pay-sdk-java/675eff5bde50effa6358d108c0dfbf893af2b8ff/dist/lib/commons-codec-1.10.jar -------------------------------------------------------------------------------- /dist/lib/commons-logging-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amzn/amazon-pay-sdk-java/675eff5bde50effa6358d108c0dfbf893af2b8ff/dist/lib/commons-logging-1.2.jar -------------------------------------------------------------------------------- /dist/lib/gson-2.2.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amzn/amazon-pay-sdk-java/675eff5bde50effa6358d108c0dfbf893af2b8ff/dist/lib/gson-2.2.2.jar -------------------------------------------------------------------------------- /dist/lib/mockito-all-1.10.19.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amzn/amazon-pay-sdk-java/675eff5bde50effa6358d108c0dfbf893af2b8ff/dist/lib/mockito-all-1.10.19.jar -------------------------------------------------------------------------------- /dist/lib/org-apache-commons-codec.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amzn/amazon-pay-sdk-java/675eff5bde50effa6358d108c0dfbf893af2b8ff/dist/lib/org-apache-commons-codec.jar -------------------------------------------------------------------------------- /dist/lib/org.json-20120521.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amzn/amazon-pay-sdk-java/675eff5bde50effa6358d108c0dfbf893af2b8ff/dist/lib/org.json-20120521.jar -------------------------------------------------------------------------------- /logging.properties: -------------------------------------------------------------------------------- 1 | # If you want to see all requests and repsonses logged, uncomment the following line, 2 | # otherwise, only XML unmarshalling issues with AmazonValidationEventHandler will be 3 | # logged to the console when the brazil-build tests are running. 4 | # 5 | # com.amazon.pay.level = FINE 6 | 7 | com.amazon.pay.response.parser.AmazonValidationEventHandler.level = FINE 8 | 9 | handlers = java.util.logging.ConsoleHandler 10 | java.util.logging.ConsoleHandler.level = FINE 11 | 12 | java.util.logging.SimpleFormatter.format = ---- %1$tb %1$td, %1$tY %1$tl:%1$tM:%1$tS %1$Tp %2$s %4$s: %5$s%n 13 | java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter 14 | -------------------------------------------------------------------------------- /src/com/amazon/pay/LogUtil.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay; 16 | 17 | 18 | public interface LogUtil { 19 | 20 | /** 21 | * @param message to log messages to the logging console 22 | **/ 23 | public void logMessage(String message); 24 | 25 | } -------------------------------------------------------------------------------- /src/com/amazon/pay/request/GetAuthorizationDetailsRequest.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.request; 16 | 17 | import java.io.Serializable; 18 | 19 | /** 20 | * Container for the parameters to the GetAuthorizationDetails operation. 21 | * 22 | * For more information documentation, see 23 | * https://pay.amazon.com/documentation/ 24 | */ 25 | public class GetAuthorizationDetailsRequest extends DelegateRequest implements Serializable { 26 | 27 | @Override 28 | protected GetAuthorizationDetailsRequest getThis() { 29 | return this; 30 | } 31 | 32 | //required parameters 33 | private String amazonAuthorizationId; 34 | 35 | /** 36 | * 37 | * @param amazonAuthorizationId 38 | * The authorization identifier that was generated 39 | * by Amazon in the earlier call to Authorize. 40 | */ 41 | public GetAuthorizationDetailsRequest(String amazonAuthorizationId) { 42 | this.amazonAuthorizationId = amazonAuthorizationId; 43 | } 44 | 45 | /** 46 | * @return AmazonAuthorizationId 47 | */ 48 | public String getAmazonAuthorizationId() { 49 | return amazonAuthorizationId; 50 | } 51 | 52 | /** 53 | * Returns a string representation of this object; useful for testing and 54 | * debugging. 55 | * 56 | * @return A string representation of this object. 57 | * 58 | * @see java.lang.Object#toString() 59 | */ 60 | @Override 61 | public String toString() { 62 | return "GetAuthorizationDetailsRequest{" 63 | + "amazonAuthorizationId=" + amazonAuthorizationId 64 | + ", mwsAuthToken=" + getMwsAuthToken() + '}'; 65 | } 66 | 67 | } 68 | -------------------------------------------------------------------------------- /src/com/amazon/pay/request/GetCaptureDetailsRequest.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.request; 16 | 17 | import java.io.Serializable; 18 | 19 | /** 20 | * Container for the parameters to the GetCaptureDetails operation. 21 | * 22 | * For more information documentation, see 23 | * https://pay.amazon.com/documentation/ 24 | */ 25 | public class GetCaptureDetailsRequest extends DelegateRequest implements Serializable { 26 | 27 | @Override 28 | protected GetCaptureDetailsRequest getThis() { 29 | return this; 30 | } 31 | 32 | private String amazonCaptureId; 33 | 34 | /** 35 | * @param amazonCaptureId The capture identifier that was generated by Amazon 36 | * on the earlier call to Capture. 37 | */ 38 | public GetCaptureDetailsRequest(String amazonCaptureId) { 39 | this.amazonCaptureId = amazonCaptureId; 40 | } 41 | 42 | /** 43 | * 44 | *@return return the value of AmazonCaptureId 45 | */ 46 | public String getAmazonCaptureId() { 47 | return amazonCaptureId; 48 | } 49 | 50 | /** 51 | * Returns a string representation of this object; useful for testing and 52 | * debugging. 53 | * 54 | * @return A string representation of this object. 55 | * 56 | * @see java.lang.Object#toString() 57 | */ 58 | @Override 59 | public String toString() { 60 | return "GetCaptureDetailsRequest{" 61 | + "amazonCaptureId=" + amazonCaptureId 62 | + ", mwsAuthToken=" + getMwsAuthToken() + '}'; 63 | } 64 | 65 | } 66 | -------------------------------------------------------------------------------- /src/com/amazon/pay/request/GetMerchantAccountStatusRequest.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.request; 16 | 17 | import java.io.Serializable; 18 | 19 | /** 20 | * Container for the parameters to the GetMerchantAccountStatusRequest operation. 21 | * For more information documentation, see 22 | * https://pay.amazon.com/documentation/ 23 | */ 24 | public class GetMerchantAccountStatusRequest extends DelegateRequest implements Serializable { 25 | 26 | @Override 27 | protected GetMerchantAccountStatusRequest getThis() { 28 | return this; 29 | } 30 | 31 | /** 32 | * Returns a string representation of this object; useful for testing and 33 | * debugging. 34 | * 35 | * @return A string representation of this object. 36 | * 37 | * @see java.lang.Object#toString() 38 | */ 39 | @Override 40 | public String toString() { 41 | return "GetMerchantAccountStatusRequest{" 42 | + "sellerId=" + getSellerId() 43 | + ", mwsAuthToken=" + getMwsAuthToken() + '}'; 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /src/com/amazon/pay/request/GetRefundDetailsRequest.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.request; 16 | 17 | import java.io.Serializable; 18 | 19 | /** 20 | * Container for the parameters to the GetRefundDetails operation. 21 | * For more information documentation, see 22 | * https://pay.amazon.com/documentation/ 23 | */ 24 | public class GetRefundDetailsRequest extends DelegateRequest implements Serializable { 25 | 26 | @Override 27 | protected GetRefundDetailsRequest getThis() { 28 | return this; 29 | } 30 | 31 | private String amazonRefundId; 32 | 33 | /** 34 | * 35 | * @param amazonRefundId The Amazon-generated identifier for this refund transaction. 36 | */ 37 | public GetRefundDetailsRequest(String amazonRefundId) { 38 | this.amazonRefundId = amazonRefundId; 39 | } 40 | 41 | /** 42 | * 43 | * @return amazonRefundId 44 | */ 45 | public String getAmazonRefundId() { 46 | return amazonRefundId; 47 | } 48 | 49 | /** 50 | * Returns a string representation of this object; useful for testing and 51 | * debugging. 52 | * 53 | * @return A string representation of this object. 54 | * 55 | * @see java.lang.Object#toString() 56 | */ 57 | @Override 58 | public String toString() { 59 | return "GetRefundDetailsRequest{" 60 | + "amazonRefundId=" + amazonRefundId 61 | + ", mwsAuthToken=" + getMwsAuthToken() + '}'; 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /src/com/amazon/pay/request/ListOrderReferenceByNextTokenRequest.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.request; 16 | 17 | import java.io.Serializable; 18 | 19 | /** 20 | * Container for the parameters to the ListOrderReferenceByNextToken operation. 21 | */ 22 | public class ListOrderReferenceByNextTokenRequest extends DelegateRequest implements Serializable { 23 | 24 | @Override 25 | protected ListOrderReferenceByNextTokenRequest getThis() { 26 | return this; 27 | } 28 | 29 | //required parameters 30 | private String nextPageToken; 31 | 32 | /** 33 | * Set the value of nextPageToken 34 | * 35 | * @param nextPageToken The next page token. This value is retrieved from 36 | * the ListOrderReference API when the page size parameter 37 | * is specified in the method call. 38 | */ 39 | public ListOrderReferenceByNextTokenRequest(String nextPageToken){ 40 | this.nextPageToken = nextPageToken; 41 | } 42 | 43 | /** 44 | * Return the value of nextPageToken 45 | * 46 | * @return nextPageToken 47 | */ 48 | public String getNextPageToken() { 49 | return nextPageToken; 50 | } 51 | 52 | /** 53 | * Returns a string representation of this object; useful for testing and 54 | * debugging. 55 | * 56 | * @return A string representation of this object. 57 | * 58 | * @see java.lang.Object#toString() 59 | */ 60 | @Override 61 | public String toString() { 62 | return "ListOrderReferenceByNextTokenRequest{" + "nextPageToken=" + nextPageToken + '}'; 63 | } 64 | 65 | } 66 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/ipn/model/ChargebackNotification.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.ipn.model; 16 | 17 | import com.amazon.pay.response.model.ChargebackDetails; 18 | import javax.xml.bind.annotation.XmlAccessType; 19 | import javax.xml.bind.annotation.XmlAccessorType; 20 | import javax.xml.bind.annotation.XmlElement; 21 | import javax.xml.bind.annotation.XmlRootElement; 22 | import javax.xml.bind.annotation.XmlType; 23 | 24 | 25 | /** 26 | * An IPN notification to indicate a change in status 27 | * for a chargeback transaction. 28 | */ 29 | @XmlAccessorType(XmlAccessType.FIELD) 30 | @XmlType(name = "", propOrder = { 31 | "chargebackDetails" 32 | }) 33 | @XmlRootElement(name = "ChargebackNotification") 34 | public class ChargebackNotification extends Notification { 35 | 36 | /** 37 | * Chargeback notification details. 38 | */ 39 | @XmlElement(name = "ChargebackDetails", required = true) 40 | private ChargebackDetails chargebackDetails; 41 | 42 | /** 43 | * Creates a new instance of the chargeback notification. 44 | */ 45 | public ChargebackNotification() { 46 | super(NotificationType.ChargebackNotification); 47 | } 48 | 49 | /** 50 | * @return the chargeback details field 51 | */ 52 | public ChargebackDetails getChargebackDetails() { 53 | return chargebackDetails; 54 | } 55 | 56 | /** 57 | * String representation of chargebackDetails 58 | */ 59 | @Override 60 | public String toString() { 61 | return "ChargebackNotification{" + "chargebackDetails=" + chargebackDetails.toString() + '}'; 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/ipn/model/CreditReversalIdList.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.ipn.model; 16 | 17 | import java.util.ArrayList; 18 | import java.util.List; 19 | import javax.xml.bind.annotation.XmlAccessType; 20 | import javax.xml.bind.annotation.XmlAccessorType; 21 | import javax.xml.bind.annotation.XmlElement; 22 | import javax.xml.bind.annotation.XmlType; 23 | 24 | 25 | @XmlAccessorType(XmlAccessType.FIELD) 26 | @XmlType(name = "CreditReversalIdList", propOrder = { 27 | "id" 28 | }) 29 | public class CreditReversalIdList { 30 | 31 | @XmlElement(name="Id" , required = true) 32 | protected List id; 33 | 34 | /** 35 | * Default constructor 36 | * 37 | */ 38 | public CreditReversalIdList() { 39 | super(); 40 | } 41 | 42 | 43 | public CreditReversalIdList(final List id) { 44 | this.id = id; 45 | } 46 | 47 | public List getId() { 48 | if (id == null) { 49 | id = new ArrayList(); 50 | } 51 | return this.id; 52 | } 53 | 54 | @Override 55 | public String toString() { 56 | return "IdList{" + "id=" + id + '}'; 57 | } 58 | 59 | 60 | } 61 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/ipn/model/EventType.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | 16 | package com.amazon.pay.response.ipn.model; 17 | 18 | /** 19 | * Event types generated by the Amazon Pay 20 | * Billing Agreement IPNs 21 | */ 22 | public enum EventType { 23 | BillingAgreementStatusUpdated, 24 | PaymentMethodUpdated, 25 | AddressUpdated, 26 | AddressAndPaymentMethodUpdated 27 | } 28 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/ipn/model/NotificationType.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.ipn.model; 16 | 17 | /** 18 | * Notification types generated by the Amazon Pay 19 | * Instant Payment Notification (IPN) service 20 | */ 21 | public enum NotificationType { 22 | OrderReferenceNotification, 23 | AuthorizationNotification, 24 | CaptureNotification, 25 | RefundNotification, 26 | BillingAgreementNotification, 27 | ProviderCreditNotification, 28 | ProviderCreditReversalNotification, 29 | SolutionProviderMerchantNotification, 30 | ChargebackNotification 31 | } 32 | 33 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/ipn/model/ProviderCreditReversalNotification.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.ipn.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | 24 | /** 25 | * An IPN notification to indicate a change in status for 26 | * a providerCredit transaction notification. 27 | */ 28 | @XmlAccessorType(XmlAccessType.FIELD) 29 | @XmlType(name = "", propOrder = { 30 | "providerCreditReversalDetails" 31 | }) 32 | @XmlRootElement(name="ProviderCreditReversalNotification") 33 | public class ProviderCreditReversalNotification extends Notification { 34 | 35 | /** 36 | * ProviderCredit details. 37 | */ 38 | @XmlElement(name="ProviderCreditReversalDetails", required = true) 39 | private ProviderCreditReversalDetails providerCreditReversalDetails; 40 | 41 | /** 42 | * Creates a new instance of the providerCredit notification. 43 | */ 44 | public ProviderCreditReversalNotification() { 45 | super(NotificationType.ProviderCreditReversalNotification); 46 | } 47 | 48 | public ProviderCreditReversalNotification(final ProviderCreditReversalDetails details) { 49 | super(NotificationType.ProviderCreditReversalNotification); 50 | providerCreditReversalDetails = details; 51 | } 52 | 53 | /** 54 | * @return the details for this providerCreditReversal notification 55 | */ 56 | public ProviderCreditReversalDetails getProviderCreditReversalDetails() { 57 | return this.providerCreditReversalDetails; 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/ipn/model/RefundNotification.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.ipn.model; 16 | 17 | import com.amazon.pay.response.model.RefundDetails; 18 | import javax.xml.bind.annotation.XmlAccessType; 19 | import javax.xml.bind.annotation.XmlAccessorType; 20 | import javax.xml.bind.annotation.XmlElement; 21 | import javax.xml.bind.annotation.XmlRootElement; 22 | import javax.xml.bind.annotation.XmlType; 23 | 24 | 25 | /** 26 | * An IPN notification to indicate a change in status 27 | * for a refund transaction. 28 | */ 29 | @XmlAccessorType(XmlAccessType.FIELD) 30 | @XmlType(name = "", propOrder = { 31 | "refundDetails" 32 | }) 33 | @XmlRootElement(name = "RefundNotification") 34 | public class RefundNotification extends Notification { 35 | 36 | /** 37 | * Refund notification details. 38 | */ 39 | @XmlElement(name = "RefundDetails", required = true) 40 | private RefundDetails refundDetails; 41 | 42 | /** 43 | * Creates a new instance of the refund notification. 44 | */ 45 | public RefundNotification() { 46 | super(NotificationType.RefundNotification); 47 | } 48 | 49 | /** 50 | * @return the refund details field 51 | */ 52 | public RefundDetails getRefundDetails() { 53 | return refundDetails; 54 | } 55 | 56 | /** 57 | * String representation of refundDetails 58 | */ 59 | @Override 60 | public String toString() { 61 | return "RefundNotification{" + "refundDetails=" + refundDetails.toString() + '}'; 62 | } 63 | 64 | 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/AccountStatus.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlEnum; 18 | import javax.xml.bind.annotation.XmlEnumValue; 19 | import javax.xml.bind.annotation.XmlType; 20 | 21 | @XmlType(name = "AccountStatus") 22 | @XmlEnum 23 | public enum AccountStatus { 24 | 25 | @XmlEnumValue("ACTIVE") 26 | ACTIVE, 27 | @XmlEnumValue("INACTIVE") 28 | INACTIVE 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/AuthorizeOnBillingAgreementResponse.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "", propOrder = { 25 | "authorizeOnBillingAgreementResult", 26 | "responseMetadata" 27 | }) 28 | @XmlRootElement(name = "AuthorizeOnBillingAgreementResponse") 29 | public class AuthorizeOnBillingAgreementResponse { 30 | 31 | @XmlElement(name = "AuthorizeOnBillingAgreementResult", required = true) 32 | protected AuthorizeOnBillingAgreementResult authorizeOnBillingAgreementResult; 33 | @XmlElement(name = "ResponseMetadata", required = true) 34 | protected ResponseMetadata responseMetadata; 35 | 36 | public AuthorizeOnBillingAgreementResponse() { 37 | super(); 38 | } 39 | 40 | 41 | public AuthorizeOnBillingAgreementResult getAuthorizeOnBillingAgreementResult() { 42 | return authorizeOnBillingAgreementResult; 43 | } 44 | 45 | public ResponseMetadata getResponseMetadata() { 46 | return responseMetadata; 47 | } 48 | 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/AuthorizeOnBillingAgreementResult.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "", propOrder = { 25 | "authorizationDetails", 26 | "amazonOrderReferenceId" 27 | }) 28 | @XmlRootElement(name = "AuthorizeOnBillingAgreementResult") 29 | public class AuthorizeOnBillingAgreementResult { 30 | 31 | @XmlElement(name = "AuthorizationDetails", required = true) 32 | protected AuthorizationDetails authorizationDetails; 33 | @XmlElement(name = "AmazonOrderReferenceId", required = true) 34 | protected String amazonOrderReferenceId; 35 | 36 | public AuthorizeOnBillingAgreementResult() { 37 | super(); 38 | } 39 | 40 | 41 | public AuthorizationDetails getAuthorizationDetails() { 42 | return authorizationDetails; 43 | } 44 | 45 | public String getAmazonOrderReferenceId() { 46 | return amazonOrderReferenceId; 47 | } 48 | 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/BillingAddress.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlType; 21 | 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "BillingAddress", propOrder = { 25 | "addressType", 26 | "physicalAddress" 27 | }) 28 | public class BillingAddress { 29 | 30 | @XmlElement(name = "AddressType") 31 | protected String addressType; 32 | @XmlElement(name = "PhysicalAddress") 33 | protected Address physicalAddress; 34 | 35 | public BillingAddress() { 36 | super(); 37 | } 38 | 39 | /** 40 | * 41 | * @return Returns the address type 42 | */ 43 | public String getAddressType() { 44 | return addressType; 45 | } 46 | 47 | /** 48 | * 49 | * @return Returns the physical address 50 | */ 51 | public Address getPhysicalAddress() { 52 | return physicalAddress; 53 | } 54 | 55 | /** 56 | * Returns the string representation of BillingAddress 57 | */ 58 | @Override 59 | public String toString() { 60 | return "BillingAddress{" + "addressType=" + addressType + ", physicalAddress=" + physicalAddress.toString() + '}'; 61 | } 62 | 63 | 64 | } -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/Buyer.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlType; 21 | 22 | /** 23 | * The name, email address, and phone number of the buyer. 24 | */ 25 | @XmlAccessorType(XmlAccessType.FIELD) 26 | @XmlType(name = "Buyer", propOrder = { 27 | "name", 28 | "email", 29 | "phone" 30 | }) 31 | public class Buyer { 32 | 33 | @XmlElement(name = "Name") 34 | protected String name; 35 | @XmlElement(name = "Email") 36 | protected String email; 37 | @XmlElement(name = "Phone") 38 | protected String phone; 39 | 40 | public Buyer() { 41 | super(); 42 | } 43 | 44 | /** 45 | * The name of the buyer. Required. 46 | * 47 | * @return Name 48 | */ 49 | public String getName() { 50 | return name; 51 | } 52 | 53 | /** 54 | * The email address of the buyer. Required. 55 | * 56 | * @return Email 57 | */ 58 | public String getEmail() { 59 | return email; 60 | } 61 | 62 | /** 63 | * The phone number of the buyer. Optional. 64 | * 65 | * @return Phone 66 | */ 67 | public String getPhone() { 68 | return phone; 69 | } 70 | 71 | /** 72 | * Returns the string representation of Buyer 73 | */ 74 | @Override 75 | public String toString() { 76 | return "Buyer{" + "name=" + name + ", email=" + email + ", phone=" + phone + '}'; 77 | } 78 | 79 | 80 | } 81 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/CancelOrderReferenceResponse.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "", propOrder = { 25 | "cancelOrderReferenceResult", 26 | "responseMetadata" 27 | }) 28 | @XmlRootElement(name = "CancelOrderReferenceResponse") 29 | public class CancelOrderReferenceResponse { 30 | 31 | @XmlElement(name = "CancelOrderReferenceResult", required = true) 32 | protected CancelOrderReferenceResult cancelOrderReferenceResult; 33 | @XmlElement(name = "ResponseMetadata", required = true) 34 | protected ResponseMetadata responseMetadata; 35 | 36 | public CancelOrderReferenceResponse() { 37 | super(); 38 | } 39 | 40 | public CancelOrderReferenceResult getCancelOrderReferenceResult() { 41 | return cancelOrderReferenceResult; 42 | } 43 | 44 | public ResponseMetadata getResponseMetadata() { 45 | return responseMetadata; 46 | } 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/CancelOrderReferenceResult.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlRootElement; 20 | import javax.xml.bind.annotation.XmlType; 21 | 22 | @XmlAccessorType(XmlAccessType.FIELD) 23 | @XmlType(name = "") 24 | @XmlRootElement(name = "CancelOrderReferenceResult") 25 | public class CancelOrderReferenceResult { 26 | 27 | public CancelOrderReferenceResult() { 28 | super(); 29 | } 30 | 31 | 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/CaptureIds.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | 18 | 19 | import java.util.ArrayList; 20 | import java.util.List; 21 | import javax.xml.bind.annotation.XmlAccessType; 22 | import javax.xml.bind.annotation.XmlAccessorType; 23 | import javax.xml.bind.annotation.XmlElement; 24 | import javax.xml.bind.annotation.XmlType; 25 | 26 | 27 | @XmlAccessorType(XmlAccessType.FIELD) 28 | @XmlType(name = "CaptureIds", propOrder = { 29 | "member" 30 | }) 31 | public class CaptureIds { 32 | 33 | @XmlElement(required = true) 34 | protected List member; 35 | 36 | public CaptureIds() { 37 | super(); 38 | } 39 | 40 | 41 | public List getMember() { 42 | if (member == null) { 43 | member = new ArrayList(); 44 | } 45 | return this.member; 46 | } 47 | 48 | @Override 49 | public String toString() { 50 | return "CaptureIds{" + "member=" + member.toString() + '}'; 51 | } 52 | 53 | 54 | 55 | } 56 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/CaptureResponse.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import com.amazon.pay.response.model.ResponseMetadata; 18 | import javax.xml.bind.annotation.XmlAccessType; 19 | import javax.xml.bind.annotation.XmlAccessorType; 20 | import javax.xml.bind.annotation.XmlElement; 21 | import javax.xml.bind.annotation.XmlRootElement; 22 | import javax.xml.bind.annotation.XmlType; 23 | 24 | @XmlAccessorType(XmlAccessType.FIELD) 25 | @XmlType(name = "", propOrder = { 26 | "captureResult", 27 | "responseMetadata" 28 | }) 29 | @XmlRootElement(name = "CaptureResponse") 30 | public class CaptureResponse { 31 | 32 | @XmlElement(name = "CaptureResult", required = true) 33 | protected CaptureResult captureResult; 34 | @XmlElement(name = "ResponseMetadata", required = true) 35 | protected ResponseMetadata responseMetadata; 36 | 37 | public CaptureResponse() { 38 | super(); 39 | } 40 | 41 | public CaptureResult getCaptureResult() { 42 | return captureResult; 43 | } 44 | 45 | public ResponseMetadata getResponseMetadata() { 46 | return responseMetadata; 47 | } 48 | 49 | @XmlAccessorType(XmlAccessType.FIELD) 50 | @XmlType(name = "", propOrder = { 51 | "captureDetails" 52 | }) 53 | @XmlRootElement(name = "CaptureResult") 54 | public static class CaptureResult { 55 | 56 | @XmlElement(name = "CaptureDetails", required = true) 57 | protected CaptureDetails captureDetails; 58 | 59 | public CaptureResult() { 60 | super(); 61 | } 62 | 63 | public CaptureDetails getCaptureDetails() { 64 | return captureDetails; 65 | } 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/CloseAuthorizationResponse.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "", propOrder = { 25 | "closeAuthorizationResult", 26 | "responseMetadata" 27 | }) 28 | @XmlRootElement(name = "CloseAuthorizationResponse") 29 | public class CloseAuthorizationResponse { 30 | 31 | @XmlElement(name = "CloseAuthorizationResult", required = true) 32 | protected CloseAuthorizationResult closeAuthorizationResult; 33 | @XmlElement(name = "ResponseMetadata", required = true) 34 | protected ResponseMetadata responseMetadata; 35 | 36 | public CloseAuthorizationResponse() { 37 | super(); 38 | } 39 | 40 | public CloseAuthorizationResult getCloseAuthorizationResult() { 41 | return closeAuthorizationResult; 42 | } 43 | 44 | public ResponseMetadata getResponseMetadata() { 45 | return responseMetadata; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/CloseAuthorizationResult.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlRootElement; 20 | import javax.xml.bind.annotation.XmlType; 21 | 22 | @XmlAccessorType(XmlAccessType.FIELD) 23 | @XmlType(name = "") 24 | @XmlRootElement(name = "CloseAuthorizationResult") 25 | public class CloseAuthorizationResult { 26 | 27 | public CloseAuthorizationResult() { 28 | super(); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/CloseBillingAgreementResponse.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "", propOrder = { 25 | "closeBillingAgreementResult", 26 | "responseMetadata" 27 | }) 28 | @XmlRootElement(name = "CloseBillingAgreementResponse") 29 | public class CloseBillingAgreementResponse { 30 | 31 | @XmlElement(name = "CloseBillingAgreementResult", required = true) 32 | protected CloseBillingAgreementResult closeBillingAgreementResult; 33 | @XmlElement(name = "ResponseMetadata", required = true) 34 | protected ResponseMetadata responseMetadata; 35 | 36 | public CloseBillingAgreementResponse() { 37 | super(); 38 | } 39 | 40 | 41 | public CloseBillingAgreementResult getCloseBillingAgreementResult() { 42 | return closeBillingAgreementResult; 43 | } 44 | 45 | public void setCloseBillingAgreementResult(CloseBillingAgreementResult value) { 46 | this.closeBillingAgreementResult = value; 47 | } 48 | public ResponseMetadata getResponseMetadata() { 49 | return responseMetadata; 50 | } 51 | 52 | 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/CloseBillingAgreementResult.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlRootElement; 20 | import javax.xml.bind.annotation.XmlType; 21 | 22 | @XmlAccessorType(XmlAccessType.FIELD) 23 | @XmlType(name = "") 24 | @XmlRootElement(name = "CloseBillingAgreementResult") 25 | public class CloseBillingAgreementResult { 26 | 27 | 28 | public CloseBillingAgreementResult() { 29 | super(); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/CloseOrderReferenceResponse.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import com.amazon.pay.response.model.ResponseMetadata; 18 | import javax.xml.bind.annotation.XmlAccessType; 19 | import javax.xml.bind.annotation.XmlAccessorType; 20 | import javax.xml.bind.annotation.XmlElement; 21 | import javax.xml.bind.annotation.XmlRootElement; 22 | import javax.xml.bind.annotation.XmlType; 23 | 24 | @XmlAccessorType(XmlAccessType.FIELD) 25 | @XmlType(name = "", propOrder = { 26 | "closeOrderReferenceResult", 27 | "responseMetadata" 28 | }) 29 | @XmlRootElement(name = "CloseOrderReferenceResponse") 30 | public class CloseOrderReferenceResponse { 31 | 32 | @XmlElement(name = "CloseOrderReferenceResult", required = true) 33 | protected CloseOrderReferenceResult closeOrderReferenceResult; 34 | @XmlElement(name = "ResponseMetadata", required = true) 35 | protected ResponseMetadata responseMetadata; 36 | 37 | 38 | public CloseOrderReferenceResponse() { 39 | super(); 40 | } 41 | 42 | public CloseOrderReferenceResult getCloseOrderReferenceResult() { 43 | return closeOrderReferenceResult; 44 | } 45 | 46 | 47 | public ResponseMetadata getResponseMetadata() { 48 | return responseMetadata; 49 | } 50 | 51 | 52 | 53 | @XmlAccessorType(XmlAccessType.FIELD) 54 | @XmlType(name = "") 55 | @XmlRootElement(name = "CloseOrderReferenceResult") 56 | public static class CloseOrderReferenceResult { 57 | public CloseOrderReferenceResult() { 58 | super(); 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/ConfirmBillingAgreementResponse.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "", propOrder = { 25 | "confirmBillingAgreementResult", 26 | "responseMetadata" 27 | }) 28 | @XmlRootElement(name = "ConfirmBillingAgreementResponse") 29 | public class ConfirmBillingAgreementResponse { 30 | 31 | @XmlElement(name = "ConfirmBillingAgreementResult", required = true) 32 | protected ConfirmBillingAgreementResult confirmBillingAgreementResult; 33 | @XmlElement(name = "ResponseMetadata", required = true) 34 | protected ResponseMetadata responseMetadata; 35 | 36 | public ConfirmBillingAgreementResponse() { 37 | super(); 38 | } 39 | 40 | public ConfirmBillingAgreementResult getConfirmBillingAgreementResult() { 41 | return confirmBillingAgreementResult; 42 | } 43 | 44 | public ResponseMetadata getResponseMetadata() { 45 | return responseMetadata; 46 | } 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/ConfirmBillingAgreementResult.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlRootElement; 20 | import javax.xml.bind.annotation.XmlType; 21 | 22 | @XmlAccessorType(XmlAccessType.FIELD) 23 | @XmlType(name = "") 24 | @XmlRootElement(name = "ConfirmBillingAgreementResult") 25 | public class ConfirmBillingAgreementResult { 26 | 27 | 28 | public ConfirmBillingAgreementResult() { 29 | super(); 30 | } 31 | 32 | 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/ConfirmOrderReferenceResponse.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import com.amazon.pay.response.model.ResponseMetadata; 18 | import javax.xml.bind.annotation.XmlAccessType; 19 | import javax.xml.bind.annotation.XmlAccessorType; 20 | import javax.xml.bind.annotation.XmlElement; 21 | import javax.xml.bind.annotation.XmlRootElement; 22 | import javax.xml.bind.annotation.XmlType; 23 | 24 | @XmlAccessorType(XmlAccessType.FIELD) 25 | @XmlType(name = "", propOrder = { 26 | "responseMetadata" 27 | }) 28 | @XmlRootElement(name = "ConfirmOrderReferenceResponse") 29 | public class ConfirmOrderReferenceResponse { 30 | 31 | @XmlElement(name = "ResponseMetadata", required = true) 32 | protected ResponseMetadata responseMetadata; 33 | 34 | public ConfirmOrderReferenceResponse() { 35 | super(); 36 | } 37 | 38 | public ResponseMetadata getResponseMetadata() { 39 | return responseMetadata; 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/Constraint.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlType; 21 | 22 | /** 23 | * Indicates mandatory information that is missing or incorrect in a Billing Agreement object or an Order Reference object. 24 | */ 25 | @XmlAccessorType(XmlAccessType.FIELD) 26 | @XmlType(name = "Constraint", propOrder = { 27 | "constraintID", 28 | "description" 29 | }) 30 | public class Constraint { 31 | 32 | @XmlElement(name = "ConstraintID") 33 | protected String constraintID; 34 | @XmlElement(name = "Description") 35 | protected String description; 36 | 37 | public Constraint() { 38 | super(); 39 | } 40 | 41 | /** 42 | * The identifier of the constraint. For more information, see Billing Agreement Constraints or Order Reference Constraints. 43 | * 44 | * @return constraintID 45 | */ 46 | public String getConstraintID() { 47 | return constraintID; 48 | } 49 | 50 | /** 51 | * The description of the constraint. For more information, see Billing Agreement Constraints or Order Reference Constraints. 52 | * 53 | * @return description 54 | */ 55 | public String getDescription() { 56 | return description; 57 | } 58 | 59 | 60 | } 61 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/Constraints.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import java.util.ArrayList; 18 | import java.util.List; 19 | import javax.xml.bind.annotation.XmlAccessType; 20 | import javax.xml.bind.annotation.XmlAccessorType; 21 | import javax.xml.bind.annotation.XmlElement; 22 | import javax.xml.bind.annotation.XmlType; 23 | 24 | @XmlAccessorType(XmlAccessType.FIELD) 25 | @XmlType(name = "Constraints", propOrder = { 26 | "constraint" 27 | }) 28 | public class Constraints { 29 | 30 | @XmlElement(name = "Constraint", required = true) 31 | protected List constraint; 32 | 33 | public Constraints() { 34 | super(); 35 | } 36 | 37 | public List getConstraint() { 38 | if (constraint == null) { 39 | constraint = new ArrayList(); 40 | } 41 | return this.constraint; 42 | } 43 | 44 | 45 | 46 | } 47 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/CreateOrderReferenceForIdResult.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | /** 24 | * This represents the CreateOrderReferenceForIdResult node parsed 25 | * from the Amazon Pay CreateOrderReferenceForId API response. 26 | * 27 | * <CreateOrderReferenceForIdResult> 28 | * <OrderReferenceDetails> 29 | * ... 30 | * </OrderReferenceDetails> 31 | * </CreateOrderReferenceForIdResult> 32 | * 33 | */ 34 | @XmlAccessorType(XmlAccessType.FIELD) 35 | @XmlType(name = "", propOrder = { 36 | "orderReferenceDetails" 37 | }) 38 | @XmlRootElement(name = "CreateOrderReferenceForIdResult") 39 | public class CreateOrderReferenceForIdResult { 40 | 41 | @XmlElement(name = "OrderReferenceDetails") 42 | protected OrderReferenceDetails orderReferenceDetails; 43 | 44 | public CreateOrderReferenceForIdResult() { 45 | super(); 46 | } 47 | 48 | public OrderReferenceDetails getOrderReferenceDetails() { 49 | return orderReferenceDetails; 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/Destination.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlType; 21 | 22 | /** 23 | * Represents the address selected by the buyer through the AddressBook widget. 24 | */ 25 | @XmlAccessorType(XmlAccessType.FIELD) 26 | @XmlType(name = "Destination", propOrder = { 27 | "destinationType", 28 | "physicalDestination" 29 | }) 30 | public class Destination { 31 | 32 | @XmlElement(name = "DestinationType") 33 | protected String destinationType; 34 | @XmlElement(name = "PhysicalDestination") 35 | protected Address physicalDestination; 36 | 37 | public Destination() { 38 | super(); 39 | } 40 | 41 | /** 42 | * Returns destination type. Allowed value: Physical 43 | * 44 | * @return destinationType 45 | */ 46 | public String getDestinationType() { 47 | return destinationType; 48 | } 49 | 50 | /** 51 | * The address of the destination. Type: Address 52 | * 53 | * @return physicalDestination 54 | */ 55 | public Address getPhysicalDestination() { 56 | return physicalDestination; 57 | } 58 | 59 | @Override 60 | public String toString() { 61 | return "Destination{" + "destinationType=" + destinationType + ", physicalDestination=" + physicalDestination.toString() + '}'; 62 | } 63 | 64 | 65 | } 66 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/Environment.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlEnum; 18 | import javax.xml.bind.annotation.XmlEnumValue; 19 | import javax.xml.bind.annotation.XmlType; 20 | 21 | /** 22 | * This represents an enum class identifying the environment LIVE or SANDBOX mode. 23 | * Sandbox mode enables you to conduct an end-to-end test of 24 | * your integration prior to going live. 25 | */ 26 | @XmlType(name = "ReleaseEnvironment") 27 | @XmlEnum 28 | public enum Environment { 29 | 30 | @XmlEnumValue("Live") 31 | LIVE("LIVE"), 32 | @XmlEnumValue("Sandbox") 33 | SANDBOX("SANDBOX"); 34 | private final String value; 35 | 36 | Environment(String v) { 37 | value = v; 38 | } 39 | 40 | public String value() { 41 | return value; 42 | } 43 | 44 | @Override 45 | public String toString() { 46 | return value(); 47 | } 48 | 49 | public static Environment fromValue(String v) { 50 | for (Environment c: Environment.values()) { 51 | if (c.value.equals(v)) { 52 | return c; 53 | } 54 | } 55 | throw new IllegalArgumentException(v); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/ErrorResponse.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import java.util.ArrayList; 18 | import java.util.List; 19 | import javax.xml.bind.annotation.XmlAccessType; 20 | import javax.xml.bind.annotation.XmlAccessorType; 21 | import javax.xml.bind.annotation.XmlElement; 22 | import javax.xml.bind.annotation.XmlRootElement; 23 | import javax.xml.bind.annotation.XmlType; 24 | 25 | 26 | @XmlAccessorType(XmlAccessType.FIELD) 27 | @XmlType(name = "", propOrder = { 28 | "error", 29 | "requestId", 30 | "requestID" 31 | }) 32 | @XmlRootElement(name = "ErrorResponse") 33 | public class ErrorResponse { 34 | 35 | @XmlElement(name = "Error", required = true) 36 | protected List error; 37 | @XmlElement(name = "RequestId") 38 | protected String requestId; 39 | // Throttled error requests come back with "RequestID" node names instaed of "RequestId" 40 | @XmlElement(name = "RequestID") 41 | protected String requestID; 42 | 43 | public ErrorResponse() { 44 | super(); 45 | } 46 | 47 | 48 | public List getError() { 49 | if (error == null) { 50 | error = new ArrayList(); 51 | } 52 | return this.error; 53 | } 54 | 55 | // Regardless of type of error, return the RequestId in a consistent way 56 | public String getRequestId() { 57 | if (requestId != null) { 58 | return requestId; 59 | } else { 60 | return requestID; 61 | } 62 | } 63 | 64 | 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/GetBillingAgreementDetailsResponse.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | 24 | @XmlAccessorType(XmlAccessType.FIELD) 25 | @XmlType(name = "", propOrder = { 26 | "getBillingAgreementDetailsResult", 27 | "responseMetadata" 28 | }) 29 | @XmlRootElement(name = "GetBillingAgreementDetailsResponse") 30 | public class GetBillingAgreementDetailsResponse { 31 | 32 | @XmlElement(name = "GetBillingAgreementDetailsResult", required = true) 33 | protected GetBillingAgreementDetailsResult getBillingAgreementDetailsResult; 34 | @XmlElement(name = "ResponseMetadata", required = true) 35 | protected ResponseMetadata responseMetadata; 36 | 37 | public GetBillingAgreementDetailsResponse() { 38 | super(); 39 | } 40 | 41 | public GetBillingAgreementDetailsResult getGetBillingAgreementDetailsResult() { 42 | return getBillingAgreementDetailsResult; 43 | } 44 | 45 | public ResponseMetadata getResponseMetadata() { 46 | return responseMetadata; 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/GetBillingAgreementDetailsResult.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | 18 | import javax.xml.bind.annotation.XmlAccessType; 19 | import javax.xml.bind.annotation.XmlAccessorType; 20 | import javax.xml.bind.annotation.XmlElement; 21 | import javax.xml.bind.annotation.XmlRootElement; 22 | import javax.xml.bind.annotation.XmlType; 23 | 24 | 25 | @XmlAccessorType(XmlAccessType.FIELD) 26 | @XmlType(name = "", propOrder = { 27 | "billingAgreementDetails" 28 | }) 29 | @XmlRootElement(name = "GetBillingAgreementDetailsResult") 30 | public class GetBillingAgreementDetailsResult { 31 | 32 | @XmlElement(name = "BillingAgreementDetails") 33 | protected BillingAgreementDetails billingAgreementDetails; 34 | 35 | public GetBillingAgreementDetailsResult() { 36 | super(); 37 | } 38 | 39 | public BillingAgreementDetails getBillingAgreementDetails() { 40 | return billingAgreementDetails; 41 | } 42 | 43 | 44 | 45 | 46 | } 47 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/GetMerchantAccountStatusResult.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | /** 24 | * This represents the GetMerchantAccountStatusResult node parsed 25 | * from the Amazon Pay GetMerchantAccountStatusResponse. 26 | * 27 | *
{@code
28 |  *      
29 |  *        ACTIVE
30 |  *      
31 |  *  }
32 | * 33 | */ 34 | @XmlAccessorType(XmlAccessType.FIELD) 35 | @XmlType(name = "", propOrder = { 36 | "accountStatus" 37 | }) 38 | @XmlRootElement(name = "GetMerchantAccountStatusResult") 39 | public class GetMerchantAccountStatusResult { 40 | 41 | @XmlElement(name = "AccountStatus", required = true) 42 | protected AccountStatus accountStatus; 43 | 44 | public GetMerchantAccountStatusResult() { 45 | super(); 46 | } 47 | 48 | /** 49 | * @return account status: 50 | * ACTIVE - Merchant account is active 51 | * INACTIVE - Merchant account is not active 52 | */ 53 | public AccountStatus getAccountStatus() { 54 | return accountStatus; 55 | } 56 | 57 | /** 58 | * Returns the string representation of GetMerchantAccountStatusResult 59 | */ 60 | @Override 61 | public String toString() { 62 | return "GetMerchantAccountStatus{" + "accountStatus=" + accountStatus + "}"; 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/GetProviderCreditDetailsResponse.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "", propOrder = { 25 | "getProviderCreditDetailsResult", 26 | "responseMetadata" 27 | }) 28 | @XmlRootElement(name = "GetProviderCreditDetailsResponse") 29 | public class GetProviderCreditDetailsResponse { 30 | 31 | @XmlElement(name = "GetProviderCreditDetailsResult", required = true) 32 | protected GetProviderCreditDetailsResult getProviderCreditDetailsResult; 33 | @XmlElement(name = "ResponseMetadata", required = true) 34 | protected ResponseMetadata responseMetadata; 35 | 36 | public GetProviderCreditDetailsResponse() { 37 | super(); 38 | } 39 | 40 | 41 | public GetProviderCreditDetailsResult getGetProviderCreditDetailsResult() { 42 | return getProviderCreditDetailsResult; 43 | } 44 | 45 | 46 | public ResponseMetadata getResponseMetadata() { 47 | return responseMetadata; 48 | } 49 | 50 | 51 | } 52 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/GetProviderCreditDetailsResult.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "", propOrder = { 25 | "providerCreditDetails" 26 | }) 27 | @XmlRootElement(name = "GetProviderCreditDetailsResult") 28 | public class GetProviderCreditDetailsResult { 29 | 30 | @XmlElement(name = "ProviderCreditDetails") 31 | protected ProviderCreditDetails providerCreditDetails; 32 | 33 | public GetProviderCreditDetailsResult() { 34 | super(); 35 | } 36 | 37 | public ProviderCreditDetails getProviderCreditDetails() { 38 | return providerCreditDetails; 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/GetProviderCreditReversalDetailsResponse.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "", propOrder = { 25 | "getProviderCreditReversalDetailsResult", 26 | "responseMetadata" 27 | }) 28 | @XmlRootElement(name = "GetProviderCreditReversalDetailsResponse") 29 | public class GetProviderCreditReversalDetailsResponse { 30 | 31 | @XmlElement(name = "GetProviderCreditReversalDetailsResult", required = true) 32 | protected GetProviderCreditReversalDetailsResult getProviderCreditReversalDetailsResult; 33 | @XmlElement(name = "ResponseMetadata", required = true) 34 | protected ResponseMetadata responseMetadata; 35 | 36 | public GetProviderCreditReversalDetailsResponse() { 37 | super(); 38 | } 39 | 40 | public GetProviderCreditReversalDetailsResult getGetProviderCreditReversalDetailsResult() { 41 | return getProviderCreditReversalDetailsResult; 42 | } 43 | 44 | public ResponseMetadata getResponseMetadata() { 45 | return responseMetadata; 46 | } 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/GetProviderCreditReversalDetailsResult.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "", propOrder = { 25 | "providerCreditReversalDetails" 26 | }) 27 | @XmlRootElement(name = "GetProviderCreditReversalDetailsResult") 28 | public class GetProviderCreditReversalDetailsResult { 29 | 30 | @XmlElement(name = "ProviderCreditReversalDetails") 31 | protected ProviderCreditReversalDetails providerCreditReversalDetails; 32 | 33 | 34 | public GetProviderCreditReversalDetailsResult() { 35 | super(); 36 | } 37 | 38 | public ProviderCreditReversalDetails getProviderCreditReversalDetails() { 39 | return providerCreditReversalDetails; 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/GetRefundDetailsResponse.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "", propOrder = { 25 | "getRefundDetailsResult", 26 | "responseMetadata" 27 | }) 28 | @XmlRootElement(name = "GetRefundDetailsResponse") 29 | public class GetRefundDetailsResponse { 30 | @XmlElement(name = "GetRefundDetailsResult", required = true) 31 | protected GetRefundDetailsResult getRefundDetailsResult; 32 | @XmlElement(name = "ResponseMetadata", required = true) 33 | protected ResponseMetadata responseMetadata; 34 | 35 | 36 | 37 | 38 | public GetRefundDetailsResponse() { 39 | super(); 40 | } 41 | 42 | public GetRefundDetailsResult getGetRefundDetailsResult() { 43 | return getRefundDetailsResult; 44 | } 45 | 46 | public ResponseMetadata getResponseMetadata() { 47 | return responseMetadata; 48 | } 49 | 50 | 51 | } 52 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/GetRefundDetailsResult.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | 24 | @XmlAccessorType(XmlAccessType.FIELD) 25 | @XmlType(name = "", propOrder = { 26 | "refundDetails" 27 | }) 28 | @XmlRootElement(name = "GetRefundDetailsResult") 29 | public class GetRefundDetailsResult { 30 | 31 | @XmlElement(name = "RefundDetails", required = true) 32 | protected RefundDetails refundDetails; 33 | 34 | public GetRefundDetailsResult() { 35 | super(); 36 | } 37 | 38 | 39 | public RefundDetails getRefundDetails() { 40 | return refundDetails; 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/ListOrderReferenceResult.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | 16 | package com.amazon.pay.response.model; 17 | 18 | import javax.xml.bind.annotation.XmlAccessType; 19 | import javax.xml.bind.annotation.XmlAccessorType; 20 | import javax.xml.bind.annotation.XmlElement; 21 | import javax.xml.bind.annotation.XmlRootElement; 22 | import javax.xml.bind.annotation.XmlType; 23 | 24 | /** 25 | * This represents the ListOrderReferenceResult node parsed 26 | * from the Amazon Pay ListOrderReference API response. 27 | * 28 | * <ListOrderReferenceResult> 29 | * <OrderReferenceList> 30 | * <OrderReference> 31 | * ... 32 | * </OrderReference> 33 | * </OrderReferenceList> 34 | * <NextPageToken>e0306-257e-4a13-b2ad-45b891c3de2a</NextPageToken> 35 | * </ListOrderReferenceResult> 36 | * 37 | */ 38 | 39 | @XmlAccessorType(XmlAccessType.FIELD) 40 | @XmlType(name = "", propOrder = { 41 | "orderReferenceList", 42 | "nextPageToken" 43 | }) 44 | @XmlRootElement(name = "ListOrderReferenceResult") 45 | public class ListOrderReferenceResult { 46 | 47 | @XmlElement(name = "OrderReferenceList") 48 | protected OrderReferenceList orderReferenceList; 49 | 50 | @XmlElement(name = "NextPageToken", required = true) 51 | protected String nextPageToken; 52 | 53 | public ListOrderReferenceResult() { 54 | super(); 55 | } 56 | 57 | public OrderReferenceList getOrderReferenceList() { 58 | return orderReferenceList; 59 | } 60 | 61 | public String getNextPageToken() { 62 | return nextPageToken; 63 | } 64 | 65 | } 66 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/OrderReferenceList.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | 16 | package com.amazon.pay.response.model; 17 | 18 | import javax.xml.bind.annotation.XmlAccessType; 19 | import javax.xml.bind.annotation.XmlAccessorType; 20 | import javax.xml.bind.annotation.XmlElement; 21 | import javax.xml.bind.annotation.XmlRootElement; 22 | import javax.xml.bind.annotation.XmlType; 23 | import java.util.ArrayList; 24 | import java.util.List; 25 | 26 | /** 27 | * This represents the OrderReferenceList node parsed 28 | * from the Amazon Pay ListOrderReference API response. 29 | * 30 | * <OrderReferenceList> 31 | * <OrderReference> 32 | * ... 33 | * </OrderReference> 34 | * </OrderReferenceList> 35 | * 36 | */ 37 | 38 | @XmlAccessorType(XmlAccessType.FIELD) 39 | @XmlType(name = "", propOrder = { 40 | "orderReferences" 41 | }) 42 | @XmlRootElement(name = "OrderReferenceList") 43 | public class OrderReferenceList { 44 | 45 | @XmlElement(name = "OrderReference") 46 | protected List orderReferences; 47 | 48 | public OrderReferenceList() { 49 | super(); 50 | } 51 | 52 | public OrderReferenceList(final List orderReferences){ 53 | this.orderReferences = orderReferences; 54 | } 55 | 56 | public List getOrderReferences() { 57 | if (orderReferences == null){ 58 | orderReferences = new ArrayList(); 59 | } 60 | return orderReferences; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/OrderTotal.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlType; 21 | 22 | /** 23 | * The total amount of an order represented by an Order Reference object. 24 | */ 25 | @XmlAccessorType(XmlAccessType.FIELD) 26 | @XmlType(name = "OrderTotal", propOrder = { 27 | "currencyCode", 28 | "amount" 29 | }) 30 | public class OrderTotal { 31 | 32 | @XmlElement(name = "CurrencyCode") 33 | protected String currencyCode; 34 | @XmlElement(name = "Amount") 35 | protected String amount; 36 | 37 | public OrderTotal() { 38 | super(); 39 | } 40 | 41 | /** 42 | * A three-digit currency code, formatted based on the ISO 4217 standard. 43 | * 44 | * @return currencyCode 45 | */ 46 | public String getCurrencyCode() { 47 | return currencyCode; 48 | } 49 | 50 | /** 51 | * The currency amount. 52 | * 53 | * @return amount 54 | */ 55 | public String getAmount() { 56 | return amount; 57 | } 58 | 59 | @Override 60 | public String toString() { 61 | return "OrderTotal{" + "currencyCode=" + currencyCode + ", amount=" + amount + '}'; 62 | } 63 | 64 | 65 | } 66 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/ParentDetails.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlType; 21 | 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "ParentDetails", propOrder = { 25 | "id", 26 | "type" 27 | }) 28 | public class ParentDetails { 29 | 30 | @XmlElement(name = "Id", required = true) 31 | protected String id; 32 | @XmlElement(name = "Type", required = true) 33 | protected Type type; 34 | 35 | public ParentDetails() { 36 | super(); 37 | } 38 | 39 | public String getId() { 40 | return id; 41 | } 42 | 43 | public Type getType() { 44 | return type; 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/PaymentAuthenticationStatus.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | 16 | package com.amazon.pay.response.model; 17 | 18 | import javax.xml.bind.annotation.XmlAccessType; 19 | import javax.xml.bind.annotation.XmlAccessorType; 20 | import javax.xml.bind.annotation.XmlElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "PaymentAuthenticationStatus", propOrder = { 25 | "state" 26 | }) 27 | 28 | public class PaymentAuthenticationStatus { 29 | @XmlElement(name = "State") 30 | protected String state; 31 | 32 | public PaymentAuthenticationStatus() { 33 | super(); 34 | } 35 | 36 | /** 37 | * @return The Strong Customer Authentication (SCA) payment authentication status flag 38 | */ 39 | @Deprecated 40 | public String getState() { 41 | return state; 42 | } 43 | 44 | @Override 45 | public String toString() { 46 | return "PaymentAuthenticationStatus{" 47 | + "state=" + state 48 | + '}'; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/PaymentReference.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | 16 | package com.amazon.pay.response.model; 17 | 18 | import javax.xml.bind.annotation.XmlAccessType; 19 | import javax.xml.bind.annotation.XmlAccessorType; 20 | import javax.xml.bind.annotation.XmlElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "PaymentReference", propOrder = { 25 | "staticToken" 26 | }) 27 | 28 | public class PaymentReference { 29 | @XmlElement(name = "StaticToken") 30 | protected String staticToken; 31 | 32 | public PaymentReference() { 33 | super(); 34 | } 35 | 36 | /** 37 | * @return The unique payment instrument token. 38 | */ 39 | @Deprecated 40 | public String getStaticToken() { 41 | return staticToken; 42 | } 43 | 44 | @Override 45 | public String toString() { 46 | return "PaymentReference{" 47 | + "staticToken=" + staticToken 48 | + '}'; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/PaymentServiceProviderAttributes.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlType; 21 | 22 | /** 23 | * Encapsulates details about an PaymentServiceProviderAttributes object. 24 | */ 25 | @XmlAccessorType(XmlAccessType.FIELD) 26 | @XmlType(name = "", propOrder = { 27 | "paymentServiceProviderId", 28 | "paymentServiceProviderOrderId" 29 | }) 30 | 31 | public class PaymentServiceProviderAttributes { 32 | @XmlElement(name = "PaymentServiceProviderId", required = true) 33 | protected String paymentServiceProviderId; 34 | @XmlElement(name = "PaymentServiceProviderOrderId", required = true) 35 | protected String paymentServiceProviderOrderId; 36 | 37 | public PaymentServiceProviderAttributes() { 38 | super(); 39 | } 40 | 41 | /** 42 | * 43 | * @return paymentServiceProviderId 44 | */ 45 | public String getPaymentServiceProviderId() { 46 | return paymentServiceProviderId; 47 | } 48 | 49 | /** 50 | * 51 | * @return paymentServiceProviderOrderId 52 | */ 53 | public String getPaymentServiceProviderOrderId() { 54 | return paymentServiceProviderOrderId; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/Price.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlType; 21 | 22 | /** 23 | * Currency type and amount. 24 | */ 25 | @XmlAccessorType(XmlAccessType.FIELD) 26 | @XmlType(name = "Price", propOrder = { 27 | "amount", 28 | "currencyCode" 29 | }) 30 | public class Price { 31 | 32 | @XmlElement(name = "Amount", required = true) 33 | protected String amount; 34 | @XmlElement(name = "CurrencyCode", required = true) 35 | protected String currencyCode; 36 | 37 | public Price() { 38 | super(); 39 | } 40 | 41 | public Price(String amount , String currencyCode) { 42 | this.amount = amount; 43 | this.currencyCode = currencyCode; 44 | } 45 | /** 46 | * The currency amount. The number of decimal places must be appropriate 47 | * for the currency code specified. A period is the only valid decimal 48 | * separator for the amount value. 49 | * 50 | * @return amount 51 | */ 52 | public String getAmount() { 53 | return amount; 54 | } 55 | 56 | /** 57 | * Three-digit currency code. In ISO 4217 format. 58 | * 59 | * @return currencyCode 60 | */ 61 | public String getCurrencyCode() { 62 | return currencyCode; 63 | } 64 | 65 | @Override 66 | public String toString() { 67 | return "Price{" + "amount=" + amount + ", currencyCode=" + currencyCode + '}'; 68 | } 69 | 70 | 71 | } 72 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/ProviderCredit.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlType; 21 | 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "ProviderCredit", propOrder = { 25 | "providerId", 26 | "creditAmount" 27 | }) 28 | public class ProviderCredit { 29 | 30 | @XmlElement(name = "ProviderId", required = true) 31 | protected String providerId; 32 | @XmlElement(name = "CreditAmount", required = true) 33 | protected Price creditAmount; 34 | 35 | public ProviderCredit() { 36 | super(); 37 | } 38 | 39 | public ProviderCredit(String providerId, Price creditAmount) { 40 | this.providerId = providerId; 41 | this.creditAmount = creditAmount; 42 | } 43 | 44 | public String getProviderId() { 45 | return providerId; 46 | } 47 | 48 | public Price getCreditAmount() { 49 | return creditAmount; 50 | } 51 | 52 | @Override 53 | public String toString() { 54 | return "ProviderCredit{" + "providerId=" + providerId + ", creditAmount=" + creditAmount + '}'; 55 | } 56 | 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/ProviderCreditList.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import java.util.ArrayList; 18 | import java.util.List; 19 | import javax.xml.bind.annotation.XmlAccessType; 20 | import javax.xml.bind.annotation.XmlAccessorType; 21 | import javax.xml.bind.annotation.XmlElement; 22 | import javax.xml.bind.annotation.XmlType; 23 | 24 | @XmlAccessorType(XmlAccessType.FIELD) 25 | @XmlType(name = "ProviderCreditList", propOrder = { 26 | "member" 27 | }) 28 | public class ProviderCreditList { 29 | 30 | @XmlElement(required = true) 31 | protected List member; 32 | 33 | public ProviderCreditList() { 34 | super(); 35 | } 36 | 37 | public ProviderCreditList(final List member) { 38 | this.member = member; 39 | } 40 | 41 | public List getMember() { 42 | if (member == null) { 43 | member = new ArrayList(); 44 | } 45 | return this.member; 46 | } 47 | 48 | @Override 49 | public String toString() { 50 | return "ProviderCreditList{" + "member=" + member + '}'; 51 | } 52 | 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/ProviderCreditReversalList.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import java.util.ArrayList; 18 | import java.util.List; 19 | import javax.xml.bind.annotation.XmlAccessType; 20 | import javax.xml.bind.annotation.XmlAccessorType; 21 | import javax.xml.bind.annotation.XmlElement; 22 | import javax.xml.bind.annotation.XmlType; 23 | 24 | @XmlAccessorType(XmlAccessType.FIELD) 25 | @XmlType(name = "ProviderCreditReversalList", propOrder = { 26 | "member" 27 | }) 28 | public class ProviderCreditReversalList { 29 | 30 | @XmlElement(required = true) 31 | protected List member; 32 | 33 | public ProviderCreditReversalList() { 34 | super(); 35 | } 36 | 37 | public List getMember() { 38 | if (member == null) { 39 | member = new ArrayList(); 40 | } 41 | return this.member; 42 | } 43 | 44 | @Override 45 | public String toString() { 46 | return "ProviderCreditReversalList{" + "member=" + member.toString() + '}'; 47 | } 48 | 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/ProviderCreditReversalSummary.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlType; 21 | 22 | @XmlAccessorType(XmlAccessType.FIELD) 23 | @XmlType(name = "ProviderCreditReversalSummary", propOrder = { 24 | "providerId", 25 | "providerCreditReversalId" 26 | }) 27 | public class ProviderCreditReversalSummary { 28 | 29 | @XmlElement(name = "ProviderId", required = true) 30 | protected String providerId; 31 | @XmlElement(name = "ProviderCreditReversalId", required = true) 32 | protected String providerCreditReversalId; 33 | 34 | public ProviderCreditReversalSummary() { 35 | super(); 36 | } 37 | 38 | public String getProviderId() { 39 | return providerId; 40 | } 41 | 42 | public String getProviderCreditReversalId() { 43 | return providerCreditReversalId; 44 | } 45 | 46 | @Override 47 | public String toString() { 48 | return "ProviderCreditReversalSummary{" + "providerId=" + providerId + ", providerCreditReversalId=" + providerCreditReversalId + '}'; 49 | } 50 | 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/ProviderCreditReversalSummaryList.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import java.util.ArrayList; 18 | import java.util.List; 19 | import javax.xml.bind.annotation.XmlAccessType; 20 | import javax.xml.bind.annotation.XmlAccessorType; 21 | import javax.xml.bind.annotation.XmlElement; 22 | import javax.xml.bind.annotation.XmlType; 23 | 24 | @XmlAccessorType(XmlAccessType.FIELD) 25 | @XmlType(name = "ProviderCreditReversalSummaryList", propOrder = { 26 | "member" 27 | }) 28 | public class ProviderCreditReversalSummaryList { 29 | 30 | @XmlElement(required = true) 31 | protected List member; 32 | 33 | public ProviderCreditReversalSummaryList() { 34 | super(); 35 | } 36 | 37 | public List getMember() { 38 | if (member == null) { 39 | member = new ArrayList(); 40 | } 41 | return this.member; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/ProviderCreditSummary.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | 18 | import javax.xml.bind.annotation.XmlAccessType; 19 | import javax.xml.bind.annotation.XmlAccessorType; 20 | import javax.xml.bind.annotation.XmlElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "ProviderCreditSummary", propOrder = { 25 | "providerId", 26 | "providerCreditId" 27 | }) 28 | public class ProviderCreditSummary { 29 | 30 | @XmlElement(name = "ProviderId", required = true) 31 | protected String providerId; 32 | @XmlElement(name = "ProviderCreditId", required = true) 33 | protected String providerCreditId; 34 | 35 | public ProviderCreditSummary() { 36 | super(); 37 | } 38 | 39 | public String getProviderId() { 40 | return providerId; 41 | } 42 | 43 | public String getProviderCreditId() { 44 | return providerCreditId; 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/ProviderCreditSummaryList.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import java.util.ArrayList; 18 | import java.util.List; 19 | import javax.xml.bind.annotation.XmlAccessType; 20 | import javax.xml.bind.annotation.XmlAccessorType; 21 | import javax.xml.bind.annotation.XmlElement; 22 | import javax.xml.bind.annotation.XmlType; 23 | 24 | @XmlAccessorType(XmlAccessType.FIELD) 25 | @XmlType(name = "ProviderCreditSummaryList", propOrder = { 26 | "member" 27 | }) 28 | public class ProviderCreditSummaryList { 29 | 30 | @XmlElement(required = true) 31 | protected List member; 32 | 33 | public ProviderCreditSummaryList() { 34 | super(); 35 | } 36 | 37 | public List getMember() { 38 | if (member == null) { 39 | member = new ArrayList(); 40 | } 41 | return this.member; 42 | } 43 | 44 | 45 | 46 | 47 | } 48 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/RefundResponse.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "", propOrder = { 25 | "refundResult", 26 | "responseMetadata" 27 | }) 28 | @XmlRootElement(name = "RefundResponse") 29 | public class RefundResponse { 30 | 31 | @XmlElement(name = "RefundResult", required = true) 32 | protected RefundResult refundResult; 33 | @XmlElement(name = "ResponseMetadata", required = true) 34 | protected ResponseMetadata responseMetadata; 35 | 36 | 37 | public RefundResponse() { 38 | super(); 39 | } 40 | 41 | public RefundResult getRefundResult() { 42 | return refundResult; 43 | } 44 | 45 | public ResponseMetadata getResponseMetadata() { 46 | return responseMetadata; 47 | } 48 | 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/RefundResult.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "", propOrder = { 25 | "refundDetails" 26 | }) 27 | @XmlRootElement(name = "RefundResult") 28 | public class RefundResult { 29 | 30 | @XmlElement(name = "RefundDetails", required = true) 31 | protected RefundDetails refundDetails; 32 | 33 | public RefundResult() { 34 | super(); 35 | } 36 | 37 | public RefundDetails getRefundDetails() { 38 | return refundDetails; 39 | } 40 | 41 | 42 | } 43 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/RefundType.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlEnum; 18 | import javax.xml.bind.annotation.XmlEnumValue; 19 | import javax.xml.bind.annotation.XmlType; 20 | 21 | @XmlType(name = "RefundType") 22 | @XmlEnum 23 | public enum RefundType { 24 | 25 | @XmlEnumValue("AmazonA-ZRefund") 26 | AMAZON_A_Z_REFUND("AmazonA-ZRefund"), 27 | @XmlEnumValue("AmazonA-ZGuarantee") 28 | AMAZON_A_Z_GUARANTEE("AmazonA-ZGuarantee"), 29 | @XmlEnumValue("AmazonA-ZCancel") 30 | AMAZON_A_Z_CANCEL("AmazonA-ZCancel"), 31 | @XmlEnumValue("SellerInitiated") 32 | SELLER_INITIATED("SellerInitiated"), 33 | @XmlEnumValue("Chargeback") 34 | CHARGEBACK("Chargeback"); 35 | private final String value; 36 | 37 | RefundType(String v) { 38 | value = v; 39 | } 40 | 41 | public String value() { 42 | return value; 43 | } 44 | 45 | @Override 46 | public String toString() { 47 | return value(); 48 | } 49 | 50 | public static RefundType fromValue(String v) { 51 | for (RefundType c: RefundType.values()) { 52 | if (c.value.equals(v)) { 53 | return c; 54 | } 55 | } 56 | throw new IllegalArgumentException(v); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/RequestStatus.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlEnum; 18 | import javax.xml.bind.annotation.XmlEnumValue; 19 | import javax.xml.bind.annotation.XmlType; 20 | 21 | @XmlType(name = "RequestStatus") 22 | @XmlEnum 23 | public enum RequestStatus { 24 | 25 | @XmlEnumValue("Success") 26 | SUCCESS("Success"), 27 | @XmlEnumValue("Failure") 28 | FAILURE("Failure"); 29 | private final String value; 30 | 31 | RequestStatus(String v) { 32 | value = v; 33 | } 34 | 35 | public String value() { 36 | return value; 37 | } 38 | 39 | @Override 40 | public String toString() { 41 | return value(); 42 | } 43 | 44 | public static RequestStatus fromValue(String v) { 45 | for (RequestStatus c: RequestStatus.values()) { 46 | if (c.value.equals(v)) { 47 | return c; 48 | } 49 | } 50 | throw new IllegalArgumentException(v); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/ResponseMetadata.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "", propOrder = { 25 | "requestId" 26 | }) 27 | @XmlRootElement(name = "ResponseMetadata") 28 | public class ResponseMetadata { 29 | 30 | @XmlElement(name = "RequestId", required = true) 31 | protected String requestId; 32 | 33 | public ResponseMetadata() { 34 | super(); 35 | } 36 | 37 | 38 | public String getRequestId() { 39 | return requestId; 40 | } 41 | 42 | /** 43 | * Returns the string representation of ResponseMetadata 44 | */ 45 | @Override 46 | public String toString() { 47 | return "ResponseMetadata{" + "requestId=" + requestId + '}'; 48 | } 49 | 50 | 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/ReverseProviderCreditResponse.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "", propOrder = { 25 | "reverseProviderCreditResult", 26 | "responseMetadata" 27 | }) 28 | @XmlRootElement(name = "ReverseProviderCreditResponse") 29 | public class ReverseProviderCreditResponse { 30 | 31 | @XmlElement(name = "ReverseProviderCreditResult", required = true) 32 | protected ReverseProviderCreditResult reverseProviderCreditResult; 33 | @XmlElement(name = "ResponseMetadata", required = true) 34 | protected ResponseMetadata responseMetadata; 35 | 36 | public ReverseProviderCreditResponse() { 37 | super(); 38 | } 39 | 40 | public ReverseProviderCreditResult getReverseProviderCreditResult() { 41 | return reverseProviderCreditResult; 42 | } 43 | 44 | public ResponseMetadata getResponseMetadata() { 45 | return responseMetadata; 46 | } 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/ReverseProviderCreditResult.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */package com.amazon.pay.response.model; 15 | 16 | import javax.xml.bind.annotation.XmlAccessType; 17 | import javax.xml.bind.annotation.XmlAccessorType; 18 | import javax.xml.bind.annotation.XmlElement; 19 | import javax.xml.bind.annotation.XmlRootElement; 20 | import javax.xml.bind.annotation.XmlType; 21 | 22 | @XmlAccessorType(XmlAccessType.FIELD) 23 | @XmlType(name = "", propOrder = { 24 | "providerCreditReversalDetails" 25 | }) 26 | @XmlRootElement(name = "ReverseProviderCreditResult") 27 | public class ReverseProviderCreditResult { 28 | 29 | @XmlElement(name = "ProviderCreditReversalDetails") 30 | protected ProviderCreditReversalDetails providerCreditReversalDetails; 31 | 32 | public ReverseProviderCreditResult() { 33 | super(); 34 | } 35 | 36 | public ProviderCreditReversalDetails getProviderCreditReversalDetails() { 37 | return providerCreditReversalDetails; 38 | } 39 | 40 | 41 | } 42 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/ServiceStatus.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlEnum; 18 | import javax.xml.bind.annotation.XmlEnumValue; 19 | import javax.xml.bind.annotation.XmlType; 20 | 21 | @XmlType(name = "Status") 22 | @XmlEnum 23 | public enum ServiceStatus { 24 | 25 | @XmlEnumValue("GREEN") 26 | GREEN, 27 | @XmlEnumValue("GREEN_I") 28 | GREEN_I, 29 | @XmlEnumValue("YELLOW") 30 | YELLOW, 31 | @XmlEnumValue("RED") 32 | RED; 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/SetBillingAgreementDetailsResponse.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "", propOrder = { 25 | "setBillingAgreementDetailsResult", 26 | "responseMetadata" 27 | }) 28 | @XmlRootElement(name = "SetBillingAgreementDetailsResponse") 29 | public class SetBillingAgreementDetailsResponse { 30 | 31 | @XmlElement(name = "SetBillingAgreementDetailsResult", required = true) 32 | protected SetBillingAgreementDetailsResult setBillingAgreementDetailsResult; 33 | @XmlElement(name = "ResponseMetadata", required = true) 34 | protected ResponseMetadata responseMetadata; 35 | 36 | public SetBillingAgreementDetailsResponse() { 37 | super(); 38 | } 39 | 40 | public SetBillingAgreementDetailsResult getSetBillingAgreementDetailsResult() { 41 | return setBillingAgreementDetailsResult; 42 | } 43 | 44 | public ResponseMetadata getResponseMetadata() { 45 | return responseMetadata; 46 | } 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/SetBillingAgreementDetailsResult.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | 24 | @XmlAccessorType(XmlAccessType.FIELD) 25 | @XmlType(name = "", propOrder = { 26 | "billingAgreementDetails" 27 | }) 28 | @XmlRootElement(name = "SetBillingAgreementDetailsResult") 29 | public class SetBillingAgreementDetailsResult { 30 | 31 | @XmlElement(name = "BillingAgreementDetails") 32 | protected BillingAgreementDetails billingAgreementDetails; 33 | 34 | public SetBillingAgreementDetailsResult() { 35 | super(); 36 | } 37 | 38 | public BillingAgreementDetails getBillingAgreementDetails() { 39 | return billingAgreementDetails; 40 | } 41 | 42 | 43 | } 44 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/SetOrderAttributesResult.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | 16 | package com.amazon.pay.response.model; 17 | 18 | import javax.xml.bind.annotation.XmlAccessType; 19 | import javax.xml.bind.annotation.XmlAccessorType; 20 | import javax.xml.bind.annotation.XmlElement; 21 | import javax.xml.bind.annotation.XmlRootElement; 22 | import javax.xml.bind.annotation.XmlType; 23 | 24 | /** 25 | * This represents the SetOrderAttributesResult node parsed 26 | * from the Amazon Pay SetOrderAttributes API response. 27 | * 28 | * <SetOrderAttributesResult> 29 | * <OrderReferenceDetails> 30 | * ... 31 | * </OrderReferenceDetails> 32 | * </SetOrderAttributesResult> 33 | * 34 | */ 35 | 36 | @XmlAccessorType(XmlAccessType.FIELD) 37 | @XmlType(name = "", propOrder = { 38 | "orderReferenceDetails" 39 | }) 40 | @XmlRootElement(name = "SetOrderAttributesResult") 41 | public class SetOrderAttributesResult { 42 | 43 | @XmlElement(name = "OrderReferenceDetails") 44 | protected OrderReferenceDetails orderReferenceDetails; 45 | 46 | public SetOrderAttributesResult() { 47 | super(); 48 | } 49 | 50 | public OrderReferenceDetails getOrderReferenceDetails() { 51 | return orderReferenceDetails; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/SetOrderReferenceDetailsResponse.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "", propOrder = { 25 | "setOrderReferenceDetailsResult", 26 | "responseMetadata" 27 | }) 28 | @XmlRootElement(name = "SetOrderReferenceDetailsResponse") 29 | public class SetOrderReferenceDetailsResponse { 30 | 31 | @XmlElement(name = "SetOrderReferenceDetailsResult", required = true) 32 | protected SetOrderReferenceDetailsResult setOrderReferenceDetailsResult; 33 | @XmlElement(name = "ResponseMetadata", required = true) 34 | protected ResponseMetadata responseMetadata; 35 | 36 | 37 | public SetOrderReferenceDetailsResponse() { 38 | super(); 39 | } 40 | 41 | 42 | public SetOrderReferenceDetailsResult getSetOrderReferenceDetailsResult() { 43 | return setOrderReferenceDetailsResult; 44 | } 45 | 46 | public ResponseMetadata getResponseMetadata() { 47 | return responseMetadata; 48 | } 49 | 50 | 51 | } 52 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/SetOrderReferenceDetailsResult.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | @XmlAccessorType(XmlAccessType.FIELD) 24 | @XmlType(name = "", propOrder = { 25 | "orderReferenceDetails" 26 | }) 27 | @XmlRootElement(name = "SetOrderReferenceDetailsResult") 28 | public class SetOrderReferenceDetailsResult { 29 | 30 | @XmlElement(name = "OrderReferenceDetails") 31 | protected OrderReferenceDetails orderReferenceDetails; 32 | 33 | public SetOrderReferenceDetailsResult() { 34 | super(); 35 | } 36 | 37 | public OrderReferenceDetails getOrderReferenceDetails() { 38 | return orderReferenceDetails; 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/SolutionProviderOption.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlType; 21 | 22 | @XmlAccessorType(XmlAccessType.FIELD) 23 | @XmlType(name = "SolutionProviderOption", propOrder = { "name", "value" }) 24 | public class SolutionProviderOption { 25 | 26 | @XmlElement(name = "name") 27 | protected String name; 28 | @XmlElement(name = "value") 29 | protected String value; 30 | 31 | public SolutionProviderOption() { 32 | super(); 33 | } 34 | 35 | public SolutionProviderOption(final String name, final String value) { 36 | this.name = name; 37 | this.value = value; 38 | } 39 | 40 | public String getName() { 41 | return name; 42 | } 43 | 44 | public String getValue() { 45 | return value; 46 | } 47 | 48 | @Override 49 | public String toString() { 50 | return "SolutionProviderOption{" + "name=" + name + ", value=" + value + '}'; 51 | } 52 | 53 | 54 | 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/SolutionProviderOptions.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | 18 | import java.util.ArrayList; 19 | import java.util.List; 20 | import javax.xml.bind.annotation.XmlAccessType; 21 | import javax.xml.bind.annotation.XmlAccessorType; 22 | import javax.xml.bind.annotation.XmlElement; 23 | import javax.xml.bind.annotation.XmlType; 24 | 25 | 26 | 27 | @XmlAccessorType(XmlAccessType.FIELD) 28 | @XmlType(name = "SolutionProviderOptions", propOrder = { 29 | "solutionProviderOption" 30 | }) 31 | public class SolutionProviderOptions { 32 | 33 | @XmlElement(name = "SolutionProviderOption", required = true) 34 | protected List solutionProviderOption; 35 | 36 | public SolutionProviderOptions() { 37 | super(); 38 | } 39 | 40 | public SolutionProviderOptions(final List solutionProviderOption) { 41 | this.solutionProviderOption = solutionProviderOption; 42 | } 43 | 44 | public List getSolutionProviderOption() { 45 | if (solutionProviderOption == null) { 46 | solutionProviderOption = new ArrayList(); 47 | } 48 | return this.solutionProviderOption; 49 | } 50 | 51 | @Override 52 | public String toString() { 53 | return "SolutionProviderOptions{" + "solutionProviderOption=" + solutionProviderOption.toString() + '}'; 54 | } 55 | 56 | 57 | } 58 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/Type.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlEnum; 18 | import javax.xml.bind.annotation.XmlEnumValue; 19 | import javax.xml.bind.annotation.XmlType; 20 | 21 | 22 | @XmlType(name = "Type") 23 | @XmlEnum 24 | public enum Type { 25 | 26 | @XmlEnumValue("OrderReference") 27 | ORDER_REFERENCE("OrderReference"), 28 | @XmlEnumValue("BillingAgreement") 29 | BILLING_AGREEMENT("BillingAgreement"), 30 | @XmlEnumValue("ChildOrderReference") 31 | CHILD_ORDER_REFERENCE("ChildOrderReference"); 32 | private final String value; 33 | 34 | Type(String v) { 35 | value = v; 36 | } 37 | 38 | public String value() { 39 | return value; 40 | } 41 | 42 | @Override 43 | public String toString() { 44 | return value(); 45 | } 46 | 47 | public static Type fromValue(String v) { 48 | for (Type c: Type.values()) { 49 | if (c.value.equals(v)) { 50 | return c; 51 | } 52 | } 53 | throw new IllegalArgumentException(v); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/model/ValidateBillingAgreementResponse.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.model; 16 | 17 | import javax.xml.bind.annotation.XmlAccessType; 18 | import javax.xml.bind.annotation.XmlAccessorType; 19 | import javax.xml.bind.annotation.XmlElement; 20 | import javax.xml.bind.annotation.XmlRootElement; 21 | import javax.xml.bind.annotation.XmlType; 22 | 23 | 24 | @XmlAccessorType(XmlAccessType.FIELD) 25 | @XmlType(name = "", propOrder = { 26 | "validateBillingAgreementResult", 27 | "responseMetadata" 28 | }) 29 | @XmlRootElement(name = "ValidateBillingAgreementResponse") 30 | public class ValidateBillingAgreementResponse { 31 | 32 | @XmlElement(name = "ValidateBillingAgreementResult", required = true) 33 | protected ValidateBillingAgreementResult validateBillingAgreementResult; 34 | @XmlElement(name = "ResponseMetadata", required = true) 35 | protected ResponseMetadata responseMetadata; 36 | 37 | public ValidateBillingAgreementResponse() { 38 | super(); 39 | } 40 | 41 | public ValidateBillingAgreementResult getValidateBillingAgreementResult() { 42 | return validateBillingAgreementResult; 43 | } 44 | 45 | public ResponseMetadata getResponseMetadata() { 46 | return responseMetadata; 47 | } 48 | 49 | 50 | 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/parser/CancelOrderReferenceResponseData.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.parser; 16 | 17 | import com.amazon.pay.response.model.CancelOrderReferenceResponse; 18 | import java.io.Serializable; 19 | 20 | /** 21 | * Response from CancelOrderReferenceResponse service API, as returned by Amazon Pay 22 | */ 23 | public final class CancelOrderReferenceResponseData extends ResponseData implements Serializable{ 24 | 25 | private String requestId; 26 | 27 | public CancelOrderReferenceResponseData(CancelOrderReferenceResponse cancelOrderReferenceResponse , ResponseData rawResponse) { 28 | super(rawResponse); 29 | if(cancelOrderReferenceResponse != null) { 30 | if(cancelOrderReferenceResponse.getResponseMetadata() != null) { 31 | this.requestId = cancelOrderReferenceResponse.getResponseMetadata().getRequestId(); 32 | } 33 | } 34 | } 35 | 36 | /** 37 | * The requestID that uniquely identifies the service request 38 | * the caller made. 39 | * 40 | * @return The requestID that uniquely identifies the service request 41 | * the caller made. 42 | */ 43 | public String getRequestId() { 44 | return requestId; 45 | } 46 | 47 | /** 48 | * Returns the string representation of CancelOrderReferenceResponseData 49 | */ 50 | @Override 51 | public String toString() { 52 | return "CancelOrderReferenceResponseData{" + "requestId=" + requestId + '}'; 53 | } 54 | 55 | 56 | 57 | } 58 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/parser/CloseAuthorizationResponseData.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.parser; 16 | 17 | import com.amazon.pay.response.model.CloseAuthorizationResponse; 18 | import java.io.Serializable; 19 | 20 | /** 21 | * Response from CloseAuthorization service API, as returned by Amazon Pay 22 | */ 23 | public final class CloseAuthorizationResponseData extends ResponseData implements Serializable{ 24 | 25 | private String requestId; 26 | 27 | public CloseAuthorizationResponseData(CloseAuthorizationResponse closeAuthorizationResponse , ResponseData rawResponse) { 28 | super(rawResponse); 29 | if(closeAuthorizationResponse != null) { 30 | if(closeAuthorizationResponse.getResponseMetadata() != null) { 31 | this.requestId = closeAuthorizationResponse.getResponseMetadata().getRequestId(); 32 | } 33 | } 34 | } 35 | 36 | /** 37 | * The requestID that uniquely identifies the service request 38 | * the caller made. 39 | * 40 | * @return The requestID that uniquely identifies the service request 41 | * the caller made. 42 | */ 43 | public String getRequestId() { 44 | return requestId; 45 | } 46 | 47 | /** 48 | * Returns the string representation of CloseAuthorizationResponseData 49 | */ 50 | @Override 51 | public String toString() { 52 | return "CloseAuthorizationResponseData{" + "requestId=" + requestId + '}'; 53 | } 54 | 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/parser/CloseBillingAgreementResponseData.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.parser; 16 | 17 | import com.amazon.pay.response.model.CloseBillingAgreementResponse; 18 | import java.io.Serializable; 19 | 20 | /** 21 | * Response from CloseBillingAgreement service API, as returned by Amazon Pay 22 | */ 23 | public final class CloseBillingAgreementResponseData extends ResponseData implements Serializable{ 24 | 25 | private String requestId; 26 | 27 | public CloseBillingAgreementResponseData(CloseBillingAgreementResponse closeBillingAgreementResponse , ResponseData rawResponse) { 28 | super(rawResponse); 29 | if(closeBillingAgreementResponse != null) { 30 | if(closeBillingAgreementResponse.getResponseMetadata() != null) { 31 | this.requestId = closeBillingAgreementResponse.getResponseMetadata().getRequestId(); 32 | } 33 | } 34 | } 35 | 36 | 37 | /** 38 | * The requestID that uniquely identifies the service request 39 | * the caller made. 40 | * 41 | * @return The requestID that uniquely identifies the service request 42 | * the caller made. 43 | */ 44 | public String getRequestId() { 45 | return requestId; 46 | } 47 | 48 | /** 49 | * Returns the string representation of CloseBillingAgreementResponseData 50 | */ 51 | @Override 52 | public String toString() { 53 | return "CloseBillingAgreementResponseData{" + "requestId=" + requestId + '}'; 54 | } 55 | 56 | 57 | } 58 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/parser/CloseOrderReferenceResponseData.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.parser; 16 | 17 | import com.amazon.pay.response.model.CloseOrderReferenceResponse; 18 | import java.io.Serializable; 19 | 20 | /** 21 | * Response from CloseOrderReference service API, as returned by Amazon Pay 22 | */ 23 | public final class CloseOrderReferenceResponseData extends ResponseData implements Serializable{ 24 | 25 | private String requestId; 26 | 27 | public CloseOrderReferenceResponseData(CloseOrderReferenceResponse closeOrderReferenceResponse , ResponseData rawResponse) { 28 | super(rawResponse); 29 | if(closeOrderReferenceResponse != null) { 30 | if(closeOrderReferenceResponse.getResponseMetadata() != null) { 31 | this.requestId = closeOrderReferenceResponse.getResponseMetadata().getRequestId(); 32 | } 33 | } 34 | } 35 | 36 | /** 37 | * The requestID that uniquely identifies the service request 38 | * the caller made. 39 | * 40 | * @return The requestID that uniquely identifies the service request 41 | * the caller made. 42 | */ 43 | public String getRequestId() { 44 | return requestId; 45 | } 46 | 47 | /** 48 | * Returns the string representation of CloseOrderReferenceResponseData 49 | */ 50 | @Override 51 | public String toString() { 52 | return "CloseOrderReferenceResponseData{" + "requestId=" + requestId + '}'; 53 | } 54 | 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/parser/ConfirmBillingAgreementResponseData.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.parser; 16 | 17 | import com.amazon.pay.response.model.ConfirmBillingAgreementResponse; 18 | import java.io.Serializable; 19 | 20 | /** 21 | * Response from ConfirmBillingAgreement service API, as returned by Amazon Pay 22 | */ 23 | public final class ConfirmBillingAgreementResponseData extends ResponseData implements Serializable{ 24 | 25 | private String requestId; 26 | 27 | public ConfirmBillingAgreementResponseData(ConfirmBillingAgreementResponse confirmBillingAgreementResponse , ResponseData rawResponse) { 28 | super(rawResponse); 29 | if(confirmBillingAgreementResponse != null) { 30 | if(confirmBillingAgreementResponse.getResponseMetadata() != null) { 31 | this.requestId = confirmBillingAgreementResponse.getResponseMetadata().getRequestId(); 32 | } 33 | } 34 | } 35 | 36 | 37 | /** 38 | * The requestID that uniquely identifies the service request 39 | * the caller made. 40 | * 41 | * @return The requestID that uniquely identifies the service request 42 | * the caller made. 43 | */ 44 | public String getRequestId() { 45 | return requestId; 46 | } 47 | 48 | /** 49 | * Returns the string representation of ConfirmBillingAgreementResponseData 50 | */ 51 | @Override 52 | public String toString() { 53 | return "ConfirmBillingAgreementResponseData{" + "requestId=" + requestId + '}'; 54 | } 55 | 56 | 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/parser/ConfirmOrderReferenceResponseData.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.response.parser; 16 | 17 | import com.amazon.pay.response.model.ConfirmOrderReferenceResponse; 18 | import java.io.Serializable; 19 | 20 | /** 21 | * Response from ConfirmOrderReference service API, as returned by Amazon Pay 22 | */ 23 | public final class ConfirmOrderReferenceResponseData extends ResponseData implements Serializable { 24 | 25 | private String requestId; 26 | 27 | public ConfirmOrderReferenceResponseData(ConfirmOrderReferenceResponse confirmOrderReferenceResponse , ResponseData rawResponse) { 28 | super(rawResponse); 29 | if(confirmOrderReferenceResponse != null) { 30 | if(confirmOrderReferenceResponse.getResponseMetadata() != null) { 31 | this.requestId = confirmOrderReferenceResponse.getResponseMetadata().getRequestId(); 32 | } 33 | } 34 | } 35 | 36 | /** 37 | * The requestID that uniquely identifies the service request 38 | * the caller made. 39 | * 40 | * @return The requestID that uniquely identifies the service request 41 | * the caller made. 42 | */ 43 | public String getRequestId() { 44 | return requestId; 45 | } 46 | 47 | /** 48 | * Returns the string representation of ConfirmOrderReferenceResponseData 49 | */ 50 | @Override 51 | public String toString() { 52 | return "ConfirmOrderReferenceResponseData{" + "requestId=" + requestId + '}'; 53 | } 54 | 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/com/amazon/pay/response/parser/GetPaymentDetails.java: -------------------------------------------------------------------------------- 1 | package com.amazon.pay.response.parser; 2 | 3 | import com.amazon.pay.response.model.AuthorizationDetails; 4 | import com.amazon.pay.response.model.CaptureDetails; 5 | import com.amazon.pay.response.model.OrderReferenceDetails; 6 | import com.amazon.pay.response.model.RefundDetails; 7 | 8 | 9 | import java.util.Map; 10 | import java.util.HashMap; 11 | 12 | public class GetPaymentDetails { 13 | 14 | private OrderReferenceDetails orderReferenceDetails; 15 | private String id; 16 | private Map authorizationDetails = new HashMap(); 17 | private Map captureDetails = new HashMap(); 18 | private Map refundDetails = new HashMap(); 19 | 20 | 21 | public void putOrderReferenceDetails(String id, OrderReferenceDetails orderReferenceResponse){ 22 | this.orderReferenceDetails = orderReferenceResponse; 23 | this.id = id; 24 | } 25 | 26 | public void putAuthorizationDetails(String id, AuthorizationDetails authorizeResponse){ 27 | authorizationDetails.put(id, authorizeResponse); 28 | } 29 | 30 | public void putCaptureDetails(String id, CaptureDetails captureResponse){ 31 | captureDetails.put(id, captureResponse); 32 | } 33 | 34 | public void putRefundDetails(String id, RefundDetails refundResponse){ 35 | refundDetails.put(id, refundResponse); 36 | } 37 | 38 | public OrderReferenceDetails getOrderReferenceDetails(){ 39 | return orderReferenceDetails; 40 | } 41 | 42 | public Map getAuthorizationDetails(){ 43 | return authorizationDetails; 44 | } 45 | 46 | public Map getCaptureDetails(){ 47 | return captureDetails; 48 | } 49 | public Map getRefundDetails(){ 50 | return refundDetails; 51 | } 52 | 53 | 54 | 55 | } 56 | -------------------------------------------------------------------------------- /src/com/amazon/pay/types/AmazonReferenceIdType.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.types; 16 | 17 | /** 18 | * Represents if identifier represents OrderReferenceId or BillingAgreementId. 19 | */ 20 | public enum AmazonReferenceIdType { 21 | ORDER_REFERENCE_ID("OrderReference"), 22 | BILLING_AGREEMENT_ID("BillingAgreement"); 23 | 24 | private String value; 25 | 26 | private AmazonReferenceIdType(final String value) { 27 | this.value = value; 28 | } 29 | 30 | public String value() { 31 | return value; 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/com/amazon/pay/types/BillingAgreementType.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | 16 | package com.amazon.pay.types; 17 | 18 | /** 19 | * Attribute to determine whether the Billing Agreement is merchant initiated or customer initiated. 20 | */ 21 | 22 | public enum BillingAgreementType { 23 | CustomerInitiatedTransaction, 24 | MerchantInitiatedTransaction 25 | } 26 | -------------------------------------------------------------------------------- /src/com/amazon/pay/types/CurrencyCode.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.types; 16 | 17 | /** 18 | * Represents the currency code supported by Amazon Pay API, 19 | * see: ISO-4217 current codes 20 | */ 21 | public enum CurrencyCode { 22 | USD, // US Dollar (default for US region) 23 | EUR, // Euro (default for DE region) 24 | GBP, // British Pound (default for UK region) 25 | JPY, // Japanese Yen (default for JP region) 26 | 27 | /* Following currencies are available as alternate 28 | * "PresentmentCurrencies" for DE/UK merchants when 29 | * whitelisted for the "Multi-currency" feature 30 | */ 31 | 32 | AUD, // Australian Dollar 33 | ZAR, // South African Rand 34 | CHF, // Swiss Franc 35 | NOK, // Norwegian Krone 36 | DKK, // Danish Krone 37 | SEK, // Swedish Krone 38 | NZD, // New Zealand Dollar 39 | HKD; // Hong Kong Dollar 40 | } 41 | -------------------------------------------------------------------------------- /src/com/amazon/pay/types/Key.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.types; 16 | 17 | /** 18 | * Represents the Pay configuration values 19 | */ 20 | public enum Key { 21 | ACCESS_KEY, 22 | SECRET_KEY, 23 | APPLICATION_NAME, 24 | APPLICATION_VERSION, 25 | MERCHANT_ID, 26 | ENVIRONMENT, 27 | REGION, 28 | CURRENCY_CODE, 29 | PROXY_HOST, 30 | PROXY_PORT, 31 | PROXY_USERNAME, 32 | PROXY_PASSWORD, 33 | AUTO_RETRY_ON_THROTTLE, 34 | OVERRIDE_SERVICE_URL, 35 | OVERRIDE_PROFILE_URL 36 | } 37 | -------------------------------------------------------------------------------- /src/com/amazon/pay/types/OrderReferenceStatus.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.types; 16 | 17 | /** 18 | * Represents if order status is open, closed, canceled or suspended. 19 | */ 20 | public enum OrderReferenceStatus { 21 | OPEN, 22 | CLOSED, 23 | // CANCELED spelled with a single 'L' on purpose as the API accepts it only this way. 24 | CANCELED, 25 | SUSPENDED; 26 | } 27 | -------------------------------------------------------------------------------- /src/com/amazon/pay/types/Region.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.types; 16 | 17 | /* 18 | * This enum class represents region codes for 19 | * United States(US), United Kingdom(UK), Germany(DE) and Japan(JP) 20 | * 21 | * DEVO Regions are for Amazon use only (integration test pipeline). 22 | */ 23 | 24 | public enum Region { 25 | DE, UK, US, JP; 26 | } 27 | -------------------------------------------------------------------------------- /src/com/amazon/pay/types/SortOrder.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.types; 16 | 17 | /** 18 | * Represents the order in which order references can be sorted by creationTimestamp. 19 | */ 20 | public enum SortOrder { 21 | Ascending, 22 | Descending 23 | } -------------------------------------------------------------------------------- /src/com/amazon/pay/types/User.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"). 5 | * You may not use this file except in compliance with the License. 6 | * A copy of the License is located at 7 | * 8 | * http://aws.amazon.com/apache2.0 9 | * 10 | * or in the "license" file accompanying this file. This file is distributed 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 | * express or implied. See the License for the specific language governing 13 | * permissions and limitations under the License. 14 | */ 15 | package com.amazon.pay.types; 16 | 17 | /** 18 | * Represents user information as returned by the service. 19 | */ 20 | public final class User { 21 | 22 | private String name; 23 | private String email; 24 | private String user_id; 25 | 26 | public String getName() { 27 | return name; 28 | } 29 | 30 | public String getEmail() { 31 | return email; 32 | } 33 | 34 | public String getUserId() { 35 | return user_id; 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /tst/.gitkeep: -------------------------------------------------------------------------------- 1 | Feel free to delete this file as soon as actual Java code is added to this directory. 2 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/impl/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "merchant_id": "TEST_MERCHANT_ID", 3 | "access_key": "TEST_ACCESS_KEY", 4 | "secret_key": "TEST_SECRET_KEY", 5 | "currency_code": "usd", 6 | "region": "US", 7 | "environment": "Live", 8 | "application_name": "myApp", 9 | "application_version": "1.0", 10 | "proxy_host": "host", 11 | "proxy_port": "80", 12 | "proxy_Username": "test", 13 | "proxy_password": "crypto", 14 | "auto_retry_on_throttle" : "true" 15 | } 16 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/impl/config.properties: -------------------------------------------------------------------------------- 1 | merchant_id=TEST_MERCHANT_ID 2 | access_key=TEST_ACCESS_KEY 3 | secret_key=TEST_SECRET_KEY 4 | currency_code=usd 5 | region=US 6 | environment=Live 7 | application_name=myApp 8 | application_version=1.0 9 | proxy_host=host 10 | proxy_port=80 11 | proxy_username=test 12 | proxy_password=crypto 13 | auto_retry_on_throttle=true 14 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/impl/config_override.json: -------------------------------------------------------------------------------- 1 | { 2 | "merchant_id": "TEST_MERCHANT_ID", 3 | "access_key": "TEST_ACCESS_KEY", 4 | "secret_key": "TEST_SECRET_KEY", 5 | "currency_code": "usd", 6 | "region": "US", 7 | "environment": "Live", 8 | "application_name": "myApp", 9 | "application_version": "1.0", 10 | "proxy_host": "host", 11 | "proxy_port": "80", 12 | "proxy_Username": "test", 13 | "proxy_password": "crypto", 14 | "auto_retry_on_throttle" : "true", 15 | "override_service_url" : "https://override.service.test", 16 | "override_profile_url" : "https://override.profile.test" 17 | } 18 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/impl/config_override.properties: -------------------------------------------------------------------------------- 1 | merchant_id=TEST_MERCHANT_ID 2 | access_key=TEST_ACCESS_KEY 3 | secret_key=TEST_SECRET_KEY 4 | currency_code=usd 5 | region=US 6 | environment=Live 7 | application_name=myApp 8 | application_version=1.0 9 | proxy_host=host 10 | proxy_port=80 11 | proxy_username=test 12 | proxy_password=crypto 13 | auto_retry_on_throttle=true 14 | override_service_url=https://override.service.test 15 | override_profile_url=https://override.profile.test 16 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/impl/ipn/json/ChargebackNotification_Service.json: -------------------------------------------------------------------------------- 1 | { 2 | "Type" : "Notification", 3 | "MessageId" : "83d848c9-7376-56f8-b5a7-1ae9be88a82a", 4 | "TopicArn" : "arn:aws:sns:us-east-1:598607868003:A35A4JO734ER04A08593053M41F7TQ7YR7W", 5 | "Message" : "{\"ReleaseEnvironment\":\"Live\",\"MarketplaceID\":\"165570\",\"Version\":\"2013-01-01\",\"NotificationType\":\"Chargeback Detailed Notification\",\"SellerId\":\"A08593053M41F7TQ7YR7W\",\"NotificationReferenceId\":\"9bc8ec61-da88-4b63-b201-dc7afeaae764\",\"Timestamp\":\"2017-08-30T14:29:18.833Z\",\"NotificationData\":\"\\n \\n C9KORZRXQ655G<\\/AmazonChargebackId>\\n P01-7128087-7259534<\\/AmazonOrderReferenceId>\\n CaptureReference6282176<\\/AmazonCaptureReferenceId>\\n 2017-08-23T12:20:56.061Z<\\/CreationTimestamp>\\n \\n 100.0<\\/Amount>\\n USD<\\/CurrencyCode>\\n <\\/ChargebackAmount>\\n RECEIVED<\\/ChargebackState>\\n Generic Service Chargeback<\\/ChargebackReason>\\n <\\/ChargebackDetails>\\n<\\/ChargebackNotification>\"}", 6 | "Timestamp" : "2017-08-30T14:29:18.908Z", 7 | "SignatureVersion" : "1", 8 | "Signature" : "XOYWtZKrjKXws8V2Ulx4GMUoMa3e10dok4cHlz6vs/BwFiQkC6KqhP0KIaOzIMu3V1WK7+0Kp7wC6F5MuxnumdcDIFFrL/hCLHHeDRWKzogcTCXjstNjoA0tWqsN0OHmIiP0VWTtXYswRL2+FFMd5q2JBkmlAONv/cbOcsWR++2Aa6K2Nf2VWxjW3iykJmnmruAtGctM68xjBv2Q6F3uBaHLKgsD02er+sU5rUWXYSr0qzHMx5AK+lrHuTbvZ7scHGWWGRufAmmq94D8wXXiWlL3h8TK5Abes5upfJiAaG6NikppD+wzBQ0NhDczJhmodCh+aVIcA8NAol/hOclX9A==", 9 | "SigningCertURL" : "https://sns.us-east-1.amazonaws.com/SimpleNotificationService-433026a4050d206028891664da859041.pem", 10 | "UnsubscribeURL" : "https://sns.us-east-1.amazonaws.com/?Action=Unsubscribe&SubscriptionArn=arn:aws:sns:us-east-1:598607868003:A35A4JO734ER04A08593053M41F7TQ7YR7W:413d945a-6cc4-4c6f-a45a-c5c0918b03b9" 11 | } 12 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/impl/ipn/json/ChargebackNotification_Unauthorized.json: -------------------------------------------------------------------------------- 1 | { 2 | "Type" : "Notification", 3 | "MessageId" : "22ed5c15-c3c8-5e74-aceb-0e350c4a2620", 4 | "TopicArn" : "arn:aws:sns:us-east-1:598607868003:A35A4JO734ER04A08593053M41F7TQ7YR7W", 5 | "Message" : "{\"ReleaseEnvironment\":\"Live\",\"MarketplaceID\":\"165570\",\"Version\":\"2013-01-01\",\"NotificationType\":\"Chargeback Detailed Notification\",\"SellerId\":\"A08593053M41F7TQ7YR7W\",\"NotificationReferenceId\":\"73658979-2175-4306-a305-9fbdf442423e\",\"Timestamp\":\"2017-08-30T14:35:46.278Z\",\"NotificationData\":\"\\n \\n C9KORZRXQ655G<\\/AmazonChargebackId>\\n P01-7128087-7259534<\\/AmazonOrderReferenceId>\\n CaptureReference6282176<\\/AmazonCaptureReferenceId>\\n 2017-08-23T12:20:56.061Z<\\/CreationTimestamp>\\n \\n 100.0<\\/Amount>\\n USD<\\/CurrencyCode>\\n <\\/ChargebackAmount>\\n RECEIVED<\\/ChargebackState>\\n Unauthorized Transaction Chargeback<\\/ChargebackReason>\\n <\\/ChargebackDetails>\\n<\\/ChargebackNotification>\"}", 6 | "Timestamp" : "2017-08-30T14:35:46.358Z", 7 | "SignatureVersion" : "1", 8 | "Signature" : "K/5+GqaPsk9UDcVNlxgj7Lw6EkJJOKhIejfJ4z0ZbdsCAuTSFPWlU5Msq7MkdWtO2bwmvyJGmEJDsb/Z3xBPBpQExI7/76aPMWIX2zRaoef1rFbZYTis808p/G7ih5Mmn5nSNw8+LKSxfPSiGULItQGOtBVf/7MohYP5IjK68oJwuXp7qXM5y7zXJntABDWdsdj2TrzYRozUsLpUb44HcfKNtW4sivZvJ6LUa04Y0h0DDIY5BVjmlTGeFcvjQ9yimK41zLEnnrPmSLBls0B4MJRrpTkpgiQzYqRmL5T3c04BHs/+tiXB8YlrHgLw0GgrS0weIcEbEPjwk4CB0JkwEw==", 9 | "SigningCertURL" : "https://sns.us-east-1.amazonaws.com/SimpleNotificationService-433026a4050d206028891664da859041.pem", 10 | "UnsubscribeURL" : "https://sns.us-east-1.amazonaws.com/?Action=Unsubscribe&SubscriptionArn=arn:aws:sns:us-east-1:598607868003:A35A4JO734ER04A08593053M41F7TQ7YR7W:413d945a-6cc4-4c6f-a45a-c5c0918b03b9" 11 | } 12 | 13 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/impl/ipn/json/ProviderReversalCredit.json: -------------------------------------------------------------------------------- 1 | { "Type" : "Notification", 2 | "MessageId" : "c47750c4-f406-58e1-8910-1e07c2d2922a", 3 | "TopicArn" : "arn:aws:sns:us-east-1:291180941288:A3BXB0YN3XH17HA2K7NDRCTOTPW9", 4 | "Message" : "{\"ReleaseEnvironment\":\"Sandbox\",\"MarketplaceID\":\"623690\",\"Version\":\"2013-01-01\",\"NotificationType\":\"ProviderCreditReversal\",\"SellerId\":\"A37GX652OWOXVH\",\"NotificationReferenceId\":\"75e90ed5-4fee-40bc-ad6e-cb8c6e7f1a43a2k7ndrctotpw9\",\"Timestamp\":\"2015-11-16T01:42:44Z\",\"NotificationData\":\"\\n \\n S01-3154248-3064261-Q087635<\\/AmazonProviderCreditReversalId>\\n A37GX652OWOXVH<\\/SellerId>\\n A2K7NDRCTOTPW9<\\/ProviderSellerId>\\n rcMzEdsAprId<\\/CreditReversalReferenceId>\\n \\n 0.5<\\/Amount>\\n USD<\\/CurrencyCode>\\n <\\/CreditReversalAmount>\\n 2015-11-16T01:42:43.941Z<\\/CreationTimestamp>\\n \\n Completed<\\/State>\\n 2015-11-16T01:42:44.078Z<\\/LastUpdateTimestamp>\\n <\\/CreditReversalStatus>\\n <\\/ProviderCreditReversalDetails>\\n<\\/ProviderCreditReversalNotification>\"}", 5 | "Timestamp" : "2015-11-16T01:42:44.615Z", 6 | "SignatureVersion" : "1", 7 | "Signature" : "L84iVg+P8n+NfYPhJPuMjCMBPidD0MGOzFeCyTkwmn1Lmp9TceXleCBwUrQDhjW8vP9UnUZV2FX3GifaM7H4tarWmhsQUsvGysnOJvxRjx1yCRdsVDUYdSjKnq0FgpoGmtIxRDXbSpYZio2x6Q93uzCJIqZdyzTm0NVjtqRNcZrs8bRCva3vEnISqp7GsJ/fPy6tVovN+iZk37S55WA1cm4p4GDWQWVQ3SZCjKQ8DmX3qmbu9LQVs73QP5A2Li6w3RHV2xy95zi5BM+kZAIs/aCALp7psJoycyvU7F/+ayFUOmxZ/o1XNo0g5chzWKlfI5q8Qw4D5FmGEz+pXYrL1w==", 8 | "SigningCertURL" : "https://sns.us-east-1.amazonaws.com/SimpleNotificationService-bb750dd426d95ee9390147a5624348ee.pem", 9 | "UnsubscribeURL" : "https://sns.us-east-1.amazonaws.com/?Action=Unsubscribe&SubscriptionArn=arn:aws:sns:us-east-1:291180941288:A3BXB0YN3XH17HA2K7NDRCTOTPW9:05542723-375e-4609-98f1-8abcf427d95f" 10 | } 11 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/impl/ipn/json/RefundNotification2.json: -------------------------------------------------------------------------------- 1 | { 2 | "Type" : "Notification", 3 | "MessageId" : "21af668c-be1b-5a6d-89a6-28462a66113d", 4 | "TopicArn" : "arn:aws:sns:us-east-1:291180941288:A3BXB0YN3XH17HA2K7NDRCTOTPW9", 5 | "Message" : "{\"ReleaseEnvironment\":\"Sandbox\",\"MarketplaceID\":\"623690\",\"Version\":\"2013-01-01\",\"NotificationType\":\"PaymentRefund\",\"SellerId\":\"A37GX652OWOXVH\",\"NotificationReferenceId\":\"7d3a0f78-82d0-4309-9126-1677c07a9577a2k7ndrctotpw9\",\"Timestamp\":\"2015-11-21T03:48:13Z\",\"NotificationData\":\"\\n \\n S01-1024662-1173740-R095796<\\/AmazonRefundId>\\n rGcWFywnref12<\\/RefundReferenceId>\\n SellerInitiated<\\/RefundType>\\n \\n 1.0<\\/Amount>\\n USD<\\/CurrencyCode>\\n <\\/RefundAmount>\\n \\n 0.0<\\/Amount>\\n USD<\\/CurrencyCode>\\n <\\/FeeRefunded>\\n 2015-11-21T15:47:42.174Z<\\/CreationTimestamp>\\n \\n Completed<\\/State>\\n 2015-11-21T15:48:13.411Z<\\/LastUpdateTimestamp>\\n <\\/RefundStatus>\\n AMZ*Neha MWS<\\/SoftDescriptor>\\n <\\/RefundDetails>\\n<\\/RefundNotification>\"}", 6 | "Timestamp" : "2015-11-21T15:48:13.798Z", 7 | "SignatureVersion" : "1", 8 | "Signature" : "P4pXyf+W/F4OOs2sKY8tcqo0w4M3fHBHhhhJk44YWNjFmAaxqXfxZIRdXiWT0GP6E2t/t2SlEO1I2KRGhrAl61TLAsUdQGYey6pKu5GJ1i7rtY5fxoVbHlMnz4wTDwBj8240TC6CBFx+WXl3vQ1ziBJJuqjMp6NBZRUQOmTLy7Vop9k1bEOoDCdH+FpmhoxcE++Kp0mL6HRBjbrfwwtTGvv2k2iiGW/62dfYDrB53FZTvaL8p3F0T7/MbqndsEjgVfjvNBtRjPsf4rqo2s4l1c6lA3V7nwkmVxmHJrunmFD2scAll91KW5fOl5VSeI6jVPFsfvsq/A+wjQOZkMBr5A==", 9 | "SigningCertURL" : "https://sns.us-east-1.amazonaws.com/SimpleNotificationService-bb750dd426d95ee9390147a5624348ee.pem", 10 | "UnsubscribeURL" : "https://sns.us-east-1.amazonaws.com/?Action=Unsubscribe&SubscriptionArn=arn:aws:sns:us-east-1:291180941288:A3BXB0YN3XH17HA2K7NDRCTOTPW9:05542723-375e-4609-98f1-8abcf427d95f" 11 | } -------------------------------------------------------------------------------- /tst/com/amazon/pay/impl/ipn/json/SolutionProviderMerchantNotification.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nehaa" 3 | } 4 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/AuthorizeOnBillingAgreementResponse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | USD 7 | 1.00 8 | 9 | 10 | USD 11 | 0 12 | 13 | AMZ*AMZN*test 14 | 2015-12-02T17:39:58.272Z 15 | 16 | S01-7347515-9699585-C012416 17 | 18 | 19 | 2015-11-02T17:39:58.272Z 20 | Closed 21 | MaxCapturesProcessed 22 | 23 | 24 | USD 25 | 0.00 26 | 27 | true 28 | 2015-11-02T17:39:58.272Z 29 | testing 30 | S01-7347515-9699585-A012416 31 | 8233239-775229 32 | 33 | S01-7347515-9699585 34 | 35 | 36 | a2f5467a-0e2a-4735-8b52-6f2f23fc9546 37 | 38 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/AuthorizeResponse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | USD 7 | 1.00 8 | 9 | 10 | USD 11 | 0 12 | 13 | AMZ*testikiki 14 | 2015-11-29T21:02:38.508Z 15 | 16 | S01-9821095-1837200-C041953 17 | 18 | 19 | 2015-10-30T21:02:38.508Z 20 | Closed 21 | MaxCapturesProcessed 22 | 23 | 24 | USD 25 | 0.00 26 | 27 | true 28 | testing 29 | 2015-10-30T21:02:38.508Z 30 | S01-9821095-1837200-A041953 31 | asdcdsd5iiiii 32 | 33 | 34 | 35 | adabc99d-8351-48dc-acef-1bc049215f55 36 | 37 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/CancelOrderReferenceResponse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 0714c2dd-c3fa-45af-afc7-b48055cfd7bf 6 | 7 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/CaptureResponse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | testcsal 6 | 7 | USD 8 | 0.00 9 | 10 | S01-9821095-1837200-C053432 11 | 2015-10-30T21:47:10.797Z 12 | AMZ*testsd 13 | 14 | 15 | 2015-10-30T21:47:10.797Z 16 | Completed 17 | 18 | 19 | 20 | USD 21 | 0 22 | 23 | 24 | USD 25 | 1.00 26 | 27 | 28 | 29 | 30 | 1ec2813f-3d33-4b3a-a198-a25cd608310d 31 | 32 | 33 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/CloseAuthorizationResponse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 3e130e5b-41ae-41fd-b307-dbbf45663d79 6 | 7 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/CloseBillingAgreementResponse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7541230f-e349-4180-a4ac-ba9f2cf6ac79 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/CloseOrderReferenceResponse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5f20169b-7ab2-11df-bcef-d35615e2b044 5 | 6 | 7 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/ConfirmBillingAgreementResponse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 3d1db999-b790-47bb-87d3-9c673c38a1ed 6 | 7 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/ConfirmOrderReferenceResponse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | f1f52572-a347-4f7a-a630-be066f3ba827 5 | 6 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/CreateOrderReferenceForIdResponse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 2016-11-28T03:23:22.159Z 6 | Open 7 | 8 | 9 | Physical 10 | 11 | IL 12 | 800-000-0000 13 | Chicago 14 | US 15 | 60602 16 | Susie Smith 17 | 10 Ditka Ave 18 | Suite 2500 19 | 20 | 21 | 2017-05-27T03:23:21.923Z 22 | 23 | BillingAgreement 24 | C01-5996379-1389374 25 | 26 | 27 | Top of the World Store 28 | One two three four five 29 | OR# 12345 30 | 31 | 32 | USD 33 | 0.45 34 | 35 | 36 | Sandbox Guillot 37 | not+a+real+email@inter.net 38 | 39 | Sandbox 40 | My seller note goes here 41 | S01-6910968-3348607 42 | 2016-11-28T03:23:21.923Z 43 | false 44 | 45 | 46 | 47 | 4d5e0306-257e-4a13-b2ad-45b891c3de2a 48 | 49 | 50 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/ErrorResponse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Sender 5 | OrderReferenceNotModifiable 6 | OrderReference S01-5695290-1354077 is not in draft state and cannot be modified with the request submitted by you. 7 | 8 | 6d4699b8-1238-4c09-b539-176e2c2f5462 9 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/GetAuthorizationDetailsResponse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | USD 7 | 1.00 8 | 9 | 10 | USD 11 | 1.00 12 | 13 | AMZ*testikiki 14 | 2015-11-29T21:02:38.508Z 15 | 16 | S01-9821095-1837200-C041953 17 | 18 | 19 | 2015-10-30T21:02:38.508Z 20 | MaxCapturesProcessed 21 | Closed 22 | 23 | 24 | USD 25 | 0.00 26 | 27 | true 28 | testing 29 | 2015-10-30T21:02:38.508Z 30 | S01-9821095-1837200-A041953 31 | asdcdsd5iiiii 32 | 33 | 34 | 35 | 6173ac5a-8915-4541-922f-f9e104930731 36 | 37 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/GetCaptureDetailsResponse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | asdcdsd5iiiii 6 | 7 | USD 8 | 0.00 9 | 10 | 2015-10-30T21:02:38.608Z 11 | S01-9821095-1837200-C041953 12 | AMZ*testikiki 13 | 14 | 15 | 2015-10-30T21:02:38.608Z 16 | Completed 17 | 18 | 19 | USD 20 | 0 21 | 22 | testing 23 | 24 | USD 25 | 1.00 26 | 27 | 28 | 29 | 30 | 21acf393-d625-497e-b2c0-d1dc0b0d2bb6 31 | 32 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/GetCaptureDetailsResponse_Multicurrency.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | EUR 7 | 0.88 8 | 9 | 7a087b12a3cb4d0ba3cb4230aa953de4 10 | 11 | EUR 12 | 0.00 13 | 14 | AMZ*Matt's Test Stor 15 | 16 | 1.1297854087 17 | 18 | CHF 19 | 0.99 20 | 21 | S02-7423235-4925359-C052508 22 | 2017-06-27T22:07:18.931Z 23 | 24 | 2017-06-27T22:07:18.999Z 25 | Completed 26 | 27 | 28 | 29 | CHF 30 | 0 31 | 32 | 33 | 34 | 35 | a17ee562-9a97-4b22-8487-20e8e7230639 36 | 37 | 38 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/GetMerchantAccountStatusActive.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | ACTIVE 4 | 5 | 6 | 4b84390f-748b-40a3-ab07-9395e3616310 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/GetMerchantAccountStatusError.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Sender 4 | UnauthorizedSolutionProvider 5 | The Solution Provider : A2J2RH3AOT7N6C is not authorized for getting the status of provided merchant : A3URCZVLDMDI45 6 | 7 | b1c459b9-61c7-4f0b-b0b6-d6afcd314ef9 8 | 9 | 10 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/GetMerchantAccountStatusInactive.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | INACTIVE 4 | 5 | 6 | 0441027b-eaf7-443f-bd39-53075c3b8f4f 7 | 8 | 9 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/GetOROwithoutPaymentDescriptor.xml: -------------------------------------------------------------------------------- 1 | 2 | " 3 | 4 | 5 | P01-1234567-1234567 6 | 2012-11-05T20:21:19Z 7 | 2013-05-07T23:21:19Z 8 | 9 | Draft 10 | 11 | 12 | Physical 13 | 14 | New York 15 | NY 16 | 10101-9876 17 | US 18 | 19 | 20 | Live 21 | 22 | 23 | 24 | 5f20169b-7ab2-11df-bcef-d35615e2b044 25 | 26 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/GetProviderCreditDetailsResponse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | TEST_SELLER_ID 6 | 7 | S01-2117025-2155793-Q068906 8 | S01-2117025-2155793-Q023847 9 | 10 | 11 | USD 12 | 1.00 13 | 14 | S01-2117025-2155793nesasdh 15 | TEST_PROVIDER_ID 16 | 2015-10-23T00:30:42.996Z 17 | S01-2117025-2155793-P045170 18 | 19 | 2015-10-26T23:26:46.945Z 20 | MaxAmountReversed 21 | Closed 22 | 23 | 24 | USD 25 | 1.00 26 | 27 | 28 | 29 | 30 | 21162350-7135-46ae-aa20-68d5361cef17 31 | 32 | 33 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/GetProviderCreditDetailsResponse1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | TEST_SELLER_ID 6 | 7 | S01-2117025-2155793-Q068906 8 | S01-2117025-2155793-Q023847 9 | 10 | 11 | USD 12 | 1.00 13 | 14 | S01-2117025-2155793nesasdh 15 | TEST_PROVIDER_ID 16 | 2015-10-23T00:30:42.996Z 17 | S01-2117025-2155793-P045170 18 | 19 | 2015-10-26T23:26:46.945Z 20 | MaxAmountReversed 21 | Closed 22 | 23 | 24 | USD 25 | 1.00 26 | 27 | 28 | 29 | 30 | 21162350-7135-46ae-aa20-68d5361cef17 31 | 32 | 33 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/GetProviderCreditReversalDetailsResponse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | S01-2117025-2155793-P045170 6 | TEST_SELLER_ID 7 | 8 | USD 9 | 1.00 10 | 11 | S01-2117025-2155793nesasdh 12 | TEST_PROVIDER_ID 13 | 14 | 2015-10-26T23:26:46.945Z 15 | Closed 16 | MaxAmountReversed 17 | 18 | 2015-10-23T00:30:42.996Z 19 | 20 | 21 | 22 | 10a7736b-bb9b-447c-9be1-4f5e76166e48 23 | 24 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/GetRefundDetails.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | testRefundId1354077 6 | SellerInitiated 7 | testing 8 | 2015-11-02T21:18:17.751Z 9 | AMZ*test 10 | 11 | 2015-11-02T21:18:48.932Z 12 | Completed 13 | 14 | 15 | USD 16 | 0.00 17 | 18 | 19 | USD 20 | 0.50 21 | 22 | S01-5695290-1354077-R072290 23 | 24 | 25 | 26 | 98cdadd5-8b44-4757-8e4f-351f39af7fcf 27 | 28 | 29 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/GetRefundDetails_Multicurrency.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | EUR 7 | 0.03 8 | 9 | 10 | 11 | 2017-06-28T18:15:07.659Z 12 | Completed 13 | 14 | AMZ*Matt's Test Stor 15 | 9.9248293483 16 | aed9ba8bee564c8cb943bd6481633ad1 17 | SellerInitiated 18 | 2017-06-28T18:14:34.752Z 19 | 20 | EUR 21 | 0.00 22 | 23 | 24 | NOK 25 | 0.33 26 | 27 | S02-8274313-3487267-R019346 28 | 29 | 30 | 31 | 3b14705b-0a11-4b05-98d3-eb62c9bf1d22 32 | 33 | 34 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/GetServiceStatusResponseGreen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | GREEN 4 | 2016-11-27T02:57:30.504Z 5 | 6 | 7 | 93437336-70dd-4359-b453-f13a90dccb99 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/GetServiceStatusResponseGreenI.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | GREEN_I 5 | 2010-11-01T21:38:09.676Z 6 | 173964729I 7 | 8 | 9 | en_UK 10 | We are experiencing high latency in UK because of heavy traffic. 11 | 12 | 13 | en_US 14 | Service is once again operating at normal capacity at 6:53 PST. 15 | 16 | 17 | 18 | 19 | d80c6c7b-f7c7-4fa7-bdd7-854711cb3bcc 20 | 21 | 22 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/RefundResponse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | testRefundId1354077 6 | SellerInitiated 7 | testing 8 | 2015-11-02T21:18:17.751Z 9 | AMZ*test 10 | 11 | 2015-11-02T21:18:17.751Z 12 | Pending 13 | 14 | 15 | USD 16 | 0.00 17 | 18 | 19 | USD 20 | 0.50 21 | 22 | S01-5695290-1354077-R072290 23 | 24 | 25 | 26 | 2be495ee-0a86-4357-a6a5-5f0af88398d9 27 | 28 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/ReverseProviderCreditResponse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | S01-0458164-4040121-Q021623 6 | TEST_SELLER_ID 7 | 8 | USD 9 | 0.50 10 | 11 | kvAKLMtYprId 12 | TEST_PROVIDER_ID 13 | 14 | 2015-11-03T19:21:09.762Z 15 | Completed 16 | 17 | 2015-11-03T19:21:09.638Z 18 | 19 | 20 | 21 | a7e0af53-ee4e-4557-a190-265cae27407d 22 | 23 | 24 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/SanitizedData.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Draft 6 | 7 | 8 | Physical 9 | *** Removed *** 10 | 11 | 2016-04-27T20:43:45.183Z 12 | ANDRCTOTP9 13 | 14 | myTestStore 15 | myCustomInformation 16 | test1234 17 | 18 | 19 | USD 20 | 500.00 21 | 22 | Sandbox 23 | *** Removed *** 24 | S01-9821095-0000200 25 | 2015-10-30T20:43:45.183Z 26 | 27 | 28 | 29 | eab0140b-e59c-4875-859b-f5012944ba 30 | 31 | 32 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/SanitizedDataBefore.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Draft 7 | 8 | 9 | Physical 10 | 11 | äöüßâêîôûàèùé 12 | 宋 俊华 市区-徐汇区 广东省 13 | 10101-9876 14 | US 15 | 16 | 17 | 2016-04-27T20:43:45.183Z 18 | ANDRCTOTP9 19 | 20 | myTestStore 21 | myCustomInformation 22 | test1234 23 | 24 | 25 | USD 26 | 500.00 27 | 28 | Sandbox 29 | This is a note that will get sanitized! 30 | S01-9821095-0000200 31 | 2015-10-30T20:43:45.183Z 32 | 33 | 34 | 35 | eab0140b-e59c-4875-859b-f5012944ba 36 | 37 | 38 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/SetOrderAttributesResponse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | paymentServiceProviderId 6 | paymentServiceProviderOrderId 7 | 8 | 9 | Draft 10 | 11 | 2018-04-21T16:48:22.161Z 12 | platformId 13 | 14 | storeName 15 | cutomInfo 16 | sellerOrderId 17 | 18 | Antiques 19 | Apparel 20 | 21 | 22 | 23 | BillingAgreement 24 | B01-9692562-1609165 25 | 26 | 27 | USD 28 | 0.01 29 | 30 | Live 31 | sellerNote 32 | P01-6744909-5149370 33 | 2017-10-23T16:48:22.161Z 34 | false 35 | 36 | 37 | 38 | 9ce3684d-0bcc-4151-9656-1e87d83199ce 39 | 40 | 41 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/SetOrderAttributesScaResponse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 2019-04-30T23:41:30.926Z 6 | Open 7 | 8 | en-GB 9 | 10 | Physical 11 | 12 | IL 13 | Chicago 14 | 800-000-0000 15 | US 16 | 60602 17 | Susie Smith 18 | 10 Ditka Ave 19 | Suite 2500 20 | 21 | 22 | 2019-10-27T23:24:14.907Z 23 | 24 | SDK Sample Store Name 25 | abcdef 26 | abcdef 27 | 28 | 29 | GBP 30 | 10.00 31 | 32 | 33 | REQUIRED 34 | 35 | 36 | Sandbox Guillot 37 | guillotb+sandbox@amazon.com 38 | 39 | Sandbox 40 | The Seller Note 41 | S02-4946804-1132193 42 | 2019-04-30T23:24:14.907Z 43 | false 44 | 45 | 46 | 47 | 68258c6f-9a7b-4cdf-b72b-9e0886f39d9b 48 | 49 | 50 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/TestPaymentDescriptor.xml: -------------------------------------------------------------------------------- 1 | 2 | " 3 | 4 | 5 | P01-1234567-1234567 6 | 2012-11-05T20:21:19Z 7 | 2013-05-07T23:21:19Z 8 | 9 | Draft 10 | 11 | 12 | Physical 13 | 14 | New York 15 | NY 16 | 10101-9876 17 | US 18 | 19 | 20 | 21 | Amazon Pay (Visa **11) 22 | true 23 | 24 | Live 25 | 26 | 27 | 28 | 5f20169b-7ab2-11df-bcef-d35615e2b044 29 | 30 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/Throttled.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | RequestThrottled 6 | Request is throttled 7 | 8 | d702fd8e-206f-4da4-95e0-1e7422474077 9 | 10 | -------------------------------------------------------------------------------- /tst/com/amazon/pay/response/xml/ValidateBillingAgreementResponse.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 2015-11-02T17:38:29.511Z 6 | Open 7 | 8 | Success 9 | 10 | 11 | 0f48a4e0-2a7c-4036-9a8a-339e419fd53f 12 | 13 | --------------------------------------------------------------------------------