Skip to content

Commit

Permalink
6.7.2 (#17)
Browse files Browse the repository at this point in the history
Co-authored-by: Unknown <samuel.leite@pagar.me>
  • Loading branch information
magnomoreira and samuelleitemundipagg authored Jan 17, 2023
1 parent 1379440 commit feec276
Show file tree
Hide file tree
Showing 40 changed files with 1,032 additions and 449 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ License:
The MIT License (MIT)
http://opensource.org/licenses/MIT

Copyright (c) 2014 - 2022 APIMATIC Limited
Copyright (c) 2014 - 2023 APIMATIC Limited

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
88 changes: 5 additions & 83 deletions doc/controllers/plans.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,18 +210,8 @@ function createPlanItem(
$planId = 'plan_id8';
$request_name = 'name6';
$request_pricingScheme_schemeType = 'scheme_type2';
$request_pricingScheme_priceBrackets = [];

$request_pricingScheme_priceBrackets_0_startQuantity = 87;
$request_pricingScheme_priceBrackets_0_price = 231;
$request_pricingScheme_priceBrackets[0] = new Models\CreatePriceBracketRequest(
$request_pricingScheme_priceBrackets_0_startQuantity,
$request_pricingScheme_priceBrackets_0_price
);

$request_pricingScheme = new Models\CreatePricingSchemeRequest(
$request_pricingScheme_schemeType,
$request_pricingScheme_priceBrackets
$request_pricingScheme_schemeType
);
$request_id = 'id6';
$request_description = 'description6';
Expand Down Expand Up @@ -294,25 +284,8 @@ $body_items = [];

$body_items_0_name = 'name3';
$body_items_0_pricingScheme_schemeType = 'scheme_type5';
$body_items_0_pricingScheme_priceBrackets = [];

$body_items_0_pricingScheme_priceBrackets_0_startQuantity = 228;
$body_items_0_pricingScheme_priceBrackets_0_price = 90;
$body_items_0_pricingScheme_priceBrackets[0] = new Models\CreatePriceBracketRequest(
$body_items_0_pricingScheme_priceBrackets_0_startQuantity,
$body_items_0_pricingScheme_priceBrackets_0_price
);

$body_items_0_pricingScheme_priceBrackets_1_startQuantity = 229;
$body_items_0_pricingScheme_priceBrackets_1_price = 89;
$body_items_0_pricingScheme_priceBrackets[1] = new Models\CreatePriceBracketRequest(
$body_items_0_pricingScheme_priceBrackets_1_startQuantity,
$body_items_0_pricingScheme_priceBrackets_1_price
);

$body_items_0_pricingScheme = new Models\CreatePricingSchemeRequest(
$body_items_0_pricingScheme_schemeType,
$body_items_0_pricingScheme_priceBrackets
$body_items_0_pricingScheme_schemeType
);
$body_items_0_id = 'id3';
$body_items_0_description = 'description3';
Expand All @@ -325,18 +298,8 @@ $body_items[0] = new Models\CreatePlanItemRequest(

$body_items_1_name = 'name4';
$body_items_1_pricingScheme_schemeType = 'scheme_type4';
$body_items_1_pricingScheme_priceBrackets = [];

$body_items_1_pricingScheme_priceBrackets_0_startQuantity = 227;
$body_items_1_pricingScheme_priceBrackets_0_price = 91;
$body_items_1_pricingScheme_priceBrackets[0] = new Models\CreatePriceBracketRequest(
$body_items_1_pricingScheme_priceBrackets_0_startQuantity,
$body_items_1_pricingScheme_priceBrackets_0_price
);

$body_items_1_pricingScheme = new Models\CreatePricingSchemeRequest(
$body_items_1_pricingScheme_schemeType,
$body_items_1_pricingScheme_priceBrackets
$body_items_1_pricingScheme_schemeType
);
$body_items_1_id = 'id4';
$body_items_1_description = 'description4';
Expand All @@ -349,32 +312,8 @@ $body_items[1] = new Models\CreatePlanItemRequest(

$body_items_2_name = 'name5';
$body_items_2_pricingScheme_schemeType = 'scheme_type3';
$body_items_2_pricingScheme_priceBrackets = [];

$body_items_2_pricingScheme_priceBrackets_0_startQuantity = 226;
$body_items_2_pricingScheme_priceBrackets_0_price = 92;
$body_items_2_pricingScheme_priceBrackets[0] = new Models\CreatePriceBracketRequest(
$body_items_2_pricingScheme_priceBrackets_0_startQuantity,
$body_items_2_pricingScheme_priceBrackets_0_price
);

$body_items_2_pricingScheme_priceBrackets_1_startQuantity = 227;
$body_items_2_pricingScheme_priceBrackets_1_price = 91;
$body_items_2_pricingScheme_priceBrackets[1] = new Models\CreatePriceBracketRequest(
$body_items_2_pricingScheme_priceBrackets_1_startQuantity,
$body_items_2_pricingScheme_priceBrackets_1_price
);

$body_items_2_pricingScheme_priceBrackets_2_startQuantity = 228;
$body_items_2_pricingScheme_priceBrackets_2_price = 90;
$body_items_2_pricingScheme_priceBrackets[2] = new Models\CreatePriceBracketRequest(
$body_items_2_pricingScheme_priceBrackets_2_startQuantity,
$body_items_2_pricingScheme_priceBrackets_2_price
);

$body_items_2_pricingScheme = new Models\CreatePricingSchemeRequest(
$body_items_2_pricingScheme_schemeType,
$body_items_2_pricingScheme_priceBrackets
$body_items_2_pricingScheme_schemeType
);
$body_items_2_id = 'id5';
$body_items_2_description = 'description5';
Expand All @@ -394,25 +333,8 @@ $body_intervalCount = 170;
$body_billingDays = [201, 200];
$body_billingType = 'billing_type0';
$body_pricingScheme_schemeType = 'scheme_type2';
$body_pricingScheme_priceBrackets = [];

$body_pricingScheme_priceBrackets_0_startQuantity = 31;
$body_pricingScheme_priceBrackets_0_price = 225;
$body_pricingScheme_priceBrackets[0] = new Models\CreatePriceBracketRequest(
$body_pricingScheme_priceBrackets_0_startQuantity,
$body_pricingScheme_priceBrackets_0_price
);

$body_pricingScheme_priceBrackets_1_startQuantity = 32;
$body_pricingScheme_priceBrackets_1_price = 226;
$body_pricingScheme_priceBrackets[1] = new Models\CreatePriceBracketRequest(
$body_pricingScheme_priceBrackets_1_startQuantity,
$body_pricingScheme_priceBrackets_1_price
);

$body_pricingScheme = new Models\CreatePricingSchemeRequest(
$body_pricingScheme_schemeType,
$body_pricingScheme_priceBrackets
$body_pricingScheme_schemeType
);
$body_metadata = ['key0' => 'metadata7', 'key1' => 'metadata8'];
$body = new Models\CreatePlanRequest(
Expand Down
100 changes: 5 additions & 95 deletions doc/controllers/subscriptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -840,49 +840,15 @@ $body_currency = 'currency6';
$body_interval = 'interval6';
$body_intervalCount = 170;
$body_pricingScheme_schemeType = 'scheme_type2';
$body_pricingScheme_priceBrackets = [];

$body_pricingScheme_priceBrackets_0_startQuantity = 31;
$body_pricingScheme_priceBrackets_0_price = 225;
$body_pricingScheme_priceBrackets[0] = new Models\CreatePriceBracketRequest(
$body_pricingScheme_priceBrackets_0_startQuantity,
$body_pricingScheme_priceBrackets_0_price
);

$body_pricingScheme_priceBrackets_1_startQuantity = 32;
$body_pricingScheme_priceBrackets_1_price = 226;
$body_pricingScheme_priceBrackets[1] = new Models\CreatePriceBracketRequest(
$body_pricingScheme_priceBrackets_1_startQuantity,
$body_pricingScheme_priceBrackets_1_price
);

$body_pricingScheme = new Models\CreatePricingSchemeRequest(
$body_pricingScheme_schemeType,
$body_pricingScheme_priceBrackets
$body_pricingScheme_schemeType
);
$body_items = [];

$body_items_0_description = 'description3';
$body_items_0_pricingScheme_schemeType = 'scheme_type5';
$body_items_0_pricingScheme_priceBrackets = [];

$body_items_0_pricingScheme_priceBrackets_0_startQuantity = 228;
$body_items_0_pricingScheme_priceBrackets_0_price = 90;
$body_items_0_pricingScheme_priceBrackets[0] = new Models\CreatePriceBracketRequest(
$body_items_0_pricingScheme_priceBrackets_0_startQuantity,
$body_items_0_pricingScheme_priceBrackets_0_price
);

$body_items_0_pricingScheme_priceBrackets_1_startQuantity = 229;
$body_items_0_pricingScheme_priceBrackets_1_price = 89;
$body_items_0_pricingScheme_priceBrackets[1] = new Models\CreatePriceBracketRequest(
$body_items_0_pricingScheme_priceBrackets_1_startQuantity,
$body_items_0_pricingScheme_priceBrackets_1_price
);

$body_items_0_pricingScheme = new Models\CreatePricingSchemeRequest(
$body_items_0_pricingScheme_schemeType,
$body_items_0_pricingScheme_priceBrackets
$body_items_0_pricingScheme_schemeType
);
$body_items_0_id = 'id3';
$body_items_0_planItemId = 'plan_item_id3';
Expand All @@ -909,18 +875,8 @@ $body_items[0] = new Models\CreateSubscriptionItemRequest(

$body_items_1_description = 'description4';
$body_items_1_pricingScheme_schemeType = 'scheme_type4';
$body_items_1_pricingScheme_priceBrackets = [];

$body_items_1_pricingScheme_priceBrackets_0_startQuantity = 227;
$body_items_1_pricingScheme_priceBrackets_0_price = 91;
$body_items_1_pricingScheme_priceBrackets[0] = new Models\CreatePriceBracketRequest(
$body_items_1_pricingScheme_priceBrackets_0_startQuantity,
$body_items_1_pricingScheme_priceBrackets_0_price
);

$body_items_1_pricingScheme = new Models\CreatePricingSchemeRequest(
$body_items_1_pricingScheme_schemeType,
$body_items_1_pricingScheme_priceBrackets
$body_items_1_pricingScheme_schemeType
);
$body_items_1_id = 'id4';
$body_items_1_planItemId = 'plan_item_id4';
Expand Down Expand Up @@ -956,32 +912,8 @@ $body_items[1] = new Models\CreateSubscriptionItemRequest(

$body_items_2_description = 'description5';
$body_items_2_pricingScheme_schemeType = 'scheme_type3';
$body_items_2_pricingScheme_priceBrackets = [];

$body_items_2_pricingScheme_priceBrackets_0_startQuantity = 226;
$body_items_2_pricingScheme_priceBrackets_0_price = 92;
$body_items_2_pricingScheme_priceBrackets[0] = new Models\CreatePriceBracketRequest(
$body_items_2_pricingScheme_priceBrackets_0_startQuantity,
$body_items_2_pricingScheme_priceBrackets_0_price
);

$body_items_2_pricingScheme_priceBrackets_1_startQuantity = 227;
$body_items_2_pricingScheme_priceBrackets_1_price = 91;
$body_items_2_pricingScheme_priceBrackets[1] = new Models\CreatePriceBracketRequest(
$body_items_2_pricingScheme_priceBrackets_1_startQuantity,
$body_items_2_pricingScheme_priceBrackets_1_price
);

$body_items_2_pricingScheme_priceBrackets_2_startQuantity = 228;
$body_items_2_pricingScheme_priceBrackets_2_price = 90;
$body_items_2_pricingScheme_priceBrackets[2] = new Models\CreatePriceBracketRequest(
$body_items_2_pricingScheme_priceBrackets_2_startQuantity,
$body_items_2_pricingScheme_priceBrackets_2_price
);

$body_items_2_pricingScheme = new Models\CreatePricingSchemeRequest(
$body_items_2_pricingScheme_schemeType,
$body_items_2_pricingScheme_priceBrackets
$body_items_2_pricingScheme_schemeType
);
$body_items_2_id = 'id5';
$body_items_2_planItemId = 'plan_item_id5';
Expand Down Expand Up @@ -1075,17 +1007,6 @@ $body_discounts[0] = new Models\CreateDiscountRequest(
);

$body_metadata = ['key0' => 'metadata7', 'key1' => 'metadata8'];
$body_setup_amount = 150;
$body_setup_description = 'description0';
$body_setup_payment_paymentMethod = 'payment_method4';
$body_setup_payment = new Models\CreatePaymentRequest(
$body_setup_payment_paymentMethod
);
$body_setup = new Models\CreateSetupRequest(
$body_setup_amount,
$body_setup_description,
$body_setup_payment
);
$body_increments = [];

$body_increments_0_value = 38.83;
Expand Down Expand Up @@ -1131,7 +1052,6 @@ $body = new Models\CreateSubscriptionRequest(
$body_shipping,
$body_discounts,
$body_metadata,
$body_setup,
$body_increments
);

Expand Down Expand Up @@ -1598,18 +1518,8 @@ function createSubscriptionItem(
$subscriptionId = 'subscription_id0';
$request_description = 'description6';
$request_pricingScheme_schemeType = 'scheme_type2';
$request_pricingScheme_priceBrackets = [];

$request_pricingScheme_priceBrackets_0_startQuantity = 87;
$request_pricingScheme_priceBrackets_0_price = 231;
$request_pricingScheme_priceBrackets[0] = new Models\CreatePriceBracketRequest(
$request_pricingScheme_priceBrackets_0_startQuantity,
$request_pricingScheme_priceBrackets_0_price
);

$request_pricingScheme = new Models\CreatePricingSchemeRequest(
$request_pricingScheme_schemeType,
$request_pricingScheme_priceBrackets
$request_pricingScheme_schemeType
);
$request_id = 'id6';
$request_planItemId = 'plan_item_id6';
Expand Down
21 changes: 1 addition & 20 deletions doc/models/create-plan-item-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,7 @@ Request for creating a plan item
"name": "name0",
"pricing_scheme": {
"scheme_type": "scheme_type8",
"price_brackets": [
{
"start_quantity": 119,
"price": 57,
"end_quantity": null,
"overage_price": null
},
{
"start_quantity": 120,
"price": 58,
"end_quantity": null,
"overage_price": null
},
{
"start_quantity": 121,
"price": 59,
"end_quantity": null,
"overage_price": null
}
],
"price_brackets": null,
"price": null,
"minimum_price": null,
"percentage": null
Expand Down
57 changes: 3 additions & 54 deletions doc/models/create-plan-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,7 @@ Request for creating a plan
"name": "name7",
"pricing_scheme": {
"scheme_type": "scheme_type1",
"price_brackets": [
{
"start_quantity": 60,
"price": 2,
"end_quantity": null,
"overage_price": null
},
{
"start_quantity": 61,
"price": 1,
"end_quantity": null,
"overage_price": null
},
{
"start_quantity": 62,
"price": 0,
"end_quantity": null,
"overage_price": null
}
],
"price_brackets": null,
"price": null,
"minimum_price": null,
"percentage": null
Expand All @@ -75,20 +56,7 @@ Request for creating a plan
"name": "name8",
"pricing_scheme": {
"scheme_type": "scheme_type0",
"price_brackets": [
{
"start_quantity": 59,
"price": 3,
"end_quantity": null,
"overage_price": null
},
{
"start_quantity": 60,
"price": 2,
"end_quantity": null,
"overage_price": null
}
],
"price_brackets": null,
"price": null,
"minimum_price": null,
"percentage": null
Expand Down Expand Up @@ -120,26 +88,7 @@ Request for creating a plan
"billing_type": "billing_type6",
"pricing_scheme": {
"scheme_type": "scheme_type8",
"price_brackets": [
{
"start_quantity": 119,
"price": 57,
"end_quantity": null,
"overage_price": null
},
{
"start_quantity": 120,
"price": 58,
"end_quantity": null,
"overage_price": null
},
{
"start_quantity": 121,
"price": 59,
"end_quantity": null,
"overage_price": null
}
],
"price_brackets": null,
"price": null,
"minimum_price": null,
"percentage": null
Expand Down
Loading

0 comments on commit feec276

Please sign in to comment.