-
Notifications
You must be signed in to change notification settings - Fork 757
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1919 from stripe/latest-codegen-beta
Update generated code for beta
- Loading branch information
Showing
48 changed files
with
2,159 additions
and
373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v582 | ||
v597 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// File generated from our OpenAPI spec | ||
|
||
import {StripeResource} from '../StripeResource.js'; | ||
const stripeMethod = StripeResource.method; | ||
export const AccountNotices = StripeResource.extend({ | ||
retrieve: stripeMethod({ | ||
method: 'GET', | ||
fullPath: '/v1/account_notices/{account_notice}', | ||
}), | ||
update: stripeMethod({ | ||
method: 'POST', | ||
fullPath: '/v1/account_notices/{account_notice}', | ||
}), | ||
list: stripeMethod({ | ||
method: 'GET', | ||
fullPath: '/v1/account_notices', | ||
methodType: 'list', | ||
}), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// File generated from our OpenAPI spec | ||
|
||
import {StripeResource} from '../../StripeResource.js'; | ||
const stripeMethod = StripeResource.method; | ||
export const CreditUnderwritingRecords = StripeResource.extend({ | ||
retrieve: stripeMethod({ | ||
method: 'GET', | ||
fullPath: | ||
'/v1/issuing/credit_underwriting_records/{credit_underwriting_record}', | ||
}), | ||
list: stripeMethod({ | ||
method: 'GET', | ||
fullPath: '/v1/issuing/credit_underwriting_records', | ||
methodType: 'list', | ||
}), | ||
correct: stripeMethod({ | ||
method: 'POST', | ||
fullPath: | ||
'/v1/issuing/credit_underwriting_records/{credit_underwriting_record}/correct', | ||
}), | ||
createFromApplication: stripeMethod({ | ||
method: 'POST', | ||
fullPath: '/v1/issuing/credit_underwriting_records/create_from_application', | ||
}), | ||
createFromProactiveReview: stripeMethod({ | ||
method: 'POST', | ||
fullPath: | ||
'/v1/issuing/credit_underwriting_records/create_from_proactive_review', | ||
}), | ||
reportDecision: stripeMethod({ | ||
method: 'POST', | ||
fullPath: | ||
'/v1/issuing/credit_underwriting_records/{credit_underwriting_record}/report_decision', | ||
}), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
// File generated from our OpenAPI spec | ||
|
||
declare module 'stripe' { | ||
namespace Stripe { | ||
/** | ||
* A notice to a Connected account. Notice can be sent by Stripe on your behalf or you can opt to send the notices yourself. | ||
* | ||
* See the [guide to send notices](https://stripe.com/docs/issuing/compliance-us/issuing-regulated-customer-notices) to your connected accounts. | ||
*/ | ||
interface AccountNotice { | ||
/** | ||
* Unique identifier for the object. | ||
*/ | ||
id: string; | ||
|
||
/** | ||
* String representing the object's type. Objects of the same type share the same value. | ||
*/ | ||
object: 'account_notice'; | ||
|
||
/** | ||
* Time at which the object was created. Measured in seconds since the Unix epoch. | ||
*/ | ||
created: number; | ||
|
||
/** | ||
* When present, the deadline for sending the notice to meet the relevant regulations. | ||
*/ | ||
deadline: number | null; | ||
|
||
/** | ||
* Information about the email when sent. | ||
*/ | ||
email: AccountNotice.Email | null; | ||
|
||
/** | ||
* Information about objects related to the notice. | ||
*/ | ||
linked_objects: AccountNotice.LinkedObjects | null; | ||
|
||
/** | ||
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. | ||
*/ | ||
livemode: boolean; | ||
|
||
/** | ||
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. | ||
*/ | ||
metadata: Stripe.Metadata | null; | ||
|
||
/** | ||
* Reason the notice is being sent. The reason determines what copy the notice must contain. See the [regulated customer notices](https://stripe.com/docs/issuing/compliance-us/issuing-regulated-customer-notices) guide. All reasons might not apply to your integration, and Stripe might add new reasons in the future, so we recommend an internal warning when you receive an unknown reason. | ||
*/ | ||
reason: AccountNotice.Reason; | ||
|
||
/** | ||
* Date when the notice was sent. When absent, you must send the notice, update the content of the email and date when it was sent. | ||
*/ | ||
sent_at: number | null; | ||
} | ||
|
||
namespace AccountNotice { | ||
interface Email { | ||
/** | ||
* Content of the email in plain text. The copy must match exactly the language that Stripe Compliance has approved for use. | ||
*/ | ||
plain_text: string; | ||
|
||
/** | ||
* Email address of the recipient. | ||
*/ | ||
recipient: string; | ||
|
||
/** | ||
* Subject of the email. | ||
*/ | ||
subject: string; | ||
} | ||
|
||
interface LinkedObjects { | ||
/** | ||
* Associated [Capability](https://stripe.com/docs/api/capabilities) | ||
*/ | ||
capability: string | null; | ||
|
||
/** | ||
* Associated [Credit Underwriting Record](https://stripe.com/docs/api/issuing/credit_underwriting_record) | ||
*/ | ||
issuing_credit_underwriting_record?: string | null; | ||
|
||
/** | ||
* Associated [Issuing Dispute](https://stripe.com/docs/api/issuing/disputes) | ||
*/ | ||
issuing_dispute: string | null; | ||
} | ||
|
||
type Reason = | ||
| 'issuing.account_closed_for_inactivity' | ||
| 'issuing.account_closed_for_terms_of_service_violation' | ||
| 'issuing.application_rejected_for_failure_to_verify' | ||
| 'issuing.credit_application_rejected' | ||
| 'issuing.credit_increase_application_rejected' | ||
| 'issuing.credit_limit_decreased' | ||
| 'issuing.credit_line_closed' | ||
| 'issuing.dispute_lost' | ||
| 'issuing.dispute_submitted' | ||
| 'issuing.dispute_won'; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
// File generated from our OpenAPI spec | ||
|
||
declare module 'stripe' { | ||
namespace Stripe { | ||
interface AccountNoticeRetrieveParams { | ||
/** | ||
* Specifies which fields in the response should be expanded. | ||
*/ | ||
expand?: Array<string>; | ||
} | ||
|
||
interface AccountNoticeUpdateParams { | ||
/** | ||
* Information about the email you sent. | ||
*/ | ||
email: AccountNoticeUpdateParams.Email; | ||
|
||
/** | ||
* Date when you sent the notice. | ||
*/ | ||
sent_at: number; | ||
|
||
/** | ||
* Specifies which fields in the response should be expanded. | ||
*/ | ||
expand?: Array<string>; | ||
|
||
/** | ||
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. | ||
*/ | ||
metadata?: Stripe.MetadataParam; | ||
} | ||
|
||
namespace AccountNoticeUpdateParams { | ||
interface Email { | ||
/** | ||
* Content of the email in plain text. The copy must match exactly the language that Stripe Compliance has approved for use. | ||
*/ | ||
plain_text: string; | ||
|
||
/** | ||
* Email address of the recipient. | ||
*/ | ||
recipient: string; | ||
|
||
/** | ||
* Subject of the email. | ||
*/ | ||
subject: string; | ||
} | ||
} | ||
|
||
interface AccountNoticeListParams extends PaginationParams { | ||
/** | ||
* Specifies which fields in the response should be expanded. | ||
*/ | ||
expand?: Array<string>; | ||
|
||
/** | ||
* Set to false to only return unsent AccountNotices. | ||
*/ | ||
sent?: boolean; | ||
} | ||
|
||
class AccountNoticesResource { | ||
/** | ||
* Retrieves an AccountNotice object. | ||
*/ | ||
retrieve( | ||
id: string, | ||
params?: AccountNoticeRetrieveParams, | ||
options?: RequestOptions | ||
): Promise<Stripe.Response<Stripe.AccountNotice>>; | ||
retrieve( | ||
id: string, | ||
options?: RequestOptions | ||
): Promise<Stripe.Response<Stripe.AccountNotice>>; | ||
|
||
/** | ||
* Updates an AccountNotice object. | ||
*/ | ||
update( | ||
id: string, | ||
params: AccountNoticeUpdateParams, | ||
options?: RequestOptions | ||
): Promise<Stripe.Response<Stripe.AccountNotice>>; | ||
|
||
/** | ||
* Retrieves a list of AccountNotice objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first. | ||
*/ | ||
list( | ||
params?: AccountNoticeListParams, | ||
options?: RequestOptions | ||
): ApiListPromise<Stripe.AccountNotice>; | ||
list(options?: RequestOptions): ApiListPromise<Stripe.AccountNotice>; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.