You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/recurly/client.php
+59-14Lines changed: 59 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -2046,7 +2046,7 @@ public function listInvoices(array $options = []): \Recurly\Pager
2046
2046
/**
2047
2047
* Fetch an invoice
2048
2048
*
2049
-
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
2049
+
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
2050
2050
* @param array $options Associative array of optional parameters
2051
2051
*
2052
2052
* @return \Recurly\Resources\Invoice An invoice.
@@ -2061,7 +2061,7 @@ public function getInvoice(string $invoice_id, array $options = []): \Recurly\Re
2061
2061
/**
2062
2062
* Update an invoice
2063
2063
*
2064
-
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
2064
+
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
2065
2065
* @param array $body The body of the request.
2066
2066
* @param array $options Associative array of optional parameters
2067
2067
*
@@ -2077,7 +2077,7 @@ public function updateInvoice(string $invoice_id, array $body, array $options =
2077
2077
/**
2078
2078
* Fetch an invoice as a PDF
2079
2079
*
2080
-
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
2080
+
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
2081
2081
* @param array $options Associative array of optional parameters
2082
2082
*
2083
2083
* @return \Recurly\Resources\BinaryFile An invoice as a PDF.
@@ -2092,7 +2092,7 @@ public function getInvoicePdf(string $invoice_id, array $options = []): \Recurly
2092
2092
/**
2093
2093
* Apply available credit to a pending or past due charge invoice
2094
2094
*
2095
-
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
2095
+
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
2096
2096
* @param array $options Associative array of optional parameters
2097
2097
*
2098
2098
* @return \Recurly\Resources\Invoice The updated invoice.
@@ -2107,7 +2107,7 @@ public function applyCreditBalance(string $invoice_id, array $options = []): \Re
2107
2107
/**
2108
2108
* Collect a pending or past due, automatic invoice
2109
2109
*
2110
-
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
2110
+
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
2111
2111
* @param array $body The body of the request.
2112
2112
* @param array $options Associative array of optional parameters
2113
2113
*
@@ -2123,7 +2123,7 @@ public function collectInvoice(string $invoice_id, array $body = [], array $opti
2123
2123
/**
2124
2124
* Mark an open invoice as failed
2125
2125
*
2126
-
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
2126
+
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
2127
2127
* @param array $options Associative array of optional parameters
2128
2128
*
2129
2129
* @return \Recurly\Resources\Invoice The updated invoice.
@@ -2138,7 +2138,7 @@ public function markInvoiceFailed(string $invoice_id, array $options = []): \Rec
2138
2138
/**
2139
2139
* Mark an open invoice as successful
2140
2140
*
2141
-
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
2141
+
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
2142
2142
* @param array $options Associative array of optional parameters
2143
2143
*
2144
2144
* @return \Recurly\Resources\Invoice The updated invoice.
@@ -2153,7 +2153,7 @@ public function markInvoiceSuccessful(string $invoice_id, array $options = []):
2153
2153
/**
2154
2154
* Reopen a closed, manual invoice
2155
2155
*
2156
-
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
2156
+
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
2157
2157
* @param array $options Associative array of optional parameters
2158
2158
*
2159
2159
* @return \Recurly\Resources\Invoice The updated invoice.
@@ -2168,7 +2168,7 @@ public function reopenInvoice(string $invoice_id, array $options = []): \Recurly
2168
2168
/**
2169
2169
* Void a credit invoice.
2170
2170
*
2171
-
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
2171
+
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
2172
2172
* @param array $options Associative array of optional parameters
2173
2173
*
2174
2174
* @return \Recurly\Resources\Invoice The updated invoice.
@@ -2183,7 +2183,7 @@ public function voidInvoice(string $invoice_id, array $options = []): \Recurly\R
2183
2183
/**
2184
2184
* Record an external payment for a manual invoices.
2185
2185
*
2186
-
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
2186
+
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
2187
2187
* @param array $body The body of the request.
2188
2188
* @param array $options Associative array of optional parameters
2189
2189
*
@@ -2199,7 +2199,7 @@ public function recordExternalTransaction(string $invoice_id, array $body, array
2199
2199
/**
2200
2200
* List an invoice's line items
2201
2201
*
2202
-
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
2202
+
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
2203
2203
* @param array $options Associative array of optional parameters
2204
2204
*
2205
2205
* Supported optional query string parameters:
@@ -2240,7 +2240,7 @@ public function listInvoiceLineItems(string $invoice_id, array $options = []): \
2240
2240
/**
2241
2241
* List the coupon redemptions applied to an invoice
2242
2242
*
2243
-
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
2243
+
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
2244
2244
* @param array $options Associative array of optional parameters
2245
2245
*
2246
2246
* Supported optional query string parameters:
@@ -2276,7 +2276,7 @@ public function listInvoiceCouponRedemptions(string $invoice_id, array $options
2276
2276
/**
2277
2277
* List an invoice's related credit or charge invoices
2278
2278
*
2279
-
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
2279
+
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
2280
2280
* @param array $options Associative array of optional parameters
2281
2281
*
2282
2282
* @return \Recurly\Pager A list of the credit or charge invoices associated with the invoice.
@@ -2291,7 +2291,7 @@ public function listRelatedInvoices(string $invoice_id, array $options = []): \R
2291
2291
/**
2292
2292
* Refund an invoice
2293
2293
*
2294
-
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`.
2294
+
* @param string $invoice_id Invoice ID or number. For ID no prefix is used e.g. `e28zov4fw0v2`. For number use prefix `number-`, e.g. `number-1000`. For number with prefix or country code, use `number-` and `prefix`, e.g. `number-TEST-FR1001`
2295
2295
* @param array $body The body of the request.
2296
2296
* @param array $options Associative array of optional parameters
2297
2297
*
@@ -2577,6 +2577,51 @@ public function removePlanAddOn(string $plan_id, string $add_on_id, array $optio
* @param string $price_segment_id The price segment ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-gold`.
2614
+
* @param array $options Associative array of optional parameters
2615
+
*
2616
+
* @return \Recurly\Resources\PriceSegment A price segment.
0 commit comments