mirror of
https://github.com/plutov/paypal.git
synced 2025-01-23 10:21:03 +01:00
Merge pull request #64 from Shamanoid/master
feat: adds ApplicationContext support
This commit is contained in:
commit
f49da25ce1
13
types.go
13
types.go
|
@ -93,6 +93,15 @@ type (
|
||||||
Value string `json:"value"`
|
Value string `json:"value"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ApplicationContext struct
|
||||||
|
ApplicationContext struct {
|
||||||
|
BrandName string `json:"brand_name"`
|
||||||
|
Locale string `json:"locale"`
|
||||||
|
LandingPage string `json:"landing_page"`
|
||||||
|
ShippingPreference string `json:"shipping_preference"`
|
||||||
|
UserAction string `json:"user_action"`
|
||||||
|
}
|
||||||
|
|
||||||
// Authorization struct
|
// Authorization struct
|
||||||
Authorization struct {
|
Authorization struct {
|
||||||
Amount *Amount `json:"amount,omitempty"`
|
Amount *Amount `json:"amount,omitempty"`
|
||||||
|
@ -232,6 +241,7 @@ type (
|
||||||
GiftWrap string `json:"gift_wrap,omitempty"`
|
GiftWrap string `json:"gift_wrap,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ErrorResponseDetail struct
|
||||||
ErrorResponseDetail struct {
|
ErrorResponseDetail struct {
|
||||||
Field string `json:"field"`
|
Field string `json:"field"`
|
||||||
Issue string `json:"issue"`
|
Issue string `json:"issue"`
|
||||||
|
@ -348,6 +358,7 @@ type (
|
||||||
Payment struct {
|
Payment struct {
|
||||||
Intent string `json:"intent"`
|
Intent string `json:"intent"`
|
||||||
Payer *Payer `json:"payer"`
|
Payer *Payer `json:"payer"`
|
||||||
|
ApplicationContext *ApplicationContext `json:"application_context,omitempty"`
|
||||||
Transactions []Transaction `json:"transactions"`
|
Transactions []Transaction `json:"transactions"`
|
||||||
RedirectURLs *RedirectURLs `json:"redirect_urls,omitempty"`
|
RedirectURLs *RedirectURLs `json:"redirect_urls,omitempty"`
|
||||||
ID string `json:"id,omitempty"`
|
ID string `json:"id,omitempty"`
|
||||||
|
@ -369,6 +380,7 @@ type (
|
||||||
ChargeModels []ChargeModel `json:"charge_models,omitempty"`
|
ChargeModels []ChargeModel `json:"charge_models,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// PaymentOptions struct
|
||||||
PaymentOptions struct {
|
PaymentOptions struct {
|
||||||
AllowedPaymentMethod string `json:"allowed_payment_method,omitempty"`
|
AllowedPaymentMethod string `json:"allowed_payment_method,omitempty"`
|
||||||
}
|
}
|
||||||
|
@ -548,7 +560,6 @@ type (
|
||||||
WebProfile struct {
|
WebProfile struct {
|
||||||
ID string `json:"id,omitempty"`
|
ID string `json:"id,omitempty"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Temporary bool `json:"temporary"`
|
|
||||||
Presentation Presentation `json:"presentation,omitempty"`
|
Presentation Presentation `json:"presentation,omitempty"`
|
||||||
InputFields InputFields `json:"input_fields,omitempty"`
|
InputFields InputFields `json:"input_fields,omitempty"`
|
||||||
FlowConfig FlowConfig `json:"flow_config,omitempty"`
|
FlowConfig FlowConfig `json:"flow_config,omitempty"`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user