Skip to content

Commit

Permalink
Merge pull request #950 from stripe/remi/codegen-2394b37
Browse files Browse the repository at this point in the history
Add support for `id_npwp` and `my_frp` as `type` on `TaxId`
  • Loading branch information
remi-stripe authored Jun 9, 2020
2 parents a8981c1 + e800831 commit 5a4fd1e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
13 changes: 7 additions & 6 deletions lib/BillingPortal/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,24 @@
namespace Stripe\BillingPortal;

/**
* A session describes the instantiation of the self-serve portal for a particular
* customer. By visiting the self-serve portal's URL, the customer can manage their
* A session describes the instantiation of the customer portal for a particular
* customer. By visiting the session's URL, the customer can manage their
* subscriptions and billing details. For security reasons, sessions are
* short-lived and will expire if the customer does not visit the URL. Create
* Sessions on-demand.
* sessions on-demand when customers intend to manage their subscriptions and
* billing details.
*
* Integration guide: <a
* href="https://stripe.com/docs/billing/subscriptions/integrating-self-serve-portal">Billing
* self-serve portal</a>.
* href="https://stripe.com/docs/billing/subscriptions/integrating-customer-portal">Billing
* customer portal</a>.
*
* @property string $id Unique identifier for the object.
* @property string $object String representing the object's type. Objects of the same type share the same value.
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property string $customer The ID of the customer for this session.
* @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
* @property string $return_url The URL to which Stripe should send customers when they click on the link to return to your website.
* @property string $url The short-lived URL of the session giving customers access to the self-serve portal.
* @property string $url The short-lived URL of the session giving customers access to the customer portal.
*/
class Session extends \Stripe\ApiResource
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/BillingPortal/SessionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class SessionService extends \Stripe\Service\AbstractService
{
/**
* Creates a session of the self-serve portal.
* Creates a session of the customer portal.
*
* @param null|array $params
* @param null|array|\Stripe\Util\RequestOptions $opts
Expand Down
4 changes: 3 additions & 1 deletion lib/TaxId.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
* @property string|\Stripe\Customer $customer ID of the customer.
* @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
* @property string $type Type of the tax ID, one of <code>ae_trn</code>, <code>au_abn</code>, <code>br_cnpj</code>, <code>br_cpf</code>, <code>ca_bn</code>, <code>ca_qst</code>, <code>ch_vat</code>, <code>cl_tin</code>, <code>es_cif</code>, <code>eu_vat</code>, <code>hk_br</code>, <code>in_gst</code>, <code>jp_cn</code>, <code>kr_brn</code>, <code>li_uid</code>, <code>mx_rfc</code>, <code>my_itn</code>, <code>my_sst</code>, <code>no_vat</code>, <code>nz_gst</code>, <code>ru_inn</code>, <code>sa_vat</code>, <code>sg_gst</code>, <code>sg_uen</code>, <code>th_vat</code>, <code>tw_vat</code>, <code>us_ein</code>, or <code>za_vat</code>. Note that some legacy tax IDs have type <code>unknown</code>
* @property string $type Type of the tax ID, one of <code>ae_trn</code>, <code>au_abn</code>, <code>br_cnpj</code>, <code>br_cpf</code>, <code>ca_bn</code>, <code>ca_qst</code>, <code>ch_vat</code>, <code>cl_tin</code>, <code>es_cif</code>, <code>eu_vat</code>, <code>hk_br</code>, <code>id_npwp</code>, <code>in_gst</code>, <code>jp_cn</code>, <code>kr_brn</code>, <code>li_uid</code>, <code>mx_rfc</code>, <code>my_frp</code>, <code>my_itn</code>, <code>my_sst</code>, <code>no_vat</code>, <code>nz_gst</code>, <code>ru_inn</code>, <code>sa_vat</code>, <code>sg_gst</code>, <code>sg_uen</code>, <code>th_vat</code>, <code>tw_vat</code>, <code>us_ein</code>, or <code>za_vat</code>. Note that some legacy tax IDs have type <code>unknown</code>
* @property string $value Value of the tax ID.
* @property \Stripe\StripeObject $verification
*/
Expand All @@ -37,11 +37,13 @@ class TaxId extends ApiResource
const TYPE_ES_CIF = 'es_cif';
const TYPE_EU_VAT = 'eu_vat';
const TYPE_HK_BR = 'hk_br';
const TYPE_ID_NPWP = 'id_npwp';
const TYPE_IN_GST = 'in_gst';
const TYPE_JP_CN = 'jp_cn';
const TYPE_KR_BRN = 'kr_brn';
const TYPE_LI_UID = 'li_uid';
const TYPE_MX_RFC = 'mx_rfc';
const TYPE_MY_FRP = 'my_frp';
const TYPE_MY_ITN = 'my_itn';
const TYPE_MY_SST = 'my_sst';
const TYPE_NO_VAT = 'no_vat';
Expand Down

0 comments on commit 5a4fd1e

Please sign in to comment.