From af123c2e52ea18a9046bd49570e865c623b9b43d Mon Sep 17 00:00:00 2001 From: Robot Date: Mon, 23 Sep 2024 18:47:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=20Paypal=20=E6=94=AF?= =?UTF-8?q?=E4=BB=98=20(#421)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PaymentSource参数 --- paypal/model.go | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/paypal/model.go b/paypal/model.go index 57f97d96..e9177a20 100644 --- a/paypal/model.go +++ b/paypal/model.go @@ -260,6 +260,45 @@ type PaymentSource struct { P24 *P24 `json:"p24,omitempty"` Sofort *Sofort `json:"sofort,omitempty"` Trustly *Trustly `json:"trustly,omitempty"` + Paypal *Paypal `json:"paypal,omitempty"` +} +type Paypal struct { + EmailAddress string `json:"email_address"` + AccountID string `json:"account_id"` + AccountStatus string `json:"account_status"` + Name *PayerName `json:"name"` + Address *PayerAddress `json:"address"` + Attributes *PaypalAttributes `json:"attributes"` +} + +type PayerName struct { + GivenName string `json:"given_name"` + Surname string `json:"surname"` +} + +type PayerAddress struct { + CountryCode string `json:"country_code"` +} + +type PaypalAttributes struct { + Vault *PaypalVault `json:"vault"` +} + +type PaypalVault struct { + ID string `json:"id"` + Status string `json:"status"` + Customer *PaypalCustomer `json:"customer"` + Links []PaypalLink `json:"links"` +} + +type PaypalCustomer struct { + ID string `json:"id"` +} + +type PaypalLink struct { + Href string `json:"href"` + Rel string `json:"rel"` + Method string `json:"method"` } type Bancontact struct {