Skip to content

Commit 9d2645d

Browse files
author
Rajaram Padmanathan
committed
Refactored for GA release
1 parent 46d3022 commit 9d2645d

File tree

162 files changed

+170
-8988
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+170
-8988
lines changed

Diff for: CheckoutNETSDK.sln

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
44
VisualStudioVersion = 15.0.26124.0
55
MinimumVisualStudioVersion = 15.0.26124.0
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Source", "Source\Source.csproj", "{E8BFB5AE-5411-42B7-B38D-2BCC275B5EFE}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PayPalCheckoutSdk", "PayPalCheckoutSdk\PayPalCheckoutSdk.csproj", "{E8BFB5AE-5411-42B7-B38D-2BCC275B5EFE}"
77
EndProject
88
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test", "Test\Test.csproj", "{EB4A7FDB-ACFE-4E36-B9E7-C6CAAF483ADE}"
99
EndProject

Diff for: Source/AccessToken.cs renamed to PayPalCheckoutSdk/AccessToken.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
22
using System.Runtime.Serialization;
33

4-
namespace CheckoutNetsdk.Core
4+
namespace PayPalCheckoutSdk.Core
55
{
66
[DataContract]
77
public class AccessToken

Diff for: Source/AccessTokenRequest.cs renamed to PayPalCheckoutSdk/AccessTokenRequest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Net.Http.Headers;
55
using System.Text;
66

7-
namespace CheckoutNetsdk.Core
7+
namespace PayPalCheckoutSdk.Core
88
{
99
public class AccessTokenRequest : HttpRequest
1010
{

Diff for: Source/Core/PaypalEnvironment.cs renamed to PayPalCheckoutSdk/Core/PaypalEnvironment.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Text;
33
using BraintreeHttp;
44

5-
namespace CheckoutNetsdk.Core
5+
namespace PayPalCheckoutSdk.Core
66
{
77
/// <summary>
88
/// Recommended to use SandboxEnvironment for testing or LiveEnvironment for production.

Diff for: Source/Core/PaypalHttpClient.cs renamed to PayPalCheckoutSdk/Core/PaypalHttpClient.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Net.Http.Headers;
33
using BraintreeHttp;
44

5-
namespace CheckoutNetsdk.Core
5+
namespace PayPalCheckoutSdk.Core
66
{
77
public class PayPalHttpClient : HttpClient
88
{

Diff for: Source/Core/UserAgent.cs renamed to PayPalCheckoutSdk/Core/UserAgent.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Collections.Generic;
33
using System.Text;
44

5-
namespace CheckoutNetsdk.Core
5+
namespace PayPalCheckoutSdk.Core
66
{
77
/// <summary>
88
/// PayPal User-Agent Header implementation class

Diff for: Source/Core/Version.cs renamed to PayPalCheckoutSdk/Core/Version.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace CheckoutNetsdk.Core
1+
namespace PayPalCheckoutSdk.Core
22
{
33
public class Version
44
{

Diff for: Source/Orders/AddressDetails.cs renamed to PayPalCheckoutSdk/Orders/AddressDetails.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
14-
/// The non-portable additional address details that are sometimes needed for compliance, risk, or other scenarios where fine-grain address information might be needed. Not portable with common third party and opensource. Redundant with core fields. For example, `address_portable.address_line_1` is usually a combination of `address_details.street_number` and `street_name` and `street_type`.
14+
/// The non-portable additional address details that are sometimes needed for compliance, risk, or other scenarios where fine-grain address information might be needed. Not portable with common third party and openPayPalCheckoutSdk. Redundant with core fields. For example, `address_portable.address_line_1` is usually a combination of `address_details.street_number` and `street_name` and `street_type`.
1515
/// </summary>
1616
[DataContract]
1717
public class AddressDetails

Diff for: Source/Orders/AddressPortable.cs renamed to PayPalCheckoutSdk/Orders/AddressPortable.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// The portable international postal address. Maps to [AddressValidationMetadata](https://github.com/googlei18n/libaddressinput/wiki/AddressValidationMetadata) and HTML 5.1 [Autofilling form controls: the autocomplete attribute](https://www.w3.org/TR/html51/sec-forms.html#autofilling-form-controls-the-autocomplete-attribute).
@@ -22,7 +22,7 @@ public class AddressPortable
2222
public AddressPortable() {}
2323

2424
/// <summary>
25-
/// The non-portable additional address details that are sometimes needed for compliance, risk, or other scenarios where fine-grain address information might be needed. Not portable with common third party and opensource. Redundant with core fields. For example, `address_portable.address_line_1` is usually a combination of `address_details.street_number` and `street_name` and `street_type`.
25+
/// The non-portable additional address details that are sometimes needed for compliance, risk, or other scenarios where fine-grain address information might be needed. Not portable with common third party and openPayPalCheckoutSdk. Redundant with core fields. For example, `address_portable.address_line_1` is usually a combination of `address_details.street_number` and `street_name` and `street_type`.
2626
/// </summary>
2727
[DataMember(Name="address_details", EmitDefaultValue = false)]
2828
public AddressDetails AddressDetails;

Diff for: Source/Orders/AmountBreakdown.cs renamed to PayPalCheckoutSdk/Orders/AmountBreakdown.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// The breakdown of the amount. Breakdown provides details such as total item amount, total tax amount, shipping, handling, gift wrap, insurance, and discounts, if any.

Diff for: Source/Orders/AmountWithBreakdown.cs renamed to PayPalCheckoutSdk/Orders/AmountWithBreakdown.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// The total order amount with an optional breakdown that provides details, such as the total item amount, total tax amount, shipping, handling, insurance, and discounts, if any.<br/>If you specify `amount.breakdown`, the amount equals `item_total` plus `tax_total` plus `shipping` plus `handling` plus `insurance` minus `shipping_discount`.<br/>The amount must be a positive number with decimal precision and a PayPal-supported <a href="https://developer.paypal.com/docs/integration/direct/rest/currency-codes/">currency</a>.

Diff for: Source/Orders/ApplicationContext.cs renamed to PayPalCheckoutSdk/Orders/ApplicationContext.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// Customizes the payer experience during the approval process for the payment with PayPal.

Diff for: Source/Orders/Authorization.cs renamed to PayPalCheckoutSdk/Orders/Authorization.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// The authorized payment transaction.

Diff for: Source/Orders/Capture.cs renamed to PayPalCheckoutSdk/Orders/Capture.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// A captured payment.

Diff for: Source/Orders/Card.cs renamed to PayPalCheckoutSdk/Orders/Card.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// The payment card to use to fund a payment. Can be a credit or debit card.

Diff for: Source/Orders/Customer.cs renamed to PayPalCheckoutSdk/Orders/Customer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// The customer who approves and pays for the order. The customer is also known as the payer.

Diff for: Source/Orders/DisplayableMerchantInformation.cs renamed to PayPalCheckoutSdk/Orders/DisplayableMerchantInformation.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// The merchant information. The merchant is also known as the payee. Appears to the customer in checkout, transactions, email receipts, and transaction history.

Diff for: Source/Orders/ExchangeRate.cs renamed to PayPalCheckoutSdk/Orders/ExchangeRate.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// The exchange rate that determines the amount to convert from one currency to another currency.
@@ -24,8 +24,8 @@ public ExchangeRate() {}
2424
/// <summary>
2525
/// The [three-character ISO-4217 currency code](/docs/integration/direct/rest/currency-codes/) that identifies the currency.
2626
/// </summary>
27-
[DataMember(Name="source_currency", EmitDefaultValue = false)]
28-
public string SourceCurrency;
27+
[DataMember(Name="PayPalCheckoutSdk_currency", EmitDefaultValue = false)]
28+
public string PayPalCheckoutSdkCurrency;
2929

3030
/// <summary>
3131
/// The [three-character ISO-4217 currency code](/docs/integration/direct/rest/currency-codes/) that identifies the currency.
@@ -34,7 +34,7 @@ public ExchangeRate() {}
3434
public string TargetCurrency;
3535

3636
/// <summary>
37-
/// The target currency amount. Equivalent to one unit of the source currency. Formatted as integer or decimal value with one to 15 digits to the right of the decimal point.
37+
/// The target currency amount. Equivalent to one unit of the PayPalCheckoutSdk currency. Formatted as integer or decimal value with one to 15 digits to the right of the decimal point.
3838
/// </summary>
3939
[DataMember(Name="value", EmitDefaultValue = false)]
4040
public string Value;

Diff for: Source/Orders/Item.cs renamed to PayPalCheckoutSdk/Orders/Item.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// The details for the items to be purchased.

Diff for: Source/Orders/LinkDescription.cs renamed to PayPalCheckoutSdk/Orders/LinkDescription.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// The request-related [HATEOAS link](/docs/api/overview/#hateoas-links) information.

Diff for: Source/Orders/LinkSchema.cs renamed to PayPalCheckoutSdk/Orders/LinkSchema.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// The request data or link target.

Diff for: Source/Orders/Media.cs renamed to PayPalCheckoutSdk/Orders/Media.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// The media type and context-encoding scheme.

Diff for: Source/Orders/MerchantBase.cs renamed to PayPalCheckoutSdk/Orders/MerchantBase.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// The details for the merchant who receives the funds and fulfills the order. The merchant is also known as the payee.

Diff for: Source/Orders/MerchantPayableBreakdown.cs renamed to PayPalCheckoutSdk/Orders/MerchantPayableBreakdown.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// The breakdown of the refund.

Diff for: Source/Orders/MerchantReceivableBreakdown.cs renamed to PayPalCheckoutSdk/Orders/MerchantReceivableBreakdown.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// The detailed breakdown of the captured payment.

Diff for: Source/Orders/Money.cs renamed to PayPalCheckoutSdk/Orders/Money.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// The currency and amount for a financial transaction, such as a balance or payment due.

Diff for: Source/Orders/Name.cs renamed to PayPalCheckoutSdk/Orders/Name.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// The name of the party.

Diff for: Source/Orders/NetAmountBreakdownItem.cs renamed to PayPalCheckoutSdk/Orders/NetAmountBreakdownItem.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// The net amount. Returned when the currency of the refund is different from the currency of the PayPal account where the merchant holds their funds.

Diff for: Source/Orders/Order.cs renamed to PayPalCheckoutSdk/Orders/Order.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// The order details.

Diff for: Source/Orders/OrderActionRequest.cs renamed to PayPalCheckoutSdk/Orders/OrderActionRequest.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// Completes an action for an order.
@@ -22,10 +22,10 @@ public class OrderActionRequest
2222
public OrderActionRequest() {}
2323

2424
/// <summary>
25-
/// The payment source definition.
25+
/// The payment PayPalCheckoutSdk definition.
2626
/// </summary>
27-
[DataMember(Name="payment_source", EmitDefaultValue = false)]
28-
public PaymentSource PaymentSource;
27+
[DataMember(Name="payment_PayPalCheckoutSdk", EmitDefaultValue = false)]
28+
public PaymentPayPalCheckoutSdk PaymentPayPalCheckoutSdk;
2929
}
3030
}
3131

Diff for: Source/Orders/OrderRequest.cs renamed to PayPalCheckoutSdk/Orders/OrderRequest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// The order request details.

Diff for: Source/Orders/OrdersAuthorizeRequest.cs renamed to PayPalCheckoutSdk/Orders/OrdersAuthorizeRequest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
using BraintreeHttp;
1313

1414

15-
namespace CheckoutNetsdk.Orders
15+
namespace PayPalCheckoutSdk.Orders
1616
{
1717
/// <summary>
1818
/// Authorizes payment for an order. The response shows details of authorizations. You can make this call only if you specified `intent=AUTHORIZE` in the create order call.

Diff for: Source/Orders/OrdersCaptureRequest.cs renamed to PayPalCheckoutSdk/Orders/OrdersCaptureRequest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
using BraintreeHttp;
1313

1414

15-
namespace CheckoutNetsdk.Orders
15+
namespace PayPalCheckoutSdk.Orders
1616
{
1717
/// <summary>
1818
/// Captures a payment for an order.

Diff for: Source/Orders/OrdersCreateRequest.cs renamed to PayPalCheckoutSdk/Orders/OrdersCreateRequest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
using BraintreeHttp;
1313

1414

15-
namespace CheckoutNetsdk.Orders
15+
namespace PayPalCheckoutSdk.Orders
1616
{
1717
/// <summary>
1818
/// Creates an order. Supports only orders with one purchase unit.

Diff for: Source/Orders/OrdersGetRequest.cs renamed to PayPalCheckoutSdk/Orders/OrdersGetRequest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
using BraintreeHttp;
1313

1414

15-
namespace CheckoutNetsdk.Orders
15+
namespace PayPalCheckoutSdk.Orders
1616
{
1717
/// <summary>
1818
/// Shows details for an order, by ID.

Diff for: Source/Orders/OrdersPatchRequest.cs renamed to PayPalCheckoutSdk/Orders/OrdersPatchRequest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
using BraintreeHttp;
1313

1414

15-
namespace CheckoutNetsdk.Orders
15+
namespace PayPalCheckoutSdk.Orders
1616
{
1717
/// <summary>
1818
/// Updates an order that has the `CREATED` or `APPROVED` status. You cannot update an order with `COMPLETED` status. You can patch these attributes and objects:<table><thead><tr><th align="left">Attribute or object</th><th align="left">Operations</th></tr></thead><tbody><tr><td><code>intent</code></td><td align="left">Replace</td></tr><tr><td><code>purchase_units</code></td><td align="left">Replace, add</td></tr><tr><td><code>purchase_units[].custom_id</code></td><td align="left">Replace, add, remove</td></tr><tr><td><code>purchase_units[].description</code></td><td align="left">Replace, add, remove</td></tr><tr><td><code>purchase_units[].payee.email</code></td><td align="left">Replace, add</td></tr><tr><td><code>purchase_units[].shipping</code></td><td align="left">Replace, add, remove</td></tr><tr><td><code>purchase_units[].soft_descriptor</code></td><td align="left">Replace, add, remove</td></tr><tr><td><code>purchase_units[].amount</code></td><td align="left">Replace</td></tr><tr><td><code>purchase_units[].invoice_id</code></td><td align="left">Replace, add, remove</td></tr></tbody></table>

Diff for: Source/Orders/OrdersValidateRequest.cs renamed to PayPalCheckoutSdk/Orders/OrdersValidateRequest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
using BraintreeHttp;
1313

1414

15-
namespace CheckoutNetsdk.Orders
15+
namespace PayPalCheckoutSdk.Orders
1616
{
1717
/// <summary>
1818
/// Validates a payment method and checks it for contingencies.

Diff for: Source/Orders/Patch.cs renamed to PayPalCheckoutSdk/Orders/Patch.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
14-
/// The JSON patch object to apply partial updates to resources.
14+
/// The JSON patch object to apply partial updates to rePayPalCheckoutSdks.
1515
/// </summary>
1616
[DataContract]
1717
public class Patch<T>

Diff for: Source/Orders/Payee.cs renamed to PayPalCheckoutSdk/Orders/Payee.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Collections.Generic;
99

1010

11-
namespace CheckoutNetsdk.Orders
11+
namespace PayPalCheckoutSdk.Orders
1212
{
1313
/// <summary>
1414
/// The merchant who receives the funds and fulfills the order. The merchant is also known as the payee.

0 commit comments

Comments
 (0)