@@ -13,37 +13,37 @@ type PaymentRequestRequest struct {
13
13
}
14
14
15
15
type PaymentRequestResult struct {
16
- PaymentRequest * PaymentRequest `json:"payment_request,omitempty"`
16
+ PaymentRequest * PaymentRequest `json:"payment_request,omitempty"`
17
17
PaymentRequests []PaymentRequest `json:"payment_requests,omitempty"`
18
18
}
19
19
20
20
type PaymentRequestListInput struct {
21
21
PerPage int `json:"per_page,omitempty,string"`
22
22
Page int `json:"page,omitempty,string"`
23
23
24
- ExternalCustomerID string `json:"external_customer_id,omitempty"`
24
+ ExternalCustomerID string `json:"external_customer_id,omitempty"`
25
25
}
26
26
27
27
type PaymentRequest struct {
28
- LagoID uuid.UUID `json:"lago_id,omitempty"`
29
- Email string `json:"email,omitempty"`
30
- AmountCurrency Currency `json:"amount_currency,omitempty"`
31
- AmountCents int `json:"amount_cents,omitempty"`
32
- PaymentStatus string `json:"payment_status,omitempty"`
33
- CreatedAt time.Time `json:"created_at,omitempty"`
34
-
35
- Customer * Customer `json:"customer,omitempty"`
36
- Invoices []Invoice `json:"fees,omitempty"`
28
+ LagoID uuid.UUID `json:"lago_id,omitempty"`
29
+ Email string `json:"email,omitempty"`
30
+ AmountCurrency Currency `json:"amount_currency,omitempty"`
31
+ AmountCents int `json:"amount_cents,omitempty"`
32
+ PaymentStatus string `json:"payment_status,omitempty"`
33
+ CreatedAt time.Time `json:"created_at,omitempty"`
34
+
35
+ Customer * Customer `json:"customer,omitempty"`
36
+ Invoices []Invoice `json:"fees,omitempty"`
37
37
}
38
38
39
39
type PaymentRequestParams struct {
40
40
PaymentRequest * PaymentRequestInput `json:"payment_request"`
41
41
}
42
42
43
43
type PaymentRequestInput struct {
44
- Email string `json:"email,omitempty"`
45
- CustomerExternalId string `json:"customer_external_id ,omitempty"`
46
- LagoInvoiceIds []string `json:"lago_invoice_ids,omitempty"`
44
+ Email string `json:"email,omitempty"`
45
+ ExternalCustomerId string `json:"external_customer_id ,omitempty"`
46
+ LagoInvoiceIds []string `json:"lago_invoice_ids,omitempty"`
47
47
}
48
48
49
49
func (c * Client ) PaymentRequest () * PaymentRequestRequest {
0 commit comments