Skip to content

Commit

Permalink
chore(docs): streamline payment purpose and vendor failure handling (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed May 10, 2024
1 parent 7da6a83 commit d816b92
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 162
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/modern-treasury-21d8d8be5e3219420b523ac5670a79f8dcc6e2602fcd13dca12209271db2170e.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/modern-treasury-aaacc072bfbc4cfb94152b18ca831ca6fce6ed9b64a28341107063386e611a7f.yml
10 changes: 4 additions & 6 deletions src/resources/bulk-requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,8 @@ export namespace BulkRequestCreateParams {

/**
* For `wire`, this is usually the purpose which is transmitted via the
* "InstrForDbtrAgt" field in the ISO20022 file. If you are using Currencycloud,
* this is the `payment.purpose_code` field. For `eft`, this field is the 3 digit
* CPA Code that will be attached to the payment.
* "InstrForDbtrAgt" field in the ISO20022 file. For `eft`, this field is the 3
* digit CPA Code that will be attached to the payment.
*/
purpose?: string | null;

Expand Down Expand Up @@ -1401,9 +1400,8 @@ export namespace BulkRequestCreateParams {

/**
* For `wire`, this is usually the purpose which is transmitted via the
* "InstrForDbtrAgt" field in the ISO20022 file. If you are using Currencycloud,
* this is the `payment.purpose_code` field. For `eft`, this field is the 3 digit
* CPA Code that will be attached to the payment.
* "InstrForDbtrAgt" field in the ISO20022 file. For `eft`, this field is the 3
* digit CPA Code that will be attached to the payment.
*/
purpose?: string | null;

Expand Down
24 changes: 10 additions & 14 deletions src/resources/payment-orders/payment-orders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,8 @@ export interface PaymentOrder {

/**
* For `wire`, this is usually the purpose which is transmitted via the
* "InstrForDbtrAgt" field in the ISO20022 file. If you are using Currencycloud,
* this is the `payment.purpose_code` field. For `eft`, this field is the 3 digit
* CPA Code that will be attached to the payment.
* "InstrForDbtrAgt" field in the ISO20022 file. For `eft`, this field is the 3
* digit CPA Code that will be attached to the payment.
*/
purpose: string | null;

Expand Down Expand Up @@ -383,8 +382,8 @@ export interface PaymentOrder {
updated_at: string;

/**
* This field will be populated if a vendor (e.g. Currencycloud) failure occurs.
* Logic shouldn't be built on its value as it is free-form.
* This field will be populated if a vendor failure occurs. Logic shouldn't be
* built on its value as it is free-form.
*/
vendor_failure_reason: string | null;
}
Expand Down Expand Up @@ -751,9 +750,8 @@ export interface PaymentOrderCreateParams {

/**
* For `wire`, this is usually the purpose which is transmitted via the
* "InstrForDbtrAgt" field in the ISO20022 file. If you are using Currencycloud,
* this is the `payment.purpose_code` field. For `eft`, this field is the 3 digit
* CPA Code that will be attached to the payment.
* "InstrForDbtrAgt" field in the ISO20022 file. For `eft`, this field is the 3
* digit CPA Code that will be attached to the payment.
*/
purpose?: string | null;

Expand Down Expand Up @@ -1387,9 +1385,8 @@ export interface PaymentOrderUpdateParams {

/**
* For `wire`, this is usually the purpose which is transmitted via the
* "InstrForDbtrAgt" field in the ISO20022 file. If you are using Currencycloud,
* this is the `payment.purpose_code` field. For `eft`, this field is the 3 digit
* CPA Code that will be attached to the payment.
* "InstrForDbtrAgt" field in the ISO20022 file. For `eft`, this field is the 3
* digit CPA Code that will be attached to the payment.
*/
purpose?: string | null;

Expand Down Expand Up @@ -2016,9 +2013,8 @@ export interface PaymentOrderCreateAsyncParams {

/**
* For `wire`, this is usually the purpose which is transmitted via the
* "InstrForDbtrAgt" field in the ISO20022 file. If you are using Currencycloud,
* this is the `payment.purpose_code` field. For `eft`, this field is the 3 digit
* CPA Code that will be attached to the payment.
* "InstrForDbtrAgt" field in the ISO20022 file. For `eft`, this field is the 3
* digit CPA Code that will be attached to the payment.
*/
purpose?: string | null;

Expand Down

0 comments on commit d816b92

Please sign in to comment.