Skip to content

Commit

Permalink
6.7.0 - Boleto no request e response de Subscription (#13)
Browse files Browse the repository at this point in the history
Co-authored-by: Unknown <[email protected]>
  • Loading branch information
robsonjunior1994 and samuelleitemundipagg authored Dec 21, 2022
1 parent 3a70445 commit 8d5539c
Show file tree
Hide file tree
Showing 19 changed files with 550 additions and 76 deletions.
27 changes: 27 additions & 0 deletions doc/models/create-subscription-boleto-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

# Create Subscription Boleto Request

Information about fines and interest on the "boleto" used from payment

## Structure

`CreateSubscriptionBoletoRequest`

## Fields

| Name | Type | Tags | Description | Getter | Setter |
| --- | --- | --- | --- | --- | --- |
| `interest` | [`?CreateInterestRequest`](../../doc/models/create-interest-request.md) | Optional | - | getInterest(): ?CreateInterestRequest | setInterest(?CreateInterestRequest interest): void |
| `fine` | [`?CreateFineRequest`](../../doc/models/create-fine-request.md) | Optional | - | getFine(): ?CreateFineRequest | setFine(?CreateFineRequest fine): void |
| `maxDaysToPayPastDue` | `?int` | Optional | - | getMaxDaysToPayPastDue(): ?int | setMaxDaysToPayPastDue(?int maxDaysToPayPastDue): void |

## Example (as JSON)

```json
{
"interest": null,
"fine": null,
"max_days_to_pay_past_due": null
}
```

1 change: 1 addition & 0 deletions doc/models/create-subscription-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Request for creating a subcription
| `period` | [`?CreatePeriodRequest`](../../doc/models/create-period-request.md) | Optional | - | getPeriod(): ?CreatePeriodRequest | setPeriod(?CreatePeriodRequest period): void |
| `submerchant` | [`?CreateSubMerchantRequest`](../../doc/models/create-sub-merchant-request.md) | Optional | SubMerchant | getSubmerchant(): ?CreateSubMerchantRequest | setSubmerchant(?CreateSubMerchantRequest submerchant): void |
| `split` | [`?CreateSubscriptionSplitRequest`](../../doc/models/create-subscription-split-request.md) | Optional | Subscription's split | getSplit(): ?CreateSubscriptionSplitRequest | setSplit(?CreateSubscriptionSplitRequest split): void |
| `boleto` | [`?CreateSubscriptionBoletoRequest`](../../doc/models/create-subscription-boleto-request.md) | Optional | Information about fines and interest on the "boleto" used from payment | getBoleto(): ?CreateSubscriptionBoletoRequest | setBoleto(?CreateSubscriptionBoletoRequest boleto): void |

## Example (as JSON)

Expand Down
24 changes: 16 additions & 8 deletions doc/models/get-invoice-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,8 @@ Response object for getting an invoice
"id": "id1"
}
]
}
},
"boleto": null
},
"name": "name4",
"quantity": null,
Expand Down Expand Up @@ -704,7 +705,8 @@ Response object for getting an invoice
"id": "id9"
}
]
}
},
"boleto": null
},
"name": "name5",
"quantity": null,
Expand Down Expand Up @@ -765,7 +767,8 @@ Response object for getting an invoice
"id": "id8"
}
]
}
},
"boleto": null
},
"name": "name1",
"quantity": null,
Expand Down Expand Up @@ -1052,7 +1055,8 @@ Response object for getting an invoice
"id": "id9"
}
]
}
},
"boleto": null
},
"name": "name5",
"quantity": null,
Expand Down Expand Up @@ -1276,7 +1280,8 @@ Response object for getting an invoice
"id": "id0"
}
]
}
},
"boleto": null
},
"name": "name6",
"quantity": null,
Expand Down Expand Up @@ -1468,7 +1473,8 @@ Response object for getting an invoice
"id": "id8"
}
]
}
},
"boleto": null
},
"name": "name7",
"quantity": null,
Expand Down Expand Up @@ -1560,7 +1566,8 @@ Response object for getting an invoice
"id": "id0"
}
]
}
},
"boleto": null
},
"name": "name2",
"quantity": null,
Expand Down Expand Up @@ -1621,7 +1628,8 @@ Response object for getting an invoice
"id": "id5"
}
]
}
},
"boleto": null
},
"cycle": null,
"shipping": {
Expand Down
24 changes: 16 additions & 8 deletions doc/models/get-period-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,8 @@ Response object for getting a period
"id": "id1"
}
]
}
},
"boleto": null
},
"name": "name4",
"quantity": null,
Expand Down Expand Up @@ -574,7 +575,8 @@ Response object for getting a period
"id": "id9"
}
]
}
},
"boleto": null
},
"name": "name5",
"quantity": null,
Expand Down Expand Up @@ -635,7 +637,8 @@ Response object for getting a period
"id": "id8"
}
]
}
},
"boleto": null
},
"name": "name1",
"quantity": null,
Expand Down Expand Up @@ -922,7 +925,8 @@ Response object for getting a period
"id": "id9"
}
]
}
},
"boleto": null
},
"name": "name5",
"quantity": null,
Expand Down Expand Up @@ -1146,7 +1150,8 @@ Response object for getting a period
"id": "id0"
}
]
}
},
"boleto": null
},
"name": "name6",
"quantity": null,
Expand Down Expand Up @@ -1338,7 +1343,8 @@ Response object for getting a period
"id": "id8"
}
]
}
},
"boleto": null
},
"name": "name7",
"quantity": null,
Expand Down Expand Up @@ -1430,7 +1436,8 @@ Response object for getting a period
"id": "id0"
}
]
}
},
"boleto": null
},
"name": "name2",
"quantity": null,
Expand Down Expand Up @@ -1491,7 +1498,8 @@ Response object for getting a period
"id": "id5"
}
]
}
},
"boleto": null
},
"status": "status8",
"duration": 112,
Expand Down
35 changes: 35 additions & 0 deletions doc/models/get-subscription-boleto-response.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

