-
Notifications
You must be signed in to change notification settings - Fork 4.9k
source-paypal-transaction: update transaction schema #13682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
cc0b546
79121f5
a0d5eb4
c00755b
30a7eb3
fd01719
13d82a9
40172fc
dc05ec1
9376ec9
3d6eef3
39cf005
6d0c18d
2039b50
f11fb4b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -5,135 +5,166 @@ | |||||||||
| "transaction_info": { | ||||||||||
| "type": ["null", "object"], | ||||||||||
| "properties": { | ||||||||||
| "paypal_reference_id": { | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 24 | ||||||||||
| }, | ||||||||||
| "paypal_reference_id_type": { | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 3 | ||||||||||
mohamagdy marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||
| }, | ||||||||||
| "protection_eligibility": { | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 2 | ||||||||||
| }, | ||||||||||
| "paypal_account_id": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 24 | ||||||||||
| }, | ||||||||||
| "transaction_id": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 24 | ||||||||||
| }, | ||||||||||
| "transaction_event_code": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 5 | ||||||||||
| }, | ||||||||||
| "transaction_initiation_date": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "format": "date-time" | ||||||||||
| }, | ||||||||||
| "transaction_updated_date": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "format": "date-time" | ||||||||||
| }, | ||||||||||
| "transaction_amount": { | ||||||||||
| "type": ["null", "object"], | ||||||||||
| "properties": { | ||||||||||
| "currency_code": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": "string", | ||||||||||
| "maxLength": 3 | ||||||||||
mohamagdy marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||
| }, | ||||||||||
| "value": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": "number" | ||||||||||
mohamagdy marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||
| } | ||||||||||
| } | ||||||||||
| }, | ||||||||||
| "fee_amount": { | ||||||||||
| "type": ["null", "object"], | ||||||||||
| "properties": { | ||||||||||
| "currency_code": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 3 | ||||||||||
| }, | ||||||||||
| "value": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "number"] | ||||||||||
| } | ||||||||||
| } | ||||||||||
| }, | ||||||||||
| "insurance_amount": { | ||||||||||
| "type": ["null", "object"], | ||||||||||
| "properties": { | ||||||||||
| "currency_code": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 3 | ||||||||||
| }, | ||||||||||
| "value": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "number"] | ||||||||||
| } | ||||||||||
| } | ||||||||||
| }, | ||||||||||
| "shipping_amount": { | ||||||||||
| "type": ["null", "object"], | ||||||||||
| "properties": { | ||||||||||
| "currency_code": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 3 | ||||||||||
| }, | ||||||||||
| "value": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "number"] | ||||||||||
| } | ||||||||||
| } | ||||||||||
| }, | ||||||||||
| "shipping_discount_amount": { | ||||||||||
| "type": ["null", "object"], | ||||||||||
| "properties": { | ||||||||||
| "currency_code": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 3 | ||||||||||
| }, | ||||||||||
| "value": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "number"] | ||||||||||
| } | ||||||||||
| } | ||||||||||
| }, | ||||||||||
| "transaction_status": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 1 | ||||||||||
| }, | ||||||||||
| "transaction_subject": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 256 | ||||||||||
| }, | ||||||||||
| "transaction_note": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
mohamagdy marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||
| }, | ||||||||||
| "invoice_id": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 127 | ||||||||||
| }, | ||||||||||
| "custom_field": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
mohamagdy marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||
| }, | ||||||||||
| "protection_eligibility": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| } | ||||||||||
| } | ||||||||||
| }, | ||||||||||
| "payer_info": { | ||||||||||
| "type": ["null", "object"], | ||||||||||
| "properties": { | ||||||||||
| "account_id": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 13 | ||||||||||
| }, | ||||||||||
| "email_address": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 256 | ||||||||||
| }, | ||||||||||
| "address_status": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 1 | ||||||||||
| }, | ||||||||||
| "payer_status": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 1 | ||||||||||
| }, | ||||||||||
| "payer_name": { | ||||||||||
| "type": ["null", "object"], | ||||||||||
| "properties": { | ||||||||||
| "given_name": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 256 | ||||||||||
|
Comment on lines
+155
to
+156
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| }, | ||||||||||
| "surname": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 256 | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| }, | ||||||||||
| "alternate_full_name": { | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Delete this property as it's been deprecated. |
||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 256 | ||||||||||
| } | ||||||||||
| } | ||||||||||
| }, | ||||||||||
| "country_code": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 3 | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| } | ||||||||||
| } | ||||||||||
| }, | ||||||||||
| "shipping_info": { | ||||||||||
| "type": ["null", "object"], | ||||||||||
| "properties": { | ||||||||||
| "name": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 500 | ||||||||||
| }, | ||||||||||
| "address": { | ||||||||||
| "type": ["null", "object"], | ||||||||||
|
|
@@ -145,13 +176,16 @@ | |||||||||
| "type": ["null", "string"] | ||||||||||
| }, | ||||||||||
| "city": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 256 | ||||||||||
|
Comment on lines
+191
to
+192
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| }, | ||||||||||
| "country_code": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 3 | ||||||||||
|
Comment on lines
+195
to
+196
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| }, | ||||||||||
| "postal_code": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 256 | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| } | ||||||||||
| } | ||||||||||
| } | ||||||||||
|
|
@@ -166,36 +200,40 @@ | |||||||||
| "type": ["null", "object"], | ||||||||||
| "properties": { | ||||||||||
| "item_code": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 1000 | ||||||||||
| }, | ||||||||||
| "item_name": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "string"], | ||||||||||
| "maxLength": 256 | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| }, | ||||||||||
| "item_description": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| }, | ||||||||||
| "item_quantity": { | ||||||||||
| "type": ["null", "string"] | ||||||||||
| "type": ["null", "number"] | ||||||||||
|
||||||||||
| "type": ["null", "number"] | |
| "type": ["null", "number"], | |
| "maxLength": 4000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the currency code and value properties according to the documentation.
Uh oh!
There was an error while loading. Please reload this page.