Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from carljm/paypal
Add support for EBAY_SALE and INVOICE_PAID in PayPal importer
- Loading branch information
Showing
5 changed files
with
375 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
{ | ||
"itemDetails": { | ||
"itemList": [ | ||
{ | ||
"name": "Dungeons & Dragons 3.5 Core Books: DM Guide, Players Handbook, Monster Manual", | ||
"number": "233315823254", | ||
"url": "http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=999", | ||
"price": "$64.00", | ||
"isNegative": false, | ||
"itemTotalPrice": "$64.00" | ||
} | ||
], | ||
"shippingAmount": "$11.95" | ||
}, | ||
"shippingDetails": [ | ||
{ | ||
"gspData": { | ||
"domestic": {} | ||
}, | ||
"address": { | ||
"countryCode": "US", | ||
"line1": "123 Main Street", | ||
"city": "SOMEWHERE", | ||
"state": "IL", | ||
"postalCode": "12345", | ||
"countryName": "United States", | ||
"addresseeName": "John Doe" | ||
}, | ||
"status": "Shipped", | ||
"carrier": "USPS", | ||
"trackingNumber": "999", | ||
"shippingDate": "August 26, 2019" | ||
} | ||
], | ||
"fptiTag": "paymentrec", | ||
"internal_id": "999", | ||
"counterparty": { | ||
"detailsCounterpartyText": "John Doe (john_doe)", | ||
"name": "eBay - John Doe (john_doe)", | ||
"url": "", | ||
"isBusiness": false | ||
}, | ||
"actions": { | ||
"printPackingSlip": { | ||
"content": "Print packing slip", | ||
"url": "/shiplabel/packingslip/999" | ||
}, | ||
"editTrackingInfo": { | ||
"content": "Edit tracking info", | ||
"url": "/addtracking/edit/5Y903271C7730840Z-999" | ||
} | ||
}, | ||
"p2pRedirect": {}, | ||
"links": { | ||
"reportDispute": { | ||
"target": "_blank", | ||
"linkUrl": "/resolutioncenter/999" | ||
}, | ||
"sellerProtectionPolicy": { | ||
"target": "_blank", | ||
"linkUrl": "/webapps/mpp/ua/useragreement-full#11" | ||
} | ||
}, | ||
"viewContext": "activity", | ||
"displayStatus": "", | ||
"transactionTypeEnum": "EBAY_SALE", | ||
"transactionType": "Payment Received", | ||
"txnTypeServiceKey": "PAYMENT", | ||
"status": "COMPLETED", | ||
"date": "August 26, 2019", | ||
"creationTimeBucket": "MoreThan3Months", | ||
"updateTimeBucket": "MoreThan3Months", | ||
"isCredit": true, | ||
"isBuyer": false, | ||
"isSeller": true, | ||
"buyerConfirmId": "999", | ||
"transactionId": "5Y903271C7730840Z", | ||
"amount": { | ||
"grossAmount": "$75.95", | ||
"netAmount": "$73.45", | ||
"fullPageNetAmount": "$73.45", | ||
"feeAmount": "$2.50", | ||
"grossExceedsNet": true, | ||
"isZeroFee": false, | ||
"feeLabel": "Fee", | ||
"rawAmounts": { | ||
"gross": { | ||
"value": "75.95", | ||
"currencyCode": "USD" | ||
} | ||
} | ||
}, | ||
"isShipped": true, | ||
"sellerProtectionStatus": "NOT_ELIGIBLE", | ||
"flags": { | ||
"isWinSMBEligible": true, | ||
"isEbay": true, | ||
"isContactSuppressedForEBay": true, | ||
"isCheckoutTxn": true, | ||
"showPurchaseDetails": true, | ||
"hasActions": true, | ||
"showSellerSafety": true | ||
}, | ||
"printDetailsLink": { | ||
"linkUrl": "/myaccount/transactions/print-details/999", | ||
"target": "_blank" | ||
}, | ||
"partner": {}, | ||
"accountSubscriptionType": "PAYPAL_CASH_PLUS", | ||
"isCFPBEligible": true, | ||
"isOffersInfoEligible": false, | ||
"isCCCreditFailureWithOffersRecovery": false, | ||
"photoUrl": "https://pics.paypal.com/00/p/NzlkM2E4MjYtYmUwYS00M2YyLWIwNTgtNjA1MWNiM2UwYTVj/image_34.JPG", | ||
"merchantLogoUrl": "https://www.paypalobjects.com/webstatic/wallet/merchants/mebay/logo_small-xhdpi.png", | ||
"badge": {}, | ||
"hasHideEmailTreatment": false, | ||
"isNewActivityUIEnabled": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
{ | ||
"itemDetails": { | ||
"itemList": [ | ||
{ | ||
"name": "Shipped to: JANE DOE", | ||
"description": "Tracking Number:999", | ||
"price": "$8.31", | ||
"isNegative": false, | ||
"itemTotalPrice": "$8.31" | ||
}, | ||
{ | ||
"name": "Processed by:JOHN DOE", | ||
"price": "$0.00", | ||
"isNegative": false, | ||
"itemTotalPrice": "$0.00" | ||
} | ||
], | ||
"itemTotalAmount": "$8.31" | ||
}, | ||
"fundingSource": { | ||
"fundingSourceList": [ | ||
{ | ||
"type": "BALANCE", | ||
"amount": "$8.31", | ||
"currencyCode": "USD" | ||
} | ||
] | ||
}, | ||
"shippingDetails": [ | ||
{ | ||
"address": { | ||
"countryCode": "US", | ||
"line1": "123 Main St", | ||
"city": "Sometown", | ||
"state": "TX", | ||
"postalCode": "12345", | ||
"countryName": "United States", | ||
"addresseeName": "Jane Doe" | ||
} | ||
} | ||
], | ||
"fptiTag": "purchase", | ||
"internal_id": "999", | ||
"counterparty": { | ||
"detailsCounterpartyText": "Some Business", | ||
"name": "Some Business", | ||
"url": "http://www.example.com", | ||
"isBusiness": true | ||
}, | ||
"counterpartyBizName": "Some Business", | ||
"p2pRedirect": {}, | ||
"links": { | ||
"reportDispute": { | ||
"target": "_blank", | ||
"linkUrl": "/resolutioncenter/5YB777267S0246440" | ||
}, | ||
"invoiceDetails": { | ||
"target": "_blank", | ||
"linkUrl": "/invoice/p/#INV2-999" | ||
} | ||
}, | ||
"paidWithHeader": "Paid with", | ||
"viewContext": "activity", | ||
"displayStatus": "", | ||
"transactionTypeEnum": "INVOICE_PAID", | ||
"transactionType": "Invoice paid", | ||
"txnTypeServiceKey": "PAYMENT", | ||
"status": "COMPLETED", | ||
"date": "April 17, 2019", | ||
"creationTimeBucket": "MoreThan3Months", | ||
"updateTimeBucket": "MoreThan3Months", | ||
"isCredit": false, | ||
"isBuyer": true, | ||
"isSeller": false, | ||
"buyerConfirmId": "5YB777267S0246440", | ||
"transactionId": "5YB777267S0246440", | ||
"amount": { | ||
"grossAmount": "$8.31", | ||
"netAmount": "$8.31", | ||
"fullPageNetAmount": "$8.31", | ||
"feeAmount": "$0.00", | ||
"grossExceedsNet": false, | ||
"isZeroFee": true, | ||
"feeLabel": "Fee", | ||
"rawAmounts": { | ||
"gross": { | ||
"value": "8.31", | ||
"currencyCode": "USD" | ||
} | ||
} | ||
}, | ||
"isShipped": false, | ||
"flags": { | ||
"isWinSMBEligible": true, | ||
"isInvoicePayment": true, | ||
"claimStatusMessage": null, | ||
"showPurchaseDetails": true, | ||
"hasActions": true | ||
}, | ||
"printDetailsLink": { | ||
"linkUrl": "/myaccount/transactions/print-details/5YB777267S0246440", | ||
"target": "_blank" | ||
}, | ||
"partner": {}, | ||
"accountSubscriptionType": "PAYPAL_CASH_PLUS", | ||
"isCFPBEligible": true, | ||
"isOffersInfoEligible": false, | ||
"isCCCreditFailureWithOffersRecovery": false, | ||
"merchantLogoUrl": null, | ||
"badge": {}, | ||
"hasHideEmailTreatment": false, | ||
"isNewActivityUIEnabled": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.