Skip to content

Commit 466d464

Browse files
authored
Merge pull request #835 from recurly/v3-v2021-02-25-13862853795
Generated Latest Changes for v2021-02-25
2 parents 0f0cb23 + 73fc8c2 commit 466d464

File tree

3 files changed

+136
-0
lines changed

3 files changed

+136
-0
lines changed

lib/recurly/resources/invoice.php

+24
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class Invoice extends RecurlyResource
3939
private $_paid;
4040
private $_po_number;
4141
private $_previous_invoice_id;
42+
private $_reference_only_currency_conversion;
4243
private $_refundable_amount;
4344
private $_shipping_address;
4445
private $_state;
@@ -703,6 +704,29 @@ public function setPreviousInvoiceId(string $previous_invoice_id): void
703704
$this->_previous_invoice_id = $previous_invoice_id;
704705
}
705706

707+
/**
708+
* Getter method for the reference_only_currency_conversion attribute.
709+
* Reference Only Currency Conversion
710+
*
711+
* @return ?\Recurly\Resources\ReferenceOnlyCurrencyConversion
712+
*/
713+
public function getReferenceOnlyCurrencyConversion(): ?\Recurly\Resources\ReferenceOnlyCurrencyConversion
714+
{
715+
return $this->_reference_only_currency_conversion;
716+
}
717+
718+
/**
719+
* Setter method for the reference_only_currency_conversion attribute.
720+
*
721+
* @param \Recurly\Resources\ReferenceOnlyCurrencyConversion $reference_only_currency_conversion
722+
*
723+
* @return void
724+
*/
725+
public function setReferenceOnlyCurrencyConversion(\Recurly\Resources\ReferenceOnlyCurrencyConversion $reference_only_currency_conversion): void
726+
{
727+
$this->_reference_only_currency_conversion = $reference_only_currency_conversion;
728+
}
729+
706730
/**
707731
* Getter method for the refundable_amount attribute.
708732
* The refundable amount on a charge invoice. It will be null for all other invoices.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<?php
2+
/**
3+
* This file is automatically created by Recurly's OpenAPI generation process
4+
* and thus any edits you make by hand will be lost. If you wish to make a
5+
* change to this file, please create a Github issue explaining the changes you
6+
* need and we will usher them to the appropriate places.
7+
*/
8+
namespace Recurly\Resources;
9+
10+
use Recurly\RecurlyResource;
11+
12+
// phpcs:disable
13+
class ReferenceOnlyCurrencyConversion extends RecurlyResource
14+
{
15+
private $_currency;
16+
private $_subtotal_in_cents;
17+
private $_tax_in_cents;
18+
19+
protected static $array_hints = [
20+
];
21+
22+
23+
/**
24+
* Getter method for the currency attribute.
25+
* 3-letter ISO 4217 currency code.
26+
*
27+
* @return ?string
28+
*/
29+
public function getCurrency(): ?string
30+
{
31+
return $this->_currency;
32+
}
33+
34+
/**
35+
* Setter method for the currency attribute.
36+
*
37+
* @param string $currency
38+
*
39+
* @return void
40+
*/
41+
public function setCurrency(string $currency): void
42+
{
43+
$this->_currency = $currency;
44+
}
45+
46+
/**
47+
* Getter method for the subtotal_in_cents attribute.
48+
* The subtotal converted to the currency.
49+
*
50+
* @return ?float
51+
*/
52+
public function getSubtotalInCents(): ?float
53+
{
54+
return $this->_subtotal_in_cents;
55+
}
56+
57+
/**
58+
* Setter method for the subtotal_in_cents attribute.
59+
*
60+
* @param float $subtotal_in_cents
61+
*
62+
* @return void
63+
*/
64+
public function setSubtotalInCents(float $subtotal_in_cents): void
65+
{
66+
$this->_subtotal_in_cents = $subtotal_in_cents;
67+
}
68+
69+
/**
70+
* Getter method for the tax_in_cents attribute.
71+
* The tax converted to the currency.
72+
*
73+
* @return ?float
74+
*/
75+
public function getTaxInCents(): ?float
76+
{
77+
return $this->_tax_in_cents;
78+
}
79+
80+
/**
81+
* Setter method for the tax_in_cents attribute.
82+
*
83+
* @param float $tax_in_cents
84+
*
85+
* @return void
86+
*/
87+
public function setTaxInCents(float $tax_in_cents): void
88+
{
89+
$this->_tax_in_cents = $tax_in_cents;
90+
}
91+
}

openapi/api.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -20276,6 +20276,8 @@ components:
2027620276
format: float
2027720277
title: Tax
2027820278
description: The total tax on this invoice.
20279+
reference_only_currency_conversion:
20280+
"$ref": "#/components/schemas/ReferenceOnlyCurrencyConversion"
2027920281
total:
2028020282
type: number
2028120283
format: float
@@ -22289,6 +22291,25 @@ components:
2228922291
title: Updated at
2229022292
format: date-time
2229122293
readOnly: true
22294+
ReferenceOnlyCurrencyConversion:
22295+
type: object
22296+
title: Reference Only Currency Conversion
22297+
properties:
22298+
currency:
22299+
type: string
22300+
title: Currency
22301+
description: 3-letter ISO 4217 currency code.
22302+
maxLength: 3
22303+
subtotal_in_cents:
22304+
type: number
22305+
format: float
22306+
title: Subtotal In Cents
22307+
description: The subtotal converted to the currency.
22308+
tax_in_cents:
22309+
type: number
22310+
format: float
22311+
title: Tax In Cents
22312+
description: The tax converted to the currency.
2229222313
ShippingAddressCreate:
2229322314
type: object
2229422315
properties:

0 commit comments

Comments
 (0)