# Get Subscription Boleto Response

Response object for getting a boleto

## Structure

`GetSubscriptionBoletoResponse`

## Fields

| Name | Type | Tags | Description | Getter | Setter |
| --- | --- | --- | --- | --- | --- |
| `interest` | [`?GetInterestResponse`](../../doc/models/get-interest-response.md) | Optional | Interest | getInterest(): ?GetInterestResponse | setInterest(?GetInterestResponse interest): void |
| `fine` | [`?GetFineResponse`](../../doc/models/get-fine-response.md) | Optional | Fine | getFine(): ?GetFineResponse | setFine(?GetFineResponse fine): void |
| `maxDaysToPayPastDue` | `?int` | Optional | - | getMaxDaysToPayPastDue(): ?int | setMaxDaysToPayPastDue(?int maxDaysToPayPastDue): void |

## Example (as JSON)

```json
{
"interest": {
"days": 2,
"type": "percentage",
"amount": 20
},
"fine": {
"days": 2,
"type": "flat",
"amount": 10
},
"max_days_to_pay_past_due": 2
}
```

9 changes: 6 additions & 3 deletions doc/models/get-subscription-item-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,8 @@
"id": "id8"
}
]
}
},
"boleto": null
},
"name": "name1",
"quantity": null,
Expand Down Expand Up @@ -960,7 +961,8 @@
"id": "id0"
}
]
}
},
"boleto": null
},
"name": "name2",
"quantity": null,
Expand Down Expand Up @@ -1021,7 +1023,8 @@
"id": "id5"
}
]
}
},
"boleto": null
},
"name": "name0",
"quantity": null,
Expand Down
19 changes: 13 additions & 6 deletions doc/models/get-subscription-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
| `increments` | [`GetIncrementResponse[]`](../../doc/models/get-increment-response.md) | Required | Subscription increments | getIncrements(): array | setIncrements(array increments): void |
| `boletoDueDays` | `?int` | Optional | Days until boleto expires | getBoletoDueDays(): ?int | setBoletoDueDays(?int boletoDueDays): void |
| `split` | [`GetSubscriptionSplitResponse`](../../doc/models/get-subscription-split-response.md) | Required | Subscription's split response | getSplit(): GetSubscriptionSplitResponse | setSplit(GetSubscriptionSplitResponse split): void |
| `boleto` | [`?GetSubscriptionBoletoResponse`](../../doc/models/get-subscription-boleto-response.md) | Optional | - | getBoleto(): ?GetSubscriptionBoletoResponse | setBoleto(?GetSubscriptionBoletoResponse boleto): void |

## Example (as JSON)

Expand Down Expand Up @@ -407,7 +408,8 @@
"id": "id7"
}
]
}
},
"boleto": null
},
"name": "name4",
"quantity": null,
Expand Down Expand Up @@ -607,7 +609,8 @@
"id": "id9"
}
]
}
},
"boleto": null
},
"name": "name5",
"quantity": null,
Expand Down Expand Up @@ -668,7 +671,8 @@
"id": "id8"
}
]
}
},
"boleto": null
},
"name": "name7",
"quantity": null,
Expand Down Expand Up @@ -1026,7 +1030,8 @@
"id": "id9"
}
]
}
},
"boleto": null
},
"name": "name3",
"quantity": null,
Expand Down Expand Up @@ -1101,7 +1106,8 @@
"id": "id6"
}
]
}
},
"boleto": null
},
"name": "name8",
"quantity": null,
Expand Down Expand Up @@ -1162,7 +1168,8 @@
"id": "id7"
}
]
}
},
"boleto": null
}
```

12 changes: 8 additions & 4 deletions doc/models/get-usage-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,8 @@ Response object for getting a usage
"id": "id3"
}
]
}
},
"boleto": null
},
"name": "name5",
"quantity": null,
Expand Down Expand Up @@ -893,7 +894,8 @@ Response object for getting a usage
"id": "id2"
}
]
}
},
"boleto": null
},
"name": "name6",
"quantity": null,
Expand Down Expand Up @@ -1248,7 +1250,8 @@ Response object for getting a usage
"id": "id4"
}
]
}
},
"boleto": null
},
"name": "name7",
"quantity": null,
Expand Down Expand Up @@ -1328,7 +1331,8 @@ Response object for getting a usage
"id": "id0"
}
]
}
},
"boleto": null
},
"name": "name6",
"quantity": null,
Expand Down
Loading

0 comments on commit 8d5539c

Please sign in to comment.