-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
xendit-devx-bot
committed
Jan 30, 2025
1 parent
6dfd603
commit d7bd4c0
Showing
21 changed files
with
271 additions
and
39 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
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
14 changes: 14 additions & 0 deletions
14
docs/invoice/ChannelPropertiesCardsInstallmentConfiguration.md
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,14 @@ | ||
# ChannelPropertiesCardsInstallmentConfiguration | ||
|
||
An object to pre-set cards installment for a specific invoice | ||
|
||
## Properties | ||
|
||
| Name | Type | Required | Description | Examples | | ||
|------------|:-------------:|:-------------:|-------------|:-------------:| | ||
| **allowFullPayment** |boolean | | Indicate whether full payment (without installment) is allowed | | | | ||
| **allowedTerms** |[ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner[]](ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner.md) | | An object to set what kind (from specific bank / specific tenor) of cards installments will be available on a specific invoice | | | | ||
|
||
|
||
|
||
[[Back to README]](../../README.md) |
14 changes: 14 additions & 0 deletions
14
docs/invoice/ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner.md
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,14 @@ | ||
# ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner | ||
|
||
|
||
|
||
## Properties | ||
|
||
| Name | Type | Required | Description | Examples | | ||
|------------|:-------------:|:-------------:|-------------|:-------------:| | ||
| **issuer** |string | | The bank code of the installment provider / issuer | | | | ||
| **allowedTerms** |number[] | | An array containing list of installment tenor available to choose | | | | ||
|
||
|
||
|
||
[[Back to README]](../../README.md) |
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
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
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
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
74 changes: 74 additions & 0 deletions
74
invoice/models/ChannelPropertiesCardsInstallmentConfiguration.ts
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,74 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* NOTE: This file is auto generated by Xendit. | ||
* Do not edit the class manually. | ||
* Improvements? Share your ideas at https://github.com/xendit/xendit-node | ||
*/ | ||
|
||
import { exists, mapValues } from '../../runtime'; | ||
import type { ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner } from './ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner'; | ||
import { | ||
ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInnerFromJSON, | ||
ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInnerFromJSONTyped, | ||
ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInnerToJSON, | ||
} from './ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner'; | ||
|
||
/** | ||
* An object to pre-set cards installment for a specific invoice | ||
* @export | ||
* @interface ChannelPropertiesCardsInstallmentConfiguration | ||
*/ | ||
export interface ChannelPropertiesCardsInstallmentConfiguration { | ||
/** | ||
* Indicate whether full payment (without installment) is allowed | ||
* @type {boolean} | ||
* @memberof ChannelPropertiesCardsInstallmentConfiguration | ||
*/ | ||
allowFullPayment?: boolean; | ||
/** | ||
* An object to set what kind (from specific bank / specific tenor) of cards installments will be available on a specific invoice | ||
* @type {Array<ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner>} | ||
* @memberof ChannelPropertiesCardsInstallmentConfiguration | ||
*/ | ||
allowedTerms?: Array<ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner>; | ||
} | ||
|
||
/** | ||
* Check if a given object implements the ChannelPropertiesCardsInstallmentConfiguration interface. | ||
*/ | ||
export function instanceOfChannelPropertiesCardsInstallmentConfiguration(value: object): boolean { | ||
let isInstance = true; | ||
|
||
return isInstance; | ||
} | ||
|
||
export function ChannelPropertiesCardsInstallmentConfigurationFromJSON(json: any): ChannelPropertiesCardsInstallmentConfiguration { | ||
return ChannelPropertiesCardsInstallmentConfigurationFromJSONTyped(json, false); | ||
} | ||
|
||
export function ChannelPropertiesCardsInstallmentConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChannelPropertiesCardsInstallmentConfiguration { | ||
if ((json === undefined) || (json === null)) { | ||
return json; | ||
} | ||
return { | ||
|
||
'allowFullPayment': !exists(json, 'allow_full_payment') ? undefined : json['allow_full_payment'], | ||
'allowedTerms': !exists(json, 'allowed_terms') ? undefined : ((json['allowed_terms'] as Array<any>).map(ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInnerFromJSON)), | ||
}; | ||
} | ||
|
||
export function ChannelPropertiesCardsInstallmentConfigurationToJSON(value?: ChannelPropertiesCardsInstallmentConfiguration | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
|
||
'allow_full_payment': value.allowFullPayment, | ||
'allowed_terms': value.allowedTerms === undefined ? undefined : ((value.allowedTerms as Array<any>).map(ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInnerToJSON)), | ||
}; | ||
} | ||
|
Oops, something went wrong.