Documentation ¶
Index ¶
- Constants
- type AudienceMemberProducts
- type HighRiskTransactionCreated
- type HighRiskTransactionUpdated
- type LockerProcessed
- type NewAudienceMember
- type PaymentDisputeClosed
- type PaymentDisputeCreated
- type PaymentRefunded
- type PaymentSucceeded
- type TransferCreated
- type TransferPaid
- type UpdateAudienceMember
Constants ¶
const HighRiskTransactionCreatedAlertName = "high_risk_transaction_created"
const HighRiskTransactionUpdatedAlertName = "high_risk_transaction_updated"
const LockerProcessedAlertName = "locker_processed"
const NewAudienceMemberAlertName = "new_audience_member"
const PaymentDisputeClosedAlertName = "payment_dispute_closed"
const PaymentDisputeCreatedAlertName = "payment_dispute_created"
const PaymentRefundedAlertName = "payment_refunded"
const PaymentSucceededAlertName = "payment_succeeded"
const TransferCreatedAlertName = "transfer_created"
const TransferPaidAlertName = "transfer_paid"
const UpdateAudienceMemberAlertName = "update_audience_member"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudienceMemberProducts ¶
type AudienceMemberProducts []int64
func (AudienceMemberProducts) String ¶
func (n AudienceMemberProducts) String() string
func (*AudienceMemberProducts) UnmarshalJSON ¶
func (n *AudienceMemberProducts) UnmarshalJSON(data []byte) error
func (*AudienceMemberProducts) UnmarshalText ¶
func (n *AudienceMemberProducts) UnmarshalText(data []byte) error
type HighRiskTransactionCreated ¶
type HighRiskTransactionCreated struct { AlertName string `json:"alert_name"` CaseID int `json:"case_id,string"` CheckoutID string `json:"checkout_id"` CreatedAt *types.Datetime `json:"created_at,string"` CustomerEmailAddress string `json:"customer_email_address"` CustomerUserID int `json:"customer_user_id,string"` EventTime *types.Datetime `json:"event_time,string"` MarketingConsent *types.MarketingConsent `json:"marketing_consent,string"` Passthrough string `json:"passthrough"` ProductID int `json:"product_id,string"` RiskScore *decimal.Decimal `json:"risk_score,string"` Status string `json:"status"` PSignature string `json:"p_signature" php:"-"` }
HighRiskTranasctionCreated refer to https://paddle.com/docs/reference-using-webhooks/#high_risk_transaction_created
func (*HighRiskTransactionCreated) Serialize ¶
func (h *HighRiskTransactionCreated) Serialize() ([]byte, error)
func (*HighRiskTransactionCreated) Signature ¶
func (h *HighRiskTransactionCreated) Signature() ([]byte, error)
type HighRiskTransactionUpdated ¶
type HighRiskTransactionUpdated struct { AlertName string `json:"alert_name"` CaseID int `json:"case_id,string"` CheckoutID string `json:"checkout_id"` CreatedAt *types.Datetime `json:"created_at,string"` CustomerEmailAddress string `json:"customer_email_address"` CustomerUserID int `json:"customer_user_id,string"` EventTime *types.Datetime `json:"event_time,string"` MarketingConsent *types.MarketingConsent `json:"marketing_consent,string"` Passthrough string `json:"passthrough"` ProductID int `json:"product_id,string"` RiskScore *decimal.Decimal `json:"risk_score,string"` Status string `json:"status"` PSignature string `json:"p_signature" php:"-"` }
HighRiskTranasctionUpdated refer to https://paddle.com/docs/reference-using-webhooks/#high_risk_transaction_updated
func (*HighRiskTransactionUpdated) Serialize ¶
func (h *HighRiskTransactionUpdated) Serialize() ([]byte, error)
func (*HighRiskTransactionUpdated) Signature ¶
func (h *HighRiskTransactionUpdated) Signature() ([]byte, error)
type LockerProcessed ¶
type LockerProcessed struct { AlertName string `json:"alert_name"` CheckoutID string `json:"checkout_id"` CheckoutRecovery int `json:"checkout_recovery,string"` Coupon string `json:"coupon"` Download string `json:"download"` Email string `json:"email"` EventTime *types.Datetime `json:"event_time,string"` Instructions string `json:"instructions"` License string `json:"license"` MarketingConsent *types.MarketingConsent `json:"marketing_consent,string"` OrderID int `json:"order_id,string"` ProductID int `json:"product_id,string"` Quantity int `json:"quantity,string"` PSignature string `json:"p_signature" php:"-"` }
LockerProcessed refer to https://paddle.com/docs/reference-using-webhooks/#locker_processed
func (*LockerProcessed) Serialize ¶
func (l *LockerProcessed) Serialize() ([]byte, error)
func (*LockerProcessed) Signature ¶
func (l *LockerProcessed) Signature() ([]byte, error)
type NewAudienceMember ¶
type NewAudienceMember struct { AlertName string `json:"alert_name"` CreatedAt *types.Datetime `json:"created_at,string"` Email string `json:"email"` EventTime *types.Datetime `json:"event_time,string"` MarketingConsent *types.MarketingConsent `json:"marketing_consent,string"` Products *AudienceMemberProducts `json:"products,string"` Source string `json:"source"` Subscribed int `json:"subscribed,string"` UserID int `json:"user_id,string"` PSignature string `json:"p_signature" php:"-"` }
NewAudienceMember refer to https://paddle.com/docs/reference-using-webhooks/#new_audience_member
func (*NewAudienceMember) Serialize ¶
func (m *NewAudienceMember) Serialize() ([]byte, error)
func (*NewAudienceMember) Signature ¶
func (m *NewAudienceMember) Signature() ([]byte, error)
type PaymentDisputeClosed ¶
type PaymentDisputeClosed struct { AlertName string `json:"alert_name"` Amount *decimal.Decimal `json:"amount,string"` CheckoutID string `json:"checkout_id"` Currency string `json:"currency"` Email string `json:"email"` EventTime *types.Datetime `json:"event_time,string"` FeeUsd *decimal.Decimal `json:"fee_usd,string"` MarketingConsent *types.MarketingConsent `json:"marketing_consent,string"` OrderID int `json:"order_id,string"` Passthrough string `json:"passthrough"` Status string `json:"status"` PSignature string `json:"p_signature" php:"-"` }
PaymentDisputeClosed refer to https://paddle.com/docs/reference-using-webhooks/#payment_dispute_closed
func (*PaymentDisputeClosed) Serialize ¶
func (p *PaymentDisputeClosed) Serialize() ([]byte, error)
func (*PaymentDisputeClosed) Signature ¶
func (p *PaymentDisputeClosed) Signature() ([]byte, error)
type PaymentDisputeCreated ¶
type PaymentDisputeCreated struct { AlertName string `json:"alert_name"` Amount *decimal.Decimal `json:"amount,string"` CheckoutID string `json:"checkout_id"` Currency string `json:"currency"` Email string `json:"email"` EventTime *types.Datetime `json:"event_time,string"` FeeUsd *decimal.Decimal `json:"fee_usd,string"` MarketingConsent *types.MarketingConsent `json:"marketing_consent,string"` OrderID int `json:"order_id,string"` Passthrough string `json:"passthrough"` Status string `json:"status"` PSignature string `json:"p_signature" php:"-"` }
PaymentDisputeCreated refer to https://paddle.com/docs/reference-using-webhooks/#payment_dispute_created
func (*PaymentDisputeCreated) Serialize ¶
func (p *PaymentDisputeCreated) Serialize() ([]byte, error)
func (*PaymentDisputeCreated) Signature ¶
func (p *PaymentDisputeCreated) Signature() ([]byte, error)
type PaymentRefunded ¶
type PaymentRefunded struct { AlertName string `json:"alert_name"` Amount *decimal.Decimal `json:"amount,string"` BalanceCurrency string `json:"balance_currency"` BalanceEarningsDecrease *decimal.Decimal `json:"balance_earnings_decrease,string"` BalanceFeeRefund *decimal.Decimal `json:"balance_fee_refund,string"` BalanceGrossRefund *decimal.Decimal `json:"balance_gross_refund,string"` BalanceTaxRefund *decimal.Decimal `json:"balance_tax_refund,string"` CheckoutID string `json:"checkout_id"` Currency string `json:"currency"` EarningsDecrease *decimal.Decimal `json:"earnings_decrease,string"` Email string `json:"email"` EventTime *types.Datetime `json:"event_time,string"` FeeRefund *decimal.Decimal `json:"fee_refund,string"` GrossRefund *decimal.Decimal `json:"gross_refund,string"` MarketingConsent *types.MarketingConsent `json:"marketing_consent,string"` OrderID string `json:"order_id"` Passthrough string `json:"passthrough"` Quantity int `json:"quantity,string"` RefundType string `json:"refund_type"` TaxRefund *decimal.Decimal `json:"tax_refund,string"` PSignature string `json:"p_signature" php:"-"` }
PaymentRefunded refer to https://paddle.com/docs/reference-using-webhooks/#payment_refunded
func (*PaymentRefunded) Serialize ¶
func (s *PaymentRefunded) Serialize() ([]byte, error)
func (*PaymentRefunded) Signature ¶
func (s *PaymentRefunded) Signature() ([]byte, error)
type PaymentSucceeded ¶
type PaymentSucceeded struct { AlertName string `json:"alert_name"` BalanceCurrency string `json:"balance_currency"` BalanceEarnings *decimal.Decimal `json:"balance_earnings,string"` BalanceFee *decimal.Decimal `json:"balance_fee,string"` BalanceGross *decimal.Decimal `json:"balance_gross,string"` BalanceTax *decimal.Decimal `json:"balance_tax,string"` CheckoutID string `json:"checkout_id"` Country string `json:"country"` Coupon string `json:"coupon"` Currency string `json:"currency"` CustomerName string `json:"customer_name"` Earnings *decimal.Decimal `json:"earnings,string"` Email string `json:"email"` EventTime *types.Datetime `json:"event_time,string"` Fee *decimal.Decimal `json:"fee,string"` IP *net.IP `json:"ip,string"` MarketingConsent *types.MarketingConsent `json:"marketing_consent,string"` OrderID string `json:"order_id"` Passthrough string `json:"passthrough"` PaymentMethod string `json:"payment_method"` PaymentTax *decimal.Decimal `json:"payment_tax,string"` ProductID int `json:"product_id,string"` ProductName string `json:"product_name"` Quantity int `json:"quantity,string"` ReceiptURL string `json:"receipt_url"` SaleGross *decimal.Decimal `json:"sale_gross,string"` UsedPriceOverride bool `json:"used_price_override,string"` PSignature string `json:"p_signature" php:"-"` }
PaymentSucceeded refer to https://paddle.com/docs/reference-using-webhooks/#payment_succeeded
func (*PaymentSucceeded) Serialize ¶
func (s *PaymentSucceeded) Serialize() ([]byte, error)
func (*PaymentSucceeded) Signature ¶
func (s *PaymentSucceeded) Signature() ([]byte, error)
type TransferCreated ¶
type TransferCreated struct { AlertName string `json:"alert_name"` Amount *decimal.Decimal `json:"amount,string"` Currency string `json:"currency"` EventTime *types.Datetime `json:"event_time,string"` PayoutID int `json:"payout_id,string"` Status string `json:"status"` PSignature string `json:"p_signature" php:"-"` }
TransferCreated refer to https://paddle.com/docs/reference-using-webhooks/#transfer_created
func (*TransferCreated) Serialize ¶
func (t *TransferCreated) Serialize() ([]byte, error)
func (*TransferCreated) Signature ¶
func (t *TransferCreated) Signature() ([]byte, error)
type TransferPaid ¶
type TransferPaid struct { AlertName string `json:"alert_name"` Amount *decimal.Decimal `json:"amount,string"` Currency string `json:"currency"` EventTime *types.Datetime `json:"event_time,string"` PayoutID int `json:"payout_id,string"` Status string `json:"status"` PSignature string `json:"p_signature" php:"-"` }
TransferPaid refer to https://paddle.com/docs/reference-using-webhooks/#transfer_paid
func (*TransferPaid) Serialize ¶
func (t *TransferPaid) Serialize() ([]byte, error)
func (*TransferPaid) Signature ¶
func (t *TransferPaid) Signature() ([]byte, error)
type UpdateAudienceMember ¶
type UpdateAudienceMember struct { AlertName string `json:"alert_name"` EventTime *types.Datetime `json:"event_time,string"` NewCustomerEmail string `json:"new_customer_email"` NewMarketingConsent *types.MarketingConsent `json:"new_marketing_consent,string"` OldCustomerEmail string `json:"old_customer_email"` OldMarketingConsent *types.MarketingConsent `json:"old_marketing_consent,string"` Products *AudienceMemberProducts `json:"products,string"` Source string `json:"source"` UpdatedAt *types.Datetime `json:"updated_at,string"` UserID int `json:"user_id,string"` PSignature string `json:"p_signature" php:"-"` }
UpdateAudienceMember refer to https://paddle.com/docs/reference-using-webhooks/#update_audience_member
func (*UpdateAudienceMember) Serialize ¶
func (u *UpdateAudienceMember) Serialize() ([]byte, error)
func (*UpdateAudienceMember) Signature ¶
func (u *UpdateAudienceMember) Signature() ([]byte, error)