Skip to content

Commit 68042ad

Browse files
committed
docs: add reference to services for service-specific resources
1 parent 1684385 commit 68042ad

6 files changed

Lines changed: 15 additions & 0 deletions

File tree

billing_statement_line_item.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ package payrex
33
// BillingStatementLineItem is a line item of a [BillingStatement] that pertains
44
// to a business's products or services.
55
//
6+
// Service: [ServiceBillingStatementLineItems]
7+
//
68
// API reference: https://docs.payrexhq.com/docs/api/billing_statement_line_items
79
type BillingStatementLineItem struct {
810
BaseResource

checkout_session.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ package payrex
22

33
// CheckoutSession is used to notify your application about events in your PayRex account.
44
//
5+
// Service: [ServiceCheckoutSessions]
6+
//
57
// API reference: https://docs.payrexhq.com/docs/api/checkout_sessions
68
type CheckoutSession struct {
79
BaseResource

customer_session.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ package payrex
22

33
// TODO: add doc comments for resources when PayRex adds official docs for CustomerSession
44

5+
// CustomerSession represents a customer session.
6+
//
7+
// Service: [CustomerSession]
58
type CustomerSession struct {
69
BaseResource
710
CustomerID string `json:"customer_id"`

payout.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import "net/http"
66
//
77
// Payouts are made depending on the payout schedule for your PayRex merchant account.
88
//
9+
// Service: [ServicePayouts]
10+
//
911
// API reference: https://docs.payrexhq.com/docs/api/payouts
1012
type Payout struct {
1113
BaseResource
@@ -35,6 +37,8 @@ type PayoutDestination struct {
3537
//
3638
// Every [PayoutTransaction] belongs to a [Payout] resource.
3739
//
40+
// Service: [ServicePayouts]
41+
//
3842
// API reference: https://docs.payrexhq.com/docs/api/payout_transactions
3943
type PayoutTransaction struct {
4044
// Unique identifier for the resource.

refund.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ package payrex
22

33
// Refund resources represent a refunded amount of a paid payment.
44
//
5+
// Service: [ServiceRefunds]
6+
//
57
// API reference: https://docs.payrexhq.com/docs/api/refunds
68
type Refund struct {
79
BaseResource

webhook.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ package payrex
22

33
// Webhook is used to notify your application about events in your PayRex account.
44
//
5+
// Service: [ServiceWebhooks]
6+
//
57
// API reference: https://docs.payrexhq.com/docs/api/webhooks
68
type Webhook struct {
79
BaseResource

0 commit comments

Comments
 (0)