index
int64
0
0
repo_id
stringlengths
9
205
file_path
stringlengths
31
246
content
stringlengths
1
12.2M
__index_level_0__
int64
0
10k
0
Create_ds/camel-k-runtime/support/camel-k-catalog-model/src/main/java/org/apache/camel/k/catalog/model/k8s
Create_ds/camel-k-runtime/support/camel-k-catalog-model/src/main/java/org/apache/camel/k/catalog/model/k8s/crd/CamelCatalogSpec.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,600
0
Create_ds/camel-k-runtime/support/camel-k-catalog-model/src/main/java/org/apache/camel/k/catalog/model/k8s
Create_ds/camel-k-runtime/support/camel-k-catalog-model/src/main/java/org/apache/camel/k/catalog/model/k8s/crd/CamelCatalog.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,601
0
Create_ds/camel-k-runtime/.mvn
Create_ds/camel-k-runtime/.mvn/wrapper/MavenWrapperDownloader.java
/* * Copyright 2007-present the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
3,602
0
Create_ds/camel-k-runtime/camel-k-knative/impl/src/generated/java/org/apache/camel/k/knative
Create_ds/camel-k-runtime/camel-k-knative/impl/src/generated/java/org/apache/camel/k/knative/customizer/KnativeSinkBindingContextCustomizerConfigurer.java
/* Generated by camel build tools - do NOT edit this file! */ package org.apache.camel.k.knative.customizer; import java.util.Map; import org.apache.camel.CamelContext; import org.apache.camel.spi.ExtendedPropertyConfigurerGetter; import org.apache.camel.spi.PropertyConfigurerGetter; import org.apache.camel.spi.Confi...
3,603
0
Create_ds/camel-k-runtime/camel-k-knative/impl/src/main/java/org/apache/camel/k/knative
Create_ds/camel-k-runtime/camel-k-knative/impl/src/main/java/org/apache/camel/k/knative/customizer/KnativeSinkBindingContextCustomizer.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,604
0
Create_ds/camel-k-runtime/examples/java
Create_ds/camel-k-runtime/examples/java/data/MyRoutes.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,605
0
Create_ds/camel-k-runtime/examples/kafka-source-s3
Create_ds/camel-k-runtime/examples/kafka-source-s3/data/MyRoutes.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,606
0
Create_ds/camel-k-runtime/camel-k-master/impl/src/main/java/org/apache/camel/k
Create_ds/camel-k-runtime/camel-k-master/impl/src/main/java/org/apache/camel/k/master/MasterContextCustomizer.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,607
0
Create_ds/camel-k-runtime/camel-k-master/deployment/src/main/java/org/apache/camel/k/quarkus/master
Create_ds/camel-k-runtime/camel-k-master/deployment/src/main/java/org/apache/camel/k/quarkus/master/deployment/MasterFeature.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,608
0
Create_ds/camel-k-runtime/camel-k-core/runtime/src/main/java/org/apache/camel/k/core/quarkus
Create_ds/camel-k-runtime/camel-k-core/runtime/src/main/java/org/apache/camel/k/core/quarkus/devmode/HotReplacementSetup.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,609
0
Create_ds/camel-k-runtime/camel-k-core/support/src/generated/java/org/apache/camel/k
Create_ds/camel-k-runtime/camel-k-core/support/src/generated/java/org/apache/camel/k/listener/SourcesConfigurerConfigurer.java
/* Generated by camel build tools - do NOT edit this file! */ package org.apache.camel.k.listener; import java.util.Map; import org.apache.camel.CamelContext; import org.apache.camel.spi.ExtendedPropertyConfigurerGetter; import org.apache.camel.spi.PropertyConfigurerGetter; import org.apache.camel.spi.ConfigurerStrat...
3,610
0
Create_ds/camel-k-runtime/camel-k-core/support/src/test/java/org/apache/camel
Create_ds/camel-k-runtime/camel-k-core/support/src/test/java/org/apache/camel/k/SourceTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,611
0
Create_ds/camel-k-runtime/camel-k-core/support/src/test/java/org/apache/camel/k
Create_ds/camel-k-runtime/camel-k-core/support/src/test/java/org/apache/camel/k/listener/SourceConfigurerTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,612
0
Create_ds/camel-k-runtime/camel-k-core/support/src/test/java/org/apache/camel/k
Create_ds/camel-k-runtime/camel-k-core/support/src/test/java/org/apache/camel/k/listener/PropertiesFunctionsConfigurerTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,613
0
Create_ds/camel-k-runtime/camel-k-core/support/src/test/java/org/apache/camel/k
Create_ds/camel-k-runtime/camel-k-core/support/src/test/java/org/apache/camel/k/support/PropertiesSupportTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,614
0
Create_ds/camel-k-runtime/camel-k-core/support/src/test/java/org/apache/camel/k
Create_ds/camel-k-runtime/camel-k-core/support/src/test/java/org/apache/camel/k/support/NameCustomizer.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,615
0
Create_ds/camel-k-runtime/camel-k-core/support/src/test/java/org/apache/camel/k
Create_ds/camel-k-runtime/camel-k-core/support/src/test/java/org/apache/camel/k/support/RuntimeSupportTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,616
0
Create_ds/camel-k-runtime/camel-k-core/support/src/main/java/org/apache/camel/k
Create_ds/camel-k-runtime/camel-k-core/support/src/main/java/org/apache/camel/k/listener/ContextConfigurer.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,617
0
Create_ds/camel-k-runtime/camel-k-core/support/src/main/java/org/apache/camel/k
Create_ds/camel-k-runtime/camel-k-core/support/src/main/java/org/apache/camel/k/listener/AbstractPhaseListener.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,618
0
Create_ds/camel-k-runtime/camel-k-core/support/src/main/java/org/apache/camel/k
Create_ds/camel-k-runtime/camel-k-core/support/src/main/java/org/apache/camel/k/listener/SourcesConfigurer.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,619
0
Create_ds/camel-k-runtime/camel-k-core/support/src/main/java/org/apache/camel/k
Create_ds/camel-k-runtime/camel-k-core/support/src/main/java/org/apache/camel/k/support/SourcesSupport.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,620
0
Create_ds/camel-k-runtime/camel-k-core/support/src/main/java/org/apache/camel/k
Create_ds/camel-k-runtime/camel-k-core/support/src/main/java/org/apache/camel/k/support/StringSupport.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,621
0
Create_ds/camel-k-runtime/camel-k-core/support/src/main/java/org/apache/camel/k
Create_ds/camel-k-runtime/camel-k-core/support/src/main/java/org/apache/camel/k/support/RouteBuilders.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,622
0
Create_ds/camel-k-runtime/camel-k-core/support/src/main/java/org/apache/camel/k
Create_ds/camel-k-runtime/camel-k-core/support/src/main/java/org/apache/camel/k/support/DelegatingRuntime.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,623
0
Create_ds/camel-k-runtime/camel-k-core/support/src/main/java/org/apache/camel/k
Create_ds/camel-k-runtime/camel-k-core/support/src/main/java/org/apache/camel/k/support/PropertiesSupport.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,624
0
Create_ds/camel-k-runtime/camel-k-core/support/src/main/java/org/apache/camel/k
Create_ds/camel-k-runtime/camel-k-core/support/src/main/java/org/apache/camel/k/support/RuntimeSupport.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,625
0
Create_ds/camel-k-runtime/camel-k-core/support/src/main/java/org/apache/camel/k
Create_ds/camel-k-runtime/camel-k-core/support/src/main/java/org/apache/camel/k/support/Sources.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,626
0
Create_ds/camel-k-runtime/camel-k-core/support/src/main/java/org/apache/camel/k
Create_ds/camel-k-runtime/camel-k-core/support/src/main/java/org/apache/camel/k/support/Constants.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,627
0
Create_ds/camel-k-runtime/camel-k-core/deployment/src/main/java/org/apache/camel/k/core/quarkus
Create_ds/camel-k-runtime/camel-k-core/deployment/src/main/java/org/apache/camel/k/core/quarkus/deployment/CoreProcessor.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,628
0
Create_ds/camel-k-runtime/camel-k-core/deployment/src/main/java/org/apache/camel/k/core/quarkus
Create_ds/camel-k-runtime/camel-k-core/deployment/src/main/java/org/apache/camel/k/core/quarkus/deployment/CoreFeature.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,629
0
Create_ds/camel-k-runtime/camel-k-core/deployment/src/main/java/org/apache/camel/k/core/quarkus/deployment
Create_ds/camel-k-runtime/camel-k-core/deployment/src/main/java/org/apache/camel/k/core/quarkus/deployment/devmode/HotDeploymentProcessor.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,630
0
Create_ds/camel-k-runtime/camel-k-core/deployment/src/main/java/org/apache/camel/k/core/quarkus/deployment
Create_ds/camel-k-runtime/camel-k-core/deployment/src/main/java/org/apache/camel/k/core/quarkus/deployment/support/DeploymentSupport.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,631
0
Create_ds/camel-k-runtime/camel-k-core/api/src/generated/java/org/apache/camel
Create_ds/camel-k-runtime/camel-k-core/api/src/generated/java/org/apache/camel/k/SourceDefinitionConfigurer.java
/* Generated by camel build tools - do NOT edit this file! */ package org.apache.camel.k; import java.util.Map; import org.apache.camel.CamelContext; import org.apache.camel.spi.ExtendedPropertyConfigurerGetter; import org.apache.camel.spi.PropertyConfigurerGetter; import org.apache.camel.spi.ConfigurerStrategy; impo...
3,632
0
Create_ds/camel-k-runtime/camel-k-core/api/src/main/java/org/apache/camel
Create_ds/camel-k-runtime/camel-k-core/api/src/main/java/org/apache/camel/k/RuntimeAware.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,633
0
Create_ds/camel-k-runtime/camel-k-core/api/src/main/java/org/apache/camel
Create_ds/camel-k-runtime/camel-k-core/api/src/main/java/org/apache/camel/k/ContextCustomizer.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,634
0
Create_ds/camel-k-runtime/camel-k-core/api/src/main/java/org/apache/camel
Create_ds/camel-k-runtime/camel-k-core/api/src/main/java/org/apache/camel/k/SourceDefinition.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,635
0
Create_ds/camel-k-runtime/camel-k-core/api/src/main/java/org/apache/camel
Create_ds/camel-k-runtime/camel-k-core/api/src/main/java/org/apache/camel/k/Source.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,636
0
Create_ds/camel-k-runtime/camel-k-core/api/src/main/java/org/apache/camel
Create_ds/camel-k-runtime/camel-k-core/api/src/main/java/org/apache/camel/k/SourceType.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,637
0
Create_ds/camel-k-runtime/camel-k-core/api/src/main/java/org/apache/camel
Create_ds/camel-k-runtime/camel-k-core/api/src/main/java/org/apache/camel/k/Runtime.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,638
0
Create_ds/camel-k-runtime/camel-k-resume-kafka/impl/src/main/java/org/apache/camel/k
Create_ds/camel-k-runtime/camel-k-resume-kafka/impl/src/main/java/org/apache/camel/k/resume/ResumeContextCustomizer.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,639
0
Create_ds/camel-k-runtime/camel-k-resume-kafka/impl/src/main/java/org/apache/camel/k/resume
Create_ds/camel-k-runtime/camel-k-resume-kafka/impl/src/main/java/org/apache/camel/k/resume/kafka/KafkaResumeFactory.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,640
0
Create_ds/camel-k-runtime/camel-k-resume-kafka/deployment/src/main/java/org/apache/camel/k/quarkus/resume
Create_ds/camel-k-runtime/camel-k-resume-kafka/deployment/src/main/java/org/apache/camel/k/quarkus/resume/deployment/ResumeFeature.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
3,641
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments/servlet/UpdatePaymentServlet.java
// #Update Payment package com.paypal.api.payments.servlet; import com.paypal.api.payments.Amount; import com.paypal.api.payments.Details; import com.paypal.api.payments.Patch; import com.paypal.api.payments.Payment; import com.paypal.api.payments.util.ResultPrinter; import com.paypal.base.rest.APIContext; import com....
3,642
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments/servlet/VoidAuthorizationServlet.java
// #VoidAuthorization Sample // This sample code demonstrate how you // can do a Void on a Authorization // resource // API used: /v1/payments/authorization/{authorization_id}/void package com.paypal.api.payments.servlet; import static com.paypal.api.payments.util.SampleConstants.clientID; import static com.paypal.api...
3,643
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments/servlet/GetPaymentServlet.java
// #GetPayment Sample // This sample code demonstrates how you can retrieve // the details of a payment resource. // API used: /v1/payments/payment/{payment-id} package com.paypal.api.payments.servlet; import static com.paypal.api.payments.util.SampleConstants.clientID; import static com.paypal.api.payments.util.Sampl...
3,644
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments/servlet/CreateCreditCardServlet.java
// #CreateCreditCard Sample // Using the 'vault' API, you can store a // Credit Card securely on PayPal. You can // use a saved Credit Card to process // a payment in the future. // The following code demonstrates how // can save a Credit Card on PayPal using // the Vault API. // API used: POST /v1/vault/credit-card...
3,645
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments/servlet/SaleRefundServlet.java
// #SaleRefund Sample // This sample code demonstrate how you can // process a refund on a sale transaction created // using the Payments API. // API used: /v1/payments/sale/{sale-id}/refund package com.paypal.api.payments.servlet; import com.paypal.api.payments.Amount; import com.paypal.api.payments.RefundRequest; ...
3,646
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments/servlet/ThirdPartyPaymentWithPayPalServlet.java
// #Create Payment Using PayPal Sample // This sample code demonstrates how you can process a // PayPal Account based Payment. // API used: /v1/payments/payment package com.paypal.api.payments.servlet; import com.paypal.api.payments.*; import com.paypal.api.payments.util.ResultPrinter; import com.paypal.base.rest.API...
3,647
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments/servlet/AuthorizationCaptureServlet.java
// #AuthorizationCapture Sample // This sample code demonstrate how you // do a Capture on an Authorization // API used: /v1/payments/authorization/{authorization_id}/capture package com.paypal.api.payments.servlet; import static com.paypal.api.payments.util.SampleConstants.clientID; import static com.paypal.api.paym...
3,648
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments/servlet/GetSaleServlet.java
// # Get Details of a Sale Transaction Sample // This sample code demonstrates how you can retrieve // details of completed Sale Transaction. // API used: /v1/payments/sale/{sale-id} package com.paypal.api.payments.servlet; import static com.paypal.api.payments.util.SampleConstants.clientID; import static com.paypal....
3,649
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments/servlet/GetCaptureServlet.java
// #GetCapture Sample // This sample code demonstrate how you // can retrieve the details of a Capture // resource // API used: /v1/payments/capture/{capture_id} package com.paypal.api.payments.servlet; import static com.paypal.api.payments.util.SampleConstants.clientID; import static com.paypal.api.payments.util.Samp...
3,650
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments/servlet/GetPaymentHistoryServlet.java
// #GetPaymentList Sample // This sample code demonstrate how you can // retrieve a list of all Payment resources // you've created using the Payments API. // Note various query parameters that you can // use to filter, and paginate through the // payments list. // API used: GET /v1/payments/payments package com.paypal...
3,651
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments/servlet/GetCreditCardServlet.java
// #GetCreditCard Sample // This sample code demonstrates how you // retrieve a previously saved // Credit Card using the 'vault' API. // API used: GET /v1/vault/credit-card/{id} package com.paypal.api.payments.servlet; import static com.paypal.api.payments.util.SampleConstants.clientID; import static com.paypal.api...
3,652
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments/servlet/RefundCaptureServlet.java
// #RefundCapture Sample // This sample code demonstrate how you // can do a Refund on a Capture // resource // API used: /v1/payments/capture/{capture_id}/refund package com.paypal.api.payments.servlet; import com.paypal.api.payments.*; import com.paypal.api.payments.util.ResultPrinter; import com.paypal.base.rest.AP...
3,653
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments/servlet/ValidateWebhookServlet.java
// #Validate Webhook Sample // This is a sample code to demonstrate how to validate a webhook received on your web server. // This sample assumes you are using java servlet, which returns HttpServletRequest object. // However, this code can still be easily modified to your specific case. package com.paypal.api.payments...
3,654
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments/servlet/GetAuthorizationServlet.java
// #GetAuthorization Sample // This sample code demonstrate how you // can retrieve the details of a Authorization // resource // API used: /v1/payments/authorization/{id} package com.paypal.api.payments.servlet; import static com.paypal.api.payments.util.SampleConstants.clientID; import static com.paypal.api.payments...
3,655
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments/servlet/PaymentWithPayPalServlet.java
// #Create Payment Using PayPal Sample // This sample code demonstrates how you can process a // PayPal Account based Payment. // API used: /v1/payments/payment package com.paypal.api.payments.servlet; import static com.paypal.api.payments.util.SampleConstants.clientID; import static com.paypal.api.payments.util.Samp...
3,656
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments/servlet/ReauthorizationServlet.java
package com.paypal.api.payments.servlet; import static com.paypal.api.payments.util.SampleConstants.clientID; import static com.paypal.api.payments.util.SampleConstants.clientSecret; import static com.paypal.api.payments.util.SampleConstants.mode; import java.io.IOException; import javax.servlet.ServletException; im...
3,657
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments/util/SampleConstants.java
package com.paypal.api.payments.util; public class SampleConstants { public static final String clientID = "AYSq3RDGsmBLJE-otTkBtM-jBRd1TCQwFf9RGfwddNXWz0uFU9ztymylOhRS"; public static final String clientSecret = "EGnHDxD_qRPdaLdZz8iCr8N7_MzF-YHPTkjs6NKYQvQSBngp4PTTVWkPZRbL"; public static final String mode = "sa...
3,658
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payments/util/ResultPrinter.java
package com.paypal.api.payments.util; import java.io.IOException; import java.util.ArrayList; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class ResultPrinter { public static void addResult(HttpServ...
3,659
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/sample/SubscriptionSample.java
package com.paypal.api.sample; import java.io.FileNotFoundException; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.google.gson.JsonIOException; import com.google.gson.JsonSyntaxException; import com.paypal.api.payments.ChargeM...
3,660
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/sample/InvoiceTemplateSample.java
package com.paypal.api.sample; import java.io.FileNotFoundException; import java.io.IOException; import java.util.UUID; import com.google.gson.JsonIOException; import com.google.gson.JsonSyntaxException; import com.paypal.api.payments.Template; import com.paypal.api.payments.Templates; import com.paypal.base.rest.API...
3,661
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/sample/SampleBase.java
package com.paypal.api.sample; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import com.google.gson.JsonIOException; import com.google.gson.JsonSyntaxException; import com.paypal.base.rest.JSONFormatter; import com.payp...
3,662
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/sample/FuturePaymentSample.java
package com.paypal.api.sample; import java.util.ArrayList; import java.util.List; import com.paypal.api.payments.Amount; import com.paypal.api.payments.FuturePayment; import com.paypal.api.payments.Payer; import com.paypal.api.payments.Payment; import com.paypal.api.payments.Transaction; import com.paypal.base.rest.A...
3,663
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/sample/ThirdPartyInvoice.java
package com.paypal.api.sample; import java.io.FileNotFoundException; import java.io.IOException; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import com.google.gson.JsonIOException; import com.google.gson.JsonSyntaxException; import com.paypal.api.payments.Invoice; import com.p...
3,664
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/sample/ValidateCert.java
package com.paypal.api.sample; import com.paypal.api.payments.Event; import com.paypal.base.Constants; import com.paypal.base.rest.APIContext; import com.paypal.base.rest.PayPalRESTException; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.security.SignatureExcepti...
3,665
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/sample/InvoiceSample.java
package com.paypal.api.sample; import java.io.FileNotFoundException; import java.io.IOException; import java.util.HashMap; import java.util.Map; import java.util.UUID; import com.google.gson.JsonIOException; import com.google.gson.JsonSyntaxException; import com.paypal.api.payments.CancelNotification; import com.payp...
3,666
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payouts
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payouts/servlet/CancelPayoutItemServlet.java
// #Cancel Unclaimed Payout // Use this call to cancel an existing, unclaimed transaction. If an unclaimed item is not claimed within 30 days, the funds will be automatically returned to the sender. // This call can be used to cancel the unclaimed item prior to the automatic 30-day return. // API used: POST /v1/paymen...
3,667
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payouts
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payouts/servlet/CreateSinglePayoutServlet.java
// #Create Single Payout // You can make payouts to multiple PayPal accounts or to a single PayPal account. // If you are submitting a single payout, you can make a synchronous payout call, which immediately returns the results of the payout. // In a synchronous payout call, the response is similar to a batch payout s...
3,668
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payouts
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payouts/servlet/GetPayoutBatchStatusServlet.java
// #Get Payout Batch Status // This call can be used to periodically to get the latest status of a batch, along with the transaction status and other data for individual items. // API used: GET /v1/payments/payouts/<Payout-Batch-Id> package com.paypal.api.payouts.servlet; import static com.paypal.api.payments.util.Sam...
3,669
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payouts
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payouts/servlet/CreateBatchPayoutServlet.java
// #Create Batch Payout // The asynchronous payout mode (sync_mode=false, which is the default) enables a maximum of 500 individual payouts to be specified in one API call. // Exceeding 500 payouts in one call returns an HTTP response message with status code 400 (Bad Request). // API used: POST /v1/payments/payouts ...
3,670
0
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payouts
Create_ds/PayPal-Java-SDK/rest-api-sample/src/main/java/com/paypal/api/payouts/servlet/GetPayoutItemStatusServlet.java
// #Get Payout Item Status // Use this call to get data about a payout item, including the status, without retrieving an entire batch. // You can get the status of an individual payout item in a batch in order to review the current status of a previously-unclaimed, or pending, payout item. // API used: GET /v1/payment...
3,671
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/AuthorizationTestCase.java
package com.paypal.api.payments; import java.util.ArrayList; import java.util.List; import org.testng.Assert; import org.testng.annotations.Test; import org.testng.log4testng.Logger; import com.paypal.base.rest.PayPalRESTException; import com.paypal.base.util.TestConstants; public class AuthorizationTestCase { pr...
3,672
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/ErrorTestCase.java
package com.paypal.api.payments; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import org.testng.Assert; import org.testng.annotations.Test; import com.paypal.base.rest.JSONFormatter; public class ErrorTestCase { public static final String NAME = "VALIDATION_ERROR"; publ...
3,673
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/RelatedResourcesTestCase.java
package com.paypal.api.payments; import org.testng.Assert; import org.testng.annotations.Test; public class RelatedResourcesTestCase { public static final Sale SALE = SaleTestCase.createSale(); public static final Authorization AUTHORIZATION = AuthorizationTestCase .createAuthorization(); public static final...
3,674
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/AddressTestCase.java
package com.paypal.api.payments; import org.testng.Assert; import org.testng.annotations.Test; public class AddressTestCase { public static final String CITY = "Niagara Falls"; public static final String COUNTRYCODE = "US"; public static final String LINE1 = "3909 Witmer Road"; public static final String LINE...
3,675
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/ItemListTestCase.java
package com.paypal.api.payments; import java.util.ArrayList; import java.util.List; import org.testng.Assert; import org.testng.annotations.Test; public class ItemListTestCase { public static ItemList createItemList() { List<Item> items = new ArrayList<Item>(); items.add(ItemTestCase.createItem()); items.add...
3,676
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/CreditCardTokenTestCase.java
package com.paypal.api.payments; import org.testng.Assert; import org.testng.annotations.Test; public class CreditCardTokenTestCase { public static final String CREDITCARDID = "CARD-8PV12506MG6587946KEBHH4A"; public static final String PAYERID = "12345"; public static CreditCardToken createCreditCardToken() { C...
3,677
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/PaymentExecutionTestCase.java
package com.paypal.api.payments; import java.util.ArrayList; import java.util.List; import org.testng.Assert; import org.testng.annotations.Test; public class PaymentExecutionTestCase { public static PaymentExecution createPaymentExecution(){ List<Transactions> transactions = new ArrayList<Transactions>(); tr...
3,678
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/RefundTestCase.java
package com.paypal.api.payments; import com.paypal.base.rest.PayPalRESTException; import com.paypal.base.util.TestConstants; import org.testng.Assert; import org.testng.annotations.Test; import org.testng.log4testng.Logger; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; imp...
3,679
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/DetailsTestCase.java
package com.paypal.api.payments; import org.testng.Assert; import org.testng.annotations.Test; public class DetailsTestCase { public static final String FEE = "100.00"; public static final String SHIPPING = "12.50"; public static final String SUBTOTAL = "200.00"; public static final String TAX = "20.00"; pu...
3,680
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/RedirectUrlsTestCase.java
package com.paypal.api.payments; import org.testng.Assert; import org.testng.annotations.Test; public class RedirectUrlsTestCase { public static final String CANCELURL = "http://somedomain.com"; public static final String RETURNURL = "http://somedomain.com"; public static RedirectUrls createRedirectUrls() { ...
3,681
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/PayerTestCase.java
package com.paypal.api.payments; import java.util.ArrayList; import java.util.List; import org.testng.Assert; import org.testng.annotations.Test; public class PayerTestCase { public static final String PAYMENTMETHOD = "credit_card"; public static Payer createPayer() { List<FundingInstrument> fundingInstruments...
3,682
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/LinksTestCase.java
package com.paypal.api.payments; import org.testng.Assert; import org.testng.annotations.Test; import com.paypal.base.rest.JSONFormatter; public class LinksTestCase { public static final String HREF = "http://sample.com"; public static final String METHOD = "POST"; public static final String REL = "authorize";...
3,683
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/BillingPlanTestCase.java
package com.paypal.api.payments; import static org.testng.Assert.assertNull; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.testng.Assert; import org.testng.annotations.Test; import com.paypal.base.rest.PayPalRESTException; import com.paypal.base.util.T...
3,684
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/PayoutItemTestCase.java
package com.paypal.api.payments; import org.testng.Assert; import org.testng.annotations.Test; import com.paypal.base.rest.JSONFormatter; public class PayoutItemTestCase { public static String getJson() { return "{\"recipient_type\":\"TestSample\",\"amount\":" + CurrencyTestCase.getJson() + ",\"note\":\...
3,685
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/PayoutsTestCase.java
package com.paypal.api.payments; import java.util.ArrayList; import java.util.List; import java.util.Random; import org.testng.Assert; import org.testng.annotations.Test; import com.paypal.base.rest.JSONFormatter; import com.paypal.base.rest.PayPalRESTException; import com.paypal.base.util.TestConstants; public cla...
3,686
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/InvoiceTestCase.java
package com.paypal.api.payments; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import com.paypal.base.util.TestConstants; import org.testng.annotations.Test; import org.testng.log4testng.Logger; import com.paypal.base.rest.JSONFormatter; import com.paypal.base.rest.PayPalRESTE...
3,687
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/WebhookTestCase.java
package com.paypal.api.payments; import java.util.ArrayList; import java.util.List; import java.util.UUID; import com.paypal.base.util.TestConstants; import org.testng.Assert; import org.testng.annotations.Test; import org.testng.log4testng.Logger; import com.google.gson.JsonArray; import com.google.gson.JsonObject;...
3,688
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/EventListTestCase.java
package com.paypal.api.payments; import java.util.ArrayList; import java.util.List; import org.testng.Assert; import org.testng.annotations.Test; import org.testng.log4testng.Logger; public class EventListTestCase { public static final String EVENTTYPE_PAYMENT_AUTH = "PAYMENT.AUTHORIZATION.CREATED"; public stati...
3,689
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/ShippingAddressTestCase.java
package com.paypal.api.payments; import org.testng.Assert; import org.testng.annotations.Test; public class ShippingAddressTestCase { public static final String RECIPIENTSNAME = "TestUser"; public static ShippingAddress createShippingAddress() { ShippingAddress shippingAddress = new ShippingAddress(); shippin...
3,690
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/CaptureTestCase.java
package com.paypal.api.payments; import com.paypal.base.rest.PayPalRESTException; import com.paypal.base.util.TestConstants; import org.testng.Assert; import org.testng.annotations.Test; import org.testng.log4testng.Logger; import java.util.ArrayList; import java.util.List; @Test public class CaptureTestCase { pri...
3,691
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/PayerInfoTestCase.java
package com.paypal.api.payments; import org.testng.Assert; import org.testng.annotations.Test; public class PayerInfoTestCase { public static final String EMAIL = "somename@somedomain.com"; public static final String FIRSTNAME = "Joe"; public static final String LASTNAME = "Shopper"; public static final Strin...
3,692
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/TransactionTestCase.java
package com.paypal.api.payments; import java.util.ArrayList; import java.util.List; import org.testng.Assert; import org.testng.annotations.Test; public class TransactionTestCase { public static final Amount AMOUNT = AmountTestCase.createAmount("100.00"); public static final Payee PAYEE = PayeeTestCase.createPay...
3,693
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/WebhookListTestCase.java
package com.paypal.api.payments; import java.util.ArrayList; import java.util.List; import java.util.UUID; import com.paypal.base.util.TestConstants; import org.testng.Assert; import org.testng.annotations.Test; import org.testng.log4testng.Logger; import com.paypal.base.rest.PayPalRESTException; public class Webho...
3,694
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/EventTypeTestCase.java
package com.paypal.api.payments; import java.util.UUID; import com.paypal.base.util.TestConstants; import org.testng.Assert; import org.testng.annotations.Test; import org.testng.log4testng.Logger; import com.paypal.base.rest.PayPalRESTException; public class EventTypeTestCase { private static final Logger logge...
3,695
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/CreditCardTestCase.java
package com.paypal.api.payments; import com.paypal.base.rest.PayPalRESTException; import com.paypal.base.util.TestConstants; import org.testng.Assert; import org.testng.annotations.Test; import org.testng.log4testng.Logger; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; imp...
3,696
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/CurrencyTestCase.java
package com.paypal.api.payments; import org.testng.Assert; import org.testng.annotations.Test; import com.paypal.base.rest.JSONFormatter; public class CurrencyTestCase { public static String getJson() { return "{\"currency\":\"TestSample\",\"value\":\"12.34\"}"; } public static Currency getObject() { return...
3,697
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/FundingInstrumentTestCase.java
package com.paypal.api.payments; import org.testng.Assert; import org.testng.annotations.Test; public class FundingInstrumentTestCase { public static final CreditCard CREDITCARD = CreditCardTestCase .createCreditCard(); public static FundingInstrument createFundingInstrument() { FundingInstrument fundingInst...
3,698
0
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api
Create_ds/PayPal-Java-SDK/rest-api-sdk/src/test/java/com/paypal/api/payments/PayoutSenderBatchHeaderTestCase.java
package com.paypal.api.payments; import org.testng.Assert; import org.testng.annotations.Test; import com.paypal.base.rest.JSONFormatter; public class PayoutSenderBatchHeaderTestCase { public static String getJson() { return "{\"sender_batch_id\":\"TestSample\",\"email_subject\":\"TestSample\",\"recipient_type\"...
3,699